diff --git a/static/admin/404/index.html b/static/admin/404/index.html index 410012f20..178d3f3a4 100644 --- a/static/admin/404/index.html +++ b/static/admin/404/index.html @@ -1 +1 @@ -404: This page could not be found

What is your stream about today?

What is your stream about today?
Offline

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

What is your stream about today?

What is your stream about today?
Offline

404

This page could not be found.

\ No newline at end of file diff --git a/static/admin/_next/static/FYjtuGkZh0l1Tii7zxFIe/_buildManifest.js b/static/admin/_next/static/cWsGLMVA-ojPNtMpLue5r/_buildManifest.js similarity index 61% rename from static/admin/_next/static/FYjtuGkZh0l1Tii7zxFIe/_buildManifest.js rename to static/admin/_next/static/cWsGLMVA-ojPNtMpLue5r/_buildManifest.js index 6bc5d73f3..e7e1bb0b7 100644 --- a/static/admin/_next/static/FYjtuGkZh0l1Tii7zxFIe/_buildManifest.js +++ b/static/admin/_next/static/cWsGLMVA-ojPNtMpLue5r/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,c,e,a,t,i,f,n,h,o,b,g,u,d){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,e,a,t,i,n,"static/chunks/59-bb3486f7473684cf.js","static/chunks/pages/index-4d5ca370f5d2e820.js"],"/_error":["static/chunks/pages/_error-a3f18418a2205cb8.js"],"/access-tokens":[s,c,e,"static/chunks/pages/access-tokens-8ab04343bdf73124.js"],"/actions":[s,c,"static/chunks/pages/actions-4e648761889c23e5.js"],"/chat/messages":[h,s,c,e,i,o,"static/chunks/pages/chat/messages-945377167eed396f.js"],"/chat/users":[h,s,c,e,a,i,o,"static/chunks/pages/chat/users-14a7ed232b1cf6f1.js"],"/config-chat":["static/chunks/pages/config-chat-00377015dc5f7622.js"],"/config-public-details":[s,c,f,"static/css/325160c29fde2de0.css","static/chunks/589-38173172474c8b45.js",b,"static/chunks/pages/config-public-details-5628b27b80198a8d.js"],"/config-server-details":[g,"static/chunks/pages/config-server-details-bf4e05a70deedfae.js"],"/config-social-items":[s,c,b,"static/chunks/pages/config-social-items-20e5d437c6559a00.js"],"/config-storage":["static/chunks/473-2f8a49a631089460.js","static/chunks/pages/config-storage-7ff1038872a3ca18.js"],"/config-video":[s,c,g,"static/chunks/556-bbfb134a84808c78.js","static/chunks/pages/config-video-af46f510261e570c.js"],"/hardware-info":[u,e,a,t,f,d,"static/chunks/pages/hardware-info-5c7933a2fc8e439b.js"],"/help":[a,"static/chunks/92-a9595654001682f6.js","static/chunks/pages/help-c7fc342e125a5d6b.js"],"/logs":[s,e,n,"static/chunks/pages/logs-992bb93ef15eb1c3.js"],"/upgrade":[s,"static/chunks/275-35d1a6aef8ecf26a.js","static/chunks/pages/upgrade-455b3ea722ce4dd6.js"],"/viewer-info":[u,e,a,t,f,d,"static/chunks/pages/viewer-info-2fd6ee53e3a146a5.js"],"/webhooks":[s,c,"static/chunks/pages/webhooks-347989374968ddba.js"],sortedPages:["/","/_app","/_error","/access-tokens","/actions","/chat/messages","/chat/users","/config-chat","/config-public-details","/config-server-details","/config-social-items","/config-storage","/config-video","/hardware-info","/help","/logs","/upgrade","/viewer-info","/webhooks"]}}("static/chunks/355-f06d182967af3414.js","static/chunks/516-7e3214ec30e2dcd2.js","static/chunks/91-af53fa87313ffd15.js","static/chunks/903-3c1d3babf87a294f.js","static/chunks/102-3bc0d7c9186e3845.js","static/chunks/533-2f63c37b8986cca1.js","static/chunks/8-c94a1d68c52ddd4a.js","static/chunks/429-613793ce22468b22.js","static/chunks/29107295-2c3ce868677a27a4.js","static/chunks/371-814cf16bf0e11916.js","static/chunks/17-a17fee5c4b40129f.js","static/chunks/578-243e65c094c02e3b.js","static/chunks/36bcf0ca-f04f40c3696051a5.js","static/chunks/958-45a95f3bc4c51636.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,c,a,e,t,i,n,f,d,h,o,b,g,u){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,e,t,i,f,"static/chunks/59-bb3486f7473684cf.js","static/chunks/pages/index-4d5ca370f5d2e820.js"],"/_error":["static/chunks/pages/_error-a3f18418a2205cb8.js"],"/access-tokens":[s,c,a,"static/chunks/pages/access-tokens-8ab04343bdf73124.js"],"/actions":[s,c,"static/chunks/pages/actions-4e648761889c23e5.js"],"/chat/messages":[d,s,c,a,i,h,"static/chunks/pages/chat/messages-945377167eed396f.js"],"/chat/users":[d,s,c,a,e,i,h,"static/chunks/pages/chat/users-14a7ed232b1cf6f1.js"],"/config-chat":["static/chunks/pages/config-chat-00377015dc5f7622.js"],"/config-public-details":[s,c,n,"static/css/325160c29fde2de0.css","static/chunks/589-38173172474c8b45.js",o,"static/chunks/pages/config-public-details-5628b27b80198a8d.js"],"/config-server-details":[b,"static/chunks/pages/config-server-details-bf4e05a70deedfae.js"],"/config-social-items":[s,c,o,"static/chunks/pages/config-social-items-20e5d437c6559a00.js"],"/config-storage":["static/chunks/473-2f8a49a631089460.js","static/chunks/pages/config-storage-7ff1038872a3ca18.js"],"/config-video":[s,c,b,"static/chunks/556-bbfb134a84808c78.js","static/chunks/pages/config-video-af46f510261e570c.js"],"/hardware-info":[g,a,e,t,n,u,"static/chunks/pages/hardware-info-5c7933a2fc8e439b.js"],"/help":[e,"static/chunks/92-a9595654001682f6.js","static/chunks/pages/help-c7fc342e125a5d6b.js"],"/logs":[s,a,f,"static/chunks/pages/logs-992bb93ef15eb1c3.js"],"/upgrade":[s,"static/chunks/275-35d1a6aef8ecf26a.js","static/chunks/pages/upgrade-455b3ea722ce4dd6.js"],"/viewer-info":[g,a,e,t,n,u,"static/chunks/pages/viewer-info-2fd6ee53e3a146a5.js"],"/webhooks":[s,c,"static/chunks/pages/webhooks-347989374968ddba.js"],sortedPages:["/","/_app","/_error","/access-tokens","/actions","/chat/messages","/chat/users","/config-chat","/config-public-details","/config-server-details","/config-social-items","/config-storage","/config-video","/hardware-info","/help","/logs","/upgrade","/viewer-info","/webhooks"]}}("static/chunks/355-f06d182967af3414.js","static/chunks/516-7e3214ec30e2dcd2.js","static/chunks/91-af53fa87313ffd15.js","static/chunks/903-3c1d3babf87a294f.js","static/chunks/102-3bc0d7c9186e3845.js","static/chunks/533-2f63c37b8986cca1.js","static/chunks/8-c94a1d68c52ddd4a.js","static/chunks/429-613793ce22468b22.js","static/chunks/29107295-2c3ce868677a27a4.js","static/chunks/371-814cf16bf0e11916.js","static/chunks/17-a17fee5c4b40129f.js","static/chunks/578-243e65c094c02e3b.js","static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js","static/chunks/958-d85597c88a5651f8.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/admin/_next/static/FYjtuGkZh0l1Tii7zxFIe/_middlewareManifest.js b/static/admin/_next/static/cWsGLMVA-ojPNtMpLue5r/_middlewareManifest.js similarity index 100% rename from static/admin/_next/static/FYjtuGkZh0l1Tii7zxFIe/_middlewareManifest.js rename to static/admin/_next/static/cWsGLMVA-ojPNtMpLue5r/_middlewareManifest.js diff --git a/static/admin/_next/static/FYjtuGkZh0l1Tii7zxFIe/_ssgManifest.js b/static/admin/_next/static/cWsGLMVA-ojPNtMpLue5r/_ssgManifest.js similarity index 100% rename from static/admin/_next/static/FYjtuGkZh0l1Tii7zxFIe/_ssgManifest.js rename to static/admin/_next/static/cWsGLMVA-ojPNtMpLue5r/_ssgManifest.js diff --git a/static/admin/_next/static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js b/static/admin/_next/static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js new file mode 100644 index 000000000..59eea06ef --- /dev/null +++ b/static/admin/_next/static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[570],{53328:function(t,e,i){i.d(e,{kL:function(){return he},zX:function(){return Gi}});var s=i(3940);var n=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=s.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const o="transparent",a={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=(0,s.c)(t||o),a=n.valid&&(0,s.c)(e||o);return a&&a.valid?a.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class r{constructor(t,e,i,n){const o=e[i];n=(0,s.a)([t.to,n,o,t.from]);const r=(0,s.a)([t.from,o,n]);this._active=!0,this._fn=t.fn||a[t.type||typeof r],this._easing=s.e[t.easing]||s.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=(0,s.a)([t.to,e,n,t.from]),this._from=(0,s.a)([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let s=0;s"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),s.d.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),s.d.describe("animations",{_fallback:"animation"}),s.d.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}}}});class l{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,s.i)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const n=t[i];if(!(0,s.i)(n))return;const o={};for(const t of h)o[t]=n[t];((0,s.b)(n.properties)&&n.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let n=0;n{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let h;for(h=o.length-1;h>=0;--h){const l=o[h];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const c=e[l];let d=n[l];const u=i.get(l);if(d){if(u&&d.active()){d.update(u,c,a);continue}d.cancel()}u&&u.duration?(n[l]=d=new r(u,t,l,c),s.push(d)):t[l]=c}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(n.add(this._chart,i),!0):void 0}}function c(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function d(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n0||!i&&e<0)return n.index}return null}function m(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,h=o.axis,l=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let g=0;gi[t].axis===e)).shift()}function b(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const _=t=>"reset"===t||"none"===t,y=(t,e)=>e?t:Object.assign({},t);class v{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=g(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&b(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,o=e.xAxisID=(0,s.v)(i.xAxisID,x(t,"x")),a=e.yAxisID=(0,s.v)(i.yAxisID,x(t,"y")),r=e.rAxisID=(0,s.v)(i.rAxisID,x(t,"r")),h=e.indexAxis,l=e.iAxisID=n(h,o,a,r),c=e.vAxisID=n(h,a,o,r);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,s.u)(this._data,this),t._stacked&&b(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if((0,s.i)(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,c=n;else{c=(0,s.b)(n[t])?this.parseArrayData(i,n,t,e):(0,s.i)(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const o=()=>null===l[r]||u&&l[r]t&&!e.hidden&&e._stacked&&{keys:d(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let g,p;function f(){p=n[g];const e=p[r.axis];return!(0,s.g)(p[t.axis])||c>e||u=0;--g)if(!f()){this.updateRangeFromParsed(l,t,p,h);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,o,a;for(n=0,o=e.length;n=0&&tthis.getContext(i,n)),d);return p.$shared&&(p.$shared=h,o[a]=Object.freeze(y(p,h))),p}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const h=new l(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||_(t)||this.chart._animationsDisabled}updateElement(t,e,i,s){_(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!_(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[a,r,h]of this._syncList)this[a](r,h);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;at-e)))}return t._cache.$bar}(e,t.type);let n,o,a,r,h=e._length;const l=()=>{32767!==a&&-32768!==a&&((0,s.j)(r)&&(h=Math.min(h,Math.abs(a-r)||h)),r=a)};for(n=0,o=i.length;nMath.abs(r)&&(h=r,l=a),e[i.axis]=l,e._custom={barStart:h,barEnd:l,start:n,end:o,min:a,max:r}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function M(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,h=[];let l,c,d,u;for(l=i,c=i+s;lt.x,i="left",s="right"):(e=t.base=i?1:-1)}(d,e,a)*o,u===a&&(m-=d/2),c=m+d),m===e.getPixelForValue(a)){const t=(0,s.s)(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,o=n.skipNull,a=(0,s.v)(n.maxBarThickness,1/0);let r,h;if(e.grouped){const i=o?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),o=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+o+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a}=this._cachedMeta,r=this.resolveDataElementOptions(e,s),h=this.getSharedOptions(r),l=this.includeOptions(s,h),c=o.axis,d=a.axis;for(let u=e;u""}}}};class T extends v{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let o,a,r=t=>+i[t];if((0,s.i)(i[t])){const{key:t="value"}=this._parsing;r=e=>+(0,s.f)(i[e],t)}for(o=t,a=t+e;o(0,s.p)(t,h,l,!0)?1:Math.max(e,e*i,n,n*i),f=(t,e,n)=>(0,s.p)(t,h,l,!0)?-1:Math.min(e,e*i,n,n*i),m=p(0,c,u),x=p(s.H,d,g),b=f(s.P,c,u),_=f(s.P+s.H,d,g);n=(m-b)/2,o=(x-_)/2,a=-(m+b)/2,r=-(x+_)/2}return{ratioX:n,ratioY:o,offsetX:a,offsetY:r}}(d,c,h),m=(i.width-a)/u,x=(i.height-a)/g,b=Math.max(Math.min(m,x)/2,0),_=(0,s.n)(this.options.radius,b),y=(_-Math.max(_*h,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*_,this.offsetY=f*_,n.total=this.calculateTotal(),this.outerRadius=_-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*l,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,o=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*o/s.T)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,h=(a.left+a.right)/2,l=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,g=this.resolveDataElementOptions(e,s),p=this.getSharedOptions(g),f=this.includeOptions(s,p);let m,x=this._getRotation();for(m=0;m0&&!isNaN(t)?s.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],o=(0,s.o)(e._parsed[t],i.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s"spacing"!==t,_indexable:t=>"spacing"!==t},T.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return(0,s.b)(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class E extends v{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:r,count:h}=function(t,e,i){const n=e.length;let o=0,a=n;if(t._sorted){const{iScale:r,_parsed:h}=t,l=r.axis,{min:c,max:d,minDefined:u,maxDefined:g}=r.getUserBounds();u&&(o=(0,s.w)(Math.min((0,s.x)(h,r.axis,c).lo,i?n:(0,s.x)(e,l,r.getPixelForValue(c)).lo),0,n-1)),a=g?(0,s.w)(Math.max((0,s.x)(h,r.axis,d).hi+1,i?0:(0,s.x)(e,l,r.getPixelForValue(d)).hi+1),o,n)-o:n-o}return{start:o,count:a}}(e,n,a);this._drawStart=r,this._drawCount=h,function(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const o=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),o}(e)&&(r=0,h=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:l},t),this.updateElements(n,r,h,t)}updateElements(t,e,i,n){const o="reset"===n,{iScale:a,vScale:r,_stacked:h,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),d=this.getSharedOptions(c),u=this.includeOptions(n,d),g=a.axis,p=r.axis,{spanGaps:f,segment:m}=this.options,x=(0,s.q)(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===n;let _=e>0&&this.getParsed(e-1);for(let y=e;y0&&i[g]-_[g]>x,m&&(c.parsed=i,c.raw=l.data[y]),u&&(c.options=d||this.resolveDataElementOptions(y,e.active?"active":n)),b||this.updateElement(e,y,c,n),_=i}this.updateSharedOptions(d,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}E.id="line",E.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},E.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class R extends v{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],o=(0,s.o)(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:o}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const o="reset"===n,a=this.chart,r=this.getDataset(),h=a.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,d=l.yCenter,u=l.getIndexAngle(0)-.5*s.P;let g,p=u;const f=360/this.countVisibleElements();for(g=0;g{!isNaN(t.data[s])&&this.chart.getDataVisibility(s)&&i++})),i}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,s.t)(this.resolveDataElementOptions(t,e).angle||i):0}}R.id="polarArea",R.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},R.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class z extends T{}z.id="pie",z.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class F extends v{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this.getDataset(),o=this._cachedMeta.rScale,a="reset"===s;for(let r=e;r"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var V=Object.freeze({__proto__:null,BarController:L,BubbleController:O,DoughnutController:T,LineController:E,PolarAreaController:R,PieController:z,RadarController:F,ScatterController:I});function B(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class H{constructor(t){this.options=t||{}}formats(){return B()}parse(t,e){return B()}format(t,e){return B()}add(t,e,i){return B()}diff(t,e,i){return B()}startOf(t,e,i){return B()}endOf(t,e){return B()}}H.override=function(t){Object.assign(H.prototype,t)};var W={_date:H};function N(t,e){return"native"in t?{x:t.x,y:t.y}:(0,s.y)(t,e)}function j(t,e,i,n){const{controller:o,data:a,_sorted:r}=t,h=o._cachedMeta.iScale;if(h&&e===h.axis&&"r"!==e&&r&&a.length){const t=h._reversePixels?s.A:s.x;if(!n)return t(a,e,i);if(o._sharedOptions){const s=a[0],n="function"===typeof s.getRange&&s.getRange(e);if(n){const s=t(a,e,i-n),o=t(a,e,i+n);return{lo:s.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function $(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let r=0,h=o.length;r{t[r](n[a],s)&&o.push({element:t,datasetIndex:e,index:i}),t.inRange(n.x,n.y,s)&&(h=!0)})),i.intersect&&!h?[]:o}var G={modes:{index(t,e,i,s){const n=N(e,t),o=i.axis||"x",a=i.intersect?U(t,n,o,s):X(t,n,o,!1,s),r=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&r.push({element:i,datasetIndex:t.index,index:e})})),r):[]},dataset(t,e,i,s){const n=N(e,t),o=i.axis||"xy";let a=i.intersect?U(t,n,o,s):X(t,n,o,!1,s);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;tU(t,N(e,t),i.axis||"xy",s),nearest:(t,e,i,s)=>X(t,N(e,t),i.axis||"xy",i.intersect,s),x:(t,e,i,s)=>Z(t,e,{axis:"x",intersect:i.intersect},s),y:(t,e,i,s)=>Z(t,e,{axis:"y",intersect:i.intersect},s)}};const q=["left","top","right","bottom"];function K(t,e){return t.filter((t=>t.pos===e))}function J(t,e){return t.filter((t=>-1===q.indexOf(t.pos)&&t.box.axis===e))}function Q(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function tt(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!q.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o{s[t]=Math.max(e[t],i[t])})),s}return s(t?["left","right"]:["top","bottom"])}function ot(t,e,i,s){const n=[];let o,a,r,h,l,c;for(o=0,a=t.length,l=0;ot.box.fullSize)),!0),s=Q(K(e,"left"),!0),n=Q(K(e,"right")),o=Q(K(e,"top"),!0),a=Q(K(e,"bottom")),r=J(e,"x"),h=J(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(h).concat(a).concat(r),chartArea:K(e,"chartArea"),vertical:s.concat(n).concat(h),horizontal:o.concat(a).concat(r)}}(t.boxes),l=h.vertical,c=h.horizontal;(0,s.D)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const d=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:o,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),g=Object.assign({},o);it(g,(0,s.C)(n));const p=Object.assign({maxPadding:g,w:a,h:r,x:o.left,y:o.top},o),f=tt(l.concat(c),u);ot(h.fullSize,p,u,f),ot(l,p,u,f),ot(c,p,u,f)&&ot(l,p,u,f),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),rt(h.leftAndTop,p,u,f),p.x+=p.w,p.y+=p.h,rt(h.rightAndBottom,p,u,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,s.D)(h.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class lt{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class ct extends lt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const dt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ut=t=>null===t||""===t;const gt=!!s.J&&{passive:!0};function pt(t,e,i){t.canvas.removeEventListener(e,i,gt)}function ft(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function mt(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ft(i.addedNodes,s),e=e&&!ft(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function xt(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ft(i.removedNodes,s),e=e&&!ft(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const bt=new Map;let _t=0;function yt(){const t=window.devicePixelRatio;t!==_t&&(_t=t,bt.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function vt(t,e,i){const n=t.canvas,o=n&&(0,s.F)(n);if(!o)return;const a=(0,s.I)(((t,e)=>{const s=o.clientWidth;i(t,e),s{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||a(i,s)}));return r.observe(o),function(t,e){bt.size||window.addEventListener("resize",yt),bt.set(t,e)}(t,a),r}function kt(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){bt.delete(t),bt.size||window.removeEventListener("resize",yt)}(t)}function wt(t,e,i){const n=t.canvas,o=(0,s.I)((e=>{null!==t.ctx&&i(function(t,e){const i=dt[t.type]||t.type,{x:n,y:o}=(0,s.y)(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,gt)}(n,e,o),o}class Mt extends lt{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t.$chartjs={initial:{height:n,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",ut(o)){const e=(0,s.G)(t,"width");void 0!==e&&(t.width=e)}if(ut(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,s.G)(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const i=e.$chartjs.initial;["height","width"].forEach((t=>{const n=i[t];(0,s.k)(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:mt,detach:xt,resize:vt}[e]||wt;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:kt,detach:kt,resize:kt}[e]||pt)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return(0,s.E)(t,e,i,n)}isAttached(t){const e=(0,s.F)(t);return!(!e||!e.isConnected)}}class Dt{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return(0,s.q)(this.x)&&(0,s.q)(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}Dt.defaults={},Dt.defaultRoutes=void 0;const St={values:t=>(0,s.b)(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let o,a=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const r=(0,s.L)(Math.abs(a)),h=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:h,maximumFractionDigits:h};return Object.assign(l,this.options.ticks.format),(0,s.o)(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor((0,s.L)(t)));return 1===n||2===n||5===n?St.numeric.call(this,t,e,i):""}};var Pt={formatters:St};function Ct(t,e){const i=t.options.ticks,n=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),o=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;in)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;no)return t}return Math.max(o,1)}(o,e,n);if(a>0){let t,i;const n=a>1?Math.round((h-r)/(a-1)):null;for(At(e,l,c,(0,s.k)(n)?0:r-n,r),t=0,i=a-1;te.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:Pt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),s.d.route("scale.ticks","color","","color"),s.d.route("scale.grid","color","","borderColor"),s.d.route("scale.grid","borderColor","","borderColor"),s.d.route("scale.title","color","","color"),s.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),s.d.describe("scales",{_fallback:"scale"}),s.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Lt=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function Ot(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;oa+r)))return l}function Et(t){return t.drawTicks?t.tickLength:0}function Rt(t,e){if(!t.display)return 0;const i=(0,s.Z)(t.font,e),n=(0,s.C)(t.padding);return((0,s.b)(t.text)?t.text.length:1)*i.lineHeight+n.height}function zt(t,e,i){let n=(0,s.$)(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class Ft extends Dt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.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(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=(0,s.N)(t,Number.POSITIVE_INFINITY),e=(0,s.N)(e,Number.NEGATIVE_INFINITY),i=(0,s.N)(i,Number.POSITIVE_INFINITY),n=(0,s.N)(n,Number.NEGATIVE_INFINITY),{min:(0,s.N)(t,i),max:(0,s.N)(e,n),minDefined:(0,s.g)(t),maxDefined:(0,s.g)(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let s=0,h=r.length;sn?n:i,n=o&&i>n?i:n,{min:(0,s.N)(i,(0,s.N)(n,i)),max:(0,s.N)(n,(0,s.N)(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,s.O)(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:o,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,s.Q)(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const h=r=o||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,g=(0,s.w)(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:g/(i-1),d+6>a&&(a=g/(i-(t.offset?.5:1)),r=this.maxHeight-Et(t.grid)-e.padding-Rt(t.title,this.chart.options.font),h=Math.sqrt(d*d+u*u),l=(0,s.R)(Math.min(Math.asin((0,s.w)((c.highest.height+6)/a,-1,1)),Math.asin((0,s.w)(r/h,-1,1))-Math.asin((0,s.w)(u/h,-1,1)))),l=Math.max(n,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){(0,s.O)(this.options.afterCalculateLabelRotation,[this])}beforeFit(){(0,s.O)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=Rt(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=Et(o)+a):(t.height=this.maxHeight,t.width=Et(o)+a),i.display&&this.ticks.length){const{first:e,last:n,widest:o,highest:a}=this._getLabelSizes(),h=2*i.padding,l=(0,s.t)(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(r){const e=i.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+h)}else{const e=i.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+h)}this._calculatePadding(e,n,d,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,h="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?h?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-l+o)*this.width/(this.width-l),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+o}}_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(){(0,s.O)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n({width:o[t]||0,height:a[t]||0});return{first:k(0),last:k(e-1),widest:k(y),highest:k(v),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,s.U)(this._alignToPixels?(0,s.V)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&tr*n?r/i:h/n:h*n0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:o,position:a}=n,r=o.offset,h=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=Et(o),d=[],u=o.setContext(this.getContext()),g=u.drawBorder?u.borderWidth:0,p=g/2,f=function(t){return(0,s.V)(i,t,g)};let m,x,b,_,y,v,k,w,M,D,S,P;if("top"===a)m=f(this.bottom),v=this.bottom-c,w=m-p,D=f(t.top)+p,P=t.bottom;else if("bottom"===a)m=f(this.top),D=t.top,P=f(t.bottom)-p,v=m+p,w=this.top+c;else if("left"===a)m=f(this.right),y=this.right-c,k=m-p,M=f(t.left)+p,S=t.right;else if("right"===a)m=f(this.left),M=t.left,S=f(t.right)-p,y=m+p,k=this.left+c;else if("x"===e){if("center"===a)m=f((t.top+t.bottom)/2+.5);else if((0,s.i)(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}D=t.top,P=t.bottom,v=m+p,w=v+c}else if("y"===e){if("center"===a)m=f((t.left+t.right)/2);else if((0,s.i)(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}y=m-p,k=y-c,M=t.left,S=t.right}const C=(0,s.v)(n.ticks.maxTicksLimit,l),A=Math.max(1,Math.ceil(l/C));for(x=0;xe.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n{const n=i.split("."),o=n.pop(),a=[t].concat(n).join("."),r=e[i].split("."),h=r.pop(),l=r.join(".");s.d.route(a,o,l,h)}))}(e,t.defaultRoutes);t.descriptors&&s.d.describe(e,t.descriptors)}(t,a,i),this.override&&s.d.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in s.d[n]&&(delete s.d[n][i],this.override&&delete s.a1[i])}}var Vt=new class{constructor(){this.controllers=new It(v,"datasets",!0),this.elements=new It(Dt,"elements"),this.plugins=new It(Object,"plugins"),this.scales=new It(Ft,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):(0,s.D)(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const n=(0,s.a3)(t);(0,s.O)(i["before"+n],[],i),e[t](i),(0,s.O)(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;et.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Ht(t,e){return e||!1!==t?!0===t?{}:t:null}function Wt(t,e,i,s){const n=t.pluginScopeKeys(e),o=t.getOptionScopes(i,n);return t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Nt(t,e){const i=s.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function jt(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function $t(t){const e=t.options||(t.options={});e.plugins=(0,s.v)(e.plugins,{}),e.scales=function(t,e){const i=s.a1[t.type]||{scales:{}},n=e.scales||{},o=Nt(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(n).forEach((t=>{const e=n[t];if(!(0,s.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const h=jt(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(h,o),c=i.scales||{};a[h]=a[h]||t,r[t]=(0,s.a9)(Object.create(null),[{axis:h},e,c[h],c[l]])})),t.data.datasets.forEach((i=>{const o=i.type||t.type,h=i.indexAxis||Nt(o,e),l=(s.a1[o]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,h),o=i[e+"AxisID"]||a[e]||e;r[o]=r[o]||Object.create(null),(0,s.a9)(r[o],[{axis:e},n[o],l[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];(0,s.a9)(e,[s.d.scales[e.type],s.d.scale])})),r}(t,e)}function Ut(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Yt=new Map,Xt=new Set;function Zt(t,e){let i=Yt.get(t);return i||(i=e(),Yt.set(t,i),Xt.add(i)),i}const Gt=(t,e,i)=>{const n=(0,s.f)(e,i);void 0!==n&&t.add(n)};class qt{constructor(t){this._config=function(t){return(t=t||{}).data=Ut(t.data),$t(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ut(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),$t(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Zt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Zt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Zt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Zt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:n,type:o}=this,a=this._cachedScopes(t,i),r=a.get(e);if(r)return r;const h=new Set;e.forEach((e=>{t&&(h.add(t),e.forEach((e=>Gt(h,t,e)))),e.forEach((t=>Gt(h,n,t))),e.forEach((t=>Gt(h,s.a1[o]||{},t))),e.forEach((t=>Gt(h,s.d,t))),e.forEach((t=>Gt(h,s.a4,t)))}));const l=Array.from(h);return 0===l.length&&l.push(Object.create(null)),Xt.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,s.a1[e]||{},s.d.datasets[e]||{},{type:e},s.d,s.a4]}resolveNamedOptions(t,e,i,n=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=Kt(this._resolverCache,t,n);let h=a;if(function(t,e){const{isScriptable:i,isIndexable:n}=(0,s.a8)(t);for(const o of e){const e=i(o),a=n(o),r=(a||e)&&t[o];if(e&&((0,s.a5)(r)||Jt(r))||a&&(0,s.b)(r))return!0}return!1}(a,e)){o.$shared=!1,i=(0,s.a5)(i)?i():i;const e=this.createResolver(t,i,r);h=(0,s.a6)(a,i,e)}for(const s of e)o[s]=h[s];return o}createResolver(t,e,i=[""],n){const{resolver:o}=Kt(this._resolverCache,t,i);return(0,s.i)(e)?(0,s.a6)(o,e,void 0,n):o}}function Kt(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=i.join();let a=n.get(o);if(!a){a={resolver:(0,s.a7)(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(o,a)}return a}const Jt=t=>(0,s.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||(0,s.a5)(t[i])),!1);const Qt=["top","bottom","left","right","chartArea"];function te(t,e){return"top"===t||"bottom"===t||-1===Qt.indexOf(t)&&"x"===e}function ee(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function ie(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,s.O)(i&&i.onComplete,[t],e)}function se(t){const e=t.chart,i=e.options.animation;(0,s.O)(i&&i.onProgress,[t],e)}function ne(t){return(0,s.K)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const oe={},ae=t=>{const e=ne(t);return Object.values(oe).filter((t=>t.canvas===e)).pop()};function re(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}class he{constructor(t,e){const i=this.config=new qt(e),o=ne(t),a=ae(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!(0,s.K)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ct:Mt}(o)),this.platform.updateConfig(i);const h=this.platform.acquireContext(o,r.aspectRatio),l=h&&h.canvas,c=l&&l.height,d=l&&l.width;this.id=(0,s.aa)(),this.ctx=h,this.canvas=l,this.width=d,this.height=c,this._options=r,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 Bt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,s.ab)((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],oe[this.id]=this,h&&l?(n.listen(this,"complete",ie),n.listen(this,"progress",se),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:o}=this;return(0,s.k)(t)?e&&o?o:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,s.ac)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,s.ad)(this.canvas,this.ctx),this}stop(){return n.stop(this),this}resize(t,e){n.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,t,e,o),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),h=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,(0,s.ac)(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),(0,s.O)(i.onResize,[this,a],this),this.attached&&this._doResize(h)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,s.D)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const i=e[t],s=jt(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),(0,s.D)(o,(e=>{const o=e.options,a=o.id,r=jt(a,o),h=(0,s.v)(o.type,e.dtype);void 0!==o.position&&te(o.position,r)===te(e.dposition)||(o.position=e.dposition),n[a]=!0;let l=null;if(a in i&&i[a].type===h)l=i[a];else{l=new(Vt.getScale(h))({id:a,type:h,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(o,t)})),(0,s.D)(n,((t,e)=>{t||delete i[e]})),(0,s.D)(i,(t=>{ht.configure(this,t,t.options),ht.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let s=0,l=this.data.datasets.length;s{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ee("z","_idx"));const{_active:r,_lastEvent:h}=this;h?this._eventHandler(h,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){(0,s.D)(this.scales,(t=>{ht.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(0,s.ae)(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e){re(t,s,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let o=1;ot.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ht.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],(0,s.D)(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(n&&(0,s.W)(e,{left:!1===i.left?0:o.left-i.left,right:!1===i.right?this.width:o.right+i.right,top:!1===i.top?0:o.top-i.top,bottom:!1===i.bottom?this.height:o.bottom+i.bottom}),t.controller.draw(),n&&(0,s.Y)(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}getElementsAtEventForMode(t,e,i,s){const n=G.modes[e];return"function"===typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=(0,s.h)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"===typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,n);(0,s.j)(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),a.update(o,{visible:i}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),n.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,s),t[i]=s},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,s.D)(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){(0,s.D)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,s.D)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!(0,s.af)(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:(0,s.z)(t,this.chartArea,this._minPadding)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const o=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(o||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:o}=this,a=e,r=this._getActiveElements(t,n,i,a),h=(0,s.ag)(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,h);i&&(this._lastEvent=null,(0,s.O)(o.onHover,[t,r,this],this),h&&(0,s.O)(o.onClick,[t,r,this],this));const c=!(0,s.af)(r,n);return(c||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}const le=()=>(0,s.D)(he.instances,(t=>t._plugins.invalidate())),ce=!0;function de(t,e,i){const{startAngle:n,pixelMargin:o,x:a,y:r,outerRadius:h,innerRadius:l}=e;let c=o/h;t.beginPath(),t.arc(a,r,h,n-c,i+c),l>o?(c=o/l,t.arc(a,r,l,i+c,n-c,!0)):t.arc(a,r,o,i+s.H,n-s.H),t.closePath(),t.clip()}function ue(t,e,i,n){const o=(a=t.options.borderRadius,(0,s.ai)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const r=(i-e)/2,h=Math.min(r,n*e/2),l=t=>{const e=(i-Math.min(r,t))*n/2;return(0,s.w)(t,0,Math.min(r,e))};return{outerStart:l(o.outerStart),outerEnd:l(o.outerEnd),innerStart:(0,s.w)(o.innerStart,0,h),innerEnd:(0,s.w)(o.innerEnd,0,h)}}function ge(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function pe(t,e,i,n,o){const{x:a,y:r,startAngle:h,pixelMargin:l,innerRadius:c}=e,d=Math.max(e.outerRadius+n+i-l,0),u=c>0?c+n+i+l:0;let g=0;const p=o-h;if(n){const t=((c>0?c-n:0)+(d>0?d-n:0))/2;g=(p-(0!==t?p*t/(t+n):p))/2}const f=(p-Math.max(.001,p*d-i/s.P)/d)/2,m=h+f+g,x=o-f-g,{outerStart:b,outerEnd:_,innerStart:y,innerEnd:v}=ue(e,u,d,x-m),k=d-b,w=d-_,M=m+b/k,D=x-_/w,S=u+y,P=u+v,C=m+y/S,A=x-v/P;if(t.beginPath(),t.arc(a,r,d,M,D),_>0){const e=ge(w,D,a,r);t.arc(e.x,e.y,_,D,x+s.H)}const L=ge(P,x,a,r);if(t.lineTo(L.x,L.y),v>0){const e=ge(P,A,a,r);t.arc(e.x,e.y,v,x+s.H,A+Math.PI)}if(t.arc(a,r,u,x-v/u,m+y/u,!0),y>0){const e=ge(S,C,a,r);t.arc(e.x,e.y,y,C+Math.PI,m-s.H)}const O=ge(k,m,a,r);if(t.lineTo(O.x,O.y),b>0){const e=ge(k,M,a,r);t.arc(e.x,e.y,b,m-s.H,M)}t.closePath()}function fe(t,e,i,n,o){const{options:a}=e,{borderWidth:r,borderJoinStyle:h}=a,l="inner"===a.borderAlign;r&&(l?(t.lineWidth=2*r,t.lineJoin=h||"round"):(t.lineWidth=r,t.lineJoin=h||"bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:o,startAngle:a,pixelMargin:r,fullCircles:h}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let d;for(i&&de(t,e,a+s.T),t.beginPath(),t.arc(n,o,c,a+s.T,a,!0),d=0;d{Vt.add(...t),le()}},unregister:{enumerable:ce,value:(...t)=>{Vt.remove(...t),le()}}});class me extends Dt{constructor(t){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,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:o,distance:a}=(0,s.B)(n,{x:t,y:e}),{startAngle:r,endAngle:h,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,g=(0,s.v)(d,h-r)>=s.T||(0,s.p)(o,r,h),p=(0,s.ah)(a,l+u,c+u);return g&&p}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:h}=this.options,l=(s+n)/2,c=(o+a+h+r)/2;return{x:e+Math.cos(l)*c,y:i+Math.sin(l)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,o=(e.spacing||0)/2;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>s.T?Math.floor(i/s.T):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(n){a=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=s.P&&(a=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,i,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let h=e.endAngle;if(o){pe(t,e,i,n,a+s.T);for(let e=0;er&&o>r;return{count:s,start:h,loop:e.loop,ilen:l(a+(l?r-t:t))%o,_=()=>{g!==p&&(t.lineTo(m,p),t.lineTo(m,g),t.lineTo(m,f))};for(h&&(d=n[b(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[b(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(ip&&(p=i),m=(x*m+e)/++x):(_(),t.lineTo(e,i),u=s,x=0,g=p=i),f=i}_()}function ke(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i?ve:ye}me.id="arc",me.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},me.defaultRoutes={backgroundColor:"backgroundColor"};const we="function"===typeof Path2D;function Me(t,e,i,s){we&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),xe(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=ke(e);for(const r of n)xe(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}class De extends Dt{constructor(t){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,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;(0,s.aj)(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,s.ak)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],o=this.points,a=(0,s.al)(this,{property:e,start:n,end:n});if(!a.length)return;const r=[],h=function(t){return t.stepped?s.am:t.tension||"monotone"===t.cubicInterpolationMode?s.an:s.ao}(i);let l,c;for(l=0,c=a.length;l"borderDash"!==t&&"fill"!==t};class Pe extends Dt{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.options,{x:n,y:o}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-o,2){Fe(t)}))}var Ve={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Ie(t);const n=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:a,indexAxis:r}=e,h=t.getDatasetMeta(o),l=a||e.data;if("y"===(0,s.a)([r,t.options.indexAxis]))return;if("line"!==h.type)return;const c=t.scales[h.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let n,o=0;const{iScale:a}=t,{min:r,max:h,minDefined:l,maxDefined:c}=a.getUserBounds();return l&&(o=(0,s.w)((0,s.x)(e,a.axis,r).lo,0,i-1)),n=c?(0,s.w)((0,s.x)(e,a.axis,h).hi+1,o,i)-o:i-o,{start:o,count:n}}(h,l);if(u<=(i.threshold||4*n))return void Fe(e);let g;switch((0,s.k)(a)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":g=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let h=0;const l=e+i-1;let c,d,u,g,p,f=e;for(a[h++]=t[f],c=0;cu&&(u=g,d=t[s],p=s);a[h++]=d,f=p}return a[h++]=t[l],a}(l,d,u,n,i);break;case"min-max":g=function(t,e,i,n){let o,a,r,h,l,c,d,u,g,p,f=0,m=0;const x=[],b=e+i-1,_=t[e].x,y=t[b].x-_;for(o=e;op&&(p=h,d=o),f=(m*f+a.x)/++m;else{const i=o-1;if(!(0,s.k)(c)&&!(0,s.k)(d)){const e=Math.min(c,d),s=Math.max(c,d);e!==u&&e!==i&&x.push({...t[e],x:f}),s!==u&&s!==i&&x.push({...t[s],x:f})}o>0&&i!==u&&x.push(t[i]),x.push(a),l=e,m=0,g=p=h,c=d=u=o}}return x}(l,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=g}))},destroy(t){Ie(t)}};function Be(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=(0,s.v)(i&&i.target,i);return void 0===n&&(n=!!e.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if((0,s.i)(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return(0,s.g)(o)&&Math.floor(o)===o?("-"!==n[0]&&"+"!==n[0]||(o=e+o),!(o===e||o<0||o>=i)&&o):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}class He{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:o,radius:a}=this;return e=e||{start:0,end:s.T},t.arc(n,o,a,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function We(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,n=e.options,o=e.getLabels().length,a=[],r=n.reverse?e.max:e.min,h=n.reverse?e.min:e.max;let l,c,d;if(d="start"===i?r:"end"===i?h:(0,s.i)(i)?i.value:e.getBaseValue(),n.grid.circular)return c=e.getPointPositionForValue(0,r),new He({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(d)});for(l=0;lt;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function je(t,e,i){const s=[];for(let n=0;n{e=Ne(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new De({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function Xe(t,e,i){let n=t[e].fill;const o=[e];let a;if(!i)return n;for(;!1!==n&&-1===o.indexOf(n);){if(!(0,s.g)(n))return n;if(a=t[n],!a)return!1;if(a.visible)return n;o.push(n),n=a.fill}return!1}function Ze(t,e,i){t.beginPath(),e.path(t),t.lineTo(e.last().x,i),t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Ge(t,e,i,n){if(n)return;let o=e[t],a=i[t];return"angle"===t&&(o=(0,s.aw)(o),a=(0,s.aw)(a)),{property:t,start:o,end:a}}function qe(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function Ke(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function Je(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}function Qe(t,e){const{line:i,target:n,property:o,color:a,scale:r}=e,h=function(t,e,i){const n=t.segments,o=t.points,a=e.points,r=[];for(const h of n){let{start:t,end:n}=h;n=Ne(t,n,o);const l=Ge(i,o[t],o[n],h.loop);if(!e.segments){r.push({source:h,target:l,start:o[t],end:o[n]});continue}const c=(0,s.al)(e,l);for(const e of c){const t=Ge(i,a[e.start],a[e.end],e.loop),n=(0,s.av)(h,o,t);for(const s of n)r.push({source:s,target:e,start:{[i]:qe(l,t,"start",Math.max)},end:{[i]:qe(l,t,"end",Math.min)}})}}return r}(i,n,o);for(const{source:s,target:l,start:c,end:d}of h){const{style:{backgroundColor:e=a}={}}=s,h=!0!==n;t.save(),t.fillStyle=e,Ke(t,r,h&&Ge(o,c,d)),t.beginPath();const u=!!i.pathSegment(t,s);let g;if(h){u?t.closePath():Je(t,n,d,o);const e=!!n.pathSegment(t,l,{move:u,reverse:!0});g=u&&e,g||Je(t,n,c,o)}t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}function ti(t,e,i){const n=Ue(e),{line:o,scale:a,axis:r}=e,h=o.options,l=h.fill,c=h.backgroundColor,{above:d=c,below:u=c}=l||{};n&&o.points.length&&((0,s.W)(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,h=i._loop?"angle":e.axis;t.save(),"x"===h&&o!==n&&(Ze(t,s,a.top),Qe(t,{line:i,target:s,color:n,scale:r,property:h}),t.restore(),t.save(),Ze(t,s,a.bottom)),Qe(t,{line:i,target:s,color:o,scale:r,property:h}),t.restore()}(t,{line:o,target:n,above:d,below:u,area:i,scale:a,axis:r}),(0,s.Y)(t))}var ei={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,h;for(a=0;a=0;--a){const e=n[a].$filler;e&&(e.line.updateControlPoints(o,e.axis),s&&ti(t.ctx,e,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){const e=s[n].$filler;e&&ti(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;s&&!1!==s.fill&&"beforeDatasetDraw"===i.drawTime&&ti(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ii=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class si extends Dt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,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(){const t=this.options.labels||{};let e=(0,s.O)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=(0,s.Z)(i.font),o=n.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:h}=ii(i,o);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,r,h)+10):(c=this.maxHeight,l=this._fitCols(a,o,r,h)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],h=this.lineWidths=[0],l=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-l;return this.legendItems.forEach(((t,g)=>{const p=i+e/2+n.measureText(t.text).width;(0===g||h[h.length-1]+p+2*a>o)&&(c+=l,h[h.length-(g>0?0:1)]=0,u+=l,d++),r[g]={left:0,top:u,row:d,width:p,height:s},h[h.length-1]+=p+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],h=this.columnSizes=[],l=o-t;let c=a,d=0,u=0,g=0,p=0;return this.legendItems.forEach(((t,o)=>{const f=i+e/2+n.measureText(t.text).width;o>0&&u+s+2*a>l&&(c+=d+a,h.push({width:d,height:u}),g+=d+a,p++,d=u=0),r[o]={left:g,top:u,col:p,width:f,height:s},d=Math.max(d,f),u+=s+a})),c+=d,h.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:o}}=this,a=(0,s.ax)(o,this.left,this.width);if(this.isHorizontal()){let o=0,r=(0,s.a0)(i,this.left+n,this.right-this.lineWidths[o]);for(const h of e)o!==h.row&&(o=h.row,r=(0,s.a0)(i,this.left+n,this.right-this.lineWidths[o])),h.top+=this.top+t+n,h.left=a.leftForLtr(a.x(r),h.width),r+=h.width+n}else{let o=0,r=(0,s.a0)(i,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const h of e)h.col!==o&&(o=h.col,r=(0,s.a0)(i,this.top+t+n,this.bottom-this.columnSizes[o].height)),h.top=r,h.left+=this.left+n,h.left=a.leftForLtr(a.x(h.left),h.width),r+=h.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,s.W)(t,this),this._draw(),(0,s.Y)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:o,labels:a}=t,r=s.d.color,h=(0,s.ax)(t.rtl,this.left,this.width),l=(0,s.Z)(a.font),{color:c,padding:d}=a,u=l.size,g=u/2;let p;this.drawTitle(),n.textAlign=h.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:x}=ii(a,u),b=this.isHorizontal(),_=this._computeTitleHeight();p=b?{x:(0,s.a0)(o,this.left+d,this.right-i[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:(0,s.a0)(o,this.top+_+d,this.bottom-e[0].height),line:0},(0,s.ay)(this.ctx,t.textDirection);const y=x+d;this.legendItems.forEach(((v,k)=>{n.strokeStyle=v.fontColor||c,n.fillStyle=v.fontColor||c;const w=n.measureText(v.text).width,M=h.textAlign(v.textAlign||(v.textAlign=a.textAlign)),D=f+g+w;let S=p.x,P=p.y;h.setWidth(this.width),b?k>0&&S+D+d>this.right&&(P=p.y+=y,p.line++,S=p.x=(0,s.a0)(o,this.left+d,this.right-i[p.line])):k>0&&P+y>this.bottom&&(S=p.x=S+e[p.line].width+d,p.line++,P=p.y=(0,s.a0)(o,this.top+_+d,this.bottom-e[p.line].height));!function(t,e,i){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;n.save();const o=(0,s.v)(i.lineWidth,1);if(n.fillStyle=(0,s.v)(i.fillStyle,r),n.lineCap=(0,s.v)(i.lineCap,"butt"),n.lineDashOffset=(0,s.v)(i.lineDashOffset,0),n.lineJoin=(0,s.v)(i.lineJoin,"miter"),n.lineWidth=o,n.strokeStyle=(0,s.v)(i.strokeStyle,r),n.setLineDash((0,s.v)(i.lineDash,[])),a.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:o},r=h.xPlus(t,f/2),l=e+g;(0,s.ar)(n,a,r,l)}else{const a=e+Math.max((u-m)/2,0),r=h.leftForLtr(t,f),l=(0,s.au)(i.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?(0,s.as)(n,{x:r,y:a,w:f,h:m,radius:l}):n.rect(r,a,f,m),n.fill(),0!==o&&n.stroke()}n.restore()}(h.x(S),P,v),S=(0,s.az)(M,S+f+g,b?S+D:this.right,t.rtl),function(t,e,i){(0,s.X)(n,i.text,t,e+x/2,l,{strikethrough:i.hidden,textAlign:h.textAlign(i.textAlign)})}(h.x(S),P,v),b?p.x+=D+d:p.y+=y})),(0,s.aA)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=(0,s.Z)(e.font),n=(0,s.C)(e.padding);if(!e.display)return;const o=(0,s.ax)(t.rtl,this.left,this.width),a=this.ctx,r=e.position,h=i.size/2,l=n.top+h;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=(0,s.a0)(t.align,d,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+(0,s.a0)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const g=(0,s.a0)(r,d,d+u);a.textAlign=o.textAlign((0,s.$)(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,(0,s.X)(a,e.text,g,c,i)}_computeTitleHeight(){const t=this.options.title,e=(0,s.Z)(t.font),i=(0,s.C)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,o;if((0,s.ah)(t,this.left,this.right)&&(0,s.ah)(e,this.top,this.bottom))for(o=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const r=t.controller.getStyle(i?0:void 0),h=(0,s.C)(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:r.borderColor,pointStyle:n||r.pointStyle,rotation:r.rotation,textAlign:o||r.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class oi extends Dt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=(0,s.b)(i.text)?i.text.length:1;this._padding=(0,s.C)(i.padding);const o=n*(0,s.Z)(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:o,options:a}=this,r=a.align;let h,l,c,d=0;return this.isHorizontal()?(l=(0,s.a0)(r,i,o),c=e+t,h=o-i):("left"===a.position?(l=i+t,c=(0,s.a0)(r,n,e),d=-.5*s.P):(l=o-t,c=(0,s.a0)(r,e,n),d=.5*s.P),h=n-e),{titleX:l,titleY:c,maxWidth:h,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=(0,s.Z)(e.font),n=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:r,rotation:h}=this._drawArgs(n);(0,s.X)(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:h,textAlign:(0,s.$)(e.align),textBaseline:"middle",translation:[o,a]})}}var ai={id:"title",_element:oi,start(t,e,i){!function(t,e){const i=new oi({ctx:t.ctx,options:e,chart:t});ht.configure(t,i,e),ht.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;ht.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;ht.configure(t,s,i),s.options=i},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}};const ri=new WeakMap;var hi={id:"subtitle",start(t,e,i){const s=new oi({ctx:t.ctx,options:i,chart:t});ht.configure(t,s,i),ht.addBox(t,s),ri.set(t,s)},stop(t){ht.removeBox(t,ri.get(t)),ri.delete(t)},beforeUpdate(t,e,i){const s=ri.get(t);ht.configure(t,s,i),s.options=i},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}};const li={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e-1?t.split("\n"):t}function ui(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function gi(t,e){const i=t.chart.ctx,{body:n,footer:o,title:a}=t,{boxWidth:r,boxHeight:h}=e,l=(0,s.Z)(e.bodyFont),c=(0,s.Z)(e.titleFont),d=(0,s.Z)(e.footerFont),u=a.length,g=o.length,p=n.length,f=(0,s.C)(e.padding);let m=f.height,x=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){m+=p*(e.displayColors?Math.max(h,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}g&&(m+=e.footerMarginTop+g*d.lineHeight+(g-1)*e.footerSpacing);let _=0;const y=function(t){x=Math.max(x,i.measureText(t).width+_)};return i.save(),i.font=c.string,(0,s.D)(t.title,y),i.font=l.string,(0,s.D)(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?r+2+e.boxPadding:0,(0,s.D)(n,(t=>{(0,s.D)(t.before,y),(0,s.D)(t.lines,y),(0,s.D)(t.after,y)})),_=0,i.font=d.string,(0,s.D)(t.footer,y),i.restore(),x+=f.width,{width:x,height:m}}function pi(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:h}}=t;let l="center";return"center"===s?l=n<=(r+h)/2?"left":"right":n<=o/2?l="left":n>=a-o/2&&(l="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(l,t,e,i)&&(l="center"),l}function fi(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return it.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||pi(t,e,i,s),yAlign:s}}function mi(t,e,i,n){const{caretSize:o,caretPadding:a,cornerRadius:r}=t,{xAlign:h,yAlign:l}=i,c=o+a,{topLeft:d,topRight:u,bottomLeft:g,bottomRight:p}=(0,s.au)(r);let f=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,h);const m=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,c);return"center"===l?"left"===h?f+=c:"right"===h&&(f-=c):"left"===h?f-=Math.max(d,g)+o:"right"===h&&(f+=Math.max(u,p)+o),{x:(0,s.w)(f,0,n.width-e.width),y:(0,s.w)(m,0,n.height-e.height)}}function xi(t,e,i){const n=(0,s.C)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function bi(t){return ci([],di(t))}function _i(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class yi extends Dt{constructor(t){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=t.chart||t._chart,this._chart=this.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new l(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,(0,s.h)(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let a=[];return a=ci(a,di(s)),a=ci(a,di(n)),a=ci(a,di(o)),a}getBeforeBody(t,e){return bi(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return(0,s.D)(t,(t=>{const e={before:[],lines:[],after:[]},s=_i(i,t);ci(e.before,di(s.beforeLabel.call(this,t))),ci(e.lines,s.label.call(this,t)),ci(e.after,di(s.afterLabel.call(this,t))),n.push(e)})),n}getAfterBody(t,e){return bi(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let a=[];return a=ci(a,di(s)),a=ci(a,di(n)),a=ci(a,di(o)),a}_createItems(t){const e=this._active,i=this.chart.data,n=[],o=[],a=[];let r,h,l=[];for(r=0,h=e.length;rt.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),(0,s.D)(l,(e=>{const i=_i(t.callbacks,e);n.push(i.labelColor.call(this,e)),o.push(i.labelPointStyle.call(this,e)),a.push(i.labelTextColor.call(this,e))})),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=li[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=gi(this,i),a=Object.assign({},t,e),r=fi(this.chart,i,a),h=mi(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:h.x,y:h.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:o}=this,{caretSize:a,cornerRadius:r}=i,{topLeft:h,topRight:l,bottomLeft:c,bottomRight:d}=(0,s.au)(r),{x:u,y:g}=t,{width:p,height:f}=e;let m,x,b,_,y,v;return"center"===o?(y=g+f/2,"left"===n?(m=u,x=m-a,_=y+a,v=y-a):(m=u+p,x=m+a,_=y-a,v=y+a),b=m):(x="left"===n?u+Math.max(h,c)+a:"right"===n?u+p-Math.max(l,d)-a:this.caretX,"top"===o?(_=g,y=_-a,m=x-a,b=x+a):(_=g+f,y=_+a,m=x+a,b=x-a),v=_),{x1:m,x2:x,x3:b,y1:_,y2:y,y3:v}}drawTitle(t,e,i){const n=this.title,o=n.length;let a,r,h;if(o){const l=(0,s.ax)(i.rtl,this.x,this.width);for(t.x=xi(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",a=(0,s.Z)(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=a.string,h=0;h0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,s.as)(t,{x:e,y:f,w:l,h:h,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),(0,s.as)(t,{x:i,y:f+1,w:l-2,h:h-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,h),t.strokeRect(e,f,l,h),t.fillStyle=a.backgroundColor,t.fillRect(i,f+1,l-2,h-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:o,bodyAlign:a,displayColors:r,boxHeight:h,boxWidth:l,boxPadding:c}=i,d=(0,s.Z)(i.bodyFont);let u=d.lineHeight,g=0;const p=(0,s.ax)(i.rtl,this.x,this.width),f=function(i){e.fillText(i,p.x(t.x+g),t.y+u/2),t.y+=u+o},m=p.textAlign(a);let x,b,_,y,v,k,w;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=xi(this,m,i),e.fillStyle=i.bodyColor,(0,s.D)(this.beforeBody,f),g=r&&"right"!==m?"center"===a?l/2+c:l+2+c:0,y=0,k=n.length;y0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=li[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=gi(this,t),a=Object.assign({},i,this._size),r=fi(e,t,a),h=mi(t,a,r,e);s._to===h.x&&n._to===h.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,h))}}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=(0,s.C)(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,n,e),(0,s.ay)(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,s.aA)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),o=!(0,s.af)(i,n),a=this._positionChanged(n,e);(o||a)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,i),r=this._positionChanged(a,t),h=e||!(0,s.af)(a,o)||r;return h&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),h}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e;const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=li[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}yi.positioners=li;var vi={id:"tooltip",_element:yi,positioners:li,afterInit(t,e,i){i&&(t.tooltip=new yi({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip,i={tooltip:e};!1!==t.notifyPlugins("beforeTooltipDraw",i)&&(e&&e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i))},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:{beforeTitle:s.aB,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},ki=Object.freeze({__proto__:null,Decimation:Ve,Filler:ei,Legend:ni,SubTitle:hi,Title:ai,Tooltip:vi});function wi(t,e,i,s){const n=t.indexOf(e);if(-1===n)return((t,e,i,s)=>("string"===typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s);return n!==t.lastIndexOf(e)?i:n}class Mi extends Ft{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,s.k)(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:(0,s.w)(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:wi(i,t,(0,s.v)(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)s.push({value:o});return s}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Di(t,e,{horizontal:i,minRotation:n}){const o=(0,s.t)(n),a=(i?Math.sin(o):Math.cos(o))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}Mi.id="category",Mi.defaults={ticks:{callback:Mi.prototype.getLabelForValue}};class Si extends Ft{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,s.k)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:o}=this;const a=t=>n=e?n:t,r=t=>o=i?o:t;if(t){const t=(0,s.s)(n),e=(0,s.s)(o);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(n===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),r(o+e),t||a(n-e)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(t,e){const i=[],{bounds:n,step:o,min:a,max:r,precision:h,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=t,g=o||1,p=c-1,{min:f,max:m}=e,x=!(0,s.k)(a),b=!(0,s.k)(r),_=!(0,s.k)(l),y=(m-f)/(d+1);let v,k,w,M,D=(0,s.aE)((m-f)/p/g)*g;if(D<1e-14&&!x&&!b)return[{value:f},{value:m}];M=Math.ceil(m/D)-Math.floor(f/D),M>p&&(D=(0,s.aE)(M*D/p/g)*g),(0,s.k)(h)||(v=Math.pow(10,h),D=Math.ceil(D*v)/v),"ticks"===n?(k=Math.floor(f/D)*D,w=Math.ceil(m/D)*D):(k=f,w=m),x&&b&&o&&(0,s.aF)((r-a)/o,D/1e3)?(M=Math.round(Math.min((r-a)/D,c)),D=(r-a)/M,k=a,w=r):_?(k=x?a:k,w=b?r:w,M=l-1,D=(w-k)/M):(M=(w-k)/D,M=(0,s.aG)(M,Math.round(M),D/1e3)?Math.round(M):Math.ceil(M));const S=Math.max((0,s.aH)(D),(0,s.aH)(k));v=Math.pow(10,(0,s.k)(h)?S:h),k=Math.round(k*v)/v,w=Math.round(w*v)/v;let P=0;for(x&&(u&&k!==a?(i.push({value:a}),k0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,s.g)(t)?Math.max(0,t):null,this.max=(0,s.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const o=e=>i=t?i:e,a=t=>n=e?n:t,r=(t,e)=>Math.pow(10,Math.floor((0,s.L)(t))+e);i===n&&(i<=0?(o(1),a(10)):(o(r(i,-1)),a(r(n,1)))),i<=0&&o(r(n,-1)),n<=0&&a(r(i,1)),this._zero&&this.min!==this._suggestedMin&&i===r(this.min,0)&&o(r(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor((0,s.L)(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),o=[];let a=(0,s.N)(t.min,Math.pow(10,Math.floor((0,s.L)(e.min)))),r=Math.floor((0,s.L)(a)),h=Math.floor(a/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:a,major:Ci(a)}),++h,10===h&&(h=1,++r,l=r>=0?1:l),a=Math.round(h*Math.pow(10,r)*l)/l}while(rn?{start:e-i,end:e}:{start:e,end:e+i}}function Ti(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],o=[],a=t._pointLabels.length,r=t.options.pointLabels,h=r.centerPointLabels?s.P/a:0;for(let u=0;ue.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.starte.b&&(h=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+h))}function Ri(t){return 0===t||180===t?"center":t<180?"left":"right"}function zi(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Fi(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function Ii(t,e,i,n){const{ctx:o}=t;if(i)o.arc(t.xCenter,t.yCenter,e,0,s.T);else{let i=t.getPointPosition(0,e);o.moveTo(i.x,i.y);for(let s=1;s{const i=(0,s.O)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Ti(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){const e=s.T/(this._pointLabels.length||1),i=this.options.startAngle||0;return(0,s.aw)(t*e+(0,s.t)(i))}getDistanceFromCenterForValue(t){if((0,s.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,s.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t=0;o--){const e=n.setContext(t.getPointLabelContext(o)),a=(0,s.Z)(e.font),{x:r,y:h,textAlign:l,left:c,top:d,right:u,bottom:g}=t._pointLabelItems[o],{backdropColor:p}=e;if(!(0,s.k)(p)){const t=(0,s.C)(e.backdropPadding);i.fillStyle=p,i.fillRect(c-t.left,d-t.top,u-c+t.width,g-d+t.height)}(0,s.X)(i,t._pointLabels[o],r,h+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,s){const n=t.ctx,o=e.circular,{color:a,lineWidth:r}=e;!o&&!s||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),Ii(t,i,o,s),n.closePath(),n.stroke(),n.restore())}(this,n.setContext(this.getContext(e-1)),r,o)}})),i.display){for(t.save(),a=o-1;a>=0;a--){const s=i.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:o}=s;o&&n&&(t.lineWidth=o,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),h=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!e.reverse)return;const h=i.setContext(this.getContext(r)),l=(0,s.Z)(h.font);if(o=this.getDistanceFromCenterForValue(this.ticks[r].value),h.showLabelBackdrop){t.font=l.string,a=t.measureText(n.label).width,t.fillStyle=h.backdropColor;const e=(0,s.C)(h.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}(0,s.X)(t,n.label,0,-o,l,{color:h.color})})),t.restore()}drawTitle(){}}Vi.id="radialLinear",Vi.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Pt.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Vi.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Vi.descriptors={angleLines:{_fallback:"grid"}};const Bi={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}},Hi=Object.keys(Bi);function Wi(t,e){return t-e}function Ni(t,e){if((0,s.k)(e))return null;const i=t._adapter,{parser:n,round:o,isoWeekday:a}=t._parseOpts;let r=e;return"function"===typeof n&&(r=n(r)),(0,s.g)(r)||(r="string"===typeof n?i.parse(r,n):i.parse(r)),null===r?null:(o&&(r="week"!==o||!(0,s.q)(a)&&!0!==a?i.startOf(r,o):i.startOf(r,"isoWeek",a)),+r)}function ji(t,e,i,s){const n=Hi.length;for(let o=Hi.indexOf(t);o=e?i[n]:i[o]]=!0}}else t[e]=!0}function Ui(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a=0&&(e[h].major=!0);return e}(t,s,n,i):s}class Yi extends Ft{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),n=this._adapter=new W._date(t.adapters.date);(0,s.a9)(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Ni(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:o,minDefined:a,maxDefined:r}=this.getUserBounds();function h(t){a||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(o=Math.max(o,t.max))}a&&r||(h(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||h(this.getMinMax(!1))),n=(0,s.g)(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),o=(0,s.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,o-1),this.max=Math.max(n+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const o=this.min,a=this.max,r=(0,s.aJ)(n,o,a);return this._unit=e.unit||(i.autoSkip?ji(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,i,s,n){for(let o=Hi.length-1;o>=Hi.indexOf(i);o--){const i=Hi[o];if(Bi[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Hi[i?Hi.indexOf(i):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Hi.indexOf(t)+1,i=Hi.length;e1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+a);const p="data"===n.ticks.source&&this.getDataTimestamps();for(d=g,u=0;dt-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const o=this.options,a=o.time.displayFormats,r=this._unit,h=this._majorUnit,l=r&&a[r],c=h&&a[h],d=i[e],u=h&&c&&d&&d.major,g=this._adapter.format(t,n||(u?c:l)),p=o.ticks.callback;return p?(0,s.O)(p,[g,e,i],this):g}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t=t[h].pos&&e<=t[l].pos&&({lo:h,hi:l}=(0,s.x)(t,"pos",e)),({pos:n,time:a}=t[h]),({pos:o,time:r}=t[l])):(e>=t[h].time&&e<=t[l].time&&({lo:h,hi:l}=(0,s.x)(t,"time",e)),({time:n,pos:a}=t[h]),({time:o,pos:r}=t[l]));const c=o-n;return c?a+(r-a)*(e-n)/c:a}Yi.id="time",Yi.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Zi extends Yi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Xi(e,this.min),this._tableRange=Xi(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,h,l;for(o=0,a=t.length;o=e&&h<=i&&s.push(h);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;os({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=s.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const o="transparent",a={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=(0,s.c)(t||o),a=n.valid&&(0,s.c)(e||o);return a&&a.valid?a.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class r{constructor(t,e,i,n){const o=e[i];n=(0,s.a)([t.to,n,o,t.from]);const r=(0,s.a)([t.from,o,n]);this._active=!0,this._fn=t.fn||a[t.type||typeof r],this._easing=s.e[t.easing]||s.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=(0,s.a)([t.to,e,n,t.from]),this._from=(0,s.a)([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let s=0;s"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),s.d.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),s.d.describe("animations",{_fallback:"animation"}),s.d.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}}}});class l{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,s.i)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const n=t[i];if(!(0,s.i)(n))return;const o={};for(const t of h)o[t]=n[t];((0,s.b)(n.properties)&&n.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let n=0;n{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let h;for(h=o.length-1;h>=0;--h){const l=o[h];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const c=e[l];let d=n[l];const u=i.get(l);if(d){if(u&&d.active()){d.update(u,c,a);continue}d.cancel()}u&&u.duration?(n[l]=d=new r(u,t,l,c),s.push(d)):t[l]=c}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(n.add(this._chart,i),!0):void 0}}function c(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function d(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n0||!i&&e<0)return n.index}return null}function m(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,h=o.axis,l=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let g=0;gi[t].axis===e)).shift()}function b(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const _=t=>"reset"===t||"none"===t,y=(t,e)=>e?t:Object.assign({},t);class v{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=g(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&b(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,o=e.xAxisID=(0,s.v)(i.xAxisID,x(t,"x")),a=e.yAxisID=(0,s.v)(i.yAxisID,x(t,"y")),r=e.rAxisID=(0,s.v)(i.rAxisID,x(t,"r")),h=e.indexAxis,l=e.iAxisID=n(h,o,a,r),c=e.vAxisID=n(h,a,o,r);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,s.u)(this._data,this),t._stacked&&b(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if((0,s.i)(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,c=n;else{c=(0,s.b)(n[t])?this.parseArrayData(i,n,t,e):(0,s.i)(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const o=()=>null===l[r]||u&&l[r]t&&!e.hidden&&e._stacked&&{keys:d(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let g,p;function f(){p=n[g];const e=p[r.axis];return!(0,s.g)(p[t.axis])||c>e||u=0;--g)if(!f()){this.updateRangeFromParsed(l,t,p,h);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,o,a;for(n=0,o=e.length;n=0&&tthis.getContext(i,n)),d);return p.$shared&&(p.$shared=h,o[a]=Object.freeze(y(p,h))),p}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const h=new l(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||_(t)||this.chart._animationsDisabled}updateElement(t,e,i,s){_(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!_(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[a,r,h]of this._syncList)this[a](r,h);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;at-e)))}return t._cache.$bar}(e,t.type);let n,o,a,r,h=e._length;const l=()=>{32767!==a&&-32768!==a&&((0,s.j)(r)&&(h=Math.min(h,Math.abs(a-r)||h)),r=a)};for(n=0,o=i.length;nMath.abs(r)&&(h=r,l=a),e[i.axis]=l,e._custom={barStart:h,barEnd:l,start:n,end:o,min:a,max:r}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function k(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,h=[];let l,c,d,u;for(l=i,c=i+s;lt.x,i="left",s="right"):(e=t.base=i?1:-1)}(d,e,a)*o,u===a&&(m-=d/2),c=m+d),m===e.getPixelForValue(a)){const t=(0,s.s)(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,o=n.skipNull,a=(0,s.v)(n.maxBarThickness,1/0);let r,h;if(e.grouped){const i=o?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),o=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+o+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a}=this._cachedMeta,r=this.resolveDataElementOptions(e,s),h=this.getSharedOptions(r),l=this.includeOptions(s,h),c=o.axis,d=a.axis;for(let u=e;u""}}}};class O extends v{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let o,a,r=t=>+i[t];if((0,s.i)(i[t])){const{key:t="value"}=this._parsing;r=e=>+(0,s.f)(i[e],t)}for(o=t,a=t+e;o(0,s.p)(t,h,l,!0)?1:Math.max(e,e*i,n,n*i),f=(t,e,n)=>(0,s.p)(t,h,l,!0)?-1:Math.min(e,e*i,n,n*i),m=p(0,c,u),x=p(s.H,d,g),b=f(s.P,c,u),_=f(s.P+s.H,d,g);n=(m-b)/2,o=(x-_)/2,a=-(m+b)/2,r=-(x+_)/2}return{ratioX:n,ratioY:o,offsetX:a,offsetY:r}}(d,c,h),m=(i.width-a)/u,x=(i.height-a)/g,b=Math.max(Math.min(m,x)/2,0),_=(0,s.n)(this.options.radius,b),y=(_-Math.max(_*h,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*_,this.offsetY=f*_,n.total=this.calculateTotal(),this.outerRadius=_-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*l,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,o=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*o/s.T)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,h=(a.left+a.right)/2,l=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,g=this.resolveDataElementOptions(e,s),p=this.getSharedOptions(g),f=this.includeOptions(s,p);let m,x=this._getRotation();for(m=0;m0&&!isNaN(t)?s.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],o=(0,s.o)(e._parsed[t],i.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s"spacing"!==t,_indexable:t=>"spacing"!==t},O.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return(0,s.b)(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class E extends v{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:r,count:h}=function(t,e,i){const n=e.length;let o=0,a=n;if(t._sorted){const{iScale:r,_parsed:h}=t,l=r.axis,{min:c,max:d,minDefined:u,maxDefined:g}=r.getUserBounds();u&&(o=(0,s.w)(Math.min((0,s.x)(h,r.axis,c).lo,i?n:(0,s.x)(e,l,r.getPixelForValue(c)).lo),0,n-1)),a=g?(0,s.w)(Math.max((0,s.x)(h,r.axis,d).hi+1,i?0:(0,s.x)(e,l,r.getPixelForValue(d)).hi+1),o,n)-o:n-o}return{start:o,count:a}}(e,n,a);this._drawStart=r,this._drawCount=h,function(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const o=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),o}(e)&&(r=0,h=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:l},t),this.updateElements(n,r,h,t)}updateElements(t,e,i,n){const o="reset"===n,{iScale:a,vScale:r,_stacked:h,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),d=this.getSharedOptions(c),u=this.includeOptions(n,d),g=a.axis,p=r.axis,{spanGaps:f,segment:m}=this.options,x=(0,s.q)(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===n;let _=e>0&&this.getParsed(e-1);for(let y=e;y0&&i[g]-_[g]>x,m&&(c.parsed=i,c.raw=l.data[y]),u&&(c.options=d||this.resolveDataElementOptions(y,e.active?"active":n)),b||this.updateElement(e,y,c,n),_=i}this.updateSharedOptions(d,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}E.id="line",E.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},E.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class R extends v{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],o=(0,s.o)(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:o}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const o="reset"===n,a=this.chart,r=this.getDataset(),h=a.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,d=l.yCenter,u=l.getIndexAngle(0)-.5*s.P;let g,p=u;const f=360/this.countVisibleElements();for(g=0;g{!isNaN(t.data[s])&&this.chart.getDataVisibility(s)&&i++})),i}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,s.t)(this.resolveDataElementOptions(t,e).angle||i):0}}R.id="polarArea",R.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},R.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class z extends O{}z.id="pie",z.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class F extends v{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this.getDataset(),o=this._cachedMeta.rScale,a="reset"===s;for(let r=e;r"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var V=Object.freeze({__proto__:null,BarController:L,BubbleController:T,DoughnutController:O,LineController:E,PolarAreaController:R,PieController:z,RadarController:F,ScatterController:I});function B(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class N{constructor(t){this.options=t||{}}formats(){return B()}parse(t,e){return B()}format(t,e){return B()}add(t,e,i){return B()}diff(t,e,i){return B()}startOf(t,e,i){return B()}endOf(t,e){return B()}}N.override=function(t){Object.assign(N.prototype,t)};var W={_date:N};function H(t,e){return"native"in t?{x:t.x,y:t.y}:(0,s.y)(t,e)}function j(t,e,i,n){const{controller:o,data:a,_sorted:r}=t,h=o._cachedMeta.iScale;if(h&&e===h.axis&&r&&a.length){const t=h._reversePixels?s.A:s.x;if(!n)return t(a,e,i);if(o._sharedOptions){const s=a[0],n="function"===typeof s.getRange&&s.getRange(e);if(n){const s=t(a,e,i-n),o=t(a,e,i+n);return{lo:s.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function $(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let r=0,h=o.length;r{t[r](n[a],s)&&o.push({element:t,datasetIndex:e,index:i}),t.inRange(n.x,n.y,s)&&(h=!0)})),i.intersect&&!h?[]:o}var K={modes:{index(t,e,i,s){const n=H(e,t),o=i.axis||"x",a=i.intersect?U(t,n,o,s):Y(t,n,o,!1,s),r=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&r.push({element:i,datasetIndex:t.index,index:e})})),r):[]},dataset(t,e,i,s){const n=H(e,t),o=i.axis||"xy";let a=i.intersect?U(t,n,o,s):Y(t,n,o,!1,s);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;tU(t,H(e,t),i.axis||"xy",s),nearest:(t,e,i,s)=>Y(t,H(e,t),i.axis||"xy",i.intersect,s),x:(t,e,i,s)=>X(t,e,{axis:"x",intersect:i.intersect},s),y:(t,e,i,s)=>X(t,e,{axis:"y",intersect:i.intersect},s)}};const q=["left","top","right","bottom"];function G(t,e){return t.filter((t=>t.pos===e))}function J(t,e){return t.filter((t=>-1===q.indexOf(t.pos)&&t.box.axis===e))}function Z(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Q(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!q.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o{s[t]=Math.max(e[t],i[t])})),s}return s(t?["left","right"]:["top","bottom"])}function nt(t,e,i,s){const n=[];let o,a,r,h,l,c;for(o=0,a=t.length,l=0;ot.box.fullSize)),!0),s=Z(G(e,"left"),!0),n=Z(G(e,"right")),o=Z(G(e,"top"),!0),a=Z(G(e,"bottom")),r=J(e,"x"),h=J(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(h).concat(a).concat(r),chartArea:G(e,"chartArea"),vertical:s.concat(n).concat(h),horizontal:o.concat(a).concat(r)}}(t.boxes),l=h.vertical,c=h.horizontal;(0,s.C)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const d=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:o,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),g=Object.assign({},o);et(g,(0,s.B)(n));const p=Object.assign({maxPadding:g,w:a,h:r,x:o.left,y:o.top},o),f=Q(l.concat(c),u);nt(h.fullSize,p,u,f),nt(l,p,u,f),nt(c,p,u,f)&&nt(l,p,u,f),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),at(h.leftAndTop,p,u,f),p.x+=p.w,p.y+=p.h,at(h.rightAndBottom,p,u,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,s.C)(h.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class ht{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class lt extends ht{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ct={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dt=t=>null===t||""===t;const ut=!!s.I&&{passive:!0};function gt(t,e,i){t.canvas.removeEventListener(e,i,ut)}function pt(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function ft(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||pt(i.addedNodes,s),e=e&&!pt(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function mt(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||pt(i.removedNodes,s),e=e&&!pt(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const xt=new Map;let bt=0;function _t(){const t=window.devicePixelRatio;t!==bt&&(bt=t,xt.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function yt(t,e,i){const n=t.canvas,o=n&&(0,s.E)(n);if(!o)return;const a=(0,s.G)(((t,e)=>{const s=o.clientWidth;i(t,e),s{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||a(i,s)}));return r.observe(o),function(t,e){xt.size||window.addEventListener("resize",_t),xt.set(t,e)}(t,a),r}function vt(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){xt.delete(t),xt.size||window.removeEventListener("resize",_t)}(t)}function Mt(t,e,i){const n=t.canvas,o=(0,s.G)((e=>{null!==t.ctx&&i(function(t,e){const i=ct[t.type]||t.type,{x:n,y:o}=(0,s.y)(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,ut)}(n,e,o),o}class wt extends ht{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t.$chartjs={initial:{height:n,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",dt(o)){const e=(0,s.F)(t,"width");void 0!==e&&(t.width=e)}if(dt(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,s.F)(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const i=e.$chartjs.initial;["height","width"].forEach((t=>{const n=i[t];(0,s.k)(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:ft,detach:mt,resize:yt}[e]||Mt;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:vt,detach:vt,resize:vt}[e]||gt)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return(0,s.D)(t,e,i,n)}isAttached(t){const e=(0,s.E)(t);return!(!e||!e.isConnected)}}class kt{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return(0,s.q)(this.x)&&(0,s.q)(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}kt.defaults={},kt.defaultRoutes=void 0;const St={values:t=>(0,s.b)(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let o,a=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const r=(0,s.K)(Math.abs(a)),h=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:h,maximumFractionDigits:h};return Object.assign(l,this.options.ticks.format),(0,s.o)(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor((0,s.K)(t)));return 1===n||2===n||5===n?St.numeric.call(this,t,e,i):""}};var Dt={formatters:St};function Ct(t,e){const i=t.options.ticks,n=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),o=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;in)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;no)return t}return Math.max(o,1)}(o,e,n);if(a>0){let t,i;const n=a>1?Math.round((h-r)/(a-1)):null;for(Pt(e,l,c,(0,s.k)(n)?0:r-n,r),t=0,i=a-1;te.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:Dt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),s.d.route("scale.ticks","color","","color"),s.d.route("scale.grid","color","","borderColor"),s.d.route("scale.grid","borderColor","","borderColor"),s.d.route("scale.title","color","","color"),s.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),s.d.describe("scales",{_fallback:"scale"}),s.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const At=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function Lt(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;oa+r)))return l}function Ot(t){return t.drawTicks?t.tickLength:0}function Et(t,e){if(!t.display)return 0;const i=(0,s.Y)(t.font,e),n=(0,s.B)(t.padding);return((0,s.b)(t.text)?t.text.length:1)*i.lineHeight+n.height}function Rt(t,e,i){let n=(0,s.Z)(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class zt extends kt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.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(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=(0,s.M)(t,Number.POSITIVE_INFINITY),e=(0,s.M)(e,Number.NEGATIVE_INFINITY),i=(0,s.M)(i,Number.POSITIVE_INFINITY),n=(0,s.M)(n,Number.NEGATIVE_INFINITY),{min:(0,s.M)(t,i),max:(0,s.M)(e,n),minDefined:(0,s.g)(t),maxDefined:(0,s.g)(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let s=0,h=r.length;sn?n:i,n=o&&i>n?i:n,{min:(0,s.M)(i,(0,s.M)(n,i)),max:(0,s.M)(n,(0,s.M)(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,s.N)(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:o,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,s.O)(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const h=r=o||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,g=(0,s.w)(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:g/(i-1),d+6>a&&(a=g/(i-(t.offset?.5:1)),r=this.maxHeight-Ot(t.grid)-e.padding-Et(t.title,this.chart.options.font),h=Math.sqrt(d*d+u*u),l=(0,s.Q)(Math.min(Math.asin((0,s.w)((c.highest.height+6)/a,-1,1)),Math.asin((0,s.w)(r/h,-1,1))-Math.asin((0,s.w)(u/h,-1,1)))),l=Math.max(n,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){(0,s.N)(this.options.afterCalculateLabelRotation,[this])}beforeFit(){(0,s.N)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=Et(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=Ot(o)+a):(t.height=this.maxHeight,t.width=Ot(o)+a),i.display&&this.ticks.length){const{first:e,last:n,widest:o,highest:a}=this._getLabelSizes(),h=2*i.padding,l=(0,s.t)(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(r){const e=i.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+h)}else{const e=i.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+h)}this._calculatePadding(e,n,d,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,h="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?h?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-l+o)*this.width/(this.width-l),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+o}}_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(){(0,s.N)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n({width:o[t]||0,height:a[t]||0});return{first:M(0),last:M(e-1),widest:M(y),highest:M(v),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,s.S)(this._alignToPixels?(0,s.U)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&tr*n?r/i:h/n:h*n0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:o,position:a}=n,r=o.offset,h=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=Ot(o),d=[],u=o.setContext(this.getContext()),g=u.drawBorder?u.borderWidth:0,p=g/2,f=function(t){return(0,s.U)(i,t,g)};let m,x,b,_,y,v,M,w,k,S,D,C;if("top"===a)m=f(this.bottom),v=this.bottom-c,w=m-p,S=f(t.top)+p,C=t.bottom;else if("bottom"===a)m=f(this.top),S=t.top,C=f(t.bottom)-p,v=m+p,w=this.top+c;else if("left"===a)m=f(this.right),y=this.right-c,M=m-p,k=f(t.left)+p,D=t.right;else if("right"===a)m=f(this.left),k=t.left,D=f(t.right)-p,y=m+p,M=this.left+c;else if("x"===e){if("center"===a)m=f((t.top+t.bottom)/2+.5);else if((0,s.i)(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}S=t.top,C=t.bottom,v=m+p,w=v+c}else if("y"===e){if("center"===a)m=f((t.left+t.right)/2);else if((0,s.i)(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}y=m-p,M=y-c,k=t.left,D=t.right}const P=(0,s.v)(n.ticks.maxTicksLimit,l),A=Math.max(1,Math.ceil(l/P));for(x=0;xe.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n{const n=i.split("."),o=n.pop(),a=[t].concat(n).join("."),r=e[i].split("."),h=r.pop(),l=r.join(".");s.d.route(a,o,l,h)}))}(e,t.defaultRoutes);t.descriptors&&s.d.describe(e,t.descriptors)}(t,a,i),this.override&&s.d.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in s.d[n]&&(delete s.d[n][i],this.override&&delete s.a0[i])}}var It=new class{constructor(){this.controllers=new Ft(v,"datasets",!0),this.elements=new Ft(kt,"elements"),this.plugins=new Ft(Object,"plugins"),this.scales=new Ft(zt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):(0,s.C)(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const n=(0,s.a2)(t);(0,s.N)(i["before"+n],[],i),e[t](i),(0,s.N)(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;et.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Bt(t,e){return e||!1!==t?!0===t?{}:t:null}function Nt(t,e,i,s){const n=t.pluginScopeKeys(e),o=t.getOptionScopes(i,n);return t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Wt(t,e){const i=s.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Ht(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function jt(t){const e=t.options||(t.options={});e.plugins=(0,s.v)(e.plugins,{}),e.scales=function(t,e){const i=s.a0[t.type]||{scales:{}},n=e.scales||{},o=Wt(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(n).forEach((t=>{const e=n[t];if(!(0,s.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const h=Ht(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(h,o),c=i.scales||{};a[h]=a[h]||t,r[t]=(0,s.a8)(Object.create(null),[{axis:h},e,c[h],c[l]])})),t.data.datasets.forEach((i=>{const o=i.type||t.type,h=i.indexAxis||Wt(o,e),l=(s.a0[o]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,h),o=i[e+"AxisID"]||a[e]||e;r[o]=r[o]||Object.create(null),(0,s.a8)(r[o],[{axis:e},n[o],l[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];(0,s.a8)(e,[s.d.scales[e.type],s.d.scale])})),r}(t,e)}function $t(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ut=new Map,Yt=new Set;function Xt(t,e){let i=Ut.get(t);return i||(i=e(),Ut.set(t,i),Yt.add(i)),i}const Kt=(t,e,i)=>{const n=(0,s.f)(e,i);void 0!==n&&t.add(n)};class qt{constructor(t){this._config=function(t){return(t=t||{}).data=$t(t.data),jt(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=$t(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),jt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Xt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Xt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Xt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Xt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:n,type:o}=this,a=this._cachedScopes(t,i),r=a.get(e);if(r)return r;const h=new Set;e.forEach((e=>{t&&(h.add(t),e.forEach((e=>Kt(h,t,e)))),e.forEach((t=>Kt(h,n,t))),e.forEach((t=>Kt(h,s.a0[o]||{},t))),e.forEach((t=>Kt(h,s.d,t))),e.forEach((t=>Kt(h,s.a3,t)))}));const l=Array.from(h);return 0===l.length&&l.push(Object.create(null)),Yt.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,s.a0[e]||{},s.d.datasets[e]||{},{type:e},s.d,s.a3]}resolveNamedOptions(t,e,i,n=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=Gt(this._resolverCache,t,n);let h=a;if(function(t,e){const{isScriptable:i,isIndexable:n}=(0,s.a7)(t);for(const o of e){const e=i(o),a=n(o),r=(a||e)&&t[o];if(e&&((0,s.a4)(r)||Jt(r))||a&&(0,s.b)(r))return!0}return!1}(a,e)){o.$shared=!1,i=(0,s.a4)(i)?i():i;const e=this.createResolver(t,i,r);h=(0,s.a5)(a,i,e)}for(const s of e)o[s]=h[s];return o}createResolver(t,e,i=[""],n){const{resolver:o}=Gt(this._resolverCache,t,i);return(0,s.i)(e)?(0,s.a5)(o,e,void 0,n):o}}function Gt(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=i.join();let a=n.get(o);if(!a){a={resolver:(0,s.a6)(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(o,a)}return a}const Jt=t=>(0,s.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||(0,s.a4)(t[i])),!1);const Zt=["top","bottom","left","right","chartArea"];function Qt(t,e){return"top"===t||"bottom"===t||-1===Zt.indexOf(t)&&"x"===e}function te(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function ee(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,s.N)(i&&i.onComplete,[t],e)}function ie(t){const e=t.chart,i=e.options.animation;(0,s.N)(i&&i.onProgress,[t],e)}function se(t){return(0,s.J)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ne={},oe=t=>{const e=se(t);return Object.values(ne).filter((t=>t.canvas===e)).pop()};function ae(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}class re{constructor(t,e){const i=this.config=new qt(e),o=se(t),a=oe(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!(0,s.J)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?lt:wt}(o)),this.platform.updateConfig(i);const h=this.platform.acquireContext(o,r.aspectRatio),l=h&&h.canvas,c=l&&l.height,d=l&&l.width;this.id=(0,s.a9)(),this.ctx=h,this.canvas=l,this.width=d,this.height=c,this._options=r,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 Vt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,s.aa)((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],ne[this.id]=this,h&&l?(n.listen(this,"complete",ee),n.listen(this,"progress",ie),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:o}=this;return(0,s.k)(t)?e&&o?o:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,s.ab)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,s.ac)(this.canvas,this.ctx),this}stop(){return n.stop(this),this}resize(t,e){n.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,t,e,o),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),h=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,(0,s.ab)(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),(0,s.N)(i.onResize,[this,a],this),this.attached&&this._doResize(h)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,s.C)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const i=e[t],s=Ht(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),(0,s.C)(o,(e=>{const o=e.options,a=o.id,r=Ht(a,o),h=(0,s.v)(o.type,e.dtype);void 0!==o.position&&Qt(o.position,r)===Qt(e.dposition)||(o.position=e.dposition),n[a]=!0;let l=null;if(a in i&&i[a].type===h)l=i[a];else{l=new(It.getScale(h))({id:a,type:h,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(o,t)})),(0,s.C)(n,((t,e)=>{t||delete i[e]})),(0,s.C)(i,(t=>{rt.configure(this,t,t.options),rt.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let s=0,r=this.data.datasets.length;s{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(te("z","_idx")),this._lastEvent&&this._eventHandler(this._lastEvent,!0),this.render()}_updateScales(){(0,s.C)(this.scales,(t=>{rt.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(0,s.ad)(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e){ae(t,s,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let o=1;ot.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;rt.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],(0,s.C)(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(n&&(0,s.V)(e,{left:!1===i.left?0:o.left-i.left,right:!1===i.right?this.width:o.right+i.right,top:!1===i.top?0:o.top-i.top,bottom:!1===i.bottom?this.height:o.bottom+i.bottom}),t.controller.draw(),n&&(0,s.X)(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}getElementsAtEventForMode(t,e,i,s){const n=K.modes[e];return"function"===typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=(0,s.h)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"===typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,n);(0,s.j)(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),a.update(o,{visible:i}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),n.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,s),t[i]=s},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,s.C)(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){(0,s.C)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,s.C)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!(0,s.ae)(i,e)&&(this._active=i,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e){const{_active:i=[],options:n}=this,o=n.hover,a=e;let r=[],h=!1,l=null;return"mouseout"!==t.type&&(r=this.getElementsAtEventForMode(t,o.mode,o,a),l="click"===t.type?this._lastEvent:t),this._lastEvent=null,(0,s.z)(t,this.chartArea,this._minPadding)&&((0,s.N)(n.onHover,[t,r,this],this),"mouseup"!==t.type&&"click"!==t.type&&"contextmenu"!==t.type||(0,s.N)(n.onClick,[t,r,this],this)),h=!(0,s.ae)(r,i),(h||e)&&(this._active=r,this._updateHoverStyles(r,i,e)),this._lastEvent=l,h}}const he=()=>(0,s.C)(re.instances,(t=>t._plugins.invalidate())),le=!0;function ce(t,e,i){const{startAngle:n,pixelMargin:o,x:a,y:r,outerRadius:h,innerRadius:l}=e;let c=o/h;t.beginPath(),t.arc(a,r,h,n-c,i+c),l>o?(c=o/l,t.arc(a,r,l,i+c,n-c,!0)):t.arc(a,r,o,i+s.H,n-s.H),t.closePath(),t.clip()}function de(t,e,i,n){const o=(a=t.options.borderRadius,(0,s.ah)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const r=(i-e)/2,h=Math.min(r,n*e/2),l=t=>{const e=(i-Math.min(r,t))*n/2;return(0,s.w)(t,0,Math.min(r,e))};return{outerStart:l(o.outerStart),outerEnd:l(o.outerEnd),innerStart:(0,s.w)(o.innerStart,0,h),innerEnd:(0,s.w)(o.innerEnd,0,h)}}function ue(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function ge(t,e,i,n,o){const{x:a,y:r,startAngle:h,pixelMargin:l,innerRadius:c}=e,d=Math.max(e.outerRadius+n+i-l,0),u=c>0?c+n+i+l:0;let g=0;const p=o-h;if(n){const t=((c>0?c-n:0)+(d>0?d-n:0))/2;g=(p-(0!==t?p*t/(t+n):p))/2}const f=(p-Math.max(.001,p*d-i/s.P)/d)/2,m=h+f+g,x=o-f-g,{outerStart:b,outerEnd:_,innerStart:y,innerEnd:v}=de(e,u,d,x-m),M=d-b,w=d-_,k=m+b/M,S=x-_/w,D=u+y,C=u+v,P=m+y/D,A=x-v/C;if(t.beginPath(),t.arc(a,r,d,k,S),_>0){const e=ue(w,S,a,r);t.arc(e.x,e.y,_,S,x+s.H)}const L=ue(C,x,a,r);if(t.lineTo(L.x,L.y),v>0){const e=ue(C,A,a,r);t.arc(e.x,e.y,v,x+s.H,A+Math.PI)}if(t.arc(a,r,u,x-v/u,m+y/u,!0),y>0){const e=ue(D,P,a,r);t.arc(e.x,e.y,y,P+Math.PI,m-s.H)}const T=ue(M,m,a,r);if(t.lineTo(T.x,T.y),b>0){const e=ue(M,k,a,r);t.arc(e.x,e.y,b,m-s.H,k)}t.closePath()}function pe(t,e,i,n,o){const{options:a}=e,r="inner"===a.borderAlign;a.borderWidth&&(r?(t.lineWidth=2*a.borderWidth,t.lineJoin="round"):(t.lineWidth=a.borderWidth,t.lineJoin="bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:o,startAngle:a,pixelMargin:r,fullCircles:h}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let d;for(i&&ce(t,e,a+s.T),t.beginPath(),t.arc(n,o,c,a+s.T,a,!0),d=0;d{It.add(...t),he()}},unregister:{enumerable:le,value:(...t)=>{It.remove(...t),he()}}});class fe extends kt{constructor(t){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,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:o,distance:a}=(0,s.af)(n,{x:t,y:e}),{startAngle:r,endAngle:h,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,g=(0,s.v)(d,h-r)>=s.T||(0,s.p)(o,r,h),p=(0,s.ag)(a,l+u,c+u);return g&&p}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:h}=this.options,l=(s+n)/2,c=(o+a+h+r)/2;return{x:e+Math.cos(l)*c,y:i+Math.sin(l)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,o=(e.spacing||0)/2;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>s.T?Math.floor(i/s.T):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(n){a=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=s.P&&(a=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,i,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let h=e.endAngle;if(o){ge(t,e,i,n,a+s.T);for(let e=0;er&&o>r;return{count:s,start:h,loop:e.loop,ilen:l(a+(l?r-t:t))%o,_=()=>{g!==p&&(t.lineTo(m,p),t.lineTo(m,g),t.lineTo(m,f))};for(h&&(d=n[b(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[b(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(ip&&(p=i),m=(x*m+e)/++x):(_(),t.lineTo(e,i),u=s,x=0,g=p=i),f=i}_()}function ve(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i?ye:_e}fe.id="arc",fe.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},fe.defaultRoutes={backgroundColor:"backgroundColor"};const Me="function"===typeof Path2D;function we(t,e,i,s){Me&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),me(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=ve(e);for(const r of n)me(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}class ke extends kt{constructor(t){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,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;(0,s.ai)(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,s.aj)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],o=this.points,a=(0,s.ak)(this,{property:e,start:n,end:n});if(!a.length)return;const r=[],h=function(t){return t.stepped?s.al:t.tension||"monotone"===t.cubicInterpolationMode?s.am:s.an}(i);let l,c;for(l=0,c=a.length;l"borderDash"!==t&&"fill"!==t};class De extends kt{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.options,{x:n,y:o}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-o,2){ze(t)}))}var Ie={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Fe(t);const n=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:a,indexAxis:r}=e,h=t.getDatasetMeta(o),l=a||e.data;if("y"===(0,s.a)([r,t.options.indexAxis]))return;if("line"!==h.type)return;const c=t.scales[h.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let n,o=0;const{iScale:a}=t,{min:r,max:h,minDefined:l,maxDefined:c}=a.getUserBounds();return l&&(o=(0,s.w)((0,s.x)(e,a.axis,r).lo,0,i-1)),n=c?(0,s.w)((0,s.x)(e,a.axis,h).hi+1,o,i)-o:i-o,{start:o,count:n}}(h,l);if(u<=(i.threshold||4*n))return void ze(e);let g;switch((0,s.k)(a)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":g=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let h=0;const l=e+i-1;let c,d,u,g,p,f=e;for(a[h++]=t[f],c=0;cu&&(u=g,d=t[s],p=s);a[h++]=d,f=p}return a[h++]=t[l],a}(l,d,u,n,i);break;case"min-max":g=function(t,e,i,n){let o,a,r,h,l,c,d,u,g,p,f=0,m=0;const x=[],b=e+i-1,_=t[e].x,y=t[b].x-_;for(o=e;op&&(p=h,d=o),f=(m*f+a.x)/++m;else{const i=o-1;if(!(0,s.k)(c)&&!(0,s.k)(d)){const e=Math.min(c,d),s=Math.max(c,d);e!==u&&e!==i&&x.push({...t[e],x:f}),s!==u&&s!==i&&x.push({...t[s],x:f})}o>0&&i!==u&&x.push(t[i]),x.push(a),l=e,m=0,g=p=h,c=d=u=o}}return x}(l,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=g}))},destroy(t){Fe(t)}};function Ve(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=(0,s.v)(i&&i.target,i);return void 0===n&&(n=!!e.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if((0,s.i)(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return(0,s.g)(o)&&Math.floor(o)===o?("-"!==n[0]&&"+"!==n[0]||(o=e+o),!(o===e||o<0||o>=i)&&o):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}class Be{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:o,radius:a}=this;return e=e||{start:0,end:s.T},t.arc(n,o,a,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function Ne(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,n=e.options,o=e.getLabels().length,a=[],r=n.reverse?e.max:e.min,h=n.reverse?e.min:e.max;let l,c,d;if(d="start"===i?r:"end"===i?h:(0,s.i)(i)?i.value:e.getBaseValue(),n.grid.circular)return c=e.getPointPositionForValue(0,r),new Be({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(d)});for(l=0;lt;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function He(t,e,i){const s=[];for(let n=0;n{e=We(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new ke({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function Ye(t,e,i){let n=t[e].fill;const o=[e];let a;if(!i)return n;for(;!1!==n&&-1===o.indexOf(n);){if(!(0,s.g)(n))return n;if(a=t[n],!a)return!1;if(a.visible)return n;o.push(n),n=a.fill}return!1}function Xe(t,e,i){t.beginPath(),e.path(t),t.lineTo(e.last().x,i),t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Ke(t,e,i,n){if(n)return;let o=e[t],a=i[t];return"angle"===t&&(o=(0,s.av)(o),a=(0,s.av)(a)),{property:t,start:o,end:a}}function qe(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function Ge(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function Je(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}function Ze(t,e){const{line:i,target:n,property:o,color:a,scale:r}=e,h=function(t,e,i){const n=t.segments,o=t.points,a=e.points,r=[];for(const h of n){let{start:t,end:n}=h;n=We(t,n,o);const l=Ke(i,o[t],o[n],h.loop);if(!e.segments){r.push({source:h,target:l,start:o[t],end:o[n]});continue}const c=(0,s.ak)(e,l);for(const e of c){const t=Ke(i,a[e.start],a[e.end],e.loop),n=(0,s.au)(h,o,t);for(const s of n)r.push({source:s,target:e,start:{[i]:qe(l,t,"start",Math.max)},end:{[i]:qe(l,t,"end",Math.min)}})}}return r}(i,n,o);for(const{source:s,target:l,start:c,end:d}of h){const{style:{backgroundColor:e=a}={}}=s,h=!0!==n;t.save(),t.fillStyle=e,Ge(t,r,h&&Ke(o,c,d)),t.beginPath();const u=!!i.pathSegment(t,s);let g;if(h){u?t.closePath():Je(t,n,d,o);const e=!!n.pathSegment(t,l,{move:u,reverse:!0});g=u&&e,g||Je(t,n,c,o)}t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}function Qe(t,e,i){const n=$e(e),{line:o,scale:a,axis:r}=e,h=o.options,l=h.fill,c=h.backgroundColor,{above:d=c,below:u=c}=l||{};n&&o.points.length&&((0,s.V)(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,h=i._loop?"angle":e.axis;t.save(),"x"===h&&o!==n&&(Xe(t,s,a.top),Ze(t,{line:i,target:s,color:n,scale:r,property:h}),t.restore(),t.save(),Xe(t,s,a.bottom)),Ze(t,{line:i,target:s,color:o,scale:r,property:h}),t.restore()}(t,{line:o,target:n,above:d,below:u,area:i,scale:a,axis:r}),(0,s.X)(t))}var ti={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,h;for(a=0;a=0;--a){const e=n[a].$filler;e&&(e.line.updateControlPoints(o,e.axis),s&&Qe(t.ctx,e,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){const e=s[n].$filler;e&&Qe(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;s&&!1!==s.fill&&"beforeDatasetDraw"===i.drawTime&&Qe(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ei=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class ii extends kt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,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(){const t=this.options.labels||{};let e=(0,s.N)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=(0,s.Y)(i.font),o=n.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:h}=ei(i,o);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,r,h)+10):(c=this.maxHeight,l=this._fitCols(a,o,r,h)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],h=this.lineWidths=[0],l=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-l;return this.legendItems.forEach(((t,g)=>{const p=i+e/2+n.measureText(t.text).width;(0===g||h[h.length-1]+p+2*a>o)&&(c+=l,h[h.length-(g>0?0:1)]=0,u+=l,d++),r[g]={left:0,top:u,row:d,width:p,height:s},h[h.length-1]+=p+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],h=this.columnSizes=[],l=o-t;let c=a,d=0,u=0,g=0,p=0;return this.legendItems.forEach(((t,o)=>{const f=i+e/2+n.measureText(t.text).width;o>0&&u+s+2*a>l&&(c+=d+a,h.push({width:d,height:u}),g+=d+a,p++,d=u=0),r[o]={left:g,top:u,col:p,width:f,height:s},d=Math.max(d,f),u+=s+a})),c+=d,h.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:o}}=this,a=(0,s.aw)(o,this.left,this.width);if(this.isHorizontal()){let o=0,r=(0,s.$)(i,this.left+n,this.right-this.lineWidths[o]);for(const h of e)o!==h.row&&(o=h.row,r=(0,s.$)(i,this.left+n,this.right-this.lineWidths[o])),h.top+=this.top+t+n,h.left=a.leftForLtr(a.x(r),h.width),r+=h.width+n}else{let o=0,r=(0,s.$)(i,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const h of e)h.col!==o&&(o=h.col,r=(0,s.$)(i,this.top+t+n,this.bottom-this.columnSizes[o].height)),h.top=r,h.left+=this.left+n,h.left=a.leftForLtr(a.x(h.left),h.width),r+=h.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,s.V)(t,this),this._draw(),(0,s.X)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:o,labels:a}=t,r=s.d.color,h=(0,s.aw)(t.rtl,this.left,this.width),l=(0,s.Y)(a.font),{color:c,padding:d}=a,u=l.size,g=u/2;let p;this.drawTitle(),n.textAlign=h.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:x}=ei(a,u),b=this.isHorizontal(),_=this._computeTitleHeight();p=b?{x:(0,s.$)(o,this.left+d,this.right-i[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:(0,s.$)(o,this.top+_+d,this.bottom-e[0].height),line:0},(0,s.ax)(this.ctx,t.textDirection);const y=x+d;this.legendItems.forEach(((v,M)=>{n.strokeStyle=v.fontColor||c,n.fillStyle=v.fontColor||c;const w=n.measureText(v.text).width,k=h.textAlign(v.textAlign||(v.textAlign=a.textAlign)),S=f+g+w;let D=p.x,C=p.y;h.setWidth(this.width),b?M>0&&D+S+d>this.right&&(C=p.y+=y,p.line++,D=p.x=(0,s.$)(o,this.left+d,this.right-i[p.line])):M>0&&C+y>this.bottom&&(D=p.x=D+e[p.line].width+d,p.line++,C=p.y=(0,s.$)(o,this.top+_+d,this.bottom-e[p.line].height));!function(t,e,i){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;n.save();const o=(0,s.v)(i.lineWidth,1);if(n.fillStyle=(0,s.v)(i.fillStyle,r),n.lineCap=(0,s.v)(i.lineCap,"butt"),n.lineDashOffset=(0,s.v)(i.lineDashOffset,0),n.lineJoin=(0,s.v)(i.lineJoin,"miter"),n.lineWidth=o,n.strokeStyle=(0,s.v)(i.strokeStyle,r),n.setLineDash((0,s.v)(i.lineDash,[])),a.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:o},r=h.xPlus(t,f/2),l=e+g;(0,s.aq)(n,a,r,l)}else{const a=e+Math.max((u-m)/2,0),r=h.leftForLtr(t,f),l=(0,s.at)(i.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?(0,s.ar)(n,{x:r,y:a,w:f,h:m,radius:l}):n.rect(r,a,f,m),n.fill(),0!==o&&n.stroke()}n.restore()}(h.x(D),C,v),D=(0,s.ay)(k,D+f+g,b?D+S:this.right,t.rtl),function(t,e,i){(0,s.W)(n,i.text,t,e+x/2,l,{strikethrough:i.hidden,textAlign:h.textAlign(i.textAlign)})}(h.x(D),C,v),b?p.x+=S+d:p.y+=y})),(0,s.az)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=(0,s.Y)(e.font),n=(0,s.B)(e.padding);if(!e.display)return;const o=(0,s.aw)(t.rtl,this.left,this.width),a=this.ctx,r=e.position,h=i.size/2,l=n.top+h;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=(0,s.$)(t.align,d,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+(0,s.$)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const g=(0,s.$)(r,d,d+u);a.textAlign=o.textAlign((0,s.Z)(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,(0,s.W)(a,e.text,g,c,i)}_computeTitleHeight(){const t=this.options.title,e=(0,s.Y)(t.font),i=(0,s.B)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,o;if((0,s.ag)(t,this.left,this.right)&&(0,s.ag)(e,this.top,this.bottom))for(o=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const r=t.controller.getStyle(i?0:void 0),h=(0,s.B)(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:r.borderColor,pointStyle:n||r.pointStyle,rotation:r.rotation,textAlign:o||r.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class ni extends kt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=(0,s.b)(i.text)?i.text.length:1;this._padding=(0,s.B)(i.padding);const o=n*(0,s.Y)(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:o,options:a}=this,r=a.align;let h,l,c,d=0;return this.isHorizontal()?(l=(0,s.$)(r,i,o),c=e+t,h=o-i):("left"===a.position?(l=i+t,c=(0,s.$)(r,n,e),d=-.5*s.P):(l=o-t,c=(0,s.$)(r,e,n),d=.5*s.P),h=n-e),{titleX:l,titleY:c,maxWidth:h,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=(0,s.Y)(e.font),n=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:r,rotation:h}=this._drawArgs(n);(0,s.W)(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:h,textAlign:(0,s.Z)(e.align),textBaseline:"middle",translation:[o,a]})}}var oi={id:"title",_element:ni,start(t,e,i){!function(t,e){const i=new ni({ctx:t.ctx,options:e,chart:t});rt.configure(t,i,e),rt.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;rt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;rt.configure(t,s,i),s.options=i},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}};const ai=new WeakMap;var ri={id:"subtitle",start(t,e,i){const s=new ni({ctx:t.ctx,options:i,chart:t});rt.configure(t,s,i),rt.addBox(t,s),ai.set(t,s)},stop(t){rt.removeBox(t,ai.get(t)),ai.delete(t)},beforeUpdate(t,e,i){const s=ai.get(t);rt.configure(t,s,i),s.options=i},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}};const hi={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e-1?t.split("\n"):t}function di(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function ui(t,e){const i=t._chart.ctx,{body:n,footer:o,title:a}=t,{boxWidth:r,boxHeight:h}=e,l=(0,s.Y)(e.bodyFont),c=(0,s.Y)(e.titleFont),d=(0,s.Y)(e.footerFont),u=a.length,g=o.length,p=n.length,f=(0,s.B)(e.padding);let m=f.height,x=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){m+=p*(e.displayColors?Math.max(h,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}g&&(m+=e.footerMarginTop+g*d.lineHeight+(g-1)*e.footerSpacing);let _=0;const y=function(t){x=Math.max(x,i.measureText(t).width+_)};return i.save(),i.font=c.string,(0,s.C)(t.title,y),i.font=l.string,(0,s.C)(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?r+2+e.boxPadding:0,(0,s.C)(n,(t=>{(0,s.C)(t.before,y),(0,s.C)(t.lines,y),(0,s.C)(t.after,y)})),_=0,i.font=d.string,(0,s.C)(t.footer,y),i.restore(),x+=f.width,{width:x,height:m}}function gi(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:h}}=t;let l="center";return"center"===s?l=n<=(r+h)/2?"left":"right":n<=o/2?l="left":n>=a-o/2&&(l="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(l,t,e,i)&&(l="center"),l}function pi(t,e,i){const s=e.yAlign||function(t,e){const{y:i,height:s}=e;return it.height-s/2?"bottom":"center"}(t,i);return{xAlign:e.xAlign||gi(t,e,i,s),yAlign:s}}function fi(t,e,i,n){const{caretSize:o,caretPadding:a,cornerRadius:r}=t,{xAlign:h,yAlign:l}=i,c=o+a,{topLeft:d,topRight:u,bottomLeft:g,bottomRight:p}=(0,s.at)(r);let f=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,h);const m=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,c);return"center"===l?"left"===h?f+=c:"right"===h&&(f-=c):"left"===h?f-=Math.max(d,g)+o:"right"===h&&(f+=Math.max(u,p)+o),{x:(0,s.w)(f,0,n.width-e.width),y:(0,s.w)(m,0,n.height-e.height)}}function mi(t,e,i){const n=(0,s.B)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function xi(t){return li([],ci(t))}function bi(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class _i extends kt{constructor(t){super(),this.opacity=0,this._active=[],this._chart=t._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this._chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new l(this._chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this._chart.getContext(),e=this,i=this._tooltipItems,(0,s.h)(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let a=[];return a=li(a,ci(s)),a=li(a,ci(n)),a=li(a,ci(o)),a}getBeforeBody(t,e){return xi(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return(0,s.C)(t,(t=>{const e={before:[],lines:[],after:[]},s=bi(i,t);li(e.before,ci(s.beforeLabel.call(this,t))),li(e.lines,s.label.call(this,t)),li(e.after,ci(s.afterLabel.call(this,t))),n.push(e)})),n}getAfterBody(t,e){return xi(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let a=[];return a=li(a,ci(s)),a=li(a,ci(n)),a=li(a,ci(o)),a}_createItems(t){const e=this._active,i=this._chart.data,n=[],o=[],a=[];let r,h,l=[];for(r=0,h=e.length;rt.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),(0,s.C)(l,(e=>{const i=bi(t.callbacks,e);n.push(i.labelColor.call(this,e)),o.push(i.labelPointStyle.call(this,e)),a.push(i.labelTextColor.call(this,e))})),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=hi[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=ui(this,i),a=Object.assign({},t,e),r=pi(this._chart,i,a),h=fi(i,a,r,this._chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:h.x,y:h.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this._chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:o}=this,{caretSize:a,cornerRadius:r}=i,{topLeft:h,topRight:l,bottomLeft:c,bottomRight:d}=(0,s.at)(r),{x:u,y:g}=t,{width:p,height:f}=e;let m,x,b,_,y,v;return"center"===o?(y=g+f/2,"left"===n?(m=u,x=m-a,_=y+a,v=y-a):(m=u+p,x=m+a,_=y-a,v=y+a),b=m):(x="left"===n?u+Math.max(h,c)+a:"right"===n?u+p-Math.max(l,d)-a:this.caretX,"top"===o?(_=g,y=_-a,m=x-a,b=x+a):(_=g+f,y=_+a,m=x+a,b=x-a),v=_),{x1:m,x2:x,x3:b,y1:_,y2:y,y3:v}}drawTitle(t,e,i){const n=this.title,o=n.length;let a,r,h;if(o){const l=(0,s.aw)(i.rtl,this.x,this.width);for(t.x=mi(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",a=(0,s.Y)(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=a.string,h=0;h0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,s.ar)(t,{x:e,y:f,w:l,h:h,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),(0,s.ar)(t,{x:i,y:f+1,w:l-2,h:h-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,h),t.strokeRect(e,f,l,h),t.fillStyle=a.backgroundColor,t.fillRect(i,f+1,l-2,h-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:o,bodyAlign:a,displayColors:r,boxHeight:h,boxWidth:l,boxPadding:c}=i,d=(0,s.Y)(i.bodyFont);let u=d.lineHeight,g=0;const p=(0,s.aw)(i.rtl,this.x,this.width),f=function(i){e.fillText(i,p.x(t.x+g),t.y+u/2),t.y+=u+o},m=p.textAlign(a);let x,b,_,y,v,M,w;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=mi(this,m,i),e.fillStyle=i.bodyColor,(0,s.C)(this.beforeBody,f),g=r&&"right"!==m?"center"===a?l/2+c:l+2+c:0,y=0,M=n.length;y0&&e.stroke()}_updateAnimationTarget(t){const e=this._chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=hi[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=ui(this,t),a=Object.assign({},i,this._size),r=pi(e,t,a),h=fi(t,a,r,e);s._to===h.x&&n._to===h.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,h))}}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=(0,s.B)(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,n,e),(0,s.ax)(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,s.az)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this._chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),o=!(0,s.ae)(i,n),a=this._positionChanged(n,e);(o||a)&&(this._active=n,this._eventPosition=e,this.update(!0))}handleEvent(t,e){const i=this.options,n=this._active||[];let o=!1,a=[];"mouseout"!==t.type&&(a=this._chart.getElementsAtEventForMode(t,i.mode,i,e),i.reverse&&a.reverse());const r=this._positionChanged(a,t);return o=e||!(0,s.ae)(a,n)||r,o&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=hi[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}_i.positioners=hi;var yi={id:"tooltip",_element:_i,positioners:hi,afterInit(t,e,i){i&&(t.tooltip=new _i({_chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip,i={tooltip:e};!1!==t.notifyPlugins("beforeTooltipDraw",i)&&(e&&e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i))},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:{beforeTitle:s.aA,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},vi=Object.freeze({__proto__:null,Decimation:Ie,Filler:ti,Legend:si,SubTitle:ri,Title:oi,Tooltip:yi});function Mi(t,e,i,s){const n=t.indexOf(e);if(-1===n)return((t,e,i,s)=>("string"===typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s);return n!==t.lastIndexOf(e)?i:n}class wi extends zt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,s.k)(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:(0,s.w)(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:Mi(i,t,(0,s.v)(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)s.push({value:o});return s}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function ki(t,e,{horizontal:i,minRotation:n}){const o=(0,s.t)(n),a=(i?Math.sin(o):Math.cos(o))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}wi.id="category",wi.defaults={ticks:{callback:wi.prototype.getLabelForValue}};class Si extends zt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,s.k)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:o}=this;const a=t=>n=e?n:t,r=t=>o=i?o:t;if(t){const t=(0,s.s)(n),e=(0,s.s)(o);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(n===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),r(o+e),t||a(n-e)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(t,e){const i=[],{bounds:n,step:o,min:a,max:r,precision:h,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=t,g=o||1,p=c-1,{min:f,max:m}=e,x=!(0,s.k)(a),b=!(0,s.k)(r),_=!(0,s.k)(l),y=(m-f)/(d+1);let v,M,w,k,S=(0,s.aD)((m-f)/p/g)*g;if(S<1e-14&&!x&&!b)return[{value:f},{value:m}];k=Math.ceil(m/S)-Math.floor(f/S),k>p&&(S=(0,s.aD)(k*S/p/g)*g),(0,s.k)(h)||(v=Math.pow(10,h),S=Math.ceil(S*v)/v),"ticks"===n?(M=Math.floor(f/S)*S,w=Math.ceil(m/S)*S):(M=f,w=m),x&&b&&o&&(0,s.aE)((r-a)/o,S/1e3)?(k=Math.round(Math.min((r-a)/S,c)),S=(r-a)/k,M=a,w=r):_?(M=x?a:M,w=b?r:w,k=l-1,S=(w-M)/k):(k=(w-M)/S,k=(0,s.aF)(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const D=Math.max((0,s.aG)(S),(0,s.aG)(M));v=Math.pow(10,(0,s.k)(h)?D:h),M=Math.round(M*v)/v,w=Math.round(w*v)/v;let C=0;for(x&&(u&&M!==a?(i.push({value:a}),M0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,s.g)(t)?Math.max(0,t):null,this.max=(0,s.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const o=e=>i=t?i:e,a=t=>n=e?n:t,r=(t,e)=>Math.pow(10,Math.floor((0,s.K)(t))+e);i===n&&(i<=0?(o(1),a(10)):(o(r(i,-1)),a(r(n,1)))),i<=0&&o(r(n,-1)),n<=0&&a(r(i,1)),this._zero&&this.min!==this._suggestedMin&&i===r(this.min,0)&&o(r(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor((0,s.K)(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),o=[];let a=(0,s.M)(t.min,Math.pow(10,Math.floor((0,s.K)(e.min)))),r=Math.floor((0,s.K)(a)),h=Math.floor(a/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:a,major:Ci(a)}),++h,10===h&&(h=1,++r,l=r>=0?1:l),a=Math.round(h*Math.pow(10,r)*l)/l}while(rn?{start:e-i,end:e}:{start:e,end:e+i}}function Ti(t){const e={l:0,r:t.width,t:0,b:t.height-t.paddingTop},i={},n=[],o=[],a=t.getLabels().length;for(let c=0;ce.r&&(e.r=m.end,i.r=p),x.starte.b&&(e.b=x.end,i.b=p)}var r,h,l;t._setReductions(t.drawingArea,e,i),t._pointLabelItems=function(t,e,i){const n=[],o=t.getLabels().length,a=t.options,r=Ai(a),h=t.getDistanceFromCenterForValue(a.ticks.reverse?t.min:t.max);for(let l=0;l270||i<90)&&(t-=e),t}function zi(t,e,i,n){const{ctx:o}=t;if(i)o.arc(t.xCenter,t.yCenter,e,0,s.T);else{let i=t.getPointPosition(0,e);o.moveTo(i.x,i.y);for(let s=1;s{const i=(0,s.N)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}))}fit(){const t=this.options;t.display&&t.pointLabels.display?Ti(this):this.setCenterPoint(0,0,0,0)}_setReductions(t,e,i){let s=e.l/Math.sin(i.l),n=Math.max(e.r-this.width,0)/Math.sin(i.r),o=-e.t/Math.cos(i.t),a=-Math.max(e.b-(this.height-this.paddingTop),0)/Math.cos(i.b);s=Fi(s),n=Fi(n),o=Fi(o),a=Fi(a),this.drawingArea=Math.max(t/2,Math.min(Math.floor(t-(s+n)/2),Math.floor(t-(o+a)/2))),this.setCenterPoint(s,n,o,a)}setCenterPoint(t,e,i,s){const n=this.width-e-this.drawingArea,o=t+this.drawingArea,a=i+this.drawingArea,r=this.height-this.paddingTop-s-this.drawingArea;this.xCenter=Math.floor((o+n)/2+this.left),this.yCenter=Math.floor((a+r)/2+this.top+this.paddingTop)}getIndexAngle(t){const e=s.T/this.getLabels().length,i=this.options.startAngle||0;return(0,s.av)(t*e+(0,s.t)(i))}getDistanceFromCenterForValue(t){if((0,s.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,s.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t=0;o--){const e=n.setContext(t.getPointLabelContext(o)),a=(0,s.Y)(e.font),{x:r,y:h,textAlign:l,left:c,top:d,right:u,bottom:g}=t._pointLabelItems[o],{backdropColor:p}=e;if(!(0,s.k)(p)){const t=(0,s.B)(e.backdropPadding);i.fillStyle=p,i.fillRect(c-t.left,d-t.top,u-c+t.width,g-d+t.height)}(0,s.W)(i,t._pointLabels[o],r,h+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,s){const n=t.ctx,o=e.circular,{color:a,lineWidth:r}=e;!o&&!s||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),zi(t,i,o,s),n.closePath(),n.stroke(),n.restore())}(this,n.setContext(this.getContext(e-1)),r,o)}})),i.display){for(t.save(),a=this.getLabels().length-1;a>=0;a--){const s=i.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:o}=s;o&&n&&(t.lineWidth=o,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),h=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!e.reverse)return;const h=i.setContext(this.getContext(r)),l=(0,s.Y)(h.font);if(o=this.getDistanceFromCenterForValue(this.ticks[r].value),h.showLabelBackdrop){t.font=l.string,a=t.measureText(n.label).width,t.fillStyle=h.backdropColor;const e=(0,s.B)(h.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}(0,s.W)(t,n.label,0,-o,l,{color:h.color})})),t.restore()}drawTitle(){}}Ii.id="radialLinear",Ii.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Dt.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5}},Ii.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Ii.descriptors={angleLines:{_fallback:"grid"}};const Vi={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}},Bi=Object.keys(Vi);function Ni(t,e){return t-e}function Wi(t,e){if((0,s.k)(e))return null;const i=t._adapter,{parser:n,round:o,isoWeekday:a}=t._parseOpts;let r=e;return"function"===typeof n&&(r=n(r)),(0,s.g)(r)||(r="string"===typeof n?i.parse(r,n):i.parse(r)),null===r?null:(o&&(r="week"!==o||!(0,s.q)(a)&&!0!==a?i.startOf(r,o):i.startOf(r,"isoWeek",a)),+r)}function Hi(t,e,i,s){const n=Bi.length;for(let o=Bi.indexOf(t);o=e?i[n]:i[o]]=!0}}else t[e]=!0}function $i(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a=0&&(e[h].major=!0);return e}(t,s,n,i):s}class Ui extends zt{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),n=this._adapter=new W._date(t.adapters.date);(0,s.a8)(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Wi(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:o,minDefined:a,maxDefined:r}=this.getUserBounds();function h(t){a||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(o=Math.max(o,t.max))}a&&r||(h(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||h(this.getMinMax(!1))),n=(0,s.g)(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),o=(0,s.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,o-1),this.max=Math.max(n+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const o=this.min,a=this.max,r=(0,s.aI)(n,o,a);return this._unit=e.unit||(i.autoSkip?Hi(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,i,s,n){for(let o=Bi.length-1;o>=Bi.indexOf(i);o--){const i=Bi[o];if(Vi[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Bi[i?Bi.indexOf(i):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Bi.indexOf(t)+1,i=Bi.length;e1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+a);const p="data"===n.ticks.source&&this.getDataTimestamps();for(d=g,u=0;dt-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const o=this.options,a=o.time.displayFormats,r=this._unit,h=this._majorUnit,l=r&&a[r],c=h&&a[h],d=i[e],u=h&&c&&d&&d.major,g=this._adapter.format(t,n||(u?c:l)),p=o.ticks.callback;return p?(0,s.N)(p,[g,e,i],this):g}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t=t[h].pos&&e<=t[l].pos&&({lo:h,hi:l}=(0,s.x)(t,"pos",e)),({pos:n,time:a}=t[h]),({pos:o,time:r}=t[l])):(e>=t[h].time&&e<=t[l].time&&({lo:h,hi:l}=(0,s.x)(t,"time",e)),({time:n,pos:a}=t[h]),({time:o,pos:r}=t[l]));const c=o-n;return c?a+(r-a)*(e-n)/c:a}Ui.id="time",Ui.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Xi extends Ui{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Yi(e,this.min),this._tableRange=Yi(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,h,l;for(o=0,a=t.length;o=e&&h<=i&&s.push(h);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o=1},subscribe:function(t){return s.size||this.register(),c+=1,s.set(c,t),t(u),c},unsubscribe:function(t){s.delete(t),s.size||this.unregister()},unregister:function(){var t=this;Object.keys(a).forEach((function(e){var n=a[e],r=t.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),s.clear()},register:function(){var t=this;Object.keys(a).forEach((function(e){var n=a[e],i=function(n){var i=n.matches;t.dispatch((0,o.Z)((0,o.Z)({},u),(0,r.Z)({},e,i)))},s=window.matchMedia(n);s.addListener(i),t.matchHandlers[n]={mql:s,listener:i},i(s)}))}};e.ZP=l},31877:function(t,e,n){"use strict";var r=n(53328);r.kL.register(...r.zX),e.Z=r.kL},3940:function(t,e,n){"use strict";n.d(e,{$:function(){return s},A:function(){return ze},B:function(){return ye},C:function(){return x},D:function(){return rn},E:function(){return qe},F:function(){return sn},G:function(){return o},H:function(){return I},I:function(){return an},J:function(){return $e},K:function(){return W},L:function(){return V},M:function(){return g},N:function(){return v},O:function(){return ve},P:function(){return R},Q:function(){return J},R:function(){return Jt},S:function(){return it},T:function(){return L},U:function(){return Kt},V:function(){return re},W:function(){return se},X:function(){return oe},Y:function(){return be},Z:function(){return a},_:function(){return Ae},a:function(){return me},a0:function(){return Xt},a1:function(){return _},a2:function(){return S},a3:function(){return Qt},a4:function(){return j},a5:function(){return Se},a6:function(){return Te},a7:function(){return Ee},a8:function(){return k},a9:function(){return l},aA:function(){return u},aB:function(){return tt},aC:function(){return $},aD:function(){return U},aE:function(){return Z},aF:function(){return Q},aG:function(){return G},aH:function(){return Gt},aI:function(){return Ce},aJ:function(){return we},aa:function(){return i},ab:function(){return on},ac:function(){return te},ad:function(){return P},ae:function(){return w},af:function(){return K},ag:function(){return at},ah:function(){return he},ai:function(){return Ze},aj:function(){return xn},ak:function(){return vn},al:function(){return un},am:function(){return ln},an:function(){return cn},ao:function(){return ie},ap:function(){return ae},aq:function(){return ee},ar:function(){return ue},as:function(){return de},at:function(){return ge},au:function(){return mn},av:function(){return nt},aw:function(){return hn},ax:function(){return dn},ay:function(){return c},az:function(){return gn},b:function(){return p},c:function(){return Ut},d:function(){return qt},e:function(){return lt},f:function(){return T},g:function(){return d},h:function(){return xe},i:function(){return h},j:function(){return E},k:function(){return f},l:function(){return ke},m:function(){return b},n:function(){return m},o:function(){return pn},p:function(){return rt},q:function(){return X},r:function(){return r},s:function(){return Y},t:function(){return q},u:function(){return Oe},v:function(){return y},w:function(){return ot},x:function(){return Me},y:function(){return en},z:function(){return ne}});const r="undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame;function o(t,e,n){const o=n||(t=>Array.prototype.slice.call(t));let i=!1,a=[];return function(...n){a=o(n),i||(i=!0,r.call(window,(()=>{i=!1,t.apply(e,a)})))}}function i(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const a=t=>"start"===t?"left":"end"===t?"right":"center",s=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,c=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function u(){}const l=function(){let t=0;return function(){return t++}}();function f(t){return null===t||"undefined"===typeof t}function p(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function h(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const d=t=>("number"===typeof t||t instanceof Number)&&isFinite(+t);function g(t,e){return d(t)?t:e}function y(t,e){return"undefined"===typeof t?e:t}const b=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,m=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function v(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)}function x(t,e,n,r){let o,i,a;if(p(t))if(i=t.length,r)for(o=i-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;on;)t=t[e.substr(n,r-n)],n=r+1,r=A(e,n);return t}function S(t){return t.charAt(0).toUpperCase()+t.slice(1)}const E=t=>"undefined"!==typeof t,j=t=>"function"===typeof t,P=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},R=Math.PI,L=2*R,D=L+R,N=Number.POSITIVE_INFINITY,F=R/180,I=R/2,B=R/4,H=2*R/3,W=Math.log10,Y=Math.sign;function U(t){const e=Math.round(t);t=Q(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(W(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function V(t){const e=[],n=Math.sqrt(t);let r;for(r=1;rt-e)).pop(),e}function X(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Q(t,e,n){return Math.abs(t-e)=t}function $(t,e,n){let r,o,i;for(r=0,o=t.length;rc&&u=Math.min(e,n)-r&&t<=Math.max(e,n)+r}const st=t=>0===t||1===t,ct=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*L/n),ut=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*L/n)+1,lt={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=>1-Math.cos(t*I),easeOutSine:t=>Math.sin(t*I),easeInOutSine:t=>-.5*(Math.cos(R*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>st(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),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=>st(t)?t:ct(t,.075,.3),easeOutElastic:t=>st(t)?t:ut(t,.075,.3),easeInOutElastic(t){const e=.1125;return st(t)?t:t<.5?.5*ct(2*t,e,.45):.5+.5*ut(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-lt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*lt.easeInBounce(2*t):.5*lt.easeOutBounce(2*t-1)+.5},ft={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},pt="0123456789ABCDEF",ht=t=>pt[15&t],dt=t=>pt[(240&t)>>4]+pt[15&t],gt=t=>(240&t)>>4===(15&t);function yt(t){var e=function(t){return gt(t.r)&>(t.g)&>(t.b)&>(t.a)}(t)?ht:dt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function bt(t){return t+.5|0}const mt=(t,e,n)=>Math.max(Math.min(t,n),e);function vt(t){return mt(bt(2.55*t),0,255)}function xt(t){return mt(bt(255*t),0,255)}function wt(t){return mt(bt(t/2.55)/100,0,1)}function Mt(t){return mt(bt(100*t),0,100)}const zt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ct=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _t(t,e,n){const r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function kt(t,e,n){const r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Ot(t,e,n){const r=_t(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function At(t){const e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,n,r),a=(o+i)/2;let s,c,u;return o!==i&&(u=o-i,c=a>.5?u/(2-o-i):u/(o+i),s=o===e?(n-r)/u+(n>16&255,i>>8&255,255&i]}return t}(),Lt.transparent=[0,0,0,0]);const e=Lt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function Nt(t,e,n){if(t){let r=At(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=St(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Ft(t,e){return t?Object.assign(e||{},t):t}function It(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=xt(t[3]))):(e=Ft(t,{r:0,g:0,b:0,a:1})).a=xt(e.a),e}function Bt(t){return"r"===t.charAt(0)?function(t){const e=zt.exec(t);let n,r,o,i=255;if(e){if(e[7]!==n){const t=+e[7];i=255&(e[8]?vt(t):255*t)}return n=+e[1],r=+e[3],o=+e[5],n=255&(e[2]?vt(n):n),r=255&(e[4]?vt(r):r),o=255&(e[6]?vt(o):o),{r:n,g:r,b:o,a:i}}}(t):jt(t)}class Ht{constructor(t){if(t instanceof Ht)return t;const e=typeof t;let n;"object"===e?n=It(t):"string"===e&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*ft[t[1]],g:255&17*ft[t[2]],b:255&17*ft[t[3]],a:5===n?17*ft[t[4]]:255}:7!==n&&9!==n||(e={r:ft[t[1]]<<4|ft[t[2]],g:ft[t[3]]<<4|ft[t[4]],b:ft[t[5]]<<4|ft[t[6]],a:9===n?ft[t[7]]<<4|ft[t[8]]:255})),e}(t)||Dt(t)||Bt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Ft(this._rgb);return t&&(t.a=wt(t.a)),t}set rgb(t){this._rgb=It(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${wt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?yt(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=At(t),n=e[0],r=Mt(e[1]),o=Mt(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${wt(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):this._rgb}mix(t,e){const n=this;if(t){const r=n.rgb,o=t.rgb;let i;const a=e===i?.5:e,s=2*a-1,c=r.a-o.a,u=((s*c===-1?s:(s+c)/(1+s*c))+1)/2;i=1-u,r.r=255&u*r.r+i*o.r+.5,r.g=255&u*r.g+i*o.g+.5,r.b=255&u*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,n.rgb=r}return n}clone(){return new Ht(this.rgb)}alpha(t){return this._rgb.a=xt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=bt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Nt(this._rgb,2,t),this}darken(t){return Nt(this._rgb,2,-t),this}saturate(t){return Nt(this._rgb,1,t),this}desaturate(t){return Nt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=At(t);n[0]=Et(n[0]+e),n=St(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Wt(t){return new Ht(t)}const Yt=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function Ut(t){return Yt(t)?t:Wt(t)}function Vt(t){return Yt(t)?t:Wt(t).saturate(.5).darken(.1).hexString()}const Xt=Object.create(null),Qt=Object.create(null);function Zt(t,e){if(!e)return t;const n=e.split(".");for(let r=0,o=n.length;rt.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)=>Vt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Vt(e.borderColor),this.hoverColor=(t,e)=>Vt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},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.describe(t)}set(t,e){return $t(this,t,e)}get(t){return Zt(this,t)}describe(t,e){return $t(Qt,t,e)}override(t,e){return $t(Xt,t,e)}route(t,e,n,r){const o=Zt(this,t),i=Zt(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[r];return h(t)?Object.assign({},e,t):y(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Jt(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function Gt(t,e,n,r){let o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(o=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const s=n.length;let c,u,l,f,h;for(c=0;cn.length){for(c=0;c0&&t.stroke()}}function ne(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==i.strokeColor;let c,u;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);f(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,i),c=0;cy(t[n],t[e[n]]):e=>t[e]:()=>t;for(const a of o)n[a]=+i(a)||0;return n}function de(t){return he(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ge(t){return he(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ye(t){const e=de(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function be(t,e){t=t||{},e=e||qt.font;let n=y(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let r=y(t.style,e.style);r&&!(""+r).match(fe)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:y(t.family,e.family),lineHeight:pe(y(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:y(t.weight,e.weight),string:""};return o.string=function(t){return!t||f(t.size)||f(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function me(t,e,n,r){let o,i,a,s=!0;for(o=0,i=t.length;on&&0===t?0:t+e;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function xe(t,e){return Object.assign(Object.create(t),e)}function we(t,e,n){n=n||(n=>t[n]1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const Me=(t,e,n)=>we(t,n,(r=>t[r][e]we(t,n,(r=>t[r][e]>=n));function Ce(t,e,n){let r=0,o=t.length;for(;rr&&t[o-1]>n;)o--;return r>0||o{const n="_onData"+S(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const o=r.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[n]&&t[n](...e)})),o}})})))}function Oe(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(e);-1!==o&&r.splice(o,1),r.length>0||(_e.forEach((e=>{delete t[e]})),delete t._chartjs)}function Ae(t){const e=new Set;let n,r;for(n=0,r=t.length;nt[0])){E(r)||(r=Be("_fallback",t));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>Te([o,...t],e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>Re(n,r,(()=>function(t,e,n,r){let o;for(const i of e)if(o=Be(je(i,t),n),E(o))return Pe(t,o)?Fe(n,r,t,o):o}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>He(t).includes(e),ownKeys:t=>He(t),set(t,e,n){const r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function Se(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ee(t,r),setContext:e=>Se(t,e,n,r),override:o=>Se(t.override(o),e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Re(t,e,(()=>function(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=t;let s=r[e];j(s)&&a.isScriptable(e)&&(s=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(i,a||r),s.delete(t),Pe(t,e)&&(e=Fe(o._scopes,o,t,e));return e}(e,s,t,n));p(s)&&s.length&&(s=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=n;if(E(i.index)&&r(t))e=e[i.index%e.length];else if(h(e[0])){const n=e,r=o._scopes.filter((t=>t!==n));e=[];for(const c of n){const n=Fe(r,o,t,c);e.push(Se(n,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Pe(e,s)&&(s=Se(s,o,i&&i[e],a));return s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function Ee(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:j(n)?n:()=>n,isIndexable:j(r)?r:()=>r}}const je=(t,e)=>t?t+S(e):e,Pe=(t,e)=>h(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Re(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function Le(t,e,n){return j(t)?t(e,n):t}const De=(t,e)=>!0===t?e:"string"===typeof t?T(e,t):void 0;function Ne(t,e,n,r){for(const o of e){const e=De(n,o);if(e){t.add(e);const o=Le(e._fallback,n,e);if(E(o)&&o!==n&&o!==r)return o}else if(!1===e&&E(r)&&n!==r)return null}return!1}function Fe(t,e,n,r){const o=e._rootScopes,i=Le(e._fallback,n,r),a=[...t,...o],s=new Set;s.add(r);let c=Ie(s,a,n,i||n);return null!==c&&((!E(i)||i===n||(c=Ie(s,a,i,c),null!==c))&&Te(Array.from(s),[""],o,i,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];if(p(o)&&h(n))return n;return o}(e,n,r))))}function Ie(t,e,n,r){for(;n;)n=Ne(t,e,n,r);return n}function Be(t,e){for(const n of e){if(!n)continue;const e=n[t];if(E(e))return e}}function He(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const We=Number.EPSILON||1e-14,Ye=(t,e)=>e"x"===t?"y":"x";function Ve(t,e,n,r){const o=t.skip?e:t,i=e,a=n.skip?e:n,s=tt(i,o),c=tt(a,i);let u=s/(s+c),l=c/(s+c);u=isNaN(u)?0:u,l=isNaN(l)?0:l;const f=r*u,p=r*l;return{previous:{x:i.x-f*(a.x-o.x),y:i.y-f*(a.y-o.y)},next:{x:i.x+p*(a.x-o.x),y:i.y+p*(a.y-o.y)}}}function Xe(t,e="x"){const n=Ue(e),r=t.length,o=Array(r).fill(0),i=Array(r);let a,s,c,u=Ye(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)Xe(t,o);else{let n=r?t[t.length-1]:t[0];for(i=0,a=t.length;iwindow.getComputedStyle(t,null);const Ke=["top","right","bottom","left"];function tn(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=Ke[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function en(t,e){const{canvas:n,currentDevicePixelRatio:r}=e,o=Ge(n),i="border-box"===o.boxSizing,a=tn(o,"padding"),s=tn(o,"border","width"),{x:c,y:u,box:l}=function(t,e){const n=t.native||t,r=n.touches,o=r&&r.length?r[0]:n,{offsetX:i,offsetY:a}=o;let s,c,u=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(i,a,n.target))s=i,c=a;else{const t=e.getBoundingClientRect();s=o.clientX-t.left,c=o.clientY-t.top,u=!0}return{x:s,y:c,box:u}}(t,n),f=a.left+(l&&s.left),p=a.top+(l&&s.top);let{width:h,height:d}=e;return i&&(h-=a.width+s.width,d-=a.height+s.height),{x:Math.round((c-f)/h*n.width/r),y:Math.round((u-p)/d*n.height/r)}}const nn=t=>Math.round(10*t)/10;function rn(t,e,n,r){const o=Ge(t),i=tn(o,"margin"),a=Je(o.maxWidth,t,"clientWidth")||N,s=Je(o.maxHeight,t,"clientHeight")||N,c=function(t,e,n){let r,o;if(void 0===e||void 0===n){const i=qe(t);if(i){const t=i.getBoundingClientRect(),a=Ge(i),s=tn(a,"border","width"),c=tn(a,"padding");e=t.width-c.width-s.width,n=t.height-c.height-s.height,r=Je(a.maxWidth,i,"clientWidth"),o=Je(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||N,maxHeight:o||N}}(t,e,n);let{width:u,height:l}=c;if("content-box"===o.boxSizing){const t=tn(o,"border","width"),e=tn(o,"padding");u-=e.width+t.width,l-=e.height+t.height}return u=Math.max(0,u-i.width),l=Math.max(0,r?Math.floor(u/r):l-i.height),u=nn(Math.min(u,a,c.maxWidth)),l=nn(Math.min(l,s,c.maxHeight)),u&&!l&&(l=nn(u/2)),{width:u,height:l}}function on(t,e,n){const r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=o/r,t.width=i/r;const 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!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}const an=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function sn(t,e){const n=function(t,e){return Ge(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function cn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function un(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 ln(t,e,n,r){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=cn(t,o,n),s=cn(o,i,n),c=cn(i,e,n),u=cn(a,s,n),l=cn(s,c,n);return cn(u,l,n)}const fn=new Map;function pn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=fn.get(n);return r||(r=new Intl.NumberFormat(t,e),fn.set(n,r)),r}(e,n).format(t)}function hn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function dn(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function gn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function yn(t){return"angle"===t?{between:rt,compare:et,normalize:nt}:{between:at,compare:(t,e)=>t-e,normalize:t=>t}}function bn({start:t,end:e,count:n,loop:r,style:o}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:o}}function mn(t,e,n){if(!n)return[t];const{property:r,start:o,end:i}=n,a=e.length,{compare:s,between:c,normalize:u}=yn(r),{start:l,end:f,loop:p,style:h}=function(t,e,n){const{property:r,start:o,end:i}=n,{between:a,normalize:s}=yn(r),c=e.length;let u,l,{start:f,end:p,loop:h}=t;if(h){for(f+=c,p+=c,u=0,l=c;um||c(o,b,g)&&0!==s(o,b),w=()=>!m||0===s(i,g)||c(i,b,g);for(let M=l,z=l;M<=f;++M)y=e[M%a],y.skip||(g=u(y[r]),g!==b&&(m=c(g,o,i),null===v&&x()&&(v=0===s(g,o)?M:z),null!==v&&w()&&(d.push(bn({start:v,end:M,loop:p,count:a,style:h})),v=null),z=M,b=g));return null!==v&&d.push(bn({start:v,end:f,loop:p,count:a,style:h})),d}function vn(t,e){const n=[],r=t.segments;for(let o=0;oo&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(n,o,i,r);if(!0===r)return wn(t,[{start:a,end:s,loop:i}],n,e);return wn(t,function(t,e,n,r){const o=t.length,i=[];let a,s=e,c=t[e];for(a=e+1;a<=n;++a){const n=t[a%o];n.skip||n.stop?c.skip||(r=!1,i.push({start:e%o,end:(a-1)%o,loop:r}),e=s=n.stop?a:null):(s=a,c.skip&&(e=a)),c=n}return null!==s&&i.push({start:e%o,end:s%o,loop:r}),i}(n,a,s=6}function M(t){return"number"===typeof t}var z=["bytes","KB","MB","GB","TB","PB","EB"];function C(t,e,n,r){t=t||"",n.prefix&&(e<0&&(e*=-1,t+="-"),t+=n.prefix);var o=n.suffix||"",i=n.precision,a=n.round;if(n.byteScale){var c,u=r?n.byteScale:e;u>=0x1000000000000000?(e/=0x1000000000000000,c=6):u>=0x4000000000000?(e/=0x4000000000000,c=5):u>=1099511627776?(e/=1099511627776,c=4):u>=1073741824?(e/=1073741824,c=3):u>=1048576?(e/=1048576,c=2):u>=1024?(e/=1024,c=1):c=0,void 0===i&&void 0===a&&(e>=1023.5&&c=1e3?4:3),o=" "+z[c]}if(void 0!==i&&void 0!==a)throw Error("Use either round or precision, not both");if(!r&&(void 0!==i&&(e=e.toPrecision(i),n.zeros||(e=parseFloat(e))),void 0!==a))if(a<0){var l=Math.pow(10,-1*a);e=parseInt((1*e/l).toFixed(0))*l}else e=e.toFixed(a),n.zeros||(e=parseFloat(e));if(n.thousands||n.decimal){var f=(e=s(e)).split(".");e=f[0],n.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands)),f.length>1&&(e+=(n.decimal||".")+f[1])}return t+e+o}function _(t,e,n){return n in e?e[n]:n in t.options?t.options[n]:null}function k(t){var e,n,r;for(e=0;e25?r=25:r<10&&(r=10),n.scales.x.ticks.callback||(n.scales.x.ticks.callback=function(t){return(t=s(this.getLabelForValue(t))).length>r?t.substring(0,r-2)+"...":t})},W=function(e,n,r){var o={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var i=e.data;"pie"===r&&(i=[{data:i}]);for(var a=0,s=0;sa&&(a=c.data[u][1]);for(var l=1;a>=1024;)l*=1024,a/=1024;o.byteScale=l}if("pie"!==r){var f=n.scales.y;"bar"===r&&(f=n.scales.x),o.byteScale&&(f.ticks.stepSize||(f.ticks.stepSize=o.byteScale/2),f.ticks.maxTicksLimit||(f.ticks.maxTicksLimit=4)),f.ticks.callback||(f.ticks.callback=function(t){return C("",t,o,!0)})}if(!n.plugins.tooltip.callbacks.label)if("scatter"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";return e&&(e+=": "),e+"("+t.label+", "+t.formattedValue+")"};else if("bubble"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";e&&(e+=": ");var n=t.raw;return e+"("+n.x+", "+n.y+", "+n.v+")"};else if("pie"===r)n.plugins.tooltip.callbacks.label=function(e){var n=e.label,r=": ";return t(n)?(n=n.slice())[0]+=r:n+=r,C(n,e.parsed,o)};else{var p="bar"===r?"x":"y";n.plugins.tooltip.callbacks.label=function(t){if(null!==t.parsed[p]){var e=t.dataset.label||"";return e&&(e+=": "),C(e,t.parsed[p],o)}}}},Y=f(o(O,A),S,E,j,P,D,N,F),U=function(e,n,r){var i,a=[],s=[],l=e.options.colors||T,f=!0,p=!0,h=!0,w=!0,M=!0,z=!0,C=e.data,k=0;if("bubble"===r)for(var O=0;Ok&&(k=A.data[S][2]);var E,j,P,R,L,D,N,F=[],H=[];if("bar"===r||"column"===r||"number"!==e.xtype&&"bubble"!==e.xtype){var W,Y,U=[];for(E=0;E0){var et=(B(K)?u(K):s[0]).getTime(),nt=(B(tt)?u(tt):s[0]).getTime();for(E=1;Ent&&(nt=rt)}var ot,it=(nt-et)/864e5;if(!n.scales.x.time.unit&&(w||it>3650?(n.scales.x.time.unit="year",ot=365):h||it>300?(n.scales.x.time.unit="month",ot=30):f||it>10?(n.scales.x.time.unit="day",ot=1):M||it>.5?(n.scales.x.time.displayFormats={hour:"MMM d, h a"},n.scales.x.time.unit="hour",ot=1/24):z&&(n.scales.x.time.displayFormats={minute:"h:mm a"},n.scales.x.time.unit="minute",ot=1/24/60),ot&&it>0)){var at=e.element.offsetWidth;if(at>0){var st=Math.ceil(it/ot/(at/100));p&&1===ot&&(st=7*Math.ceil(st/7)),n.scales.x.time.stepSize=st}}n.scales.x.time.tooltipFormat||(f?n.scales.x.time.tooltipFormat="PP":M?n.scales.x.time.tooltipFormat="MMM d, h a":z&&(n.scales.x.time.tooltipFormat="h:mm a"))}return{labels:s,datasets:a}},V=function(t){this.name="chartjs",this.library=t};V.prototype.renderLineChart=function(t,e){var n={};!t.options.max&&k(t.data)&&(n.max=1);var r=Y(t,o(n,t.options));W(t,r,e);var i=U(t,r,e||"line");"number"===t.xtype?(r.scales.x.type=r.scales.x.type||"linear",r.scales.x.position=r.scales.x.position||"bottom"):r.scales.x.type="string"===t.xtype?"category":"time",this.drawChart(t,"line",i,r)},V.prototype.renderPieChart=function(t){var e=o({},O);t.options.donut&&(e.cutout="50%"),"legend"in t.options&&S(e,t.options.legend),t.options.title&&E(e,t.options.title),e=o(e,t.options.library||{}),W(t,e,"pie");for(var n=[],r=[],i=0;i\u25cf '+C(this.series.name+": ",this.y,r)+"
"})},J=function(t){this.name="highcharts",this.library=t};J.prototype.renderLineChart=function(t,e){var n={};"areaspline"===(e=e||"spline")&&(n={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var r,o,i,a=$(t,t.options,n);"number"===t.xtype?a.xAxis.type=a.xAxis.type||"linear":a.xAxis.type="string"===t.xtype?"category":"datetime",a.chart.type||(a.chart.type=e),q(t,a,e);var s=t.data;for(o=0;o0)return!1;return!0}function mt(t){var e=t.element,n=document.createElement("a"),r=t.options.download;!0===r?r={}:"string"===typeof r&&(r={filename:r}),n.download=r.filename||"chart.png",n.style.position="absolute",n.style.top="20px",n.style.right="20px",n.style.zIndex=1e3,n.style.lineHeight="20px",n.target="_blank";var o=document.createElement("img");o.alt="Download",o.style.border="none",o.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",n.appendChild(o),e.style.position="relative",t.__downloadAttached=!0,t.__enterEvent=vt(e,"mouseover",(function(o){var i=o.relatedTarget;i&&(i===this||wt(this,i))||!t.options.download||(n.href=t.toImage(r),e.appendChild(n))})),t.__leaveEvent=vt(e,"mouseout",(function(t){var e=t.relatedTarget;e&&(e===this||wt(this,e))||n.parentNode&&n.parentNode.removeChild(n)}))}function vt(t,e,n){if(t.addEventListener)return t.addEventListener(e,n,!1),n;var r=function(){return n.call(t,window.event)};return t.attachEvent("on"+e,r),r}function xt(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function wt(t,e){if(t===e)return!1;for(;e&&e!==t;)e=e.parentNode;return e===t}lt.prototype.renderLineChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={};!1===t.options.curve&&(n.curveType="none"),!1===t.options.points&&(n.pointSize=0);var r=ct(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"LineChart",o,r)}))},lt.prototype.renderPieChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={chartArea:{top:"10%",height:"80%"},legend:{}};t.options.colors&&(n.colors=t.options.colors),t.options.donut&&(n.pieHole=.5),"legend"in t.options&&et(n,t.options.legend),t.options.title&&nt(n,t.options.title);var r=o(o(tt,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number","Value"),i.addRows(t.data),e.drawChart(t,"PieChart",i,r)}))},lt.prototype.renderColumnChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n=ct(t,t.options),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"ColumnChart",r,n)}))},lt.prototype.renderBarChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={hAxis:{gridlines:{color:"#ccc"}}},r=f(tt,et,nt,rt,ot,it,at,st)(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"BarChart",o,r)}))},lt.prototype.renderAreaChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={isStacked:!0,pointSize:0,areaOpacity:.5},r=ct(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"AreaChart",o,r)}))},lt.prototype.renderGeoChart=function(t){var e=this;this.waitForLoaded(t,"geochart",(function(){var n={legend:"none",colorAxis:{colors:t.options.colors||["#f6c7b6","#ce502d"]}},r=o(o(tt,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number",t.options.label||"Value"),i.addRows(t.data),e.drawChart(t,"GeoChart",i,r)}))},lt.prototype.renderScatterChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n,r,o,i,a={},s=ct(t,t.options,a),c=t.data,u=[];for(n=0;n0?new Error("No charting library found for "+t):new Error("No charting libraries found - be sure to include one before your charts")}var Ht=function(t,e,n){var r;if("string"===typeof t&&(r=t,!(t=document.getElementById(t))))throw new Error("No element with id "+r);this.element=t,this.options=o(Wt.options,n||{}),this.dataSource=e,Wt.charts[t.id]=this,Lt(this,e,!0),this.options.refresh&&this.startRefresh()};Ht.prototype.getElement=function(){return this.element},Ht.prototype.getDataSource=function(){return this.dataSource},Ht.prototype.getData=function(){return this.data},Ht.prototype.getOptions=function(){return this.options},Ht.prototype.getChartObject=function(){return this.chart},Ht.prototype.getAdapter=function(){return this.adapter},Ht.prototype.updateData=function(t,e){this.dataSource=t,e&&this.__updateOptions(e),Lt(this,t,!0)},Ht.prototype.setOptions=function(t){this.__updateOptions(t),this.redraw()},Ht.prototype.redraw=function(){Lt(this,this.rawData)},Ht.prototype.refreshData=function(){if("string"===typeof this.dataSource){var t=-1===this.dataSource.indexOf("?")?"?":"&";Lt(this,this.dataSource+t+"_="+(new Date).getTime())}else"function"===typeof this.dataSource&&Lt(this,this.dataSource)},Ht.prototype.startRefresh=function(){var t=this,e=this.options.refresh;if(e&&"string"!==typeof this.dataSource&&"function"!==typeof this.dataSource)throw new Error("Data source must be a URL or callback for refresh");if(!this.intervalId){if(!e)throw new Error("No refresh interval");this.intervalId=setInterval((function(){t.refreshData()}),1e3*e)}},Ht.prototype.stopRefresh=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},Ht.prototype.toImage=function(t){if("chartjs"===this.adapter){if(t&&t.background&&"transparent"!==t.background){var e=this.chart.canvas,n=this.chart.ctx,r=document.createElement("canvas"),o=r.getContext("2d");return r.width=n.canvas.width,r.height=n.canvas.height,o.fillStyle=t.background,o.fillRect(0,0,r.width,r.height),o.drawImage(e,0,0),r.toDataURL("image/png")}return this.chart.toBase64Image()}throw new Error("Feature only available for Chart.js")},Ht.prototype.destroy=function(){this.destroyed=!0,this.stopRefresh(),this.__adapterObject&&this.__adapterObject.destroy(this),this.__enterEvent&&xt(this.element,"mouseover",this.__enterEvent),this.__leaveEvent&&xt(this.element,"mouseout",this.__leaveEvent)},Ht.prototype.__updateOptions=function(t){var e=t.refresh&&t.refresh!==this.options.refresh;this.options=o(Wt.options,t),e&&(this.stopRefresh(),this.startRefresh())},Ht.prototype.__render=function(){this.data=this.__processData(),It(this.__chartName(),this)},Ht.prototype.__config=function(){return St};var Wt={LineChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this)},e.prototype.__chartName=function(){return"LineChart"},e}(Ht),PieChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return yt(this)},e.prototype.__chartName=function(){return"PieChart"},e}(Ht),ColumnChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,null,!0)},e.prototype.__chartName=function(){return"ColumnChart"},e}(Ht),BarChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,null,!0)},e.prototype.__chartName=function(){return"BarChart"},e}(Ht),AreaChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this)},e.prototype.__chartName=function(){return"AreaChart"},e}(Ht),GeoChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return yt(this)},e.prototype.__chartName=function(){return"GeoChart"},e}(Ht),ScatterChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,"number")},e.prototype.__chartName=function(){return"ScatterChart"},e}(Ht),BubbleChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,"bubble")},e.prototype.__chartName=function(){return"BubbleChart"},e}(Ht),Timeline:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){var t,e=this.rawData;for(t=0;t=1},subscribe:function(t){return s.size||this.register(),c+=1,s.set(c,t),t(u),c},unsubscribe:function(t){s.delete(t),s.size||this.unregister()},unregister:function(){var t=this;Object.keys(a).forEach((function(e){var n=a[e],r=t.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),s.clear()},register:function(){var t=this;Object.keys(a).forEach((function(e){var n=a[e],i=function(n){var i=n.matches;t.dispatch((0,o.Z)((0,o.Z)({},u),(0,r.Z)({},e,i)))},s=window.matchMedia(n);s.addListener(i),t.matchHandlers[n]={mql:s,listener:i},i(s)}))}};e.ZP=l},31877:function(t,e,n){"use strict";var r=n(53328);r.kL.register(...r.zX),e.Z=r.kL},3940:function(t,e,n){"use strict";n.d(e,{$:function(){return a},A:function(){return Ce},B:function(){return tt},C:function(){return be},D:function(){return x},E:function(){return on},F:function(){return Je},G:function(){return cn},H:function(){return B},I:function(){return o},J:function(){return sn},K:function(){return qe},L:function(){return Y},M:function(){return X},N:function(){return g},O:function(){return v},P:function(){return L},Q:function(){return xe},R:function(){return K},S:function(){return Kt},T:function(){return D},U:function(){return at},V:function(){return te},W:function(){return oe},X:function(){return ce},Y:function(){return ie},Z:function(){return me},_:function(){return Te},a:function(){return ve},a0:function(){return s},a1:function(){return Qt},a2:function(){return _},a3:function(){return S},a4:function(){return Zt},a5:function(){return j},a6:function(){return Ee},a7:function(){return Se},a8:function(){return je},a9:function(){return k},aA:function(){return yn},aB:function(){return u},aC:function(){return et},aD:function(){return q},aE:function(){return V},aF:function(){return $},aG:function(){return Z},aH:function(){return G},aI:function(){return Gt},aJ:function(){return _e},aK:function(){return Me},aa:function(){return l},ab:function(){return i},ac:function(){return an},ad:function(){return ee},ae:function(){return P},af:function(){return w},ag:function(){return R},ah:function(){return st},ai:function(){return de},aj:function(){return $e},ak:function(){return wn},al:function(){return xn},am:function(){return ln},an:function(){return fn},ao:function(){return un},ap:function(){return ae},aq:function(){return se},ar:function(){return ne},as:function(){return le},at:function(){return ge},au:function(){return ye},av:function(){return vn},aw:function(){return rt},ax:function(){return dn},ay:function(){return gn},az:function(){return c},b:function(){return p},c:function(){return Vt},d:function(){return Jt},e:function(){return ft},f:function(){return T},g:function(){return d},h:function(){return we},i:function(){return h},j:function(){return E},k:function(){return f},l:function(){return Oe},m:function(){return b},n:function(){return m},o:function(){return hn},p:function(){return ot},q:function(){return Q},r:function(){return r},s:function(){return U},t:function(){return J},u:function(){return Ae},v:function(){return y},w:function(){return it},x:function(){return ze},y:function(){return nn},z:function(){return re}});const r="undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame;function o(t,e,n){const o=n||(t=>Array.prototype.slice.call(t));let i=!1,a=[];return function(...n){a=o(n),i||(i=!0,r.call(window,(()=>{i=!1,t.apply(e,a)})))}}function i(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const a=t=>"start"===t?"left":"end"===t?"right":"center",s=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,c=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function u(){}const l=function(){let t=0;return function(){return t++}}();function f(t){return null===t||"undefined"===typeof t}function p(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function h(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const d=t=>("number"===typeof t||t instanceof Number)&&isFinite(+t);function g(t,e){return d(t)?t:e}function y(t,e){return"undefined"===typeof t?e:t}const b=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,m=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function v(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)}function x(t,e,n,r){let o,i,a;if(p(t))if(i=t.length,r)for(o=i-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;on;)t=t[e.substr(n,r-n)],n=r+1,r=A(e,n);return t}function S(t){return t.charAt(0).toUpperCase()+t.slice(1)}const E=t=>"undefined"!==typeof t,j=t=>"function"===typeof t,P=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function R(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const L=Math.PI,D=2*L,N=D+L,F=Number.POSITIVE_INFINITY,I=L/180,B=L/2,H=L/4,W=2*L/3,Y=Math.log10,U=Math.sign;function V(t){const e=Math.round(t);t=Z(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Y(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function X(t){const e=[],n=Math.sqrt(t);let r;for(r=1;rt-e)).pop(),e}function Q(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Z(t,e,n){return Math.abs(t-e)=t}function q(t,e,n){let r,o,i;for(r=0,o=t.length;rc&&u=Math.min(e,n)-r&&t<=Math.max(e,n)+r}const ct=t=>0===t||1===t,ut=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/n),lt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/n)+1,ft={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=>1-Math.cos(t*B),easeOutSine:t=>Math.sin(t*B),easeInOutSine:t=>-.5*(Math.cos(L*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ct(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),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=>ct(t)?t:ut(t,.075,.3),easeOutElastic:t=>ct(t)?t:lt(t,.075,.3),easeInOutElastic(t){const e=.1125;return ct(t)?t:t<.5?.5*ut(2*t,e,.45):.5+.5*lt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ft.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*ft.easeInBounce(2*t):.5*ft.easeOutBounce(2*t-1)+.5},pt={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},ht="0123456789ABCDEF",dt=t=>ht[15&t],gt=t=>ht[(240&t)>>4]+ht[15&t],yt=t=>(240&t)>>4===(15&t);function bt(t){var e=function(t){return yt(t.r)&&yt(t.g)&&yt(t.b)&&yt(t.a)}(t)?dt:gt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function mt(t){return t+.5|0}const vt=(t,e,n)=>Math.max(Math.min(t,n),e);function xt(t){return vt(mt(2.55*t),0,255)}function wt(t){return vt(mt(255*t),0,255)}function Mt(t){return vt(mt(t/2.55)/100,0,1)}function zt(t){return vt(mt(100*t),0,100)}const Ct=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const _t=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function kt(t,e,n){const r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function Ot(t,e,n){const r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function At(t,e,n){const r=kt(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function Tt(t){const e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,n,r),a=(o+i)/2;let s,c,u;return o!==i&&(u=o-i,c=a>.5?u/(2-o-i):u/(o+i),s=o===e?(n-r)/u+(n>16&255,i>>8&255,255&i]}return t}(),Dt.transparent=[0,0,0,0]);const e=Dt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function Ft(t,e,n){if(t){let r=Tt(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=Et(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function It(t,e){return t?Object.assign(e||{},t):t}function Bt(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=wt(t[3]))):(e=It(t,{r:0,g:0,b:0,a:1})).a=wt(e.a),e}function Ht(t){return"r"===t.charAt(0)?function(t){const e=Ct.exec(t);let n,r,o,i=255;if(e){if(e[7]!==n){const t=+e[7];i=255&(e[8]?xt(t):255*t)}return n=+e[1],r=+e[3],o=+e[5],n=255&(e[2]?xt(n):n),r=255&(e[4]?xt(r):r),o=255&(e[6]?xt(o):o),{r:n,g:r,b:o,a:i}}}(t):Pt(t)}class Wt{constructor(t){if(t instanceof Wt)return t;const e=typeof t;let n;"object"===e?n=Bt(t):"string"===e&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*pt[t[1]],g:255&17*pt[t[2]],b:255&17*pt[t[3]],a:5===n?17*pt[t[4]]:255}:7!==n&&9!==n||(e={r:pt[t[1]]<<4|pt[t[2]],g:pt[t[3]]<<4|pt[t[4]],b:pt[t[5]]<<4|pt[t[6]],a:9===n?pt[t[7]]<<4|pt[t[8]]:255})),e}(t)||Nt(t)||Ht(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=It(this._rgb);return t&&(t.a=Mt(t.a)),t}set rgb(t){this._rgb=Bt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Mt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?bt(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=Tt(t),n=e[0],r=zt(e[1]),o=zt(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${Mt(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):this._rgb}mix(t,e){const n=this;if(t){const r=n.rgb,o=t.rgb;let i;const a=e===i?.5:e,s=2*a-1,c=r.a-o.a,u=((s*c===-1?s:(s+c)/(1+s*c))+1)/2;i=1-u,r.r=255&u*r.r+i*o.r+.5,r.g=255&u*r.g+i*o.g+.5,r.b=255&u*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,n.rgb=r}return n}clone(){return new Wt(this.rgb)}alpha(t){return this._rgb.a=wt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=mt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ft(this._rgb,2,t),this}darken(t){return Ft(this._rgb,2,-t),this}saturate(t){return Ft(this._rgb,1,t),this}desaturate(t){return Ft(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Tt(t);n[0]=jt(n[0]+e),n=Et(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Yt(t){return new Wt(t)}const Ut=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function Vt(t){return Ut(t)?t:Yt(t)}function Xt(t){return Ut(t)?t:Yt(t).saturate(.5).darken(.1).hexString()}const Qt=Object.create(null),Zt=Object.create(null);function $t(t,e){if(!e)return t;const n=e.split(".");for(let r=0,o=n.length;rt.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)=>Xt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Xt(e.borderColor),this.hoverColor=(t,e)=>Xt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},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)}set(t,e){return qt(this,t,e)}get(t){return $t(this,t)}describe(t,e){return qt(Zt,t,e)}override(t,e){return qt(Qt,t,e)}route(t,e,n,r){const o=$t(this,t),i=$t(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[r];return h(t)?Object.assign({},e,t):y(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Kt(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function Gt(t,e,n,r){let o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(o=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const s=n.length;let c,u,l,f,h;for(c=0;cn.length){for(c=0;c0&&t.stroke()}}function re(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==i.strokeColor;let c,u;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);f(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,i),c=0;cy(t[n],t[e[n]]):e=>t[e]:()=>t;for(const a of o)n[a]=+i(a)||0;return n}function ge(t){return de(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ye(t){return de(t,["topLeft","topRight","bottomLeft","bottomRight"])}function be(t){const e=ge(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function me(t,e){t=t||{},e=e||Jt.font;let n=y(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let r=y(t.style,e.style);r&&!(""+r).match(pe)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:y(t.family,e.family),lineHeight:he(y(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:y(t.weight,e.weight),string:""};return o.string=function(t){return!t||f(t.size)||f(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function ve(t,e,n,r){let o,i,a,s=!0;for(o=0,i=t.length;on&&0===t?0:t+e;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function we(t,e){return Object.assign(Object.create(t),e)}function Me(t,e,n){n=n||(n=>t[n]1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const ze=(t,e,n)=>Me(t,n,(r=>t[r][e]Me(t,n,(r=>t[r][e]>=n));function _e(t,e,n){let r=0,o=t.length;for(;rr&&t[o-1]>n;)o--;return r>0||o{const n="_onData"+S(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const o=r.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[n]&&t[n](...e)})),o}})})))}function Ae(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(e);-1!==o&&r.splice(o,1),r.length>0||(ke.forEach((e=>{delete t[e]})),delete t._chartjs)}function Te(t){const e=new Set;let n,r;for(n=0,r=t.length;nt[0])){E(r)||(r=He("_fallback",t));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>Se([o,...t],e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>Le(n,r,(()=>function(t,e,n,r){let o;for(const i of e)if(o=He(Pe(i,t),n),E(o))return Re(t,o)?Ie(n,r,t,o):o}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>We(t).includes(e),ownKeys:t=>We(t),set(t,e,n){const r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function Ee(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:je(t,r),setContext:e=>Ee(t,e,n,r),override:o=>Ee(t.override(o),e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Le(t,e,(()=>function(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=t;let s=r[e];j(s)&&a.isScriptable(e)&&(s=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(i,a||r),s.delete(t),Re(t,e)&&(e=Ie(o._scopes,o,t,e));return e}(e,s,t,n));p(s)&&s.length&&(s=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=n;if(E(i.index)&&r(t))e=e[i.index%e.length];else if(h(e[0])){const n=e,r=o._scopes.filter((t=>t!==n));e=[];for(const c of n){const n=Ie(r,o,t,c);e.push(Ee(n,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Re(e,s)&&(s=Ee(s,o,i&&i[e],a));return s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function je(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:j(n)?n:()=>n,isIndexable:j(r)?r:()=>r}}const Pe=(t,e)=>t?t+S(e):e,Re=(t,e)=>h(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Le(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function De(t,e,n){return j(t)?t(e,n):t}const Ne=(t,e)=>!0===t?e:"string"===typeof t?T(e,t):void 0;function Fe(t,e,n,r,o){for(const i of e){const e=Ne(n,i);if(e){t.add(e);const i=De(e._fallback,n,o);if(E(i)&&i!==n&&i!==r)return i}else if(!1===e&&E(r)&&n!==r)return null}return!1}function Ie(t,e,n,r){const o=e._rootScopes,i=De(e._fallback,n,r),a=[...t,...o],s=new Set;s.add(r);let c=Be(s,a,n,i||n,r);return null!==c&&((!E(i)||i===n||(c=Be(s,a,i,c,r),null!==c))&&Se(Array.from(s),[""],o,i,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];if(p(o)&&h(n))return n;return o}(e,n,r))))}function Be(t,e,n,r,o){for(;n;)n=Fe(t,e,n,r,o);return n}function He(t,e){for(const n of e){if(!n)continue;const e=n[t];if(E(e))return e}}function We(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const Ye=Number.EPSILON||1e-14,Ue=(t,e)=>e"x"===t?"y":"x";function Xe(t,e,n,r){const o=t.skip?e:t,i=e,a=n.skip?e:n,s=et(i,o),c=et(a,i);let u=s/(s+c),l=c/(s+c);u=isNaN(u)?0:u,l=isNaN(l)?0:l;const f=r*u,p=r*l;return{previous:{x:i.x-f*(a.x-o.x),y:i.y-f*(a.y-o.y)},next:{x:i.x+p*(a.x-o.x),y:i.y+p*(a.y-o.y)}}}function Qe(t,e="x"){const n=Ve(e),r=t.length,o=Array(r).fill(0),i=Array(r);let a,s,c,u=Ue(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)Qe(t,o);else{let n=r?t[t.length-1]:t[0];for(i=0,a=t.length;iwindow.getComputedStyle(t,null);const tn=["top","right","bottom","left"];function en(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=tn[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function nn(t,e){const{canvas:n,currentDevicePixelRatio:r}=e,o=Ge(n),i="border-box"===o.boxSizing,a=en(o,"padding"),s=en(o,"border","width"),{x:c,y:u,box:l}=function(t,e){const n=t.native||t,r=n.touches,o=r&&r.length?r[0]:n,{offsetX:i,offsetY:a}=o;let s,c,u=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(i,a,n.target))s=i,c=a;else{const t=e.getBoundingClientRect();s=o.clientX-t.left,c=o.clientY-t.top,u=!0}return{x:s,y:c,box:u}}(t,n),f=a.left+(l&&s.left),p=a.top+(l&&s.top);let{width:h,height:d}=e;return i&&(h-=a.width+s.width,d-=a.height+s.height),{x:Math.round((c-f)/h*n.width/r),y:Math.round((u-p)/d*n.height/r)}}const rn=t=>Math.round(10*t)/10;function on(t,e,n,r){const o=Ge(t),i=en(o,"margin"),a=Ke(o.maxWidth,t,"clientWidth")||F,s=Ke(o.maxHeight,t,"clientHeight")||F,c=function(t,e,n){let r,o;if(void 0===e||void 0===n){const i=Je(t);if(i){const t=i.getBoundingClientRect(),a=Ge(i),s=en(a,"border","width"),c=en(a,"padding");e=t.width-c.width-s.width,n=t.height-c.height-s.height,r=Ke(a.maxWidth,i,"clientWidth"),o=Ke(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||F,maxHeight:o||F}}(t,e,n);let{width:u,height:l}=c;if("content-box"===o.boxSizing){const t=en(o,"border","width"),e=en(o,"padding");u-=e.width+t.width,l-=e.height+t.height}return u=Math.max(0,u-i.width),l=Math.max(0,r?Math.floor(u/r):l-i.height),u=rn(Math.min(u,a,c.maxWidth)),l=rn(Math.min(l,s,c.maxHeight)),u&&!l&&(l=rn(u/2)),{width:u,height:l}}function an(t,e,n){const r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=o/r,t.width=i/r;const 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!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}const sn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function cn(t,e){const n=function(t,e){return Ge(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function un(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function ln(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 fn(t,e,n,r){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=un(t,o,n),s=un(o,i,n),c=un(i,e,n),u=un(a,s,n),l=un(s,c,n);return un(u,l,n)}const pn=new Map;function hn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=pn.get(n);return r||(r=new Intl.NumberFormat(t,e),pn.set(n,r)),r}(e,n).format(t)}function dn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function gn(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function yn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function bn(t){return"angle"===t?{between:ot,compare:nt,normalize:rt}:{between:st,compare:(t,e)=>t-e,normalize:t=>t}}function mn({start:t,end:e,count:n,loop:r,style:o}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:o}}function vn(t,e,n){if(!n)return[t];const{property:r,start:o,end:i}=n,a=e.length,{compare:s,between:c,normalize:u}=bn(r),{start:l,end:f,loop:p,style:h}=function(t,e,n){const{property:r,start:o,end:i}=n,{between:a,normalize:s}=bn(r),c=e.length;let u,l,{start:f,end:p,loop:h}=t;if(h){for(f+=c,p+=c,u=0,l=c;um||c(o,b,g)&&0!==s(o,b),w=()=>!m||0===s(i,g)||c(i,b,g);for(let M=l,z=l;M<=f;++M)y=e[M%a],y.skip||(g=u(y[r]),g!==b&&(m=c(g,o,i),null===v&&x()&&(v=0===s(g,o)?M:z),null!==v&&w()&&(d.push(mn({start:v,end:M,loop:p,count:a,style:h})),v=null),z=M,b=g));return null!==v&&d.push(mn({start:v,end:f,loop:p,count:a,style:h})),d}function xn(t,e){const n=[],r=t.segments;for(let o=0;oo&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(n,o,i,r);if(!0===r)return Mn(t,[{start:a,end:s,loop:i}],n,e);return Mn(t,function(t,e,n,r){const o=t.length,i=[];let a,s=e,c=t[e];for(a=e+1;a<=n;++a){const n=t[a%o];n.skip||n.stop?c.skip||(r=!1,i.push({start:e%o,end:(a-1)%o,loop:r}),e=s=n.stop?a:null):(s=a,c.skip&&(e=a)),c=n}return null!==s&&i.push({start:e%o,end:s%o,loop:r}),i}(n,a,s=6}function M(t){return"number"===typeof t}var z=["bytes","KB","MB","GB","TB","PB","EB"];function C(t,e,n,r){t=t||"",n.prefix&&(e<0&&(e*=-1,t+="-"),t+=n.prefix);var o=n.suffix||"",i=n.precision,a=n.round;if(n.byteScale){var c,u=r?n.byteScale:e;u>=0x1000000000000000?(e/=0x1000000000000000,c=6):u>=0x4000000000000?(e/=0x4000000000000,c=5):u>=1099511627776?(e/=1099511627776,c=4):u>=1073741824?(e/=1073741824,c=3):u>=1048576?(e/=1048576,c=2):u>=1024?(e/=1024,c=1):c=0,void 0===i&&void 0===a&&(e>=1023.5&&c=1e3?4:3),o=" "+z[c]}if(void 0!==i&&void 0!==a)throw Error("Use either round or precision, not both");if(!r&&(void 0!==i&&(e=e.toPrecision(i),n.zeros||(e=parseFloat(e))),void 0!==a))if(a<0){var l=Math.pow(10,-1*a);e=parseInt((1*e/l).toFixed(0))*l}else e=e.toFixed(a),n.zeros||(e=parseFloat(e));if(n.thousands||n.decimal){var f=(e=s(e)).split(".");e=f[0],n.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands)),f.length>1&&(e+=(n.decimal||".")+f[1])}return t+e+o}function _(t,e,n){return n in e?e[n]:n in t.options?t.options[n]:null}function k(t){var e,n,r;for(e=0;e25?r=25:r<10&&(r=10),n.scales.x.ticks.callback||(n.scales.x.ticks.callback=function(t){return(t=s(this.getLabelForValue(t))).length>r?t.substring(0,r-2)+"...":t})},W=function(e,n,r){var o={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var i=e.data;"pie"===r&&(i=[{data:i}]);for(var a=0,s=0;sa&&(a=c.data[u][1]);for(var l=1;a>=1024;)l*=1024,a/=1024;o.byteScale=l}if("pie"!==r){var f=n.scales.y;"bar"===r&&(f=n.scales.x),o.byteScale&&(f.ticks.stepSize||(f.ticks.stepSize=o.byteScale/2),f.ticks.maxTicksLimit||(f.ticks.maxTicksLimit=4)),f.ticks.callback||(f.ticks.callback=function(t){return C("",t,o,!0)})}if(!n.plugins.tooltip.callbacks.label)if("scatter"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";return e&&(e+=": "),e+"("+t.label+", "+t.formattedValue+")"};else if("bubble"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";e&&(e+=": ");var n=t.raw;return e+"("+n.x+", "+n.y+", "+n.v+")"};else if("pie"===r)n.plugins.tooltip.callbacks.label=function(e){var n=e.label,r=": ";return t(n)?(n=n.slice())[0]+=r:n+=r,C(n,e.parsed,o)};else{var p="bar"===r?"x":"y";n.plugins.tooltip.callbacks.label=function(t){if(null!==t.parsed[p]){var e=t.dataset.label||"";return e&&(e+=": "),C(e,t.parsed[p],o)}}}},Y=f(o(O,A),S,E,j,P,D,N,F),U=function(e,n,r){var i,a=[],s=[],l=e.options.colors||T,f=!0,p=!0,h=!0,w=!0,M=!0,z=!0,C=e.data,k=0;if("bubble"===r)for(var O=0;Ok&&(k=A.data[S][2]);var E,j,P,R,L,D,N,F=[],H=[];if("bar"===r||"column"===r||"number"!==e.xtype&&"bubble"!==e.xtype){var W,Y,U=[];for(E=0;E0){var et=(B(G)?u(G):s[0]).getTime(),nt=(B(tt)?u(tt):s[0]).getTime();for(E=1;Ent&&(nt=rt)}var ot,it=(nt-et)/864e5;if(!n.scales.x.time.unit&&(w||it>3650?(n.scales.x.time.unit="year",ot=365):h||it>300?(n.scales.x.time.unit="month",ot=30):f||it>10?(n.scales.x.time.unit="day",ot=1):M||it>.5?(n.scales.x.time.displayFormats={hour:"MMM d, h a"},n.scales.x.time.unit="hour",ot=1/24):z&&(n.scales.x.time.displayFormats={minute:"h:mm a"},n.scales.x.time.unit="minute",ot=1/24/60),ot&&it>0)){var at=e.element.offsetWidth;if(at>0){var st=Math.ceil(it/ot/(at/100));p&&1===ot&&(st=7*Math.ceil(st/7)),n.scales.x.time.stepSize=st}}n.scales.x.time.tooltipFormat||(f?n.scales.x.time.tooltipFormat="PP":M?n.scales.x.time.tooltipFormat="MMM d, h a":z&&(n.scales.x.time.tooltipFormat="h:mm a"))}return{labels:s,datasets:a}},V=function(t){this.name="chartjs",this.library=t};V.prototype.renderLineChart=function(t,e){var n={};!t.options.max&&k(t.data)&&(n.max=1);var r=Y(t,o(n,t.options));W(t,r,e);var i=U(t,r,e||"line");"number"===t.xtype?(r.scales.x.type=r.scales.x.type||"linear",r.scales.x.position=r.scales.x.position||"bottom"):r.scales.x.type="string"===t.xtype?"category":"time",this.drawChart(t,"line",i,r)},V.prototype.renderPieChart=function(t){var e=o({},O);t.options.donut&&(e.cutout="50%"),"legend"in t.options&&S(e,t.options.legend),t.options.title&&E(e,t.options.title),e=o(e,t.options.library||{}),W(t,e,"pie");for(var n=[],r=[],i=0;i\u25cf '+C(this.series.name+": ",this.y,r)+"
"})},J=function(t){this.name="highcharts",this.library=t};J.prototype.renderLineChart=function(t,e){var n={};"areaspline"===(e=e||"spline")&&(n={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var r,o,i,a=$(t,t.options,n);"number"===t.xtype?a.xAxis.type=a.xAxis.type||"linear":a.xAxis.type="string"===t.xtype?"category":"datetime",a.chart.type||(a.chart.type=e),q(t,a,e);var s=t.data;for(o=0;o0)return!1;return!0}function mt(t){var e=t.element,n=document.createElement("a"),r=t.options.download;!0===r?r={}:"string"===typeof r&&(r={filename:r}),n.download=r.filename||"chart.png",n.style.position="absolute",n.style.top="20px",n.style.right="20px",n.style.zIndex=1e3,n.style.lineHeight="20px",n.target="_blank";var o=document.createElement("img");o.alt="Download",o.style.border="none",o.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",n.appendChild(o),e.style.position="relative",t.__downloadAttached=!0,t.__enterEvent=vt(e,"mouseover",(function(o){var i=o.relatedTarget;i&&(i===this||wt(this,i))||!t.options.download||(n.href=t.toImage(r),e.appendChild(n))})),t.__leaveEvent=vt(e,"mouseout",(function(t){var e=t.relatedTarget;e&&(e===this||wt(this,e))||n.parentNode&&n.parentNode.removeChild(n)}))}function vt(t,e,n){if(t.addEventListener)return t.addEventListener(e,n,!1),n;var r=function(){return n.call(t,window.event)};return t.attachEvent("on"+e,r),r}function xt(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function wt(t,e){if(t===e)return!1;for(;e&&e!==t;)e=e.parentNode;return e===t}lt.prototype.renderLineChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={};!1===t.options.curve&&(n.curveType="none"),!1===t.options.points&&(n.pointSize=0);var r=ct(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"LineChart",o,r)}))},lt.prototype.renderPieChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={chartArea:{top:"10%",height:"80%"},legend:{}};t.options.colors&&(n.colors=t.options.colors),t.options.donut&&(n.pieHole=.5),"legend"in t.options&&et(n,t.options.legend),t.options.title&&nt(n,t.options.title);var r=o(o(tt,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number","Value"),i.addRows(t.data),e.drawChart(t,"PieChart",i,r)}))},lt.prototype.renderColumnChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n=ct(t,t.options),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"ColumnChart",r,n)}))},lt.prototype.renderBarChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={hAxis:{gridlines:{color:"#ccc"}}},r=f(tt,et,nt,rt,ot,it,at,st)(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"BarChart",o,r)}))},lt.prototype.renderAreaChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={isStacked:!0,pointSize:0,areaOpacity:.5},r=ct(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"AreaChart",o,r)}))},lt.prototype.renderGeoChart=function(t){var e=this;this.waitForLoaded(t,"geochart",(function(){var n={legend:"none",colorAxis:{colors:t.options.colors||["#f6c7b6","#ce502d"]}},r=o(o(tt,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number",t.options.label||"Value"),i.addRows(t.data),e.drawChart(t,"GeoChart",i,r)}))},lt.prototype.renderScatterChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n,r,o,i,a={},s=ct(t,t.options,a),c=t.data,u=[];for(n=0;n0?new Error("No charting library found for "+t):new Error("No charting libraries found - be sure to include one before your charts")}var Ht=function(t,e,n){var r;if("string"===typeof t&&(r=t,!(t=document.getElementById(t))))throw new Error("No element with id "+r);this.element=t,this.options=o(Wt.options,n||{}),this.dataSource=e,Wt.charts[t.id]=this,Lt(this,e,!0),this.options.refresh&&this.startRefresh()};Ht.prototype.getElement=function(){return this.element},Ht.prototype.getDataSource=function(){return this.dataSource},Ht.prototype.getData=function(){return this.data},Ht.prototype.getOptions=function(){return this.options},Ht.prototype.getChartObject=function(){return this.chart},Ht.prototype.getAdapter=function(){return this.adapter},Ht.prototype.updateData=function(t,e){this.dataSource=t,e&&this.__updateOptions(e),Lt(this,t,!0)},Ht.prototype.setOptions=function(t){this.__updateOptions(t),this.redraw()},Ht.prototype.redraw=function(){Lt(this,this.rawData)},Ht.prototype.refreshData=function(){if("string"===typeof this.dataSource){var t=-1===this.dataSource.indexOf("?")?"?":"&";Lt(this,this.dataSource+t+"_="+(new Date).getTime())}else"function"===typeof this.dataSource&&Lt(this,this.dataSource)},Ht.prototype.startRefresh=function(){var t=this,e=this.options.refresh;if(e&&"string"!==typeof this.dataSource&&"function"!==typeof this.dataSource)throw new Error("Data source must be a URL or callback for refresh");if(!this.intervalId){if(!e)throw new Error("No refresh interval");this.intervalId=setInterval((function(){t.refreshData()}),1e3*e)}},Ht.prototype.stopRefresh=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},Ht.prototype.toImage=function(t){if("chartjs"===this.adapter){if(t&&t.background&&"transparent"!==t.background){var e=this.chart.canvas,n=this.chart.ctx,r=document.createElement("canvas"),o=r.getContext("2d");return r.width=n.canvas.width,r.height=n.canvas.height,o.fillStyle=t.background,o.fillRect(0,0,r.width,r.height),o.drawImage(e,0,0),r.toDataURL("image/png")}return this.chart.toBase64Image()}throw new Error("Feature only available for Chart.js")},Ht.prototype.destroy=function(){this.destroyed=!0,this.stopRefresh(),this.__adapterObject&&this.__adapterObject.destroy(this),this.__enterEvent&&xt(this.element,"mouseover",this.__enterEvent),this.__leaveEvent&&xt(this.element,"mouseout",this.__leaveEvent)},Ht.prototype.__updateOptions=function(t){var e=t.refresh&&t.refresh!==this.options.refresh;this.options=o(Wt.options,t),e&&(this.stopRefresh(),this.startRefresh())},Ht.prototype.__render=function(){this.data=this.__processData(),It(this.__chartName(),this)},Ht.prototype.__config=function(){return St};var Wt={LineChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this)},e.prototype.__chartName=function(){return"LineChart"},e}(Ht),PieChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return yt(this)},e.prototype.__chartName=function(){return"PieChart"},e}(Ht),ColumnChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,null,!0)},e.prototype.__chartName=function(){return"ColumnChart"},e}(Ht),BarChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,null,!0)},e.prototype.__chartName=function(){return"BarChart"},e}(Ht),AreaChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this)},e.prototype.__chartName=function(){return"AreaChart"},e}(Ht),GeoChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return yt(this)},e.prototype.__chartName=function(){return"GeoChart"},e}(Ht),ScatterChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,"number")},e.prototype.__chartName=function(){return"ScatterChart"},e}(Ht),BubbleChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,"bubble")},e.prototype.__chartName=function(){return"BubbleChart"},e}(Ht),Timeline:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){var t,e=this.rawData;for(t=0;t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function l(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function f(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,i.uA)(e),d=5;d>0;d-=1){var p=a(r),v=c((0,i.uA)({h:u(p,d,!0),s:l(p,d,!0),v:f(p,d,!0)}));n.push(v)}n.push(c(r));for(var h=1;h<=4;h+=1){var m=a(r),g=c((0,i.uA)({h:u(m,h),s:l(m,h),v:f(m,h)}));n.push(g)}return"dark"===t.theme?o.map((function(e){var r=e.index,o=e.opacity;return c(s((0,i.uA)(t.backgroundColor||"#141414"),(0,i.uA)(n[r]),100*o))})):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},v={},h={};Object.keys(p).forEach((function(e){v[e]=d(p[e]),v[e].primary=v[e][5],h[e]=d(p[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}));var m=v.red,g=v.volcano,y=v.gold,b=v.orange,w=v.yellow,x=v.lime,E=v.green,C=v.cyan,Z=v.blue,k=v.geekblue,N=v.purple,P=v.magenta,S=v.grey},42135:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(1413),i=n(97685),o=n(4942),a=n(91),c=n(67294),s=n(94184),u=n.n(s),l=n(63017),f=n(71002),d=n(92138),p=n(80334),v=n(44958);function h(e){return"object"===(0,f.Z)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"===typeof e.icon)}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}function g(e,t,n){return n?c.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},m(e.attrs)),n),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c.createElement(e.tag,(0,r.Z)({key:t},m(e.attrs)),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function y(e){return(0,d.generate)(e)[0]}function b(e){return e?Array.isArray(e)?e:[e]:[]}var w="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",x=["icon","className","onClick","style","primaryColor","secondaryColor"],E={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,i=e.icon,o=e.className,s=e.onClick,u=e.style,f=e.primaryColor,d=e.secondaryColor,m=(0,a.Z)(e,x),b=E;if(f&&(b={primaryColor:f,secondaryColor:d||y(f)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=(0,c.useContext)(l.Z).csp;(0,c.useEffect)((function(){(0,v.h)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=h(i),n="icon should be icon definiton, but got ".concat(i),(0,p.ZP)(t,"[@ant-design/icons] ".concat(n)),!h(i))return null;var C=i;return C&&"function"===typeof C.icon&&(C=(0,r.Z)((0,r.Z)({},C),{},{icon:C.icon(b.primaryColor,b.secondaryColor)})),g(C.icon,"svg-".concat(C.name),(0,r.Z)({className:o,onClick:s,style:u,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,r.Z)({},E)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;E.primaryColor=t,E.secondaryColor=n||y(t),E.calculated=!!n};var Z=C;function k(e){var t=b(e),n=(0,i.Z)(t,2),r=n[0],o=n[1];return Z.setTwoToneColors({primaryColor:r,secondaryColor:o})}var N=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k("#1890ff");var P=c.forwardRef((function(e,t){var n,s=e.className,f=e.icon,d=e.spin,p=e.rotate,v=e.tabIndex,h=e.onClick,m=e.twoToneColor,g=(0,a.Z)(e,N),y=c.useContext(l.Z).prefixCls,w=void 0===y?"anticon":y,x=u()(w,(n={},(0,o.Z)(n,"".concat(w,"-").concat(f.name),!!f.name),(0,o.Z)(n,"".concat(w,"-spin"),!!d||"loading"===f.name),n),s),E=v;void 0===E&&h&&(E=-1);var C=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,k=b(m),P=(0,i.Z)(k,2),S=P[0],O=P[1];return c.createElement("span",(0,r.Z)((0,r.Z)({role:"img","aria-label":f.name},g),{},{ref:t,tabIndex:E,onClick:h,className:x}),c.createElement(Z,{icon:f,primaryColor:S,secondaryColor:O,style:C}))}));P.displayName="AntdIcon",P.getTwoToneColor=function(){var e=Z.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},P.setTwoToneColor=k;var S=P},63017:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},89739:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CheckCircleFilled";var s=i.forwardRef(c)},8751:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CheckCircleOutlined";var s=i.forwardRef(c)},63606:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CheckOutlined";var s=i.forwardRef(c)},4340:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CloseCircleFilled";var s=i.forwardRef(c)},18429:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CloseCircleOutlined";var s=i.forwardRef(c)},97937:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CloseOutlined";var s=i.forwardRef(c)},57132:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CopyOutlined";var s=i.forwardRef(c)},80882:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="DownOutlined";var s=i.forwardRef(c)},89705:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="EllipsisOutlined";var s=i.forwardRef(c)},21640:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="ExclamationCircleFilled";var s=i.forwardRef(c)},11475:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="ExclamationCircleOutlined";var s=i.forwardRef(c)},90420:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="EyeInvisibleOutlined";var s=i.forwardRef(c)},99611:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="EyeOutlined";var s=i.forwardRef(c)},78860:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="InfoCircleFilled";var s=i.forwardRef(c)},45605:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="InfoCircleOutlined";var s=i.forwardRef(c)},6171:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="LeftOutlined";var s=i.forwardRef(c)},50888:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="LoadingOutlined";var s=i.forwardRef(c)},18073:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="RightOutlined";var s=i.forwardRef(c)},68795:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="SearchOutlined";var s=i.forwardRef(c)},87757:function(e,t,n){e.exports=n(35666)},86500:function(e,t,n){"use strict";n.d(t,{rW:function(){return i},lC:function(){return o},ve:function(){return c},py:function(){return s},WE:function(){return u},vq:function(){return l},s:function(){return f},GC:function(){return d},Wl:function(){return p},T6:function(){return v},VD:function(){return h},Yt:function(){return m}});var r=n(90279);function i(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function o(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,c=0,s=(i+o)/2;if(i===o)c=0,a=0;else{var u=i-o;switch(c=s>.5?u/(2-i-o):u/(i+o),i){case e:a=(t-n)/u+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){var i,o,c;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)o=n,c=n,i=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=a(u,s,e+1/3),o=a(u,s,e),c=a(u,s,e-1/3)}return{r:255*i,g:255*o,b:255*c}}function s(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,c=i,s=i-o,u=0===i?0:s/i;if(i===o)a=0;else{switch(i){case e:a=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}},48701:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(e,t,n){"use strict";n.d(t,{uA:function(){return a},uz:function(){return f},ky:function(){return d}});var r=n(86500),i=n(48701),o=n(90279);function a(e){var t={r:0,g:0,b:0},n=1,i=null,a=null,c=null,s=!1,u=!1;return"string"===typeof e&&(e=f(e)),"object"===typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(i=(0,o.JX)(e.s),a=(0,o.JX)(e.v),t=(0,r.WE)(e.h,i,a),s=!0,u="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(i=(0,o.JX)(e.s),c=(0,o.JX)(e.l),t=(0,r.ve)(e.h,i,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,o.Yq)(n),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var c="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",s="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",u="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",l={CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+u),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(i.R[e])e=i.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=l.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=l.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=l.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=l.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=l.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=l.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=l.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=l.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=l.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=l.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}function d(e){return Boolean(l.CSS_UNIT.exec(String(e)))}},10274:function(e,t,n){"use strict";n.d(t,{C:function(){return c},H:function(){return s}});var r=n(86500),i=n(48701),o=n(1350),a=n(90279),c=function(){function e(t,n){var i;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,o.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb("+e+", "+t+", "+n+")":"rgba("+e+", "+t+", "+n+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(i.R);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a1)&&(e=1),e}function a(e){return e<=1?100*Number(e)+"%":e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,{sh:function(){return r},V2:function(){return i},Yq:function(){return o},JX:function(){return a},FZ:function(){return c}})},98787:function(e,t,n){"use strict";n.d(t,{E:function(){return i},Y:function(){return o}});var r=n(93355),i=(0,r.b)("success","processing","error","default","warning"),o=(0,r.b)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},21687:function(e,t,n){"use strict";var r=n(80334);t.Z=function(e,t,n){(0,r.ZP)(e,"[antd: ".concat(t,"] ").concat(n))}},5467:function(e,t,n){"use strict";function r(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n]),t}),{})}n.d(t,{Z:function(){return r}})},81643:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e?"function"===typeof e?e():e:null}},33603:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=function(){return{height:0,opacity:0}},i=function(e){return{height:e.scrollHeight,opacity:1}},o=function(e,t){return!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName},a={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:i,onEnterActive:i,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:r,onAppearEnd:o,onEnterEnd:o,onLeaveEnd:o,motionDeadline:500},c=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};t.Z=a},32637:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(75164),i=0,o={};function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i++,a=t;function c(){(a-=1)<=0?(e(),delete o[n]):o[n]=(0,r.Z)(c)}return o[n]=(0,r.Z)(c),n}a.cancel=function(e){void 0!==e&&(r.Z.cancel(o[e]),delete o[e])},a.ids=o},96159:function(e,t,n){"use strict";n.d(t,{l$:function(){return i},wm:function(){return o},Tm:function(){return a}});var r=n(67294),i=r.isValidElement;function o(e,t,n){return i(e)?r.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t}function a(e,t){return o(e,e,t)}},93355:function(e,t,n){"use strict";n.d(t,{b:function(){return r},a:function(){return i}});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0)){e.extraNode=document.createElement("div");var u=(0,a.Z)(e).extraNode,f=e.context.getPrefixCls;u.className="".concat(f(""),"-click-animating-node");var d=e.getAttributeName();if(t.setAttribute(d,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&m(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){u.style.borderColor=n;var p=(null===(i=t.getRootNode)||void 0===i?void 0:i.call(t))||t.ownerDocument,v=p instanceof Document?p.body:null!==(o=p.firstChild)&&void 0!==o?o:p;r=(0,l.h)("\n [".concat(f(""),"-click-animating-without-extra-node='true']::after, .").concat(f(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:v})}s&&t.appendChild(u),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!h(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),d.Z.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=(0,d.Z)((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!u.isValidElement(r))return r;var i=e.containerRef;return(0,f.Yr)(r)&&(i=(0,f.sQ)(r.ref,e.containerRef)),(0,v.Tm)(r,{ref:i})},e}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,i=this.getAttributeName();e.setAttribute(i,"false"),r&&(r.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return u.createElement(p.C,null,this.renderWave)}}]),n}(u.Component);g.contextType=p.E_},14670:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(87462),i=n(4942),o=n(97685),a=n(67294),c=n(97937),s=n(8751),u=n(11475),l=n(45605),f=n(18429),d=n(89739),p=n(21640),v=n(78860),h=n(4340),m=n(93481),g=n(94184),y=n.n(g),b=n(59844),w=n(5467),x=n(15671),E=n(43144),C=n(60136),Z=n(3289),k=function(e){(0,C.Z)(n,e);var t=(0,Z.Z)(n);function n(){var e;return(0,x.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,E.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){var e=this.props,t=e.message,n=e.description,r=e.children,i=this.state,o=i.error,c=i.info,s=c&&c.componentStack?c.componentStack:null,u="undefined"===typeof t?(o||"").toString():t,l="undefined"===typeof n?s:n;return o?a.createElement(T,{type:"error",message:u,description:a.createElement("pre",null,l)}):r}}]),n}(a.Component),N=n(96159),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(Z,"` at https://ant.design/components/icon")),(0,b.Z)(!(S&&M(v)),"Button","`link` or `text` button can't be a `ghost` button.");var te=$("btn",p),ne=!1!==K,re=x||L,ie=re&&{large:"lg",small:"sm",middle:void 0}[re]||"",oe=V?"loading":Z,ae=u()(te,(n={},(0,i.Z)(n,"".concat(te,"-").concat(v),v),(0,i.Z)(n,"".concat(te,"-").concat(y),"default"!==y&&y),(0,i.Z)(n,"".concat(te,"-").concat(ie),ie),(0,i.Z)(n,"".concat(te,"-icon-only"),!C&&0!==C&&!!oe),(0,i.Z)(n,"".concat(te,"-background-ghost"),S&&!M(v)),(0,i.Z)(n,"".concat(te,"-loading"),V),(0,i.Z)(n,"".concat(te,"-two-chinese-chars"),q&&ne),(0,i.Z)(n,"".concat(te,"-block"),R),(0,i.Z)(n,"".concat(te,"-dangerous"),!!h),(0,i.Z)(n,"".concat(te,"-rtl"),"rtl"===G),n),E),ce=Z&&!V?Z:c.createElement(k,{existIcon:!!Z,prefixCls:te,loading:!!V}),se=C||0===C?function(e,t){var n=!1,r=[];return c.Children.forEach(e,(function(e){var t=(0,a.Z)(e),i="string"===t||"number"===t;if(n&&i){var o=r.length-1,c=r[o];r[o]="".concat(c).concat(e)}else r.push(e);n=i})),c.Children.map(r,(function(e){return T(e,t)}))}(C,Q()&&ne):null,ue=(0,l.Z)(I,["navigate"]);if(void 0!==ue.href)return c.createElement("a",(0,r.Z)({},ue,{className:ae,onClick:ee,ref:Y}),ce,se);var le=c.createElement("button",(0,r.Z)({},I,{type:j,className:ae,onClick:ee,ref:Y}),ce,se);return M(v)?le:c.createElement(g.Z,{disabled:!!V},le)},F=c.forwardRef(R);F.displayName="Button",F.Group=m,F.__ANT_BUTTON=!0;var j=F},71577:function(e,t,n){"use strict";var r=n(8613);t.Z=r.Z},97647:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(67294),i=r.createContext(void 0),o=function(e){var t=e.children,n=e.size;return r.createElement(i.Consumer,null,(function(e){return r.createElement(i.Provider,{value:n||e},t)}))};t.Z=i},59844:function(e,t,n){"use strict";n.d(t,{C:function(){return s},E_:function(){return c},PG:function(){return u}});var r=n(87462),i=n(67294),o=n(62986),a=function(e){return i.createElement(s,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return i.createElement(o.Z,{image:o.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return i.createElement(o.Z,{image:o.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return i.createElement(o.Z,null)}}))},c=i.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:a}),s=c.Consumer;function u(e){return function(t){var n=function(n){return i.createElement(s,null,(function(o){var a=e.prefixCls,c=(0,o.getPrefixCls)(a,n.prefixCls);return i.createElement(t,(0,r.Z)({},o,n,{prefixCls:c}))}))},o=t.constructor,a=o&&o.displayName||t.name||"Component";return n.displayName="withConfigConsumer(".concat(a,")"),n}}},49264:function(e,t,n){"use strict";n.d(t,{nf:function(){return Ce},ZP:function(){return Me},w6:function(){return Pe}});var r=n(87462),i=n(67294),o=n(63017),a=n(79839),c=n(56982),s=n(15671),u=n(43144),l=n(60136),f=n(3289),d=n(30845),p=n(21687),v=n(83008),h=n(67178),m="internalMark",g=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,v.f)(e.locale&&e.locale.Modal),(0,p.Z)(e._ANT_MARK__===m,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),r}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){(0,v.f)(this.props.locale&&this.props.locale.Modal)}},{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&(0,v.f)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){(0,v.f)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children,o=(0,d.default)((function(e){return(0,r.Z)((0,r.Z)({},e),{exist:!0})}))(t);return i.createElement(h.Z.Provider,{value:o},n)}}]),n}(i.Component);g.defaultProps={locale:{}};var y,b=n(23715),w=n(59844),x=n(97647),E=n(4942),C=n(94184),Z=n.n(C),k=n(91127),N=n(50888),P=n(21640),S=n(4340),O=n(89739),M=n(78860),T=n(97685),A=n(51550);var R,F,j,I=3,L=1,_="",D="move-up",V=!1,z=!1;function H(){return L++}function B(e,t){var n=e.prefixCls,r=e.getPopupContainer,i=Pe(),o=i.getPrefixCls,a=i.getRootPrefixCls,c=i.getIconPrefixCls,s=o("message",n||_),u=a(e.rootPrefixCls,s),l=c();if(y)t({prefixCls:s,rootPrefixCls:u,iconPrefixCls:l,instance:y});else{var f={prefixCls:s,transitionName:V?D:"".concat(u,"-").concat(D),style:{top:R},getContainer:F||r,maxCount:j};k.default.newInstance(f,(function(e){y?t({prefixCls:s,rootPrefixCls:u,iconPrefixCls:l,instance:y}):(y=e,t({prefixCls:s,rootPrefixCls:u,iconPrefixCls:l,instance:e}))}))}}var q={info:M.Z,success:O.Z,error:S.Z,warning:P.Z,loading:N.Z};function U(e,t,n){var r,o=void 0!==e.duration?e.duration:I,a=q[e.type],c=Z()("".concat(t,"-custom-content"),(r={},(0,E.Z)(r,"".concat(t,"-").concat(e.type),e.type),(0,E.Z)(r,"".concat(t,"-rtl"),!0===z),r));return{key:e.key,duration:o,style:e.style||{},className:e.className,content:i.createElement(Me,{iconPrefixCls:n},i.createElement("div",{className:c},e.icon||a&&i.createElement(a,null),i.createElement("span",null,e.content))),onClose:e.onClose,onClick:e.onClick}}var W={open:function(e){var t=e.key||H(),n=new Promise((function(n){var i=function(){return"function"===typeof e.onClose&&e.onClose(),n(!0)};B(e,(function(n){var o=n.prefixCls,a=n.iconPrefixCls;n.instance.notice(U((0,r.Z)((0,r.Z)({},e),{key:t,onClose:i}),o,a))}))})),i=function(){y&&y.removeNotice(t)};return i.then=function(e,t){return n.then(e,t)},i.promise=n,i},config:function(e){void 0!==e.top&&(R=e.top,y=null),void 0!==e.duration&&(I=e.duration),void 0!==e.prefixCls&&(_=e.prefixCls),void 0!==e.getContainer&&(F=e.getContainer),void 0!==e.transitionName&&(D=e.transitionName,y=null,V=!0),void 0!==e.maxCount&&(j=e.maxCount,y=null),void 0!==e.rtl&&(z=e.rtl)},destroy:function(e){if(y)if(e){(0,y.removeNotice)(e)}else{var t=y.destroy;t(),y=null}}};function $(e,t){e[t]=function(n,i,o){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open((0,r.Z)((0,r.Z)({},n),{type:t})):("function"===typeof i&&(o=i,i=void 0),e.open({content:n,duration:i,type:t,onClose:o}))}}["success","info","warning","error","loading"].forEach((function(e){return $(W,e)})),W.warn=W.warning,W.useMessage=function(e,t){return function(){var n,o,a=null,c={add:function(e,t){null===a||void 0===a||a.component.add(e,t)}},s=(0,A.Z)(c),u=(0,T.Z)(s,2),l=u[0],f=u[1];var d=i.useRef({});return d.current.open=function(i){var c=i.prefixCls,s=n("message",c),u=n(),f=i.key||H(),d=new Promise((function(n){var c=function(){return"function"===typeof i.onClose&&i.onClose(),n(!0)};e((0,r.Z)((0,r.Z)({},i),{prefixCls:s,rootPrefixCls:u,getPopupContainer:o}),(function(e){var n=e.prefixCls,o=e.instance;a=o,l(t((0,r.Z)((0,r.Z)({},i),{key:f,onClose:c}),n))}))})),p=function(){a&&a.removeNotice(f)};return p.then=function(e,t){return d.then(e,t)},p.promise=d,p},["success","info","warning","error","loading"].forEach((function(e){return $(d.current,e)})),[d.current,i.createElement(w.C,{key:"holder"},(function(e){return n=e.getPrefixCls,o=e.getPopupContainer,f}))]}}(B,U);var K=W,G=(n(87757),n(97937)),Y=n(8751),X=n(18429),Q=n(11475),J=n(45605);var ee,te,ne,re={},ie=4.5,oe=24,ae=24,ce="",se="topRight",ue=!1;function le(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ae;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function fe(e,t){var n=e.placement,r=void 0===n?se:n,i=e.top,o=e.bottom,a=e.getContainer,c=void 0===a?ee:a,s=e.prefixCls,u=Pe(),l=u.getPrefixCls,f=u.getIconPrefixCls,d=l("notification",s||ce),p=f(),v="".concat(d,"-").concat(r),h=re[v];if(h)Promise.resolve(h).then((function(e){t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:p,instance:e})}));else{var m=Z()("".concat(d,"-").concat(r),(0,E.Z)({},"".concat(d,"-rtl"),!0===ue));re[v]=new Promise((function(e){k.default.newInstance({prefixCls:d,className:m,style:le(r,i,o),getContainer:c,maxCount:ne},(function(n){e(n),t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:p,instance:n})}))}))}}var de={success:Y.Z,info:J.Z,error:X.Z,warning:Q.Z};function pe(e,t,n){var r=e.duration,o=e.icon,a=e.type,c=e.description,s=e.message,u=e.btn,l=e.onClose,f=e.onClick,d=e.key,p=e.style,v=e.className,h=e.closeIcon,m=void 0===h?te:h,g=void 0===r?ie:r,y=null;o?y=i.createElement("span",{className:"".concat(t,"-icon")},e.icon):a&&(y=i.createElement(de[a]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(a)}));var b=i.createElement("span",{className:"".concat(t,"-close-x")},m||i.createElement(G.Z,{className:"".concat(t,"-close-icon")})),w=!c&&y?i.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:i.createElement(Me,{iconPrefixCls:n},i.createElement("div",{className:y?"".concat(t,"-with-icon"):"",role:"alert"},y,i.createElement("div",{className:"".concat(t,"-message")},w,s),i.createElement("div",{className:"".concat(t,"-description")},c),u?i.createElement("span",{className:"".concat(t,"-btn")},u):null)),duration:g,closable:!0,closeIcon:b,onClose:l,onClick:f,key:d,style:p||{},className:Z()(v,(0,E.Z)({},"".concat(t,"-").concat(a),!!a))}}var ve={open:function(e){fe(e,(function(t){var n=t.prefixCls,r=t.iconPrefixCls;t.instance.notice(pe(e,n,r))}))},close:function(e){Object.keys(re).forEach((function(t){return Promise.resolve(re[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,i=e.top,o=e.getContainer,a=e.closeIcon,c=e.prefixCls;void 0!==c&&(ce=c),void 0!==t&&(ie=t),void 0!==n?se=n:e.rtl&&(se="topLeft"),void 0!==r&&(ae=r),void 0!==i&&(oe=i),void 0!==o&&(ee=o),void 0!==a&&(te=a),void 0!==e.rtl&&(ue=e.rtl),void 0!==e.maxCount&&(ne=e.maxCount)},destroy:function(){Object.keys(re).forEach((function(e){Promise.resolve(re[e]).then((function(e){e.destroy()})),delete re[e]}))}};["success","info","warning","error"].forEach((function(e){ve[e]=function(t){return ve.open((0,r.Z)((0,r.Z)({},t),{type:e}))}})),ve.warn=ve.warning,ve.useNotification=function(e,t){return function(){var n,o=null,a={add:function(e,t){null===o||void 0===o||o.component.add(e,t)}},c=(0,A.Z)(a),s=(0,T.Z)(c,2),u=s[0],l=s[1];var f=i.useRef({});return f.current.open=function(i){var a=i.prefixCls,c=n("notification",a);e((0,r.Z)((0,r.Z)({},i),{prefixCls:c}),(function(e){var n=e.prefixCls,r=e.instance;o=r,u(t(i,n))}))},["success","info","warning","error"].forEach((function(e){f.current[e]=function(t){return f.current.open((0,r.Z)((0,r.Z)({},t),{type:e}))}})),[f.current,i.createElement(w.C,{key:"holder"},(function(e){return n=e.getPrefixCls,l}))]}}(fe,pe);var he=ve,me=n(44958),ge=n(10274),ye=n(92138),be="-ant-".concat(Date.now(),"-").concat(Math.random());var we,xe,Ee=n(6213),Ce=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"],Ze=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"];function ke(){return we||"ant"}function Ne(){return xe||"anticon"}var Pe=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(ke(),"-").concat(e):ke())},getIconPrefixCls:Ne,getRootPrefixCls:function(e,t){return e||(we||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):ke()))}}},Se=function(e){var t,n,s=e.children,u=e.csp,l=e.autoInsertSpaceInButton,f=e.form,d=e.locale,p=e.componentSize,v=e.direction,h=e.space,y=e.virtual,b=e.dropdownMatchSelectWidth,E=e.legacyLocale,C=e.parentContext,Z=e.iconPrefixCls,k=i.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var i=r||C.getPrefixCls("");return t?"".concat(i,"-").concat(t):i}),[C.getPrefixCls,e.prefixCls]),N=(0,r.Z)((0,r.Z)({},C),{csp:u,autoInsertSpaceInButton:l,locale:d||E,direction:v,space:h,virtual:y,dropdownMatchSelectWidth:b,getPrefixCls:k});Ze.forEach((function(t){var n=e[t];n&&(N[t]=n)}));var P=(0,c.Z)((function(){return N}),N,(function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((function(n){return e[n]!==t[n]}))})),S=i.useMemo((function(){return{prefixCls:Z,csp:u}}),[Z]),O=s,M={};return d&&(M=(null===(t=d.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=Ee.Z.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),f&&f.validateMessages&&(M=(0,r.Z)((0,r.Z)({},M),f.validateMessages)),Object.keys(M).length>0&&(O=i.createElement(a.FormProvider,{validateMessages:M},s)),d&&(O=i.createElement(g,{locale:d,_ANT_MARK__:m},O)),Z&&(O=i.createElement(o.Z.Provider,{value:S},O)),p&&(O=i.createElement(x.q,{size:p},O)),i.createElement(w.E_.Provider,{value:P},O)},Oe=function(e){return i.useEffect((function(){e.direction&&(K.config({rtl:"rtl"===e.direction}),he.config({rtl:"rtl"===e.direction}))}),[e.direction]),i.createElement(b.Z,null,(function(t,n,o){return i.createElement(w.C,null,(function(t){return i.createElement(Se,(0,r.Z)({parentContext:t,legacyLocale:o},e))}))}))};Oe.ConfigContext=w.E_,Oe.SizeContext=x.Z,Oe.config=function(e){var t=e.prefixCls,n=e.iconPrefixCls,r=e.theme;void 0!==t&&(we=t),void 0!==n&&(xe=n),r&&function(e,t){var n={},r=function(e,t){var n=e.clone();return(n=(null===t||void 0===t?void 0:t(n))||n).toRgbString()},i=function(e,t){var i=new ge.C(e),o=(0,ye.generate)(i.toRgbString());n["".concat(t,"-color")]=r(i),n["".concat(t,"-color-disabled")]=o[1],n["".concat(t,"-color-hover")]=o[4],n["".concat(t,"-color-active")]=o[7],n["".concat(t,"-color-outline")]=i.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=o[1],n["".concat(t,"-color-deprecated-border")]=o[3]};if(t.primaryColor){i(t.primaryColor,"primary");var o=new ge.C(t.primaryColor),a=(0,ye.generate)(o.toRgbString());a.forEach((function(e,t){n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(o,(function(e){return e.lighten(35)})),n["primary-color-deprecated-l-20"]=r(o,(function(e){return e.lighten(20)})),n["primary-color-deprecated-t-20"]=r(o,(function(e){return e.tint(20)})),n["primary-color-deprecated-t-50"]=r(o,(function(e){return e.tint(50)})),n["primary-color-deprecated-f-12"]=r(o,(function(e){return e.setAlpha(.12*e.getAlpha())}));var c=new ge.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(c,(function(e){return e.setAlpha(.3*e.getAlpha())})),n["primary-color-active-deprecated-d-02"]=r(c,(function(e){return e.darken(2)}))}t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info");var s=Object.keys(n).map((function(t){return"--".concat(e,"-").concat(t,": ").concat(n[t],";")}));(0,me.h)("\n :root {\n ".concat(s.join("\n"),"\n }\n "),"".concat(be,"-dynamic-theme"))}(ke(),r)};var Me=Oe},62986:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(87462),i=n(4942),o=n(67294),a=n(94184),c=n.n(a),s=n(59844),u=n(23715),l=function(){var e=(0,o.useContext(s.E_).getPrefixCls)("empty-img-default");return o.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),o.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),o.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),o.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),o.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),o.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},f=function(){var e=(0,o.useContext(s.E_).getPrefixCls)("empty-img-simple");return o.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))},d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i3&&void 0!==arguments[3]?arguments[3]:{},c=a.props,s=c.className,l=c.addonBefore,p=c.addonAfter,v=c.size,h=c.disabled,m=c.htmlSize,y=(0,d.Z)(a.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered","htmlSize"]);return u.createElement("input",(0,r.Z)({autoComplete:o.autoComplete},y,{onChange:a.handleChange,onFocus:a.onFocus,onBlur:a.onBlur,onKeyDown:a.handleKeyDown,className:f()((0,g.X)(e,n,v||t,h,a.direction),(0,i.Z)({},s,s&&!l&&!p)),ref:a.saveInput,size:m}))},a.clearPasswordValueAttribute=function(){a.removePasswordTimeout=setTimeout((function(){a.input&&"password"===a.input.getAttribute("type")&&a.input.hasAttribute("value")&&a.input.removeAttribute("value")}))},a.handleChange=function(e){a.setValue(e.target.value,a.clearPasswordValueAttribute),b(a.input,e,a.props.onChange)},a.handleKeyDown=function(e){var t=a.props,n=t.onPressEnter,r=t.onKeyDown;n&&13===e.keyCode&&n(e),null===r||void 0===r||r(e)},a.renderComponent=function(e){var t=e.getPrefixCls,n=e.direction,i=e.input,o=a.state,c=o.value,s=o.focused,l=a.props,f=l.prefixCls,d=l.bordered,v=void 0===d||d,m=t("input",f);return a.direction=n,u.createElement(h.Z.Consumer,null,(function(e){return u.createElement(p.Z,(0,r.Z)({size:e},a.props,{prefixCls:m,inputType:"input",value:y(c),element:a.renderInput(m,e,v,i),handleReset:a.handleReset,ref:a.saveClearableInput,direction:n,focused:s,triggerFocus:a.focus,bordered:v}))}))};var c="undefined"===typeof e.value?e.defaultValue:e.value;return a.state={value:c,focused:!1,prevValue:e.value},a}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return(0,g.b)(e)!==(0,g.b)(this.props)&&(0,m.Z)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(e,t,n){this.input.setSelectionRange(e,t,n)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value?this.setState({value:e},t):null===t||void 0===t||t()}},{key:"render",value:function(){return u.createElement(v.C,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),e.disabled&&(r.focused=!1),r}}]),n}(u.Component);x.defaultProps={type:"text"},t.ZP=x},96330:function(e,t,n){"use strict";var r=n(71002),i=n(87462),o=n(4942),a=n(97685),c=n(74902),s=n(67294),u=n(57239),l=n(98423),f=n(94184),d=n.n(f),p=n(21770),v=n(69430),h=n(59844),m=n(77749),g=n(97647),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0,K=R("input",f);s.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=I.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;(0,m.nH)(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=I.current)||void 0===e?void 0:e.blur()}}}));var G=s.createElement(u.default,(0,i.Z)({},(0,l.Z)(T,["allowClear"]),{className:d()((n={},(0,o.Z)(n,"".concat(K,"-borderless"),!x),(0,o.Z)(n,k,k&&!C),(0,o.Z)(n,"".concat(K,"-sm"),"small"===j||"small"===P),(0,o.Z)(n,"".concat(K,"-lg"),"large"===j||"large"===P),n)),style:C?void 0:N,prefixCls:K,onCompositionStart:function(e){z(!0),null===S||void 0===S||S(e)},onChange:function(e){var t=e.target.value;!V&&$&&(t=b(t,Z)),W(t),(0,m.rJ)(e.currentTarget,e,M,t)},onCompositionEnd:function(e){z(!1);var t=e.currentTarget.value;$&&(t=b(t,Z)),t!==q&&(W(t),(0,m.rJ)(e.currentTarget,e,M,t)),null===O||void 0===O||O(e)},ref:I})),Y=(0,m.D7)(q);V||!$||null!==T.value&&void 0!==T.value||(Y=b(Y,Z));var X=s.createElement(v.Z,(0,i.Z)({},T,{prefixCls:K,direction:F,inputType:"text",value:Y,element:G,handleReset:function(e){var t,n;W("",(function(){var e;null===(e=I.current)||void 0===e||e.focus()})),(0,m.rJ)(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e,M)},ref:L,bordered:x,style:C?void 0:N}));if(C){var Q=(0,c.Z)(Y).length,J="";return J="object"===(0,r.Z)(C)?C.formatter({count:Q,maxLength:Z}):"".concat(Q).concat($?" / ".concat(Z):""),s.createElement("div",{className:d()("".concat(K,"-textarea"),(0,o.Z)({},"".concat(K,"-textarea-rtl"),"rtl"===F),"".concat(K,"-textarea-show-count"),k),style:N,"data-count":J},X)}return X}));t.Z=w},69677:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(77749),i=n(4942),o=n(67294),a=n(94184),c=n.n(a),s=n(59844),u=function(e){return o.createElement(s.C,null,(function(t){var n,r=t.getPrefixCls,a=t.direction,s=e.prefixCls,u=e.className,l=void 0===u?"":u,f=r("input-group",s),d=c()(f,(n={},(0,i.Z)(n,"".concat(f,"-lg"),"large"===e.size),(0,i.Z)(n,"".concat(f,"-sm"),"small"===e.size),(0,i.Z)(n,"".concat(f,"-compact"),e.compact),(0,i.Z)(n,"".concat(f,"-rtl"),"rtl"===a),n),l);return o.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))},l=n(87462),f=n(42550),d=n(68795),p=n(71577),v=n(97647),h=n(96159),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}(),Z=a.forwardRef((function(e,t){var n=e.prefixCls,c=e.className,l=e.trigger,f=e.children,d=e.defaultCollapsed,p=void 0!==d&&d,Z=e.theme,k=void 0===Z?"dark":Z,N=e.style,P=void 0===N?{}:N,S=e.collapsible,O=void 0!==S&&S,M=e.reverseArrow,T=void 0!==M&&M,A=e.width,R=void 0===A?200:A,F=e.collapsedWidth,j=void 0===F?80:F,I=e.zeroWidthTriggerStyle,L=e.breakpoint,_=e.onCollapse,D=e.onBreakpoint,V=w(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),z=(0,a.useContext)(g.Gs).siderHook,H=(0,a.useState)("collapsed"in V?V.collapsed:p),B=(0,o.Z)(H,2),q=B[0],U=B[1],W=(0,a.useState)(!1),$=(0,o.Z)(W,2),K=$[0],G=$[1];(0,a.useEffect)((function(){"collapsed"in V&&U(V.collapsed)}),[V.collapsed]);var Y=function(e,t){"collapsed"in V||U(e),null===_||void 0===_||_(e,t)},X=(0,a.useRef)();X.current=function(e){G(e.matches),null===D||void 0===D||D(e.matches),q!==e.matches&&Y(e.matches,"responsive")},(0,a.useEffect)((function(){function e(e){return X.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&L&&L in x){t=n("(max-width: ".concat(x[L],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[]),(0,a.useEffect)((function(){var e=C("ant-sider-");return z.addSider(e),function(){return z.removeSider(e)}}),[]);var Q=function(){Y(!q,"clickTrigger")},J=(0,a.useContext)(y.E_).getPrefixCls,ee=a.useMemo((function(){return{siderCollapsed:q}}),[q]);return a.createElement(E.Provider,{value:ee},function(){var e,o=J("layout-sider",n),d=(0,u.Z)(V,["collapsed"]),p=q?j:R,g=b(p)?"".concat(p,"px"):String(p),y=0===parseFloat(String(j||0))?a.createElement("span",{onClick:Q,className:s()("".concat(o,"-zero-width-trigger"),"".concat(o,"-zero-width-trigger-").concat(T?"right":"left")),style:I},l||a.createElement(v,null)):null,w={expanded:T?a.createElement(h.Z,null):a.createElement(m.Z,null),collapsed:T?a.createElement(m.Z,null):a.createElement(h.Z,null)}[q?"collapsed":"expanded"],x=null!==l?y||a.createElement("div",{className:"".concat(o,"-trigger"),onClick:Q,style:{width:g}},l||w):null,E=(0,i.Z)((0,i.Z)({},P),{flex:"0 0 ".concat(g),maxWidth:g,minWidth:g,width:g}),C=s()(o,"".concat(o,"-").concat(k),(e={},(0,r.Z)(e,"".concat(o,"-collapsed"),!!q),(0,r.Z)(e,"".concat(o,"-has-trigger"),O&&null!==l&&!y),(0,r.Z)(e,"".concat(o,"-below"),!!K),(0,r.Z)(e,"".concat(o,"-zero-width"),0===parseFloat(g)),e),c);return a.createElement("aside",(0,i.Z)({className:C},d,{style:E,ref:t}),a.createElement("div",{className:"".concat(o,"-children")},f),O||K&&y?x:null)}())}));Z.displayName="Sider";var k=Z},2897:function(e,t,n){"use strict";n.d(t,{Gs:function(){return d},h4:function(){return m},$_:function(){return g},VY:function(){return y}});var r=n(74902),i=n(4942),o=n(97685),a=n(87462),c=n(67294),s=n(94184),u=n.n(s),l=n(59844),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0),(0,i.Z)(t,"".concat(m,"-rtl"),"rtl"===n),t),g),C=c.useMemo((function(){return{siderHook:{addSider:function(e){h((function(t){return[].concat((0,r.Z)(t),[e])}))},removeSider:function(e){h((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return c.createElement(d.Provider,{value:C},c.createElement(w,(0,a.Z)({className:E},x),y))})),m=p({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(v),g=p({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(v),y=p({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(v);t.ZP=h},23715:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(87462),i=n(15671),o=n(43144),a=n(60136),c=n(3289),s=n(67294),u=n(6213).Z,l=n(67178),f=function(e){(0,a.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||u[null!==t&&void 0!==t?t:"global"],i=this.context,o=t&&i?i[t]:{};return(0,r.Z)((0,r.Z)({},n instanceof Function?n():n),o||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?u.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(s.Component);f.defaultProps={componentName:"global"},f.contextType=l.Z},67178:function(e,t,n){"use strict";var r=(0,n(67294).createContext)(void 0);t.Z=r},6213:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(62906),i=n(87462),o={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},c={lang:(0,i.Z)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:(0,i.Z)({},a)},s=c,u="${label} is not a valid ${type}",l={locale:"en",Pagination:r.Z,DatePicker:c,TimePicker:a,Calendar:s,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}}},68157:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(87462),i=n(15671),o=n(43144),a=n(60136),c=n(3289),s=n(67294),u=n(30605),l=n(94184),f=n.n(l),d=n(98423),p=n(89705),v=n(30845),h=(0,s.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),m=n(96159);var g=function(e){var t,n,i=e.popupClassName,o=e.icon,a=e.title,c=s.useContext(h),l=c.prefixCls,p=c.inlineCollapsed,v=c.antdMenuTheme,g=(0,u.Xl)();if(o){var y=(0,m.l$)(a)&&"span"===a.type;n=s.createElement(s.Fragment,null,(0,m.Tm)(o,{className:f()((0,m.l$)(o)?null===(t=o.props)||void 0===t?void 0:t.className:"","".concat(l,"-item-icon"))}),y?a:s.createElement("span",{className:"".concat(l,"-title-content")},a))}else n=p&&!g.length&&a&&"string"===typeof a?s.createElement("div",{className:"".concat(l,"-inline-collapsed-noicon")},a.charAt(0)):s.createElement("span",{className:"".concat(l,"-title-content")},a);var b=s.useMemo((function(){return(0,r.Z)((0,r.Z)({},c),{firstLevel:!1})}),[c]);return s.createElement(h.Provider,{value:b},s.createElement(u.Wd,(0,r.Z)({},(0,d.Z)(e,["icon"]),{title:n,popupClassName:f()(l,"".concat(l,"-").concat(v),i)})))},y=n(4942),b=n(50344),w=n(56266),x=n(7293),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0||r.indexOf("Bottom")>=0?o.top="".concat(i.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left="".concat(i.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(o.left," ").concat(o.top)}},overlayInnerStyle:W,arrowContent:a.createElement("span",{className:"".concat(_,"-arrow-content"),style:z}),motion:{motionName:(0,b.m)(D,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),V?(0,m.Tm)(H,{className:q}):H)}));C.displayName="Tooltip",C.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Z=C},17256:function(e,t,n){"use strict";n.d(t,{Z:function(){return me}});var r=n(87462),i=n(4942),o=n(67294),a=n(94184),c=n.n(a),s=n(42550),u=n(59844),l=n(21687),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=Math.floor((n+r)/2),a=t.slice(0,o);if(e.textContent=a,n>=r-1)for(var c=r;c>=n;c-=1){var s=t.slice(0,c);if(e.textContent=s,d()||!s)return c===t.length?{finished:!1,reactNode:t}:{finished:!0,reactNode:s}}return d()?b(e,t,o,r,o):b(e,t,n,o,i)}function w(e,t){var n=e.nodeType;if(1===n)return y(e),d()?{finished:!1,reactNode:f[t]}:(m.removeChild(e),{finished:!0,reactNode:null});if(3===n){var r=e.textContent||"",i=document.createTextNode(r);return y(i),b(i,r)}return{finished:!1,reactNode:null}}return m.appendChild(g),v.forEach((function(e){U.appendChild(e)})),p.some((function(e,t){var n=w(e,t),r=n.finished,i=n.reactNode;return i&&h.push(i),r})),{content:h,text:U.innerHTML,ellipsis:!0}},J=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1&&P,M=f;if(E&&a&&!s&&!P){var T=b.title,j=T||"";T||"string"!==typeof f&&"number"!==typeof f||(j=String(f)),j=j.slice(String(n||"").length),M=o.createElement(o.Fragment,null,n,o.createElement("span",{title:j,"aria-hidden":"true"},"..."),C),Z&&(M=o.createElement(z.Z,{title:!0===Z?f:Z},o.createElement("span",null,M)))}else M=o.createElement(o.Fragment,null,f,C);return M=function(e,t){var n=e.mark,r=e.code,i=e.underline,a=e.delete,c=e.strong,s=e.keyboard,u=e.italic,l=t;function f(e,t){e&&(l=o.createElement(t,{},l))}return f(c,"strong"),f(i,"u"),f(a,"del"),f(r,"code"),f(n,"mark"),f(s,"kbd"),f(u,"i"),l}(this.props,M),o.createElement(F.Z,{componentName:"Text"},(function(t){var n,s=t.edit,u=t.copy,f=t.copied,m=t.expand;return e.editStr=s,e.copyStr=u,e.copiedStr=f,e.expandStr=m,o.createElement(A.default,{onResize:e.resizeOnNextFrame,disabled:P},o.createElement(v,(0,r.Z)({className:c()((n={},(0,i.Z)(n,"".concat(k,"-").concat(p),p),(0,i.Z)(n,"".concat(k,"-disabled"),h),(0,i.Z)(n,"".concat(k,"-ellipsis"),E),(0,i.Z)(n,"".concat(k,"-single-line"),1===E&&!a),(0,i.Z)(n,"".concat(k,"-ellipsis-single-line"),S),(0,i.Z)(n,"".concat(k,"-ellipsis-multiple-line"),O),n),d),style:(0,r.Z)((0,r.Z)({},y),{WebkitLineClamp:O?E:void 0}),component:l,ref:e.contentRef,direction:w},N),M,e.renderOperations()))}))}},{key:"render",value:function(){return this.getEditable().editing?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.children,n=e.editable;return(0,l.Z)(!n||"string"===typeof t,"Typography","When `editable` is enabled, the `children` should use string."),{}}}]),n}(o.Component);re.contextType=u.E_,re.defaultProps={children:""};var ie=re,oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},40364:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19013),i=n(13882);function o(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}var a={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function c(e){return e?a[e]:a.trunc}function s(e,t,n){(0,i.Z)(2,arguments);var r=o(e,t)/1e3;return c(null===n||void 0===n?void 0:n.roundingMethod)(r)}},19013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(13882);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},30845:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var b="textarea",w="url";function x(e){var t=(0,u.useState)(null),n=t[0],r=t[1],c=(0,u.useState)(!1),m=c[0],b=c[1],w=((0,u.useContext)(d.aC)||{}).setFieldInConfigState,x=null,E=e.apiPath,C=e.configPath,Z=void 0===C?"":C,k=e.initialValue,N=e.useTrim,P=e.useTrimLead,S=y(e,["apiPath","configPath","initialValue","useTrim","useTrimLead"]),O=S.fieldName,M=S.required,T=S.tip,A=S.status,R=S.value,F=S.onChange,j=S.onSubmit,I=function(){r(null),b(!1),clearTimeout(x),x=null};(0,u.useEffect)((function(){M&&(""===R||null===R)||R===k?b(!1):(I(),b(!0))}),[R]);var L,_=(L=i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(M&&""!==R||R!==k)){e.next=6;break}return r((0,f.kg)(f.Jk)),e.next=4,(0,l.Si)({apiPath:E,data:{value:R},onSuccess:function(){w({fieldName:O,value:R,path:Z}),r((0,f.kg)(f.zv))},onError:function(e){r((0,f.kg)(f.Un,"There was an error: ".concat(e)))}});case 4:x=setTimeout(I,l.sI),j&&j();case 6:case"end":return e.stop()}}),e)})),function(){var e=this,t=arguments;return new Promise((function(n,r){var i=L.apply(e,t);function o(e){h(i,n,r,o,a,"next",e)}function a(e){h(i,n,r,o,a,"throw",e)}o(void 0)}))}),D=s()({"textfield-with-submit-container":!0,submittable:m});return(0,o.jsxs)("div",{className:D,children:[(0,o.jsx)("div",{className:"textfield-component",children:(0,o.jsx)(v.ZP,g({},S,{onSubmit:null,onBlur:function(e){var t=e.value;F&&M&&""===t&&F({fieldName:O,value:k})},onChange:function(e){var t=e.fieldName,n=e.value;if(F){var r=n;N?r=n.trim():P&&(r=n.replace(/^\s+/g,"")),F({fieldName:t,value:r})}}}))}),(0,o.jsxs)("div",{className:"formfield-container lower-container",children:[(0,o.jsx)("p",{className:"label-spacer"}),(0,o.jsxs)("div",{className:"lower-content",children:[(0,o.jsx)("div",{className:"field-tip",children:T}),(0,o.jsx)(p.Z,{status:A||n}),(0,o.jsx)("div",{className:"update-button-container",children:(0,o.jsx)(a.Z,{type:"primary",size:"small",className:"submit-button",onClick:_,disabled:!m,children:"Update"})})]})]})]})}x.defaultProps={configPath:"",initialValue:""}},48419:function(e,t,n){"use strict";n.d(t,{mG:function(){return ee},A8:function(){return J},Sk:function(){return te},xA:function(){return ne},ZP:function(){return re}});var r=n(85893),i=n(67294),o=n(94184),a=n.n(o),c=n(87462),s=n(4942),u=n(71002),l=n(97685),f=n(91),d=n(15105),p=n(42550),v=n(15671),h=n(43144);function m(){return"function"===typeof BigInt}function g(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";"0"===o&&"0"===a&&(n=!1);var c=n?"-":"";return{negative:n,negativeStr:c,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(c).concat(r)}}function y(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function b(e){var t=String(e);if(y(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return(null===r||void 0===r?void 0:r[1])&&(n+=r[1].length),n}return t.includes(".")&&x(t)?t.length-t.indexOf(".")-1:0}function w(e){var t=String(e);if(y(e)){if(e>Number.MAX_SAFE_INTEGER)return String(m()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":w(this.number):this.origin}}]),e}(),C=function(){function e(t){if((0,v.Z)(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(y(n)&&(n=Number(n)),x(n="string"===typeof n?n:w(n))){var r=g(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}else this.nan=!0;else this.empty=!0}return(0,h.Z)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=g((this.alignDecimal(r)+n.alignDecimal(r)).toString()),o=i.negativeStr,a=i.trimStr,c="".concat(o).concat(a.padStart(r+1,"0"));return new e("".concat(c.slice(0,-r),".").concat(c.slice(-r)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":g("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Z(e){return m()?new C(e):new E(e)}function k(e,t,n){if(""===e)return"";var r=g(e),i=r.negativeStr,o=r.integerStr,a=r.decimalStr,c="".concat(t).concat(a),s="".concat(i).concat(o);if(n>=0){var u=Number(a[n]);return u>=5?k(Z(e).add("0.".concat("0".repeat(n)).concat(10-u)).toString(),t,n):0===n?s:"".concat(s).concat(t).concat(a.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var N=n(31131);function P(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,u=e.downDisabled,l=e.onStep,f=i.useRef(),d=i.useRef();d.current=l;var p=function(e,t){e.preventDefault(),d.current(t),f.current=setTimeout((function e(){d.current(t),f.current=setTimeout(e,200)}),600)},v=function(){clearTimeout(f.current)};if(i.useEffect((function(){return v}),[]),(0,N.Z)())return null;var h="".concat(t,"-handler"),m=a()(h,"".concat(h,"-up"),(0,s.Z)({},"".concat(h,"-up-disabled"),o)),g=a()(h,"".concat(h,"-down"),(0,s.Z)({},"".concat(h,"-down-disabled"),u)),y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return i.createElement("div",{className:"".concat(h,"-wrap")},i.createElement("span",(0,c.Z)({},y,{onMouseDown:function(e){p(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",(0,c.Z)({},y,{onMouseDown:function(e){p(e,!1)},"aria-label":"Decrease Value","aria-disabled":u,className:g}),r||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var S=n(80334);var O=(0,n(98924).Z)()?i.useLayoutEffect:i.useEffect;function M(e,t){var n=i.useRef(!1);O((function(){if(n.current)return e();n.current=!0}),t)}var T=n(75164),A=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],R=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},F=function(e){var t=Z(e);return t.isInvalidate()?null:t},j=i.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-input-number":r,v=e.className,h=e.style,m=e.min,g=e.max,y=e.step,E=void 0===y?1:y,C=e.defaultValue,N=e.value,O=e.disabled,j=e.readOnly,I=e.upHandler,L=e.downHandler,_=e.keyboard,D=e.controls,V=void 0===D||D,z=e.stringMode,H=e.parser,B=e.formatter,q=e.precision,U=e.decimalSeparator,W=e.onChange,$=e.onInput,K=e.onPressEnter,G=e.onStep,Y=(0,f.Z)(e,A),X="".concat(o,"-input"),Q=i.useRef(null),J=i.useState(!1),ee=(0,l.Z)(J,2),te=ee[0],ne=ee[1],re=i.useRef(!1),ie=i.useRef(!1),oe=i.useState((function(){return Z(null!==N&&void 0!==N?N:C)})),ae=(0,l.Z)(oe,2),ce=ae[0],se=ae[1];var ue=i.useCallback((function(e,t){if(!t)return q>=0?q:Math.max(b(e),b(E))}),[q,E]),le=i.useCallback((function(e){var t=String(e);if(H)return H(t);var n=t;return U&&(n=n.replace(U,".")),n.replace(/[^\w.-]+/g,"")}),[H,U]),fe=i.useRef(""),de=i.useCallback((function(e,t){if(B)return B(e,{userTyping:t,input:String(fe.current)});var n="number"===typeof e?w(e):e;if(!t){var r=ue(n,t);if(x(n)&&(U||r>=0))n=k(n,U||".",r)}return n}),[B,ue,U]),pe=i.useState((function(){var e=null!==C&&void 0!==C?C:N;return ce.isInvalidate()&&["string","number"].includes((0,u.Z)(e))?Number.isNaN(e)?"":e:de(ce.toString(),!1)})),ve=(0,l.Z)(pe,2),he=ve[0],me=ve[1];function ge(e,t){me(de(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}fe.current=he;var ye=i.useMemo((function(){return F(g)}),[g]),be=i.useMemo((function(){return F(m)}),[m]),we=i.useMemo((function(){return!(!ye||!ce||ce.isInvalidate())&&ye.lessEquals(ce)}),[ye,ce]),xe=i.useMemo((function(){return!(!be||!ce||ce.isInvalidate())&&ce.lessEquals(be)}),[be,ce]),Ee=function(e,t){var n=(0,i.useRef)(null);return[function(){try{var t=e.selectionStart,r=e.selectionEnd,i=e.value,o=i.substring(0,t),a=i.substring(r);n.current={start:t,end:r,value:i,beforeTxt:o,afterTxt:a}}catch(c){}},function(){if(e&&n.current&&t)try{var r=e.value,i=n.current,o=i.beforeTxt,a=i.afterTxt,c=i.start,s=r.length;if(r.endsWith(a))s=r.length-n.current.afterTxt.length;else if(r.startsWith(o))s=o.length;else{var u=o[c-1],l=r.indexOf(u,c-1);-1!==l&&(s=l+1)}e.setSelectionRange(s,s)}catch(f){(0,S.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(f.message))}}]}(Q.current,te),Ce=(0,l.Z)(Ee,2),Ze=Ce[0],ke=Ce[1],Ne=function(e){return ye&&!e.lessEquals(ye)?ye:be&&!be.lessEquals(e)?be:null},Pe=function(e){return!Ne(e)},Se=function(e,t){var n,r=e,i=Pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=Ne(r)||r,i=!0),!j&&!O&&i){var o=r.toString(),a=ue(o,t);return a>=0&&(r=Z(k(o,".",a))),r.equals(ce)||(n=r,void 0===N&&se(n),null===W||void 0===W||W(r.isEmpty()?null:R(z,r)),void 0===N&&ge(r,t)),r}return ce},Oe=function(){var e=(0,i.useRef)(0),t=function(){T.Z.cancel(e.current)};return(0,i.useEffect)((function(){return t}),[]),function(n){t(),e.current=(0,T.Z)((function(){n()}))}}(),Me=function e(t){if(Ze(),me(t),!ie.current){var n=Z(le(t));n.isNaN()||Se(n,!0)}null===$||void 0===$||$(t),Oe((function(){var n=t;H||(n=t.replace(/\u3002/g,".")),n!==t&&e(n)}))},Te=function(e){var t;if(!(e&&we||!e&&xe)){re.current=!1;var n=Z(E);e||(n=n.negate());var r=(ce||Z(0)).add(n.toString()),i=Se(r,!1);null===G||void 0===G||G(R(z,i),{offset:E,type:e?"up":"down"}),null===(t=Q.current)||void 0===t||t.focus()}},Ae=function(e){var t=Z(le(he)),n=t;n=t.isNaN()?ce:Se(t,e),void 0!==N?ge(ce,!1):n.isNaN()||ge(n,!1)};return M((function(){ce.isInvalidate()||ge(ce,!1)}),[q]),M((function(){var e=Z(N);se(e);var t=Z(le(he));e.equals(t)&&re.current&&!B||ge(e,re.current)}),[N]),M((function(){B&&ke()}),[he]),i.createElement("div",{className:a()(o,v,(n={},(0,s.Z)(n,"".concat(o,"-focused"),te),(0,s.Z)(n,"".concat(o,"-disabled"),O),(0,s.Z)(n,"".concat(o,"-readonly"),j),(0,s.Z)(n,"".concat(o,"-not-a-number"),ce.isNaN()),(0,s.Z)(n,"".concat(o,"-out-of-range"),!ce.isInvalidate()&&!Pe(ce)),n)),style:h,onFocus:function(){ne(!0)},onBlur:function(){Ae(!1),ne(!1),re.current=!1},onKeyDown:function(e){var t=e.which;re.current=!0,t===d.Z.ENTER&&(ie.current||(re.current=!1),Ae(!1),null===K||void 0===K||K(e)),!1!==_&&!ie.current&&[d.Z.UP,d.Z.DOWN].includes(t)&&(Te(d.Z.UP===t),e.preventDefault())},onKeyUp:function(){re.current=!1},onCompositionStart:function(){ie.current=!0},onCompositionEnd:function(){ie.current=!1,Me(Q.current.value)}},V&&i.createElement(P,{prefixCls:o,upNode:I,downNode:L,upDisabled:we,downDisabled:xe,onStep:Te}),i.createElement("div",{className:"".concat(X,"-wrap")},i.createElement("input",(0,c.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":m,"aria-valuemax":g,"aria-valuenow":ce.isInvalidate()?null:ce.toString(),step:E},Y,{ref:(0,p.sQ)(Q,t),className:X,value:he,onChange:function(e){Me(e.target.value)},disabled:O,readOnly:j}))))}));j.displayName="InputNumber";var I=j,L=n(1413),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},D=n(42135),V=function(e,t){return i.createElement(D.Z,(0,L.Z)((0,L.Z)({},e),{},{ref:t,icon:_}))};V.displayName="UpOutlined";var z=i.forwardRef(V),H=n(80882),B=n(59844),q=n(97647),U=n(96159),W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0&&(c=!1),t[i?"replace":"push"](n,r,{shallow:o,locale:s,scroll:c}))}(e,i,d,p,h,m,g,y)},onMouseEnter:function(e){t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),a.isLocalURL(d)&&l(i,d,p,{priority:!0})}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var k="undefined"!==typeof y?y:i&&i.locale,N=i&&i.isLocaleDomain&&a.getDomainLocale(p,k,i&&i.locales,i&&i.domainLocales);Z.href=N||a.addBasePath(a.addLocale(p,k,i&&i.defaultLocale))}return o.default.cloneElement(t,Z)};t.default=f},57190:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!a,s=i.useRef(),u=r(i.useState(!1),2),l=u[0],f=u[1],d=i.useCallback((function(e){s.current&&(s.current(),s.current=void 0),n||l||e&&e.tagName&&(s.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=c.get(t);if(n)return n;var r=new Map,i=new IntersectionObserver((function(e){e.forEach((function(e){var t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return c.set(t,n={id:t,observer:i,elements:r}),n}(n),i=r.id,o=r.observer,a=r.elements;return a.set(e,t),o.observe(e),function(){a.delete(e),o.unobserve(e),0===a.size&&(o.disconnect(),c.delete(i))}}(e,(function(e){return e&&f(e)}),{rootMargin:t}))}),[n,t,l]);return i.useEffect((function(){if(!a&&!l){var e=o.requestIdleCallback((function(){return f(!0)}));return function(){return o.cancelIdleCallback(e)}}}),[l]),[d,l]};var i=n(67294),o=n(9311),a="undefined"!==typeof IntersectionObserver;var c=new Map},77541:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ye}});var r=n(85893),i=(n(55062),n(54357),n(43476),n(96552),n(59221),n(43760),n(69207),n(35011),n(39708),n(70734),n(5075),n(71332),n(88727),n(23669),n(32650),n(62930),n(44822),n(35159)),o=n(57553),a=n(28520),c=n.n(a),s=n(67294),u=n(45697),l=n.n(u),f=n(41664),d=n(9008),p=n(40364),v=n(11163),h=n(2897),m=n(7293),g=h.ZP;g.Header=h.h4,g.Footer=h.$_,g.Content=h.VY,g.Sider=m.Z;var y=g,b=n(68157),w=n(14670),x=n(17256),E=n(87462),C=n(56266),Z=n(59844),k=n(81643),N=n(33603),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ia}return!0}return e>=t}function q(e){return U.apply(this,arguments)}function U(){return(U=c(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V();case 2:if(n=e.sent,"v"===(r=n.tag_name).substr(0,1)&&(r=r.substr(1)),B(t,r)){e.next=7;break}return e.abrupt("return",r);case 7:return e.abrupt("return",null);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},25964:function(e,t,n){"use strict";n.d(t,{sI:function(){return f},AA:function(){return d},d$:function(){return p},$w:function(){return v},c9:function(){return h},sv:function(){return m},vv:function(){return g},AP:function(){return y},CJ:function(){return b},os:function(){return w},CQ:function(){return x},Si:function(){return E},RE:function(){return P},$t:function(){return S},rs:function(){return O},IX:function(){return M},ZQ:function(){return T},Ri:function(){return A},KB:function(){return R},rE:function(){return F},lT:function(){return j},cj:function(){return I},y_:function(){return L},EY:function(){return _},P:function(){return D},gX:function(){return V},yj:function(){return z},Dg:function(){return H},dL:function(){return B},nm:function(){return q},Xq:function(){return U},x8:function(){return W},yC:function(){return $},SS:function(){return K},HM:function(){return G},t$:function(){return Y},I$:function(){return X},i3:function(){return Q},wC:function(){return J},z_:function(){return ee},zm:function(){return te}});var r=n(28520),i=n.n(r),o=n(58827),a=n(48419),c=n(19411);function s(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,c,"next",e)}function c(e){s(o,r,i,a,c,"throw",e)}a(void 0)}))}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=3e3,d="/pagecontent",p="/customstyles",v="/s3",h="/socialhandles",m="/video/streamlatencylevel",g="/video/streamoutputvariants",y="/directoryenabled",b="/chat/forbiddenusernames",w="/externalactions",x="/video/codec";function E(e){return C.apply(this,arguments)}function C(){return(C=u(i().mark((function e(t){var n,r,a,c,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.apiPath,r=t.data,a=t.onSuccess,c=t.onError,e.next=3,(0,o.rQ)("".concat(o.ao).concat(n),{data:r,method:"POST",auth:!0});case 3:(s=e.sent).success&&a?a(s.message):c&&c(s.message);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Z,k,N,P={apiPath:"/name",configPath:"instanceDetails",maxLength:255,placeholder:"Owncast site name",label:"Name",tip:"The name of your Owncast server",required:!0,useTrimLead:!0},S={apiPath:"/streamtitle",configPath:"instanceDetails",maxLength:100,placeholder:"Doing cool things...",label:"Stream Title",tip:"What is your stream about today?"},O={apiPath:"/serversummary",configPath:"instanceDetails",maxLength:500,placeholder:"",label:"About",tip:"A brief blurb about you, your server, or what your stream is about."},M={apiPath:"/welcomemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"",label:"Welcome Message",tip:"A system chat message sent to viewers when they first connect to chat. Leave blank to disable."},T={apiPath:"/logo",configPath:"instanceDetails",maxLength:255,placeholder:"/img/mylogo.png",label:"Logo",tip:"Upload your logo if you have one. We recommend that you use a square image that is at least 256x256."},A={apiPath:"/key",configPath:"",maxLength:255,placeholder:"abc123",label:"Stream Key",tip:"Save this key somewhere safe, you will need it to stream or login to the admin dashboard!",required:!0},R={apiPath:"/ffmpegpath",configPath:"",maxLength:255,placeholder:"/usr/local/bin/ffmpeg",label:"FFmpeg Path",tip:"Absolute file path of the FFMPEG application on your server",required:!0},F={apiPath:"/webserverport",configPath:"",maxLength:6,placeholder:"8080",label:"Owncast port",tip:"What port is your Owncast web server listening? Default is 8080",required:!0},j={apiPath:"/rtmpserverport",configPath:"",maxLength:6,placeholder:"1935",label:"RTMP port",tip:"What port should accept inbound broadcasts? Default is 1935",required:!0},I={apiPath:"/serverurl",configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server.",type:a.xA,pattern:c.a,useTrim:!0},L={apiPath:"/tags",configPath:"instanceDetails",maxLength:24,placeholder:"Add a new tag",required:!0,label:"",tip:""},_={apiPath:"/nsfw",configPath:"instanceDetails",label:"NSFW?",tip:"Turn this ON if you plan to steam explicit or adult content. Please respectfully set this flag so unexpected eyes won't accidentally see it in the Directory."},D={apiPath:y,configPath:"yp",label:"Enable directory",tip:"Turn this ON to request to show up in the directory."},V={framerate:24,videoPassthrough:!1,videoBitrate:800,audioPassthrough:!0,audioBitrate:0,cpuUsageLevel:3,scaledHeight:null,scaledWidth:null,name:""},z={apiPath:"/chat/disable",configPath:"",label:"Chat",tip:"Turn the chat functionality on/off on your Owncast server.",useSubmit:!0},H={apiPath:b,placeholder:"username",label:"Forbidden usernames",tip:"A list of words in chat usernames you disallow."},B={audioBitrate:{min:600,max:1200,defaultValue:800,unit:"kbps",incrementBy:100,tip:"nothing to see here"},videoPassthrough:{tip:"If enabled, all other settings will be disabled. Otherwise configure as desired."},audioPassthrough:{tip:"If No is selected, then you should set your desired Audio Bitrate."},scaledWidth:{fieldName:"scaledWidth",label:"Resized Width",maxLength:4,placeholder:"1080",tip:"Optionally resize this content's width."},scaledHeight:{fieldName:"scaledHeight",label:"Resized Height",maxLength:4,placeholder:"720",tip:"Optionally resize this content's height."}},q={min:24,max:120,defaultValue:24,unit:"fps",incrementBy:null,tip:"Reducing your framerate will decrease the amount of video that needs to be encoded and sent to your viewers, saving CPU and bandwidth at the expense of smoothness. A lower value is generally is fine for most content."},U=(l(Z={},q.min,"".concat(q.min," ").concat(q.unit)),l(Z,25,""),l(Z,30,""),l(Z,50,""),l(Z,60,""),l(Z,90,""),l(Z,q.max,"".concat(q.max," ").concat(q.unit)),Z),W=(l(k={},q.min,"".concat(q.min,"fps - Good for film, presentations, music, low power/bandwidth servers.")),l(k,25,"25fps - Good for film, presentations, music, low power/bandwidth servers."),l(k,30,"30fps - Good for slow/casual games, chat, general purpose."),l(k,50,"50fps - Good for fast/action games, sports, HD video."),l(k,60,"60fps - Good for fast/action games, sports, HD video."),l(k,90,"90fps - Good for newer fast games and hardware."),l(k,q.max,"".concat(q.max,"fps - Experimental, use at your own risk!")),k),$={min:400,max:6e3,defaultValue:1200,unit:"kbps",incrementBy:100,tip:"The overall quality of your stream is generally impacted most by bitrate."},K={fieldName:"name",label:"Name",maxLength:15,placeholder:"HD or Low",tip:"Human-readable name for for displaying in the player."},G=(l(N={},$.min,"".concat($.min," ").concat($.unit)),l(N,3e3,3e3),l(N,4500,4500),l(N,$.max,"".concat($.max," ").concat($.unit)),N),Y={1:"lowest",2:"",3:"",4:"",5:"highest"},X={1:"Lowest hardware usage - lowest quality video",2:"Low hardware usage - low quality video",3:"Medium hardware usage - average quality video",4:"High hardware usage - high quality video",5:"Highest hardware usage - higher quality video"},Q={VIDEO_HEIGHT:1080,VIDEO_BITRATE:3e3,HELP_TEXT:"You have only set one video quality variant. If your server has the computing resources, consider adding another, lower-quality variant, so more people can view your content!"},J={url:"",platform:""},ee="OTHER_SOCIAL_HANDLE_OPTION",te={accessKey:{fieldName:"accessKey",label:"Access Key",maxLength:255,placeholder:"access key 123",tip:""},acl:{fieldName:"acl",label:"ACL",maxLength:255,placeholder:"",tip:"Optional specific access control value to add to your content. Generally not required."},bucket:{fieldName:"bucket",label:"Bucket",maxLength:255,placeholder:"bucket 123",tip:"Create a new bucket for each Owncast instance you may be running."},endpoint:{fieldName:"endpoint",label:"Endpoint",maxLength:255,placeholder:"https://your.s3.provider.endpoint.com",tip:'The full URL (with "https://") endpoint from your storage provider.',useTrim:!0,type:a.xA,pattern:c.a},region:{fieldName:"region",label:"Region",maxLength:255,placeholder:"region 123",tip:""},secret:{fieldName:"secret",label:"Secret key",maxLength:255,placeholder:"your secret key",tip:""},servingEndpoint:{fieldName:"servingEndpoint",label:"Serving Endpoint",maxLength:255,placeholder:"http://cdn.ss3.provider.endpoint.com",tip:"Optional URL that content should be accessed from instead of the default. Used with CDNs and specific storage providers. Generally not required.",type:a.xA,pattern:c.a,useTrim:!0},forcePathStyle:{fieldName:"forcePathStyle",label:"Force path-style",tip:"If your S3 provider doesn't support virtual-hosted-style URLs set this to ON (i.e. Oracle Cloud Object Storage)"}}},2766:function(e,t,n){"use strict";n.d(t,{t5:function(){return o},Qr:function(){return a},wS:function(){return s},AB:function(){return u}});var r=n(42238),i=n.n(r);function o(e){var t=e.split(":");t[t.length-1]="";var n=t.join(":");return"[::1]"===(n=n.slice(0,n.length-1))||"127.0.0.1"===n?"Localhost":n}function a(e){return!e||0===Object.keys(e).length&&e.constructor===Object}function c(e,t,n){return String(t.repeat(n)+e).slice(-n)}function s(e){var t=void 0===e?0:e,n=Number.isFinite(+t)?Math.abs(t):0,r=Math.floor(n/86400),i=r>0?"".concat(r," day").concat(r>1?"s":""," "):"",o=Math.floor(n/3600%24),a=o||r?c("".concat(o,":"),"0",3):"",s=Math.floor(n/60%60),u=c("".concat(s,":"),"0",3),l=Math.floor(n%60);return i+a+u+c("".concat(l),"0",2)}function u(e){var t=i()(e),n=t.device,r=t.os,o=t.browser,a=o.major,c=o.name,s=r.version,u=r.name,l=n.model,f=n.type;if(!c||!a||!u)return e;var d=l||f?" (".concat(l||f,")"):"";return"".concat(c," ").concat(a," on ").concat(u," ").concat(s,"\n ").concat(d)}},83200:function(e,t,n){"use strict";n.d(t,{Un:function(){return h},Jk:function(){return g},zv:function(){return y},dG:function(){return b},kg:function(){return x}});var r=n(85893),i=n(1413),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},c=n(42135),s=function(e,t){return o.createElement(c.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:a}))};s.displayName="WarningOutlined";var u=o.forwardRef(s),l=n(89739),f=n(21640),d=n(50888);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v,h="error",m="invalid",g="proessing",y="success",b="warning",w=(p(v={},y,{type:y,icon:(0,r.jsx)(l.Z,{style:{color:"green"}}),message:"Success!"}),p(v,h,{type:h,icon:(0,r.jsx)(f.Z,{style:{color:"red"}}),message:"An error occurred."}),p(v,m,{type:m,icon:(0,r.jsx)(f.Z,{style:{color:"red"}}),message:"An error occurred."}),p(v,g,{type:g,icon:(0,r.jsx)(d.Z,{}),message:""}),p(v,b,{type:b,icon:(0,r.jsx)(u,{style:{color:"#fc0"}}),message:""}),v);function x(e,t){return e&&w[e]?t?{type:e,icon:w[e].icon,message:t}:w[e]:null}},35159:function(e,t,n){"use strict";n.d(t,{aC:function(){return m}});var r=n(28520),i=n.n(r),o=n(85893),a=n(67294),c=n(45697),s=n.n(c),u=n(58827);function l(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,c,"next",e)}function c(e){l(o,r,i,a,c,"throw",e)}a(void 0)}))}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){for(var t=1;t1?t-1:0),r=1;r=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}break;default:return e}}));return a}return e}function R(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function F(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var c=r;r+=1,c()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},z={integer:function(e){return z.number(e)&&parseInt(e,10)===e},float:function(e){return z.number(e)&&!z.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!z.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(V.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(V.url)},hex:function(e){return"string"===typeof e&&!!e.match(V.hex)}},H={required:D,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(A(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)D(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?z[o](t)||r.push(A(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(A(i.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,c="number"===typeof e.max,s=t,u=null,l="number"===typeof t,f="string"===typeof t,d=Array.isArray(t);if(l?u="number":f?u="string":d&&(u="array"),!u)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?s!==e.len&&r.push(A(i.messages[u].len,e.fullField,e.len)):a&&!c&&se.max?r.push(A(i.messages[u].max,e.fullField,e.max)):a&&c&&(se.max)&&r.push(A(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(A(i.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(A(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(A(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},B=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,o)&&!e.required)return n();H.required(e,t,r,a,i,o),R(t,o)||H.type(e,t,r,a,i)}n(a)},q={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,"string")&&!e.required)return n();H.required(e,t,r,o,i,"string"),R(t,"string")||(H.type(e,t,r,o,i),H.range(e,t,r,o,i),H.pattern(e,t,r,o,i),!0===e.whitespace&&H.whitespace(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&H.type(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&(H.type(e,t,r,o,i),H.range(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&H.type(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),R(t)||H.type(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&(H.type(e,t,r,o,i),H.range(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&(H.type(e,t,r,o,i),H.range(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();H.required(e,t,r,o,i,"array"),void 0!==t&&null!==t&&(H.type(e,t,r,o,i),H.range(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&H.type(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&H.enum(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,"string")&&!e.required)return n();H.required(e,t,r,o,i),R(t,"string")||H.pattern(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,"date")&&!e.required)return n();var a;if(H.required(e,t,r,o,i),!R(t,"date"))a=t instanceof Date?t:new Date(t),H.type(e,a,r,o,i),a&&H.range(e,a.getTime(),r,o,i)}n(o)},url:B,hex:B,email:B,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;H.required(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i)}n(o)}};function U(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var W=U(),$=function(){function e(e){this.rules=null,this._messages=W,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=_(U(),e)),this._messages},t.validate=function(t,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var o=t,a=n,c=r;if("function"===typeof a&&(c=a,a={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(null,o),Promise.resolve(o);if(a.messages){var s=this.messages();s===W&&(s=U()),_(s,a.messages),a.messages=s}else a.messages=this.messages();var u={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=i.rules[e],r=o[e];n.forEach((function(n){var a=n;"function"===typeof a.transform&&(o===t&&(o=Z({},o)),r=o[e]=a.transform(r)),(a="function"===typeof a?{validator:a}:Z({},a)).validator=i.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=i.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:r,source:o,field:e}))}))}));var l={};return I(u,a,(function(t,n){var r,i=t.rule,c=("object"===i.type||"array"===i.type)&&("object"===typeof i.fields||"object"===typeof i.defaultField);function s(e,t){return Z({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function u(r){void 0===r&&(r=[]);var u=Array.isArray(r)?r:[r];!a.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==i.message&&(u=[].concat(i.message));var f=u.map(L(i,o));if(a.first&&f.length)return l[i.field]=1,n(f);if(c){if(i.required&&!t.value)return void 0!==i.message?f=[].concat(i.message).map(L(i,o)):a.error&&(f=[a.error(i,A(a.messages.required,i.field))]),n(f);var d={};i.defaultField&&Object.keys(t.value).map((function(e){d[e]=i.defaultField})),d=Z({},d,t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var v=new e(p);v.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),v.validate(t.value,t.rule.options||a,(function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(f)}c=c&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator?r=i.asyncValidator(i,t.value,u,t.source,a):i.validator&&(!0===(r=i.validator(i,t.value,u,t.source,a))?u():!1===r?u("function"===typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):r instanceof Array?u(r):r instanceof Error&&u(r.message)),r&&r.then&&r.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var i=0;i3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!X(e,t.slice(0,-1))?e:J(e,t,n,r)}function te(e){return b(e)}function ne(e,t){return X(e,t)}function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=ee(e,t,n,r);return i}function ie(e,t){var n={};return t.forEach((function(t){var r=ne(e,t);n=re(n,t,r)})),n}function oe(e,t){return e&&e.some((function(e){return ue(e,t)}))}function ae(e){return"object"===(0,Y.Z)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function ce(e,t){var n=Array.isArray(e)?(0,s.Z)(e):(0,c.Z)({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],i=t[e],o=ae(r)&&ae(i);n[e]=o?ce(r,i||{}):i})),n):n}function se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat((0,s.Z)(e.slice(0,n)),[i],(0,s.Z)(e.slice(n,t)),(0,s.Z)(e.slice(t+1,r))):o<0?[].concat((0,s.Z)(e.slice(0,t)),(0,s.Z)(e.slice(t+1,n+1)),[i],(0,s.Z)(e.slice(n+1,r))):e}var de=$;function pe(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}function ve(e,t,n,r,i){return he.apply(this,arguments)}function he(){return(he=(0,E.Z)(x().mark((function e(t,n,i,o,u){var l,f,d,p,v,h,m,g;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=(0,c.Z)({},i)).ruleIndex,f=null,l&&"array"===l.type&&l.defaultField&&(f=l.defaultField,delete l.defaultField),d=new de((0,a.Z)({},t,[l])),p=se({},G,o.validateMessages),d.messages(p),v=[],e.prev=8,e.next=11,Promise.resolve(d.validate((0,a.Z)({},t,n),(0,c.Z)({},o)));case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(8),e.t0.errors?v=e.t0.errors.map((function(e,t){var n=e.message;return r.isValidElement(n)?r.cloneElement(n,{key:"error_".concat(t)}):n})):(console.error(e.t0),v=[p.default]);case 16:if(v.length||!f){e.next=21;break}return e.next=19,Promise.all(n.map((function(e,n){return ve("".concat(t,".").concat(n),e,f,o,u)})));case 19:return h=e.sent,e.abrupt("return",h.reduce((function(e,t){return[].concat((0,s.Z)(e),(0,s.Z)(t))}),[]));case 21:return m=(0,c.Z)((0,c.Z)({},i),{},{name:t,enum:(i.enum||[]).join(", ")},u),g=v.map((function(e){return"string"===typeof e?pe(e,m):e})),e.abrupt("return",g);case 24:case"end":return e.stop()}}),e,null,[[8,13]])})))).apply(this,arguments)}function me(e,t,n,r,i,o){var a,s=e.join("."),u=n.map((function(e,t){var n=e.validator,r=(0,c.Z)((0,c.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var i=!1,o=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:we;if(i.validatePromise===r){i.validatePromise=null;var t=[],n=[];e.forEach((function(e){var r=e.rule.warningOnly,i=e.errors,o=void 0===i?we:i;r?n.push.apply(n,(0,s.Z)(o)):t.push.apply(t,(0,s.Z)(o))})),i.errors=t,i.warnings=n,i.triggerMetaEvent(),i.reRender()}})),d}));return i.validatePromise=r,i.dirty=!0,i.errors=we,i.warnings=we,i.triggerMetaEvent(),i.reRender(),r},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(m).getInitialValue)(i.getNamePath())},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath()}},i.getOnlyChild=function(e){if("function"===typeof e){var t=i.getMeta();return(0,c.Z)((0,c.Z)({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=(0,v.Z)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},i.getValue=function(e){var t=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return ne(e||t(!0),n)},i.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.props,n=t.trigger,r=t.validateTrigger,o=t.getValueFromEvent,s=t.normalize,u=t.valuePropName,l=t.getValueProps,f=t.fieldContext,d=void 0!==r?r:f.validateTrigger,p=i.getNamePath(),v=f.getInternalHooks,h=f.getFieldsValue,g=v(m),y=g.dispatch,w=i.getValue(),x=l||function(e){return(0,a.Z)({},u,e)},E=e[n],C=(0,c.Z)((0,c.Z)({},e),x(w));C[n]=function(){var e;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(l.keys=[].concat((0,s.Z)(l.keys.slice(0,t)),[l.id],(0,s.Z)(l.keys.slice(t))),o([].concat((0,s.Z)(n.slice(0,t)),[e],(0,s.Z)(n.slice(t))))):(l.keys=[].concat((0,s.Z)(l.keys),[l.id]),o([].concat((0,s.Z)(n),[e]))),l.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(l.keys=l.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=c();e<0||e>=n.length||t<0||t>=n.length||(l.keys=fe(l.keys,e,t),o(fe(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),i(p.map((function(e,t){var n=l.keys[t];return void 0===n&&(l.keys[t]=l.id,n=l.keys[t],l.id+=1),{name:t,key:n,isListField:!0}})),f,t)})))},ke=n(97685);var Ne="__@field_split__";function Pe(e){return e.map((function(e){return"".concat((0,Y.Z)(e),":").concat(e)})).join(Ne)}var Se=function(){function e(){(0,u.Z)(this,e),this.kvs=new Map}return(0,l.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(Pe(e),t)}},{key:"get",value:function(e){return this.kvs.get(Pe(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Pe(e))}},{key:"map",value:function(e){return(0,s.Z)(this.kvs.entries()).map((function(t){var n=(0,ke.Z)(t,2),r=n[0],i=n[1],o=r.split(Ne);return e({key:o.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,ke.Z)(t,3),r=n[1],i=n[2];return"number"===r?Number(i):i})),value:i})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),Oe=["name","errors"],Me=function e(t){var n=this;(0,u.Z)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===m?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue}):((0,h.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.setInitialValues=function(e,t){n.initialValues=e||{},t&&(n.store=se({},e,n.store))},this.getInitialValue=function(e){return ne(n.initialValues,e)},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.timeoutId=null,this.warningUnhooked=function(){0},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Se;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=te(e);return t.get(n)||{INVALIDATE_NAME_PATH:te(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),i=[];return r.forEach((function(n){var r,o="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&i.push(o)}else i.push(o)})),ie(n.store,i.map(te))},this.getFieldValue=function(e){n.warningUnhooked();var t=te(e);return ne(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:te(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=te(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=te(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new Se,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}}));var i,o=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var i=r.getNamePath();if(void 0!==n.getInitialValue(i))(0,h.ZP)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=t.get(i);if(o&&o.size>1)(0,h.ZP)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);e.skipExist&&void 0!==a||(n.store=re(n.store,i,(0,s.Z)(o)[0].value))}}}}))};e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=i).push.apply(n,(0,s.Z)((0,s.Z)(r).map((function(e){return e.entity}))))}))):i=r,o(i)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.store=se({},n.initialValues),n.resetWithFieldInitialValue(),void n.notifyObservers(t,null,{type:"reset"});var r=e.map(te);r.forEach((function(e){var t=n.getInitialValue(e);n.store=re(n.store,e,t)})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"})},this.setFields=function(e){n.warningUnhooked();var t=n.store;e.forEach((function(e){var r=e.name,i=(e.errors,(0,o.Z)(e,Oe)),a=te(r);"value"in i&&(n.store=re(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}))},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),i=(0,c.Z)((0,c.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i}))},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===ne(n.store,r)&&(n.store=re(n.store,r,t))}},this.registerField=function(e){if(n.fieldEntities.push(e),void 0!==e.props.initialValue){var t=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e}));var o=void 0!==r?r:n.preserve;if(!1===o&&(!t||i.length>1)){var a=e.getNamePath(),c=t?void 0:ne(n.initialValues,a);a.length&&n.getFieldValue(a)!==c&&n.fieldEntities.every((function(e){return!ue(e.getNamePath(),a)}))&&(n.store=re(n.store,a,c,!0))}}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var i=(0,c.Z)((0,c.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,i)}))}else n.forceRootUpdate()},this.updateValue=function(e,t){var r=te(e),i=n.store;n.store=re(n.store,r,t),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"});var o=n.getDependencyChildrenFields(r);o.length&&n.validateFields(o),n.notifyObservers(i,o,{type:"dependenciesUpdate",relatedFields:[r].concat((0,s.Z)(o))});var a=n.callbacks.onValuesChange;a&&a(ie(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,s.Z)(o)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&(n.store=se(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],i=new Se;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=te(t);i.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(i.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new Se;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),i.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}r(i.filter((function(t){var n=t.name;return oe(e,n)})),i)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,i=r?e.map(te):[],o=[];n.getFieldEntities(!0).forEach((function(a){if(r||i.push(a.getNamePath()),(null===t||void 0===t?void 0:t.recursive)&&r){var u=a.getNamePath();u.every((function(t,n){return e[n]===t||void 0===e[n]}))&&i.push(u)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!r||oe(i,l)){var f=a.validateRules((0,c.Z)({validateMessages:(0,c.Z)((0,c.Z)({},G),n.validateMessages)},t));o.push(f.then((function(){return{name:l,errors:[],warnings:[]}})).catch((function(e){var t=[],n=[];return e.forEach((function(e){var r=e.rule.warningOnly,i=e.errors;r?n.push.apply(n,(0,s.Z)(i)):t.push.apply(t,(0,s.Z)(i))})),t.length?Promise.reject({name:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(i,o){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))}))}))})):Promise.resolve([])}(o);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var u=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return u.catch((function(e){return e})),u},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t};var Te=function(e){var t=r.useRef(),n=r.useState({}),i=(0,ke.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var o=new Me((function(){i({})}));t.current=o.getForm()}return[t.current]},Ae=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Re=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,o=e.children,s=r.useContext(Ae),u=r.useRef({});return r.createElement(Ae.Provider,{value:(0,c.Z)((0,c.Z)({},s),{},{validateMessages:(0,c.Z)((0,c.Z)({},s.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:u.current}),s.triggerFormChange(e,t)},triggerFormFinish:function(e,t){i&&i(e,{values:t,forms:u.current}),s.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(u.current=(0,c.Z)((0,c.Z)({},u.current),{},(0,a.Z)({},e,t))),s.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.Z)({},u.current);delete t[e],u.current=t,s.unregisterForm(e)}})},o)},Fe=Ae,je=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Ie=function(e,t){var n=e.name,a=e.initialValues,u=e.fields,l=e.form,f=e.preserve,d=e.children,p=e.component,v=void 0===p?"form":p,h=e.validateMessages,g=e.validateTrigger,b=void 0===g?"onChange":g,w=e.onValuesChange,x=e.onFieldsChange,E=e.onFinish,C=e.onFinishFailed,Z=(0,o.Z)(e,je),k=r.useContext(Fe),N=Te(l),P=(0,ke.Z)(N,1)[0],S=P.getInternalHooks(m),O=S.useSubscribe,M=S.setInitialValues,T=S.setCallbacks,A=S.setValidateMessages,R=S.setPreserve;r.useImperativeHandle(t,(function(){return P})),r.useEffect((function(){return k.registerForm(n,P),function(){k.unregisterForm(n)}}),[k,P,n]),A((0,c.Z)((0,c.Z)({},k.validateMessages),h)),T({onValuesChange:w,onFieldsChange:function(e){if(k.triggerFormChange(n,e),x){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i1&&(E.motionAppear=!1);var C=E.onVisibleChanged;return E.onVisibleChanged=function(e){return m.current||e||w(!0),null===C||void 0===C?void 0:C(e)},b?null:u.createElement(k,{mode:s,locked:!m.current},u.createElement(ne.Z,(0,r.Z)({visible:x},E,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,r=e.style;return u.createElement($,{id:t,className:n,style:r},a)})))}var ie=function(e){var t,n=e.style,a=e.className,l=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),v=e.internalPopupClose,h=e.children,g=e.itemIcon,y=e.expandIcon,b=e.popupClassName,w=e.popupOffset,x=e.onClick,E=e.onMouseEnter,C=e.onMouseLeave,M=e.onTitleClick,T=e.onTitleMouseEnter,A=e.onTitleMouseLeave,R=(0,s.Z)(e,["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"]),I=_(d),L=u.useContext(Z),D=L.prefixCls,V=L.mode,z=L.openKeys,H=L.disabled,B=L.overflowDisabled,U=L.activeKey,W=L.selectedKeys,K=L.itemIcon,G=L.expandIcon,Y=L.onItemClick,X=L.onOpenChange,Q=L.onActive,J=u.useContext(j).isSubPathKey,ee=F(),ne="".concat(D,"-submenu"),ie=H||p,oe=u.useRef(),ae=u.useRef();var ce=g||K,se=y||G,ue=z.includes(d),le=!B&&ue,fe=J(W,d),de=N(d,ie,T,A),pe=de.active,ve=(0,s.Z)(de,["active"]),he=u.useState(!1),me=(0,c.Z)(he,2),ge=me[0],ye=me[1],be=function(e){ie||ye(e)},we=u.useMemo((function(){return pe||"inline"!==V&&(ge||J([U],d))}),[V,pe,U,ge,d,J]),xe=O(ee.length),Ee=q((function(e){null===x||void 0===x||x(P(e)),Y(e)})),Ce=I&&"".concat(I,"-popup"),Ze=u.createElement("div",(0,r.Z)({role:"menuitem",style:xe,className:"".concat(ne,"-title"),tabIndex:ie?null:-1,ref:oe,title:"string"===typeof l?l:null,"data-menu-id":B&&I?null:I,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Ce,"aria-disabled":ie,onClick:function(e){ie||(null===M||void 0===M||M({key:d,domEvent:e}),"inline"===V&&X(d,!ue))},onFocus:function(){Q(d)}},ve),l,u.createElement(S,{icon:"horizontal"!==V?se:null,props:(0,o.Z)((0,o.Z)({},e),{},{isOpen:le,isSubMenu:!0})},u.createElement("i",{className:"".concat(ne,"-arrow")}))),ke=u.useRef(V);if("inline"!==V&&(ke.current=ee.length>1?"vertical":V),!B){var Ne=ke.current;Ze=u.createElement(te,{mode:Ne,prefixCls:ne,visible:!v&&le&&"inline"!==V,popupClassName:b,popupOffset:w,popup:u.createElement(k,{mode:"horizontal"===Ne?"vertical":Ne},u.createElement($,{id:Ce,ref:ae},h)),disabled:ie,onVisibleChange:function(e){"inline"!==V&&X(d,e)}},Ze)}return u.createElement(k,{onItemClick:Ee,mode:"horizontal"===V?"vertical":V,itemIcon:ce,expandIcon:se},u.createElement(m.Z.Item,(0,r.Z)({role:"none"},R,{component:"li",style:n,className:f()(ne,"".concat(ne,"-").concat(V),a,(t={},(0,i.Z)(t,"".concat(ne,"-open"),le),(0,i.Z)(t,"".concat(ne,"-active"),we),(0,i.Z)(t,"".concat(ne,"-selected"),fe),(0,i.Z)(t,"".concat(ne,"-disabled"),ie),t)),onMouseEnter:function(e){be(!0),null===E||void 0===E||E({key:d,domEvent:e})},onMouseLeave:function(e){be(!1),null===C||void 0===C||C({key:d,domEvent:e})}}),Ze,!B&&u.createElement(re,{id:Ce,open:le,keyPath:ee},h)))};function oe(e){var t,n=e.eventKey,r=e.children,i=F(n),o=B(r,i),a=A();return u.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),t=a?o:u.createElement(ie,e,o),u.createElement(R.Provider,{value:i},t)}var ae=n(5110);function ce(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,ae.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return ce(e,t)}));return ce(e,t)&&n.unshift(e),n}var ue=x.Z.LEFT,le=x.Z.RIGHT,fe=x.Z.UP,de=x.Z.DOWN,pe=x.Z.ENTER,ve=x.Z.ESC,he=[fe,de,ue,le];function me(e,t){return se(e,!0).filter((function(e){return t.has(e)}))}function ge(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=me(e,t),o=i.length,a=i.findIndex((function(e){return n===e}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}function ye(e,t,n,r,o,a,c,s,l,f){var d=u.useRef(),p=u.useRef();p.current=t;var v=function(){G.Z.cancel(d.current)};return u.useEffect((function(){return function(){v()}}),[]),function(u){var h=u.which;if([].concat(he,[pe,ve]).includes(h)){var m,g,y,b=function(){return m=new Set,g=new Map,y=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(L(r,e),"']"));t&&(m.add(t),y.set(t,e),g.set(e,t))})),m};b();var w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(g.get(t),m),x=y.get(w),E=function(e,t,n,r){var o,a,c,s,u="prev",l="next",f="children",d="parent";if("inline"===e&&r===pe)return{inlineTrigger:!0};var p=(o={},(0,i.Z)(o,fe,u),(0,i.Z)(o,de,l),o),v=(a={},(0,i.Z)(a,ue,n?l:u),(0,i.Z)(a,le,n?u:l),(0,i.Z)(a,de,f),(0,i.Z)(a,pe,f),a),h=(c={},(0,i.Z)(c,fe,u),(0,i.Z)(c,de,l),(0,i.Z)(c,pe,f),(0,i.Z)(c,ve,d),(0,i.Z)(c,ue,n?f:d),(0,i.Z)(c,le,n?d:f),c);switch(null===(s={inline:p,horizontal:v,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case u:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===c(x,!0).length,n,h);if(!E)return;he.includes(h)&&u.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=y.get(e);s(r),v(),d.current=(0,G.Z)((function(){p.current===r&&t.focus()}))}};if(E.sibling||!w){var Z=ge(w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):o.current,m,w,E.offset);C(Z)}else if(E.inlineTrigger)l(x);else if(E.offset>0)l(x,!0),v(),d.current=(0,G.Z)((function(){b();var e=w.getAttribute("aria-controls"),t=ge(document.getElementById(e),m);C(t)}),5);else if(E.offset<0){var k=c(x,!0),N=k[k.length-2],P=g.get(N);l(N,!1),C(P)}}null===f||void 0===f||f(u)}}var be=Math.random().toFixed(5).toString().slice(2),we=0;var xe="__RC_UTIL_PATH_SPLIT__",Ee=function(e){return e.join(xe)},Ce="rc-menu-more";function Ze(){var e=u.useState({}),t=(0,c.Z)(e,2)[1],n=(0,u.useRef)(new Map),r=(0,u.useRef)(new Map),i=u.useState([]),o=(0,c.Z)(i,2),s=o[0],l=o[1],f=(0,u.useRef)(0),d=(0,u.useRef)(!1),p=(0,u.useCallback)((function(e,i){var o=Ee(i);r.current.set(o,e),n.current.set(e,o),f.current+=1;var a,c=f.current;a=function(){c===f.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),v=(0,u.useCallback)((function(e,t){var i=Ee(t);r.current.delete(i),n.current.delete(e)}),[]),h=(0,u.useCallback)((function(e){l(e)}),[]),m=(0,u.useCallback)((function(e,t){var r=n.current.get(e)||"",i=r.split(xe);return t&&s.includes(i[0])&&i.unshift(Ce),i}),[s]),g=(0,u.useCallback)((function(e,t){return e.some((function(e){return m(e,!0).includes(t)}))}),[m]),y=(0,u.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(xe),i=new Set;return(0,a.Z)(r.current.keys()).forEach((function(e){e.startsWith(t)&&i.add(r.current.get(e))})),i}),[]);return u.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:v,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:m,getKeys:function(){var e=(0,a.Z)(n.current.keys());return s.length&&e.push(Ce),e},getSubPathKeys:y}}var ke=[],Ne=function(e){var t=e.className,n=e.title,i=(e.eventKey,e.children),o=(0,s.Z)(e,["className","title","eventKey","children"]),a=u.useContext(Z).prefixCls,c="".concat(a,"-item-group");return u.createElement("li",(0,r.Z)({},o,{onClick:function(e){return e.stopPropagation()},className:f()(c,t)}),u.createElement("div",{className:"".concat(c,"-title"),title:"string"===typeof n?n:void 0},n),u.createElement("ul",{className:"".concat(c,"-list")},i))};function Pe(e){var t=e.children,n=(0,s.Z)(e,["children"]),r=B(t,F(n.eventKey));return A()?r:u.createElement(Ne,(0,E.Z)(n,["warnKey"]),r)}function Se(e){var t=e.className,n=e.style,r=u.useContext(Z).prefixCls;return A()?null:u.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})}var Oe=F,Me=function(e){var t,n,l=e.prefixCls,d=void 0===l?"rc-menu":l,h=e.style,g=e.className,y=e.tabIndex,b=void 0===y?0:y,w=e.children,x=e.direction,E=e.id,C=e.mode,Z=void 0===C?"vertical":C,N=e.inlineCollapsed,S=e.disabled,O=e.disabledOverflow,M=e.subMenuOpenDelay,A=void 0===M?.1:M,R=e.subMenuCloseDelay,F=void 0===R?.1:R,L=e.forceSubMenuRender,_=e.defaultOpenKeys,D=e.openKeys,V=e.activeKey,H=e.defaultActiveFirst,U=e.selectable,W=void 0===U||U,$=e.multiple,K=void 0!==$&&$,G=e.defaultSelectedKeys,Y=e.selectedKeys,X=e.onSelect,Q=e.onDeselect,J=e.inlineIndent,ee=void 0===J?24:J,te=e.motion,ne=e.defaultMotions,re=e.triggerSubMenuAction,ie=void 0===re?"hover":re,ae=e.builtinPlacements,ce=e.itemIcon,se=e.expandIcon,ue=e.overflowedIndicator,le=void 0===ue?"...":ue,fe=e.overflowedIndicatorPopupClassName,de=e.getPopupContainer,pe=e.onClick,ve=e.onOpenChange,he=e.onKeyDown,me=(e.openAnimation,e.openTransitionName,(0,s.Z)(e,["prefixCls","style","className","tabIndex","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName"])),ge=B(w,ke),xe=u.useState(!1),Ee=(0,c.Z)(xe,2),Ne=Ee[0],Pe=Ee[1],Se=u.useRef(),Oe=function(e){var t=(0,v.Z)(e,{value:e}),n=(0,c.Z)(t,2),r=n[0],i=n[1];return u.useEffect((function(){we+=1;var e="".concat(be,"-").concat(we);i("rc-menu-uuid-".concat(e))}),[]),r}(E),Me="rtl"===x;var Te=u.useMemo((function(){return"inline"!==Z&&"vertical"!==Z||!N?[Z,!1]:["vertical",N]}),[Z,N]),Ae=(0,c.Z)(Te,2),Re=Ae[0],Fe=Ae[1],je=u.useState(0),Ie=(0,c.Z)(je,2),Le=Ie[0],_e=Ie[1],De=Le>=ge.length-1||"horizontal"!==Re||O,Ve=(0,v.Z)(_,{value:D,postState:function(e){return e||ke}}),ze=(0,c.Z)(Ve,2),He=ze[0],Be=ze[1],qe=function(e){Be(e),null===ve||void 0===ve||ve(e)},Ue=u.useState(He),We=(0,c.Z)(Ue,2),$e=We[0],Ke=We[1],Ge="inline"===Re,Ye=u.useRef(!1);u.useEffect((function(){Ge&&Ke(He)}),[He]),u.useEffect((function(){Ye.current?Ge?Be($e):qe(ke):Ye.current=!0}),[Ge]);var Xe=Ze(),Qe=Xe.registerPath,Je=Xe.unregisterPath,et=Xe.refreshOverflowKeys,tt=Xe.isSubPathKey,nt=Xe.getKeyPath,rt=Xe.getKeys,it=Xe.getSubPathKeys,ot=u.useMemo((function(){return{registerPath:Qe,unregisterPath:Je}}),[Qe,Je]),at=u.useMemo((function(){return{isSubPathKey:tt}}),[tt]);u.useEffect((function(){et(De?ke:ge.slice(Le+1).map((function(e){return e.key})))}),[Le,De]);var ct=(0,v.Z)(V||H&&(null===(t=ge[0])||void 0===t?void 0:t.key),{value:V}),st=(0,c.Z)(ct,2),ut=st[0],lt=st[1],ft=q((function(e){lt(e)})),dt=q((function(){lt(void 0)})),pt=(0,v.Z)(G||[],{value:Y,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?ke:[e]}}),vt=(0,c.Z)(pt,2),ht=vt[0],mt=vt[1],gt=q((function(e){null===pe||void 0===pe||pe(P(e)),function(e){if(W){var t,n=e.key,r=ht.includes(n);t=K?r?ht.filter((function(e){return e!==n})):[].concat((0,a.Z)(ht),[n]):[n],mt(t);var i=(0,o.Z)((0,o.Z)({},e),{},{selectedKeys:t});r?null===Q||void 0===Q||Q(i):null===X||void 0===X||X(i)}!K&&He.length&&"inline"!==Re&&qe(ke)}(e)})),yt=q((function(e,t){var n=He.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var r=it(e);n=n.filter((function(e){return!r.has(e)}))}p()(He,n)||qe(n)})),bt=q(de),wt=ye(Re,ut,Me,Oe,Se,rt,nt,lt,(function(e,t){var n=null!==t&&void 0!==t?t:!He.includes(e);yt(e,n)}),he);u.useEffect((function(){Pe(!0)}),[]);var xt="horizontal"!==Re||O?ge:ge.map((function(e,t){return u.createElement(k,{key:e.key,overflowDisabled:t>Le},e)})),Et=u.createElement(m.Z,(0,r.Z)({id:E,ref:Se,prefixCls:"".concat(d,"-overflow"),component:"ul",itemComponent:z,className:f()(d,"".concat(d,"-root"),"".concat(d,"-").concat(Re),g,(n={},(0,i.Z)(n,"".concat(d,"-inline-collapsed"),Fe),(0,i.Z)(n,"".concat(d,"-rtl"),Me),n)),dir:x,style:h,role:"menu",tabIndex:b,data:xt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ge.slice(-t):null;return u.createElement(oe,{eventKey:Ce,title:le,disabled:De,internalPopupClose:0===t,popupClassName:fe},n)},maxCount:"horizontal"!==Re||O?m.Z.INVALIDATE:m.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){_e(e)},onKeyDown:wt},me));return u.createElement(I.Provider,{value:Oe},u.createElement(k,{prefixCls:d,mode:Re,openKeys:He,rtl:Me,disabled:S,motion:Ne?te:null,defaultMotions:Ne?ne:null,activeKey:ut,onActive:ft,onInactive:dt,selectedKeys:ht,inlineIndent:ee,subMenuOpenDelay:A,subMenuCloseDelay:F,forceSubMenuRender:L,builtinPlacements:ae,triggerSubMenuAction:ie,getPopupContainer:bt,itemIcon:ce,expandIcon:se,onItemClick:gt,onOpenChange:yt},u.createElement(j.Provider,{value:at},Et),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(T.Provider,{value:ot},ge))))};Me.Item=z,Me.SubMenu=oe,Me.ItemGroup=Pe,Me.Divider=Se;var Te=Me},93481:function(e,t,n){"use strict";n.d(t,{V:function(){return re},Z:function(){return ie}});var r=n(4942),i=n(1413),o=n(97685),a=n(71002),c=n(67294),s=n(34203),u=n(42550),l=n(94184),f=n.n(l),d=n(98924);function p(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var v=function(e,t){var n={animationend:p("Animation","AnimationEnd"),transitionend:p("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}((0,d.Z)(),"undefined"!==typeof window?window:{}),h={};if((0,d.Z)()){var m=document.createElement("div");h=m.style}var g={};function y(e){if(g[e])return g[e];var t=v[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var o=(0,I.Z)((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),u=(0,o.Z)(s,2),l=u[0],f=u[1];return j((function(){if(i!==O&&i!==R){var e=L.indexOf(i),n=L[e+1],r=t(i);false===r?a(n):l((function(e){function t(){e.isCanceled()||a(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,i]),c.useEffect((function(){return function(){f()}}),[]),[function(){a(M)},i]};function V(e,t,n,a){var s=a.motionEnter,u=void 0===s||s,l=a.motionAppear,f=void 0===l||l,d=a.motionLeave,p=void 0===d||d,v=a.motionDeadline,h=a.motionLeaveImmediately,m=a.onAppearPrepare,g=a.onEnterPrepare,y=a.onLeavePrepare,b=a.onAppearStart,w=a.onEnterStart,x=a.onLeaveStart,Z=a.onAppearActive,O=a.onEnterActive,R=a.onLeaveActive,I=a.onAppearEnd,L=a.onEnterEnd,V=a.onLeaveEnd,z=a.onVisibleChanged,H=F(),B=(0,o.Z)(H,2),q=B[0],U=B[1],W=F(k),$=(0,o.Z)(W,2),K=$[0],G=$[1],Y=F(null),X=(0,o.Z)(Y,2),Q=X[0],J=X[1],ee=(0,c.useRef)(!1),te=(0,c.useRef)(null),ne=(0,c.useRef)(!1),re=(0,c.useRef)(null);function ie(){return n()||re.current}var oe=(0,c.useRef)(!1);function ae(e){var t,n=ie();e&&!e.deadline&&e.target!==n||(K===N&&oe.current?t=null===I||void 0===I?void 0:I(n,e):K===P&&oe.current?t=null===L||void 0===L?void 0:L(n,e):K===S&&oe.current&&(t=null===V||void 0===V?void 0:V(n,e)),!1===t||ne.current||(G(k),J(null)))}var ce=function(e){var t=(0,c.useRef)(),n=(0,c.useRef)(e);n.current=e;var r=c.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(C,r),e.removeEventListener(E,r))}return c.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(C,r),e.addEventListener(E,r),t.current=e)},i]}(ae),se=(0,o.Z)(ce,1)[0],ue=c.useMemo((function(){var e,t,n;switch(K){case"appear":return e={},(0,r.Z)(e,M,m),(0,r.Z)(e,T,b),(0,r.Z)(e,A,Z),e;case"enter":return t={},(0,r.Z)(t,M,g),(0,r.Z)(t,T,w),(0,r.Z)(t,A,O),t;case"leave":return n={},(0,r.Z)(n,M,y),(0,r.Z)(n,T,x),(0,r.Z)(n,A,R),n;default:return{}}}),[K]),le=D(K,(function(e){if(e===M){var t=ue.prepare;return!!t&&t(ie())}var n;pe in ue&&J((null===(n=ue[pe])||void 0===n?void 0:n.call(ue,ie(),null))||null);return pe===A&&(se(ie()),v>0&&(clearTimeout(te.current),te.current=setTimeout((function(){ae({deadline:!0})}),v))),true})),fe=(0,o.Z)(le,2),de=fe[0],pe=fe[1],ve=_(pe);oe.current=ve,j((function(){U(t);var n,r=ee.current;(ee.current=!0,e)&&(!r&&t&&f&&(n=N),r&&t&&u&&(n=P),(r&&!t&&p||!r&&h&&!t&&p)&&(n=S),n&&(G(n),de()))}),[t]),(0,c.useEffect)((function(){(K===N&&!f||K===P&&!u||K===S&&!p)&&G(k)}),[f,u,p]),(0,c.useEffect)((function(){return function(){clearTimeout(te.current),ne.current=!0}}),[]),(0,c.useEffect)((function(){void 0!==q&&K===k&&(null===z||void 0===z||z(q))}),[q,K]);var he=Q;return ue.prepare&&pe===T&&(he=(0,i.Z)({transition:"none"},he)),[K,pe,he,null!==q&&void 0!==q?q:t]}var z=n(15671),H=n(43144),B=n(60136),q=n(3289),U=function(e){(0,B.Z)(n,e);var t=(0,q.Z)(n);function n(){return(0,z.Z)(this,n),t.apply(this,arguments)}return(0,H.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);var W=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var l=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,d=e.removeOnLeave,p=void 0===d||d,v=e.forceRender,h=e.children,m=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),w=(0,c.useRef)(),x=(0,c.useRef)();var E=V(b,l,(function(){try{return(0,s.Z)(w.current||x.current)}catch(e){return null}}),e),C=(0,o.Z)(E,4),N=C[0],P=C[1],S=C[2],O=C[3],A=c.useRef(O);O&&(A.current=!0);var R=(0,c.useRef)(t);R.current=t;var F,j=c.useCallback((function(e){w.current=e,(0,u.mH)(R.current,e)}),[]),I=(0,i.Z)((0,i.Z)({},y),{},{visible:l});if(h)if(N!==k&&n(e)){var L,D;P===M?D="prepare":_(P)?D="active":P===T&&(D="start"),F=h((0,i.Z)((0,i.Z)({},I),{},{className:f()(Z(m,N),(L={},(0,r.Z)(L,Z(m,"".concat(N,"-").concat(D)),D),(0,r.Z)(L,m,"string"===typeof m),L)),style:S}),j)}else F=O?h((0,i.Z)({},I),j):!p&&A.current?h((0,i.Z)((0,i.Z)({},I),{},{className:g}),j):v?h((0,i.Z)((0,i.Z)({},I),{},{style:{display:"none"}}),j):null;else F=null;return c.createElement(U,{ref:x},F)}));return l.displayName="CSSMotion",l}(x),$=n(87462),K=n(91),G="add",Y="keep",X="remove",Q="removed";function J(e){var t;return t=e&&"object"===(0,a.Z)(e)&&"key"in e?e:{key:e},(0,i.Z)((0,i.Z)({},t),{},{key:String(t.key)})}function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(J)}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=ee(e),c=ee(t);a.forEach((function(e){for(var t=!1,a=r;a1}));return u.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==X}))).forEach((function(t){t.key===e&&(t.status=Y)}))})),n}var ne=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,n=function(e){(0,B.Z)(r,e);var n=(0,q.Z)(r);function r(){var e;return(0,z.Z)(this,r),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.Z)((0,i.Z)({},e),{},{status:Q})}))}}))},e}return(0,H.Z)(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=r.onVisibleChanged,s=(0,K.Z)(r,["component","children","onVisibleChanged"]),u=i||c.Fragment,l={};return ne.forEach((function(e){l[e]=s[e],delete s[e]})),delete s.keys,c.createElement(u,s,n.map((function(n){var r=n.status,i=(0,K.Z)(n,["status"]),s=r===G||r===Y;return c.createElement(t,(0,$.Z)({},l,{key:i.key,visible:s,eventProps:i,onVisibleChanged:function(t){null===a||void 0===a||a(t,{key:i.key}),t||e.removeKey(i.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=ee(n);return{keyEntities:te(r,i).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Q||e.status!==X}))}}}]),r}(c.Component);return n.defaultProps={component:"div"},n}(x),ie=W},51784:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(87462),i=n(4942),o=n(15671),a=n(43144),c=n(60136),s=n(3289),u=n(67294),l=n(73935),f=n(94184),d=n.n(f),p=function(e){(0,c.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,o.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a=a&&(i.key=c[0].notice.key,i.updateMark=b(),i.userPassKey=r,c.shift()),c.push({notice:i,holderCallback:n})),{notices:c}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return(0,c.Z)(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,a=n.className,c=n.closeIcon,s=n.style,u=[];return t.forEach((function(n,i){var a=n.notice,s=n.holderCallback,l=i===t.length-1?a.updateMark:void 0,f=a.key,d=a.userPassKey,p=(0,o.Z)((0,o.Z)((0,o.Z)({prefixCls:r,closeIcon:c},a),a.props),{},{key:f,noticeKey:d||f,updateMark:l,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});u.push(f),e.noticePropsMap[f]={props:p,holderCallback:s}})),l.createElement("div",{className:p()(r,a),style:s},l.createElement(v.V,{keys:u,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,a=t.className,c=t.style,s=t.visible,u=e.noticePropsMap[n],f=u.props,d=u.holderCallback;return d?l.createElement("div",{key:n,className:p()(a,"".concat(r,"-hook-holder")),style:(0,o.Z)({},c),ref:function(t){"undefined"!==typeof n&&(t?(e.hookRefs.set(n,t),d(t,f)):e.hookRefs.delete(n))}}):l.createElement(h.Z,(0,i.Z)({},f,{className:p()(a,null===f||void 0===f?void 0:f.className),style:(0,o.Z)((0,o.Z)({},c),null===f||void 0===f?void 0:f.style),visible:s}))})))}}]),n}(l.Component);w.newInstance=void 0,w.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},w.newInstance=function(e,t){var n=e||{},o=n.getContainer,a=(0,r.Z)(n,["getContainer"]),c=document.createElement("div");o?o().appendChild(c):document.body.appendChild(c);var s=!1;f.render(l.createElement(w,(0,i.Z)({},a,{ref:function(e){s||(s=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){f.unmountComponentAtNode(c),c.parentNode&&c.parentNode.removeChild(c)},useNotification:function(){return(0,m.Z)(e)}}))}})),c)};var x=w},51550:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(74902),i=n(87462),o=n(97685),a=n(67294),c=n(51784);function s(e){var t=a.useRef({}),n=a.useState([]),s=(0,o.Z)(n,2),u=s[0],l=s[1];return[function(n){var o=!0;e.add(n,(function(e,n){var s=n.key;if(e&&(!t.current[s]||o)){var u=a.createElement(c.Z,(0,i.Z)({},n,{holder:e}));t.current[s]=u,l((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat((0,r.Z)(e),[u]);var i=(0,r.Z)(e);return i[t]=u,i}))}o=!1}))},a.createElement(a.Fragment,null,u)]}},34243:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(87462),i=n(1413),o=n(97685),a=n(91),c=n(67294),s=n(94184),u=n.n(s),l=n(48555),f=void 0;function d(e,t){var n=e.prefixCls,o=e.invalidate,s=e.item,d=e.renderItem,p=e.responsive,v=e.registerSize,h=e.itemKey,m=e.className,g=e.style,y=e.children,b=e.display,w=e.order,x=e.component,E=void 0===x?"div":x,C=(0,a.Z)(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),Z=p&&!b;function k(e){v(h,e)}c.useEffect((function(){return function(){k(null)}}),[]);var N,P=d&&s!==f?d(s):y;o||(N={opacity:Z?0:1,height:Z?0:f,overflowY:Z?"hidden":f,order:p?w:f,pointerEvents:Z?"none":f,position:Z?"absolute":f});var S={};Z&&(S["aria-hidden"]=!0);var O=c.createElement(E,(0,r.Z)({className:u()(!o&&n,m),style:(0,i.Z)((0,i.Z)({},N),g)},S,C,{ref:t}),P);return p&&(O=c.createElement(l.default,{onResize:function(e){k(e.offsetWidth)}},O)),O}var p=c.forwardRef(d);p.displayName="Item";var v=p,h=n(75164);var m=function(e,t){var n=c.useContext(b);if(!n){var i=e.component,o=void 0===i?"div":i,s=(0,a.Z)(e,["component"]);return c.createElement(o,(0,r.Z)({},s,{ref:t}))}var l=n.className,f=(0,a.Z)(n,["className"]),d=e.className,p=(0,a.Z)(e,["className"]);return c.createElement(b.Provider,{value:null},c.createElement(v,(0,r.Z)({ref:t,className:u()(l,d)},f,p)))},g=c.forwardRef(m);g.displayName="RawItem";var y=g,b=c.createContext(null),w="responsive",x="invalidate";function E(e){return"+ ".concat(e.length," ...")}function C(e,t){var n=e.prefixCls,s=void 0===n?"rc-overflow":n,f=e.data,d=void 0===f?[]:f,p=e.renderItem,m=e.renderRawItem,g=e.itemKey,y=e.itemWidth,C=void 0===y?10:y,Z=e.ssr,k=e.style,N=e.className,P=e.maxCount,S=e.renderRest,O=e.renderRawRest,M=e.suffix,T=e.component,A=void 0===T?"div":T,R=e.itemComponent,F=e.onVisibleChange,j=(0,a.Z)(e,["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"]),I=function(){var e=(0,c.useState)({}),t=(0,o.Z)(e,2)[1],n=(0,c.useRef)([]),r=(0,c.useRef)(!1),i=0,a=0;return(0,c.useEffect)((function(){return function(){r.current=!0}}),[]),function(e){var o=i;return i+=1,n.current.lengthP,Ce=(0,c.useMemo)((function(){var e=d;return we?e=null===V&&L?d:d.slice(0,Math.min(d.length,H/C)):"number"===typeof P&&(e=d.slice(0,P)),e}),[d,C,V,P,we]),Ze=(0,c.useMemo)((function(){return we?d.slice(pe+1):d.slice(Ce.length)}),[d,Ce,we,pe]),ke=(0,c.useCallback)((function(e,t){var n;return"function"===typeof g?g(e):null!==(n=g&&(null===e||void 0===e?void 0:e[g]))&&void 0!==n?n:t}),[g]),Ne=(0,c.useCallback)(p||function(e){return e},[p]);function Pe(e,t){de(e),t||(ge(eH){Pe(r-1),se(e-i-re+J);break}}M&&Oe(0)+re>H&&se(null)}}),[H,U,J,re,ke,Ce]);var Me=me&&!!Ze.length,Te={};null!==ce&&we&&(Te={position:"absolute",left:ce,top:0});var Ae,Re={prefixCls:ye,responsive:we,component:R,invalidate:xe},Fe=m?function(e,t){var n=ke(e,t);return c.createElement(b.Provider,{key:n,value:(0,i.Z)((0,i.Z)({},Re),{},{order:t,item:e,itemKey:n,registerSize:Se,display:t<=pe})},m(e,t))}:function(e,t){var n=ke(e,t);return c.createElement(v,(0,r.Z)({},Re,{order:t,key:n,item:e,renderItem:Ne,itemKey:n,registerSize:Se,display:t<=pe}))},je={order:Me?pe:Number.MAX_SAFE_INTEGER,className:"".concat(ye,"-rest"),registerSize:function(e,t){ee(t),Y(J)},display:Me};if(O)O&&(Ae=c.createElement(b.Provider,{value:(0,i.Z)((0,i.Z)({},Re),je)},O(Ze)));else{var Ie=S||E;Ae=c.createElement(v,(0,r.Z)({},Re,je),"function"===typeof Ie?Ie(Ze):Ie)}var Le=c.createElement(A,(0,r.Z)({className:u()(!xe&&s,N),style:k,ref:t},j),Ce.map(Fe),Ee?Ae:null,M&&c.createElement(v,(0,r.Z)({},Re,{order:pe,className:"".concat(ye,"-suffix"),registerSize:function(e,t){ie(t)},display:!0,style:Te}),M));return we&&(Le=c.createElement(l.default,{onResize:function(e,t){z(t.clientWidth)}},Le)),Le}var Z=c.forwardRef(C);Z.displayName="Overflow",Z.Item=y,Z.RESPONSIVE=w,Z.INVALIDATE=x;var k=Z},62906:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},48555:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(87462),i=n(67294),o=n(50344),a=(n(80334),n(1413)),c=n(42550),s=n(34203),u=n(91033),l=new Map;var f=new u.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=l.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var d=n(15671),p=n(43144),v=n(60136),h=n(3289),m=function(e){(0,v.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component),g=i.createContext(null);function y(e){var t=e.children,n=e.disabled,r=i.useRef(null),o=i.useRef(null),u=i.useContext(g),d=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=i.isValidElement(t)&&(0,c.Yr)(t),v=p?t.ref:null,h=i.useMemo((function(){return(0,c.sQ)(v,r)}),[v,r]),y=i.useRef(e);y.current=e;var b=i.useCallback((function(e){var t=y.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),o=i.width,c=i.height,s=e.offsetWidth,l=e.offsetHeight,f=Math.floor(o),p=Math.floor(c);if(d.current.width!==f||d.current.height!==p||d.current.offsetWidth!==s||d.current.offsetHeight!==l){var v={width:f,height:p,offsetWidth:s,offsetHeight:l};d.current=v;var h=s===Math.round(o)?o:s,m=l===Math.round(c)?c:l,g=(0,a.Z)((0,a.Z)({},v),{},{offsetWidth:h,offsetHeight:m});null===u||void 0===u||u(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return i.useEffect((function(){var e,t,i=(0,s.Z)(r.current)||(0,s.Z)(o.current);return i&&!n&&(e=i,t=b,l.has(e)||(l.set(e,new Set),f.observe(e)),l.get(e).add(t)),function(){return function(e,t){l.has(e)&&(l.get(e).delete(t),l.get(e).size||(f.unobserve(e),l.delete(e)))}(i,b)}}),[r.current,n]),i.createElement(m,{ref:o},p?i.cloneElement(t,{ref:h}):t)}function b(e){var t=e.children;return(0,o.Z)(t).map((function(t,n){var o=(null===t||void 0===t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return i.createElement(y,(0,r.Z)({},e,{key:o}),t)}))}b.Collection=function(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),o=i.useRef([]),a=i.useContext(g),c=i.useCallback((function(e,t,i){r.current+=1;var c=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){c===r.current&&(null===n||void 0===n||n(o.current),o.current=[])})),null===a||void 0===a||a(e,t,i)}),[n,a]);return i.createElement(g.Provider,{value:c},t)};var w=b},57239:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizableTextArea:function(){return x},default:function(){return E}});var r,i,o=n(87462),a=n(15671),c=n(43144),s=n(60136),u=n(3289),l=n(67294),f=n(1413),d=n(4942),p=n(48555),v=n(98423),h=n(94184),m=n.n(h),g="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",y=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],b={};function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&b[n])return b[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=y.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),s={sizingStyle:c,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(b[n]=s),s}!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(i||(i={}));var x=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(e){var c;return(0,a.Z)(this,n),(c=t.call(this,e)).saveTextArea=function(e){c.textArea=e},c.handleResize=function(e){var t=c.state.resizeStatus,n=c.props,r=n.autoSize,o=n.onResize;t===i.NONE&&("function"===typeof o&&o(e),r&&c.resizeOnNextFrame())},c.resizeOnNextFrame=function(){cancelAnimationFrame(c.nextFrameActionId),c.nextFrameActionId=requestAnimationFrame(c.resizeTextarea)},c.resizeTextarea=function(){var e=c.props.autoSize;if(e&&c.textArea){var t=e.minRows,n=e.maxRows,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var o=w(e,t),a=o.paddingSize,c=o.borderSize,s=o.boxSizing,u=o.sizingStyle;r.setAttribute("style","".concat(u,";").concat(g)),r.value=e.value||e.placeholder||"";var l,f=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,p=r.scrollHeight;if("border-box"===s?p+=c:"content-box"===s&&(p-=a),null!==n||null!==i){r.value=" ";var v=r.scrollHeight-a;null!==n&&(f=v*n,"border-box"===s&&(f=f+a+c),p=Math.max(f,p)),null!==i&&(d=v*i,"border-box"===s&&(d=d+a+c),l=p>d?"":"hidden",p=Math.min(d,p))}return{height:p,minHeight:f,maxHeight:d,overflowY:l,resize:"none"}}(c.textArea,!1,t,n);c.setState({textareaStyles:o,resizeStatus:i.RESIZING},(function(){cancelAnimationFrame(c.resizeFrameId),c.resizeFrameId=requestAnimationFrame((function(){c.setState({resizeStatus:i.RESIZED},(function(){c.resizeFrameId=requestAnimationFrame((function(){c.setState({resizeStatus:i.NONE}),c.fixFirefoxAutoScroll()}))}))}))}))}},c.renderTextArea=function(){var e=c.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,a=e.onResize,s=e.className,u=e.disabled,h=c.state,g=h.textareaStyles,y=h.resizeStatus,b=(0,v.Z)(c.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),w=m()(n,s,(0,d.Z)({},"".concat(n,"-disabled"),u));"value"in b&&(b.value=b.value||"");var x=(0,f.Z)((0,f.Z)((0,f.Z)({},c.props.style),g),y===i.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return l.createElement(p.default,{onResize:c.handleResize,disabled:!(r||a)},l.createElement("textarea",(0,o.Z)({},b,{className:w,style:x,ref:c.saveTextArea})))},c.state={textareaStyles:{},resizeStatus:i.NONE},c}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(l.Component),E=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r;(0,a.Z)(this,n),(r=t.call(this,e)).focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,i=t.onKeyDown;13===e.keyCode&&n&&n(e),i&&i(e)};var i="undefined"===typeof e.value||null===e.value?e.defaultValue:e.value;return r.state={value:i},r}return(0,c.Z)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l.createElement(x,(0,o.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(l.Component)},22972:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(87462),i=n(71002),o=n(1413),a=n(91),c=n(67294),s=n(51169),u=n(43159),l=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"===typeof t?t():t)},f=function(e,t){var n=e.overlayClassName,f=e.trigger,d=void 0===f?["hover"]:f,p=e.mouseEnterDelay,v=void 0===p?0:p,h=e.mouseLeaveDelay,m=void 0===h?.1:h,g=e.overlayStyle,y=e.prefixCls,b=void 0===y?"rc-tooltip":y,w=e.children,x=e.onVisibleChange,E=e.afterVisibleChange,C=e.transitionName,Z=e.animation,k=e.motion,N=e.placement,P=void 0===N?"right":N,S=e.align,O=void 0===S?{}:S,M=e.destroyTooltipOnHide,T=void 0!==M&&M,A=e.defaultVisible,R=e.getTooltipContainer,F=e.overlayInnerStyle,j=(0,a.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),I=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return I.current}));var L=(0,o.Z)({},j);"visible"in e&&(L.popupVisible=e.visible);var _=!1,D=!1;if("boolean"===typeof T)_=T;else if(T&&"object"===(0,i.Z)(T)){var V=T.keepParent;_=!0===V,D=!1===V}return c.createElement(s.Z,(0,r.Z)({popupClassName:n,prefixCls:b,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,i=e.id;return[c.createElement("div",{className:"".concat(b,"-arrow"),key:"arrow"},n),c.createElement(l,{key:"content",prefixCls:b,id:i,overlay:r,overlayInnerStyle:F})]},action:d,builtinPlacements:u.C,popupPlacement:P,ref:I,popupAlign:O,getPopupContainer:R,onPopupVisibleChange:x,afterPopupVisibleChange:E,popupTransitionName:C,popupAnimation:Z,popupMotion:k,defaultPopupVisible:A,destroyPopupOnHide:_,autoDestroy:D,mouseLeaveDelay:m,popupStyle:g,mouseEnterDelay:v},L),w)},d=(0,c.forwardRef)(f)},43159:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r={adjustX:1,adjustY:1},i=[0,0],o={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:i},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:i},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:i},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:i},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:i},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:i},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:i},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:i},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:i},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:i},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:i},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:i}}},51169:function(e,t,n){"use strict";n.d(t,{Z:function(){return Xe}});var r=n(1413),i=n(87462),o=n(15671),a=n(43144),c=n(97326),s=n(60136),u=n(3289),l=n(67294),f=n(73935),d=n(75164),p=n(94999),v=n(34203),h=n(42550),m=n(64019),g=n(59015),y=n(94184),b=n.n(y);function w(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var x=n(97685),E=n(91),C=n(31131),Z=n(93481);function k(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function N(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,a=e.mask,c=e.maskMotion,s=e.maskAnimation,u=e.maskTransitionName;if(!a)return null;var f={};return(c||u||s)&&(f=(0,r.Z)({motionAppear:!0},k({motion:c,prefixCls:t,transitionName:u,animation:s}))),l.createElement(Z.Z,(0,i.Z)({},f,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return l.createElement("div",{style:{zIndex:o},className:b()("".concat(t,"-mask"),n)})}))}var P,S=n(71002),O=n(5110);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ye(e){var t,n,r;if(pe.isWindow(e)||9===e.nodeType){var i=pe.getWindow(e);t={left:pe.getWindowScrollLeft(i),top:pe.getWindowScrollTop(i)},n=pe.viewportWidth(i),r=pe.viewportHeight(i)}else t=pe.offset(e),n=pe.outerWidth(e),r=pe.outerHeight(e);return t.width=n,t.height=r,t}function be(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,c=e.top;return"c"===n?c+=o/2:"b"===n&&(c+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:c}}function we(e,t,n,r,i){var o=be(t,n[1]),a=be(e,n[0]),c=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-c[0]+r[0]-i[0]),top:Math.round(e.top-c[1]+r[1]-i[1])}}function xe(e,t,n){return e.leftn.right}function Ee(e,t,n){return e.topn.bottom}function Ce(e,t,n){var r=[];return pe.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ze(e,t){return e[t]=-e[t],e}function ke(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ne(e,t){e[0]=ke(e[0],t.width),e[1]=ke(e[1],t.height)}function Pe(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,s=n.source||e;o=[].concat(o),a=[].concat(a);var u={},l=0,f=ge(s,!(!(c=c||{})||!c.alwaysByViewport)),d=ye(s);Ne(o,d),Ne(a,t);var p=we(d,t,i,o,a),v=pe.merge(d,p);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&xe(p,d,f)){var h=Ce(i,/[lr]/gi,{l:"r",r:"l"}),m=Ze(o,0),g=Ze(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),pe.mix(i,o)}(p,d,f,u))}return v.width!==d.width&&pe.css(s,"width",pe.width(s)+v.width-d.width),v.height!==d.height&&pe.css(s,"height",pe.height(s)+v.height-d.height),pe.offset(s,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:u}}function Se(e,t,n){var r=n.target||t;return Pe(e,ye(r),n,!function(e,t){var n=ge(e,t),r=ye(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport))}Se.__getOffsetParent=he,Se.__getVisibleRectForElement=ge;var Oe=n(91033);function Me(e,t){var n=null,r=null;var i=new Oe.Z((function(e){var i=(0,x.Z)(e,1)[0].target;if(document.documentElement.contains(i)){var o=i.getBoundingClientRect(),a=o.width,c=o.height,s=Math.floor(a),u=Math.floor(c);n===s&&r===u||Promise.resolve().then((function(){t({width:s,height:u})})),n=s,r=u}}));return e&&i.observe(e),function(){i.disconnect()}}function Te(e){return"function"!==typeof e?null:e()}function Ae(e){return"object"===(0,S.Z)(e)&&e?e:null}var Re=l.forwardRef((function(e,t){var n=e.children,r=e.disabled,i=e.target,o=e.align,a=e.onAlign,c=e.monitorWindowResize,s=e.monitorBufferTime,u=void 0===s?0:s,f=l.useRef({}),d=l.useRef(),v=l.Children.only(n),g=l.useRef({});g.current.disabled=r,g.current.target=i,g.current.onAlign=a;var y=function(e,t){var n=l.useRef(!1),r=l.useRef(null);function i(){window.clearTimeout(r.current)}return[function o(a){if(n.current&&!0!==a)i(),r.current=window.setTimeout((function(){n.current=!1,o()}),t);else{if(!1===e())return;n.current=!0,i(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=g.current,t=e.disabled,n=e.target,r=e.onAlign;if(!t&&n){var i,a=d.current,c=Te(n),s=Ae(n);f.current.element=c,f.current.point=s;var u=document.activeElement;return c&&(0,O.Z)(c)?i=Se(a,c,o):s&&(i=function(e,t,n){var r,i,o=pe.getDocument(e),a=o.defaultView||o.parentWindow,c=pe.getWindowScrollLeft(a),s=pe.getWindowScrollTop(a),u=pe.viewportWidth(a),l=pe.viewportHeight(a),f={left:r="pageX"in t?t.pageX:c+t.clientX,top:i="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},d=r>=0&&r<=c+u&&i>=0&&i<=s+l,p=[n.points[0],"cc"];return Pe(e,f,T(T({},n),{},{points:p}),d)}(a,s,o)),function(e,t){e!==document.activeElement&&(0,p.Z)(t,e)&&"function"===typeof e.focus&&e.focus()}(u,a),r&&i&&r(a,i),!0}return!1}),u),b=(0,x.Z)(y,2),w=b[0],E=b[1],C=l.useRef({cancel:function(){}}),Z=l.useRef({cancel:function(){}});l.useEffect((function(){var e,t,n=Te(i),r=Ae(i);d.current!==Z.current.element&&(Z.current.cancel(),Z.current.element=d.current,Z.current.cancel=Me(d.current,w)),f.current.element===n&&((e=f.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(w(),C.current.element!==n&&(C.current.cancel(),C.current.element=n,C.current.cancel=Me(n,w)))})),l.useEffect((function(){r?E():w()}),[r]);var k=l.useRef(null);return l.useEffect((function(){c?k.current||(k.current=(0,m.Z)(window,"resize",w)):k.current&&(k.current.remove(),k.current=null)}),[c]),l.useEffect((function(){return function(){C.current.cancel(),Z.current.cancel(),k.current&&k.current.remove(),E()}}),[]),l.useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),l.isValidElement(v)&&(v=l.cloneElement(v,{ref:(0,h.sQ)(v.ref,d)})),v}));Re.displayName="Align";var Fe=Re,je=n(87757),Ie=n.n(je),Le=n(15861),_e=["measure","align",null,"motion"],De=l.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,a=e.className,c=e.style,s=e.children,u=e.zIndex,f=e.stretch,p=e.destroyPopupOnHide,v=e.forceRender,h=e.align,m=e.point,g=e.getRootDomNode,y=e.getClassNameFromAlign,w=e.onAlign,E=e.onMouseEnter,C=e.onMouseLeave,N=e.onMouseDown,P=e.onTouchStart,S=(0,l.useRef)(),O=(0,l.useRef)(),M=(0,l.useState)(),T=(0,x.Z)(M,2),A=T[0],R=T[1],F=function(e){var t=l.useState({width:0,height:0}),n=(0,x.Z)(t,2),r=n[0],i=n[1];return[l.useMemo((function(){var t={};if(e){var n=r.width,i=r.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){i({width:e.offsetWidth,height:e.offsetHeight})}]}(f),j=(0,x.Z)(F,2),I=j[0],L=j[1];var _=function(e,t){var n=(0,l.useState)(null),r=(0,x.Z)(n,2),i=r[0],o=r[1],a=(0,l.useRef)(),c=(0,l.useRef)(!1);function s(e){c.current||o(e)}function u(){d.Z.cancel(a.current)}return(0,l.useEffect)((function(){s("measure")}),[e]),(0,l.useEffect)((function(){switch(i){case"measure":t()}i&&(a.current=(0,d.Z)((0,Le.Z)(Ie().mark((function e(){var t,n;return Ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=_e.indexOf(i),(n=_e[t+1])&&-1!==t&&s(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),(0,l.useEffect)((function(){return function(){c.current=!0,u()}}),[]),[i,function(e){u(),a.current=(0,d.Z)((function(){s((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){f&&L(g())})),D=(0,x.Z)(_,2),V=D[0],z=D[1],H=(0,l.useRef)();function B(){var e;null===(e=S.current)||void 0===e||e.forceAlign()}function q(e,t){var n=y(t);A!==n&&R(n),"align"===V&&(A!==n?Promise.resolve().then((function(){B()})):z((function(){var e;null===(e=H.current)||void 0===e||e.call(H)})),null===w||void 0===w||w(e,t))}var U=(0,r.Z)({},k(e));function W(){return new Promise((function(e){H.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=U[e];U[e]=function(e,n){return z(),null===t||void 0===t?void 0:t(e,n)}})),l.useEffect((function(){U.motionName||"motion"!==V||z()}),[U.motionName,V]),l.useImperativeHandle(t,(function(){return{forceAlign:B,getElement:function(){return O.current}}}));var $=(0,r.Z)((0,r.Z)({},I),{},{zIndex:u,opacity:"motion"!==V&&"stable"!==V&&n?0:void 0,pointerEvents:"stable"===V?void 0:"none"},c),K=!0;!(null===h||void 0===h?void 0:h.points)||"align"!==V&&"stable"!==V||(K=!1);var G=s;return l.Children.count(s)>1&&(G=l.createElement("div",{className:"".concat(o,"-content")},s)),l.createElement(Z.Z,(0,i.Z)({visible:n,ref:O,leavedClassName:"".concat(o,"-hidden")},U,{onAppearPrepare:W,onEnterPrepare:W,removeOnLeave:p,forceRender:v}),(function(e,t){var n=e.className,i=e.style,c=b()(o,a,A,n);return l.createElement(Fe,{target:m||g,key:"popup",ref:S,monitorWindowResize:!0,disabled:K,align:h,onAlign:q},l.createElement("div",{ref:t,className:c,onMouseEnter:E,onMouseLeave:C,onMouseDownCapture:N,onTouchStartCapture:P,style:(0,r.Z)((0,r.Z)({},i),$)},G))}))}));De.displayName="PopupInner";var Ve=De,ze=l.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,a=e.zIndex,c=e.children,s=e.mobile,u=(s=void 0===s?{}:s).popupClassName,f=s.popupStyle,d=s.popupMotion,p=void 0===d?{}:d,v=s.popupRender,h=l.useRef();l.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var m=(0,r.Z)({zIndex:a},f),g=c;return l.Children.count(c)>1&&(g=l.createElement("div",{className:"".concat(n,"-content")},c)),v&&(g=v(g)),l.createElement(Z.Z,(0,i.Z)({visible:o,ref:h,removeOnLeave:!0},p),(function(e,t){var i=e.className,o=e.style,a=b()(n,u,i);return l.createElement("div",{ref:t,className:a,style:(0,r.Z)((0,r.Z)({},o),m)},g)}))}));ze.displayName="MobilePopupInner";var He=ze,Be=["visible","mobile"],qe=l.forwardRef((function(e,t){var n=e.visible,o=e.mobile,a=(0,E.Z)(e,Be),c=(0,l.useState)(n),s=(0,x.Z)(c,2),u=s[0],f=s[1],d=(0,l.useState)(!1),p=(0,x.Z)(d,2),v=p[0],h=p[1],m=(0,r.Z)((0,r.Z)({},a),{},{visible:u});(0,l.useEffect)((function(){f(n),n&&o&&h((0,C.Z)())}),[n,o]);var g=v?l.createElement(He,(0,i.Z)({},m,{mobile:o,ref:t})):l.createElement(Ve,(0,i.Z)({},m,{ref:t}));return l.createElement("div",null,l.createElement(N,m),g)}));qe.displayName="Popup";var Ue=qe,We=l.createContext(null);function $e(){}function Ke(){return""}function Ge(e){return e?e.ownerDocument:window.document}var Ye=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var Xe=function(e){var t=function(t){(0,s.Z)(g,t);var n=(0,u.Z)(g);function g(e){var t,r;return(0,o.Z)(this,g),(t=n.call(this,e)).popupRef=l.createRef(),t.triggerRef=l.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,p.Z)(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),i=t.getPopupDomNode();(0,p.Z)(r,n)&&!t.isContextMenuOnly()||(0,p.Z)(i,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=(0,v.Z)(t.triggerRef.current);if(n)return n}catch(r){}return f.findDOMNode((0,c.Z)(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,i=r.popupPlacement,o=r.builtinPlacements,a=r.prefixCls,c=r.alignPoint,s=r.getPopupClassNameFromAlign;return i&&o&&n.push(function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(o(e)):(0,i.isFragment)(e)&&e.props?n=n.concat(o(e.props.children,t)):n.push(e))})),n}},64019:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(73935);function i(e,t,n,i){var o=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,o,i),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o)}}}},98924:function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:function(){return r}})},94999:function(e,t,n){"use strict";function r(e,t){return!!e&&e.contains(t)}n.d(t,{Z:function(){return r}})},44958:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(98924),i="rc-util-key";function o(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var i,a=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(a.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce);a.innerHTML=e;var c=o(n),s=c.firstChild;return n.prepend&&c.prepend?c.prepend(a):n.prepend&&s?c.insertBefore(a,s):c.appendChild(a),a}var c=new Map;function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(n);if(!c.has(r)){var s=a("",n),u=s.parentNode;c.set(r,u),u.removeChild(s)}var l=Array.from(c.get(r).children).find((function(e){return"STYLE"===e.tagName&&e[i]===t}));if(l){var f,d,p;if((null===(f=n.csp)||void 0===f?void 0:f.nonce)&&l.nonce!==(null===(d=n.csp)||void 0===d?void 0:d.nonce))l.nonce=null===(p=n.csp)||void 0===p?void 0:p.nonce;return l.innerHTML!==e&&(l.innerHTML=e),l}var v=a(e,n);return v[i]=t,v}},34203:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(73935);function i(e){return e instanceof HTMLElement?e:r.findDOMNode(e)}},5110:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1}},79370:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(98924),i=function(e){if((0,r.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function o(e,t){return Array.isArray(e)||void 0===t?i(e):function(e,t){if(!i(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}},15105:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},59015:function(e,t,n){"use strict";var r=n(67294),i=n(73935),o=n(98924),a=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,a=e.getContainer,c=e.children,s=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var u=(0,r.useRef)(!1);return!u.current&&(0,o.Z)()&&(s.current=a(),u.current=!0),(0,r.useEffect)((function(){null===n||void 0===n||n(e)})),(0,r.useEffect)((function(){return function(){var e,t;null===(e=s.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(s.current)}}),[]),s.current?i.createPortal(c,s.current):null}));t.Z=a},56982:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294);function i(e,t,n){var i=r.useRef({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}},21770:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(97685),i=n(67294);function o(e,t){var n=t||{},o=n.defaultValue,a=n.value,c=n.onChange,s=n.postState,u=i.useState((function(){return void 0!==a?a:void 0!==o?"function"===typeof o?o():o:"function"===typeof e?e():e})),l=(0,r.Z)(u,2),f=l[0],d=l[1],p=void 0!==a?a:f;s&&(p=s(p));var v=i.useRef(c);v.current=c;var h=i.useCallback((function(e){d(e),p!==e&&v.current&&v.current(e,p)}),[p,v]),m=i.useRef(!0);return i.useEffect((function(){m.current?m.current=!1:void 0===a&&d(a)}),[a]),[p,h]}},31131:function(e,t){"use strict";t.Z=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4)))}},98423:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1413);function i(e,t){var n=(0,r.Z)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},75164:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=function(e){return+setTimeout(e,16)},i=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},i=function(e){return window.cancelAnimationFrame(e)});var o=0,a=new Map;function c(e){a.delete(e)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=o+=1;function i(t){if(0===t)c(n),e();else{var o=r((function(){i(t-1)}));a.set(n,o)}}return i(t),n}s.cancel=function(e){var t=a.get(e);return c(t),i(t)}},42550:function(e,t,n){"use strict";n.d(t,{mH:function(){return o},sQ:function(){return a},Yr:function(){return c}});var r=n(71002),i=n(59864);n(56982);function o(e,t){"function"===typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}},91033:function(e,t,n){"use strict";var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),E="undefined"!==typeof WeakMap?new WeakMap:new r,C=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new x(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var Z="undefined"!==typeof o.ResizeObserver?o.ResizeObserver:C;t.Z=Z},96774:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),s=0;s0?2===c.length?typeof c[1]==a?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==a||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):o:this[c[0]]=l?c[1].call(this,l,c[2]):o:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):o):this[c]=l||o;f+=2}},B=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var r=0;r255?z(e,255):e,this},this.setUA(n),this};W.VERSION="1.0.2",W.BROWSER=_([f,v,"major"]),W.CPU=_([h]),W.DEVICE=_([l,p,d,m,g,b,y,w,x]),W.ENGINE=W.OS=_([f,v]),typeof t!==c?(e.exports&&(t=e.exports=W),t.UAParser=W):n.amdO?(r=function(){return W}.call(t,n,t,e))===o||(e.exports=r):typeof i!==c&&(i.UAParser=W);var $=typeof i!==c&&(i.jQuery||i.Zepto);if($&&!$.ua){var K=new W;$.ua=K.getResult(),$.ua.get=function(){return K.getUA()},$.ua.set=function(e){K.setUA(e);var t=K.getResult();for(var n in t)$.ua[n]=t[n]}}}("object"===typeof window?window:this)},30907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},97685:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(83878);var i=n(40181),o=n(25267);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(s){c=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,t)||(0,i.Z)(e,t)||(0,o.Z)()}},84506:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(83878),i=n(59199),o=n(40181),a=n(25267);function c(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},74902:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(30907);var i=n(59199),o=n(40181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},71002:function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],(function(){return t(76363),t(90387)}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{92138:function(e,t,n){"use strict";n.r(t),n.d(t,{blue:function(){return Z},cyan:function(){return C},geekblue:function(){return k},generate:function(){return d},gold:function(){return y},green:function(){return E},grey:function(){return S},lime:function(){return x},magenta:function(){return P},orange:function(){return b},presetDarkPalettes:function(){return h},presetPalettes:function(){return v},presetPrimaryColors:function(){return p},purple:function(){return N},red:function(){return m},volcano:function(){return g},yellow:function(){return w}});var r=n(86500),i=n(1350),o=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,i=e.b,o=(0,r.py)(t,n,i);return{h:360*o.h,s:o.s,v:o.v}}function c(e){var t=e.r,n=e.g,i=e.b;return"#".concat((0,r.vq)(t,n,i,!1))}function s(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function u(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function l(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function f(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,i.uA)(e),d=5;d>0;d-=1){var p=a(r),v=c((0,i.uA)({h:u(p,d,!0),s:l(p,d,!0),v:f(p,d,!0)}));n.push(v)}n.push(c(r));for(var h=1;h<=4;h+=1){var m=a(r),g=c((0,i.uA)({h:u(m,h),s:l(m,h),v:f(m,h)}));n.push(g)}return"dark"===t.theme?o.map((function(e){var r=e.index,o=e.opacity;return c(s((0,i.uA)(t.backgroundColor||"#141414"),(0,i.uA)(n[r]),100*o))})):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},v={},h={};Object.keys(p).forEach((function(e){v[e]=d(p[e]),v[e].primary=v[e][5],h[e]=d(p[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}));var m=v.red,g=v.volcano,y=v.gold,b=v.orange,w=v.yellow,x=v.lime,E=v.green,C=v.cyan,Z=v.blue,k=v.geekblue,N=v.purple,P=v.magenta,S=v.grey},42135:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(1413),i=n(97685),o=n(4942),a=n(91),c=n(67294),s=n(94184),u=n.n(s),l=n(63017),f=n(71002),d=n(92138),p=n(80334),v=n(44958);function h(e){return"object"===(0,f.Z)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"===typeof e.icon)}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}function g(e,t,n){return n?c.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},m(e.attrs)),n),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c.createElement(e.tag,(0,r.Z)({key:t},m(e.attrs)),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function y(e){return(0,d.generate)(e)[0]}function b(e){return e?Array.isArray(e)?e:[e]:[]}var w="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",x=["icon","className","onClick","style","primaryColor","secondaryColor"],E={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,i=e.icon,o=e.className,s=e.onClick,u=e.style,f=e.primaryColor,d=e.secondaryColor,m=(0,a.Z)(e,x),b=E;if(f&&(b={primaryColor:f,secondaryColor:d||y(f)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=(0,c.useContext)(l.Z).csp;(0,c.useEffect)((function(){(0,v.h)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=h(i),n="icon should be icon definiton, but got ".concat(i),(0,p.ZP)(t,"[@ant-design/icons] ".concat(n)),!h(i))return null;var C=i;return C&&"function"===typeof C.icon&&(C=(0,r.Z)((0,r.Z)({},C),{},{icon:C.icon(b.primaryColor,b.secondaryColor)})),g(C.icon,"svg-".concat(C.name),(0,r.Z)({className:o,onClick:s,style:u,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,r.Z)({},E)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;E.primaryColor=t,E.secondaryColor=n||y(t),E.calculated=!!n};var Z=C;function k(e){var t=b(e),n=(0,i.Z)(t,2),r=n[0],o=n[1];return Z.setTwoToneColors({primaryColor:r,secondaryColor:o})}var N=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k("#1890ff");var P=c.forwardRef((function(e,t){var n,s=e.className,f=e.icon,d=e.spin,p=e.rotate,v=e.tabIndex,h=e.onClick,m=e.twoToneColor,g=(0,a.Z)(e,N),y=c.useContext(l.Z).prefixCls,w=void 0===y?"anticon":y,x=u()(w,(n={},(0,o.Z)(n,"".concat(w,"-").concat(f.name),!!f.name),(0,o.Z)(n,"".concat(w,"-spin"),!!d||"loading"===f.name),n),s),E=v;void 0===E&&h&&(E=-1);var C=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,k=b(m),P=(0,i.Z)(k,2),S=P[0],O=P[1];return c.createElement("span",(0,r.Z)((0,r.Z)({role:"img","aria-label":f.name},g),{},{ref:t,tabIndex:E,onClick:h,className:x}),c.createElement(Z,{icon:f,primaryColor:S,secondaryColor:O,style:C}))}));P.displayName="AntdIcon",P.getTwoToneColor=function(){var e=Z.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},P.setTwoToneColor=k;var S=P},63017:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},89739:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CheckCircleFilled";var s=i.forwardRef(c)},8751:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CheckCircleOutlined";var s=i.forwardRef(c)},63606:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CheckOutlined";var s=i.forwardRef(c)},4340:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CloseCircleFilled";var s=i.forwardRef(c)},18429:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CloseCircleOutlined";var s=i.forwardRef(c)},97937:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CloseOutlined";var s=i.forwardRef(c)},57132:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="CopyOutlined";var s=i.forwardRef(c)},80882:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="DownOutlined";var s=i.forwardRef(c)},89705:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="EllipsisOutlined";var s=i.forwardRef(c)},21640:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="ExclamationCircleFilled";var s=i.forwardRef(c)},11475:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="ExclamationCircleOutlined";var s=i.forwardRef(c)},90420:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="EyeInvisibleOutlined";var s=i.forwardRef(c)},99611:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="EyeOutlined";var s=i.forwardRef(c)},78860:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="InfoCircleFilled";var s=i.forwardRef(c)},45605:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="InfoCircleOutlined";var s=i.forwardRef(c)},6171:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="LeftOutlined";var s=i.forwardRef(c)},50888:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="LoadingOutlined";var s=i.forwardRef(c)},18073:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="RightOutlined";var s=i.forwardRef(c)},68795:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(42135),c=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};c.displayName="SearchOutlined";var s=i.forwardRef(c)},87757:function(e,t,n){e.exports=n(35666)},86500:function(e,t,n){"use strict";n.d(t,{rW:function(){return i},lC:function(){return o},ve:function(){return c},py:function(){return s},WE:function(){return u},vq:function(){return l},s:function(){return f},GC:function(){return d},Wl:function(){return p},T6:function(){return v},VD:function(){return h},Yt:function(){return m}});var r=n(90279);function i(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function o(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,c=0,s=(i+o)/2;if(i===o)c=0,a=0;else{var u=i-o;switch(c=s>.5?u/(2-i-o):u/(i+o),i){case e:a=(t-n)/u+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){var i,o,c;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)o=n,c=n,i=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=a(u,s,e+1/3),o=a(u,s,e),c=a(u,s,e-1/3)}return{r:255*i,g:255*o,b:255*c}}function s(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,c=i,s=i-o,u=0===i?0:s/i;if(i===o)a=0;else{switch(i){case e:a=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}},48701:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(e,t,n){"use strict";n.d(t,{uA:function(){return a},uz:function(){return f},ky:function(){return d}});var r=n(86500),i=n(48701),o=n(90279);function a(e){var t={r:0,g:0,b:0},n=1,i=null,a=null,c=null,s=!1,u=!1;return"string"===typeof e&&(e=f(e)),"object"===typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(i=(0,o.JX)(e.s),a=(0,o.JX)(e.v),t=(0,r.WE)(e.h,i,a),s=!0,u="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(i=(0,o.JX)(e.s),c=(0,o.JX)(e.l),t=(0,r.ve)(e.h,i,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,o.Yq)(n),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var c="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",s="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",u="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",l={CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+u),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(i.R[e])e=i.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=l.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=l.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=l.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=l.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=l.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=l.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=l.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=l.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=l.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=l.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}function d(e){return Boolean(l.CSS_UNIT.exec(String(e)))}},10274:function(e,t,n){"use strict";n.d(t,{C:function(){return c},H:function(){return s}});var r=n(86500),i=n(48701),o=n(1350),a=n(90279),c=function(){function e(t,n){var i;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,o.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb("+e+", "+t+", "+n+")":"rgba("+e+", "+t+", "+n+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(i.R);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a1)&&(e=1),e}function a(e){return e<=1?100*Number(e)+"%":e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,{sh:function(){return r},V2:function(){return i},Yq:function(){return o},JX:function(){return a},FZ:function(){return c}})},98787:function(e,t,n){"use strict";n.d(t,{E:function(){return i},Y:function(){return o}});var r=n(93355),i=(0,r.b)("success","processing","error","default","warning"),o=(0,r.b)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},21687:function(e,t,n){"use strict";var r=n(80334);t.Z=function(e,t,n){(0,r.ZP)(e,"[antd: ".concat(t,"] ").concat(n))}},5467:function(e,t,n){"use strict";function r(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n]),t}),{})}n.d(t,{Z:function(){return r}})},81643:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e?"function"===typeof e?e():e:null}},33603:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=function(){return{height:0,opacity:0}},i=function(e){return{height:e.scrollHeight,opacity:1}},o=function(e,t){return!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName},a={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:i,onEnterActive:i,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:r,onAppearEnd:o,onEnterEnd:o,onLeaveEnd:o,motionDeadline:500},c=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};t.Z=a},32637:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(75164),i=0,o={};function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i++,a=t;function c(){(a-=1)<=0?(e(),delete o[n]):o[n]=(0,r.Z)(c)}return o[n]=(0,r.Z)(c),n}a.cancel=function(e){void 0!==e&&(r.Z.cancel(o[e]),delete o[e])},a.ids=o},96159:function(e,t,n){"use strict";n.d(t,{l$:function(){return i},wm:function(){return o},Tm:function(){return a}});var r=n(67294),i=r.isValidElement;function o(e,t,n){return i(e)?r.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t}function a(e,t){return o(e,e,t)}},93355:function(e,t,n){"use strict";n.d(t,{b:function(){return r},a:function(){return i}});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0)){e.extraNode=document.createElement("div");var u=(0,a.Z)(e).extraNode,f=e.context.getPrefixCls;u.className="".concat(f(""),"-click-animating-node");var d=e.getAttributeName();if(t.setAttribute(d,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&m(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){u.style.borderColor=n;var p=(null===(i=t.getRootNode)||void 0===i?void 0:i.call(t))||t.ownerDocument,v=p instanceof Document?p.body:null!==(o=p.firstChild)&&void 0!==o?o:p;r=(0,l.h)("\n [".concat(f(""),"-click-animating-without-extra-node='true']::after, .").concat(f(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:v})}s&&t.appendChild(u),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!h(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),d.Z.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=(0,d.Z)((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!u.isValidElement(r))return r;var i=e.containerRef;return(0,f.Yr)(r)&&(i=(0,f.sQ)(r.ref,e.containerRef)),(0,v.Tm)(r,{ref:i})},e}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,i=this.getAttributeName();e.setAttribute(i,"false"),r&&(r.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return u.createElement(p.C,null,this.renderWave)}}]),n}(u.Component);g.contextType=p.E_},14670:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(87462),i=n(4942),o=n(97685),a=n(67294),c=n(97937),s=n(8751),u=n(11475),l=n(45605),f=n(18429),d=n(89739),p=n(21640),v=n(78860),h=n(4340),m=n(93481),g=n(94184),y=n.n(g),b=n(59844),w=n(5467),x=n(15671),E=n(43144),C=n(60136),Z=n(3289),k=function(e){(0,C.Z)(n,e);var t=(0,Z.Z)(n);function n(){var e;return(0,x.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,E.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){var e=this.props,t=e.message,n=e.description,r=e.children,i=this.state,o=i.error,c=i.info,s=c&&c.componentStack?c.componentStack:null,u="undefined"===typeof t?(o||"").toString():t,l="undefined"===typeof n?s:n;return o?a.createElement(T,{type:"error",message:u,description:a.createElement("pre",null,l)}):r}}]),n}(a.Component),N=n(96159),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(Z,"` at https://ant.design/components/icon")),(0,b.Z)(!(S&&M(v)),"Button","`link` or `text` button can't be a `ghost` button.");var te=$("btn",p),ne=!1!==K,re=x||L,ie=re&&{large:"lg",small:"sm",middle:void 0}[re]||"",oe=V?"loading":Z,ae=u()(te,(n={},(0,i.Z)(n,"".concat(te,"-").concat(v),v),(0,i.Z)(n,"".concat(te,"-").concat(y),"default"!==y&&y),(0,i.Z)(n,"".concat(te,"-").concat(ie),ie),(0,i.Z)(n,"".concat(te,"-icon-only"),!C&&0!==C&&!!oe),(0,i.Z)(n,"".concat(te,"-background-ghost"),S&&!M(v)),(0,i.Z)(n,"".concat(te,"-loading"),V),(0,i.Z)(n,"".concat(te,"-two-chinese-chars"),q&&ne),(0,i.Z)(n,"".concat(te,"-block"),R),(0,i.Z)(n,"".concat(te,"-dangerous"),!!h),(0,i.Z)(n,"".concat(te,"-rtl"),"rtl"===G),n),E),ce=Z&&!V?Z:c.createElement(k,{existIcon:!!Z,prefixCls:te,loading:!!V}),se=C||0===C?function(e,t){var n=!1,r=[];return c.Children.forEach(e,(function(e){var t=(0,a.Z)(e),i="string"===t||"number"===t;if(n&&i){var o=r.length-1,c=r[o];r[o]="".concat(c).concat(e)}else r.push(e);n=i})),c.Children.map(r,(function(e){return T(e,t)}))}(C,Q()&&ne):null,ue=(0,l.Z)(I,["navigate"]);if(void 0!==ue.href)return c.createElement("a",(0,r.Z)({},ue,{className:ae,onClick:ee,ref:Y}),ce,se);var le=c.createElement("button",(0,r.Z)({},I,{type:j,className:ae,onClick:ee,ref:Y}),ce,se);return M(v)?le:c.createElement(g.Z,{disabled:!!V},le)},F=c.forwardRef(R);F.displayName="Button",F.Group=m,F.__ANT_BUTTON=!0;var j=F},71577:function(e,t,n){"use strict";var r=n(8613);t.Z=r.Z},97647:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(67294),i=r.createContext(void 0),o=function(e){var t=e.children,n=e.size;return r.createElement(i.Consumer,null,(function(e){return r.createElement(i.Provider,{value:n||e},t)}))};t.Z=i},59844:function(e,t,n){"use strict";n.d(t,{C:function(){return s},E_:function(){return c},PG:function(){return u}});var r=n(87462),i=n(67294),o=n(62986),a=function(e){return i.createElement(s,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return i.createElement(o.Z,{image:o.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return i.createElement(o.Z,{image:o.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return i.createElement(o.Z,null)}}))},c=i.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:a}),s=c.Consumer;function u(e){return function(t){var n=function(n){return i.createElement(s,null,(function(o){var a=e.prefixCls,c=(0,o.getPrefixCls)(a,n.prefixCls);return i.createElement(t,(0,r.Z)({},o,n,{prefixCls:c}))}))},o=t.constructor,a=o&&o.displayName||t.name||"Component";return n.displayName="withConfigConsumer(".concat(a,")"),n}}},49264:function(e,t,n){"use strict";n.d(t,{nf:function(){return Ce},ZP:function(){return Me},w6:function(){return Pe}});var r=n(87462),i=n(67294),o=n(63017),a=n(79839),c=n(56982),s=n(15671),u=n(43144),l=n(60136),f=n(3289),d=n(30845),p=n(21687),v=n(83008),h=n(67178),m="internalMark",g=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,v.f)(e.locale&&e.locale.Modal),(0,p.Z)(e._ANT_MARK__===m,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),r}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){(0,v.f)(this.props.locale&&this.props.locale.Modal)}},{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&(0,v.f)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){(0,v.f)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children,o=(0,d.default)((function(e){return(0,r.Z)((0,r.Z)({},e),{exist:!0})}))(t);return i.createElement(h.Z.Provider,{value:o},n)}}]),n}(i.Component);g.defaultProps={locale:{}};var y,b=n(23715),w=n(59844),x=n(97647),E=n(4942),C=n(94184),Z=n.n(C),k=n(91127),N=n(50888),P=n(21640),S=n(4340),O=n(89739),M=n(78860),T=n(97685),A=n(51550);var R,F,j,I=3,L=1,_="",D="move-up",V=!1,z=!1;function H(){return L++}function B(e,t){var n=e.prefixCls,r=e.getPopupContainer,i=Pe(),o=i.getPrefixCls,a=i.getRootPrefixCls,c=i.getIconPrefixCls,s=o("message",n||_),u=a(e.rootPrefixCls,s),l=c();if(y)t({prefixCls:s,rootPrefixCls:u,iconPrefixCls:l,instance:y});else{var f={prefixCls:s,transitionName:V?D:"".concat(u,"-").concat(D),style:{top:R},getContainer:F||r,maxCount:j};k.default.newInstance(f,(function(e){y?t({prefixCls:s,rootPrefixCls:u,iconPrefixCls:l,instance:y}):(y=e,t({prefixCls:s,rootPrefixCls:u,iconPrefixCls:l,instance:e}))}))}}var q={info:M.Z,success:O.Z,error:S.Z,warning:P.Z,loading:N.Z};function U(e,t,n){var r,o=void 0!==e.duration?e.duration:I,a=q[e.type],c=Z()("".concat(t,"-custom-content"),(r={},(0,E.Z)(r,"".concat(t,"-").concat(e.type),e.type),(0,E.Z)(r,"".concat(t,"-rtl"),!0===z),r));return{key:e.key,duration:o,style:e.style||{},className:e.className,content:i.createElement(Me,{iconPrefixCls:n},i.createElement("div",{className:c},e.icon||a&&i.createElement(a,null),i.createElement("span",null,e.content))),onClose:e.onClose,onClick:e.onClick}}var W={open:function(e){var t=e.key||H(),n=new Promise((function(n){var i=function(){return"function"===typeof e.onClose&&e.onClose(),n(!0)};B(e,(function(n){var o=n.prefixCls,a=n.iconPrefixCls;n.instance.notice(U((0,r.Z)((0,r.Z)({},e),{key:t,onClose:i}),o,a))}))})),i=function(){y&&y.removeNotice(t)};return i.then=function(e,t){return n.then(e,t)},i.promise=n,i},config:function(e){void 0!==e.top&&(R=e.top,y=null),void 0!==e.duration&&(I=e.duration),void 0!==e.prefixCls&&(_=e.prefixCls),void 0!==e.getContainer&&(F=e.getContainer),void 0!==e.transitionName&&(D=e.transitionName,y=null,V=!0),void 0!==e.maxCount&&(j=e.maxCount,y=null),void 0!==e.rtl&&(z=e.rtl)},destroy:function(e){if(y)if(e){(0,y.removeNotice)(e)}else{var t=y.destroy;t(),y=null}}};function $(e,t){e[t]=function(n,i,o){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open((0,r.Z)((0,r.Z)({},n),{type:t})):("function"===typeof i&&(o=i,i=void 0),e.open({content:n,duration:i,type:t,onClose:o}))}}["success","info","warning","error","loading"].forEach((function(e){return $(W,e)})),W.warn=W.warning,W.useMessage=function(e,t){return function(){var n,o,a=null,c={add:function(e,t){null===a||void 0===a||a.component.add(e,t)}},s=(0,A.Z)(c),u=(0,T.Z)(s,2),l=u[0],f=u[1];var d=i.useRef({});return d.current.open=function(i){var c=i.prefixCls,s=n("message",c),u=n(),f=i.key||H(),d=new Promise((function(n){var c=function(){return"function"===typeof i.onClose&&i.onClose(),n(!0)};e((0,r.Z)((0,r.Z)({},i),{prefixCls:s,rootPrefixCls:u,getPopupContainer:o}),(function(e){var n=e.prefixCls,o=e.instance;a=o,l(t((0,r.Z)((0,r.Z)({},i),{key:f,onClose:c}),n))}))})),p=function(){a&&a.removeNotice(f)};return p.then=function(e,t){return d.then(e,t)},p.promise=d,p},["success","info","warning","error","loading"].forEach((function(e){return $(d.current,e)})),[d.current,i.createElement(w.C,{key:"holder"},(function(e){return n=e.getPrefixCls,o=e.getPopupContainer,f}))]}}(B,U);var K=W,G=(n(87757),n(97937)),Y=n(8751),X=n(18429),Q=n(11475),J=n(45605);var ee,te,ne,re={},ie=4.5,oe=24,ae=24,ce="",se="topRight",ue=!1;function le(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ae;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function fe(e,t){var n=e.placement,r=void 0===n?se:n,i=e.top,o=e.bottom,a=e.getContainer,c=void 0===a?ee:a,s=e.prefixCls,u=Pe(),l=u.getPrefixCls,f=u.getIconPrefixCls,d=l("notification",s||ce),p=f(),v="".concat(d,"-").concat(r),h=re[v];if(h)Promise.resolve(h).then((function(e){t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:p,instance:e})}));else{var m=Z()("".concat(d,"-").concat(r),(0,E.Z)({},"".concat(d,"-rtl"),!0===ue));re[v]=new Promise((function(e){k.default.newInstance({prefixCls:d,className:m,style:le(r,i,o),getContainer:c,maxCount:ne},(function(n){e(n),t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:p,instance:n})}))}))}}var de={success:Y.Z,info:J.Z,error:X.Z,warning:Q.Z};function pe(e,t,n){var r=e.duration,o=e.icon,a=e.type,c=e.description,s=e.message,u=e.btn,l=e.onClose,f=e.onClick,d=e.key,p=e.style,v=e.className,h=e.closeIcon,m=void 0===h?te:h,g=void 0===r?ie:r,y=null;o?y=i.createElement("span",{className:"".concat(t,"-icon")},e.icon):a&&(y=i.createElement(de[a]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(a)}));var b=i.createElement("span",{className:"".concat(t,"-close-x")},m||i.createElement(G.Z,{className:"".concat(t,"-close-icon")})),w=!c&&y?i.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:i.createElement(Me,{iconPrefixCls:n},i.createElement("div",{className:y?"".concat(t,"-with-icon"):"",role:"alert"},y,i.createElement("div",{className:"".concat(t,"-message")},w,s),i.createElement("div",{className:"".concat(t,"-description")},c),u?i.createElement("span",{className:"".concat(t,"-btn")},u):null)),duration:g,closable:!0,closeIcon:b,onClose:l,onClick:f,key:d,style:p||{},className:Z()(v,(0,E.Z)({},"".concat(t,"-").concat(a),!!a))}}var ve={open:function(e){fe(e,(function(t){var n=t.prefixCls,r=t.iconPrefixCls;t.instance.notice(pe(e,n,r))}))},close:function(e){Object.keys(re).forEach((function(t){return Promise.resolve(re[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,i=e.top,o=e.getContainer,a=e.closeIcon,c=e.prefixCls;void 0!==c&&(ce=c),void 0!==t&&(ie=t),void 0!==n?se=n:e.rtl&&(se="topLeft"),void 0!==r&&(ae=r),void 0!==i&&(oe=i),void 0!==o&&(ee=o),void 0!==a&&(te=a),void 0!==e.rtl&&(ue=e.rtl),void 0!==e.maxCount&&(ne=e.maxCount)},destroy:function(){Object.keys(re).forEach((function(e){Promise.resolve(re[e]).then((function(e){e.destroy()})),delete re[e]}))}};["success","info","warning","error"].forEach((function(e){ve[e]=function(t){return ve.open((0,r.Z)((0,r.Z)({},t),{type:e}))}})),ve.warn=ve.warning,ve.useNotification=function(e,t){return function(){var n,o=null,a={add:function(e,t){null===o||void 0===o||o.component.add(e,t)}},c=(0,A.Z)(a),s=(0,T.Z)(c,2),u=s[0],l=s[1];var f=i.useRef({});return f.current.open=function(i){var a=i.prefixCls,c=n("notification",a);e((0,r.Z)((0,r.Z)({},i),{prefixCls:c}),(function(e){var n=e.prefixCls,r=e.instance;o=r,u(t(i,n))}))},["success","info","warning","error"].forEach((function(e){f.current[e]=function(t){return f.current.open((0,r.Z)((0,r.Z)({},t),{type:e}))}})),[f.current,i.createElement(w.C,{key:"holder"},(function(e){return n=e.getPrefixCls,l}))]}}(fe,pe);var he=ve,me=n(44958),ge=n(10274),ye=n(92138),be="-ant-".concat(Date.now(),"-").concat(Math.random());var we,xe,Ee=n(6213),Ce=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"],Ze=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"];function ke(){return we||"ant"}function Ne(){return xe||"anticon"}var Pe=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(ke(),"-").concat(e):ke())},getIconPrefixCls:Ne,getRootPrefixCls:function(e,t){return e||(we||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):ke()))}}},Se=function(e){var t,n,s=e.children,u=e.csp,l=e.autoInsertSpaceInButton,f=e.form,d=e.locale,p=e.componentSize,v=e.direction,h=e.space,y=e.virtual,b=e.dropdownMatchSelectWidth,E=e.legacyLocale,C=e.parentContext,Z=e.iconPrefixCls,k=i.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var i=r||C.getPrefixCls("");return t?"".concat(i,"-").concat(t):i}),[C.getPrefixCls,e.prefixCls]),N=(0,r.Z)((0,r.Z)({},C),{csp:u,autoInsertSpaceInButton:l,locale:d||E,direction:v,space:h,virtual:y,dropdownMatchSelectWidth:b,getPrefixCls:k});Ze.forEach((function(t){var n=e[t];n&&(N[t]=n)}));var P=(0,c.Z)((function(){return N}),N,(function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((function(n){return e[n]!==t[n]}))})),S=i.useMemo((function(){return{prefixCls:Z,csp:u}}),[Z]),O=s,M={};return d&&(M=(null===(t=d.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=Ee.Z.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),f&&f.validateMessages&&(M=(0,r.Z)((0,r.Z)({},M),f.validateMessages)),Object.keys(M).length>0&&(O=i.createElement(a.FormProvider,{validateMessages:M},s)),d&&(O=i.createElement(g,{locale:d,_ANT_MARK__:m},O)),Z&&(O=i.createElement(o.Z.Provider,{value:S},O)),p&&(O=i.createElement(x.q,{size:p},O)),i.createElement(w.E_.Provider,{value:P},O)},Oe=function(e){return i.useEffect((function(){e.direction&&(K.config({rtl:"rtl"===e.direction}),he.config({rtl:"rtl"===e.direction}))}),[e.direction]),i.createElement(b.Z,null,(function(t,n,o){return i.createElement(w.C,null,(function(t){return i.createElement(Se,(0,r.Z)({parentContext:t,legacyLocale:o},e))}))}))};Oe.ConfigContext=w.E_,Oe.SizeContext=x.Z,Oe.config=function(e){var t=e.prefixCls,n=e.iconPrefixCls,r=e.theme;void 0!==t&&(we=t),void 0!==n&&(xe=n),r&&function(e,t){var n={},r=function(e,t){var n=e.clone();return(n=(null===t||void 0===t?void 0:t(n))||n).toRgbString()},i=function(e,t){var i=new ge.C(e),o=(0,ye.generate)(i.toRgbString());n["".concat(t,"-color")]=r(i),n["".concat(t,"-color-disabled")]=o[1],n["".concat(t,"-color-hover")]=o[4],n["".concat(t,"-color-active")]=o[7],n["".concat(t,"-color-outline")]=i.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=o[1],n["".concat(t,"-color-deprecated-border")]=o[3]};if(t.primaryColor){i(t.primaryColor,"primary");var o=new ge.C(t.primaryColor),a=(0,ye.generate)(o.toRgbString());a.forEach((function(e,t){n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(o,(function(e){return e.lighten(35)})),n["primary-color-deprecated-l-20"]=r(o,(function(e){return e.lighten(20)})),n["primary-color-deprecated-t-20"]=r(o,(function(e){return e.tint(20)})),n["primary-color-deprecated-t-50"]=r(o,(function(e){return e.tint(50)})),n["primary-color-deprecated-f-12"]=r(o,(function(e){return e.setAlpha(.12*e.getAlpha())}));var c=new ge.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(c,(function(e){return e.setAlpha(.3*e.getAlpha())})),n["primary-color-active-deprecated-d-02"]=r(c,(function(e){return e.darken(2)}))}t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info");var s=Object.keys(n).map((function(t){return"--".concat(e,"-").concat(t,": ").concat(n[t],";")}));(0,me.h)("\n :root {\n ".concat(s.join("\n"),"\n }\n "),"".concat(be,"-dynamic-theme"))}(ke(),r)};var Me=Oe},62986:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(87462),i=n(4942),o=n(67294),a=n(94184),c=n.n(a),s=n(59844),u=n(23715),l=function(){var e=(0,o.useContext(s.E_).getPrefixCls)("empty-img-default");return o.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),o.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),o.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),o.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),o.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),o.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},f=function(){var e=(0,o.useContext(s.E_).getPrefixCls)("empty-img-simple");return o.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))},d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i3&&void 0!==arguments[3]?arguments[3]:{},c=a.props,s=c.className,l=c.addonBefore,p=c.addonAfter,v=c.size,h=c.disabled,m=c.htmlSize,y=(0,d.Z)(a.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered","htmlSize"]);return u.createElement("input",(0,r.Z)({autoComplete:o.autoComplete},y,{onChange:a.handleChange,onFocus:a.onFocus,onBlur:a.onBlur,onKeyDown:a.handleKeyDown,className:f()((0,g.X)(e,n,v||t,h,a.direction),(0,i.Z)({},s,s&&!l&&!p)),ref:a.saveInput,size:m}))},a.clearPasswordValueAttribute=function(){a.removePasswordTimeout=setTimeout((function(){a.input&&"password"===a.input.getAttribute("type")&&a.input.hasAttribute("value")&&a.input.removeAttribute("value")}))},a.handleChange=function(e){a.setValue(e.target.value,a.clearPasswordValueAttribute),b(a.input,e,a.props.onChange)},a.handleKeyDown=function(e){var t=a.props,n=t.onPressEnter,r=t.onKeyDown;n&&13===e.keyCode&&n(e),null===r||void 0===r||r(e)},a.renderComponent=function(e){var t=e.getPrefixCls,n=e.direction,i=e.input,o=a.state,c=o.value,s=o.focused,l=a.props,f=l.prefixCls,d=l.bordered,v=void 0===d||d,m=t("input",f);return a.direction=n,u.createElement(h.Z.Consumer,null,(function(e){return u.createElement(p.Z,(0,r.Z)({size:e},a.props,{prefixCls:m,inputType:"input",value:y(c),element:a.renderInput(m,e,v,i),handleReset:a.handleReset,ref:a.saveClearableInput,direction:n,focused:s,triggerFocus:a.focus,bordered:v}))}))};var c="undefined"===typeof e.value?e.defaultValue:e.value;return a.state={value:c,focused:!1,prevValue:e.value},a}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return(0,g.b)(e)!==(0,g.b)(this.props)&&(0,m.Z)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(e,t,n){this.input.setSelectionRange(e,t,n)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value?this.setState({value:e},t):null===t||void 0===t||t()}},{key:"render",value:function(){return u.createElement(v.C,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),e.disabled&&(r.focused=!1),r}}]),n}(u.Component);x.defaultProps={type:"text"},t.ZP=x},96330:function(e,t,n){"use strict";var r=n(71002),i=n(87462),o=n(4942),a=n(97685),c=n(74902),s=n(67294),u=n(57239),l=n(98423),f=n(94184),d=n.n(f),p=n(21770),v=n(69430),h=n(59844),m=n(77749),g=n(97647),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0,K=R("input",f);s.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=I.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;(0,m.nH)(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=I.current)||void 0===e?void 0:e.blur()}}}));var G=s.createElement(u.default,(0,i.Z)({},(0,l.Z)(T,["allowClear"]),{className:d()((n={},(0,o.Z)(n,"".concat(K,"-borderless"),!x),(0,o.Z)(n,k,k&&!C),(0,o.Z)(n,"".concat(K,"-sm"),"small"===j||"small"===P),(0,o.Z)(n,"".concat(K,"-lg"),"large"===j||"large"===P),n)),style:C?void 0:N,prefixCls:K,onCompositionStart:function(e){z(!0),null===S||void 0===S||S(e)},onChange:function(e){var t=e.target.value;!V&&$&&(t=b(t,Z)),W(t),(0,m.rJ)(e.currentTarget,e,M,t)},onCompositionEnd:function(e){z(!1);var t=e.currentTarget.value;$&&(t=b(t,Z)),t!==q&&(W(t),(0,m.rJ)(e.currentTarget,e,M,t)),null===O||void 0===O||O(e)},ref:I})),Y=(0,m.D7)(q);V||!$||null!==T.value&&void 0!==T.value||(Y=b(Y,Z));var X=s.createElement(v.Z,(0,i.Z)({},T,{prefixCls:K,direction:F,inputType:"text",value:Y,element:G,handleReset:function(e){var t,n;W("",(function(){var e;null===(e=I.current)||void 0===e||e.focus()})),(0,m.rJ)(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e,M)},ref:L,bordered:x,style:C?void 0:N}));if(C){var Q=(0,c.Z)(Y).length,J="";return J="object"===(0,r.Z)(C)?C.formatter({count:Q,maxLength:Z}):"".concat(Q).concat($?" / ".concat(Z):""),s.createElement("div",{className:d()("".concat(K,"-textarea"),(0,o.Z)({},"".concat(K,"-textarea-rtl"),"rtl"===F),"".concat(K,"-textarea-show-count"),k),style:N,"data-count":J},X)}return X}));t.Z=w},69677:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(77749),i=n(4942),o=n(67294),a=n(94184),c=n.n(a),s=n(59844),u=function(e){return o.createElement(s.C,null,(function(t){var n,r=t.getPrefixCls,a=t.direction,s=e.prefixCls,u=e.className,l=void 0===u?"":u,f=r("input-group",s),d=c()(f,(n={},(0,i.Z)(n,"".concat(f,"-lg"),"large"===e.size),(0,i.Z)(n,"".concat(f,"-sm"),"small"===e.size),(0,i.Z)(n,"".concat(f,"-compact"),e.compact),(0,i.Z)(n,"".concat(f,"-rtl"),"rtl"===a),n),l);return o.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))},l=n(87462),f=n(42550),d=n(68795),p=n(71577),v=n(97647),h=n(96159),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}(),Z=a.forwardRef((function(e,t){var n=e.prefixCls,c=e.className,l=e.trigger,f=e.children,d=e.defaultCollapsed,p=void 0!==d&&d,Z=e.theme,k=void 0===Z?"dark":Z,N=e.style,P=void 0===N?{}:N,S=e.collapsible,O=void 0!==S&&S,M=e.reverseArrow,T=void 0!==M&&M,A=e.width,R=void 0===A?200:A,F=e.collapsedWidth,j=void 0===F?80:F,I=e.zeroWidthTriggerStyle,L=e.breakpoint,_=e.onCollapse,D=e.onBreakpoint,V=w(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),z=(0,a.useContext)(g.Gs).siderHook,H=(0,a.useState)("collapsed"in V?V.collapsed:p),B=(0,o.Z)(H,2),q=B[0],U=B[1],W=(0,a.useState)(!1),$=(0,o.Z)(W,2),K=$[0],G=$[1];(0,a.useEffect)((function(){"collapsed"in V&&U(V.collapsed)}),[V.collapsed]);var Y=function(e,t){"collapsed"in V||U(e),null===_||void 0===_||_(e,t)},X=(0,a.useRef)();X.current=function(e){G(e.matches),null===D||void 0===D||D(e.matches),q!==e.matches&&Y(e.matches,"responsive")},(0,a.useEffect)((function(){function e(e){return X.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&L&&L in x){t=n("(max-width: ".concat(x[L],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[]),(0,a.useEffect)((function(){var e=C("ant-sider-");return z.addSider(e),function(){return z.removeSider(e)}}),[]);var Q=function(){Y(!q,"clickTrigger")},J=(0,a.useContext)(y.E_).getPrefixCls,ee=a.useMemo((function(){return{siderCollapsed:q}}),[q]);return a.createElement(E.Provider,{value:ee},function(){var e,o=J("layout-sider",n),d=(0,u.Z)(V,["collapsed"]),p=q?j:R,g=b(p)?"".concat(p,"px"):String(p),y=0===parseFloat(String(j||0))?a.createElement("span",{onClick:Q,className:s()("".concat(o,"-zero-width-trigger"),"".concat(o,"-zero-width-trigger-").concat(T?"right":"left")),style:I},l||a.createElement(v,null)):null,w={expanded:T?a.createElement(h.Z,null):a.createElement(m.Z,null),collapsed:T?a.createElement(m.Z,null):a.createElement(h.Z,null)}[q?"collapsed":"expanded"],x=null!==l?y||a.createElement("div",{className:"".concat(o,"-trigger"),onClick:Q,style:{width:g}},l||w):null,E=(0,i.Z)((0,i.Z)({},P),{flex:"0 0 ".concat(g),maxWidth:g,minWidth:g,width:g}),C=s()(o,"".concat(o,"-").concat(k),(e={},(0,r.Z)(e,"".concat(o,"-collapsed"),!!q),(0,r.Z)(e,"".concat(o,"-has-trigger"),O&&null!==l&&!y),(0,r.Z)(e,"".concat(o,"-below"),!!K),(0,r.Z)(e,"".concat(o,"-zero-width"),0===parseFloat(g)),e),c);return a.createElement("aside",(0,i.Z)({className:C},d,{style:E,ref:t}),a.createElement("div",{className:"".concat(o,"-children")},f),O||K&&y?x:null)}())}));Z.displayName="Sider";var k=Z},2897:function(e,t,n){"use strict";n.d(t,{Gs:function(){return d},h4:function(){return m},$_:function(){return g},VY:function(){return y}});var r=n(74902),i=n(4942),o=n(97685),a=n(87462),c=n(67294),s=n(94184),u=n.n(s),l=n(59844),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0),(0,i.Z)(t,"".concat(m,"-rtl"),"rtl"===n),t),g),C=c.useMemo((function(){return{siderHook:{addSider:function(e){h((function(t){return[].concat((0,r.Z)(t),[e])}))},removeSider:function(e){h((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return c.createElement(d.Provider,{value:C},c.createElement(w,(0,a.Z)({className:E},x),y))})),m=p({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(v),g=p({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(v),y=p({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(v);t.ZP=h},23715:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(87462),i=n(15671),o=n(43144),a=n(60136),c=n(3289),s=n(67294),u=n(6213).Z,l=n(67178),f=function(e){(0,a.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||u[null!==t&&void 0!==t?t:"global"],i=this.context,o=t&&i?i[t]:{};return(0,r.Z)((0,r.Z)({},n instanceof Function?n():n),o||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?u.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(s.Component);f.defaultProps={componentName:"global"},f.contextType=l.Z},67178:function(e,t,n){"use strict";var r=(0,n(67294).createContext)(void 0);t.Z=r},6213:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(62906),i=n(87462),o={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},c={lang:(0,i.Z)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:(0,i.Z)({},a)},s=c,u="${label} is not a valid ${type}",l={locale:"en",Pagination:r.Z,DatePicker:c,TimePicker:a,Calendar:s,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}}},68157:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(87462),i=n(15671),o=n(43144),a=n(60136),c=n(3289),s=n(67294),u=n(30605),l=n(94184),f=n.n(l),d=n(98423),p=n(89705),v=n(30845),h=(0,s.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),m=n(96159);var g=function(e){var t,n,i=e.popupClassName,o=e.icon,a=e.title,c=s.useContext(h),l=c.prefixCls,p=c.inlineCollapsed,v=c.antdMenuTheme,g=(0,u.Xl)();if(o){var y=(0,m.l$)(a)&&"span"===a.type;n=s.createElement(s.Fragment,null,(0,m.Tm)(o,{className:f()((0,m.l$)(o)?null===(t=o.props)||void 0===t?void 0:t.className:"","".concat(l,"-item-icon"))}),y?a:s.createElement("span",{className:"".concat(l,"-title-content")},a))}else n=p&&!g.length&&a&&"string"===typeof a?s.createElement("div",{className:"".concat(l,"-inline-collapsed-noicon")},a.charAt(0)):s.createElement("span",{className:"".concat(l,"-title-content")},a);var b=s.useMemo((function(){return(0,r.Z)((0,r.Z)({},c),{firstLevel:!1})}),[c]);return s.createElement(h.Provider,{value:b},s.createElement(u.Wd,(0,r.Z)({},(0,d.Z)(e,["icon"]),{title:n,popupClassName:f()(l,"".concat(l,"-").concat(v),i)})))},y=n(4942),b=n(50344),w=n(56266),x=n(7293),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0||r.indexOf("Bottom")>=0?o.top="".concat(i.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left="".concat(i.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(o.left," ").concat(o.top)}},overlayInnerStyle:W,arrowContent:a.createElement("span",{className:"".concat(_,"-arrow-content"),style:z}),motion:{motionName:(0,b.m)(D,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),V?(0,m.Tm)(H,{className:q}):H)}));C.displayName="Tooltip",C.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Z=C},17256:function(e,t,n){"use strict";n.d(t,{Z:function(){return me}});var r=n(87462),i=n(4942),o=n(67294),a=n(94184),c=n.n(a),s=n(42550),u=n(59844),l=n(21687),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=Math.floor((n+r)/2),a=t.slice(0,o);if(e.textContent=a,n>=r-1)for(var c=r;c>=n;c-=1){var s=t.slice(0,c);if(e.textContent=s,d()||!s)return c===t.length?{finished:!1,reactNode:t}:{finished:!0,reactNode:s}}return d()?b(e,t,o,r,o):b(e,t,n,o,i)}function w(e,t){var n=e.nodeType;if(1===n)return y(e),d()?{finished:!1,reactNode:f[t]}:(m.removeChild(e),{finished:!0,reactNode:null});if(3===n){var r=e.textContent||"",i=document.createTextNode(r);return y(i),b(i,r)}return{finished:!1,reactNode:null}}return m.appendChild(g),v.forEach((function(e){U.appendChild(e)})),p.some((function(e,t){var n=w(e,t),r=n.finished,i=n.reactNode;return i&&h.push(i),r})),{content:h,text:U.innerHTML,ellipsis:!0}},J=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1&&P,M=f;if(E&&a&&!s&&!P){var T=b.title,j=T||"";T||"string"!==typeof f&&"number"!==typeof f||(j=String(f)),j=j.slice(String(n||"").length),M=o.createElement(o.Fragment,null,n,o.createElement("span",{title:j,"aria-hidden":"true"},"..."),C),Z&&(M=o.createElement(z.Z,{title:!0===Z?f:Z},o.createElement("span",null,M)))}else M=o.createElement(o.Fragment,null,f,C);return M=function(e,t){var n=e.mark,r=e.code,i=e.underline,a=e.delete,c=e.strong,s=e.keyboard,u=e.italic,l=t;function f(e,t){e&&(l=o.createElement(t,{},l))}return f(c,"strong"),f(i,"u"),f(a,"del"),f(r,"code"),f(n,"mark"),f(s,"kbd"),f(u,"i"),l}(this.props,M),o.createElement(F.Z,{componentName:"Text"},(function(t){var n,s=t.edit,u=t.copy,f=t.copied,m=t.expand;return e.editStr=s,e.copyStr=u,e.copiedStr=f,e.expandStr=m,o.createElement(A.default,{onResize:e.resizeOnNextFrame,disabled:P},o.createElement(v,(0,r.Z)({className:c()((n={},(0,i.Z)(n,"".concat(k,"-").concat(p),p),(0,i.Z)(n,"".concat(k,"-disabled"),h),(0,i.Z)(n,"".concat(k,"-ellipsis"),E),(0,i.Z)(n,"".concat(k,"-single-line"),1===E&&!a),(0,i.Z)(n,"".concat(k,"-ellipsis-single-line"),S),(0,i.Z)(n,"".concat(k,"-ellipsis-multiple-line"),O),n),d),style:(0,r.Z)((0,r.Z)({},y),{WebkitLineClamp:O?E:void 0}),component:l,ref:e.contentRef,direction:w},N),M,e.renderOperations()))}))}},{key:"render",value:function(){return this.getEditable().editing?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.children,n=e.editable;return(0,l.Z)(!n||"string"===typeof t,"Typography","When `editable` is enabled, the `children` should use string."),{}}}]),n}(o.Component);re.contextType=u.E_,re.defaultProps={children:""};var ie=re,oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},40364:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19013),i=n(13882);function o(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}var a={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function c(e){return e?a[e]:a.trunc}function s(e,t,n){(0,i.Z)(2,arguments);var r=o(e,t)/1e3;return c(null===n||void 0===n?void 0:n.roundingMethod)(r)}},19013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(13882);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},30845:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var b="textarea",w="url";function x(e){var t=(0,u.useState)(null),n=t[0],r=t[1],c=(0,u.useState)(!1),m=c[0],b=c[1],w=((0,u.useContext)(d.aC)||{}).setFieldInConfigState,x=null,E=e.apiPath,C=e.configPath,Z=void 0===C?"":C,k=e.initialValue,N=e.useTrim,P=e.useTrimLead,S=y(e,["apiPath","configPath","initialValue","useTrim","useTrimLead"]),O=S.fieldName,M=S.required,T=S.tip,A=S.status,R=S.value,F=S.onChange,j=S.onSubmit,I=function(){r(null),b(!1),clearTimeout(x),x=null};(0,u.useEffect)((function(){M&&(""===R||null===R)||R===k?b(!1):(I(),b(!0))}),[R]);var L,_=(L=i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(M&&""!==R||R!==k)){e.next=6;break}return r((0,f.kg)(f.Jk)),e.next=4,(0,l.Si)({apiPath:E,data:{value:R},onSuccess:function(){w({fieldName:O,value:R,path:Z}),r((0,f.kg)(f.zv))},onError:function(e){r((0,f.kg)(f.Un,"There was an error: ".concat(e)))}});case 4:x=setTimeout(I,l.sI),j&&j();case 6:case"end":return e.stop()}}),e)})),function(){var e=this,t=arguments;return new Promise((function(n,r){var i=L.apply(e,t);function o(e){h(i,n,r,o,a,"next",e)}function a(e){h(i,n,r,o,a,"throw",e)}o(void 0)}))}),D=s()({"textfield-with-submit-container":!0,submittable:m});return(0,o.jsxs)("div",{className:D,children:[(0,o.jsx)("div",{className:"textfield-component",children:(0,o.jsx)(v.ZP,g({},S,{onSubmit:null,onBlur:function(e){var t=e.value;F&&M&&""===t&&F({fieldName:O,value:k})},onChange:function(e){var t=e.fieldName,n=e.value;if(F){var r=n;N?r=n.trim():P&&(r=n.replace(/^\s+/g,"")),F({fieldName:t,value:r})}}}))}),(0,o.jsxs)("div",{className:"formfield-container lower-container",children:[(0,o.jsx)("p",{className:"label-spacer"}),(0,o.jsxs)("div",{className:"lower-content",children:[(0,o.jsx)("div",{className:"field-tip",children:T}),(0,o.jsx)(p.Z,{status:A||n}),(0,o.jsx)("div",{className:"update-button-container",children:(0,o.jsx)(a.Z,{type:"primary",size:"small",className:"submit-button",onClick:_,disabled:!m,children:"Update"})})]})]})]})}x.defaultProps={configPath:"",initialValue:""}},48419:function(e,t,n){"use strict";n.d(t,{mG:function(){return ee},A8:function(){return J},Sk:function(){return te},xA:function(){return ne},ZP:function(){return re}});var r=n(85893),i=n(67294),o=n(94184),a=n.n(o),c=n(87462),s=n(4942),u=n(71002),l=n(97685),f=n(91),d=n(15105),p=n(42550),v=n(15671),h=n(43144);function m(){return"function"===typeof BigInt}function g(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";"0"===o&&"0"===a&&(n=!1);var c=n?"-":"";return{negative:n,negativeStr:c,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(c).concat(r)}}function y(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function b(e){var t=String(e);if(y(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return(null===r||void 0===r?void 0:r[1])&&(n+=r[1].length),n}return t.includes(".")&&x(t)?t.length-t.indexOf(".")-1:0}function w(e){var t=String(e);if(y(e)){if(e>Number.MAX_SAFE_INTEGER)return String(m()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":w(this.number):this.origin}}]),e}(),C=function(){function e(t){if((0,v.Z)(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(y(n)&&(n=Number(n)),x(n="string"===typeof n?n:w(n))){var r=g(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}else this.nan=!0;else this.empty=!0}return(0,h.Z)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=g((this.alignDecimal(r)+n.alignDecimal(r)).toString()),o=i.negativeStr,a=i.trimStr,c="".concat(o).concat(a.padStart(r+1,"0"));return new e("".concat(c.slice(0,-r),".").concat(c.slice(-r)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":g("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Z(e){return m()?new C(e):new E(e)}function k(e,t,n){if(""===e)return"";var r=g(e),i=r.negativeStr,o=r.integerStr,a=r.decimalStr,c="".concat(t).concat(a),s="".concat(i).concat(o);if(n>=0){var u=Number(a[n]);return u>=5?k(Z(e).add("0.".concat("0".repeat(n)).concat(10-u)).toString(),t,n):0===n?s:"".concat(s).concat(t).concat(a.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var N=n(31131);function P(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,u=e.downDisabled,l=e.onStep,f=i.useRef(),d=i.useRef();d.current=l;var p=function(e,t){e.preventDefault(),d.current(t),f.current=setTimeout((function e(){d.current(t),f.current=setTimeout(e,200)}),600)},v=function(){clearTimeout(f.current)};if(i.useEffect((function(){return v}),[]),(0,N.Z)())return null;var h="".concat(t,"-handler"),m=a()(h,"".concat(h,"-up"),(0,s.Z)({},"".concat(h,"-up-disabled"),o)),g=a()(h,"".concat(h,"-down"),(0,s.Z)({},"".concat(h,"-down-disabled"),u)),y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return i.createElement("div",{className:"".concat(h,"-wrap")},i.createElement("span",(0,c.Z)({},y,{onMouseDown:function(e){p(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",(0,c.Z)({},y,{onMouseDown:function(e){p(e,!1)},"aria-label":"Decrease Value","aria-disabled":u,className:g}),r||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var S=n(80334);var O=(0,n(98924).Z)()?i.useLayoutEffect:i.useEffect;function M(e,t){var n=i.useRef(!1);O((function(){if(n.current)return e();n.current=!0}),t)}var T=n(75164),A=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],R=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},F=function(e){var t=Z(e);return t.isInvalidate()?null:t},j=i.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-input-number":r,v=e.className,h=e.style,m=e.min,g=e.max,y=e.step,E=void 0===y?1:y,C=e.defaultValue,N=e.value,O=e.disabled,j=e.readOnly,I=e.upHandler,L=e.downHandler,_=e.keyboard,D=e.controls,V=void 0===D||D,z=e.stringMode,H=e.parser,B=e.formatter,q=e.precision,U=e.decimalSeparator,W=e.onChange,$=e.onInput,K=e.onPressEnter,G=e.onStep,Y=(0,f.Z)(e,A),X="".concat(o,"-input"),Q=i.useRef(null),J=i.useState(!1),ee=(0,l.Z)(J,2),te=ee[0],ne=ee[1],re=i.useRef(!1),ie=i.useRef(!1),oe=i.useState((function(){return Z(null!==N&&void 0!==N?N:C)})),ae=(0,l.Z)(oe,2),ce=ae[0],se=ae[1];var ue=i.useCallback((function(e,t){if(!t)return q>=0?q:Math.max(b(e),b(E))}),[q,E]),le=i.useCallback((function(e){var t=String(e);if(H)return H(t);var n=t;return U&&(n=n.replace(U,".")),n.replace(/[^\w.-]+/g,"")}),[H,U]),fe=i.useRef(""),de=i.useCallback((function(e,t){if(B)return B(e,{userTyping:t,input:String(fe.current)});var n="number"===typeof e?w(e):e;if(!t){var r=ue(n,t);if(x(n)&&(U||r>=0))n=k(n,U||".",r)}return n}),[B,ue,U]),pe=i.useState((function(){var e=null!==C&&void 0!==C?C:N;return ce.isInvalidate()&&["string","number"].includes((0,u.Z)(e))?Number.isNaN(e)?"":e:de(ce.toString(),!1)})),ve=(0,l.Z)(pe,2),he=ve[0],me=ve[1];function ge(e,t){me(de(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}fe.current=he;var ye=i.useMemo((function(){return F(g)}),[g]),be=i.useMemo((function(){return F(m)}),[m]),we=i.useMemo((function(){return!(!ye||!ce||ce.isInvalidate())&&ye.lessEquals(ce)}),[ye,ce]),xe=i.useMemo((function(){return!(!be||!ce||ce.isInvalidate())&&ce.lessEquals(be)}),[be,ce]),Ee=function(e,t){var n=(0,i.useRef)(null);return[function(){try{var t=e.selectionStart,r=e.selectionEnd,i=e.value,o=i.substring(0,t),a=i.substring(r);n.current={start:t,end:r,value:i,beforeTxt:o,afterTxt:a}}catch(c){}},function(){if(e&&n.current&&t)try{var r=e.value,i=n.current,o=i.beforeTxt,a=i.afterTxt,c=i.start,s=r.length;if(r.endsWith(a))s=r.length-n.current.afterTxt.length;else if(r.startsWith(o))s=o.length;else{var u=o[c-1],l=r.indexOf(u,c-1);-1!==l&&(s=l+1)}e.setSelectionRange(s,s)}catch(f){(0,S.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(f.message))}}]}(Q.current,te),Ce=(0,l.Z)(Ee,2),Ze=Ce[0],ke=Ce[1],Ne=function(e){return ye&&!e.lessEquals(ye)?ye:be&&!be.lessEquals(e)?be:null},Pe=function(e){return!Ne(e)},Se=function(e,t){var n,r=e,i=Pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=Ne(r)||r,i=!0),!j&&!O&&i){var o=r.toString(),a=ue(o,t);return a>=0&&(r=Z(k(o,".",a))),r.equals(ce)||(n=r,void 0===N&&se(n),null===W||void 0===W||W(r.isEmpty()?null:R(z,r)),void 0===N&&ge(r,t)),r}return ce},Oe=function(){var e=(0,i.useRef)(0),t=function(){T.Z.cancel(e.current)};return(0,i.useEffect)((function(){return t}),[]),function(n){t(),e.current=(0,T.Z)((function(){n()}))}}(),Me=function e(t){if(Ze(),me(t),!ie.current){var n=Z(le(t));n.isNaN()||Se(n,!0)}null===$||void 0===$||$(t),Oe((function(){var n=t;H||(n=t.replace(/\u3002/g,".")),n!==t&&e(n)}))},Te=function(e){var t;if(!(e&&we||!e&&xe)){re.current=!1;var n=Z(E);e||(n=n.negate());var r=(ce||Z(0)).add(n.toString()),i=Se(r,!1);null===G||void 0===G||G(R(z,i),{offset:E,type:e?"up":"down"}),null===(t=Q.current)||void 0===t||t.focus()}},Ae=function(e){var t=Z(le(he)),n=t;n=t.isNaN()?ce:Se(t,e),void 0!==N?ge(ce,!1):n.isNaN()||ge(n,!1)};return M((function(){ce.isInvalidate()||ge(ce,!1)}),[q]),M((function(){var e=Z(N);se(e);var t=Z(le(he));e.equals(t)&&re.current&&!B||ge(e,re.current)}),[N]),M((function(){B&&ke()}),[he]),i.createElement("div",{className:a()(o,v,(n={},(0,s.Z)(n,"".concat(o,"-focused"),te),(0,s.Z)(n,"".concat(o,"-disabled"),O),(0,s.Z)(n,"".concat(o,"-readonly"),j),(0,s.Z)(n,"".concat(o,"-not-a-number"),ce.isNaN()),(0,s.Z)(n,"".concat(o,"-out-of-range"),!ce.isInvalidate()&&!Pe(ce)),n)),style:h,onFocus:function(){ne(!0)},onBlur:function(){Ae(!1),ne(!1),re.current=!1},onKeyDown:function(e){var t=e.which;re.current=!0,t===d.Z.ENTER&&(ie.current||(re.current=!1),Ae(!1),null===K||void 0===K||K(e)),!1!==_&&!ie.current&&[d.Z.UP,d.Z.DOWN].includes(t)&&(Te(d.Z.UP===t),e.preventDefault())},onKeyUp:function(){re.current=!1},onCompositionStart:function(){ie.current=!0},onCompositionEnd:function(){ie.current=!1,Me(Q.current.value)}},V&&i.createElement(P,{prefixCls:o,upNode:I,downNode:L,upDisabled:we,downDisabled:xe,onStep:Te}),i.createElement("div",{className:"".concat(X,"-wrap")},i.createElement("input",(0,c.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":m,"aria-valuemax":g,"aria-valuenow":ce.isInvalidate()?null:ce.toString(),step:E},Y,{ref:(0,p.sQ)(Q,t),className:X,value:he,onChange:function(e){Me(e.target.value)},disabled:O,readOnly:j}))))}));j.displayName="InputNumber";var I=j,L=n(1413),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},D=n(42135),V=function(e,t){return i.createElement(D.Z,(0,L.Z)((0,L.Z)({},e),{},{ref:t,icon:_}))};V.displayName="UpOutlined";var z=i.forwardRef(V),H=n(80882),B=n(59844),q=n(97647),U=n(96159),W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0&&(c=!1),t[i?"replace":"push"](n,r,{shallow:o,locale:s,scroll:c}))}(e,i,d,p,h,m,g,y)},onMouseEnter:function(e){t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),a.isLocalURL(d)&&l(i,d,p,{priority:!0})}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var k="undefined"!==typeof y?y:i&&i.locale,N=i&&i.isLocaleDomain&&a.getDomainLocale(p,k,i&&i.locales,i&&i.domainLocales);Z.href=N||a.addBasePath(a.addLocale(p,k,i&&i.defaultLocale))}return o.default.cloneElement(t,Z)};t.default=f},57190:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!a,s=i.useRef(),u=r(i.useState(!1),2),l=u[0],f=u[1],d=i.useCallback((function(e){s.current&&(s.current(),s.current=void 0),n||l||e&&e.tagName&&(s.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=c.get(t);if(n)return n;var r=new Map,i=new IntersectionObserver((function(e){e.forEach((function(e){var t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return c.set(t,n={id:t,observer:i,elements:r}),n}(n),i=r.id,o=r.observer,a=r.elements;return a.set(e,t),o.observe(e),function(){a.delete(e),o.unobserve(e),0===a.size&&(o.disconnect(),c.delete(i))}}(e,(function(e){return e&&f(e)}),{rootMargin:t}))}),[n,t,l]);return i.useEffect((function(){if(!a&&!l){var e=o.requestIdleCallback((function(){return f(!0)}));return function(){return o.cancelIdleCallback(e)}}}),[l]),[d,l]};var i=n(67294),o=n(9311),a="undefined"!==typeof IntersectionObserver;var c=new Map},77541:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ye}});var r=n(85893),i=(n(55062),n(54357),n(43476),n(96552),n(59221),n(43760),n(69207),n(35011),n(39708),n(70734),n(5075),n(71332),n(88727),n(23669),n(32650),n(62930),n(44822),n(35159)),o=n(57553),a=n(28520),c=n.n(a),s=n(67294),u=n(45697),l=n.n(u),f=n(41664),d=n(9008),p=n(40364),v=n(11163),h=n(2897),m=n(7293),g=h.ZP;g.Header=h.h4,g.Footer=h.$_,g.Content=h.VY,g.Sider=m.Z;var y=g,b=n(68157),w=n(14670),x=n(17256),E=n(87462),C=n(56266),Z=n(59844),k=n(81643),N=n(33603),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ia}return!0}return e>=t}function q(e){return U.apply(this,arguments)}function U(){return(U=c(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V();case 2:if(n=e.sent,"v"===(r=n.tag_name).substr(0,1)&&(r=r.substr(1)),B(t,r)){e.next=7;break}return e.abrupt("return",r);case 7:return e.abrupt("return",null);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},25964:function(e,t,n){"use strict";n.d(t,{sI:function(){return f},AA:function(){return d},d$:function(){return p},$w:function(){return v},c9:function(){return h},sv:function(){return m},vv:function(){return g},AP:function(){return y},CJ:function(){return b},os:function(){return w},CQ:function(){return x},Si:function(){return E},RE:function(){return P},$t:function(){return S},rs:function(){return O},IX:function(){return M},ZQ:function(){return T},Ri:function(){return A},KB:function(){return R},rE:function(){return F},lT:function(){return j},cj:function(){return I},y_:function(){return L},EY:function(){return _},P:function(){return D},gX:function(){return V},yj:function(){return z},Dg:function(){return H},dL:function(){return B},nm:function(){return q},Xq:function(){return U},x8:function(){return W},yC:function(){return $},SS:function(){return K},HM:function(){return G},t$:function(){return Y},I$:function(){return X},i3:function(){return Q},wC:function(){return J},z_:function(){return ee},zm:function(){return te}});var r=n(28520),i=n.n(r),o=n(58827),a=n(48419),c=n(19411);function s(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,c,"next",e)}function c(e){s(o,r,i,a,c,"throw",e)}a(void 0)}))}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=3e3,d="/pagecontent",p="/customstyles",v="/s3",h="/socialhandles",m="/video/streamlatencylevel",g="/video/streamoutputvariants",y="/directoryenabled",b="/chat/forbiddenusernames",w="/externalactions",x="/video/codec";function E(e){return C.apply(this,arguments)}function C(){return(C=u(i().mark((function e(t){var n,r,a,c,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.apiPath,r=t.data,a=t.onSuccess,c=t.onError,e.next=3,(0,o.rQ)("".concat(o.ao).concat(n),{data:r,method:"POST",auth:!0});case 3:(s=e.sent).success&&a?a(s.message):c&&c(s.message);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Z,k,N,P={apiPath:"/name",configPath:"instanceDetails",maxLength:255,placeholder:"Owncast site name",label:"Name",tip:"The name of your Owncast server",required:!0,useTrimLead:!0},S={apiPath:"/streamtitle",configPath:"instanceDetails",maxLength:100,placeholder:"Doing cool things...",label:"Stream Title",tip:"What is your stream about today?"},O={apiPath:"/serversummary",configPath:"instanceDetails",maxLength:500,placeholder:"",label:"About",tip:"A brief blurb about you, your server, or what your stream is about."},M={apiPath:"/welcomemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"",label:"Welcome Message",tip:"A system chat message sent to viewers when they first connect to chat. Leave blank to disable."},T={apiPath:"/logo",configPath:"instanceDetails",maxLength:255,placeholder:"/img/mylogo.png",label:"Logo",tip:"Upload your logo if you have one. We recommend that you use a square image that is at least 256x256."},A={apiPath:"/key",configPath:"",maxLength:255,placeholder:"abc123",label:"Stream Key",tip:"Save this key somewhere safe, you will need it to stream or login to the admin dashboard!",required:!0},R={apiPath:"/ffmpegpath",configPath:"",maxLength:255,placeholder:"/usr/local/bin/ffmpeg",label:"FFmpeg Path",tip:"Absolute file path of the FFMPEG application on your server",required:!0},F={apiPath:"/webserverport",configPath:"",maxLength:6,placeholder:"8080",label:"Owncast port",tip:"What port is your Owncast web server listening? Default is 8080",required:!0},j={apiPath:"/rtmpserverport",configPath:"",maxLength:6,placeholder:"1935",label:"RTMP port",tip:"What port should accept inbound broadcasts? Default is 1935",required:!0},I={apiPath:"/serverurl",configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server.",type:a.xA,pattern:c.a,useTrim:!0},L={apiPath:"/tags",configPath:"instanceDetails",maxLength:24,placeholder:"Add a new tag",required:!0,label:"",tip:""},_={apiPath:"/nsfw",configPath:"instanceDetails",label:"NSFW?",tip:"Turn this ON if you plan to steam explicit or adult content. Please respectfully set this flag so unexpected eyes won't accidentally see it in the Directory."},D={apiPath:y,configPath:"yp",label:"Enable directory",tip:"Turn this ON to request to show up in the directory."},V={framerate:24,videoPassthrough:!1,videoBitrate:800,audioPassthrough:!0,audioBitrate:0,cpuUsageLevel:3,scaledHeight:null,scaledWidth:null,name:""},z={apiPath:"/chat/disable",configPath:"",label:"Chat",tip:"Turn the chat functionality on/off on your Owncast server.",useSubmit:!0},H={apiPath:b,placeholder:"username",label:"Forbidden usernames",tip:"A list of words in chat usernames you disallow."},B={audioBitrate:{min:600,max:1200,defaultValue:800,unit:"kbps",incrementBy:100,tip:"nothing to see here"},videoPassthrough:{tip:"If enabled, all other settings will be disabled. Otherwise configure as desired."},audioPassthrough:{tip:"If No is selected, then you should set your desired Audio Bitrate."},scaledWidth:{fieldName:"scaledWidth",label:"Resized Width",maxLength:4,placeholder:"1080",tip:"Optionally resize this content's width."},scaledHeight:{fieldName:"scaledHeight",label:"Resized Height",maxLength:4,placeholder:"720",tip:"Optionally resize this content's height."}},q={min:24,max:120,defaultValue:24,unit:"fps",incrementBy:null,tip:"Reducing your framerate will decrease the amount of video that needs to be encoded and sent to your viewers, saving CPU and bandwidth at the expense of smoothness. A lower value is generally is fine for most content."},U=(l(Z={},q.min,"".concat(q.min," ").concat(q.unit)),l(Z,25,""),l(Z,30,""),l(Z,50,""),l(Z,60,""),l(Z,90,""),l(Z,q.max,"".concat(q.max," ").concat(q.unit)),Z),W=(l(k={},q.min,"".concat(q.min,"fps - Good for film, presentations, music, low power/bandwidth servers.")),l(k,25,"25fps - Good for film, presentations, music, low power/bandwidth servers."),l(k,30,"30fps - Good for slow/casual games, chat, general purpose."),l(k,50,"50fps - Good for fast/action games, sports, HD video."),l(k,60,"60fps - Good for fast/action games, sports, HD video."),l(k,90,"90fps - Good for newer fast games and hardware."),l(k,q.max,"".concat(q.max,"fps - Experimental, use at your own risk!")),k),$={min:400,max:6e3,defaultValue:1200,unit:"kbps",incrementBy:100,tip:"The overall quality of your stream is generally impacted most by bitrate."},K={fieldName:"name",label:"Name",maxLength:15,placeholder:"HD or Low",tip:"Human-readable name for for displaying in the player."},G=(l(N={},$.min,"".concat($.min," ").concat($.unit)),l(N,3e3,3e3),l(N,4500,4500),l(N,$.max,"".concat($.max," ").concat($.unit)),N),Y={1:"lowest",2:"",3:"",4:"",5:"highest"},X={1:"Lowest hardware usage - lowest quality video",2:"Low hardware usage - low quality video",3:"Medium hardware usage - average quality video",4:"High hardware usage - high quality video",5:"Highest hardware usage - higher quality video"},Q={VIDEO_HEIGHT:1080,VIDEO_BITRATE:3e3,HELP_TEXT:"You have only set one video quality variant. If your server has the computing resources, consider adding another, lower-quality variant, so more people can view your content!"},J={url:"",platform:""},ee="OTHER_SOCIAL_HANDLE_OPTION",te={accessKey:{fieldName:"accessKey",label:"Access Key",maxLength:255,placeholder:"access key 123",tip:""},acl:{fieldName:"acl",label:"ACL",maxLength:255,placeholder:"",tip:"Optional specific access control value to add to your content. Generally not required."},bucket:{fieldName:"bucket",label:"Bucket",maxLength:255,placeholder:"bucket 123",tip:"Create a new bucket for each Owncast instance you may be running."},endpoint:{fieldName:"endpoint",label:"Endpoint",maxLength:255,placeholder:"https://your.s3.provider.endpoint.com",tip:'The full URL (with "https://") endpoint from your storage provider.',useTrim:!0,type:a.xA,pattern:c.a},region:{fieldName:"region",label:"Region",maxLength:255,placeholder:"region 123",tip:""},secret:{fieldName:"secret",label:"Secret key",maxLength:255,placeholder:"your secret key",tip:""},servingEndpoint:{fieldName:"servingEndpoint",label:"Serving Endpoint",maxLength:255,placeholder:"http://cdn.ss3.provider.endpoint.com",tip:"Optional URL that content should be accessed from instead of the default. Used with CDNs and specific storage providers. Generally not required.",type:a.xA,pattern:c.a,useTrim:!0},forcePathStyle:{fieldName:"forcePathStyle",label:"Force path-style",tip:"If your S3 provider doesn't support virtual-hosted-style URLs set this to ON (i.e. Oracle Cloud Object Storage)"}}},2766:function(e,t,n){"use strict";n.d(t,{t5:function(){return o},Qr:function(){return a},wS:function(){return s},AB:function(){return u}});var r=n(42238),i=n.n(r);function o(e){var t=e.split(":");t[t.length-1]="";var n=t.join(":");return"[::1]"===(n=n.slice(0,n.length-1))||"127.0.0.1"===n?"Localhost":n}function a(e){return!e||0===Object.keys(e).length&&e.constructor===Object}function c(e,t,n){return String(t.repeat(n)+e).slice(-n)}function s(e){var t=void 0===e?0:e,n=Number.isFinite(+t)?Math.abs(t):0,r=Math.floor(n/86400),i=r>0?"".concat(r," day").concat(r>1?"s":""," "):"",o=Math.floor(n/3600%24),a=o||r?c("".concat(o,":"),"0",3):"",s=Math.floor(n/60%60),u=c("".concat(s,":"),"0",3),l=Math.floor(n%60);return i+a+u+c("".concat(l),"0",2)}function u(e){var t=i()(e),n=t.device,r=t.os,o=t.browser,a=o.major,c=o.name,s=r.version,u=r.name,l=n.model,f=n.type;if(!c||!a||!u)return e;var d=l||f?" (".concat(l||f,")"):"";return"".concat(c," ").concat(a," on ").concat(u," ").concat(s,"\n ").concat(d)}},83200:function(e,t,n){"use strict";n.d(t,{Un:function(){return h},Jk:function(){return g},zv:function(){return y},dG:function(){return b},kg:function(){return x}});var r=n(85893),i=n(1413),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},c=n(42135),s=function(e,t){return o.createElement(c.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:a}))};s.displayName="WarningOutlined";var u=o.forwardRef(s),l=n(89739),f=n(21640),d=n(50888);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v,h="error",m="invalid",g="proessing",y="success",b="warning",w=(p(v={},y,{type:y,icon:(0,r.jsx)(l.Z,{style:{color:"green"}}),message:"Success!"}),p(v,h,{type:h,icon:(0,r.jsx)(f.Z,{style:{color:"red"}}),message:"An error occurred."}),p(v,m,{type:m,icon:(0,r.jsx)(f.Z,{style:{color:"red"}}),message:"An error occurred."}),p(v,g,{type:g,icon:(0,r.jsx)(d.Z,{}),message:""}),p(v,b,{type:b,icon:(0,r.jsx)(u,{style:{color:"#fc0"}}),message:""}),v);function x(e,t){return e&&w[e]?t?{type:e,icon:w[e].icon,message:t}:w[e]:null}},35159:function(e,t,n){"use strict";n.d(t,{aC:function(){return m}});var r=n(28520),i=n.n(r),o=n(85893),a=n(67294),c=n(45697),s=n.n(c),u=n(58827);function l(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,c,"next",e)}function c(e){l(o,r,i,a,c,"throw",e)}a(void 0)}))}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){for(var t=1;t1?t-1:0),r=1;r=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}break;default:return e}}));return a}return e}function R(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function F(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var c=r;r+=1,c()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},z={integer:function(e){return z.number(e)&&parseInt(e,10)===e},float:function(e){return z.number(e)&&!z.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!z.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(V.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(V.url)},hex:function(e){return"string"===typeof e&&!!e.match(V.hex)}},H={required:D,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(A(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)D(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?z[o](t)||r.push(A(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(A(i.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,c="number"===typeof e.max,s=t,u=null,l="number"===typeof t,f="string"===typeof t,d=Array.isArray(t);if(l?u="number":f?u="string":d&&(u="array"),!u)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?s!==e.len&&r.push(A(i.messages[u].len,e.fullField,e.len)):a&&!c&&se.max?r.push(A(i.messages[u].max,e.fullField,e.max)):a&&c&&(se.max)&&r.push(A(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(A(i.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(A(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(A(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},B=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,o)&&!e.required)return n();H.required(e,t,r,a,i,o),R(t,o)||H.type(e,t,r,a,i)}n(a)},q={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,"string")&&!e.required)return n();H.required(e,t,r,o,i,"string"),R(t,"string")||(H.type(e,t,r,o,i),H.range(e,t,r,o,i),H.pattern(e,t,r,o,i),!0===e.whitespace&&H.whitespace(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&H.type(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&(H.type(e,t,r,o,i),H.range(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&H.type(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),R(t)||H.type(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&(H.type(e,t,r,o,i),H.range(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&(H.type(e,t,r,o,i),H.range(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();H.required(e,t,r,o,i,"array"),void 0!==t&&null!==t&&(H.type(e,t,r,o,i),H.range(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&H.type(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i),void 0!==t&&H.enum(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,"string")&&!e.required)return n();H.required(e,t,r,o,i),R(t,"string")||H.pattern(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,"date")&&!e.required)return n();var a;if(H.required(e,t,r,o,i),!R(t,"date"))a=t instanceof Date?t:new Date(t),H.type(e,a,r,o,i),a&&H.range(e,a.getTime(),r,o,i)}n(o)},url:B,hex:B,email:B,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;H.required(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();H.required(e,t,r,o,i)}n(o)}};function U(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var W=U(),$=function(){function e(e){this.rules=null,this._messages=W,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=_(U(),e)),this._messages},t.validate=function(t,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var o=t,a=n,c=r;if("function"===typeof a&&(c=a,a={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(null,o),Promise.resolve(o);if(a.messages){var s=this.messages();s===W&&(s=U()),_(s,a.messages),a.messages=s}else a.messages=this.messages();var u={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=i.rules[e],r=o[e];n.forEach((function(n){var a=n;"function"===typeof a.transform&&(o===t&&(o=Z({},o)),r=o[e]=a.transform(r)),(a="function"===typeof a?{validator:a}:Z({},a)).validator=i.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=i.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:r,source:o,field:e}))}))}));var l={};return I(u,a,(function(t,n){var r,i=t.rule,c=("object"===i.type||"array"===i.type)&&("object"===typeof i.fields||"object"===typeof i.defaultField);function s(e,t){return Z({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function u(r){void 0===r&&(r=[]);var u=Array.isArray(r)?r:[r];!a.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==i.message&&(u=[].concat(i.message));var f=u.map(L(i,o));if(a.first&&f.length)return l[i.field]=1,n(f);if(c){if(i.required&&!t.value)return void 0!==i.message?f=[].concat(i.message).map(L(i,o)):a.error&&(f=[a.error(i,A(a.messages.required,i.field))]),n(f);var d={};i.defaultField&&Object.keys(t.value).map((function(e){d[e]=i.defaultField})),d=Z({},d,t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var v=new e(p);v.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),v.validate(t.value,t.rule.options||a,(function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(f)}c=c&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator?r=i.asyncValidator(i,t.value,u,t.source,a):i.validator&&(!0===(r=i.validator(i,t.value,u,t.source,a))?u():!1===r?u("function"===typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):r instanceof Array?u(r):r instanceof Error&&u(r.message)),r&&r.then&&r.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var i=0;i3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!X(e,t.slice(0,-1))?e:J(e,t,n,r)}function te(e){return b(e)}function ne(e,t){return X(e,t)}function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=ee(e,t,n,r);return i}function ie(e,t){var n={};return t.forEach((function(t){var r=ne(e,t);n=re(n,t,r)})),n}function oe(e,t){return e&&e.some((function(e){return ue(e,t)}))}function ae(e){return"object"===(0,Y.Z)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function ce(e,t){var n=Array.isArray(e)?(0,s.Z)(e):(0,c.Z)({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],i=t[e],o=ae(r)&&ae(i);n[e]=o?ce(r,i||{}):i})),n):n}function se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat((0,s.Z)(e.slice(0,n)),[i],(0,s.Z)(e.slice(n,t)),(0,s.Z)(e.slice(t+1,r))):o<0?[].concat((0,s.Z)(e.slice(0,t)),(0,s.Z)(e.slice(t+1,n+1)),[i],(0,s.Z)(e.slice(n+1,r))):e}var de=$;function pe(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}function ve(e,t,n,r,i){return he.apply(this,arguments)}function he(){return(he=(0,E.Z)(x().mark((function e(t,n,i,o,u){var l,f,d,p,v,h,m,g;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=(0,c.Z)({},i)).ruleIndex,f=null,l&&"array"===l.type&&l.defaultField&&(f=l.defaultField,delete l.defaultField),d=new de((0,a.Z)({},t,[l])),p=se({},G,o.validateMessages),d.messages(p),v=[],e.prev=8,e.next=11,Promise.resolve(d.validate((0,a.Z)({},t,n),(0,c.Z)({},o)));case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(8),e.t0.errors?v=e.t0.errors.map((function(e,t){var n=e.message;return r.isValidElement(n)?r.cloneElement(n,{key:"error_".concat(t)}):n})):(console.error(e.t0),v=[p.default]);case 16:if(v.length||!f){e.next=21;break}return e.next=19,Promise.all(n.map((function(e,n){return ve("".concat(t,".").concat(n),e,f,o,u)})));case 19:return h=e.sent,e.abrupt("return",h.reduce((function(e,t){return[].concat((0,s.Z)(e),(0,s.Z)(t))}),[]));case 21:return m=(0,c.Z)((0,c.Z)({},i),{},{name:t,enum:(i.enum||[]).join(", ")},u),g=v.map((function(e){return"string"===typeof e?pe(e,m):e})),e.abrupt("return",g);case 24:case"end":return e.stop()}}),e,null,[[8,13]])})))).apply(this,arguments)}function me(e,t,n,r,i,o){var a,s=e.join("."),u=n.map((function(e,t){var n=e.validator,r=(0,c.Z)((0,c.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var i=!1,o=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:we;if(i.validatePromise===r){i.validatePromise=null;var t=[],n=[];e.forEach((function(e){var r=e.rule.warningOnly,i=e.errors,o=void 0===i?we:i;r?n.push.apply(n,(0,s.Z)(o)):t.push.apply(t,(0,s.Z)(o))})),i.errors=t,i.warnings=n,i.triggerMetaEvent(),i.reRender()}})),d}));return i.validatePromise=r,i.dirty=!0,i.errors=we,i.warnings=we,i.triggerMetaEvent(),i.reRender(),r},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(m).getInitialValue)(i.getNamePath())},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath()}},i.getOnlyChild=function(e){if("function"===typeof e){var t=i.getMeta();return(0,c.Z)((0,c.Z)({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=(0,v.Z)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},i.getValue=function(e){var t=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return ne(e||t(!0),n)},i.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.props,n=t.trigger,r=t.validateTrigger,o=t.getValueFromEvent,s=t.normalize,u=t.valuePropName,l=t.getValueProps,f=t.fieldContext,d=void 0!==r?r:f.validateTrigger,p=i.getNamePath(),v=f.getInternalHooks,h=f.getFieldsValue,g=v(m),y=g.dispatch,w=i.getValue(),x=l||function(e){return(0,a.Z)({},u,e)},E=e[n],C=(0,c.Z)((0,c.Z)({},e),x(w));C[n]=function(){var e;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(l.keys=[].concat((0,s.Z)(l.keys.slice(0,t)),[l.id],(0,s.Z)(l.keys.slice(t))),o([].concat((0,s.Z)(n.slice(0,t)),[e],(0,s.Z)(n.slice(t))))):(l.keys=[].concat((0,s.Z)(l.keys),[l.id]),o([].concat((0,s.Z)(n),[e]))),l.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(l.keys=l.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=c();e<0||e>=n.length||t<0||t>=n.length||(l.keys=fe(l.keys,e,t),o(fe(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),i(p.map((function(e,t){var n=l.keys[t];return void 0===n&&(l.keys[t]=l.id,n=l.keys[t],l.id+=1),{name:t,key:n,isListField:!0}})),f,t)})))},ke=n(97685);var Ne="__@field_split__";function Pe(e){return e.map((function(e){return"".concat((0,Y.Z)(e),":").concat(e)})).join(Ne)}var Se=function(){function e(){(0,u.Z)(this,e),this.kvs=new Map}return(0,l.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(Pe(e),t)}},{key:"get",value:function(e){return this.kvs.get(Pe(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Pe(e))}},{key:"map",value:function(e){return(0,s.Z)(this.kvs.entries()).map((function(t){var n=(0,ke.Z)(t,2),r=n[0],i=n[1],o=r.split(Ne);return e({key:o.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,ke.Z)(t,3),r=n[1],i=n[2];return"number"===r?Number(i):i})),value:i})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),Oe=["name","errors"],Me=function e(t){var n=this;(0,u.Z)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===m?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue}):((0,h.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.setInitialValues=function(e,t){n.initialValues=e||{},t&&(n.store=se({},e,n.store))},this.getInitialValue=function(e){return ne(n.initialValues,e)},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.timeoutId=null,this.warningUnhooked=function(){0},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Se;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=te(e);return t.get(n)||{INVALIDATE_NAME_PATH:te(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),i=[];return r.forEach((function(n){var r,o="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&i.push(o)}else i.push(o)})),ie(n.store,i.map(te))},this.getFieldValue=function(e){n.warningUnhooked();var t=te(e);return ne(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:te(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=te(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=te(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new Se,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}}));var i,o=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var i=r.getNamePath();if(void 0!==n.getInitialValue(i))(0,h.ZP)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=t.get(i);if(o&&o.size>1)(0,h.ZP)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);e.skipExist&&void 0!==a||(n.store=re(n.store,i,(0,s.Z)(o)[0].value))}}}}))};e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=i).push.apply(n,(0,s.Z)((0,s.Z)(r).map((function(e){return e.entity}))))}))):i=r,o(i)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.store=se({},n.initialValues),n.resetWithFieldInitialValue(),void n.notifyObservers(t,null,{type:"reset"});var r=e.map(te);r.forEach((function(e){var t=n.getInitialValue(e);n.store=re(n.store,e,t)})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"})},this.setFields=function(e){n.warningUnhooked();var t=n.store;e.forEach((function(e){var r=e.name,i=(e.errors,(0,o.Z)(e,Oe)),a=te(r);"value"in i&&(n.store=re(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}))},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),i=(0,c.Z)((0,c.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i}))},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===ne(n.store,r)&&(n.store=re(n.store,r,t))}},this.registerField=function(e){if(n.fieldEntities.push(e),void 0!==e.props.initialValue){var t=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e}));var o=void 0!==r?r:n.preserve;if(!1===o&&(!t||i.length>1)){var a=e.getNamePath(),c=t?void 0:ne(n.initialValues,a);a.length&&n.getFieldValue(a)!==c&&n.fieldEntities.every((function(e){return!ue(e.getNamePath(),a)}))&&(n.store=re(n.store,a,c,!0))}}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var i=(0,c.Z)((0,c.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,i)}))}else n.forceRootUpdate()},this.updateValue=function(e,t){var r=te(e),i=n.store;n.store=re(n.store,r,t),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"});var o=n.getDependencyChildrenFields(r);o.length&&n.validateFields(o),n.notifyObservers(i,o,{type:"dependenciesUpdate",relatedFields:[r].concat((0,s.Z)(o))});var a=n.callbacks.onValuesChange;a&&a(ie(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,s.Z)(o)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&(n.store=se(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],i=new Se;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=te(t);i.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(i.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new Se;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),i.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}r(i.filter((function(t){var n=t.name;return oe(e,n)})),i)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,i=r?e.map(te):[],o=[];n.getFieldEntities(!0).forEach((function(a){if(r||i.push(a.getNamePath()),(null===t||void 0===t?void 0:t.recursive)&&r){var u=a.getNamePath();u.every((function(t,n){return e[n]===t||void 0===e[n]}))&&i.push(u)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!r||oe(i,l)){var f=a.validateRules((0,c.Z)({validateMessages:(0,c.Z)((0,c.Z)({},G),n.validateMessages)},t));o.push(f.then((function(){return{name:l,errors:[],warnings:[]}})).catch((function(e){var t=[],n=[];return e.forEach((function(e){var r=e.rule.warningOnly,i=e.errors;r?n.push.apply(n,(0,s.Z)(i)):t.push.apply(t,(0,s.Z)(i))})),t.length?Promise.reject({name:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(i,o){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))}))}))})):Promise.resolve([])}(o);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var u=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return u.catch((function(e){return e})),u},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t};var Te=function(e){var t=r.useRef(),n=r.useState({}),i=(0,ke.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var o=new Me((function(){i({})}));t.current=o.getForm()}return[t.current]},Ae=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Re=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,o=e.children,s=r.useContext(Ae),u=r.useRef({});return r.createElement(Ae.Provider,{value:(0,c.Z)((0,c.Z)({},s),{},{validateMessages:(0,c.Z)((0,c.Z)({},s.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:u.current}),s.triggerFormChange(e,t)},triggerFormFinish:function(e,t){i&&i(e,{values:t,forms:u.current}),s.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(u.current=(0,c.Z)((0,c.Z)({},u.current),{},(0,a.Z)({},e,t))),s.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.Z)({},u.current);delete t[e],u.current=t,s.unregisterForm(e)}})},o)},Fe=Ae,je=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Ie=function(e,t){var n=e.name,a=e.initialValues,u=e.fields,l=e.form,f=e.preserve,d=e.children,p=e.component,v=void 0===p?"form":p,h=e.validateMessages,g=e.validateTrigger,b=void 0===g?"onChange":g,w=e.onValuesChange,x=e.onFieldsChange,E=e.onFinish,C=e.onFinishFailed,Z=(0,o.Z)(e,je),k=r.useContext(Fe),N=Te(l),P=(0,ke.Z)(N,1)[0],S=P.getInternalHooks(m),O=S.useSubscribe,M=S.setInitialValues,T=S.setCallbacks,A=S.setValidateMessages,R=S.setPreserve;r.useImperativeHandle(t,(function(){return P})),r.useEffect((function(){return k.registerForm(n,P),function(){k.unregisterForm(n)}}),[k,P,n]),A((0,c.Z)((0,c.Z)({},k.validateMessages),h)),T({onValuesChange:w,onFieldsChange:function(e){if(k.triggerFormChange(n,e),x){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i1&&(E.motionAppear=!1);var C=E.onVisibleChanged;return E.onVisibleChanged=function(e){return m.current||e||w(!0),null===C||void 0===C?void 0:C(e)},b?null:u.createElement(k,{mode:s,locked:!m.current},u.createElement(ne.Z,(0,r.Z)({visible:x},E,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,r=e.style;return u.createElement($,{id:t,className:n,style:r},a)})))}var ie=function(e){var t,n=e.style,a=e.className,l=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),v=e.internalPopupClose,h=e.children,g=e.itemIcon,y=e.expandIcon,b=e.popupClassName,w=e.popupOffset,x=e.onClick,E=e.onMouseEnter,C=e.onMouseLeave,M=e.onTitleClick,T=e.onTitleMouseEnter,A=e.onTitleMouseLeave,R=(0,s.Z)(e,["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"]),I=_(d),L=u.useContext(Z),D=L.prefixCls,V=L.mode,z=L.openKeys,H=L.disabled,B=L.overflowDisabled,U=L.activeKey,W=L.selectedKeys,K=L.itemIcon,G=L.expandIcon,Y=L.onItemClick,X=L.onOpenChange,Q=L.onActive,J=u.useContext(j).isSubPathKey,ee=F(),ne="".concat(D,"-submenu"),ie=H||p,oe=u.useRef(),ae=u.useRef();var ce=g||K,se=y||G,ue=z.includes(d),le=!B&&ue,fe=J(W,d),de=N(d,ie,T,A),pe=de.active,ve=(0,s.Z)(de,["active"]),he=u.useState(!1),me=(0,c.Z)(he,2),ge=me[0],ye=me[1],be=function(e){ie||ye(e)},we=u.useMemo((function(){return pe||"inline"!==V&&(ge||J([U],d))}),[V,pe,U,ge,d,J]),xe=O(ee.length),Ee=q((function(e){null===x||void 0===x||x(P(e)),Y(e)})),Ce=I&&"".concat(I,"-popup"),Ze=u.createElement("div",(0,r.Z)({role:"menuitem",style:xe,className:"".concat(ne,"-title"),tabIndex:ie?null:-1,ref:oe,title:"string"===typeof l?l:null,"data-menu-id":B&&I?null:I,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Ce,"aria-disabled":ie,onClick:function(e){ie||(null===M||void 0===M||M({key:d,domEvent:e}),"inline"===V&&X(d,!ue))},onFocus:function(){Q(d)}},ve),l,u.createElement(S,{icon:"horizontal"!==V?se:null,props:(0,o.Z)((0,o.Z)({},e),{},{isOpen:le,isSubMenu:!0})},u.createElement("i",{className:"".concat(ne,"-arrow")}))),ke=u.useRef(V);if("inline"!==V&&(ke.current=ee.length>1?"vertical":V),!B){var Ne=ke.current;Ze=u.createElement(te,{mode:Ne,prefixCls:ne,visible:!v&&le&&"inline"!==V,popupClassName:b,popupOffset:w,popup:u.createElement(k,{mode:"horizontal"===Ne?"vertical":Ne},u.createElement($,{id:Ce,ref:ae},h)),disabled:ie,onVisibleChange:function(e){"inline"!==V&&X(d,e)}},Ze)}return u.createElement(k,{onItemClick:Ee,mode:"horizontal"===V?"vertical":V,itemIcon:ce,expandIcon:se},u.createElement(m.Z.Item,(0,r.Z)({role:"none"},R,{component:"li",style:n,className:f()(ne,"".concat(ne,"-").concat(V),a,(t={},(0,i.Z)(t,"".concat(ne,"-open"),le),(0,i.Z)(t,"".concat(ne,"-active"),we),(0,i.Z)(t,"".concat(ne,"-selected"),fe),(0,i.Z)(t,"".concat(ne,"-disabled"),ie),t)),onMouseEnter:function(e){be(!0),null===E||void 0===E||E({key:d,domEvent:e})},onMouseLeave:function(e){be(!1),null===C||void 0===C||C({key:d,domEvent:e})}}),Ze,!B&&u.createElement(re,{id:Ce,open:le,keyPath:ee},h)))};function oe(e){var t,n=e.eventKey,r=e.children,i=F(n),o=B(r,i),a=A();return u.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),t=a?o:u.createElement(ie,e,o),u.createElement(R.Provider,{value:i},t)}var ae=n(5110);function ce(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,ae.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return ce(e,t)}));return ce(e,t)&&n.unshift(e),n}var ue=x.Z.LEFT,le=x.Z.RIGHT,fe=x.Z.UP,de=x.Z.DOWN,pe=x.Z.ENTER,ve=x.Z.ESC,he=[fe,de,ue,le];function me(e,t){return se(e,!0).filter((function(e){return t.has(e)}))}function ge(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=me(e,t),o=i.length,a=i.findIndex((function(e){return n===e}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}function ye(e,t,n,r,o,a,c,s,l,f){var d=u.useRef(),p=u.useRef();p.current=t;var v=function(){G.Z.cancel(d.current)};return u.useEffect((function(){return function(){v()}}),[]),function(u){var h=u.which;if([].concat(he,[pe,ve]).includes(h)){var m,g,y,b=function(){return m=new Set,g=new Map,y=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(L(r,e),"']"));t&&(m.add(t),y.set(t,e),g.set(e,t))})),m};b();var w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(g.get(t),m),x=y.get(w),E=function(e,t,n,r){var o,a,c,s,u="prev",l="next",f="children",d="parent";if("inline"===e&&r===pe)return{inlineTrigger:!0};var p=(o={},(0,i.Z)(o,fe,u),(0,i.Z)(o,de,l),o),v=(a={},(0,i.Z)(a,ue,n?l:u),(0,i.Z)(a,le,n?u:l),(0,i.Z)(a,de,f),(0,i.Z)(a,pe,f),a),h=(c={},(0,i.Z)(c,fe,u),(0,i.Z)(c,de,l),(0,i.Z)(c,pe,f),(0,i.Z)(c,ve,d),(0,i.Z)(c,ue,n?f:d),(0,i.Z)(c,le,n?d:f),c);switch(null===(s={inline:p,horizontal:v,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case u:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===c(x,!0).length,n,h);if(!E)return;he.includes(h)&&u.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=y.get(e);s(r),v(),d.current=(0,G.Z)((function(){p.current===r&&t.focus()}))}};if(E.sibling||!w){var Z=ge(w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):o.current,m,w,E.offset);C(Z)}else if(E.inlineTrigger)l(x);else if(E.offset>0)l(x,!0),v(),d.current=(0,G.Z)((function(){b();var e=w.getAttribute("aria-controls"),t=ge(document.getElementById(e),m);C(t)}),5);else if(E.offset<0){var k=c(x,!0),N=k[k.length-2],P=g.get(N);l(N,!1),C(P)}}null===f||void 0===f||f(u)}}var be=Math.random().toFixed(5).toString().slice(2),we=0;var xe="__RC_UTIL_PATH_SPLIT__",Ee=function(e){return e.join(xe)},Ce="rc-menu-more";function Ze(){var e=u.useState({}),t=(0,c.Z)(e,2)[1],n=(0,u.useRef)(new Map),r=(0,u.useRef)(new Map),i=u.useState([]),o=(0,c.Z)(i,2),s=o[0],l=o[1],f=(0,u.useRef)(0),d=(0,u.useRef)(!1),p=(0,u.useCallback)((function(e,i){var o=Ee(i);r.current.set(o,e),n.current.set(e,o),f.current+=1;var a,c=f.current;a=function(){c===f.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),v=(0,u.useCallback)((function(e,t){var i=Ee(t);r.current.delete(i),n.current.delete(e)}),[]),h=(0,u.useCallback)((function(e){l(e)}),[]),m=(0,u.useCallback)((function(e,t){var r=n.current.get(e)||"",i=r.split(xe);return t&&s.includes(i[0])&&i.unshift(Ce),i}),[s]),g=(0,u.useCallback)((function(e,t){return e.some((function(e){return m(e,!0).includes(t)}))}),[m]),y=(0,u.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(xe),i=new Set;return(0,a.Z)(r.current.keys()).forEach((function(e){e.startsWith(t)&&i.add(r.current.get(e))})),i}),[]);return u.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:v,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:m,getKeys:function(){var e=(0,a.Z)(n.current.keys());return s.length&&e.push(Ce),e},getSubPathKeys:y}}var ke=[],Ne=function(e){var t=e.className,n=e.title,i=(e.eventKey,e.children),o=(0,s.Z)(e,["className","title","eventKey","children"]),a=u.useContext(Z).prefixCls,c="".concat(a,"-item-group");return u.createElement("li",(0,r.Z)({},o,{onClick:function(e){return e.stopPropagation()},className:f()(c,t)}),u.createElement("div",{className:"".concat(c,"-title"),title:"string"===typeof n?n:void 0},n),u.createElement("ul",{className:"".concat(c,"-list")},i))};function Pe(e){var t=e.children,n=(0,s.Z)(e,["children"]),r=B(t,F(n.eventKey));return A()?r:u.createElement(Ne,(0,E.Z)(n,["warnKey"]),r)}function Se(e){var t=e.className,n=e.style,r=u.useContext(Z).prefixCls;return A()?null:u.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})}var Oe=F,Me=function(e){var t,n,l=e.prefixCls,d=void 0===l?"rc-menu":l,h=e.style,g=e.className,y=e.tabIndex,b=void 0===y?0:y,w=e.children,x=e.direction,E=e.id,C=e.mode,Z=void 0===C?"vertical":C,N=e.inlineCollapsed,S=e.disabled,O=e.disabledOverflow,M=e.subMenuOpenDelay,A=void 0===M?.1:M,R=e.subMenuCloseDelay,F=void 0===R?.1:R,L=e.forceSubMenuRender,_=e.defaultOpenKeys,D=e.openKeys,V=e.activeKey,H=e.defaultActiveFirst,U=e.selectable,W=void 0===U||U,$=e.multiple,K=void 0!==$&&$,G=e.defaultSelectedKeys,Y=e.selectedKeys,X=e.onSelect,Q=e.onDeselect,J=e.inlineIndent,ee=void 0===J?24:J,te=e.motion,ne=e.defaultMotions,re=e.triggerSubMenuAction,ie=void 0===re?"hover":re,ae=e.builtinPlacements,ce=e.itemIcon,se=e.expandIcon,ue=e.overflowedIndicator,le=void 0===ue?"...":ue,fe=e.overflowedIndicatorPopupClassName,de=e.getPopupContainer,pe=e.onClick,ve=e.onOpenChange,he=e.onKeyDown,me=(e.openAnimation,e.openTransitionName,(0,s.Z)(e,["prefixCls","style","className","tabIndex","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName"])),ge=B(w,ke),xe=u.useState(!1),Ee=(0,c.Z)(xe,2),Ne=Ee[0],Pe=Ee[1],Se=u.useRef(),Oe=function(e){var t=(0,v.Z)(e,{value:e}),n=(0,c.Z)(t,2),r=n[0],i=n[1];return u.useEffect((function(){we+=1;var e="".concat(be,"-").concat(we);i("rc-menu-uuid-".concat(e))}),[]),r}(E),Me="rtl"===x;var Te=u.useMemo((function(){return"inline"!==Z&&"vertical"!==Z||!N?[Z,!1]:["vertical",N]}),[Z,N]),Ae=(0,c.Z)(Te,2),Re=Ae[0],Fe=Ae[1],je=u.useState(0),Ie=(0,c.Z)(je,2),Le=Ie[0],_e=Ie[1],De=Le>=ge.length-1||"horizontal"!==Re||O,Ve=(0,v.Z)(_,{value:D,postState:function(e){return e||ke}}),ze=(0,c.Z)(Ve,2),He=ze[0],Be=ze[1],qe=function(e){Be(e),null===ve||void 0===ve||ve(e)},Ue=u.useState(He),We=(0,c.Z)(Ue,2),$e=We[0],Ke=We[1],Ge="inline"===Re,Ye=u.useRef(!1);u.useEffect((function(){Ge&&Ke(He)}),[He]),u.useEffect((function(){Ye.current?Ge?Be($e):qe(ke):Ye.current=!0}),[Ge]);var Xe=Ze(),Qe=Xe.registerPath,Je=Xe.unregisterPath,et=Xe.refreshOverflowKeys,tt=Xe.isSubPathKey,nt=Xe.getKeyPath,rt=Xe.getKeys,it=Xe.getSubPathKeys,ot=u.useMemo((function(){return{registerPath:Qe,unregisterPath:Je}}),[Qe,Je]),at=u.useMemo((function(){return{isSubPathKey:tt}}),[tt]);u.useEffect((function(){et(De?ke:ge.slice(Le+1).map((function(e){return e.key})))}),[Le,De]);var ct=(0,v.Z)(V||H&&(null===(t=ge[0])||void 0===t?void 0:t.key),{value:V}),st=(0,c.Z)(ct,2),ut=st[0],lt=st[1],ft=q((function(e){lt(e)})),dt=q((function(){lt(void 0)})),pt=(0,v.Z)(G||[],{value:Y,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?ke:[e]}}),vt=(0,c.Z)(pt,2),ht=vt[0],mt=vt[1],gt=q((function(e){null===pe||void 0===pe||pe(P(e)),function(e){if(W){var t,n=e.key,r=ht.includes(n);t=K?r?ht.filter((function(e){return e!==n})):[].concat((0,a.Z)(ht),[n]):[n],mt(t);var i=(0,o.Z)((0,o.Z)({},e),{},{selectedKeys:t});r?null===Q||void 0===Q||Q(i):null===X||void 0===X||X(i)}!K&&He.length&&"inline"!==Re&&qe(ke)}(e)})),yt=q((function(e,t){var n=He.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var r=it(e);n=n.filter((function(e){return!r.has(e)}))}p()(He,n)||qe(n)})),bt=q(de),wt=ye(Re,ut,Me,Oe,Se,rt,nt,lt,(function(e,t){var n=null!==t&&void 0!==t?t:!He.includes(e);yt(e,n)}),he);u.useEffect((function(){Pe(!0)}),[]);var xt="horizontal"!==Re||O?ge:ge.map((function(e,t){return u.createElement(k,{key:e.key,overflowDisabled:t>Le},e)})),Et=u.createElement(m.Z,(0,r.Z)({id:E,ref:Se,prefixCls:"".concat(d,"-overflow"),component:"ul",itemComponent:z,className:f()(d,"".concat(d,"-root"),"".concat(d,"-").concat(Re),g,(n={},(0,i.Z)(n,"".concat(d,"-inline-collapsed"),Fe),(0,i.Z)(n,"".concat(d,"-rtl"),Me),n)),dir:x,style:h,role:"menu",tabIndex:b,data:xt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ge.slice(-t):null;return u.createElement(oe,{eventKey:Ce,title:le,disabled:De,internalPopupClose:0===t,popupClassName:fe},n)},maxCount:"horizontal"!==Re||O?m.Z.INVALIDATE:m.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){_e(e)},onKeyDown:wt},me));return u.createElement(I.Provider,{value:Oe},u.createElement(k,{prefixCls:d,mode:Re,openKeys:He,rtl:Me,disabled:S,motion:Ne?te:null,defaultMotions:Ne?ne:null,activeKey:ut,onActive:ft,onInactive:dt,selectedKeys:ht,inlineIndent:ee,subMenuOpenDelay:A,subMenuCloseDelay:F,forceSubMenuRender:L,builtinPlacements:ae,triggerSubMenuAction:ie,getPopupContainer:bt,itemIcon:ce,expandIcon:se,onItemClick:gt,onOpenChange:yt},u.createElement(j.Provider,{value:at},Et),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(T.Provider,{value:ot},ge))))};Me.Item=z,Me.SubMenu=oe,Me.ItemGroup=Pe,Me.Divider=Se;var Te=Me},93481:function(e,t,n){"use strict";n.d(t,{V:function(){return re},Z:function(){return ie}});var r=n(4942),i=n(1413),o=n(97685),a=n(71002),c=n(67294),s=n(34203),u=n(42550),l=n(94184),f=n.n(l),d=n(98924);function p(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var v=function(e,t){var n={animationend:p("Animation","AnimationEnd"),transitionend:p("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}((0,d.Z)(),"undefined"!==typeof window?window:{}),h={};if((0,d.Z)()){var m=document.createElement("div");h=m.style}var g={};function y(e){if(g[e])return g[e];var t=v[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var o=(0,I.Z)((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),u=(0,o.Z)(s,2),l=u[0],f=u[1];return j((function(){if(i!==O&&i!==R){var e=L.indexOf(i),n=L[e+1],r=t(i);false===r?a(n):l((function(e){function t(){e.isCanceled()||a(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,i]),c.useEffect((function(){return function(){f()}}),[]),[function(){a(M)},i]};function V(e,t,n,a){var s=a.motionEnter,u=void 0===s||s,l=a.motionAppear,f=void 0===l||l,d=a.motionLeave,p=void 0===d||d,v=a.motionDeadline,h=a.motionLeaveImmediately,m=a.onAppearPrepare,g=a.onEnterPrepare,y=a.onLeavePrepare,b=a.onAppearStart,w=a.onEnterStart,x=a.onLeaveStart,Z=a.onAppearActive,O=a.onEnterActive,R=a.onLeaveActive,I=a.onAppearEnd,L=a.onEnterEnd,V=a.onLeaveEnd,z=a.onVisibleChanged,H=F(),B=(0,o.Z)(H,2),q=B[0],U=B[1],W=F(k),$=(0,o.Z)(W,2),K=$[0],G=$[1],Y=F(null),X=(0,o.Z)(Y,2),Q=X[0],J=X[1],ee=(0,c.useRef)(!1),te=(0,c.useRef)(null),ne=(0,c.useRef)(!1),re=(0,c.useRef)(null);function ie(){return n()||re.current}var oe=(0,c.useRef)(!1);function ae(e){var t,n=ie();e&&!e.deadline&&e.target!==n||(K===N&&oe.current?t=null===I||void 0===I?void 0:I(n,e):K===P&&oe.current?t=null===L||void 0===L?void 0:L(n,e):K===S&&oe.current&&(t=null===V||void 0===V?void 0:V(n,e)),!1===t||ne.current||(G(k),J(null)))}var ce=function(e){var t=(0,c.useRef)(),n=(0,c.useRef)(e);n.current=e;var r=c.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(C,r),e.removeEventListener(E,r))}return c.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(C,r),e.addEventListener(E,r),t.current=e)},i]}(ae),se=(0,o.Z)(ce,1)[0],ue=c.useMemo((function(){var e,t,n;switch(K){case"appear":return e={},(0,r.Z)(e,M,m),(0,r.Z)(e,T,b),(0,r.Z)(e,A,Z),e;case"enter":return t={},(0,r.Z)(t,M,g),(0,r.Z)(t,T,w),(0,r.Z)(t,A,O),t;case"leave":return n={},(0,r.Z)(n,M,y),(0,r.Z)(n,T,x),(0,r.Z)(n,A,R),n;default:return{}}}),[K]),le=D(K,(function(e){if(e===M){var t=ue.prepare;return!!t&&t(ie())}var n;pe in ue&&J((null===(n=ue[pe])||void 0===n?void 0:n.call(ue,ie(),null))||null);return pe===A&&(se(ie()),v>0&&(clearTimeout(te.current),te.current=setTimeout((function(){ae({deadline:!0})}),v))),true})),fe=(0,o.Z)(le,2),de=fe[0],pe=fe[1],ve=_(pe);oe.current=ve,j((function(){U(t);var n,r=ee.current;(ee.current=!0,e)&&(!r&&t&&f&&(n=N),r&&t&&u&&(n=P),(r&&!t&&p||!r&&h&&!t&&p)&&(n=S),n&&(G(n),de()))}),[t]),(0,c.useEffect)((function(){(K===N&&!f||K===P&&!u||K===S&&!p)&&G(k)}),[f,u,p]),(0,c.useEffect)((function(){return function(){clearTimeout(te.current),ne.current=!0}}),[]),(0,c.useEffect)((function(){void 0!==q&&K===k&&(null===z||void 0===z||z(q))}),[q,K]);var he=Q;return ue.prepare&&pe===T&&(he=(0,i.Z)({transition:"none"},he)),[K,pe,he,null!==q&&void 0!==q?q:t]}var z=n(15671),H=n(43144),B=n(60136),q=n(3289),U=function(e){(0,B.Z)(n,e);var t=(0,q.Z)(n);function n(){return(0,z.Z)(this,n),t.apply(this,arguments)}return(0,H.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);var W=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var l=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,d=e.removeOnLeave,p=void 0===d||d,v=e.forceRender,h=e.children,m=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),w=(0,c.useRef)(),x=(0,c.useRef)();var E=V(b,l,(function(){try{return(0,s.Z)(w.current||x.current)}catch(e){return null}}),e),C=(0,o.Z)(E,4),N=C[0],P=C[1],S=C[2],O=C[3],A=c.useRef(O);O&&(A.current=!0);var R=(0,c.useRef)(t);R.current=t;var F,j=c.useCallback((function(e){w.current=e,(0,u.mH)(R.current,e)}),[]),I=(0,i.Z)((0,i.Z)({},y),{},{visible:l});if(h)if(N!==k&&n(e)){var L,D;P===M?D="prepare":_(P)?D="active":P===T&&(D="start"),F=h((0,i.Z)((0,i.Z)({},I),{},{className:f()(Z(m,N),(L={},(0,r.Z)(L,Z(m,"".concat(N,"-").concat(D)),D),(0,r.Z)(L,m,"string"===typeof m),L)),style:S}),j)}else F=O?h((0,i.Z)({},I),j):!p&&A.current?h((0,i.Z)((0,i.Z)({},I),{},{className:g}),j):v?h((0,i.Z)((0,i.Z)({},I),{},{style:{display:"none"}}),j):null;else F=null;return c.createElement(U,{ref:x},F)}));return l.displayName="CSSMotion",l}(x),$=n(87462),K=n(91),G="add",Y="keep",X="remove",Q="removed";function J(e){var t;return t=e&&"object"===(0,a.Z)(e)&&"key"in e?e:{key:e},(0,i.Z)((0,i.Z)({},t),{},{key:String(t.key)})}function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(J)}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=ee(e),c=ee(t);a.forEach((function(e){for(var t=!1,a=r;a1}));return u.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==X}))).forEach((function(t){t.key===e&&(t.status=Y)}))})),n}var ne=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,n=function(e){(0,B.Z)(r,e);var n=(0,q.Z)(r);function r(){var e;return(0,z.Z)(this,r),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.Z)((0,i.Z)({},e),{},{status:Q})}))}}))},e}return(0,H.Z)(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=r.onVisibleChanged,s=(0,K.Z)(r,["component","children","onVisibleChanged"]),u=i||c.Fragment,l={};return ne.forEach((function(e){l[e]=s[e],delete s[e]})),delete s.keys,c.createElement(u,s,n.map((function(n){var r=n.status,i=(0,K.Z)(n,["status"]),s=r===G||r===Y;return c.createElement(t,(0,$.Z)({},l,{key:i.key,visible:s,eventProps:i,onVisibleChanged:function(t){null===a||void 0===a||a(t,{key:i.key}),t||e.removeKey(i.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=ee(n);return{keyEntities:te(r,i).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Q||e.status!==X}))}}}]),r}(c.Component);return n.defaultProps={component:"div"},n}(x),ie=W},51784:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(87462),i=n(4942),o=n(15671),a=n(43144),c=n(60136),s=n(3289),u=n(67294),l=n(73935),f=n(94184),d=n.n(f),p=function(e){(0,c.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,o.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a=a&&(i.key=c[0].notice.key,i.updateMark=b(),i.userPassKey=r,c.shift()),c.push({notice:i,holderCallback:n})),{notices:c}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return(0,c.Z)(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,a=n.className,c=n.closeIcon,s=n.style,u=[];return t.forEach((function(n,i){var a=n.notice,s=n.holderCallback,l=i===t.length-1?a.updateMark:void 0,f=a.key,d=a.userPassKey,p=(0,o.Z)((0,o.Z)((0,o.Z)({prefixCls:r,closeIcon:c},a),a.props),{},{key:f,noticeKey:d||f,updateMark:l,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});u.push(f),e.noticePropsMap[f]={props:p,holderCallback:s}})),l.createElement("div",{className:p()(r,a),style:s},l.createElement(v.V,{keys:u,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,a=t.className,c=t.style,s=t.visible,u=e.noticePropsMap[n],f=u.props,d=u.holderCallback;return d?l.createElement("div",{key:n,className:p()(a,"".concat(r,"-hook-holder")),style:(0,o.Z)({},c),ref:function(t){"undefined"!==typeof n&&(t?(e.hookRefs.set(n,t),d(t,f)):e.hookRefs.delete(n))}}):l.createElement(h.Z,(0,i.Z)({},f,{className:p()(a,null===f||void 0===f?void 0:f.className),style:(0,o.Z)((0,o.Z)({},c),null===f||void 0===f?void 0:f.style),visible:s}))})))}}]),n}(l.Component);w.newInstance=void 0,w.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},w.newInstance=function(e,t){var n=e||{},o=n.getContainer,a=(0,r.Z)(n,["getContainer"]),c=document.createElement("div");o?o().appendChild(c):document.body.appendChild(c);var s=!1;f.render(l.createElement(w,(0,i.Z)({},a,{ref:function(e){s||(s=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){f.unmountComponentAtNode(c),c.parentNode&&c.parentNode.removeChild(c)},useNotification:function(){return(0,m.Z)(e)}}))}})),c)};var x=w},51550:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(74902),i=n(87462),o=n(97685),a=n(67294),c=n(51784);function s(e){var t=a.useRef({}),n=a.useState([]),s=(0,o.Z)(n,2),u=s[0],l=s[1];return[function(n){var o=!0;e.add(n,(function(e,n){var s=n.key;if(e&&(!t.current[s]||o)){var u=a.createElement(c.Z,(0,i.Z)({},n,{holder:e}));t.current[s]=u,l((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat((0,r.Z)(e),[u]);var i=(0,r.Z)(e);return i[t]=u,i}))}o=!1}))},a.createElement(a.Fragment,null,u)]}},34243:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(87462),i=n(1413),o=n(97685),a=n(91),c=n(67294),s=n(94184),u=n.n(s),l=n(48555),f=void 0;function d(e,t){var n=e.prefixCls,o=e.invalidate,s=e.item,d=e.renderItem,p=e.responsive,v=e.registerSize,h=e.itemKey,m=e.className,g=e.style,y=e.children,b=e.display,w=e.order,x=e.component,E=void 0===x?"div":x,C=(0,a.Z)(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),Z=p&&!b;function k(e){v(h,e)}c.useEffect((function(){return function(){k(null)}}),[]);var N,P=d&&s!==f?d(s):y;o||(N={opacity:Z?0:1,height:Z?0:f,overflowY:Z?"hidden":f,order:p?w:f,pointerEvents:Z?"none":f,position:Z?"absolute":f});var S={};Z&&(S["aria-hidden"]=!0);var O=c.createElement(E,(0,r.Z)({className:u()(!o&&n,m),style:(0,i.Z)((0,i.Z)({},N),g)},S,C,{ref:t}),P);return p&&(O=c.createElement(l.default,{onResize:function(e){k(e.offsetWidth)}},O)),O}var p=c.forwardRef(d);p.displayName="Item";var v=p,h=n(75164);var m=function(e,t){var n=c.useContext(b);if(!n){var i=e.component,o=void 0===i?"div":i,s=(0,a.Z)(e,["component"]);return c.createElement(o,(0,r.Z)({},s,{ref:t}))}var l=n.className,f=(0,a.Z)(n,["className"]),d=e.className,p=(0,a.Z)(e,["className"]);return c.createElement(b.Provider,{value:null},c.createElement(v,(0,r.Z)({ref:t,className:u()(l,d)},f,p)))},g=c.forwardRef(m);g.displayName="RawItem";var y=g,b=c.createContext(null),w="responsive",x="invalidate";function E(e){return"+ ".concat(e.length," ...")}function C(e,t){var n=e.prefixCls,s=void 0===n?"rc-overflow":n,f=e.data,d=void 0===f?[]:f,p=e.renderItem,m=e.renderRawItem,g=e.itemKey,y=e.itemWidth,C=void 0===y?10:y,Z=e.ssr,k=e.style,N=e.className,P=e.maxCount,S=e.renderRest,O=e.renderRawRest,M=e.suffix,T=e.component,A=void 0===T?"div":T,R=e.itemComponent,F=e.onVisibleChange,j=(0,a.Z)(e,["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"]),I=function(){var e=(0,c.useState)({}),t=(0,o.Z)(e,2)[1],n=(0,c.useRef)([]),r=(0,c.useRef)(!1),i=0,a=0;return(0,c.useEffect)((function(){return function(){r.current=!0}}),[]),function(e){var o=i;return i+=1,n.current.lengthP,Ce=(0,c.useMemo)((function(){var e=d;return we?e=null===V&&L?d:d.slice(0,Math.min(d.length,H/C)):"number"===typeof P&&(e=d.slice(0,P)),e}),[d,C,V,P,we]),Ze=(0,c.useMemo)((function(){return we?d.slice(pe+1):d.slice(Ce.length)}),[d,Ce,we,pe]),ke=(0,c.useCallback)((function(e,t){var n;return"function"===typeof g?g(e):null!==(n=g&&(null===e||void 0===e?void 0:e[g]))&&void 0!==n?n:t}),[g]),Ne=(0,c.useCallback)(p||function(e){return e},[p]);function Pe(e,t){de(e),t||(ge(eH){Pe(r-1),se(e-i-re+J);break}}M&&Oe(0)+re>H&&se(null)}}),[H,U,J,re,ke,Ce]);var Me=me&&!!Ze.length,Te={};null!==ce&&we&&(Te={position:"absolute",left:ce,top:0});var Ae,Re={prefixCls:ye,responsive:we,component:R,invalidate:xe},Fe=m?function(e,t){var n=ke(e,t);return c.createElement(b.Provider,{key:n,value:(0,i.Z)((0,i.Z)({},Re),{},{order:t,item:e,itemKey:n,registerSize:Se,display:t<=pe})},m(e,t))}:function(e,t){var n=ke(e,t);return c.createElement(v,(0,r.Z)({},Re,{order:t,key:n,item:e,renderItem:Ne,itemKey:n,registerSize:Se,display:t<=pe}))},je={order:Me?pe:Number.MAX_SAFE_INTEGER,className:"".concat(ye,"-rest"),registerSize:function(e,t){ee(t),Y(J)},display:Me};if(O)O&&(Ae=c.createElement(b.Provider,{value:(0,i.Z)((0,i.Z)({},Re),je)},O(Ze)));else{var Ie=S||E;Ae=c.createElement(v,(0,r.Z)({},Re,je),"function"===typeof Ie?Ie(Ze):Ie)}var Le=c.createElement(A,(0,r.Z)({className:u()(!xe&&s,N),style:k,ref:t},j),Ce.map(Fe),Ee?Ae:null,M&&c.createElement(v,(0,r.Z)({},Re,{order:pe,className:"".concat(ye,"-suffix"),registerSize:function(e,t){ie(t)},display:!0,style:Te}),M));return we&&(Le=c.createElement(l.default,{onResize:function(e,t){z(t.clientWidth)}},Le)),Le}var Z=c.forwardRef(C);Z.displayName="Overflow",Z.Item=y,Z.RESPONSIVE=w,Z.INVALIDATE=x;var k=Z},62906:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},48555:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(87462),i=n(67294),o=n(50344),a=(n(80334),n(1413)),c=n(42550),s=n(34203),u=n(91033),l=new Map;var f=new u.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=l.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var d=n(15671),p=n(43144),v=n(60136),h=n(3289),m=function(e){(0,v.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component),g=i.createContext(null);function y(e){var t=e.children,n=e.disabled,r=i.useRef(null),o=i.useRef(null),u=i.useContext(g),d=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=i.isValidElement(t)&&(0,c.Yr)(t),v=p?t.ref:null,h=i.useMemo((function(){return(0,c.sQ)(v,r)}),[v,r]),y=i.useRef(e);y.current=e;var b=i.useCallback((function(e){var t=y.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),o=i.width,c=i.height,s=e.offsetWidth,l=e.offsetHeight,f=Math.floor(o),p=Math.floor(c);if(d.current.width!==f||d.current.height!==p||d.current.offsetWidth!==s||d.current.offsetHeight!==l){var v={width:f,height:p,offsetWidth:s,offsetHeight:l};d.current=v;var h=s===Math.round(o)?o:s,m=l===Math.round(c)?c:l,g=(0,a.Z)((0,a.Z)({},v),{},{offsetWidth:h,offsetHeight:m});null===u||void 0===u||u(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return i.useEffect((function(){var e,t,i=(0,s.Z)(r.current)||(0,s.Z)(o.current);return i&&!n&&(e=i,t=b,l.has(e)||(l.set(e,new Set),f.observe(e)),l.get(e).add(t)),function(){return function(e,t){l.has(e)&&(l.get(e).delete(t),l.get(e).size||(f.unobserve(e),l.delete(e)))}(i,b)}}),[r.current,n]),i.createElement(m,{ref:o},p?i.cloneElement(t,{ref:h}):t)}function b(e){var t=e.children;return(0,o.Z)(t).map((function(t,n){var o=(null===t||void 0===t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return i.createElement(y,(0,r.Z)({},e,{key:o}),t)}))}b.Collection=function(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),o=i.useRef([]),a=i.useContext(g),c=i.useCallback((function(e,t,i){r.current+=1;var c=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){c===r.current&&(null===n||void 0===n||n(o.current),o.current=[])})),null===a||void 0===a||a(e,t,i)}),[n,a]);return i.createElement(g.Provider,{value:c},t)};var w=b},57239:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizableTextArea:function(){return x},default:function(){return E}});var r,i,o=n(87462),a=n(15671),c=n(43144),s=n(60136),u=n(3289),l=n(67294),f=n(1413),d=n(4942),p=n(48555),v=n(98423),h=n(94184),m=n.n(h),g="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",y=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],b={};function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&b[n])return b[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=y.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),s={sizingStyle:c,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(b[n]=s),s}!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(i||(i={}));var x=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(e){var c;return(0,a.Z)(this,n),(c=t.call(this,e)).saveTextArea=function(e){c.textArea=e},c.handleResize=function(e){var t=c.state.resizeStatus,n=c.props,r=n.autoSize,o=n.onResize;t===i.NONE&&("function"===typeof o&&o(e),r&&c.resizeOnNextFrame())},c.resizeOnNextFrame=function(){cancelAnimationFrame(c.nextFrameActionId),c.nextFrameActionId=requestAnimationFrame(c.resizeTextarea)},c.resizeTextarea=function(){var e=c.props.autoSize;if(e&&c.textArea){var t=e.minRows,n=e.maxRows,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var o=w(e,t),a=o.paddingSize,c=o.borderSize,s=o.boxSizing,u=o.sizingStyle;r.setAttribute("style","".concat(u,";").concat(g)),r.value=e.value||e.placeholder||"";var l,f=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,p=r.scrollHeight;if("border-box"===s?p+=c:"content-box"===s&&(p-=a),null!==n||null!==i){r.value=" ";var v=r.scrollHeight-a;null!==n&&(f=v*n,"border-box"===s&&(f=f+a+c),p=Math.max(f,p)),null!==i&&(d=v*i,"border-box"===s&&(d=d+a+c),l=p>d?"":"hidden",p=Math.min(d,p))}return{height:p,minHeight:f,maxHeight:d,overflowY:l,resize:"none"}}(c.textArea,!1,t,n);c.setState({textareaStyles:o,resizeStatus:i.RESIZING},(function(){cancelAnimationFrame(c.resizeFrameId),c.resizeFrameId=requestAnimationFrame((function(){c.setState({resizeStatus:i.RESIZED},(function(){c.resizeFrameId=requestAnimationFrame((function(){c.setState({resizeStatus:i.NONE}),c.fixFirefoxAutoScroll()}))}))}))}))}},c.renderTextArea=function(){var e=c.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,a=e.onResize,s=e.className,u=e.disabled,h=c.state,g=h.textareaStyles,y=h.resizeStatus,b=(0,v.Z)(c.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),w=m()(n,s,(0,d.Z)({},"".concat(n,"-disabled"),u));"value"in b&&(b.value=b.value||"");var x=(0,f.Z)((0,f.Z)((0,f.Z)({},c.props.style),g),y===i.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return l.createElement(p.default,{onResize:c.handleResize,disabled:!(r||a)},l.createElement("textarea",(0,o.Z)({},b,{className:w,style:x,ref:c.saveTextArea})))},c.state={textareaStyles:{},resizeStatus:i.NONE},c}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(l.Component),E=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r;(0,a.Z)(this,n),(r=t.call(this,e)).focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,i=t.onKeyDown;13===e.keyCode&&n&&n(e),i&&i(e)};var i="undefined"===typeof e.value||null===e.value?e.defaultValue:e.value;return r.state={value:i},r}return(0,c.Z)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l.createElement(x,(0,o.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(l.Component)},22972:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(87462),i=n(71002),o=n(1413),a=n(91),c=n(67294),s=n(51169),u=n(43159),l=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"===typeof t?t():t)},f=function(e,t){var n=e.overlayClassName,f=e.trigger,d=void 0===f?["hover"]:f,p=e.mouseEnterDelay,v=void 0===p?0:p,h=e.mouseLeaveDelay,m=void 0===h?.1:h,g=e.overlayStyle,y=e.prefixCls,b=void 0===y?"rc-tooltip":y,w=e.children,x=e.onVisibleChange,E=e.afterVisibleChange,C=e.transitionName,Z=e.animation,k=e.motion,N=e.placement,P=void 0===N?"right":N,S=e.align,O=void 0===S?{}:S,M=e.destroyTooltipOnHide,T=void 0!==M&&M,A=e.defaultVisible,R=e.getTooltipContainer,F=e.overlayInnerStyle,j=(0,a.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),I=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return I.current}));var L=(0,o.Z)({},j);"visible"in e&&(L.popupVisible=e.visible);var _=!1,D=!1;if("boolean"===typeof T)_=T;else if(T&&"object"===(0,i.Z)(T)){var V=T.keepParent;_=!0===V,D=!1===V}return c.createElement(s.Z,(0,r.Z)({popupClassName:n,prefixCls:b,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,i=e.id;return[c.createElement("div",{className:"".concat(b,"-arrow"),key:"arrow"},n),c.createElement(l,{key:"content",prefixCls:b,id:i,overlay:r,overlayInnerStyle:F})]},action:d,builtinPlacements:u.C,popupPlacement:P,ref:I,popupAlign:O,getPopupContainer:R,onPopupVisibleChange:x,afterPopupVisibleChange:E,popupTransitionName:C,popupAnimation:Z,popupMotion:k,defaultPopupVisible:A,destroyPopupOnHide:_,autoDestroy:D,mouseLeaveDelay:m,popupStyle:g,mouseEnterDelay:v},L),w)},d=(0,c.forwardRef)(f)},43159:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r={adjustX:1,adjustY:1},i=[0,0],o={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:i},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:i},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:i},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:i},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:i},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:i},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:i},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:i},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:i},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:i},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:i},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:i}}},51169:function(e,t,n){"use strict";n.d(t,{Z:function(){return Xe}});var r=n(1413),i=n(87462),o=n(15671),a=n(43144),c=n(97326),s=n(60136),u=n(3289),l=n(67294),f=n(73935),d=n(75164),p=n(94999),v=n(34203),h=n(42550),m=n(64019),g=n(59015),y=n(94184),b=n.n(y);function w(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var x=n(97685),E=n(91),C=n(31131),Z=n(93481);function k(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function N(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,a=e.mask,c=e.maskMotion,s=e.maskAnimation,u=e.maskTransitionName;if(!a)return null;var f={};return(c||u||s)&&(f=(0,r.Z)({motionAppear:!0},k({motion:c,prefixCls:t,transitionName:u,animation:s}))),l.createElement(Z.Z,(0,i.Z)({},f,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return l.createElement("div",{style:{zIndex:o},className:b()("".concat(t,"-mask"),n)})}))}var P,S=n(71002),O=n(5110);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ye(e){var t,n,r;if(pe.isWindow(e)||9===e.nodeType){var i=pe.getWindow(e);t={left:pe.getWindowScrollLeft(i),top:pe.getWindowScrollTop(i)},n=pe.viewportWidth(i),r=pe.viewportHeight(i)}else t=pe.offset(e),n=pe.outerWidth(e),r=pe.outerHeight(e);return t.width=n,t.height=r,t}function be(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,c=e.top;return"c"===n?c+=o/2:"b"===n&&(c+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:c}}function we(e,t,n,r,i){var o=be(t,n[1]),a=be(e,n[0]),c=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-c[0]+r[0]-i[0]),top:Math.round(e.top-c[1]+r[1]-i[1])}}function xe(e,t,n){return e.leftn.right}function Ee(e,t,n){return e.topn.bottom}function Ce(e,t,n){var r=[];return pe.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ze(e,t){return e[t]=-e[t],e}function ke(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ne(e,t){e[0]=ke(e[0],t.width),e[1]=ke(e[1],t.height)}function Pe(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,s=n.source||e;o=[].concat(o),a=[].concat(a);var u={},l=0,f=ge(s,!(!(c=c||{})||!c.alwaysByViewport)),d=ye(s);Ne(o,d),Ne(a,t);var p=we(d,t,i,o,a),v=pe.merge(d,p);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&xe(p,d,f)){var h=Ce(i,/[lr]/gi,{l:"r",r:"l"}),m=Ze(o,0),g=Ze(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),pe.mix(i,o)}(p,d,f,u))}return v.width!==d.width&&pe.css(s,"width",pe.width(s)+v.width-d.width),v.height!==d.height&&pe.css(s,"height",pe.height(s)+v.height-d.height),pe.offset(s,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:u}}function Se(e,t,n){var r=n.target||t;return Pe(e,ye(r),n,!function(e,t){var n=ge(e,t),r=ye(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport))}Se.__getOffsetParent=he,Se.__getVisibleRectForElement=ge;var Oe=n(91033);function Me(e,t){var n=null,r=null;var i=new Oe.Z((function(e){var i=(0,x.Z)(e,1)[0].target;if(document.documentElement.contains(i)){var o=i.getBoundingClientRect(),a=o.width,c=o.height,s=Math.floor(a),u=Math.floor(c);n===s&&r===u||Promise.resolve().then((function(){t({width:s,height:u})})),n=s,r=u}}));return e&&i.observe(e),function(){i.disconnect()}}function Te(e){return"function"!==typeof e?null:e()}function Ae(e){return"object"===(0,S.Z)(e)&&e?e:null}var Re=l.forwardRef((function(e,t){var n=e.children,r=e.disabled,i=e.target,o=e.align,a=e.onAlign,c=e.monitorWindowResize,s=e.monitorBufferTime,u=void 0===s?0:s,f=l.useRef({}),d=l.useRef(),v=l.Children.only(n),g=l.useRef({});g.current.disabled=r,g.current.target=i,g.current.onAlign=a;var y=function(e,t){var n=l.useRef(!1),r=l.useRef(null);function i(){window.clearTimeout(r.current)}return[function o(a){if(n.current&&!0!==a)i(),r.current=window.setTimeout((function(){n.current=!1,o()}),t);else{if(!1===e())return;n.current=!0,i(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=g.current,t=e.disabled,n=e.target,r=e.onAlign;if(!t&&n){var i,a=d.current,c=Te(n),s=Ae(n);f.current.element=c,f.current.point=s;var u=document.activeElement;return c&&(0,O.Z)(c)?i=Se(a,c,o):s&&(i=function(e,t,n){var r,i,o=pe.getDocument(e),a=o.defaultView||o.parentWindow,c=pe.getWindowScrollLeft(a),s=pe.getWindowScrollTop(a),u=pe.viewportWidth(a),l=pe.viewportHeight(a),f={left:r="pageX"in t?t.pageX:c+t.clientX,top:i="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},d=r>=0&&r<=c+u&&i>=0&&i<=s+l,p=[n.points[0],"cc"];return Pe(e,f,T(T({},n),{},{points:p}),d)}(a,s,o)),function(e,t){e!==document.activeElement&&(0,p.Z)(t,e)&&"function"===typeof e.focus&&e.focus()}(u,a),r&&i&&r(a,i),!0}return!1}),u),b=(0,x.Z)(y,2),w=b[0],E=b[1],C=l.useRef({cancel:function(){}}),Z=l.useRef({cancel:function(){}});l.useEffect((function(){var e,t,n=Te(i),r=Ae(i);d.current!==Z.current.element&&(Z.current.cancel(),Z.current.element=d.current,Z.current.cancel=Me(d.current,w)),f.current.element===n&&((e=f.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(w(),C.current.element!==n&&(C.current.cancel(),C.current.element=n,C.current.cancel=Me(n,w)))})),l.useEffect((function(){r?E():w()}),[r]);var k=l.useRef(null);return l.useEffect((function(){c?k.current||(k.current=(0,m.Z)(window,"resize",w)):k.current&&(k.current.remove(),k.current=null)}),[c]),l.useEffect((function(){return function(){C.current.cancel(),Z.current.cancel(),k.current&&k.current.remove(),E()}}),[]),l.useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),l.isValidElement(v)&&(v=l.cloneElement(v,{ref:(0,h.sQ)(v.ref,d)})),v}));Re.displayName="Align";var Fe=Re,je=n(87757),Ie=n.n(je),Le=n(15861),_e=["measure","align",null,"motion"],De=l.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,a=e.className,c=e.style,s=e.children,u=e.zIndex,f=e.stretch,p=e.destroyPopupOnHide,v=e.forceRender,h=e.align,m=e.point,g=e.getRootDomNode,y=e.getClassNameFromAlign,w=e.onAlign,E=e.onMouseEnter,C=e.onMouseLeave,N=e.onMouseDown,P=e.onTouchStart,S=(0,l.useRef)(),O=(0,l.useRef)(),M=(0,l.useState)(),T=(0,x.Z)(M,2),A=T[0],R=T[1],F=function(e){var t=l.useState({width:0,height:0}),n=(0,x.Z)(t,2),r=n[0],i=n[1];return[l.useMemo((function(){var t={};if(e){var n=r.width,i=r.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){i({width:e.offsetWidth,height:e.offsetHeight})}]}(f),j=(0,x.Z)(F,2),I=j[0],L=j[1];var _=function(e,t){var n=(0,l.useState)(null),r=(0,x.Z)(n,2),i=r[0],o=r[1],a=(0,l.useRef)(),c=(0,l.useRef)(!1);function s(e){c.current||o(e)}function u(){d.Z.cancel(a.current)}return(0,l.useEffect)((function(){s("measure")}),[e]),(0,l.useEffect)((function(){switch(i){case"measure":t()}i&&(a.current=(0,d.Z)((0,Le.Z)(Ie().mark((function e(){var t,n;return Ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=_e.indexOf(i),(n=_e[t+1])&&-1!==t&&s(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),(0,l.useEffect)((function(){return function(){c.current=!0,u()}}),[]),[i,function(e){u(),a.current=(0,d.Z)((function(){s((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){f&&L(g())})),D=(0,x.Z)(_,2),V=D[0],z=D[1],H=(0,l.useRef)();function B(){var e;null===(e=S.current)||void 0===e||e.forceAlign()}function q(e,t){var n=y(t);A!==n&&R(n),"align"===V&&(A!==n?Promise.resolve().then((function(){B()})):z((function(){var e;null===(e=H.current)||void 0===e||e.call(H)})),null===w||void 0===w||w(e,t))}var U=(0,r.Z)({},k(e));function W(){return new Promise((function(e){H.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=U[e];U[e]=function(e,n){return z(),null===t||void 0===t?void 0:t(e,n)}})),l.useEffect((function(){U.motionName||"motion"!==V||z()}),[U.motionName,V]),l.useImperativeHandle(t,(function(){return{forceAlign:B,getElement:function(){return O.current}}}));var $=(0,r.Z)((0,r.Z)({},I),{},{zIndex:u,opacity:"motion"!==V&&"stable"!==V&&n?0:void 0,pointerEvents:"stable"===V?void 0:"none"},c),K=!0;!(null===h||void 0===h?void 0:h.points)||"align"!==V&&"stable"!==V||(K=!1);var G=s;return l.Children.count(s)>1&&(G=l.createElement("div",{className:"".concat(o,"-content")},s)),l.createElement(Z.Z,(0,i.Z)({visible:n,ref:O,leavedClassName:"".concat(o,"-hidden")},U,{onAppearPrepare:W,onEnterPrepare:W,removeOnLeave:p,forceRender:v}),(function(e,t){var n=e.className,i=e.style,c=b()(o,a,A,n);return l.createElement(Fe,{target:m||g,key:"popup",ref:S,monitorWindowResize:!0,disabled:K,align:h,onAlign:q},l.createElement("div",{ref:t,className:c,onMouseEnter:E,onMouseLeave:C,onMouseDownCapture:N,onTouchStartCapture:P,style:(0,r.Z)((0,r.Z)({},i),$)},G))}))}));De.displayName="PopupInner";var Ve=De,ze=l.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,a=e.zIndex,c=e.children,s=e.mobile,u=(s=void 0===s?{}:s).popupClassName,f=s.popupStyle,d=s.popupMotion,p=void 0===d?{}:d,v=s.popupRender,h=l.useRef();l.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var m=(0,r.Z)({zIndex:a},f),g=c;return l.Children.count(c)>1&&(g=l.createElement("div",{className:"".concat(n,"-content")},c)),v&&(g=v(g)),l.createElement(Z.Z,(0,i.Z)({visible:o,ref:h,removeOnLeave:!0},p),(function(e,t){var i=e.className,o=e.style,a=b()(n,u,i);return l.createElement("div",{ref:t,className:a,style:(0,r.Z)((0,r.Z)({},o),m)},g)}))}));ze.displayName="MobilePopupInner";var He=ze,Be=["visible","mobile"],qe=l.forwardRef((function(e,t){var n=e.visible,o=e.mobile,a=(0,E.Z)(e,Be),c=(0,l.useState)(n),s=(0,x.Z)(c,2),u=s[0],f=s[1],d=(0,l.useState)(!1),p=(0,x.Z)(d,2),v=p[0],h=p[1],m=(0,r.Z)((0,r.Z)({},a),{},{visible:u});(0,l.useEffect)((function(){f(n),n&&o&&h((0,C.Z)())}),[n,o]);var g=v?l.createElement(He,(0,i.Z)({},m,{mobile:o,ref:t})):l.createElement(Ve,(0,i.Z)({},m,{ref:t}));return l.createElement("div",null,l.createElement(N,m),g)}));qe.displayName="Popup";var Ue=qe,We=l.createContext(null);function $e(){}function Ke(){return""}function Ge(e){return e?e.ownerDocument:window.document}var Ye=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var Xe=function(e){var t=function(t){(0,s.Z)(g,t);var n=(0,u.Z)(g);function g(e){var t,r;return(0,o.Z)(this,g),(t=n.call(this,e)).popupRef=l.createRef(),t.triggerRef=l.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,p.Z)(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),i=t.getPopupDomNode();(0,p.Z)(r,n)&&!t.isContextMenuOnly()||(0,p.Z)(i,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=(0,v.Z)(t.triggerRef.current);if(n)return n}catch(r){}return f.findDOMNode((0,c.Z)(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,i=r.popupPlacement,o=r.builtinPlacements,a=r.prefixCls,c=r.alignPoint,s=r.getPopupClassNameFromAlign;return i&&o&&n.push(function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(o(e)):(0,i.isFragment)(e)&&e.props?n=n.concat(o(e.props.children,t)):n.push(e))})),n}},64019:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(73935);function i(e,t,n,i){var o=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,o,i),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o)}}}},98924:function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:function(){return r}})},94999:function(e,t,n){"use strict";function r(e,t){return!!e&&e.contains(t)}n.d(t,{Z:function(){return r}})},44958:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(98924),i="rc-util-key";function o(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var i,a=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(a.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce);a.innerHTML=e;var c=o(n),s=c.firstChild;return n.prepend&&c.prepend?c.prepend(a):n.prepend&&s?c.insertBefore(a,s):c.appendChild(a),a}var c=new Map;function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(n);if(!c.has(r)){var s=a("",n),u=s.parentNode;c.set(r,u),u.removeChild(s)}var l=Array.from(c.get(r).children).find((function(e){return"STYLE"===e.tagName&&e[i]===t}));if(l){var f,d,p;if((null===(f=n.csp)||void 0===f?void 0:f.nonce)&&l.nonce!==(null===(d=n.csp)||void 0===d?void 0:d.nonce))l.nonce=null===(p=n.csp)||void 0===p?void 0:p.nonce;return l.innerHTML!==e&&(l.innerHTML=e),l}var v=a(e,n);return v[i]=t,v}},34203:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(73935);function i(e){return e instanceof HTMLElement?e:r.findDOMNode(e)}},5110:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1}},79370:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(98924),i=function(e){if((0,r.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function o(e,t){return Array.isArray(e)||void 0===t?i(e):function(e,t){if(!i(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}},15105:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},59015:function(e,t,n){"use strict";var r=n(67294),i=n(73935),o=n(98924),a=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,a=e.getContainer,c=e.children,s=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var u=(0,r.useRef)(!1);return!u.current&&(0,o.Z)()&&(s.current=a(),u.current=!0),(0,r.useEffect)((function(){null===n||void 0===n||n(e)})),(0,r.useEffect)((function(){return function(){var e,t;null===(e=s.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(s.current)}}),[]),s.current?i.createPortal(c,s.current):null}));t.Z=a},56982:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294);function i(e,t,n){var i=r.useRef({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}},21770:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(97685),i=n(67294);function o(e,t){var n=t||{},o=n.defaultValue,a=n.value,c=n.onChange,s=n.postState,u=i.useState((function(){return void 0!==a?a:void 0!==o?"function"===typeof o?o():o:"function"===typeof e?e():e})),l=(0,r.Z)(u,2),f=l[0],d=l[1],p=void 0!==a?a:f;s&&(p=s(p));var v=i.useRef(c);v.current=c;var h=i.useCallback((function(e){d(e),p!==e&&v.current&&v.current(e,p)}),[p,v]),m=i.useRef(!0);return i.useEffect((function(){m.current?m.current=!1:void 0===a&&d(a)}),[a]),[p,h]}},31131:function(e,t){"use strict";t.Z=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4)))}},98423:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1413);function i(e,t){var n=(0,r.Z)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},75164:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=function(e){return+setTimeout(e,16)},i=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},i=function(e){return window.cancelAnimationFrame(e)});var o=0,a=new Map;function c(e){a.delete(e)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=o+=1;function i(t){if(0===t)c(n),e();else{var o=r((function(){i(t-1)}));a.set(n,o)}}return i(t),n}s.cancel=function(e){var t=a.get(e);return c(t),i(t)}},42550:function(e,t,n){"use strict";n.d(t,{mH:function(){return o},sQ:function(){return a},Yr:function(){return c}});var r=n(71002),i=n(59864);n(56982);function o(e,t){"function"===typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}},91033:function(e,t,n){"use strict";var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),E="undefined"!==typeof WeakMap?new WeakMap:new r,C=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new x(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var Z="undefined"!==typeof o.ResizeObserver?o.ResizeObserver:C;t.Z=Z},96774:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),s=0;s0?2===c.length?typeof c[1]==a?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==a||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):o:this[c[0]]=l?c[1].call(this,l,c[2]):o:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):o):this[c]=l||o;f+=2}},B=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var r=0;r255?z(e,255):e,this},this.setUA(n),this};W.VERSION="1.0.2",W.BROWSER=_([f,v,"major"]),W.CPU=_([h]),W.DEVICE=_([l,p,d,m,g,b,y,w,x]),W.ENGINE=W.OS=_([f,v]),typeof t!==c?(e.exports&&(t=e.exports=W),t.UAParser=W):n.amdO?(r=function(){return W}.call(t,n,t,e))===o||(e.exports=r):typeof i!==c&&(i.UAParser=W);var $=typeof i!==c&&(i.jQuery||i.Zepto);if($&&!$.ua){var K=new W;$.ua=K.getResult(),$.ua.get=function(){return K.getUA()},$.ua.set=function(e){K.setUA(e);var t=K.getResult();for(var n in t)$.ua[n]=t[n]}}}("object"===typeof window?window:this)},30907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},97685:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(83878);var i=n(40181),o=n(25267);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(s){c=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,t)||(0,i.Z)(e,t)||(0,o.Z)()}},84506:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(83878),i=n(59199),o=n(40181),a=n(25267);function c(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},74902:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(30907);var i=n(59199),o=n(40181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},71002:function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],(function(){return t(76363),t(90387)}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/admin/access-tokens/index.html b/static/admin/access-tokens/index.html index dc26ea5b0..d8a1eeb08 100644 --- a/static/admin/access-tokens/index.html +++ b/static/admin/access-tokens/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file diff --git a/static/admin/actions/index.html b/static/admin/actions/index.html index 46c4ec767..053bdd13a 100644 --- a/static/admin/actions/index.html +++ b/static/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file diff --git a/static/admin/chat/messages/index.html b/static/admin/chat/messages/index.html index 225055968..7266fd817 100644 --- a/static/admin/chat/messages/index.html +++ b/static/admin/chat/messages/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file diff --git a/static/admin/chat/users/index.html b/static/admin/chat/users/index.html index 7bc5d8d57..4d6b34a6a 100644 --- a/static/admin/chat/users/index.html +++ b/static/admin/chat/users/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file diff --git a/static/admin/config-chat/index.html b/static/admin/config-chat/index.html index 7c8a7ce85..825e58c9c 100644 --- a/static/admin/config-chat/index.html +++ b/static/admin/config-chat/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/admin/config-public-details/index.html b/static/admin/config-public-details/index.html index bc531003f..68854e3be 100644 --- a/static/admin/config-public-details/index.html +++ b/static/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file diff --git a/static/admin/config-server-details/index.html b/static/admin/config-server-details/index.html index e63bda52d..079f21c28 100644 --- a/static/admin/config-server-details/index.html +++ b/static/admin/config-server-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file diff --git a/static/admin/config-social-items/index.html b/static/admin/config-social-items/index.html index 4f664a12e..6dfb23b03 100644 --- a/static/admin/config-social-items/index.html +++ b/static/admin/config-social-items/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file diff --git a/static/admin/config-storage/index.html b/static/admin/config-storage/index.html index 3dbc090b9..833465f4d 100644 --- a/static/admin/config-storage/index.html +++ b/static/admin/config-storage/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file diff --git a/static/admin/config-video/index.html b/static/admin/config-video/index.html index b12b11528..d47d5307e 100644 --- a/static/admin/config-video/index.html +++ b/static/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file diff --git a/static/admin/hardware-info/index.html b/static/admin/hardware-info/index.html index 0c206e7f0..40ec90ef6 100644 --- a/static/admin/hardware-info/index.html +++ b/static/admin/hardware-info/index.html @@ -1,4 +1,4 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


Disk
0%
Loading...
\ No newline at end of file + a 47,47 0 1 1 0,94" stroke="" stroke-linecap="round" stroke-width="6" opacity="0" fill-opacity="0" style="stroke:#52C41A;stroke-dasharray:0px 295.3097094374406px;stroke-dashoffset:-37.5px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s">
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/admin/help/index.html b/static/admin/help/index.html index 73b700397..d62e153db 100644 --- a/static/admin/help/index.html +++ b/static/admin/help/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file diff --git a/static/admin/index.html b/static/admin/index.html index 78eeff252..554612e87 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
Not sure what to do next?
If you're having issues or would like to know how to customize and configure your Owncast server visit the help page.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
Not sure what to do next?
If you're having issues or would like to know how to customize and configure your Owncast server visit the help page.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/admin/logs/index.html b/static/admin/logs/index.html index f9345f3fb..bf0ab47da 100644 --- a/static/admin/logs/index.html +++ b/static/admin/logs/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/admin/upgrade/index.html b/static/admin/upgrade/index.html index 158f1bd69..6afab1192 100644 --- a/static/admin/upgrade/index.html +++ b/static/admin/upgrade/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file diff --git a/static/admin/viewer-info/index.html b/static/admin/viewer-info/index.html index 22b06c199..5920feb6d 100644 --- a/static/admin/viewer-info/index.html +++ b/static/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
no info
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
no info
\ No newline at end of file diff --git a/static/admin/webhooks/index.html b/static/admin/webhooks/index.html index 08edd06cb..ac3814689 100644 --- a/static/admin/webhooks/index.html +++ b/static/admin/webhooks/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file