From a40312d73338887ec71bbb72692283878cbbf266 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 24 Oct 2021 19:30:36 -0700 Subject: [PATCH] Update admin --- static/admin/404/index.html | 2 +- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 .../_next/static/chunks/36bcf0ca-afaab5d8fc9855302fe5.js | 1 - .../_next/static/chunks/36bcf0ca-b03b834a18251ff6dddd.js | 1 + ...40-e2546e86a9f097d6f20f.js => 935-7ec8a46efe41042eac70.js} | 2 +- static/admin/_next/static/chunks/937-6948bcb00194f10fdf0a.js | 1 - static/admin/_next/static/chunks/937-df4f5b16768c523009d5.js | 1 + ...p-167219d5d35204c4ec09.js => _app-c947d2c789ab8f849fdf.js} | 2 +- ...5fdf5dc1f90cc34e241.js => upgrade-67a0b6eae0000b451e71.js} | 2 +- .../admin/_next/static/chunks/webpack-01fbf37f26c703cf12b9.js | 1 - .../admin/_next/static/chunks/webpack-1a5c44823120600b791c.js | 1 + static/admin/access-tokens/index.html | 2 +- static/admin/actions/index.html | 2 +- static/admin/chat/messages/index.html | 2 +- static/admin/chat/users/index.html | 2 +- static/admin/config-chat/index.html | 2 +- static/admin/config-public-details/index.html | 2 +- static/admin/config-server-details/index.html | 2 +- static/admin/config-social-items/index.html | 2 +- static/admin/config-storage/index.html | 2 +- static/admin/config-video/index.html | 2 +- static/admin/hardware-info/index.html | 4 ++-- static/admin/help/index.html | 2 +- static/admin/index.html | 2 +- static/admin/logs/index.html | 2 +- static/admin/upgrade/index.html | 2 +- static/admin/viewer-info/index.html | 2 +- static/admin/webhooks/index.html | 2 +- 29 files changed, 26 insertions(+), 26 deletions(-) rename static/admin/_next/static/{et9lsGLFAlf7z_8i1CvAt => aV5DmR_lqF3vl1amQb-LC}/_buildManifest.js (83%) rename static/admin/_next/static/{et9lsGLFAlf7z_8i1CvAt => aV5DmR_lqF3vl1amQb-LC}/_ssgManifest.js (100%) delete mode 100644 static/admin/_next/static/chunks/36bcf0ca-afaab5d8fc9855302fe5.js create mode 100644 static/admin/_next/static/chunks/36bcf0ca-b03b834a18251ff6dddd.js rename static/admin/_next/static/chunks/{840-e2546e86a9f097d6f20f.js => 935-7ec8a46efe41042eac70.js} (93%) delete mode 100644 static/admin/_next/static/chunks/937-6948bcb00194f10fdf0a.js create mode 100644 static/admin/_next/static/chunks/937-df4f5b16768c523009d5.js rename static/admin/_next/static/chunks/pages/{_app-167219d5d35204c4ec09.js => _app-c947d2c789ab8f849fdf.js} (69%) rename static/admin/_next/static/chunks/pages/{upgrade-c5fdf5dc1f90cc34e241.js => upgrade-67a0b6eae0000b451e71.js} (94%) delete mode 100644 static/admin/_next/static/chunks/webpack-01fbf37f26c703cf12b9.js create mode 100644 static/admin/_next/static/chunks/webpack-1a5c44823120600b791c.js diff --git a/static/admin/404/index.html b/static/admin/404/index.html index 729c13fe8..4bd1a19b6 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/et9lsGLFAlf7z_8i1CvAt/_buildManifest.js b/static/admin/_next/static/aV5DmR_lqF3vl1amQb-LC/_buildManifest.js similarity index 83% rename from static/admin/_next/static/et9lsGLFAlf7z_8i1CvAt/_buildManifest.js rename to static/admin/_next/static/aV5DmR_lqF3vl1amQb-LC/_buildManifest.js index 19989660c..4284081fa 100644 --- a/static/admin/_next/static/et9lsGLFAlf7z_8i1CvAt/_buildManifest.js +++ b/static/admin/_next/static/aV5DmR_lqF3vl1amQb-LC/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,c,a,e,t,i,f,n,d,b,h,o,g){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,e,t,i,n,"static/chunks/598-7437ece12e3424a4109f.js","static/chunks/pages/index-23d5b2a721a8436d4fdd.js"],"/_error":["static/chunks/pages/_error-ea939aab753d9e9db3bd.js"],"/access-tokens":[s,c,a,"static/chunks/pages/access-tokens-105b570d7d09787e404c.js"],"/actions":[s,c,"static/chunks/pages/actions-877d508e9ce23f852ac6.js"],"/chat/messages":[d,s,c,a,i,b,"static/chunks/pages/chat/messages-fc5df5bade849ef7b755.js"],"/chat/users":[d,s,c,a,i,b,"static/chunks/pages/chat/users-99e2a8b6dbdf04af921c.js"],"/config-chat":["static/chunks/pages/config-chat-9e64011c5142bb4cde30.js"],"/config-public-details":[s,c,f,"static/css/daab8d18100466477c6d.css","static/chunks/361-11c54fbc23b235ad7af7.js","static/chunks/pages/config-public-details-3c26a3ed0000b5440538.js"],"/config-server-details":[h,"static/chunks/pages/config-server-details-d708db0714de42812fbd.js"],"/config-social-items":[s,c,"static/chunks/pages/config-social-items-a7f65f614734b1284dc5.js"],"/config-storage":["static/chunks/pages/config-storage-376cc500207ec51ed7bd.js"],"/config-video":[s,c,h,"static/chunks/364-d398b818a027a7a7eb4e.js","static/chunks/pages/config-video-d4c8ac1f1f5e2b10a1b2.js"],"/hardware-info":[o,a,e,t,f,g,"static/chunks/pages/hardware-info-f9651667f386dc8adc51.js"],"/help":[e,"static/chunks/334-7b22cd3bdbdd9b073ddd.js","static/chunks/pages/help-addeb25f330508a229ad.js"],"/logs":[s,a,n,"static/chunks/pages/logs-80d875f16adc4edd0cec.js"],"/upgrade":[s,"static/chunks/840-e2546e86a9f097d6f20f.js","static/chunks/pages/upgrade-c5fdf5dc1f90cc34e241.js"],"/viewer-info":[o,a,e,t,f,g,"static/chunks/pages/viewer-info-99bf5368ac1c24732e47.js"],"/webhooks":[s,c,"static/chunks/pages/webhooks-927f6b527b4234d4fa06.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/23-f55205d707e591f0168c.js","static/chunks/614-1e74c3ac41cdd8da7cad.js","static/chunks/924-f83c6a5efb63742cec73.js","static/chunks/689-35f2a306e6434b0319fd.js","static/chunks/277-523d880908ae13758a1f.js","static/chunks/354-90541e85108fb0b393fd.js","static/chunks/74-ef23b34310205aa6b8db.js","static/chunks/835-4646cc28de3139d4e0d8.js","static/chunks/29107295-62449f6ab50432c0efef.js","static/chunks/821-a0eee837a5aa58606b12.js","static/chunks/701-f32a6ed8ba8f13456f21.js","static/chunks/36bcf0ca-afaab5d8fc9855302fe5.js","static/chunks/937-6948bcb00194f10fdf0a.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,f,n,b,d,h,o,g){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,e,t,i,n,"static/chunks/598-7437ece12e3424a4109f.js","static/chunks/pages/index-23d5b2a721a8436d4fdd.js"],"/_error":["static/chunks/pages/_error-ea939aab753d9e9db3bd.js"],"/access-tokens":[s,c,a,"static/chunks/pages/access-tokens-105b570d7d09787e404c.js"],"/actions":[s,c,"static/chunks/pages/actions-877d508e9ce23f852ac6.js"],"/chat/messages":[b,s,c,a,i,d,"static/chunks/pages/chat/messages-fc5df5bade849ef7b755.js"],"/chat/users":[b,s,c,a,i,d,"static/chunks/pages/chat/users-99e2a8b6dbdf04af921c.js"],"/config-chat":["static/chunks/pages/config-chat-9e64011c5142bb4cde30.js"],"/config-public-details":[s,c,f,"static/css/daab8d18100466477c6d.css","static/chunks/361-11c54fbc23b235ad7af7.js","static/chunks/pages/config-public-details-3c26a3ed0000b5440538.js"],"/config-server-details":[h,"static/chunks/pages/config-server-details-d708db0714de42812fbd.js"],"/config-social-items":[s,c,"static/chunks/pages/config-social-items-a7f65f614734b1284dc5.js"],"/config-storage":["static/chunks/pages/config-storage-376cc500207ec51ed7bd.js"],"/config-video":[s,c,h,"static/chunks/364-d398b818a027a7a7eb4e.js","static/chunks/pages/config-video-d4c8ac1f1f5e2b10a1b2.js"],"/hardware-info":[o,a,e,t,f,g,"static/chunks/pages/hardware-info-f9651667f386dc8adc51.js"],"/help":[e,"static/chunks/334-7b22cd3bdbdd9b073ddd.js","static/chunks/pages/help-addeb25f330508a229ad.js"],"/logs":[s,a,n,"static/chunks/pages/logs-80d875f16adc4edd0cec.js"],"/upgrade":[s,"static/chunks/935-7ec8a46efe41042eac70.js","static/chunks/pages/upgrade-67a0b6eae0000b451e71.js"],"/viewer-info":[o,a,e,t,f,g,"static/chunks/pages/viewer-info-99bf5368ac1c24732e47.js"],"/webhooks":[s,c,"static/chunks/pages/webhooks-927f6b527b4234d4fa06.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/23-f55205d707e591f0168c.js","static/chunks/614-1e74c3ac41cdd8da7cad.js","static/chunks/924-f83c6a5efb63742cec73.js","static/chunks/689-35f2a306e6434b0319fd.js","static/chunks/277-523d880908ae13758a1f.js","static/chunks/354-90541e85108fb0b393fd.js","static/chunks/74-ef23b34310205aa6b8db.js","static/chunks/835-4646cc28de3139d4e0d8.js","static/chunks/29107295-62449f6ab50432c0efef.js","static/chunks/821-a0eee837a5aa58606b12.js","static/chunks/701-f32a6ed8ba8f13456f21.js","static/chunks/36bcf0ca-b03b834a18251ff6dddd.js","static/chunks/937-df4f5b16768c523009d5.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/admin/_next/static/et9lsGLFAlf7z_8i1CvAt/_ssgManifest.js b/static/admin/_next/static/aV5DmR_lqF3vl1amQb-LC/_ssgManifest.js similarity index 100% rename from static/admin/_next/static/et9lsGLFAlf7z_8i1CvAt/_ssgManifest.js rename to static/admin/_next/static/aV5DmR_lqF3vl1amQb-LC/_ssgManifest.js diff --git a/static/admin/_next/static/chunks/36bcf0ca-afaab5d8fc9855302fe5.js b/static/admin/_next/static/chunks/36bcf0ca-afaab5d8fc9855302fe5.js deleted file mode 100644 index 6c8d1decb..000000000 --- a/static/admin/_next/static/chunks/36bcf0ca-afaab5d8fc9855302fe5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[570],{53328:function(t,e,i){i.d(e,{kL:function(){return ne},zX:function(){return Ui}});var n=i(3940);var o=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const o=e.listeners[n],s=e.duration;o.forEach((n=>n({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(i-e.start,s)})))}_refresh(){const t=this;t._request||(t._running=!0,t._request=n.r.call(window,(()=>{t._update(),t._request=null,t._running&&t._refresh()})))}_update(t=Date.now()){const e=this;let i=0;e._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const s=n.items;let a,r=s.length-1,l=!1;for(;r>=0;--r)a=s[r],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),l=!0):(s[r]=s[s.length-1],s.pop());l&&(o.draw(),e._notify(o,n,t,"progress")),s.length||(n.running=!1,e._notify(o,n,t,"complete"),n.initial=!1),i+=s.length})),e._lastDate=t,0===i&&(e._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 n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const s="transparent",a={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const o=(0,n.c)(t||s),a=o.valid&&(0,n.c)(e||s);return a&&a.valid?a.mix(o,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class r{constructor(t,e,i,o){const s=e[i];o=(0,n.a)([t.to,o,s,t.from]);const r=(0,n.a)([t.from,s,o]);this._active=!0,this._fn=t.fn||a[t.type||typeof r],this._easing=n.e[t.easing]||n.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=o,this._promises=void 0}active(){return this._active}update(t,e,i){const o=this;if(o._active){o._notify(!1);const s=o._target[o._prop],a=i-o._start,r=o._duration-a;o._start=i,o._duration=Math.floor(Math.max(r,t.duration)),o._total+=a,o._loop=!!t.loop,o._to=(0,n.a)([t.to,e,s,t.from]),o._from=(0,n.a)([t.from,s,e])}}cancel(){const t=this;t._active&&(t.tick(Date.now()),t._active=!1,t._notify(!1))}tick(t){const e=this,i=t-e._start,n=e._duration,o=e._prop,s=e._from,a=e._loop,r=e._to;let l;if(e._active=s!==r&&(a||i1?2-l:l,l=e._easing(Math.min(1,Math.max(0,l))),e._target[o]=e._fn(s,r,l))}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 n=0;n"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),n.d.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),n.d.describe("animations",{_fallback:"animation"}),n.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 c{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,n.i)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const o=t[i];if(!(0,n.i)(o))return;const s={};for(const t of l)s[t]=o[t];((0,n.b)(o.properties)&&o.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,s)}))}))}_animateOptions(t,e){const i=e.options,n=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(!n)return[];const o=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let o=0;o{t.options=i}),(()=>{})),o}_createAnimations(t,e){const i=this._properties,n=[],o=t.$animations||(t.$animations={}),s=Object.keys(e),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if("$"===c.charAt(0))continue;if("options"===c){n.push(...this._animateOptions(t,e));continue}const h=e[c];let d=o[c];const u=i.get(c);if(d){if(u&&d.active()){d.update(u,h,a);continue}d.cancel()}u&&u.duration?(o[c]=d=new r(u,t,c,h),n.push(d)):t[c]=h}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(o.add(this._chart,i),!0):void 0}}function h(t,e){const i=t&&t.options||{},n=i.reverse,o=void 0===i.min?e:0,s=void 0===i.max?e:0;return{start:n?s:o,end:n?o:s}}function d(t,e){const i=[],n=t._getSortedDatasetMetas(e);let o,s;for(o=0,s=n.length;o0||!i&&e<0)return n.index}return null}function m(t,e){const{chart:i,_cachedMeta:n}=t,o=i._stacks||(i._stacks={}),{iScale:s,vScale:a,index:r}=n,l=s.axis,c=a.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(s,a,n),d=e.length;let u;for(let g=0;gi[t].axis===e)).shift()}function b(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][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,e=t._cachedMeta;t.configure(),t.linkScales(),e._stacked=g(e.vScale,e),t.addElements()}updateIndex(t){this.index!==t&&b(this._cachedMeta),this.index=t}linkScales(){const t=this,e=t.chart,i=t._cachedMeta,o=t.getDataset(),s=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,a=i.xAxisID=(0,n.v)(o.xAxisID,x(e,"x")),r=i.yAxisID=(0,n.v)(o.yAxisID,x(e,"y")),l=i.rAxisID=(0,n.v)(o.rAxisID,x(e,"r")),c=i.indexAxis,h=i.iAxisID=s(c,a,r,l),d=i.vAxisID=s(c,r,a,l);i.xScale=t.getScaleForId(a),i.yScale=t.getScaleForId(r),i.rScale=t.getScaleForId(l),i.iScale=t.getScaleForId(h),i.vScale=t.getScaleForId(d)}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,n.u)(this._data,this),t._stacked&&b(t)}_dataCheck(){const t=this,e=t.getDataset(),i=e.data||(e.data=[]),o=t._data;if((0,n.i)(i))t._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,o,s;for(n=0,o=e.length;n0&&o._parsed[t-1];if(!1===i._parsing)o._parsed=s,o._sorted=!0,d=s;else{d=(0,n.b)(s[t])?i.parseArrayData(o,s,t,e):(0,n.i)(s[t])?i.parseObjectData(o,s,t,e):i.parsePrimitiveData(o,s,t,e);const a=()=>null===h[l]||g&&h[l]x||g=0;--p)if(!b()){i.updateRangeFromParsed(h,t,m,c);break}return h}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let o,s,a;for(o=0,s=e.length;o=0&&to.getContext(i,s)),u);return f.$shared&&(f.$shared=c,a[r]=Object.freeze(y(f,c))),f}_resolveAnimations(t,e,i){const n=this,o=n.chart,s=n._cachedDataOpts,a=`animation-${e}`,r=s[a];if(r)return r;let l;if(!1!==o.options.animation){const o=n.chart.config,s=o.datasetAnimationScopeKeys(n._type,e),a=o.getOptionScopes(n.getDataset(),s);l=o.createResolver(a,n.getContext(t,i,e))}const h=new c(o,l&&l.animations);return l&&l._cacheable&&(s[a]=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,n){_(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!_(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}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,i=e._data,n=e._cachedMeta.data;for(const[r,l,c]of e._syncList)e[r](l,c);e._syncList=[];const o=n.length,s=i.length,a=Math.min(s,o);a&&e.parse(0,a),s>o?e._insertElements(o,s-o,t):s{for(t.length+=e,r=t.length-1;r>=a;r--)t[r]=t[r-e]};for(l(s),r=t;rt-e)))}return t._cache.$bar}(t);let i,o,s,a,r=t._length;const l=()=>{32767!==s&&-32768!==s&&((0,n.h)(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=e.length;iMath.abs(r)&&(l=r,c=a),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:s,min:a,max:r}}(t,e,i,o):e[i.axis]=i.parse(t,o),e}function k(t,e,i,n){const o=t.iScale,s=t.vScale,a=o.getLabels(),r=o===s,l=[];let c,h,d,u;for(c=i,h=i+n;ct.x,i="left",n="right"):(e=t.base=i?1:-1)}(u,i,r)*a,g===r&&(x-=u/2),d=x+u),x===i.getPixelForValue(r)){const t=(0,n.s)(u)*i.getLineWidthForValue(r)/2;x+=t,u-=t}return{size:u,base:x,head:d,center:d+u/2}}_calculateBarIndexPixels(t,e){const i=this,o=e.scale,s=i.options,a=s.skipNull,r=(0,n.v)(s.maxBarThickness,1/0);let l,c;if(e.grouped){const o=a?i._getStackCount(t):e.stackCount,h="flex"===s.barThickness?function(t,e,i,n){const o=e.pixels,s=o[t];let a=t>0?o[t-1]:null,r=t=0;--n)i=Math.max(i,t[n].size()/2,e[n]._custom);return i>0&&i}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,o=this.getParsed(t),s=i.getLabelForValue(o.x),a=n.getLabelForValue(o.y),r=o._custom;return{label:e.label,value:"("+s+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const o=this,s="reset"===n,{iScale:a,vScale:r}=o._cachedMeta,l=o.resolveDataElementOptions(e,n),c=o.getSharedOptions(l),h=o.includeOptions(n,c),d=a.axis,u=r.axis;for(let g=e;g""}}}};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;let o,s;for(o=t,s=t+e;o(0,n.o)(t,l,c,!0)?1:Math.max(e,e*i,o,o*i),f=(t,e,o)=>(0,n.o)(t,l,c,!0)?-1:Math.min(e,e*i,o,o*i),m=p(0,h,u),x=p(n.H,d,g),b=f(n.P,h,u),_=f(n.P+n.H,d,g);o=(m-b)/2,s=(x-_)/2,a=-(m+b)/2,r=-(x+_)/2}return{ratioX:o,ratioY:s,offsetX:a,offsetY:r}}(u,d,c),x=(o.width-r)/g,b=(o.height-r)/p,_=Math.max(Math.min(x,b)/2,0),y=(0,n.m)(e.options.radius,_),v=(y-Math.max(y*c,0))/e._getVisibleDatasetWeightTotal();e.offsetX=f*y,e.offsetY=m*y,s.total=e.calculateTotal(),e.outerRadius=y-v*e._getRingWeightOffset(e.index),e.innerRadius=Math.max(e.outerRadius-v*h,0),e.updateElements(a,0,a.length,t)}_circumference(t,e){const i=this,o=i.options,s=i._cachedMeta,a=i._getCircumference();return e&&o.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:i.calculateCircumference(s._parsed[t]*a/n.T)}updateElements(t,e,i,n){const o=this,s="reset"===n,a=o.chart,r=a.chartArea,l=a.options.animation,c=(r.left+r.right)/2,h=(r.top+r.bottom)/2,d=s&&l.animateScale,u=d?0:o.innerRadius,g=d?0:o.outerRadius,p=o.resolveDataElementOptions(e,n),f=o.getSharedOptions(p),m=o.includeOptions(n,f);let x,b=o._getRotation();for(x=0;x0&&!isNaN(t)?n.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,o=i.data.labels||[],s=(0,n.n)(e._parsed[t],i.options.locale);return{label:o[t]||"",value:s}}getMaxBorderWidth(t){const e=this;let i=0;const n=e.chart;let o,s,a,r,l;if(!t)for(o=0,s=n.data.datasets.length;o"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,n)=>{const o=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}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,n.b)(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class T extends v{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this,i=e._cachedMeta,{dataset:o,data:s=[],_dataset:a}=i,r=e.chart._animationsDisabled;let{start:l,count:c}=function(t,e,i){const o=e.length;let s=0,a=o;if(t._sorted){const{iScale:r,_parsed:l}=t,c=r.axis,{min:h,max:d,minDefined:u,maxDefined:g}=r.getUserBounds();u&&(s=(0,n.q)(Math.min((0,n.w)(l,r.axis,h).lo,i?o:(0,n.w)(e,c,r.getPixelForValue(h)).lo),0,o-1)),a=g?(0,n.q)(Math.max((0,n.w)(l,r.axis,d).hi+1,i?0:(0,n.w)(e,c,r.getPixelForValue(d)).hi+1),s,o)-s:o-s}return{start:s,count:a}}(i,s,r);e._drawStart=l,e._drawCount=c,function(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,o={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=o,!0;const s=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,o),s}(i)&&(l=0,c=s.length),o._datasetIndex=e.index,o._decimated=!!a._decimated,o.points=s;const h=e.resolveDatasetElementOptions(t);e.options.showLine||(h.borderWidth=0),h.segment=e.options.segment,e.updateElement(o,void 0,{animated:!r,options:h},t),e.updateElements(s,l,c,t)}updateElements(t,e,i,o){const s=this,a="reset"===o,{iScale:r,vScale:l,_stacked:c}=s._cachedMeta,h=s.resolveDataElementOptions(e,o),d=s.getSharedOptions(h),u=s.includeOptions(o,d),g=r.axis,p=l.axis,f=s.options.spanGaps,m=(0,n.p)(f)?f:Number.POSITIVE_INFINITY,x=s.chart._animationsDisabled||a||"none"===o;let b=e>0&&s.getParsed(e-1);for(let _=e;_0&&i[g]-b[g]>m,h.parsed=i,u&&(h.options=d||s.resolveDataElementOptions(_,e.active?"active":o)),x||s.updateElement(e,_,h,o),b=i}s.updateSharedOptions(d,o,h)}getMaxOverflow(){const t=this,e=t._cachedMeta,i=e.dataset,n=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const s=o[0].size(t.resolveDataElementOptions(0)),a=o[o.length-1].size(t.resolveDataElementOptions(o.length-1));return Math.max(n,s,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}T.id="line",T.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},T.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class E 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,o=i.data.labels||[],s=(0,n.n)(e._parsed[t].r,i.options.locale);return{label:o[t]||"",value:s}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this,e=t.chart,i=e.chartArea,n=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),s=Math.max(o/2,0),a=(s-Math.max(n.cutoutPercentage?s/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();t.outerRadius=s-a*t.index,t.innerRadius=t.outerRadius-a}updateElements(t,e,i,o){const s=this,a="reset"===o,r=s.chart,l=s.getDataset(),c=r.options.animation,h=s._cachedMeta.rScale,d=h.xCenter,u=h.yCenter,g=h.getIndexAngle(0)-.5*n.P;let p,f=g;const m=360/s.countVisibleElements();for(p=0;p{!isNaN(t.data[n])&&this.chart.getDataVisibility(n)&&i++})),i}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,n.t)(this.resolveDataElementOptions(t,e).angle||i):0}}E.id="polarArea",E.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},E.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,n)=>{const o=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}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 R extends O{}R.id="pie",R.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class z 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,i=e._cachedMeta,n=i.dataset,o=i.data||[],s=i.iScale.getLabels();if(n.points=o,"resize"!==t){const i=e.resolveDatasetElementOptions(t);e.options.showLine||(i.borderWidth=0);const a={_loop:!0,_fullLoop:s.length===o.length,options:i};e.updateElement(n,void 0,a,t)}e.updateElements(o,0,o.length,t)}updateElements(t,e,i,n){const o=this,s=o.getDataset(),a=o._cachedMeta.rScale,r="reset"===n;for(let l=e;l"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var I=Object.freeze({__proto__:null,BarController:A,BubbleController:L,DoughnutController:O,LineController:T,PolarAreaController:E,PieController:R,RadarController:z,ScatterController:F});function B(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class V{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()}}V.override=function(t){Object.assign(V.prototype,t)};var W={_date:V};function j(t,e){return"native"in t?{x:t.x,y:t.y}:(0,n.x)(t,e)}function H(t,e,i,o){const{controller:s,data:a,_sorted:r}=t,l=s._cachedMeta.iScale;if(l&&e===l.axis&&r&&a.length){const t=l._reversePixels?n.z:n.w;if(!o)return t(a,e,i);if(s._sharedOptions){const n=a[0],o="function"===typeof n.getRange&&n.getRange(e);if(o){const n=t(a,e,i-o),s=t(a,e,i+o);return{lo:n.lo,hi:s.hi}}}}return{lo:0,hi:a.length-1}}function N(t,e,i,n,o){const s=t.getSortedVisibleDatasetMetas(),a=i[e];for(let r=0,l=s.length;r{t[r](o[a],n)&&s.push({element:t,datasetIndex:e,index:i}),t.inRange(o.x,o.y,n)&&(l=!0)})),i.intersect&&!l?[]:s}var Y={modes:{index(t,e,i,n){const o=j(e,t),s=i.axis||"x",a=i.intersect?$(t,o,s,n):U(t,o,s,!1,n),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,n){const o=j(e,t),s=i.axis||"xy";let a=i.intersect?$(t,o,s,n):U(t,o,s,!1,n);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;t$(t,j(e,t),i.axis||"xy",n),nearest:(t,e,i,n)=>U(t,j(e,t),i.axis||"xy",i.intersect,n),x:(t,e,i,n)=>(i.axis="x",X(t,e,i,n)),y:(t,e,i,n)=>(i.axis="y",X(t,e,i,n))}};const q=["left","top","right","bottom"];function J(t,e){return t.filter((t=>t.pos===e))}function K(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 n=e?i:t,o=e?t:i;return n.weight===o.weight?n.index-o.index:n.weight-o.weight}))}function G(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:o}=i;if(!t||!q.includes(n))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let s,a,r;for(s=0,a=t.length;s{n[t]=Math.max(e[t],i[t])})),n}return n(t?["left","right"]:["top","bottom"])}function nt(t,e,i,n){const o=[];let s,a,r,l,c,h;for(s=0,a=t.length,c=0;st.box.fullSize)),!0),n=Z(J(e,"left"),!0),o=Z(J(e,"right")),s=Z(J(e,"top"),!0),a=Z(J(e,"bottom")),r=K(e,"x"),l=K(e,"y");return{fullSize:i,leftAndTop:n.concat(s),rightAndBottom:o.concat(l).concat(a).concat(r),chartArea:J(e,"chartArea"),vertical:n.concat(o).concat(l),horizontal:s.concat(a).concat(r)}}(t.boxes),c=l.vertical,h=l.horizontal;(0,n.B)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const d=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),g=Object.assign({},s);tt(g,(0,n.A)(o));const p=Object.assign({maxPadding:g,w:a,h:r,x:s.left,y:s.top},s),f=G(c.concat(h),u);nt(l.fullSize,p,u,f),nt(c,p,u,f),nt(h,p,u,f)&&nt(c,p,u,f),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),st(l.leftAndTop,p,u,f),p.x+=p.w,p.y+=p.h,st(l.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,n.B)(l.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h)}))}};class rt{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}}class lt extends rt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}}const ct={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ht=t=>null===t||""===t;const dt=!!n.G&&{passive:!0};function ut(t,e,i){t.canvas.removeEventListener(e,i,dt)}function gt(t,e,i){const o=t.canvas,s=o&&(0,n.D)(o)||o,a=new MutationObserver((t=>{const e=(0,n.D)(s);t.forEach((t=>{for(let n=0;n{t.forEach((t=>{for(let e=0;e{i.currentDevicePixelRatio!==t&&e()})))}function bt(t,e,i){const o=t.canvas,s=o&&(0,n.D)(o);if(!s)return;const a=(0,n.F)(((t,e)=>{const n=s.clientWidth;i(t,e),n{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||a(i,n)}));return r.observe(s),function(t,e){ft.size||window.addEventListener("resize",xt),ft.set(t,e)}(t,a),r}function _t(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){ft.delete(t),ft.size||window.removeEventListener("resize",xt)}(t)}function yt(t,e,i){const o=t.canvas,s=(0,n.F)((e=>{null!==t.ctx&&i(function(t,e){const i=ct[t.type]||t.type,{x:o,y:s}=(0,n.x)(t,e);return{type:i,chart:e,native:t,x:void 0!==o?o:null,y:void 0!==s?s:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,dt)}(o,e,s),s}class vt extends rt{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,o=t.getAttribute("height"),s=t.getAttribute("width");if(t.$chartjs={initial:{height:o,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",ht(s)){const e=(0,n.E)(t,"width");void 0!==e&&(t.width=e)}if(ht(o))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,n.E)(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 o=i[t];(0,n.j)(o)?e.removeAttribute(t):e.setAttribute(t,o)}));const o=i.style||{};return Object.keys(o).forEach((t=>{e.style[t]=o[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),o={attach:gt,detach:pt,resize:bt}[e]||yt;n[e]=o(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:_t,detach:_t,resize:_t}[e]||ut)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,o){return(0,n.C)(t,e,i,o)}isAttached(t){const e=(0,n.D)(t);return!(!e||!e.isConnected)}}class Mt{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,n.p)(this.x)&&(0,n.p)(this.y)}getProps(t,e){const i=this,n=this.$animations;if(!e||!n)return i;const o={};return t.forEach((t=>{o[t]=n[t]&&n[t].active()?n[t]._to:i[t]})),o}}Mt.defaults={},Mt.defaultRoutes=void 0;const wt={values:t=>(0,n.b)(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const o=this.chart.options.locale;let s,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)&&(s="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,n.J)(Math.abs(a)),l=Math.max(Math.min(-1*Math.floor(r),20),0),c={notation:s,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),(0,n.n)(t,o,c)},logarithmic(t,e,i){if(0===t)return"0";const o=t/Math.pow(10,Math.floor((0,n.J)(t)));return 1===o||2===o||5===o?wt.numeric.call(this,t,e,i):""}};var kt={formatters:wt};function St(t,e){const i=t.options.ticks,o=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),o=t._maxLength/i;return Math.floor(Math.min(n,o))}(t),s=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;io)return function(t,e,i,n){let o,s=0,a=i[0];for(n=Math.ceil(n),o=0;os)return t}return Math.max(s,1)}(s,e,o);if(a>0){let t,i;const o=a>1?Math.round((l-r)/(a-1)):null;for(Dt(e,c,h,(0,n.j)(o)?0:r-o,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:kt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.d.route("scale.ticks","color","","color"),n.d.route("scale.grid","color","","borderColor"),n.d.route("scale.grid","borderColor","","borderColor"),n.d.route("scale.title","color","","color"),n.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),n.d.describe("scales",{_fallback:"scale"}),n.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Pt=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function Ct(t,e){const i=[],n=t.length/e,o=t.length;let s=0;for(;sa+r)))return c}function Lt(t){return t.drawTicks?t.tickLength:0}function Ot(t,e){if(!t.display)return 0;const i=(0,n.X)(t.font,e),o=(0,n.A)(t.padding);return((0,n.b)(t.text)?t.text.length:1)*i.lineHeight+o.height}function Tt(t,e,i){let o=(0,n.Y)(t);return(i&&"right"!==e||!i&&"right"===e)&&(o=(t=>"left"===t?"right":"right"===t?"left":t)(o)),o}class Et extends Mt{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){const e=this;e.options=t.setContext(e.getContext()),e.axis=t.axis,e._userMin=e.parse(t.min),e._userMax=e.parse(t.max),e._suggestedMin=e.parse(t.suggestedMin),e._suggestedMax=e.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:o}=this;return t=(0,n.L)(t,Number.POSITIVE_INFINITY),e=(0,n.L)(e,Number.NEGATIVE_INFINITY),i=(0,n.L)(i,Number.POSITIVE_INFINITY),o=(0,n.L)(o,Number.NEGATIVE_INFINITY),{min:(0,n.L)(t,i),max:(0,n.L)(e,o),minDefined:(0,n.g)(t),maxDefined:(0,n.g)(e)}}getMinMax(t){const e=this;let i,{min:o,max:s,minDefined:a,maxDefined:r}=e.getUserBounds();if(a&&r)return{min:o,max:s};const l=e.getMatchingVisibleMetas();for(let n=0,c=l.length;n=a||o<=1||!t.isHorizontal())return void(t.labelRotation=s);const d=t._getLabelSizes(),u=d.widest.width,g=d.highest.height,p=(0,n.q)(t.chart.width-u,0,t.maxWidth);r=e.offset?t.maxWidth/o:p/(o-1),u+6>r&&(r=p/(o-(e.offset?.5:1)),l=t.maxHeight-Lt(e.grid)-i.padding-Ot(e.title,t.chart.options.font),c=Math.sqrt(u*u+g*g),h=(0,n.O)(Math.min(Math.asin((0,n.q)((d.highest.height+6)/r,-1,1)),Math.asin((0,n.q)(l/c,-1,1))-Math.asin((0,n.q)(g/c,-1,1)))),h=Math.max(s,Math.min(a,h))),t.labelRotation=h}afterCalculateLabelRotation(){(0,n.M)(this.options.afterCalculateLabelRotation,[this])}beforeFit(){(0,n.M)(this.options.beforeFit,[this])}fit(){const t=this,e={width:0,height:0},{chart:i,options:{ticks:o,title:s,grid:a}}=t,r=t._isVisible(),l=t.isHorizontal();if(r){const r=Ot(s,i.options.font);if(l?(e.width=t.maxWidth,e.height=Lt(a)+r):(e.height=t.maxHeight,e.width=Lt(a)+r),o.display&&t.ticks.length){const{first:i,last:s,widest:a,highest:r}=t._getLabelSizes(),c=2*o.padding,h=(0,n.t)(t.labelRotation),d=Math.cos(h),u=Math.sin(h);if(l){const i=o.mirror?0:u*a.width+d*r.height;e.height=Math.min(t.maxHeight,e.height+i+c)}else{const i=o.mirror?0:d*a.width+u*r.height;e.width=Math.min(t.maxWidth,e.width+i+c)}t._calculatePadding(i,s,u,d)}}t._handleMargins(),l?(t.width=t._length=i.width-t._margins.left-t._margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=i.height-t._margins.top-t._margins.bottom)}_calculatePadding(t,e,i,n){const o=this,{ticks:{align:s,padding:a},position:r}=o.options,l=0!==o.labelRotation,c="top"!==r&&"x"===o.axis;if(o.isHorizontal()){const r=o.getPixelForTick(0)-o.left,h=o.right-o.getPixelForTick(o.ticks.length-1);let d=0,u=0;l?c?(d=n*t.width,u=i*e.height):(d=i*t.height,u=n*e.width):"start"===s?u=e.width:"end"===s?d=t.width:(d=t.width/2,u=e.width/2),o.paddingLeft=Math.max((d-r+a)*o.width/(o.width-r),0),o.paddingRight=Math.max((u-h+a)*o.width/(o.width-h),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),o.paddingTop=i+a,o.paddingBottom=n+a}}_handleMargins(){const t=this;t._margins&&(t._margins.left=Math.max(t.paddingLeft,t._margins.left),t._margins.top=Math.max(t.paddingTop,t._margins.top),t._margins.right=Math.max(t.paddingRight,t._margins.right),t._margins.bottom=Math.max(t.paddingBottom,t._margins.bottom))}afterFit(){(0,n.M)(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){const e=this;let i,o;for(e.beforeTickToLabelConversion(),e.generateTickLabels(t),i=0,o=t.length;i{const i=t.gc,n=i.length/2;let o;if(n>e){for(o=0;o({width:s[t]||0,height:a[t]||0});return{first:M(0),last:M(e-1),widest:M(y),highest:M(v),widths:s,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){const e=this;e._reversePixels&&(t=1-t);const i=e._startPixel+t*e._length;return(0,n.R)(e._alignToPixels?(0,n.S)(e.chart,i,0):i)}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,i=e.ticks||[];if(t>=0&&tl*s?l/o:c/s:c*s0}_computeGridLineItems(t){const e=this,i=e.axis,o=e.chart,s=e.options,{grid:a,position:r}=s,l=a.offset,c=e.isHorizontal(),h=e.ticks.length+(l?1:0),d=Lt(a),u=[],g=a.setContext(e.getContext()),p=g.drawBorder?g.borderWidth:0,f=p/2,m=function(t){return(0,n.S)(o,t,p)};let x,b,_,y,v,M,w,k,S,D,P,C;if("top"===r)x=m(e.bottom),M=e.bottom-d,k=x-f,D=m(t.top)+f,C=t.bottom;else if("bottom"===r)x=m(e.top),D=t.top,C=m(t.bottom)-f,M=x+f,k=e.top+d;else if("left"===r)x=m(e.right),v=e.right-d,w=x-f,S=m(t.left)+f,P=t.right;else if("right"===r)x=m(e.left),S=t.left,P=m(t.right)-f,v=x+f,w=e.left+d;else if("x"===i){if("center"===r)x=m((t.top+t.bottom)/2+.5);else if((0,n.i)(r)){const t=Object.keys(r)[0],i=r[t];x=m(e.chart.scales[t].getPixelForValue(i))}D=t.top,C=t.bottom,M=x+f,k=M+d}else if("y"===i){if("center"===r)x=m((t.left+t.right)/2);else if((0,n.i)(r)){const t=Object.keys(r)[0],i=r[t];x=m(e.chart.scales[t].getPixelForValue(i))}v=x-f,w=v-d,S=t.left,P=t.right}const A=(0,n.v)(s.ticks.maxTicksLimit,h),L=Math.max(1,Math.ceil(h/A));for(b=0;be.value===t));if(n>=0){return i.setContext(e.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this,i=e.options.grid,n=e.ctx,o=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));let s,a;const r=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(i.display)for(s=0,a=o.length;s{const o=i.split("."),s=o.pop(),a=[t].concat(o).join("."),r=e[i].split("."),l=r.pop(),c=r.join(".");n.d.route(a,s,c,l)}))}(e,t.defaultRoutes);t.descriptors&&n.d.describe(e,t.descriptors)}(t,r,o),e.override&&n.d.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,o=this.scope;i in e&&delete e[i],o&&i in n.d[o]&&(delete n.d[o][i],this.override&&delete n.$[i])}}var zt=new class{constructor(){this.controllers=new Rt(v,"datasets",!0),this.elements=new Rt(Mt,"elements"),this.plugins=new Rt(Object,"plugins"),this.scales=new Rt(Et,"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){const o=this;[...e].forEach((e=>{const s=i||o._getRegistryForType(e);i||s.isForType(e)||s===o.plugins&&e.id?o._exec(t,s,e):(0,n.B)(e,(e=>{const n=i||o._getRegistryForType(e);o._exec(t,n,e)}))}))}_exec(t,e,i){const o=(0,n.a1)(t);(0,n.M)(i["before"+o],[],i),e[t](i),(0,n.M)(i["after"+o],[],i)}_getRegistryForType(t){for(let e=0;et.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function It(t,e){return e||!1!==t?!0===t?{}:t:null}function Bt(t,e,i,n){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(i,o);return t.createResolver(s,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Vt(t,e){const i=n.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Wt(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,n.v)(e.plugins,{}),e.scales=function(t,e){const i=n.$[t.type]||{scales:{}},o=e.scales||{},s=Vt(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(o).forEach((t=>{const e=o[t],l=Wt(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(l,s),h=i.scales||{};a[l]=a[l]||t,r[t]=(0,n.a7)(Object.create(null),[{axis:l},e,h[l],h[c]])})),t.data.datasets.forEach((i=>{const s=i.type||t.type,l=i.indexAxis||Vt(s,e),c=(n.$[s]||{}).scales||{};Object.keys(c).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,l),s=i[e+"AxisID"]||a[e]||e;r[s]=r[s]||Object.create(null),(0,n.a7)(r[s],[{axis:e},o[s],c[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];(0,n.a7)(e,[n.d.scales[e.type],n.d.scale])})),r}(t,e)}function Ht(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Nt=new Map,$t=new Set;function Ut(t,e){let i=Nt.get(t);return i||(i=e(),Nt.set(t,i),$t.add(i)),i}const Xt=(t,e,i)=>{const o=(0,n.f)(e,i);void 0!==o&&t.add(o)};class Yt{constructor(t){this._config=function(t){return(t=t||{}).data=Ht(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=Ht(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 Ut(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Ut(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Ut(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Ut(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:o,type:s}=this,a=this._cachedScopes(t,i),r=a.get(e);if(r)return r;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>Xt(l,t,e)))),e.forEach((t=>Xt(l,o,t))),e.forEach((t=>Xt(l,n.$[s]||{},t))),e.forEach((t=>Xt(l,n.d,t))),e.forEach((t=>Xt(l,n.a2,t)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),$t.has(e)&&a.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,n.$[e]||{},n.d.datasets[e]||{},{type:e},n.d,n.a2]}resolveNamedOptions(t,e,i,o=[""]){const s={$shared:!0},{resolver:a,subPrefixes:r}=qt(this._resolverCache,t,o);let l=a;if(function(t,e){const{isScriptable:i,isIndexable:o}=(0,n.a6)(t);for(const s of e)if(i(s)&&(0,n.a3)(t[s])||o(s)&&(0,n.b)(t[s]))return!0;return!1}(a,e)){s.$shared=!1,i=(0,n.a3)(i)?i():i;const e=this.createResolver(t,i,r);l=(0,n.a4)(a,i,e)}for(const n of e)s[n]=l[n];return s}createResolver(t,e,i=[""],o){const{resolver:s}=qt(this._resolverCache,t,i);return(0,n.i)(e)?(0,n.a4)(s,e,void 0,o):s}}function qt(t,e,i){let o=t.get(e);o||(o=new Map,t.set(e,o));const s=i.join();let a=o.get(s);if(!a){a={resolver:(0,n.a5)(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},o.set(s,a)}return a}const Jt=["top","bottom","left","right","chartArea"];function Kt(t,e){return"top"===t||"bottom"===t||-1===Jt.indexOf(t)&&"x"===e}function Zt(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function Gt(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,n.M)(i&&i.onComplete,[t],e)}function Qt(t){const e=t.chart,i=e.options.animation;(0,n.M)(i&&i.onProgress,[t],e)}function te(t){return(0,n.I)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ee={},ie=t=>{const e=te(t);return Object.values(ee).filter((t=>t.canvas===e)).pop()};class ne{constructor(t,e){const i=this,s=this.config=new Yt(e),a=te(t),r=ie(a);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas can be reused.");const l=s.createResolver(s.chartOptionScopes(),i.getContext());this.platform=new(s.platform||function(t){return!(0,n.I)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?lt:vt}(a));const c=i.platform.acquireContext(a,l.aspectRatio),h=c&&c.canvas,d=h&&h.height,u=h&&h.width;this.id=(0,n.a8)(),this.ctx=c,this.canvas=h,this.width=u,this.height=d,this._options=l,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 Ft,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,n.a9)((()=>this.update("resize")),l.resizeDelay||0),ee[i.id]=i,c&&h?(o.listen(i,"complete",Gt),o.listen(i,"progress",Qt),i._initialize(),i.attached&&i.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:o,_aspectRatio:s}=this;return(0,n.j)(t)?e&&s?s:o?i/o: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(){const t=this;return t.notifyPlugins("beforeInit"),t.options.responsive?t.resize():(0,n.aa)(t,t.options.devicePixelRatio),t.bindEvents(),t.notifyPlugins("afterInit"),t}clear(){return(0,n.ab)(this.canvas,this.ctx),this}stop(){return o.stop(this),this}resize(t,e){o.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this,o=i.options,s=i.canvas,a=o.maintainAspectRatio&&i.aspectRatio,r=i.platform.getMaximumSize(s,t,e,a),l=o.devicePixelRatio||i.platform.getDevicePixelRatio();i.width=r.width,i.height=r.height,i._aspectRatio=i.aspectRatio,(0,n.aa)(i,l,!0)&&(i.notifyPlugins("resize",{size:r}),(0,n.M)(o.onResize,[i,r],i),i.attached&&i._doResize()&&i.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,n.B)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this,e=t.options,i=e.scales,o=t.scales,s=Object.keys(o).reduce(((t,e)=>(t[e]=!1,t)),{});let a=[];i&&(a=a.concat(Object.keys(i).map((t=>{const e=i[t],n=Wt(t,e),o="r"===n,s="x"===n;return{options:e,dposition:o?"chartArea":s?"bottom":"left",dtype:o?"radialLinear":s?"category":"linear"}})))),(0,n.B)(a,(i=>{const a=i.options,r=a.id,l=Wt(r,a),c=(0,n.v)(a.type,i.dtype);void 0!==a.position&&Kt(a.position,l)===Kt(i.dposition)||(a.position=i.dposition),s[r]=!0;let h=null;if(r in o&&o[r].type===c)h=o[r];else{h=new(zt.getScale(c))({id:r,type:c,ctx:t.ctx,chart:t}),o[h.id]=h}h.init(a,e)})),(0,n.B)(s,((t,e)=>{t||delete o[e]})),(0,n.B)(o,(e=>{at.configure(t,e,e.options),at.addBox(t,e)}))}_updateMetasets(){const t=this,e=t._metasets,i=t.data.datasets.length,n=e.length;if(e.sort(((t,e)=>t.index-e.index)),n>i){for(let e=i;ei.length&&delete t._stacks,e.forEach(((e,n)=>{0===i.filter((t=>t===e._dataset)).length&&t._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=this,e=[],i=t.data.datasets;let o,s;for(t._removeUnreferencedMetasets(),o=0,s=i.length;o{t.getDatasetMeta(i).controller.reset()}),t)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this,i=e.config;i.update(),e._options=i.createResolver(i.chartOptionScopes(),e.getContext()),(0,n.B)(e.scales,(t=>{at.removeBox(e,t)}));const o=e._animationsDisabled=!e.options.animation;e.ensureScalesHaveIDs(),e.buildOrUpdateScales();const s=new Set(Object.keys(e._listeners)),a=new Set(e.options.events);if((0,n.ac)(s,a)&&!!this._responsiveListeners===e.options.responsive||(e.unbindEvents(),e.bindEvents()),e._plugins.invalidate(),!1===e.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=e.buildOrUpdateControllers();e.notifyPlugins("beforeElementsUpdate");let l=0;for(let n=0,c=e.data.datasets.length;n{t.reset()})),e._updateDatasets(t),e.notifyPlugins("afterUpdate",{mode:t}),e._layers.sort(Zt("z","_idx")),e._lastEvent&&e._eventHandler(e._lastEvent,!0),e.render()}_updateLayout(t){const e=this;if(!1===e.notifyPlugins("beforeLayout",{cancelable:!0}))return;at.update(e,e.width,e.height,t);const i=e.chartArea,o=i.width<=0||i.height<=0;e._layers=[],(0,n.B)(e.boxes,(t=>{o&&"chartArea"===t.position||(t.configure&&t.configure(),e._layers.push(...t._layers()))}),e),e._layers.forEach(((t,e)=>{t._idx=e})),e.notifyPlugins("afterLayout")}_updateDatasets(t){const e=this,i="function"===typeof t;if(!1!==e.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let n=0,o=e.data.datasets.length;n=0;--i)t._drawDataset(e[i]);t.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this,i=e.ctx,o=t._clip,s=!o.disabled,a=e.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==e.notifyPlugins("beforeDatasetDraw",r)&&(s&&(0,n.U)(i,{left:!1===o.left?0:a.left-o.left,right:!1===o.right?e.width:a.right+o.right,top:!1===o.top?0:a.top-o.top,bottom:!1===o.bottom?e.height:a.bottom+o.bottom}),t.controller.draw(),s&&(0,n.W)(i),r.cancelable=!1,e.notifyPlugins("afterDatasetDraw",r))}getElementsAtEventForMode(t,e,i,n){const o=Y.modes[e];return"function"===typeof o?o(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter((t=>t&&t._dataset===e)).pop();return n||(n={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(n)),n}getContext(){return this.$context||(this.$context={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 o=this,s=i?"show":"hide",a=o.getDatasetMeta(t),r=a.controller._resolveAnimations(void 0,s);(0,n.h)(e)?(a.data[e].hidden=!i,o.update()):(o.setDatasetVisibility(t,i),r.update(a,{visible:i}),o.update((e=>e.datasetIndex===t?s:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this,i=e._metasets&&e._metasets[t];i&&i.controller&&(i.controller._destroy(),delete e._metasets[t])}destroy(){const t=this,{canvas:e,ctx:i}=t;let s,a;for(t.stop(),o.remove(t),s=0,a=t.data.datasets.length;s((n,o)=>{i.addEventListener(t,n,o),e[n]=o})(n,o)))}bindResponsiveEvents(){const t=this;t._responsiveListeners||(t._responsiveListeners={});const e=t._responsiveListeners,i=t.platform,n=(n,o)=>{i.addEventListener(t,n,o),e[n]=o},o=(n,o)=>{e[n]&&(i.removeEventListener(t,n,o),delete e[n])},s=(e,i)=>{t.canvas&&t.resize(e,i)};let a;const r=()=>{o("attach",r),t.attached=!0,t.resize(),n("resize",s),n("detach",a)};a=()=>{t.attached=!1,o("resize",s),n("attach",r)},i.isAttached(t.canvas)?r():a()}unbindEvents(){const t=this;(0,n.B)(t._listeners,((e,i)=>{t.platform.removeEventListener(t,i,e)})),t._listeners={},(0,n.B)(t._responsiveListeners,((e,i)=>{t.platform.removeEventListener(t,i,e)})),t._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let o,s,a,r;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,r=t.length;a{const n=e.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[i],index:i}}));!(0,n.ad)(o,i)&&(e._active=o,e._updateHoverStyles(o,i))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this,o=n.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),a=s(e,t),r=i?t:s(t,e);a.length&&n.updateHoverStyle(a,o.mode,!1),r.length&&o.mode&&n.updateHoverStyle(r,o.mode,!0)}_eventHandler(t,e){const i=this,n={event:t,replay:e,cancelable:!0},o=e=>(e.options.events||this.options.events).includes(t.type);if(!1===i.notifyPlugins("beforeEvent",n,o))return;const s=i._handleEvent(t,e);return n.cancelable=!1,i.notifyPlugins("afterEvent",n,o),(s||n.changed)&&i.render(),i}_handleEvent(t,e){const i=this,{_active:o=[],options:s}=i,a=s.hover,r=e;let l=[],c=!1,h=null;return"mouseout"!==t.type&&(l=i.getElementsAtEventForMode(t,a.mode,a,r),h="click"===t.type?i._lastEvent:t),i._lastEvent=null,(0,n.y)(t,i.chartArea,i._minPadding)&&((0,n.M)(s.onHover,[t,l,i],i),"mouseup"!==t.type&&"click"!==t.type&&"contextmenu"!==t.type||(0,n.M)(s.onClick,[t,l,i],i)),c=!(0,n.ad)(l,o),(c||e)&&(i._active=l,i._updateHoverStyles(l,o,e)),i._lastEvent=h,c}}const oe=()=>(0,n.B)(ne.instances,(t=>t._plugins.invalidate())),se=!0;function ae(t,e,i){const{startAngle:o,pixelMargin:s,x:a,y:r,outerRadius:l,innerRadius:c}=e;let h=s/l;t.beginPath(),t.arc(a,r,l,o-h,i+h),c>s?(h=s/c,t.arc(a,r,c,i+h,o-h,!0)):t.arc(a,r,s,i+n.H,o-n.H),t.closePath(),t.clip()}function re(t,e,i,o){const s=(a=t.options.borderRadius,(0,n.af)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const r=(i-e)/2,l=Math.min(r,o*e/2),c=t=>{const e=(i-Math.min(r,t))*o/2;return(0,n.q)(t,0,Math.min(r,e))};return{outerStart:c(s.outerStart),outerEnd:c(s.outerEnd),innerStart:(0,n.q)(s.innerStart,0,l),innerEnd:(0,n.q)(s.innerEnd,0,l)}}function le(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function ce(t,e,i,o,s){const{x:a,y:r,startAngle:l,pixelMargin:c,innerRadius:h}=e,d=Math.max(e.outerRadius+o+i-c,0),u=h>0?h+o+i+c:0;let g=0;const p=s-l;if(o){const t=((h>0?h-o:0)+(d>0?d-o:0))/2;g=(p-(0!==t?p*t/(t+o):p))/2}const f=(p-Math.max(.001,p*d-i/n.P)/d)/2,m=l+f+g,x=s-f-g,{outerStart:b,outerEnd:_,innerStart:y,innerEnd:v}=re(e,u,d,x-m),M=d-b,w=d-_,k=m+b/M,S=x-_/w,D=u+y,P=u+v,C=m+y/D,A=x-v/P;if(t.beginPath(),t.arc(a,r,d,k,S),_>0){const e=le(w,S,a,r);t.arc(e.x,e.y,_,S,x+n.H)}const L=le(P,x,a,r);if(t.lineTo(L.x,L.y),v>0){const e=le(P,A,a,r);t.arc(e.x,e.y,v,x+n.H,A+Math.PI)}if(t.arc(a,r,u,x-v/u,m+y/u,!0),y>0){const e=le(D,C,a,r);t.arc(e.x,e.y,y,C+Math.PI,m-n.H)}const O=le(M,m,a,r);if(t.lineTo(O.x,O.y),b>0){const e=le(M,k,a,r);t.arc(e.x,e.y,b,m-n.H,k)}t.closePath()}function he(t,e,i,o,s){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:o,y:s,startAngle:a,pixelMargin:r,fullCircles:l}=e,c=Math.max(e.outerRadius-r,0),h=e.innerRadius+r;let d;for(i&&ae(t,e,a+n.T),t.beginPath(),t.arc(o,s,h,a+n.T,a,!0),d=0;d{zt.add(...t),oe()}},unregister:{enumerable:se,value:(...t)=>{zt.remove(...t),oe()}}});class de extends Mt{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 o=this.getProps(["x","y"],i),{angle:s,distance:a}=(0,n.ae)(o,{x:t,y:e}),{startAngle:r,endAngle:l,innerRadius:c,outerRadius:h,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2;return(d>=n.T||(0,n.o)(s,r,l))&&(a>=c+u&&a<=h+u)}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,c=(n+o)/2,h=(s+a+l+r)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const e=this,{options:i,circumference:o}=e,s=(i.offset||0)/2,a=(i.spacing||0)/2;if(e.pixelMargin="inner"===i.borderAlign?.33:0,e.fullCircles=o>n.T?Math.floor(o/n.T):0,0===o||e.innerRadius<0||e.outerRadius<0)return;t.save();let r=0;if(s){r=s/2;const i=(e.startAngle+e.endAngle)/2;t.translate(Math.cos(i)*r,Math.sin(i)*r),e.circumference>=n.P&&(r=s)}t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor;const l=function(t,e,i,o){const{fullCircles:s,startAngle:a,circumference:r}=e;let l=e.endAngle;if(s){ce(t,e,i,o,a+n.T);for(let e=0;er&&s>r;return{count:n,start:l,loop:e.loop,ilen:c(a+(c?r-t:t))%s,_=()=>{g!==p&&(t.lineTo(m,p),t.lineTo(m,g),t.lineTo(m,f))};for(l&&(d=o[b(0)],t.moveTo(d.x,d.y)),h=0;h<=r;++h){if(d=o[b(h)],d.skip)continue;const e=d.x,i=d.y,n=0|e;n===u?(ip&&(p=i),m=(x*m+e)/++x):(_(),t.lineTo(e,i),u=n,x=0,g=p=i),f=i}_()}function xe(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i?me:fe}de.id="arc",de.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},de.defaultRoutes={backgroundColor:"backgroundColor"};const be="function"===typeof Path2D;function _e(t,e,i,n){be&&1===e.segments.length?function(t,e,i,n){let o=e._path;o||(o=e._path=new Path2D,e.path(o,i,n)&&o.closePath()),ue(t,e.options),t.stroke(o)}(t,e,i,n):function(t,e,i,n){const{segments:o,options:s}=e,a=xe(e);for(const r of o)ue(t,s,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class ye extends Mt{constructor(t){super(),this.animated=!0,this.options=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,o=i.options;if((o.tension||"monotone"===o.cubicInterpolationMode)&&!o.stepped&&!i._pointsUpdated){const s=o.spanGaps?i._loop:i._fullLoop;(0,n.ag)(i._points,o,t,s,e),i._pointsUpdated=!0}}set points(t){const e=this;e._points=t,delete e._segments,delete e._path,e._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,n.ah)(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,o=i.options,s=t[e],a=i.points,r=(0,n.ai)(i,{property:e,start:s,end:s});if(!r.length)return;const l=[],c=function(t){return t.stepped?n.aj:t.tension||"monotone"===t.cubicInterpolationMode?n.ak:n.al}(o);let h,d;for(h=0,d=r.length;h"borderDash"!==t&&"fill"!==t};class Me extends Mt{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 n=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(t-o,2)+Math.pow(e-s,2)=a.left&&e<=a.right)&&(s||i>=a.top&&i<=a.bottom)}function Pe(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ce(t,e,i={}){const n=t.x!==i.x?-e:0,o=t.y!==i.y?-e:0,s=(t.x+t.w!==i.x+i.w?e:0)-n,a=(t.y+t.h!==i.y+i.h?e:0)-o;return{x:t.x+n,y:t.y+o,w:t.w+s,h:t.h+a,radius:t.radius}}Me.id="point",Me.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Me.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Ae extends Mt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,t&&Object.assign(this,t)}draw(t){const e=this.options,{inner:i,outer:o}=Se(this),s=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?n.ap:Pe;var a;const r=.33;t.save(),o.w===i.w&&o.h===i.h||(t.beginPath(),s(t,Ce(o,r,i)),t.clip(),s(t,Ce(i,-.33,o)),t.fillStyle=e.borderColor,t.fill("evenodd")),t.beginPath(),s(t,Ce(i,r,o)),t.fillStyle=e.backgroundColor,t.fill(),t.restore()}inRange(t,e,i){return De(this,t,e,i)}inXRange(t,e){return De(this,t,null,e)}inYRange(t,e){return De(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+n)/2:e,y:o?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Ae.id="bar",Ae.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},Ae.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Le=Object.freeze({__proto__:null,ArcElement:de,LineElement:ye,PointElement:Me,BarElement:Ae});function Oe(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Te(t){t.data.datasets.forEach((t=>{Oe(t)}))}var Ee={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Te(t);const o=t.width;t.data.datasets.forEach(((e,s)=>{const{_data:a,indexAxis:r}=e,l=t.getDatasetMeta(s),c=a||e.data;if("y"===(0,n.a)([r,t.options.indexAxis]))return;if("line"!==l.type)return;const h=t.scales[l.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let o,s=0;const{iScale:a}=t,{min:r,max:l,minDefined:c,maxDefined:h}=a.getUserBounds();return c&&(s=(0,n.q)((0,n.w)(e,a.axis,r).lo,0,i-1)),o=h?(0,n.q)((0,n.w)(e,a.axis,l).hi+1,s,i)-s:i-s,{start:s,count:o}}(l,c);if(u<=(i.threshold||4*o))return void Oe(e);let g;switch((0,n.j)(a)&&(e._data=c,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,n,o){const s=o.samples||n;if(s>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(s-2);let l=0;const c=e+i-1;let h,d,u,g,p,f=e;for(a[l++]=t[f],h=0;hu&&(u=g,d=t[n],p=n);a[l++]=d,f=p}return a[l++]=t[c],a}(c,d,u,o,i);break;case"min-max":g=function(t,e,i,o){let s,a,r,l,c,h,d,u,g,p,f=0,m=0;const x=[],b=e+i-1,_=t[e].x,y=t[b].x-_;for(s=e;sp&&(p=l,d=s),f=(m*f+a.x)/++m;else{const i=s-1;if(!(0,n.j)(h)&&!(0,n.j)(d)){const e=Math.min(h,d),n=Math.max(h,d);e!==u&&e!==i&&x.push({...t[e],x:f}),n!==u&&n!==i&&x.push({...t[n],x:f})}s>0&&i!==u&&x.push(t[i]),x.push(a),c=e,m=0,g=p=l,h=d=u=s}}return x}(c,d,u,o);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=g}))},destroy(t){Te(t)}};function Re(t,e,i){const o=function(t){const e=t.options,i=e.fill;let o=(0,n.v)(i&&i.target,i);return void 0===o&&(o=!!e.backgroundColor),!1!==o&&null!==o&&(!0===o?"origin":o)}(t);if((0,n.i)(o))return!isNaN(o.value)&&o;let s=parseFloat(o);return(0,n.g)(s)&&Math.floor(s)===s?("-"!==o[0]&&"+"!==o[0]||(s=e+s),!(s===e||s<0||s>=i)&&s):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}class ze{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:o,y:s,radius:a}=this;return e=e||{start:0,end:n.T},t.arc(o,s,a,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,o=t.angle;return{x:e+Math.cos(o)*n,y:i+Math.sin(o)*n,angle:o}}}function Fe(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,o=e.options,s=e.getLabels().length,a=[],r=o.reverse?e.max:e.min,l=o.reverse?e.min:e.max;let c,h,d;if(d="start"===i?r:"end"===i?l:(0,n.i)(i)?i.value:e.getBaseValue(),o.grid.circular)return h=e.getPointPositionForValue(0,r),new ze({x:h.x,y:h.y,radius:e.getDistanceFromCenterForValue(d)});for(c=0;ct;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Be(t){const{chart:e,scale:i,index:n,line:o}=t,s=[],a=o.segments,r=o.points,l=function(t,e){const i=[],n=t.getSortedVisibleDatasetMetas();for(let o=0;o"line"===t.type&&!t.hidden;function We(t,e,i){const n=[];for(let o=0;o=e&&o<=n){r=o===e,l=o===n;break}}return{first:r,last:l,point:n}}function He(t,e){let i=[],o=!1;return(0,n.b)(t)?(o=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},o=e.points,s=[];return e.segments.forEach((({start:t,end:e})=>{e=Ie(t,e,o);const a=o[t],r=o[e];null!==n?(s.push({x:a.x,y:n}),s.push({x:r.x,y:n})):null!==i&&(s.push({x:i,y:a.y}),s.push({x:i,y:r.y}))})),s}(t,e),i.length?new ye({points:i,options:{tension:0},_loop:o,_fullLoop:o}):null}function Ne(t,e,i){let o=t[e].fill;const s=[e];let a;if(!i)return o;for(;!1!==o&&-1===s.indexOf(o);){if(!(0,n.g)(o))return o;if(a=t[o],!a)return!1;if(a.visible)return o;s.push(o),o=a.fill}return!1}function $e(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 Ue(t,e,i,o){if(o)return;let s=e[t],a=i[t];return"angle"===t&&(s=(0,n.at)(s),a=(0,n.at)(a)),{property:t,start:s,end:a}}function Xe(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function Ye(t,e,i){const{top:n,bottom:o}=e.chart.chartArea,{property:s,start:a,end:r}=i||{};"x"===s&&(t.beginPath(),t.rect(a,n,r-a,o-n),t.clip())}function qe(t,e,i,n){const o=e.interpolate(i,n);o&&t.lineTo(o.x,o.y)}function Je(t,e){const{line:i,target:o,property:s,color:a,scale:r}=e,l=function(t,e,i){const o=t.segments,s=t.points,a=e.points,r=[];for(const l of o){let{start:t,end:o}=l;o=Ie(t,o,s);const c=Ue(i,s[t],s[o],l.loop);if(!e.segments){r.push({source:l,target:c,start:s[t],end:s[o]});continue}const h=(0,n.ai)(e,c);for(const e of h){const t=Ue(i,a[e.start],a[e.end],e.loop),o=(0,n.as)(l,s,t);for(const n of o)r.push({source:n,target:e,start:{[i]:Xe(c,t,"start",Math.max)},end:{[i]:Xe(c,t,"end",Math.min)}})}}return r}(i,o,s);for(const{source:n,target:c,start:h,end:d}of l){const{style:{backgroundColor:e=a}={}}=n,l=!0!==o;t.save(),t.fillStyle=e,Ye(t,r,l&&Ue(s,h,d)),t.beginPath();const u=!!i.pathSegment(t,n);let g;if(l){u?t.closePath():qe(t,o,d,s);const e=!!o.pathSegment(t,c,{move:u,reverse:!0});g=u&&e,g||qe(t,o,h,s)}t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}function Ke(t,e,i){const o=function(t){const{chart:e,fill:i,line:o}=t;if((0,n.g)(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return Be(t);if("shape"===i)return!0;const s=Fe(t);return s instanceof ze?s:He(s,o)}(e),{line:s,scale:a,axis:r}=e,l=s.options,c=l.fill,h=l.backgroundColor,{above:d=h,below:u=h}=c||{};o&&s.points.length&&((0,n.U)(t,i),function(t,e){const{line:i,target:n,above:o,below:s,area:a,scale:r}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&s!==o&&($e(t,n,a.top),Je(t,{line:i,target:n,color:o,scale:r,property:l}),t.restore(),t.save(),$e(t,n,a.bottom)),Je(t,{line:i,target:n,color:s,scale:r,property:l}),t.restore()}(t,{line:s,target:o,above:d,below:u,area:i,scale:a,axis:r}),(0,n.W)(t))}var Ze={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,o=[];let s,a,r,l;for(a=0;a=0;--a){const e=o[a].$filler;e&&(e.line.updateControlPoints(s,e.axis),n&&Ke(t.ctx,e,s))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o){const e=n[o].$filler;e&&Ke(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;n&&!1!==n.fill&&"beforeDatasetDraw"===i.drawTime&&Ke(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ge=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class Qe extends Mt{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){const n=this;n.maxWidth=t,n.maxHeight=e,n._margins=i,n.setDimensions(),n.buildLabels(),n.fit()}setDimensions(){const t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=t._margins.left,t.right=t.width):(t.height=t.maxHeight,t.top=t._margins.top,t.bottom=t.height)}buildLabels(){const t=this,e=t.options.labels||{};let i=(0,n.M)(e.generateLabels,[t.chart],t)||[];e.filter&&(i=i.filter((i=>e.filter(i,t.chart.data)))),e.sort&&(i=i.sort(((i,n)=>e.sort(i,n,t.chart.data)))),t.options.reverse&&i.reverse(),t.legendItems=i}fit(){const t=this,{options:e,ctx:i}=t;if(!e.display)return void(t.width=t.height=0);const o=e.labels,s=(0,n.X)(o.font),a=s.size,r=t._computeTitleHeight(),{boxWidth:l,itemHeight:c}=Ge(o,a);let h,d;i.font=s.string,t.isHorizontal()?(h=t.maxWidth,d=t._fitRows(r,a,l,c)+10):(d=t.maxHeight,h=t._fitCols(r,a,l,c)+10),t.width=Math.min(h,e.maxWidth||t.maxWidth),t.height=Math.min(d,e.maxHeight||t.maxHeight)}_fitRows(t,e,i,n){const o=this,{ctx:s,maxWidth:a,options:{labels:{padding:r}}}=o,l=o.legendHitBoxes=[],c=o.lineWidths=[0],h=n+r;let d=t;s.textAlign="left",s.textBaseline="middle";let u=-1,g=-h;return o.legendItems.forEach(((t,o)=>{const p=i+e/2+s.measureText(t.text).width;(0===o||c[c.length-1]+p+2*r>a)&&(d+=h,c[c.length-(o>0?0:1)]=0,g+=h,u++),l[o]={left:0,top:g,row:u,width:p,height:n},c[c.length-1]+=p+r})),d}_fitCols(t,e,i,n){const o=this,{ctx:s,maxHeight:a,options:{labels:{padding:r}}}=o,l=o.legendHitBoxes=[],c=o.columnSizes=[],h=a-t;let d=r,u=0,g=0,p=0,f=0;return o.legendItems.forEach(((t,o)=>{const a=i+e/2+s.measureText(t.text).width;o>0&&g+n+2*r>h&&(d+=u+r,c.push({width:u,height:g}),p+=u+r,f++,u=g=0),l[o]={left:p,top:g,col:f,width:a,height:n},u=Math.max(u,a),g+=n+r})),d+=u,c.push({width:u,height:g}),d}adjustHitBoxes(){const t=this;if(!t.options.display)return;const e=t._computeTitleHeight(),{legendHitBoxes:i,options:{align:o,labels:{padding:s},rtl:a}}=t,r=(0,n.au)(a,t.left,t.width);if(this.isHorizontal()){let a=0,l=(0,n.Z)(o,t.left+s,t.right-t.lineWidths[a]);for(const c of i)a!==c.row&&(a=c.row,l=(0,n.Z)(o,t.left+s,t.right-t.lineWidths[a])),c.top+=t.top+e+s,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+s}else{let a=0,l=(0,n.Z)(o,t.top+e+s,t.bottom-t.columnSizes[a].height);for(const c of i)c.col!==a&&(a=c.col,l=(0,n.Z)(o,t.top+e+s,t.bottom-t.columnSizes[a].height)),c.top=l,c.left+=t.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){const t=this;if(t.options.display){const e=t.ctx;(0,n.U)(e,t),t._draw(),(0,n.W)(e)}}_draw(){const t=this,{options:e,columnSizes:i,lineWidths:o,ctx:s}=t,{align:a,labels:r}=e,l=n.d.color,c=(0,n.au)(e.rtl,t.left,t.width),h=(0,n.X)(r.font),{color:d,padding:u}=r,g=h.size,p=g/2;let f;t.drawTitle(),s.textAlign=c.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=h.string;const{boxWidth:m,boxHeight:x,itemHeight:b}=Ge(r,g),_=t.isHorizontal(),y=this._computeTitleHeight();f=_?{x:(0,n.Z)(a,t.left+u,t.right-o[0]),y:t.top+u+y,line:0}:{x:t.left+u,y:(0,n.Z)(a,t.top+y+u,t.bottom-i[0].height),line:0},(0,n.av)(t.ctx,e.textDirection);const v=b+u;t.legendItems.forEach(((M,w)=>{s.strokeStyle=M.fontColor||d,s.fillStyle=M.fontColor||d;const k=s.measureText(M.text).width,S=c.textAlign(M.textAlign||(M.textAlign=r.textAlign)),D=m+p+k;let P=f.x,C=f.y;c.setWidth(t.width),_?w>0&&P+D+u>t.right&&(C=f.y+=v,f.line++,P=f.x=(0,n.Z)(a,t.left+u,t.right-o[f.line])):w>0&&C+v>t.bottom&&(P=f.x=P+i[f.line].width+u,f.line++,C=f.y=(0,n.Z)(a,t.top+y+u,t.bottom-i[f.line].height));!function(t,e,i){if(isNaN(m)||m<=0||isNaN(x)||x<0)return;s.save();const o=(0,n.v)(i.lineWidth,1);if(s.fillStyle=(0,n.v)(i.fillStyle,l),s.lineCap=(0,n.v)(i.lineCap,"butt"),s.lineDashOffset=(0,n.v)(i.lineDashOffset,0),s.lineJoin=(0,n.v)(i.lineJoin,"miter"),s.lineWidth=o,s.strokeStyle=(0,n.v)(i.strokeStyle,l),s.setLineDash((0,n.v)(i.lineDash,[])),r.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:o},r=c.xPlus(t,m/2),l=e+p;(0,n.ao)(s,a,r,l)}else{const a=e+Math.max((g-x)/2,0),r=c.leftForLtr(t,m),l=(0,n.ar)(i.borderRadius);s.beginPath(),Object.values(l).some((t=>0!==t))?(0,n.ap)(s,{x:r,y:a,w:m,h:x,radius:l}):s.rect(r,a,m,x),s.fill(),0!==o&&s.stroke()}s.restore()}(c.x(P),C,M),P=(0,n.aw)(S,P+m+p,_?P+D:t.right,e.rtl),function(t,e,i){(0,n.V)(s,i.text,t,e+b/2,h,{strikethrough:i.hidden,textAlign:c.textAlign(i.textAlign)})}(c.x(P),C,M),_?f.x+=D+u:f.y+=v})),(0,n.ax)(t.ctx,e.textDirection)}drawTitle(){const t=this,e=t.options,i=e.title,o=(0,n.X)(i.font),s=(0,n.A)(i.padding);if(!i.display)return;const a=(0,n.au)(e.rtl,t.left,t.width),r=t.ctx,l=i.position,c=o.size/2,h=s.top+c;let d,u=t.left,g=t.width;if(this.isHorizontal())g=Math.max(...t.lineWidths),d=t.top+h,u=(0,n.Z)(e.align,u,t.right-g);else{const i=t.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);d=h+(0,n.Z)(e.align,t.top,t.bottom-i-e.labels.padding-t._computeTitleHeight())}const p=(0,n.Z)(l,u,u+g);r.textAlign=a.textAlign((0,n.Y)(l)),r.textBaseline="middle",r.strokeStyle=i.color,r.fillStyle=i.color,r.font=o.string,(0,n.V)(r,i.text,p,d,o)}_computeTitleHeight(){const t=this.options.title,e=(0,n.X)(t.font),i=(0,n.A)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){const i=this;let n,o,s;if(t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom)for(s=i.legendHitBoxes,n=0;n=o.left&&t<=o.left+o.width&&e>=o.top&&e<=o.top+o.height)return i.legendItems[n];return null}handleEvent(t){const e=this,i=e.options;if(!function(t,e){if("mousemove"===t&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,i))return;const o=e._getLegendItemAt(t.x,t.y);if("mousemove"===t.type){const r=e._hoveredItem,l=(a=o,null!==(s=r)&&null!==a&&s.datasetIndex===a.datasetIndex&&s.index===a.index);r&&!l&&(0,n.M)(i.onLeave,[t,r,e],e),e._hoveredItem=o,o&&!l&&(0,n.M)(i.onHover,[t,o,e],e)}else o&&(0,n.M)(i.onClick,[t,o,e],e);var s,a}}var ti={id:"legend",_element:Qe,start(t,e,i){const n=t.legend=new Qe({ctx:t.ctx,options:i,chart:t});at.configure(t,n,i),at.addBox(t,n)},stop(t){at.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;at.configure(t,n,i),n.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const n=e.datasetIndex,o=i.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:o,textAlign:s,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const r=t.controller.getStyle(i?0:void 0),l=(0,n.A)(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:(l.width+l.height)/4,strokeStyle:r.borderColor,pointStyle:o||r.pointStyle,rotation:r.rotation,textAlign:s||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 ei extends Mt{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,o=i.options;if(i.left=0,i.top=0,!o.display)return void(i.width=i.height=i.right=i.bottom=0);i.width=i.right=t,i.height=i.bottom=e;const s=(0,n.b)(o.text)?o.text.length:1;i._padding=(0,n.A)(o.padding);const a=s*(0,n.X)(o.font).lineHeight+i._padding.height;i.isHorizontal()?i.height=a:i.width=a}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:o,right:s,options:a}=this,r=a.align;let l,c,h,d=0;return this.isHorizontal()?(c=(0,n.Z)(r,i,s),h=e+t,l=s-i):("left"===a.position?(c=i+t,h=(0,n.Z)(r,o,e),d=-.5*n.P):(c=s-t,h=(0,n.Z)(r,e,o),d=.5*n.P),l=o-e),{titleX:c,titleY:h,maxWidth:l,rotation:d}}draw(){const t=this,e=t.ctx,i=t.options;if(!i.display)return;const o=(0,n.X)(i.font),s=o.lineHeight/2+t._padding.top,{titleX:a,titleY:r,maxWidth:l,rotation:c}=t._drawArgs(s);(0,n.V)(e,i.text,0,0,o,{color:i.color,maxWidth:l,rotation:c,textAlign:(0,n.Y)(i.align),textBaseline:"middle",translation:[a,r]})}}var ii={id:"title",_element:ei,start(t,e,i){!function(t,e){const i=new ei({ctx:t.ctx,options:e,chart:t});at.configure(t,i,e),at.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;at.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;at.configure(t,n,i),n.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 ni=new WeakMap;var oi={id:"subtitle",start(t,e,i){const n=new ei({ctx:t.ctx,options:i,chart:t});at.configure(t,n,i),at.addBox(t,n),ni.set(t,n)},stop(t){at.removeBox(t,ni.get(t)),ni.delete(t)},beforeUpdate(t,e,i){const n=ni.get(t);at.configure(t,n,i),n.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 si={average(t){if(!t.length)return!1;let e,i,n=0,o=0,s=0;for(e=0,i=t.length;e-1?t.split("\n"):t}function li(t,e){const{element:i,datasetIndex:n,index:o}=e,s=t.getDatasetMeta(n).controller,{label:a,value:r}=s.getLabelAndValue(o);return{chart:t,label:a,parsed:s.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:r,dataset:s.getDataset(),dataIndex:o,datasetIndex:n,element:i}}function ci(t,e){const i=t._chart.ctx,{body:o,footer:s,title:a}=t,{boxWidth:r,boxHeight:l}=e,c=(0,n.X)(e.bodyFont),h=(0,n.X)(e.titleFont),d=(0,n.X)(e.footerFont),u=a.length,g=s.length,p=o.length,f=(0,n.A)(e.padding);let m=f.height,x=0,b=o.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*h.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){m+=p*(e.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(b-p)*c.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=h.string,(0,n.B)(t.title,y),i.font=c.string,(0,n.B)(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?r+2:0,(0,n.B)(o,(t=>{(0,n.B)(t.before,y),(0,n.B)(t.lines,y),(0,n.B)(t.after,y)})),_=0,i.font=d.string,(0,n.B)(t.footer,y),i.restore(),x+=f.width,{width:x,height:m}}function hi(t,e,i,n){const{x:o,width:s}=i,{width:a,chartArea:{left:r,right:l}}=t;let c="center";return"center"===n?c=o<=(r+l)/2?"left":"right":o<=s/2?c="left":o>=a-s/2&&(c="right"),function(t,e,i,n){const{x:o,width:s}=n,a=i.caretSize+i.caretPadding;return"left"===t&&o+s+a>e.width||"right"===t&&o-s-a<0||void 0}(c,t,e,i)&&(c="center"),c}function di(t,e,i){const n=e.yAlign||function(t,e){const{y:i,height:n}=e;return it.height-n/2?"bottom":"center"}(t,i);return{xAlign:e.xAlign||hi(t,e,i,n),yAlign:n}}function ui(t,e,i,o){const{caretSize:s,caretPadding:a,cornerRadius:r}=t,{xAlign:l,yAlign:c}=i,h=s+a,d=r+a;let u=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,l);const g=function(t,e,i){let{y:n,height:o}=t;return"top"===e?n+=i:n-="bottom"===e?o+i:o/2,n}(e,c,h);return"center"===c?"left"===l?u+=h:"right"===l&&(u-=h):"left"===l?u-=d:"right"===l&&(u+=d),{x:(0,n.q)(u,0,o.width-e.width),y:(0,n.q)(g,0,o.height-e.height)}}function gi(t,e,i){const o=(0,n.A)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-o.right:t.x+o.left}function pi(t){return ai([],ri(t))}function fi(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class mi extends Mt{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,e=t._cachedAnimations;if(e)return e;const i=t._chart,n=t.options.setContext(t.getContext()),o=n.enabled&&i.options.animation&&n.animations,s=new c(t._chart,o);return o._cacheable&&(t._cachedAnimations=Object.freeze(s)),s}getContext(){const t=this;return t.$context||(t.$context=(e=t._chart.getContext(),i=t,n=t._tooltipItems,Object.assign(Object.create(e),{tooltip:i,tooltipItems:n,type:"tooltip"})));var e,i,n}getTitle(t,e){const i=this,{callbacks:n}=e,o=n.beforeTitle.apply(i,[t]),s=n.title.apply(i,[t]),a=n.afterTitle.apply(i,[t]);let r=[];return r=ai(r,ri(o)),r=ai(r,ri(s)),r=ai(r,ri(a)),r}getBeforeBody(t,e){return pi(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const i=this,{callbacks:o}=e,s=[];return(0,n.B)(t,(t=>{const e={before:[],lines:[],after:[]},n=fi(o,t);ai(e.before,ri(n.beforeLabel.call(i,t))),ai(e.lines,n.label.call(i,t)),ai(e.after,ri(n.afterLabel.call(i,t))),s.push(e)})),s}getAfterBody(t,e){return pi(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const i=this,{callbacks:n}=e,o=n.beforeFooter.apply(i,[t]),s=n.footer.apply(i,[t]),a=n.afterFooter.apply(i,[t]);let r=[];return r=ai(r,ri(o)),r=ai(r,ri(s)),r=ai(r,ri(a)),r}_createItems(t){const e=this,i=e._active,o=e._chart.data,s=[],a=[],r=[];let l,c,h=[];for(l=0,c=i.length;lt.filter(e,i,n,o)))),t.itemSort&&(h=h.sort(((e,i)=>t.itemSort(e,i,o)))),(0,n.B)(h,(i=>{const n=fi(t.callbacks,i);s.push(n.labelColor.call(e,i)),a.push(n.labelPointStyle.call(e,i)),r.push(n.labelTextColor.call(e,i))})),e.labelColors=s,e.labelPointStyles=a,e.labelTextColors=r,e.dataPoints=h,h}update(t,e){const i=this,n=i.options.setContext(i.getContext()),o=i._active;let s,a=[];if(o.length){const t=si[n.position].call(i,o,i._eventPosition);a=i._createItems(n),i.title=i.getTitle(a,n),i.beforeBody=i.getBeforeBody(a,n),i.body=i.getBody(a,n),i.afterBody=i.getAfterBody(a,n),i.footer=i.getFooter(a,n);const e=i._size=ci(i,n),r=Object.assign({},t,e),l=di(i._chart,n,r),c=ui(n,r,l,i._chart);i.xAlign=l.xAlign,i.yAlign=l.yAlign,s={opacity:1,x:c.x,y:c.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==i.opacity&&(s={opacity:0});i._tooltipItems=a,i.$context=void 0,s&&i._resolveAnimations().update(i,s),t&&n.external&&n.external.call(i,{chart:i._chart,tooltip:i,replay:e})}drawCaret(t,e,i,n){const o=this.getCaretPosition(t,i,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:o}=this,{cornerRadius:s,caretSize:a}=i,{x:r,y:l}=t,{width:c,height:h}=e;let d,u,g,p,f,m;return"center"===o?(f=l+h/2,"left"===n?(d=r,u=d-a,p=f+a,m=f-a):(d=r+c,u=d+a,p=f-a,m=f+a),g=d):(u="left"===n?r+s+a:"right"===n?r+c-s-a:this.caretX,"top"===o?(p=l,f=p-a,d=u-a,g=u+a):(p=l+h,f=p+a,d=u+a,g=u-a),m=p),{x1:d,x2:u,x3:g,y1:p,y2:f,y3:m}}drawTitle(t,e,i){const o=this,s=o.title,a=s.length;let r,l,c;if(a){const h=(0,n.au)(i.rtl,o.x,o.width);for(t.x=gi(o,i.titleAlign,i),e.textAlign=h.textAlign(i.titleAlign),e.textBaseline="middle",r=(0,n.X)(i.titleFont),l=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,c=0;c0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,(0,n.ap)(t,{x:e,y:f,w:h,h:c,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),(0,n.ap)(t,{x:i,y:f+1,w:h-2,h:c-2,radius:a}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,f,h,c),t.strokeRect(e,f,h,c),t.fillStyle=r.backgroundColor,t.fillRect(i,f+1,h-2,c-2))}t.fillStyle=a.labelTextColors[i]}drawBody(t,e,i){const o=this,{body:s}=o,{bodySpacing:a,bodyAlign:r,displayColors:l,boxHeight:c,boxWidth:h}=i,d=(0,n.X)(i.bodyFont);let u=d.lineHeight,g=0;const p=(0,n.au)(i.rtl,o.x,o.width),f=function(i){e.fillText(i,p.x(t.x+g),t.y+u/2),t.y+=u+a},m=p.textAlign(r);let x,b,_,y,v,M,w;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=gi(o,m,i),e.fillStyle=i.bodyColor,(0,n.B)(o.beforeBody,f),g=l&&"right"!==m?"center"===r?h/2+1:h+2:0,y=0,M=s.length;y0&&e.stroke()}_updateAnimationTarget(t){const e=this,i=e._chart,n=e.$animations,o=n&&n.x,s=n&&n.y;if(o||s){const n=si[t.position].call(e,e._active,e._eventPosition);if(!n)return;const a=e._size=ci(e,t),r=Object.assign({},n,e._size),l=di(i,t,r),c=ui(t,r,l,i);o._to===c.x&&s._to===c.y||(e.xAlign=l.xAlign,e.yAlign=l.yAlign,e.width=a.width,e.height=a.height,e.caretX=n.x,e.caretY=n.y,e._resolveAnimations().update(e,c))}}draw(t){const e=this,i=e.options.setContext(e.getContext());let o=e.opacity;if(!o)return;e._updateAnimationTarget(i);const s={width:e.width,height:e.height},a={x:e.x,y:e.y};o=Math.abs(o)<.001?0:o;const r=(0,n.A)(i.padding),l=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;i.enabled&&l&&(t.save(),t.globalAlpha=o,e.drawBackground(a,t,s,i),(0,n.av)(t,i.textDirection),a.y+=r.top,e.drawTitle(a,t,i),e.drawBody(a,t,i),e.drawFooter(a,t,i),(0,n.ax)(t,i.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this,o=i._active,s=t.map((({datasetIndex:t,index:e})=>{const n=i._chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),a=!(0,n.ad)(o,s),r=i._positionChanged(s,e);(a||r)&&(i._active=s,i._eventPosition=e,i.update(!0))}handleEvent(t,e){const i=this,o=i.options,s=i._active||[];let a=!1,r=[];"mouseout"!==t.type&&(r=i._chart.getElementsAtEventForMode(t,o.mode,o,e),o.reverse&&r.reverse());const l=i._positionChanged(r,t);return a=e||!(0,n.ad)(r,s)||l,a&&(i._active=r,(o.enabled||o.external)&&(i._eventPosition={x:t.x,y:t.y},i.update(!0,e))),a}_positionChanged(t,e){const{caretX:i,caretY:n,options:o}=this,s=si[o.position].call(this,t,e);return!1!==s&&(i!==s.x||n!==s.y)}}mi.positioners=si;var xi={id:"tooltip",_element:mi,positioners:si,afterInit(t,e,i){i&&(t.tooltip=new mi({_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,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:n.ay,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},bi=Object.freeze({__proto__:null,Decimation:Ee,Filler:Ze,Legend:ti,SubTitle:oi,Title:ii,Tooltip:xi});function _i(t,e,i){const n=t.indexOf(e);if(-1===n)return((t,e,i)=>"string"===typeof e?t.push(e)-1:isNaN(e)?null:i)(t,e,i);return n!==t.lastIndexOf(e)?i:n}class yi extends Et{constructor(t){super(t),this._startValue=void 0,this._valueRange=0}parse(t,e){if((0,n.j)(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:(0,n.q)(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:_i(i,t,(0,n.v)(e,t)),i.length-1)}determineDataLimits(){const t=this,{minDefined:e,maxDefined:i}=t.getUserBounds();let{min:n,max:o}=t.getMinMax(!0);"ticks"===t.options.bounds&&(e||(n=0),i||(o=t.getLabels().length-1)),t.min=n,t.max=o}buildTicks(){const t=this,e=t.min,i=t.max,n=t.options.offset,o=[];let s=t.getLabels();s=0===e&&i===s.length-1?s:s.slice(e,i+1),t._valueRange=Math.max(s.length-(n?0:1),1),t._startValue=t.min-(n?.5:0);for(let a=e;a<=i;a++)o.push({value:a});return o}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){const e=this;return Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange)}getBasePixel(){return this.bottom}}function vi(t,e,{horizontal:i,minRotation:o}){const s=(0,n.t)(o),a=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}yi.id="category",yi.defaults={ticks:{callback:yi.prototype.getLabelForValue}};class Mi extends Et{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,n.j)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const t=this,{beginAtZero:e}=t.options,{minDefined:i,maxDefined:o}=t.getUserBounds();let{min:s,max:a}=t;const r=t=>s=i?s:t,l=t=>a=o?a:t;if(e){const t=(0,n.s)(s),e=(0,n.s)(a);t<0&&e<0?l(0):t>0&&e>0&&r(0)}if(s===a){let t=1;(a>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*a)),l(a+t),e||r(s-t)}t.min=s,t.max=a}getTickLimit(){const t=this,e=t.options.ticks;let i,{maxTicksLimit:n,stepSize:o}=e;return o?i=Math.ceil(t.max/o)-Math.floor(t.min/o)+1:(i=t.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this,e=t.options,i=e.ticks;let o=t.getTickLimit();o=Math.max(2,o);const s=function(t,e){const i=[],{bounds:o,step:s,min:a,max:r,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=t,g=s||1,p=h-1,{min:f,max:m}=e,x=!(0,n.j)(a),b=!(0,n.j)(r),_=!(0,n.j)(c),y=(m-f)/(d+1);let v,M,w,k,S=(0,n.aB)((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,n.aB)(k*S/p/g)*g),(0,n.j)(l)||(v=Math.pow(10,l),S=Math.ceil(S*v)/v),"ticks"===o?(M=Math.floor(f/S)*S,w=Math.ceil(m/S)*S):(M=f,w=m),x&&b&&s&&(0,n.aC)((r-a)/s,S/1e3)?(k=Math.round(Math.min((r-a)/S,h)),S=(r-a)/k,M=a,w=r):_?(M=x?a:M,w=b?r:w,k=c-1,S=(w-M)/k):(k=(w-M)/S,k=(0,n.aD)(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const D=Math.max((0,n.aE)(S),(0,n.aE)(M));v=Math.pow(10,(0,n.j)(l)?D:l),M=Math.round(M*v)/v,w=Math.round(w*v)/v;let P=0;for(x&&(u&&M!==a?(i.push({value:a}),M0?i:null;this._zero=!0}determineDataLimits(){const t=this,{min:e,max:i}=t.getMinMax(!0);t.min=(0,n.g)(e)?Math.max(0,e):null,t.max=(0,n.g)(i)?Math.max(0,i):null,t.options.beginAtZero&&(t._zero=!0),t.handleTickRangeOptions()}handleTickRangeOptions(){const t=this,{minDefined:e,maxDefined:i}=t.getUserBounds();let o=t.min,s=t.max;const a=t=>o=e?o:t,r=t=>s=i?s:t,l=(t,e)=>Math.pow(10,Math.floor((0,n.J)(t))+e);o===s&&(o<=0?(a(1),r(10)):(a(l(o,-1)),r(l(s,1)))),o<=0&&a(l(s,-1)),s<=0&&r(l(o,1)),t._zero&&t.min!==t._suggestedMin&&o===l(t.min,0)&&a(l(o,-1)),t.min=o,t.max=s}buildTicks(){const t=this,e=t.options,i=function(t,e){const i=Math.floor((0,n.J)(e.max)),o=Math.ceil(e.max/Math.pow(10,i)),s=[];let a=(0,n.L)(t.min,Math.pow(10,Math.floor((0,n.J)(e.min)))),r=Math.floor((0,n.J)(a)),l=Math.floor(a/Math.pow(10,r)),c=r<0?Math.pow(10,Math.abs(r)):1;do{s.push({value:a,major:ki(a)}),++l,10===l&&(l=1,++r,c=r>=0?1:c),a=Math.round(l*Math.pow(10,r)*c)/c}while(ro?{start:e-i,end:e}:{start:e,end:e+i}}function Ci(t){const e={l:0,r:t.width,t:0,b:t.height-t.paddingTop},i={},o=[],s=[],a=t.getLabels().length;for(let h=0;he.r&&(e.r=m.end,i.r=p),x.starte.b&&(e.b=x.end,i.b=p)}var r,l,c;t._setReductions(t.drawingArea,e,i),t._pointLabelItems=function(t,e,i){const o=[],s=t.getLabels().length,a=t.options,r=Di(a),l=t.getDistanceFromCenterForValue(a.ticks.reverse?t.min:t.max);for(let c=0;c270||i<90)&&(t-=e),t}function Ti(t,e,i,o){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,n.T);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let n=1;n{const o=(0,n.M)(e.options.pointLabels.callback,[t,i],e);return o||0===o?o:""}))}fit(){const t=this,e=t.options;e.display&&e.pointLabels.display?Ci(t):t.setCenterPoint(0,0,0,0)}_setReductions(t,e,i){const n=this;let o=e.l/Math.sin(i.l),s=Math.max(e.r-n.width,0)/Math.sin(i.r),a=-e.t/Math.cos(i.t),r=-Math.max(e.b-(n.height-n.paddingTop),0)/Math.cos(i.b);o=Ei(o),s=Ei(s),a=Ei(a),r=Ei(r),n.drawingArea=Math.max(t/2,Math.min(Math.floor(t-(o+s)/2),Math.floor(t-(a+r)/2))),n.setCenterPoint(o,s,a,r)}setCenterPoint(t,e,i,n){const o=this,s=o.width-e-o.drawingArea,a=t+o.drawingArea,r=i+o.drawingArea,l=o.height-o.paddingTop-n-o.drawingArea;o.xCenter=Math.floor((a+s)/2+o.left),o.yCenter=Math.floor((r+l)/2+o.top+o.paddingTop)}getIndexAngle(t){const e=n.T/this.getLabels().length,i=this.options.startAngle||0;return(0,n.at)(t*e+(0,n.t)(i))}getDistanceFromCenterForValue(t){const e=this;if((0,n.j)(t))return NaN;const i=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*i:(t-e.min)*i}getValueForDistanceFromCenter(t){if((0,n.j)(t))return NaN;const e=this,i=t/(e.drawingArea/(e.max-e.min));return e.options.reverse?e.max-i:e.min+i}getPointLabelContext(t){const e=this,i=e._pointLabels||[];if(t>=0&&t=0;s--){const e=o.setContext(t.getPointLabelContext(s)),a=(0,n.X)(e.font),{x:r,y:l,textAlign:c,left:h,top:d,right:u,bottom:g}=t._pointLabelItems[s],{backdropColor:p}=e;if(!(0,n.j)(p)){const t=(0,n.A)(e.backdropPadding);i.fillStyle=p,i.fillRect(h-t.left,d-t.top,u-h+t.width,g-d+t.height)}(0,n.V)(i,t._pointLabels[s],r,l+a.lineHeight/2,a,{color:e.color,textAlign:c,textBaseline:"middle"})}}(t,a),s.display&&t.ticks.forEach(((e,i)=>{if(0!==i){l=t.getDistanceFromCenterForValue(e.value);const n=s.setContext(t.getContext(i-1));!function(t,e,i,n){const o=t.ctx,s=e.circular,{color:a,lineWidth:r}=e;!s&&!n||!a||!r||i<0||(o.save(),o.strokeStyle=a,o.lineWidth=r,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),Ti(t,i,s,n),o.closePath(),o.stroke(),o.restore())}(t,n,l,a)}})),o.display){for(e.save(),r=t.getLabels().length-1;r>=0;r--){const n=o.setContext(t.getPointLabelContext(r)),{color:s,lineWidth:a}=n;a&&s&&(e.lineWidth=a,e.strokeStyle=s,e.setLineDash(n.borderDash),e.lineDashOffset=n.borderDashOffset,l=t.getDistanceFromCenterForValue(i.ticks.reverse?t.min:t.max),c=t.getPointPosition(r,l),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const t=this,e=t.ctx,i=t.options,o=i.ticks;if(!o.display)return;const s=t.getIndexAngle(0);let a,r;e.save(),e.translate(t.xCenter,t.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",t.ticks.forEach(((s,l)=>{if(0===l&&!i.reverse)return;const c=o.setContext(t.getContext(l)),h=(0,n.X)(c.font);if(a=t.getDistanceFromCenterForValue(t.ticks[l].value),c.showLabelBackdrop){e.font=h.string,r=e.measureText(s.label).width,e.fillStyle=c.backdropColor;const t=(0,n.A)(c.backdropPadding);e.fillRect(-r/2-t.left,-a-h.size/2-t.top,r+t.width,h.size+t.height)}(0,n.V)(e,s.label,0,-a,h,{color:c.color})})),e.restore()}drawTitle(){}}Ri.id="radialLinear",Ri.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:kt.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5}},Ri.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Ri.descriptors={angleLines:{_fallback:"grid"}};const zi={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}},Fi=Object.keys(zi);function Ii(t,e){return t-e}function Bi(t,e){if((0,n.j)(e))return null;const i=t._adapter,{parser:o,round:s,isoWeekday:a}=t._parseOpts;let r=e;return"function"===typeof o&&(r=o(r)),(0,n.g)(r)||(r="string"===typeof o?i.parse(r,o):i.parse(r)),null===r?null:(s&&(r="week"!==s||!(0,n.p)(a)&&!0!==a?i.startOf(r,s):i.startOf(r,"isoWeek",a)),+r)}function Vi(t,e,i,n){const o=Fi.length;for(let s=Fi.indexOf(t);s=e?i[o]:i[s]]=!0}}else t[e]=!0}function ji(t,e,i){const n=[],o={},s=e.length;let a,r;for(a=0;a=0&&(e[l].major=!0);return e}(t,n,o,i):n}class Hi extends Et{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={}),o=this._adapter=new W._date(t.adapters.date);(0,n.a7)(i.displayFormats,o.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:Bi(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this,e=t.options,i=t._adapter,o=e.time.unit||"day";let{min:s,max:a,minDefined:r,maxDefined:l}=t.getUserBounds();function c(t){r||isNaN(t.min)||(s=Math.min(s,t.min)),l||isNaN(t.max)||(a=Math.max(a,t.max))}r&&l||(c(t._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||c(t.getMinMax(!1))),s=(0,n.g)(s)&&!isNaN(s)?s:+i.startOf(Date.now(),o),a=(0,n.g)(a)&&!isNaN(a)?a:+i.endOf(Date.now(),o)+1,t.min=Math.min(s,a-1),t.max=Math.max(s+1,a)}_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,e=t.options,i=e.time,o=e.ticks,s="labels"===o.source?t.getLabelTimestamps():t._generate();"ticks"===e.bounds&&s.length&&(t.min=t._userMin||s[0],t.max=t._userMax||s[s.length-1]);const a=t.min,r=t.max,l=(0,n.aG)(s,a,r);return t._unit=i.unit||(o.autoSkip?Vi(i.minUnit,t.min,t.max,t._getLabelCapacity(a)):function(t,e,i,n,o){for(let s=Fi.length-1;s>=Fi.indexOf(i);s--){const i=Fi[s];if(zi[i].common&&t._adapter.diff(o,n,i)>=e-1)return i}return Fi[i?Fi.indexOf(i):0]}(t,l.length,i.minUnit,t.min,t.max)),t._majorUnit=o.major.enabled&&"year"!==t._unit?function(t){for(let e=Fi.indexOf(t)+1,i=Fi.length;e1e5*l)throw new Error(i+" and "+o+" are too far apart with stepSize of "+l+" "+r);const f="data"===s.ticks.source&&t.getDataTimestamps();for(u=p,g=0;ut-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,o){const s=this,a=s.options,r=a.time.displayFormats,l=s._unit,c=s._majorUnit,h=l&&r[l],d=c&&r[c],u=i[e],g=c&&d&&u&&u.major,p=s._adapter.format(t,o||(g?d:h)),f=a.ticks.callback;return f?(0,n.M)(f,[p,e,i],s):p}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e0?r:1}getDataTimestamps(){const t=this;let e,i,n=t._cache.data||[];if(n.length)return n;const o=t.getMatchingVisibleMetas();if(t._normalized&&o.length)return t._cache.data=o[0].controller.getAllParsedValues(t);for(e=0,i=o.length;e=t[l].pos&&e<=t[c].pos&&({lo:l,hi:c}=(0,n.w)(t,"pos",e)),({pos:o,time:a}=t[l]),({pos:s,time:r}=t[c])):(e>=t[l].time&&e<=t[c].time&&({lo:l,hi:c}=(0,n.w)(t,"time",e)),({time:o,pos:a}=t[l]),({time:s,pos:r}=t[c]));const h=s-o;return h?a+(r-a)*(e-o)/h:a}Hi.id="time",Hi.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class $i extends Hi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this,e=t._getTimestampsForTable(),i=t._table=t.buildLookupTable(e);t._minPos=Ni(i,t.min),t._tableRange=Ni(i,t.max)-t._minPos,super.initOffsets(e)}buildLookupTable(t){const{min:e,max:i}=this,n=[],o=[];let s,a,r,l,c;for(s=0,a=t.length;s=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(s=0,a=n.length;ss({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)=>(i.axis="x",X(t,e,i,s)),y:(t,e,i,s)=>(i.axis="y",X(t,e,i,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)}))}};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,i){const s=t.canvas,n=new MutationObserver((t=>{for(const e of t)for(const t of e.addedNodes)if(t===s||t.contains(s))return i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function ft(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{for(const e of t)for(const t of e.removedNodes)if(t===s||t.contains(s))return i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const mt=new Map;let xt=0;function bt(){const t=window.devicePixelRatio;t!==xt&&(xt=t,mt.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function _t(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){mt.size||window.addEventListener("resize",bt),mt.set(t,e)}(t,a),r}function yt(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){mt.delete(t),mt.size||window.removeEventListener("resize",bt)}(t)}function vt(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 Mt 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:pt,detach:ft,resize:_t}[e]||vt;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:yt,detach:yt,resize:yt}[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 wt{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}}wt.defaults={},wt.defaultRoutes=void 0;const kt={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?kt.numeric.call(this,t,e,i):""}};var St={formatters:kt};function Dt(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:St.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 Ct=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function At(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;oa+r)))return l}function Tt(t){return t.drawTicks?t.tickLength:0}function Ot(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 Et(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 Rt extends wt{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-Tt(t.grid)-e.padding-Ot(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=Ot(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=Tt(o)+a):(t.height=this.maxHeight,t.width=Tt(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=Tt(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,P;if("top"===a)m=f(this.bottom),v=this.bottom-c,w=m-p,S=f(t.top)+p,P=t.bottom;else if("bottom"===a)m=f(this.top),S=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,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,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,M=y-c,k=t.left,D=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.a0[i])}}var Ft=new class{constructor(){this.controllers=new zt(v,"datasets",!0),this.elements=new zt(wt,"elements"),this.plugins=new zt(Object,"plugins"),this.scales=new zt(Rt,"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 Vt(t,e){return e||!1!==t?!0===t?{}:t:null}function Bt(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 Wt(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 Ht(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=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=Wt(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||Nt(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 jt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const $t=new Map,Ut=new Set;function Yt(t,e){let i=$t.get(t);return i||(i=e(),$t.set(t,i),Ut.add(i)),i}const Xt=(t,e,i)=>{const n=(0,s.f)(e,i);void 0!==n&&t.add(n)};class Kt{constructor(t){this._config=function(t){return(t=t||{}).data=jt(t.data),Ht(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=jt(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(),Ht(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Yt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Yt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Yt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Yt(`${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=>Xt(h,t,e)))),e.forEach((t=>Xt(h,n,t))),e.forEach((t=>Xt(h,s.a0[o]||{},t))),e.forEach((t=>Xt(h,s.d,t))),e.forEach((t=>Xt(h,s.a3,t)))}));const l=Array.from(h);return 0===l.length&&l.push(Object.create(null)),Ut.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}=qt(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)||Gt(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}=qt(this._resolverCache,t,i);return(0,s.i)(e)?(0,s.a5)(o,e,void 0,n):o}}function qt(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 Gt=t=>(0,s.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||(0,s.a4)(t[i])),!1);const Jt=["top","bottom","left","right","chartArea"];function Zt(t,e){return"top"===t||"bottom"===t||-1===Jt.indexOf(t)&&"x"===e}function Qt(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function te(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,s.N)(i&&i.onComplete,[t],e)}function ee(t){const e=t.chart,i=e.options.animation;(0,s.N)(i&&i.onProgress,[t],e)}function ie(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 se={},ne=t=>{const e=ie(t);return Object.values(se).filter((t=>t.canvas===e)).pop()};class oe{constructor(t,e){const i=this.config=new Kt(e),o=ie(t),a=ne(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: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.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 It,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),se[this.id]=this,h&&l?(n.listen(this,"complete",te),n.listen(this,"progress",ee),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=Wt(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=Wt(a,o),h=(0,s.v)(o.type,e.dtype);void 0!==o.position&&Zt(o.position,r)===Zt(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(Ft.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());(0,s.C)(this.scales,(t=>{rt.removeBox(this,t)}));const n=this._animationsDisabled=!i.animation;this.ensureScalesHaveIDs(),this.buildOrUpdateScales();const o=new Set(Object.keys(this._listeners)),a=new Set(i.events);if((0,s.ad)(o,a)&&!!this._responsiveListeners===i.responsive||(this.unbindEvents(),this.bindEvents()),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let h=0;for(let s=0,l=this.data.datasets.length;s{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Qt("z","_idx")),this._lastEvent&&this._eventHandler(this._lastEvent,!0),this.render()}_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 e=0,i=this.data.datasets.length;e=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 ae=()=>(0,s.C)(oe.instances,(t=>t._plugins.invalidate())),re=!0;function he(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 le(t,e,i,n){const o=(a=t.options.borderRadius,(0,s.ag)(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 ce(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function de(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}=le(e,u,d,x-m),M=d-b,w=d-_,k=m+b/M,S=x-_/w,D=u+y,P=u+v,C=m+y/D,A=x-v/P;if(t.beginPath(),t.arc(a,r,d,k,S),_>0){const e=ce(w,S,a,r);t.arc(e.x,e.y,_,S,x+s.H)}const L=ce(P,x,a,r);if(t.lineTo(L.x,L.y),v>0){const e=ce(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=ce(D,C,a,r);t.arc(e.x,e.y,y,C+Math.PI,m-s.H)}const T=ce(M,m,a,r);if(t.lineTo(T.x,T.y),b>0){const e=ce(M,k,a,r);t.arc(e.x,e.y,b,m-s.H,k)}t.closePath()}function ue(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&&he(t,e,a+s.T),t.beginPath(),t.arc(n,o,c,a+s.T,a,!0),d=0;d{Ft.add(...t),ae()}},unregister:{enumerable:re,value:(...t)=>{Ft.remove(...t),ae()}}});class ge extends wt{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;return(d>=s.T||(0,s.p)(o,r,h))&&(a>=l+u&&a<=c+u)}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){de(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 _e(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i?be:xe}ge.id="arc",ge.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},ge.defaultRoutes={backgroundColor:"backgroundColor"};const ye="function"===typeof Path2D;function ve(t,e,i,s){ye&&!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()),pe(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=_e(e);for(const r of n)pe(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 Me extends wt{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.ah)(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.ai)(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.aj)(this,{property:e,start:n,end:n});if(!a.length)return;const r=[],h=function(t){return t.stepped?s.ak:t.tension||"monotone"===t.cubicInterpolationMode?s.al:s.am}(i);let l,c;for(l=0,c=a.length;l"borderDash"!==t&&"fill"!==t};class ke extends wt{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)=a.left&&e<=a.right)&&(o||i>=a.top&&i<=a.bottom)}function Ae(t,e){t.rect(e.x,e.y,e.w,e.h)}function Le(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-s,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+o,h:t.h+a,radius:t.radius}}ke.id="point",ke.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},ke.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Te extends wt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:n}}=this,{inner:o,outer:a}=Pe(this),r=(h=a.radius).topLeft||h.topRight||h.bottomLeft||h.bottomRight?s.aq:Ae;var h;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),r(t,Le(a,e,o)),t.clip(),r(t,Le(o,-e,a)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),r(t,Le(o,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return Ce(this,t,e,i)}inXRange(t,e){return Ce(this,t,null,e)}inYRange(t,e){return Ce(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Te.id="bar",Te.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Te.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Oe=Object.freeze({__proto__:null,ArcElement:ge,LineElement:Me,PointElement:ke,BarElement:Te});function Ee(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Re(t){t.data.datasets.forEach((t=>{Ee(t)}))}var ze={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Re(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 Ee(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){Re(t)}};function Fe(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 Ie{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 Ve(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 Ie({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 Ne(t,e,i){const s=[];for(let n=0;n=e&&n<=s){r=n===e,h=n===s;break}}return{first:r,last:h,point:s}}function He(t){const{chart:e,fill:i,line:n}=t;if((0,s.g)(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],o=s.segments,a=s.points,r=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let n=0;n{e=Be(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 Me({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function $e(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 Ue(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 Ye(t,e,i,n){if(n)return;let o=e[t],a=i[t];return"angle"===t&&(o=(0,s.au)(o),a=(0,s.au)(a)),{property:t,start:o,end:a}}function Xe(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 qe(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}function Ge(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=Be(t,n,o);const l=Ye(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.aj)(e,l);for(const e of c){const t=Ye(i,a[e.start],a[e.end],e.loop),n=(0,s.at)(h,o,t);for(const s of n)r.push({source:s,target:e,start:{[i]:Xe(l,t,"start",Math.max)},end:{[i]:Xe(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&&Ye(o,c,d)),t.beginPath();const u=!!i.pathSegment(t,s);let g;if(h){u?t.closePath():qe(t,n,d,o);const e=!!n.pathSegment(t,l,{move:u,reverse:!0});g=u&&e,g||qe(t,n,c,o)}t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}function Je(t,e,i){const n=He(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&&(Ue(t,s,a.top),Ge(t,{line:i,target:s,color:n,scale:r,property:h}),t.restore(),t.save(),Ue(t,s,a.bottom)),Ge(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 Ze={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&&Je(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&&Je(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;s&&!1!==s.fill&&"beforeDatasetDraw"===i.drawTime&&Je(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Qe=(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 ti extends wt{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}=Qe(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.av)(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.av)(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}=Qe(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.aw)(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,P=p.y;h.setWidth(this.width),b?M>0&&D+S+d>this.right&&(P=p.y+=y,p.line++,D=p.x=(0,s.$)(o,this.left+d,this.right-i[p.line])):M>0&&P+y>this.bottom&&(D=p.x=D+e[p.line].width+d,p.line++,P=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.ap)(n,a,r,l)}else{const a=e+Math.max((u-m)/2,0),r=h.leftForLtr(t,f),l=(0,s.as)(i.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?(0,s.aq)(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),P,v),D=(0,s.ax)(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),P,v),b?p.x+=S+d:p.y+=y})),(0,s.ay)(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.av)(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,s,n;if(t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom)for(n=this.legendHitBoxes,i=0;i=s.left&&t<=s.left+s.width&&e>=s.top&&e<=s.top+s.height)return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if("mousemove"===t&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type){const a=this._hoveredItem,r=(o=i,null!==(n=a)&&null!==o&&n.datasetIndex===o.datasetIndex&&n.index===o.index);a&&!r&&(0,s.N)(e.onLeave,[t,a,this],this),this._hoveredItem=i,i&&!r&&(0,s.N)(e.onHover,[t,i,this],this)}else i&&(0,s.N)(e.onClick,[t,i,this],this);var n,o}}var ei={id:"legend",_element:ti,start(t,e,i){const s=t.legend=new ti({ctx:t.ctx,options:i,chart:t});rt.configure(t,s,i),rt.addBox(t,s)},stop(t){rt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;rt.configure(t,s,i),s.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.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 ii extends wt{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 si={id:"title",_element:ii,start(t,e,i){!function(t,e){const i=new ii({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 ni=new WeakMap;var oi={id:"subtitle",start(t,e,i){const s=new ii({ctx:t.ctx,options:i,chart:t});rt.configure(t,s,i),rt.addBox(t,s),ni.set(t,s)},stop(t){rt.removeBox(t,ni.get(t)),ni.delete(t)},beforeUpdate(t,e,i){const s=ni.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 ai={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 li(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 ci(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 di(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 ui(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||di(t,e,i,s),yAlign:s}}function gi(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.as)(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)+a:"right"===h&&(f+=Math.max(u,p)+a),{x:(0,s.w)(f,0,n.width-e.width),y:(0,s.w)(m,0,n.height-e.height)}}function pi(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 fi(t){return ri([],hi(t))}function mi(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class xi extends wt{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=ri(a,hi(s)),a=ri(a,hi(n)),a=ri(a,hi(o)),a}getBeforeBody(t,e){return fi(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=mi(i,t);ri(e.before,hi(s.beforeLabel.call(this,t))),ri(e.lines,s.label.call(this,t)),ri(e.after,hi(s.afterLabel.call(this,t))),n.push(e)})),n}getAfterBody(t,e){return fi(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=ri(a,hi(s)),a=ri(a,hi(n)),a=ri(a,hi(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=mi(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=ai[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=ci(this,i),a=Object.assign({},t,e),r=ui(this._chart,i,a),h=gi(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.as)(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.av)(i.rtl,this.x,this.width);for(t.x=pi(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.aq)(t,{x:e,y:f,w:l,h:h,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),(0,s.aq)(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.av)(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=pi(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=ai[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=ci(this,t),a=Object.assign({},i,this._size),r=ui(e,t,a),h=gi(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.aw)(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,s.ay)(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=ai[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}xi.positioners=ai;var bi={id:"tooltip",_element:xi,positioners:ai,afterInit(t,e,i){i&&(t.tooltip=new xi({_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.az,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"]},_i=Object.freeze({__proto__:null,Decimation:ze,Filler:Ze,Legend:ei,SubTitle:oi,Title:si,Tooltip:bi});function yi(t,e,i){const s=t.indexOf(e);if(-1===s)return((t,e,i)=>"string"===typeof e?t.push(e)-1:isNaN(e)?null:i)(t,e,i);return s!==t.lastIndexOf(e)?i:s}class vi extends Rt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0}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:yi(i,t,(0,s.v)(e,t)),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 Mi(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)}vi.id="category",vi.defaults={ticks:{callback:vi.prototype.getLabelForValue}};class wi extends Rt{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.aC)((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.aC)(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.aD)((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.aE)(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const D=Math.max((0,s.aF)(S),(0,s.aF)(M));v=Math.pow(10,(0,s.k)(h)?D:h),M=Math.round(M*v)/v,w=Math.round(w*v)/v;let P=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:Si(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 Ai(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=Pi(a),h=t.getDistanceFromCenterForValue(a.ticks.reverse?t.min:t.max);for(let l=0;l270||i<90)&&(t-=e),t}function Ei(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?Ai(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=Ri(s),n=Ri(n),o=Ri(o),a=Ri(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.au)(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(),Ei(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(){}}zi.id="radialLinear",zi.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:St.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5}},zi.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},zi.descriptors={angleLines:{_fallback:"grid"}};const Fi={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}},Ii=Object.keys(Fi);function Vi(t,e){return t-e}function Bi(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 Ni(t,e,i,s){const n=Ii.length;for(let o=Ii.indexOf(t);o=e?i[n]:i[o]]=!0}}else t[e]=!0}function Hi(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 ji extends Rt{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:Bi(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.aH)(n,o,a);return this._unit=e.unit||(i.autoSkip?Ni(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,i,s,n){for(let o=Ii.length-1;o>=Ii.indexOf(i);o--){const i=Ii[o];if(Fi[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Ii[i?Ii.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=Ii.indexOf(t)+1,i=Ii.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}ji.id="time",ji.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Ui extends ji{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=$i(e,this.min),this._tableRange=$i(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=55296&&u<=57343){if(u>=55296&&u<=56319&&i+1=56320&&a<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}t.defaultChars=";/?:@&=+$,-_.!~*'()#",t.componentChars="-_.!~*'()",e.exports=t},71471:function(e,n){"use strict";var t=60103,r=60106,o=60107,i=60108,l=60114,u=60109,a=60110,s=60112,c=60113,f=60120,p=60115,d=60116,h=60121,m=60122,g=60117,y=60129,k=60131;if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;t=x("react.element"),r=x("react.portal"),o=x("react.fragment"),i=x("react.strict_mode"),l=x("react.profiler"),u=x("react.provider"),a=x("react.context"),s=x("react.forward_ref"),c=x("react.suspense"),f=x("react.suspense_list"),p=x("react.memo"),d=x("react.lazy"),h=x("react.block"),m=x("react.server.block"),g=x("react.fundamental"),y=x("react.debug_trace_mode"),k=x("react.legacy_hidden")}function v(e){if("object"===typeof e&&null!==e){var n=e.$$typeof;switch(n){case t:switch(e=e.type){case o:case l:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case a:case s:case d:case p:case u:return e;default:return n}}case r:return n}}}var b=u,w=t,S=s,E=o,C=d,A=p,F=r,T=l,P=i,O=c;n.ContextConsumer=a,n.ContextProvider=b,n.Element=w,n.ForwardRef=S,n.Fragment=E,n.Lazy=C,n.Memo=A,n.Portal=F,n.Profiler=T,n.StrictMode=P,n.Suspense=O,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return v(e)===a},n.isContextProvider=function(e){return v(e)===u},n.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===t},n.isForwardRef=function(e){return v(e)===s},n.isFragment=function(e){return v(e)===o},n.isLazy=function(e){return v(e)===d},n.isMemo=function(e){return v(e)===p},n.isPortal=function(e){return v(e)===r},n.isProfiler=function(e){return v(e)===l},n.isStrictMode=function(e){return v(e)===i},n.isSuspense=function(e){return v(e)===c},n.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===l||e===y||e===i||e===c||e===f||e===k||"object"===typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===a||e.$$typeof===s||e.$$typeof===g||e.$$typeof===h||e[0]===m)},n.typeOf=v},82143:function(e,n,t){"use strict";e.exports=t(71471)},57848:function(e,n,t){var r=t(18139);e.exports=function(e,n){var t,o=null;if(!e||"string"!==typeof e)return o;for(var i,l,u=r(e),a="function"===typeof n,s=0,c=u.length;se.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(o=i):(u=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(h(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){h(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const u=e.charCodeAt(t);if(47!==u)r<0&&(n=!0,r=t+1),46===u?i<0?i=t:1!==l&&(l=1):i>-1&&(l=-1);else if(n){o=t+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,u=0;continue}}else if(o.length>0){o="",i=0,l=a,u=0;continue}n&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,u=0}else 46===t&&u>-1?u++:u=-1}return o}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function h(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const m={cwd:function(){return"/"}};function g(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function y(e){if("string"===typeof e)e=new URL(e);else if(!g(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const n=e.pathname;let t=-1;for(;++tn.length;let u;r&&n.push(o);try{u=e(...n)}catch(i){const n=i;if(r&&t)throw n;return o(n)}r||(u instanceof Promise?u.then(l,o):u instanceof Error?o(u):l(u))}function o(e,...r){t||(t=!0,n(e,...r))}function l(e){o(null,e)}}(u,o)(...l):r(null,...l)}}(null,...n)},use:function(t){if("function"!==typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const F=function e(){const n=A(),t=[];let r,o={},i=-1;return u.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(D("data",r),o[e]=n,u):T.call(o,e)&&o[e]||null;if(e)return D("data",r),o=e,u;return o},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(r)return u;for(;++i{if(!e&&n&&t){const o=u.stringify(n,t);void 0===o||null===o||("string"===typeof(r=o)||l(r)?t.value=o:t.result=o),i(e,t)}else i(e);var r}))}t(null,n)},u.processSync=function(e){let n;u.freeze(),O("processSync",u.Parser),I("processSync",u.Compiler);const t=M(e);return u.process(t,r),z("processSync","process",n),t;function r(e){n=!0,S(e)}},u;function u(){const n=e();let r=-1;for(;++ro?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),[].splice.apply(e,i);else for(t&&[].splice.apply(e,[n,t]);l0?(_(e,e.length,0,n),e):n}const H={}.hasOwnProperty;function U(e,n){let t;for(t in n){const r=(H.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;for(i in o){H.call(r,i)||(r[i]=[]);const e=o[i];N(r[i],Array.isArray(e)?e:e?[e]:[])}}}function N(e,n){let t=-1;const r=[];for(;++ti))return;const t=n.events.length;let o,u,a=t;for(;a--;)if("exit"===n.events[a][0]&&"chunkFlow"===n.events[a][1].type){if(o){u=n.events[a][1].end;break}o=!0}for(y(l),e=t;er;){const r=t[o];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function k(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},ie={tokenize:function(e,n,t){return te(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const le={tokenize:function(e,n,t){return te(e,(function(e){return null===e||Z(e)?n(e):t(e)}),"linePrefix")},partial:!0};function ue(e){const n={};let t,r,o,i,l,u,a,s=-1;for(;++s=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}},partial:!0};const fe={tokenize:function(e){const n=this,t=e.attempt(le,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,te(e,e.attempt(this.parser.constructs.flow,r,e.attempt(se,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const pe={resolveAll:ge()},de=me("string"),he=me("text");function me(e){return{tokenize:function(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return n.enter("data"),n.consume(e),u;n.consume(e)}function u(e){return a(e)?(n.exit("data"),o(e)):(n.consume(e),u)}function a(e){if(null===e)return!0;const n=r[e];let o=-1;if(n)for(;++o-1&&(l[0]=l[0].slice(r)),i>0&&l.push(e[o].slice(0,i)));return l}(l,e)}function h(){return Object.assign({},r)}function m(){let e;for(;r._indexs?t(o):(e.consume(o),h):41===o?c--?(e.consume(o),h):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):null===o||X(o)?c?t(o):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):K(o)?t(o):(e.consume(o),92===o?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function Ae(e,n,t,r,o,i){const l=this;let u,a=0;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),e.enter(i),s};function s(f){return null===f||91===f||93===f&&!u||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs||a>999?t(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):Z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||Z(n)||a++>999?(e.exit("chunkString"),s(n)):(e.consume(n),u=u||!J(n),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),a++,c):c(n)}}function Fe(e,n,t,r,o,i){let l;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),l=40===n?41:n,u};function u(t){return t===l?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),a(t))}function a(n){return n===l?(e.exit(i),u(l)):null===n?t(n):Z(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),te(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===l||null===n||Z(n)?(e.exit("chunkString"),a(n)):(e.consume(n),92===n?c:s)}function c(n){return n===l||92===n?(e.consume(n),s):s(n)}}function Te(e,n){let t;return function r(o){if(Z(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r;if(J(o))return te(e,r,t?"linePrefix":"lineSuffix")(o);return n(o)}}function Pe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Oe={name:"definition",tokenize:function(e,n,t){const r=this;let o;return function(n){return e.enter("definition"),Ae.call(r,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function i(n){return o=Pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Te(e,Ce(e,e.attempt(Ie,te(e,l,"whitespace"),te(e,l,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function l(i){return null===i||Z(i)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),n(i)):t(i)}}},Ie={tokenize:function(e,n,t){return function(n){return X(n)?Te(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Fe(e,te(e,o,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function o(e){return null===e||Z(e)?n(e):t(e)}},partial:!0};const De={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),te(e,o,"linePrefix",5)(n)};function o(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?i(e):t(e)}function i(n){return null===n?u(n):Z(n)?e.attempt(Le,i,u)(n):(e.enter("codeFlowValue"),l(n))}function l(n){return null===n||Z(n)?(e.exit("codeFlowValue"),i(n)):(e.consume(n),l)}function u(t){return e.exit("codeIndented"),n(t)}}},Le={tokenize:function(e,n,t){const r=this;return o;function o(n){return r.parser.lazy[r.now().line]?t(n):Z(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o):te(e,i,"linePrefix",5)(n)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):Z(e)?o(e):t(e)}},partial:!0};const ze={name:"setextUnderline",tokenize:function(e,n,t){const r=this;let o,i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return function(n){if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=n,u(n);return t(n)};function u(n){return n===o?(e.consume(n),u):(e.exit("setextHeadingLineSequence"),te(e,a,"lineSuffix")(n))}function a(r){return null===r||Z(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[o][1].end)):e[t][1]=l;return e.push(["exit",l,n]),e}};const Me=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Re=["pre","script","style","textarea"],Be={name:"htmlFlow",tokenize:function(e,n,t){const r=this;let o,i,l,u,a;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(u){return 33===u?(e.consume(u),c):47===u?(e.consume(u),d):63===u?(e.consume(u),o=3,r.interrupt?n:z):V(u)?(e.consume(u),l=String.fromCharCode(u),i=!0,h):t(u)}function c(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,l="CDATA[",u=0,p):V(i)?(e.consume(i),o=4,r.interrupt?n:z):t(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?n:z):t(o)}function p(o){return o===l.charCodeAt(u++)?(e.consume(o),u===l.length?r.interrupt?n:A:p):t(o)}function d(n){return V(n)?(e.consume(n),l=String.fromCharCode(n),h):t(n)}function h(u){return null===u||47===u||62===u||X(u)?47!==u&&i&&Re.includes(l.toLowerCase())?(o=1,r.interrupt?n(u):A(u)):Me.includes(l.toLowerCase())?(o=6,47===u?(e.consume(u),m):r.interrupt?n(u):A(u)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(u):i?y(u):g(u)):45===u||W(u)?(e.consume(u),l+=String.fromCharCode(u),h):t(u)}function m(o){return 62===o?(e.consume(o),r.interrupt?n:A):t(o)}function g(n){return J(n)?(e.consume(n),g):E(n)}function y(n){return 47===n?(e.consume(n),E):58===n||95===n||V(n)?(e.consume(n),k):J(n)?(e.consume(n),y):E(n)}function k(n){return 45===n||46===n||58===n||95===n||W(n)?(e.consume(n),k):x(n)}function x(n){return 61===n?(e.consume(n),v):J(n)?(e.consume(n),x):y(n)}function v(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),a=n,b):J(n)?(e.consume(n),v):(a=null,w(n))}function b(n){return null===n||Z(n)?t(n):n===a?(e.consume(n),S):(e.consume(n),b)}function w(n){return null===n||34===n||39===n||60===n||61===n||62===n||96===n||X(n)?x(n):(e.consume(n),w)}function S(e){return 47===e||62===e||J(e)?y(e):t(e)}function E(n){return 62===n?(e.consume(n),C):t(n)}function C(n){return J(n)?(e.consume(n),C):null===n||Z(n)?A(n):t(n)}function A(n){return 45===n&&2===o?(e.consume(n),O):60===n&&1===o?(e.consume(n),I):62===n&&4===o?(e.consume(n),M):63===n&&3===o?(e.consume(n),z):93===n&&5===o?(e.consume(n),L):!Z(n)||6!==o&&7!==o?null===n||Z(n)?F(n):(e.consume(n),A):e.check(_e,M,F)(n)}function F(n){return e.exit("htmlFlowData"),T(n)}function T(n){return null===n?R(n):Z(n)?e.attempt({tokenize:P,partial:!0},T,R)(n):(e.enter("htmlFlowData"),A(n))}function P(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}function O(n){return 45===n?(e.consume(n),z):A(n)}function I(n){return 47===n?(e.consume(n),l="",D):A(n)}function D(n){return 62===n&&Re.includes(l.toLowerCase())?(e.consume(n),M):V(n)&&l.length<8?(e.consume(n),l+=String.fromCharCode(n),D):A(n)}function L(n){return 93===n?(e.consume(n),z):A(n)}function z(n){return 62===n?(e.consume(n),M):A(n)}function M(n){return null===n||Z(n)?(e.exit("htmlFlowData"),R(n)):(e.consume(n),M)}function R(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},_e={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(le,n,t)}},partial:!0};const je={name:"codeFenced",tokenize:function(e,n,t){const r=this,o={tokenize:function(e,n,t){let r=0;return te(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),i(n)}function i(n){return n===a?(e.consume(n),r++,i):r1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);Ze(f,-u),Ze(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},l.end),a=[],e[t][1].end.offset-e[t][1].start.offset&&(a=j(a,[["enter",e[t][1],n],["exit",e[t][1],n]])),a=j(a,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),a=j(a,ke(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),a=j(a,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=j(a,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,_(e,t-1,c-t+3,a),c=t+a.length-s-2;break}c=-1;for(;++ci&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},_(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}},42:ve,45:[ze,ve],60:Be,61:ze,95:ve,96:je,126:je},tn={38:Ne,92:Ve},rn={[-5]:qe,[-4]:qe,[-3]:qe,33:{name:"labelStartImage",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(n),e.exit("labelImageMarker"),o};function o(n){return 91===n?(e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelImage"),i):t(n)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?t(e):n(e)}},resolveAll:$e.resolveAll},38:Ne,42:Xe,60:[{name:"autolink",tokenize:function(e,n,t){let r=1;return function(n){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(n){return V(n)?(e.consume(n),i):Y(n)?a(n):t(n)}function i(e){return 43===e||45===e||46===e||W(e)?l(e):a(e)}function l(n){return 58===n?(e.consume(n),u):(43===n||45===n||46===n||W(n))&&r++<32?(e.consume(n),l):a(n)}function u(n){return 62===n?(e.exit("autolinkProtocol"),p(n)):null===n||32===n||60===n||K(n)?t(n):(e.consume(n),u)}function a(n){return 64===n?(e.consume(n),r=0,s):Y(n)?(e.consume(n),a):t(n)}function s(e){return W(e)?c(e):t(e)}function c(n){return 46===n?(e.consume(n),r=0,s):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",p(n)):f(n)}function f(n){return(45===n||W(n))&&r++<63?(e.consume(n),45===n?f:c):t(n)}function p(t){return e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.exit("autolink"),n}}},{name:"htmlText",tokenize:function(e,n,t){const r=this;let o,i,l,u;return function(n){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(n),a};function a(n){return 33===n?(e.consume(n),s):47===n?(e.consume(n),w):63===n?(e.consume(n),v):V(n)?(e.consume(n),C):t(n)}function s(n){return 45===n?(e.consume(n),c):91===n?(e.consume(n),i="CDATA[",l=0,m):V(n)?(e.consume(n),x):t(n)}function c(n){return 45===n?(e.consume(n),f):t(n)}function f(n){return null===n||62===n?t(n):45===n?(e.consume(n),p):d(n)}function p(e){return null===e||62===e?t(e):d(e)}function d(n){return null===n?t(n):45===n?(e.consume(n),h):Z(n)?(u=d,L(n)):(e.consume(n),d)}function h(n){return 45===n?(e.consume(n),M):d(n)}function m(n){return n===i.charCodeAt(l++)?(e.consume(n),l===i.length?g:m):t(n)}function g(n){return null===n?t(n):93===n?(e.consume(n),y):Z(n)?(u=g,L(n)):(e.consume(n),g)}function y(n){return 93===n?(e.consume(n),k):g(n)}function k(n){return 62===n?M(n):93===n?(e.consume(n),k):g(n)}function x(n){return null===n||62===n?M(n):Z(n)?(u=x,L(n)):(e.consume(n),x)}function v(n){return null===n?t(n):63===n?(e.consume(n),b):Z(n)?(u=v,L(n)):(e.consume(n),v)}function b(e){return 62===e?M(e):v(e)}function w(n){return V(n)?(e.consume(n),S):t(n)}function S(n){return 45===n||W(n)?(e.consume(n),S):E(n)}function E(n){return Z(n)?(u=E,L(n)):J(n)?(e.consume(n),E):M(n)}function C(n){return 45===n||W(n)?(e.consume(n),C):47===n||62===n||X(n)?A(n):t(n)}function A(n){return 47===n?(e.consume(n),M):58===n||95===n||V(n)?(e.consume(n),F):Z(n)?(u=A,L(n)):J(n)?(e.consume(n),A):M(n)}function F(n){return 45===n||46===n||58===n||95===n||W(n)?(e.consume(n),F):T(n)}function T(n){return 61===n?(e.consume(n),P):Z(n)?(u=T,L(n)):J(n)?(e.consume(n),T):A(n)}function P(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),o=n,O):Z(n)?(u=P,L(n)):J(n)?(e.consume(n),P):(e.consume(n),o=void 0,D)}function O(n){return n===o?(e.consume(n),I):null===n?t(n):Z(n)?(u=O,L(n)):(e.consume(n),O)}function I(e){return 62===e||47===e||X(e)?A(e):t(e)}function D(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||X(n)?A(n):(e.consume(n),D)}function L(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),te(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function z(n){return e.enter("htmlTextData"),u(n)}function M(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),n):t(r)}}}],91:{name:"labelStartLink",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?t(e):n(e)}},resolveAll:$e.resolveAll},92:[{name:"hardBreakEscape",tokenize:function(e,n,t){return function(n){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(n),r};function r(r){return Z(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}},Ve],93:$e,95:Xe,96:{name:"codeText",tokenize:function(e,n,t){let r,o,i=0;return function(n){return e.enter("codeText"),e.enter("codeTextSequence"),l(n)};function l(n){return 96===n?(e.consume(n),i++,l):(e.exit("codeTextSequence"),u(n))}function u(n){return null===n?t(n):96===n?(o=e.enter("codeTextSequence"),r=0,s(n)):32===n?(e.enter("space"),e.consume(n),e.exit("space"),u):Z(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),u):(e.enter("codeTextData"),a(n))}function a(n){return null===n||32===n||96===n||Z(n)?(e.exit("codeTextData"),u(n)):(e.consume(n),a)}function s(t){return 96===t?(e.consume(t),r++,s):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(t)):(o.type="codeTextData",a(t))}},resolve:function(e){let n,t,r=e.length-4,o=3;if(("lineEnding"===e[o][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(n=o;++n13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535===(65535&t)||65534===(65535&t)||t>1114111?"\ufffd":String.fromCharCode(t)}const fn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pn(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return cn(t.slice(n?2:1),n?16:10)}return Ue(t)||e}const dn={}.hasOwnProperty,hn=function(e,n,t){return"string"!==typeof n&&(t=n,n=void 0),function(e={}){const n=mn({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ie),autolinkProtocol:P,autolinkEmail:P,atxHeading:s(ne),blockQuote:s(X),characterEscape:P,characterReference:P,codeFenced:s(Z),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Z,c),codeText:s(J,c),codeTextData:P,data:P,codeFlowValue:P,definition:s(G),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(ee),hardBreakEscape:s(te),hardBreakTrailing:s(te),htmlFlow:s(re,c),htmlFlowData:P,htmlText:s(re,c),htmlTextData:P,image:s(oe),label:c,link:s(ie),listItem:s(ue),listItemValue:g,listOrdered:s(le,m),listUnordered:s(le),paragraph:s(ae),reference:q,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ne),strong:s(se),thematicBreak:s(fe)},exit:{atxHeading:p(),atxHeadingSequence:C,autolink:p(),autolinkEmail:K,autolinkProtocol:Y,blockQuote:p(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:Q,codeFenced:p(v),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:k,codeFlowValue:O,codeIndented:p(b),codeText:p(M),codeTextData:O,data:O,definition:p(),definitionDestinationString:E,definitionLabelString:w,definitionTitleString:S,emphasis:p(),hardBreakEscape:p(D),hardBreakTrailing:p(D),htmlFlow:p(L),htmlFlowData:O,htmlText:p(z),htmlTextData:O,image:p(_),label:H,labelText:j,lineEnding:I,link:p(B),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:$,resourceDestinationString:U,resourceTitleString:N,resource:V,setextHeading:p(T),setextHeadingLineSequence:F,setextHeadingText:A,strong:p(),thematicBreak:p()}},e.mdastExtensions||[]),t={};return r;function r(e){let t={type:"root",children:[]};const r=[],s=[],p={stack:[t],tokenStack:r,config:n,enter:f,exit:d,buffer:c,resume:h,setData:i,getData:l};let m=-1;for(;++m0)throw new Error("Cannot close document, a token (`"+r[r.length-1].type+"`, "+a({start:r[r.length-1].start,end:r[r.length-1].end})+") is still open");for(t.position={start:u(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:u(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},m=-1;++m{const t=this.data("settings");return hn(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})},kn=function(e,n,t){var r={type:String(e)};return void 0!==t&&null!==t||"string"!==typeof n&&!Array.isArray(n)?Object.assign(r,n):t=n,Array.isArray(t)?r.children=t:void 0!==t&&null!==t&&(r.value=String(t)),r};const xn=function(e){if(void 0===e||null===e)return bn;if("string"===typeof e)return function(e){return vn(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c-1?t.offset:null}}}const Fn=function(e,n,t,r){"function"===typeof n&&"function"!==typeof t&&(r=t,t=n,n=null);var o=xn(n),i=r?-1:1;!function e(l,u,a){var s,c="object"===typeof l&&null!==l?l:{};"string"===typeof c.type&&(s="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(s?"<"+s+">":"")+")"}));return f;function f(){var s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&false===(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)))[0])return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c0&&t.push(kn("text","\n")),t}function _n(e,n){const t={},r=n.ordered?"ol":"ul",o=Mn(e,n);let i=-1;for("number"===typeof n.start&&1!==n.start&&(t.start=n.start);++i1:n}const Vn={blockquote:function(e,n){return e(n,"blockquote",Bn(Mn(e,n),!0))},break:function(e,n){return[e(n,"br"),kn("text","\n")]},code:function(e,n){const t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const i=e(n,"code",o,[kn("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",Mn(e,n))},emphasis:function(e,n){return e(n,"em",Mn(e,n))},footnoteReference:jn,footnote:function(e,n){const t=e.footnoteById,r=e.footnoteOrder;let o=1;for(;o in t;)o++;const i=String(o);return r.push(i),t[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:n.children}],position:n.position},jn(e,{type:"footnoteReference",identifier:i,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Mn(e,n))},html:function(e,n){return e.dangerous?e.augment(n,kn("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Un(e,n);const r={src:Hn(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){const t={src:Hn(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[kn("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Un(e,n);const r={href:Hn(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Mn(e,n))},link:function(e,n){const t={href:Hn(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Mn(e,n))},listItem:function(e,n,t){const r=Mn(e,n),o=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r0&&t.children.unshift(kn("text"," ")),t.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let u=-1;for(;++u{const n=String(e.identifier).toUpperCase();$n.call(o,n)||(o[n]=e)})),l;function i(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const r="type"in e?e:{position:e};(t=r)&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column&&(n.position={start:En(r),end:Cn(r)})}var t;return n}function l(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}(e,n),r=Ln(t,e,null),o=function(e){const n=e.footnoteById,t=e.footnoteOrder;let r=-1;const o=[];for(;++r{e.run(Wn(t,n),r,(e=>{o(e)}))}}(e,n):function(e){return n=>Wn(n,e)}(e)};var Yn=t(45697);class Kn{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function Xn(e,n){for(var t={},r={},o=-1;++o{Sn(n,"element",((n,t,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&"number"===typeof t&&(i=!e.allowElement(n,t,o)),i&&"number"===typeof t)return e.unwrapDisallowed&&n.children?o.children.splice(t,1,...n.children):o.children.splice(t,1),t}))}}const Et=["http","https","mailto","tel"];var Ct=t(82143),At=/^data[-\w.:]+$/i,Ft=/-[a-z]/g,Tt=/[A-Z]/g;function Pt(e,n){var t=Zn(n),r=n,o=Jn;return t in e.normal?e.property[e.normal[t]]:(t.length>4&&"data"===t.slice(0,4)&&At.test(n)&&("-"===n.charAt(4)?r=function(e){var n=e.slice(5).replace(Ft,It);return"data"+n.charAt(0).toUpperCase()+n.slice(1)}(n):n=function(e){var n=e.slice(4);if(Ft.test(n))return e;"-"!==(n=n.replace(Tt,Ot)).charAt(0)&&(n="-"+n);return"data"+n}(n),o=st),new o(r,n))}function Ot(e){return"-"+e.toLowerCase()}function It(e){return e.charAt(1).toUpperCase()}var Dt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Lt=t(57848);const zt={}.hasOwnProperty,Mt=new Set(["table","thead","tbody","tfoot","tr"]);function Rt(e,n){const t=[];let r,o=-1;for(;++oString(e))).join("")),!h&&o.rawSourcePos&&(a.sourcePosition=n.position),!h&&o.includeElementIndex&&(a.index=_t(r,n),a.siblingCount=_t(r)),h||(a.node=n),f.length>0?i.createElement(d,a,f):i.createElement(d,a)}function _t(e,n){let t=-1,r=0;for(;++t for more info)`),delete Nt[i]}const n=F().use(yn).use(e.remarkPlugins||e.plugins||[]).use(Qn,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(St,e),t=new x;"string"===typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},Rt({options:e,schema:bt,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}Vt.defaultProps={transformLinkUri:function(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let o=-1;for(;++oo?n:(o=n.indexOf("#"),-1!==o&&r>o?n:"javascript:void(0)")}},Vt.propTypes={children:Yn.string,className:Yn.string,allowElement:Yn.func,allowedElements:Yn.arrayOf(Yn.string),disallowedElements:Yn.arrayOf(Yn.string),unwrapDisallowed:Yn.bool,remarkPlugins:Yn.arrayOf(Yn.oneOfType([Yn.object,Yn.func,Yn.arrayOf(Yn.oneOfType([Yn.object,Yn.func]))])),rehypePlugins:Yn.arrayOf(Yn.oneOfType([Yn.object,Yn.func,Yn.arrayOf(Yn.oneOfType([Yn.object,Yn.func]))])),sourcePos:Yn.bool,rawSourcePos:Yn.bool,skipHtml:Yn.bool,includeElementIndex:Yn.bool,transformLinkUri:Yn.oneOfType([Yn.func,Yn.bool]),linkTarget:Yn.oneOfType([Yn.func,Yn.string]),transformImageUri:Yn.func,components:Yn.object};var qt=Vt}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[935],{94470:function(e){"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},l=function(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||n.call(e,r)},u=function(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},a=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var n,t,r,o,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});p=55296&&u<=57343){if(u>=55296&&u<=56319&&i+1=56320&&a<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}t.defaultChars=";/?:@&=+$,-_.!~*'()#",t.componentChars="-_.!~*'()",e.exports=t},71471:function(e,n){"use strict";var t=60103,r=60106,o=60107,i=60108,l=60114,u=60109,a=60110,s=60112,c=60113,f=60120,p=60115,d=60116,h=60121,m=60122,g=60117,y=60129,k=60131;if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;t=x("react.element"),r=x("react.portal"),o=x("react.fragment"),i=x("react.strict_mode"),l=x("react.profiler"),u=x("react.provider"),a=x("react.context"),s=x("react.forward_ref"),c=x("react.suspense"),f=x("react.suspense_list"),p=x("react.memo"),d=x("react.lazy"),h=x("react.block"),m=x("react.server.block"),g=x("react.fundamental"),y=x("react.debug_trace_mode"),k=x("react.legacy_hidden")}function v(e){if("object"===typeof e&&null!==e){var n=e.$$typeof;switch(n){case t:switch(e=e.type){case o:case l:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case a:case s:case d:case p:case u:return e;default:return n}}case r:return n}}}var b=u,w=t,S=s,E=o,C=d,A=p,F=r,T=l,P=i,O=c;n.ContextConsumer=a,n.ContextProvider=b,n.Element=w,n.ForwardRef=S,n.Fragment=E,n.Lazy=C,n.Memo=A,n.Portal=F,n.Profiler=T,n.StrictMode=P,n.Suspense=O,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return v(e)===a},n.isContextProvider=function(e){return v(e)===u},n.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===t},n.isForwardRef=function(e){return v(e)===s},n.isFragment=function(e){return v(e)===o},n.isLazy=function(e){return v(e)===d},n.isMemo=function(e){return v(e)===p},n.isPortal=function(e){return v(e)===r},n.isProfiler=function(e){return v(e)===l},n.isStrictMode=function(e){return v(e)===i},n.isSuspense=function(e){return v(e)===c},n.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===l||e===y||e===i||e===c||e===f||e===k||"object"===typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===a||e.$$typeof===s||e.$$typeof===g||e.$$typeof===h||e[0]===m)},n.typeOf=v},82143:function(e,n,t){"use strict";e.exports=t(71471)},57848:function(e,n,t){var r=t(18139);e.exports=function(e,n){var t,o=null;if(!e||"string"!==typeof e)return o;for(var i,l,u=r(e),a="function"===typeof n,s=0,c=u.length;se.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(o=i):(u=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(h(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){h(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const u=e.charCodeAt(t);if(47!==u)r<0&&(n=!0,r=t+1),46===u?i<0?i=t:1!==l&&(l=1):i>-1&&(l=-1);else if(n){o=t+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,u=0;continue}}else if(o.length>0){o="",i=0,l=a,u=0;continue}n&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,u=0}else 46===t&&u>-1?u++:u=-1}return o}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function h(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const m={cwd:function(){return"/"}};function g(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function y(e){if("string"===typeof e)e=new URL(e);else if(!g(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const n=e.pathname;let t=-1;for(;++tn.length;let u;r&&n.push(o);try{u=e(...n)}catch(i){const n=i;if(r&&t)throw n;return o(n)}r||(u instanceof Promise?u.then(l,o):u instanceof Error?o(u):l(u))}function o(e,...r){t||(t=!0,n(e,...r))}function l(e){o(null,e)}}(u,o)(...l):r(null,...l)}}(null,...n)},use:function(t){if("function"!==typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const F=function e(){const n=A(),t=[];let r,o={},i=-1;return u.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(D("data",r),o[e]=n,u):T.call(o,e)&&o[e]||null;if(e)return D("data",r),o=e,u;return o},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(r)return u;for(;++i{if(!e&&n&&t){const o=u.stringify(n,t);void 0===o||null===o||("string"===typeof(r=o)||l(r)?t.value=o:t.result=o),i(e,t)}else i(e);var r}))}t(null,n)},u.processSync=function(e){let n;u.freeze(),O("processSync",u.Parser),I("processSync",u.Compiler);const t=M(e);return u.process(t,r),z("processSync","process",n),t;function r(e){n=!0,S(e)}},u;function u(){const n=e();let r=-1;for(;++ro?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),[].splice.apply(e,i);else for(t&&[].splice.apply(e,[n,t]);l0?(_(e,e.length,0,n),e):n}const H={}.hasOwnProperty;function U(e,n){let t;for(t in n){const r=(H.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;for(i in o){H.call(r,i)||(r[i]=[]);const e=o[i];N(r[i],Array.isArray(e)?e:e?[e]:[])}}}function N(e,n){let t=-1;const r=[];for(;++ti))return;const t=n.events.length;let o,u,a=t;for(;a--;)if("exit"===n.events[a][0]&&"chunkFlow"===n.events[a][1].type){if(o){u=n.events[a][1].end;break}o=!0}for(y(l),e=t;er;){const r=t[o];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function k(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},ie={tokenize:function(e,n,t){return te(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const le={tokenize:function(e,n,t){return te(e,(function(e){return null===e||Z(e)?n(e):t(e)}),"linePrefix")},partial:!0};function ue(e){const n={};let t,r,o,i,l,u,a,s=-1;for(;++s=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}},partial:!0};const fe={tokenize:function(e){const n=this,t=e.attempt(le,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,te(e,e.attempt(this.parser.constructs.flow,r,e.attempt(se,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const pe={resolveAll:ge()},de=me("string"),he=me("text");function me(e){return{tokenize:function(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return n.enter("data"),n.consume(e),u;n.consume(e)}function u(e){return a(e)?(n.exit("data"),o(e)):(n.consume(e),u)}function a(e){if(null===e)return!0;const n=r[e];let o=-1;if(n)for(;++o-1&&(l[0]=l[0].slice(r)),i>0&&l.push(e[o].slice(0,i)));return l}(l,e)}function h(){return Object.assign({},r)}function m(){let e;for(;r._indexs?t(o):(e.consume(o),h):41===o?c--?(e.consume(o),h):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):null===o||X(o)?c?t(o):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):K(o)?t(o):(e.consume(o),92===o?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function Ae(e,n,t,r,o,i){const l=this;let u,a=0;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),e.enter(i),s};function s(f){return null===f||91===f||93===f&&!u||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs||a>999?t(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):Z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||Z(n)||a++>999?(e.exit("chunkString"),s(n)):(e.consume(n),u=u||!J(n),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),a++,c):c(n)}}function Fe(e,n,t,r,o,i){let l;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),l=40===n?41:n,u};function u(t){return t===l?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),a(t))}function a(n){return n===l?(e.exit(i),u(l)):null===n?t(n):Z(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),te(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===l||null===n||Z(n)?(e.exit("chunkString"),a(n)):(e.consume(n),92===n?c:s)}function c(n){return n===l||92===n?(e.consume(n),s):s(n)}}function Te(e,n){let t;return function r(o){if(Z(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r;if(J(o))return te(e,r,t?"linePrefix":"lineSuffix")(o);return n(o)}}function Pe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Oe={name:"definition",tokenize:function(e,n,t){const r=this;let o;return function(n){return e.enter("definition"),Ae.call(r,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function i(n){return o=Pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Te(e,Ce(e,e.attempt(Ie,te(e,l,"whitespace"),te(e,l,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function l(i){return null===i||Z(i)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),n(i)):t(i)}}},Ie={tokenize:function(e,n,t){return function(n){return X(n)?Te(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Fe(e,te(e,o,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function o(e){return null===e||Z(e)?n(e):t(e)}},partial:!0};const De={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),te(e,o,"linePrefix",5)(n)};function o(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?i(e):t(e)}function i(n){return null===n?u(n):Z(n)?e.attempt(Le,i,u)(n):(e.enter("codeFlowValue"),l(n))}function l(n){return null===n||Z(n)?(e.exit("codeFlowValue"),i(n)):(e.consume(n),l)}function u(t){return e.exit("codeIndented"),n(t)}}},Le={tokenize:function(e,n,t){const r=this;return o;function o(n){return r.parser.lazy[r.now().line]?t(n):Z(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o):te(e,i,"linePrefix",5)(n)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):Z(e)?o(e):t(e)}},partial:!0};const ze={name:"setextUnderline",tokenize:function(e,n,t){const r=this;let o,i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return function(n){if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=n,u(n);return t(n)};function u(n){return n===o?(e.consume(n),u):(e.exit("setextHeadingLineSequence"),te(e,a,"lineSuffix")(n))}function a(r){return null===r||Z(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[o][1].end)):e[t][1]=l;return e.push(["exit",l,n]),e}};const Me=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Re=["pre","script","style","textarea"],Be={name:"htmlFlow",tokenize:function(e,n,t){const r=this;let o,i,l,u,a;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(u){return 33===u?(e.consume(u),c):47===u?(e.consume(u),d):63===u?(e.consume(u),o=3,r.interrupt?n:z):V(u)?(e.consume(u),l=String.fromCharCode(u),i=!0,h):t(u)}function c(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,l="CDATA[",u=0,p):V(i)?(e.consume(i),o=4,r.interrupt?n:z):t(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?n:z):t(o)}function p(o){return o===l.charCodeAt(u++)?(e.consume(o),u===l.length?r.interrupt?n:A:p):t(o)}function d(n){return V(n)?(e.consume(n),l=String.fromCharCode(n),h):t(n)}function h(u){return null===u||47===u||62===u||X(u)?47!==u&&i&&Re.includes(l.toLowerCase())?(o=1,r.interrupt?n(u):A(u)):Me.includes(l.toLowerCase())?(o=6,47===u?(e.consume(u),m):r.interrupt?n(u):A(u)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(u):i?y(u):g(u)):45===u||W(u)?(e.consume(u),l+=String.fromCharCode(u),h):t(u)}function m(o){return 62===o?(e.consume(o),r.interrupt?n:A):t(o)}function g(n){return J(n)?(e.consume(n),g):E(n)}function y(n){return 47===n?(e.consume(n),E):58===n||95===n||V(n)?(e.consume(n),k):J(n)?(e.consume(n),y):E(n)}function k(n){return 45===n||46===n||58===n||95===n||W(n)?(e.consume(n),k):x(n)}function x(n){return 61===n?(e.consume(n),v):J(n)?(e.consume(n),x):y(n)}function v(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),a=n,b):J(n)?(e.consume(n),v):(a=null,w(n))}function b(n){return null===n||Z(n)?t(n):n===a?(e.consume(n),S):(e.consume(n),b)}function w(n){return null===n||34===n||39===n||60===n||61===n||62===n||96===n||X(n)?x(n):(e.consume(n),w)}function S(e){return 47===e||62===e||J(e)?y(e):t(e)}function E(n){return 62===n?(e.consume(n),C):t(n)}function C(n){return J(n)?(e.consume(n),C):null===n||Z(n)?A(n):t(n)}function A(n){return 45===n&&2===o?(e.consume(n),O):60===n&&1===o?(e.consume(n),I):62===n&&4===o?(e.consume(n),M):63===n&&3===o?(e.consume(n),z):93===n&&5===o?(e.consume(n),L):!Z(n)||6!==o&&7!==o?null===n||Z(n)?F(n):(e.consume(n),A):e.check(_e,M,F)(n)}function F(n){return e.exit("htmlFlowData"),T(n)}function T(n){return null===n?R(n):Z(n)?e.attempt({tokenize:P,partial:!0},T,R)(n):(e.enter("htmlFlowData"),A(n))}function P(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}function O(n){return 45===n?(e.consume(n),z):A(n)}function I(n){return 47===n?(e.consume(n),l="",D):A(n)}function D(n){return 62===n&&Re.includes(l.toLowerCase())?(e.consume(n),M):V(n)&&l.length<8?(e.consume(n),l+=String.fromCharCode(n),D):A(n)}function L(n){return 93===n?(e.consume(n),z):A(n)}function z(n){return 62===n?(e.consume(n),M):A(n)}function M(n){return null===n||Z(n)?(e.exit("htmlFlowData"),R(n)):(e.consume(n),M)}function R(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},_e={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(le,n,t)}},partial:!0};const je={name:"codeFenced",tokenize:function(e,n,t){const r=this,o={tokenize:function(e,n,t){let r=0;return te(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),i(n)}function i(n){return n===a?(e.consume(n),r++,i):r1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);Ze(f,-u),Ze(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},l.end),a=[],e[t][1].end.offset-e[t][1].start.offset&&(a=j(a,[["enter",e[t][1],n],["exit",e[t][1],n]])),a=j(a,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),a=j(a,ke(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),a=j(a,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=j(a,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,_(e,t-1,c-t+3,a),c=t+a.length-s-2;break}c=-1;for(;++ci&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},_(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}},42:ve,45:[ze,ve],60:Be,61:ze,95:ve,96:je,126:je},tn={38:Ne,92:Ve},rn={[-5]:qe,[-4]:qe,[-3]:qe,33:{name:"labelStartImage",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(n),e.exit("labelImageMarker"),o};function o(n){return 91===n?(e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelImage"),i):t(n)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?t(e):n(e)}},resolveAll:$e.resolveAll},38:Ne,42:Xe,60:[{name:"autolink",tokenize:function(e,n,t){let r=1;return function(n){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(n){return V(n)?(e.consume(n),i):Y(n)?a(n):t(n)}function i(e){return 43===e||45===e||46===e||W(e)?l(e):a(e)}function l(n){return 58===n?(e.consume(n),u):(43===n||45===n||46===n||W(n))&&r++<32?(e.consume(n),l):a(n)}function u(n){return 62===n?(e.exit("autolinkProtocol"),p(n)):null===n||32===n||60===n||K(n)?t(n):(e.consume(n),u)}function a(n){return 64===n?(e.consume(n),r=0,s):Y(n)?(e.consume(n),a):t(n)}function s(e){return W(e)?c(e):t(e)}function c(n){return 46===n?(e.consume(n),r=0,s):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",p(n)):f(n)}function f(n){return(45===n||W(n))&&r++<63?(e.consume(n),45===n?f:c):t(n)}function p(t){return e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.exit("autolink"),n}}},{name:"htmlText",tokenize:function(e,n,t){const r=this;let o,i,l,u;return function(n){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(n),a};function a(n){return 33===n?(e.consume(n),s):47===n?(e.consume(n),w):63===n?(e.consume(n),v):V(n)?(e.consume(n),C):t(n)}function s(n){return 45===n?(e.consume(n),c):91===n?(e.consume(n),i="CDATA[",l=0,m):V(n)?(e.consume(n),x):t(n)}function c(n){return 45===n?(e.consume(n),f):t(n)}function f(n){return null===n||62===n?t(n):45===n?(e.consume(n),p):d(n)}function p(e){return null===e||62===e?t(e):d(e)}function d(n){return null===n?t(n):45===n?(e.consume(n),h):Z(n)?(u=d,L(n)):(e.consume(n),d)}function h(n){return 45===n?(e.consume(n),M):d(n)}function m(n){return n===i.charCodeAt(l++)?(e.consume(n),l===i.length?g:m):t(n)}function g(n){return null===n?t(n):93===n?(e.consume(n),y):Z(n)?(u=g,L(n)):(e.consume(n),g)}function y(n){return 93===n?(e.consume(n),k):g(n)}function k(n){return 62===n?M(n):93===n?(e.consume(n),k):g(n)}function x(n){return null===n||62===n?M(n):Z(n)?(u=x,L(n)):(e.consume(n),x)}function v(n){return null===n?t(n):63===n?(e.consume(n),b):Z(n)?(u=v,L(n)):(e.consume(n),v)}function b(e){return 62===e?M(e):v(e)}function w(n){return V(n)?(e.consume(n),S):t(n)}function S(n){return 45===n||W(n)?(e.consume(n),S):E(n)}function E(n){return Z(n)?(u=E,L(n)):J(n)?(e.consume(n),E):M(n)}function C(n){return 45===n||W(n)?(e.consume(n),C):47===n||62===n||X(n)?A(n):t(n)}function A(n){return 47===n?(e.consume(n),M):58===n||95===n||V(n)?(e.consume(n),F):Z(n)?(u=A,L(n)):J(n)?(e.consume(n),A):M(n)}function F(n){return 45===n||46===n||58===n||95===n||W(n)?(e.consume(n),F):T(n)}function T(n){return 61===n?(e.consume(n),P):Z(n)?(u=T,L(n)):J(n)?(e.consume(n),T):A(n)}function P(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),o=n,O):Z(n)?(u=P,L(n)):J(n)?(e.consume(n),P):(e.consume(n),o=void 0,D)}function O(n){return n===o?(e.consume(n),I):null===n?t(n):Z(n)?(u=O,L(n)):(e.consume(n),O)}function I(e){return 62===e||47===e||X(e)?A(e):t(e)}function D(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||X(n)?A(n):(e.consume(n),D)}function L(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),te(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function z(n){return e.enter("htmlTextData"),u(n)}function M(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),n):t(r)}}}],91:{name:"labelStartLink",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?t(e):n(e)}},resolveAll:$e.resolveAll},92:[{name:"hardBreakEscape",tokenize:function(e,n,t){return function(n){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(n),r};function r(r){return Z(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}},Ve],93:$e,95:Xe,96:{name:"codeText",tokenize:function(e,n,t){let r,o,i=0;return function(n){return e.enter("codeText"),e.enter("codeTextSequence"),l(n)};function l(n){return 96===n?(e.consume(n),i++,l):(e.exit("codeTextSequence"),u(n))}function u(n){return null===n?t(n):96===n?(o=e.enter("codeTextSequence"),r=0,s(n)):32===n?(e.enter("space"),e.consume(n),e.exit("space"),u):Z(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),u):(e.enter("codeTextData"),a(n))}function a(n){return null===n||32===n||96===n||Z(n)?(e.exit("codeTextData"),u(n)):(e.consume(n),a)}function s(t){return 96===t?(e.consume(t),r++,s):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(t)):(o.type="codeTextData",a(t))}},resolve:function(e){let n,t,r=e.length-4,o=3;if(("lineEnding"===e[o][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(n=o;++n13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535===(65535&t)||65534===(65535&t)||t>1114111?"\ufffd":String.fromCharCode(t)}const fn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pn(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return cn(t.slice(n?2:1),n?16:10)}return Ue(t)||e}const dn={}.hasOwnProperty,hn=function(e,n,t){return"string"!==typeof n&&(t=n,n=void 0),function(e={}){const n=mn({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ie),autolinkProtocol:P,autolinkEmail:P,atxHeading:s(ne),blockQuote:s(X),characterEscape:P,characterReference:P,codeFenced:s(Z),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Z,c),codeText:s(J,c),codeTextData:P,data:P,codeFlowValue:P,definition:s(G),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(ee),hardBreakEscape:s(te),hardBreakTrailing:s(te),htmlFlow:s(re,c),htmlFlowData:P,htmlText:s(re,c),htmlTextData:P,image:s(oe),label:c,link:s(ie),listItem:s(ue),listItemValue:g,listOrdered:s(le,m),listUnordered:s(le),paragraph:s(ae),reference:q,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ne),strong:s(se),thematicBreak:s(fe)},exit:{atxHeading:p(),atxHeadingSequence:C,autolink:p(),autolinkEmail:K,autolinkProtocol:Y,blockQuote:p(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:Q,codeFenced:p(v),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:k,codeFlowValue:O,codeIndented:p(b),codeText:p(M),codeTextData:O,data:O,definition:p(),definitionDestinationString:E,definitionLabelString:w,definitionTitleString:S,emphasis:p(),hardBreakEscape:p(D),hardBreakTrailing:p(D),htmlFlow:p(L),htmlFlowData:O,htmlText:p(z),htmlTextData:O,image:p(_),label:H,labelText:j,lineEnding:I,link:p(B),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:$,resourceDestinationString:U,resourceTitleString:N,resource:V,setextHeading:p(T),setextHeadingLineSequence:F,setextHeadingText:A,strong:p(),thematicBreak:p()}},e.mdastExtensions||[]),t={};return r;function r(e){let t={type:"root",children:[]};const r=[],s=[],p={stack:[t],tokenStack:r,config:n,enter:f,exit:d,buffer:c,resume:h,setData:i,getData:l};let m=-1;for(;++m0)throw new Error("Cannot close document, a token (`"+r[r.length-1].type+"`, "+a({start:r[r.length-1].start,end:r[r.length-1].end})+") is still open");for(t.position={start:u(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:u(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},m=-1;++m{const t=this.data("settings");return hn(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})},kn=function(e,n,t){var r={type:String(e)};return void 0!==t&&null!==t||"string"!==typeof n&&!Array.isArray(n)?Object.assign(r,n):t=n,Array.isArray(t)?r.children=t:void 0!==t&&null!==t&&(r.value=String(t)),r};const xn=function(e){if(void 0===e||null===e)return bn;if("string"===typeof e)return function(e){return vn(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c-1?t.offset:null}}}const Fn=function(e,n,t,r){"function"===typeof n&&"function"!==typeof t&&(r=t,t=n,n=null);var o=xn(n),i=r?-1:1;!function e(l,u,a){var s,c="object"===typeof l&&null!==l?l:{};"string"===typeof c.type&&(s="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(s?"<"+s+">":"")+")"}));return f;function f(){var s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&false===(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)))[0])return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c0&&t.push(kn("text","\n")),t}function _n(e,n){const t={},r=n.ordered?"ol":"ul",o=Mn(e,n);let i=-1;for("number"===typeof n.start&&1!==n.start&&(t.start=n.start);++i1:n}const Vn={blockquote:function(e,n){return e(n,"blockquote",Bn(Mn(e,n),!0))},break:function(e,n){return[e(n,"br"),kn("text","\n")]},code:function(e,n){const t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const i=e(n,"code",o,[kn("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",Mn(e,n))},emphasis:function(e,n){return e(n,"em",Mn(e,n))},footnoteReference:jn,footnote:function(e,n){const t=e.footnoteById,r=e.footnoteOrder;let o=1;for(;o in t;)o++;const i=String(o);return r.push(i),t[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:n.children}],position:n.position},jn(e,{type:"footnoteReference",identifier:i,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Mn(e,n))},html:function(e,n){return e.dangerous?e.augment(n,kn("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Un(e,n);const r={src:Hn(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){const t={src:Hn(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[kn("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Un(e,n);const r={href:Hn(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Mn(e,n))},link:function(e,n){const t={href:Hn(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Mn(e,n))},listItem:function(e,n,t){const r=Mn(e,n),o=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r0&&t.children.unshift(kn("text"," ")),t.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let u=-1;for(;++u{const n=String(e.identifier).toUpperCase();$n.call(o,n)||(o[n]=e)})),l;function i(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const r="type"in e?e:{position:e};(t=r)&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column&&(n.position={start:En(r),end:Cn(r)})}var t;return n}function l(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}(e,n),r=Ln(t,e,null),o=function(e){const n=e.footnoteById,t=e.footnoteOrder;let r=-1;const o=[];for(;++r{e.run(Wn(t,n),r,(e=>{o(e)}))}}(e,n):function(e){return n=>Wn(n,e)}(e)};var Yn=t(45697);class Kn{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function Xn(e,n){for(var t={},r={},o=-1;++o{Sn(n,"element",((n,t,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&"number"===typeof t&&(i=!e.allowElement(n,t,o)),i&&"number"===typeof t)return e.unwrapDisallowed&&n.children?o.children.splice(t,1,...n.children):o.children.splice(t,1),t}))}}const Et=["http","https","mailto","tel"];var Ct=t(82143);function At(e){var n=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}var Ft=/^data[-\w.:]+$/i,Tt=/-[a-z]/g,Pt=/[A-Z]/g;function Ot(e,n){var t=Zn(n),r=n,o=Jn;return t in e.normal?e.property[e.normal[t]]:(t.length>4&&"data"===t.slice(0,4)&&Ft.test(n)&&("-"===n.charAt(4)?r=function(e){var n=e.slice(5).replace(Tt,Dt);return"data"+n.charAt(0).toUpperCase()+n.slice(1)}(n):n=function(e){var n=e.slice(4);if(Tt.test(n))return e;"-"!==(n=n.replace(Pt,It)).charAt(0)&&(n="-"+n);return"data"+n}(n),o=st),new o(r,n))}function It(e){return"-"+e.toLowerCase()}function Dt(e){return e.charAt(1).toUpperCase()}var Lt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var zt=t(57848);const Mt={}.hasOwnProperty,Rt=new Set(["table","thead","tbody","tfoot","tr"]);function Bt(e,n){const t=[];let r,o=-1;for(;++oString(e))).join("")),!h&&o.rawSourcePos&&(a.sourcePosition=n.position),!h&&o.includeElementIndex&&(a.index=jt(r,n),a.siblingCount=jt(r)),h||(a.node=n),f.length>0?i.createElement(d,a,f):i.createElement(d,a)}function jt(e,n){let t=-1,r=0;for(;++t for more info)`),delete Vt[i]}const n=F().use(yn).use(e.remarkPlugins||e.plugins||[]).use(Qn,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(St,e),t=new x;"string"===typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},Bt({options:e,schema:bt,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}qt.defaultProps={transformLinkUri:function(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let o=-1;for(;++oo?n:(o=n.indexOf("#"),-1!==o&&r>o?n:"javascript:void(0)")}},qt.propTypes={children:Yn.string,className:Yn.string,allowElement:Yn.func,allowedElements:Yn.arrayOf(Yn.string),disallowedElements:Yn.arrayOf(Yn.string),unwrapDisallowed:Yn.bool,remarkPlugins:Yn.arrayOf(Yn.oneOfType([Yn.object,Yn.func,Yn.arrayOf(Yn.oneOfType([Yn.object,Yn.func]))])),rehypePlugins:Yn.arrayOf(Yn.oneOfType([Yn.object,Yn.func,Yn.arrayOf(Yn.oneOfType([Yn.object,Yn.func]))])),sourcePos:Yn.bool,rawSourcePos:Yn.bool,skipHtml:Yn.bool,includeElementIndex:Yn.bool,transformLinkUri:Yn.oneOfType([Yn.func,Yn.bool]),linkTarget:Yn.oneOfType([Yn.func,Yn.string]),transformImageUri:Yn.func,components:Yn.object};var $t=qt}}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/937-6948bcb00194f10fdf0a.js b/static/admin/_next/static/chunks/937-6948bcb00194f10fdf0a.js deleted file mode 100644 index 096836590..000000000 --- a/static/admin/_next/static/chunks/937-6948bcb00194f10fdf0a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[937],{24308:function(t,e,n){"use strict";n.d(e,{c4:function(){return i}});var r=n(4942),o=n(87462),i=["xxl","xl","lg","md","sm","xs"],a={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},s=new Map,c=-1,u={},l={matchHandlers:{},dispatch:function(t){return u=t,s.forEach((function(t){return t(u)})),s.size>=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 Vt},A:function(){return ge},B:function(){return x},C:function(){return en},D:function(){return Ze},E:function(){return on},F:function(){return o},G:function(){return rn},H:function(){return I},I:function(){return Qe},J:function(){return W},K:function(){return V},L:function(){return g},M:function(){return v},N:function(){return me},O:function(){return J},P:function(){return R},Q:function(){return qt},R:function(){return it},S:function(){return Kt},T:function(){return D},U:function(){return ne},V:function(){return ae},W:function(){return re},X:function(){return ye},Y:function(){return a},Z:function(){return s},_:function(){return ke},a:function(){return be},a0:function(){return _},a1:function(){return S},a2:function(){return Xt},a3:function(){return j},a4:function(){return Ae},a5:function(){return Oe},a6:function(){return Te},a7:function(){return k},a8:function(){return l},a9:function(){return i},aA:function(){return $},aB:function(){return U},aC:function(){return Z},aD:function(){return Q},aE:function(){return K},aF:function(){return Jt},aG:function(){return Me},aH:function(){return ve},aa:function(){return nn},ab:function(){return Gt},ac:function(){return P},ad:function(){return w},ae:function(){return G},af:function(){return pe},ag:function(){return Xe},ah:function(){return mn},ai:function(){return bn},aj:function(){return sn},ak:function(){return cn},al:function(){return an},am:function(){return oe},an:function(){return ie},ao:function(){return te},ap:function(){return ce},aq:function(){return he},ar:function(){return de},as:function(){return yn},at:function(){return nt},au:function(){return fn},av:function(){return pn},aw:function(){return c},ax:function(){return hn},ay:function(){return u},az:function(){return tt},b:function(){return p},c:function(){return Yt},d:function(){return $t},e:function(){return ut},f:function(){return T},g:function(){return d},h:function(){return E},i:function(){return h},j:function(){return f},k:function(){return b},l:function(){return Ce},m:function(){return m},n:function(){return ln},o:function(){return rt},p:function(){return X},q:function(){return ot},r:function(){return r},s:function(){return Y},t:function(){return q},u:function(){return _e},v:function(){return y},w:function(){return xe},x:function(){return Ge},y:function(){return ee},z:function(){return we}});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(){return e?(clearTimeout(n),n=setTimeout(t,e)):t(),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,D=2*R,L=D+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&&u0===t||1===t,st=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/n),ct=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/n)+1,ut={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=>at(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=>at(t)?t:st(t,.075,.3),easeOutElastic:t=>at(t)?t:ct(t,.075,.3),easeInOutElastic(t){const e=.1125;return at(t)?t:t<.5?.5*st(2*t,e,.45):.5+.5*ct(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-ut.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*ut.easeInBounce(2*t):.5*ut.easeOutBounce(2*t-1)+.5},lt={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},ft="0123456789ABCDEF",pt=t=>ft[15&t],ht=t=>ft[(240&t)>>4]+ft[15&t],dt=t=>(240&t)>>4===(15&t);function gt(t){var e=function(t){return dt(t.r)&&dt(t.g)&&dt(t.b)&&dt(t.a)}(t)?pt:ht;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function yt(t){return t+.5|0}const bt=(t,e,n)=>Math.max(Math.min(t,n),e);function mt(t){return bt(yt(2.55*t),0,255)}function vt(t){return bt(yt(255*t),0,255)}function xt(t){return bt(yt(t/2.55)/100,0,1)}function wt(t){return bt(yt(100*t),0,100)}const Mt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const zt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ct(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 _t(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 kt(t,e,n){const r=Ct(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 Ot(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}(),Rt.transparent=[0,0,0,0]);const e=Rt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function Lt(t,e,n){if(t){let r=Ot(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=Tt(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Nt(t,e){return t?Object.assign(e||{},t):t}function Ft(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=vt(t[3]))):(e=Nt(t,{r:0,g:0,b:0,a:1})).a=vt(e.a),e}function It(t){return"r"===t.charAt(0)?function(t){const e=Mt.exec(t);let n,r,o,i=255;if(e){if(e[7]!==n){const t=+e[7];i=255&(e[8]?mt(t):255*t)}return n=+e[1],r=+e[3],o=+e[5],n=255&(e[2]?mt(n):n),r=255&(e[4]?mt(r):r),o=255&(e[6]?mt(o):o),{r:n,g:r,b:o,a:i}}}(t):Et(t)}class Bt{constructor(t){if(t instanceof Bt)return t;const e=typeof t;let n;"object"===e?n=Ft(t):"string"===e&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*lt[t[1]],g:255&17*lt[t[2]],b:255&17*lt[t[3]],a:5===n?17*lt[t[4]]:255}:7!==n&&9!==n||(e={r:lt[t[1]]<<4|lt[t[2]],g:lt[t[3]]<<4|lt[t[4]],b:lt[t[5]]<<4|lt[t[6]],a:9===n?lt[t[7]]<<4|lt[t[8]]:255})),e}(t)||Dt(t)||It(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Nt(this._rgb);return t&&(t.a=xt(t.a)),t}set rgb(t){this._rgb=Ft(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${xt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?gt(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=Ot(t),n=e[0],r=wt(e[1]),o=wt(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${xt(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 Bt(this.rgb)}alpha(t){return this._rgb.a=vt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=yt(.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 Lt(this._rgb,2,t),this}darken(t){return Lt(this._rgb,2,-t),this}saturate(t){return Lt(this._rgb,1,t),this}desaturate(t){return Lt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Ot(t);n[0]=St(n[0]+e),n=Tt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Ht(t){return new Bt(t)}const Wt=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function Yt(t){return Wt(t)?t:Ht(t)}function Ut(t){return Wt(t)?t:Ht(t).saturate(.5).darken(.1).hexString()}const Vt=Object.create(null),Xt=Object.create(null);function Qt(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)=>Ut(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ut(e.borderColor),this.hoverColor=(t,e)=>Ut(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 Zt(this,t,e)}get(t){return Qt(this,t)}describe(t,e){return Zt(Xt,t,e)}override(t,e){return Zt(Vt,t,e)}route(t,e,n,r){const o=Qt(this,t),i=Qt(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 qt(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 Jt(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 ee(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 he(t){return pe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function de(t){return pe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ge(t){const e=he(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ye(t,e){t=t||{},e=e||$t.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(le)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:y(t.family,e.family),lineHeight:fe(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 be(t,e,n,r){let o,i,a,s=!0;for(o=0,i=t.length;ot[n]1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const xe=(t,e,n)=>ve(t,n,(r=>t[r][e]ve(t,n,(r=>t[r][e]>=n));function Me(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 _e(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||(ze.forEach((e=>{delete t[e]})),delete t._chartjs)}function ke(t){const e=new Set;let n,r;for(n=0,r=t.length;nt[0])){E(r)||(r=Fe("_fallback",t));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>Oe([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)=>je(n,r,(()=>function(t,e,n,r){let o;for(const i of e)if(o=Fe(Se(i,t),n),E(o))return Ee(t,o)?Le(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)=>Ie(t).includes(e),ownKeys:t=>Ie(t),set:(t,e,n)=>((t._storage||(t._storage=o()))[e]=n,delete t[e],delete t._keys,!0)})}function Ae(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Te(t,r),setContext:e=>Ae(t,e,n,r),override:o=>Ae(t.override(o),e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>je(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),h(e)&&(e=Le(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=Le(r,o,t,c);e.push(Ae(n,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Ee(e,s)&&(s=Ae(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 Te(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 Se=(t,e)=>t?t+S(e):e,Ee=(t,e)=>h(e)&&"adapters"!==t;function je(t,e,n){let r=t[e];return E(r)||(r=n(),E(r)&&(t[e]=r)),r}function Pe(t,e,n){return j(t)?t(e,n):t}const Re=(t,e)=>!0===t?e:"string"===typeof t?T(e,t):void 0;function De(t,e,n,r){for(const o of e){const e=Re(n,o);if(e){t.add(e);const o=Pe(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 Le(t,e,n,r){const o=e._rootScopes,i=Pe(e._fallback,n,r),a=[...t,...o],s=new Set;s.add(r);let c=Ne(s,a,n,i||n);return null!==c&&((!E(i)||i===n||(c=Ne(s,a,i,c),null!==c))&&Oe(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 Ne(t,e,n,r){for(;n;)n=De(t,e,n,r);return n}function Fe(t,e){for(const n of e){if(!n)continue;const e=n[t];if(E(e))return e}}function Ie(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 Be=Number.EPSILON||1e-14,He=(t,e)=>e"x"===t?"y":"x";function Ye(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 Ue(t,e="x"){const n=We(e),r=t.length,o=Array(r).fill(0),i=Array(r);let a,s,c,u=He(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)Ue(t,o);else{let n=r?t[t.length-1]:t[0];for(i=0,a=t.length;iwindow.getComputedStyle(t,null);const Je=["top","right","bottom","left"];function Ke(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=Je[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function Ge(t,e){const{canvas:n,currentDevicePixelRatio:r}=e,o=qe(n),i="border-box"===o.boxSizing,a=Ke(o,"padding"),s=Ke(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 tn=t=>Math.round(10*t)/10;function en(t,e,n,r){const o=qe(t),i=Ke(o,"margin"),a=$e(o.maxWidth,t,"clientWidth")||N,s=$e(o.maxHeight,t,"clientHeight")||N,c=function(t,e,n){let r,o;if(void 0===e||void 0===n){const i=Ze(t);if(i){const t=i.getBoundingClientRect(),a=qe(i),s=Ke(a,"border","width"),c=Ke(a,"padding");e=t.width-c.width-s.width,n=t.height-c.height-s.height,r=$e(a.maxWidth,i,"clientWidth"),o=$e(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=Ke(o,"border","width"),e=Ke(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=tn(Math.min(u,a,c.maxWidth)),l=tn(Math.min(l,s,c.maxHeight)),u&&!l&&(l=tn(u/2)),{width:u,height:l}}function nn(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 rn=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 on(t,e){const n=function(t,e){return qe(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function an(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function sn(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 cn(t,e,n,r){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=an(t,o,n),s=an(o,i,n),c=an(i,e,n),u=an(a,s,n),l=an(s,c,n);return an(u,l,n)}const un=new Map;function ln(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=un.get(n);return r||(r=new Intl.NumberFormat(t,e),un.set(n,r)),r}(e,n).format(t)}function fn(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 pn(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 hn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function dn(t){return"angle"===t?{between:rt,compare:et,normalize:nt}:{between:(t,e,n)=>t>=Math.min(e,n)&&t<=Math.max(n,e),compare:(t,e)=>t-e,normalize:t=>t}}function gn({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 yn(t,e,n){if(!n)return[t];const{property:r,start:o,end:i}=n,a=e.length,{compare:s,between:c,normalize:u}=dn(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}=dn(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(gn({start:v,end:M,loop:p,count:a,style:h})),v=null),z=M,b=g));return null!==v&&d.push(gn({start:v,end:f,loop:p,count:a,style:h})),d}function bn(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 vn(t,[{start:a,end:s,loop:i}],n,e);return vn(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,L,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,D,L,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,Dt(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),Dt(this,t,!0)},Ht.prototype.setOptions=function(t){this.__updateOptions(t),this.redraw()},Ht.prototype.redraw=function(){Dt(this,this.rawData)},Ht.prototype.refreshData=function(){if("string"===typeof this.dataSource){var t=-1===this.dataSource.indexOf("?")?"?":"&";Dt(this,this.dataSource+t+"_="+(new Date).getTime())}else"function"===typeof this.dataSource&&Dt(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 s},A:function(){return Me},B:function(){return ge},C:function(){return x},D:function(){return nn},E:function(){return $e},F:function(){return an},G:function(){return o},H:function(){return I},I:function(){return on},J:function(){return Ze},K:function(){return W},L:function(){return V},M:function(){return g},N:function(){return v},O:function(){return me},P:function(){return R},Q:function(){return J},R:function(){return qt},S:function(){return it},T:function(){return L},U:function(){return Gt},V:function(){return ne},W:function(){return ae},X:function(){return re},Y:function(){return ye},Z:function(){return a},_:function(){return Oe},a:function(){return be},a0:function(){return Vt},a1:function(){return _},a2:function(){return S},a3:function(){return Xt},a4:function(){return j},a5:function(){return Te},a6:function(){return Ae},a7:function(){return Se},a8:function(){return k},a9:function(){return l},aA:function(){return tt},aB:function(){return $},aC:function(){return U},aD:function(){return Z},aE:function(){return Q},aF:function(){return G},aG:function(){return Jt},aH:function(){return ze},aI:function(){return xe},aa:function(){return i},ab:function(){return rn},ac:function(){return Kt},ad:function(){return P},ae:function(){return w},af:function(){return K},ag:function(){return pe},ah:function(){return Qe},ai:function(){return vn},aj:function(){return mn},ak:function(){return cn},al:function(){return un},am:function(){return sn},an:function(){return oe},ao:function(){return ie},ap:function(){return te},aq:function(){return ce},ar:function(){return he},as:function(){return de},at:function(){return bn},au:function(){return nt},av:function(){return pn},aw:function(){return hn},ax:function(){return c},ay:function(){return dn},az:function(){return u},b:function(){return p},c:function(){return Yt},d:function(){return $t},e:function(){return ut},f:function(){return T},g:function(){return d},h:function(){return ve},i:function(){return h},j:function(){return E},k:function(){return f},l:function(){return _e},m:function(){return b},n:function(){return m},o:function(){return fn},p:function(){return rt},q:function(){return X},r:function(){return r},s:function(){return Y},t:function(){return q},u:function(){return ke},v:function(){return y},w:function(){return ot},x:function(){return we},y:function(){return tn},z:function(){return ee}});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&&u0===t||1===t,st=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*L/n),ct=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*L/n)+1,ut={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=>at(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=>at(t)?t:st(t,.075,.3),easeOutElastic:t=>at(t)?t:ct(t,.075,.3),easeInOutElastic(t){const e=.1125;return at(t)?t:t<.5?.5*st(2*t,e,.45):.5+.5*ct(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-ut.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*ut.easeInBounce(2*t):.5*ut.easeOutBounce(2*t-1)+.5},lt={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},ft="0123456789ABCDEF",pt=t=>ft[15&t],ht=t=>ft[(240&t)>>4]+ft[15&t],dt=t=>(240&t)>>4===(15&t);function gt(t){var e=function(t){return dt(t.r)&&dt(t.g)&&dt(t.b)&&dt(t.a)}(t)?pt:ht;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function yt(t){return t+.5|0}const bt=(t,e,n)=>Math.max(Math.min(t,n),e);function mt(t){return bt(yt(2.55*t),0,255)}function vt(t){return bt(yt(255*t),0,255)}function xt(t){return bt(yt(t/2.55)/100,0,1)}function wt(t){return bt(yt(100*t),0,100)}const Mt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const zt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ct(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 _t(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 kt(t,e,n){const r=Ct(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 Ot(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}(),Rt.transparent=[0,0,0,0]);const e=Rt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function Dt(t,e,n){if(t){let r=Ot(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=Tt(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Nt(t,e){return t?Object.assign(e||{},t):t}function Ft(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=vt(t[3]))):(e=Nt(t,{r:0,g:0,b:0,a:1})).a=vt(e.a),e}function It(t){return"r"===t.charAt(0)?function(t){const e=Mt.exec(t);let n,r,o,i=255;if(e){if(e[7]!==n){const t=+e[7];i=255&(e[8]?mt(t):255*t)}return n=+e[1],r=+e[3],o=+e[5],n=255&(e[2]?mt(n):n),r=255&(e[4]?mt(r):r),o=255&(e[6]?mt(o):o),{r:n,g:r,b:o,a:i}}}(t):Et(t)}class Bt{constructor(t){if(t instanceof Bt)return t;const e=typeof t;let n;"object"===e?n=Ft(t):"string"===e&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*lt[t[1]],g:255&17*lt[t[2]],b:255&17*lt[t[3]],a:5===n?17*lt[t[4]]:255}:7!==n&&9!==n||(e={r:lt[t[1]]<<4|lt[t[2]],g:lt[t[3]]<<4|lt[t[4]],b:lt[t[5]]<<4|lt[t[6]],a:9===n?lt[t[7]]<<4|lt[t[8]]:255})),e}(t)||Lt(t)||It(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Nt(this._rgb);return t&&(t.a=xt(t.a)),t}set rgb(t){this._rgb=Ft(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${xt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?gt(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=Ot(t),n=e[0],r=wt(e[1]),o=wt(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${xt(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 Bt(this.rgb)}alpha(t){return this._rgb.a=vt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=yt(.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 Dt(this._rgb,2,t),this}darken(t){return Dt(this._rgb,2,-t),this}saturate(t){return Dt(this._rgb,1,t),this}desaturate(t){return Dt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Ot(t);n[0]=St(n[0]+e),n=Tt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Ht(t){return new Bt(t)}const Wt=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function Yt(t){return Wt(t)?t:Ht(t)}function Ut(t){return Wt(t)?t:Ht(t).saturate(.5).darken(.1).hexString()}const Vt=Object.create(null),Xt=Object.create(null);function Qt(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)=>Ut(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ut(e.borderColor),this.hoverColor=(t,e)=>Ut(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 Zt(this,t,e)}get(t){return Qt(this,t)}describe(t,e){return Zt(Xt,t,e)}override(t,e){return Zt(Vt,t,e)}route(t,e,n,r){const o=Qt(this,t),i=Qt(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 qt(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 Jt(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 ee(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 he(t){return pe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function de(t){return pe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ge(t){const e=he(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ye(t,e){t=t||{},e=e||$t.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(le)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:y(t.family,e.family),lineHeight:fe(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 be(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 ve(t,e){return Object.assign(Object.create(t),e)}function xe(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 we=(t,e,n)=>xe(t,n,(r=>t[r][e]xe(t,n,(r=>t[r][e]>=n));function ze(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 ke(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||(Ce.forEach((e=>{delete t[e]})),delete t._chartjs)}function Oe(t){const e=new Set;let n,r;for(n=0,r=t.length;nt[0])){E(r)||(r=Ie("_fallback",t));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>Ae([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)=>Pe(n,r,(()=>function(t,e,n,r){let o;for(const i of e)if(o=Ie(Ee(i,t),n),E(o))return je(t,o)?Ne(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)=>Be(t).includes(e),ownKeys:t=>Be(t),set:(t,e,n)=>((t._storage||(t._storage=o()))[e]=n,delete t[e],delete t._keys,!0)})}function Te(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Se(t,r),setContext:e=>Te(t,e,n,r),override:o=>Te(t.override(o),e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Pe(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),h(e)&&(e=Ne(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=Ne(r,o,t,c);e.push(Te(n,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));je(e,s)&&(s=Te(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 Se(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 Ee=(t,e)=>t?t+S(e):e,je=(t,e)=>h(e)&&"adapters"!==t;function Pe(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function Re(t,e,n){return j(t)?t(e,n):t}const Le=(t,e)=>!0===t?e:"string"===typeof t?T(e,t):void 0;function De(t,e,n,r){for(const o of e){const e=Le(n,o);if(e){t.add(e);const o=Re(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 Ne(t,e,n,r){const o=e._rootScopes,i=Re(e._fallback,n,r),a=[...t,...o],s=new Set;s.add(r);let c=Fe(s,a,n,i||n);return null!==c&&((!E(i)||i===n||(c=Fe(s,a,i,c),null!==c))&&Ae(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 Fe(t,e,n,r){for(;n;)n=De(t,e,n,r);return n}function Ie(t,e){for(const n of e){if(!n)continue;const e=n[t];if(E(e))return e}}function Be(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 He=Number.EPSILON||1e-14,We=(t,e)=>e"x"===t?"y":"x";function Ue(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 Ve(t,e="x"){const n=Ye(e),r=t.length,o=Array(r).fill(0),i=Array(r);let a,s,c,u=We(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)Ve(t,o);else{let n=r?t[t.length-1]:t[0];for(i=0,a=t.length;iwindow.getComputedStyle(t,null);const Ge=["top","right","bottom","left"];function Ke(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=Ge[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function tn(t,e){const{canvas:n,currentDevicePixelRatio:r}=e,o=Je(n),i="border-box"===o.boxSizing,a=Ke(o,"padding"),s=Ke(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 en=t=>Math.round(10*t)/10;function nn(t,e,n,r){const o=Je(t),i=Ke(o,"margin"),a=qe(o.maxWidth,t,"clientWidth")||N,s=qe(o.maxHeight,t,"clientHeight")||N,c=function(t,e,n){let r,o;if(void 0===e||void 0===n){const i=$e(t);if(i){const t=i.getBoundingClientRect(),a=Je(i),s=Ke(a,"border","width"),c=Ke(a,"padding");e=t.width-c.width-s.width,n=t.height-c.height-s.height,r=qe(a.maxWidth,i,"clientWidth"),o=qe(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=Ke(o,"border","width"),e=Ke(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=en(Math.min(u,a,c.maxWidth)),l=en(Math.min(l,s,c.maxHeight)),u&&!l&&(l=en(u/2)),{width:u,height:l}}function rn(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 on=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 an(t,e){const n=function(t,e){return Je(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function sn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function cn(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 un(t,e,n,r){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=sn(t,o,n),s=sn(o,i,n),c=sn(i,e,n),u=sn(a,s,n),l=sn(s,c,n);return sn(u,l,n)}const ln=new Map;function fn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=ln.get(n);return r||(r=new Intl.NumberFormat(t,e),ln.set(n,r)),r}(e,n).format(t)}function pn(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 hn(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 dn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function gn(t){return"angle"===t?{between:rt,compare:et,normalize:nt}:{between:(t,e,n)=>t>=Math.min(e,n)&&t<=Math.max(n,e),compare:(t,e)=>t-e,normalize:t=>t}}function yn({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 bn(t,e,n){if(!n)return[t];const{property:r,start:o,end:i}=n,a=e.length,{compare:s,between:c,normalize:u}=gn(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}=gn(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(yn({start:v,end:M,loop:p,count:a,style:h})),v=null),z=M,b=g));return null!==v&&d.push(yn({start:v,end:f,loop:p,count:a,style:h})),d}function mn(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 xn(t,[{start:a,end:s,loop:i}],n,e);return xn(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;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 s(e){return c(e)/255}function c(e){return parseInt(e,16)}n.r(t),n.d(t,{blue:function(){return F},cyan:function(){return R},geekblue:function(){return I},generate:function(){return Z},gold:function(){return S},green:function(){return j},grey:function(){return D},lime:function(){return A},magenta:function(){return _},orange:function(){return T},presetDarkPalettes:function(){return N},presetPalettes:function(){return k},presetPrimaryColors:function(){return C},purple:function(){return L},red:function(){return O},volcano:function(){return P},yellow:function(){return M}});var l={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"};function u(e){var t,n,o,u={r:0,g:0,b:0},f=1,d=null,p=null,h=null,g=!1,y=!1;return"string"===typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(l[e])e=l[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=m.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=m.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=m.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=m.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=m.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=m.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=m.hex8.exec(e))return{r:c(n[1]),g:c(n[2]),b:c(n[3]),a:s(n[4]),format:t?"name":"hex8"};if(n=m.hex6.exec(e))return{r:c(n[1]),g:c(n[2]),b:c(n[3]),format:t?"name":"hex"};if(n=m.hex4.exec(e))return{r:c(n[1]+n[1]),g:c(n[2]+n[2]),b:c(n[3]+n[3]),a:s(n[4]+n[4]),format:t?"name":"hex8"};if(n=m.hex3.exec(e))return{r:c(n[1]+n[1]),g:c(n[2]+n[2]),b:c(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(v(e.r)&&v(e.g)&&v(e.b)?(t=e.r,n=e.g,o=e.b,u={r:255*r(t,255),g:255*r(n,255),b:255*r(o,255)},g=!0,y="%"===String(e.r).substr(-1)?"prgb":"rgb"):v(e.h)&&v(e.s)&&v(e.v)?(d=i(e.s),p=i(e.v),u=function(e,t,n){e=6*r(e,360),t=r(t,100),n=r(n,100);var i=Math.floor(e),o=e-i,a=n*(1-t),s=n*(1-o*t),c=n*(1-(1-o)*t),l=i%6;return{r:255*[n,s,a,a,c,n][l],g:255*[c,n,n,s,a,a][l],b:255*[a,a,c,n,n,s][l]}}(e.h,d,p),g=!0,y="hsv"):v(e.h)&&v(e.s)&&v(e.l)&&(d=i(e.s),h=i(e.l),u=function(e,t,n){var i,o,s;if(e=r(e,360),t=r(t,100),n=r(n,100),0===t)o=n,s=n,i=n;else{var c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;i=a(l,c,e+1/3),o=a(l,c,e),s=a(l,c,e-1/3)}return{r:255*i,g:255*o,b:255*s}}(e.h,d,h),g=!0,y="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(f=e.a)),f=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(f),{ok:g,format:e.format||y,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var f="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",d="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",p="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",m={CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+p),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+p),hsv:new RegExp("hsv"+d),hsva:new RegExp("hsva"+p),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 v(e){return Boolean(m.CSS_UNIT.exec(String(e)))}var h=[{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 g(e){var t=function(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=i,c=i-o,l=0===i?0:c/i;if(i===o)a=0;else{switch(i){case e:a=(t-n)/c+(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 x(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 E(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function Z(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=u(e),i=5;i>0;i-=1){var o=g(r),a=y(u({h:w(o,i,!0),s:x(o,i,!0),v:E(o,i,!0)}));n.push(a)}n.push(y(r));for(var s=1;s<=4;s+=1){var c=g(r),l=y(u({h:w(c,s),s:x(c,s),v:E(c,s)}));n.push(l)}return"dark"===t.theme?h.map((function(e){var r=e.index,i=e.opacity;return y(b(u(t.backgroundColor||"#141414"),u(n[r]),100*i))})):n}var C={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"},k={},N={};Object.keys(C).forEach((function(e){k[e]=Z(C[e]),k[e].primary=k[e][5],N[e]=Z(C[e],{theme:"dark",backgroundColor:"#141414"}),N[e].primary=N[e][5]}));var O=k.red,P=k.volcano,S=k.gold,T=k.orange,M=k.yellow,A=k.lime,j=k.green,R=k.cyan,F=k.blue,I=k.geekblue,L=k.purple,_=k.magenta,D=k.grey},30076:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(1413),i=n(29439),o=n(4942),a=n(44925),s=n(67294),c=n(94184),l=n.n(c),u=n(63017),f=n(71002),d=n(9321),p=n(80334),m=n(44958);function v(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 h(){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?s.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},h(e.attrs)),n),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):s.createElement(e.tag,(0,r.Z)({key:t},h(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 Z=function(e){var t,n,i=e.icon,o=e.className,c=e.onClick,l=e.style,f=e.primaryColor,d=e.secondaryColor,h=(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,s.useContext)(u.Z).csp;(0,s.useEffect)((function(){(0,m.h)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=v(i),n="icon should be icon definiton, but got ".concat(i),(0,p.ZP)(t,"[@ant-design/icons] ".concat(n)),!v(i))return null;var Z=i;return Z&&"function"===typeof Z.icon&&(Z=(0,r.Z)((0,r.Z)({},Z),{},{icon:Z.icon(b.primaryColor,b.secondaryColor)})),g(Z.icon,"svg-".concat(Z.name),(0,r.Z)({className:o,onClick:c,style:l,"data-icon":Z.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h))};Z.displayName="IconReact",Z.getTwoToneColors=function(){return(0,r.Z)({},E)},Z.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;E.primaryColor=t,E.secondaryColor=n||y(t),E.calculated=!!n};var C=Z;function k(e){var t=b(e),n=(0,i.Z)(t,2),r=n[0],o=n[1];return C.setTwoToneColors({primaryColor:r,secondaryColor:o})}var N=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k("#1890ff");var O=s.forwardRef((function(e,t){var n,c=e.className,f=e.icon,d=e.spin,p=e.rotate,m=e.tabIndex,v=e.onClick,h=e.twoToneColor,g=(0,a.Z)(e,N),y=s.useContext(u.Z).prefixCls,w=void 0===y?"anticon":y,x=l()(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),c),E=m;void 0===E&&v&&(E=-1);var Z=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,k=b(h),O=(0,i.Z)(k,2),P=O[0],S=O[1];return s.createElement("span",(0,r.Z)((0,r.Z)({role:"img","aria-label":f.name},g),{},{ref:t,tabIndex:E,onClick:v,className:x}),s.createElement(C,{icon:f,primaryColor:P,secondaryColor:S,style:Z}))}));O.displayName="AntdIcon",O.getTwoToneColor=function(){var e=C.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},O.setTwoToneColor=k;var P=O},63017:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},38819:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="CheckCircleFilled";var c=i.forwardRef(s)},15873:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="CheckCircleOutlined";var c=i.forwardRef(s)},79508:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="CheckOutlined";var c=i.forwardRef(s)},43061:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="CloseCircleFilled";var c=i.forwardRef(s)},73218:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="CloseCircleOutlined";var c=i.forwardRef(s)},54549:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="CloseOutlined";var c=i.forwardRef(s)},99165:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="CopyOutlined";var c=i.forwardRef(s)},57254:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="DownOutlined";var c=i.forwardRef(s)},44545:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="EllipsisOutlined";var c=i.forwardRef(s)},68855:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="ExclamationCircleFilled";var c=i.forwardRef(s)},57119:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="ExclamationCircleOutlined";var c=i.forwardRef(s)},88633:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="EyeInvisibleOutlined";var c=i.forwardRef(s)},95357:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="EyeOutlined";var c=i.forwardRef(s)},40847:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="InfoCircleFilled";var c=i.forwardRef(s)},68628:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="InfoCircleOutlined";var c=i.forwardRef(s)},67724:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="LeftOutlined";var c=i.forwardRef(s)},7085:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="LoadingOutlined";var c=i.forwardRef(s)},8812:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="RightOutlined";var c=i.forwardRef(s)},76570:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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(30076),s=function(e,t){return i.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="SearchOutlined";var c=i.forwardRef(s)},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 s}});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},s=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 s(){(a-=1)<=0?(e(),delete o[n]):o[n]=(0,r.Z)(s)}return o[n]=(0,r.Z)(s),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)}},31808:function(e,t,n){"use strict";n.d(t,{jD:function(){return o},GL:function(){return a},fk:function(){return s}});var r,i=n(98924),o=function(){return(0,i.Z)()&&window.document.documentElement},a=function(e){if(o()){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},s=function(){if(!o())return!1;if(void 0!==r)return r;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),r=1===e.scrollHeight,document.body.removeChild(e),r}},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)){var s=e.props.insertExtraNode;e.extraNode=document.createElement("div");var c=(0,a.Z)(e).extraNode,l=e.context.getPrefixCls;c.className="".concat(l(""),"-click-animating-node");var f=e.getAttributeName();if(t.setAttribute(f,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&h(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){c.style.borderColor=n;var d=(null===(i=t.getRootNode)||void 0===i?void 0:i.call(t))||t.ownerDocument,p=d instanceof Document?d.body:null!==(o=d.firstChild)&&void 0!==o?o:d;r=(0,u.h)("\n [".concat(l(""),"-click-animating-without-extra-node='true']::after, .").concat(l(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:p})}s&&t.appendChild(c),["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&&!v(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,!l.isValidElement(r))return r;var i=e.containerRef;return(0,f.Yr)(r)&&(i=(0,f.sQ)(r.ref,e.containerRef)),(0,m.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 l.createElement(p.C,null,this.renderWave)}}]),n}(l.Component);g.contextType=p.E_},32413:function(e,t,n){"use strict";n.d(t,{n:function(){return M},Z:function(){return R}});var r=n(87462),i=n(4942),o=n(29439),a=n(71002),s=n(67294),c=n(94184),l=n.n(c),u=n(98423),f=n(65632),d=n(15671),p=function e(t){return(0,d.Z)(this,e),new Error("unreachable case: ".concat(JSON.stringify(t)))},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);i2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(k,"` at https://ant.design/components/icon")),(0,y.Z)(!(M&&S(v)),"Button","`link` or `text` button can't be a `ghost` button.");var ee=$("btn",m),te=!1!==K,ne="";switch(x||L){case"large":ne="lg";break;case"small":ne="sm"}var re=z?"loading":k,ie=l()(ee,(n={},(0,i.Z)(n,"".concat(ee,"-").concat(v),v),(0,i.Z)(n,"".concat(ee,"-").concat(w),w),(0,i.Z)(n,"".concat(ee,"-").concat(ne),ne),(0,i.Z)(n,"".concat(ee,"-icon-only"),!Z&&0!==Z&&!!re),(0,i.Z)(n,"".concat(ee,"-background-ghost"),M&&!S(v)),(0,i.Z)(n,"".concat(ee,"-loading"),z),(0,i.Z)(n,"".concat(ee,"-two-chinese-chars"),U&&te),(0,i.Z)(n,"".concat(ee,"-block"),j),(0,i.Z)(n,"".concat(ee,"-dangerous"),!!g),(0,i.Z)(n,"".concat(ee,"-rtl"),"rtl"===G),n),E),oe=k&&!z?k:s.createElement(C,{existIcon:!!k,prefixCls:ee,loading:!!z}),ae=Z||0===Z?function(e,t){var n=!1,r=[];return s.Children.forEach(e,(function(e){var t=(0,a.Z)(e),i="string"===t||"number"===t;if(n&&i){var o=r.length-1,s=r[o];r[o]="".concat(s).concat(e)}else r.push(e);n=i})),s.Children.map(r,(function(e){return T(e,t)}))}(Z,Q()&&te):null,se=(0,u.Z)(I,["navigate"]);if(void 0!==se.href)return s.createElement("a",(0,r.Z)({},se,{className:ie,onClick:J,ref:Y}),oe,ae);var ce=s.createElement("button",(0,r.Z)({},I,{type:F,className:ie,onClick:J,ref:Y}),oe,ae);return S(v)?ce:s.createElement(h.Z,null,ce)},j=s.forwardRef(A);j.displayName="Button",j.Group=v,j.__ANT_BUTTON=!0;var R=j},71577:function(e,t,n){"use strict";var r=n(32413);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},65632:function(e,t,n){"use strict";n.d(t,{C:function(){return c},E_:function(){return s},PG:function(){return l}});var r=n(87462),i=n(67294),o=n(14277),a=function(e){return i.createElement(c,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)}}))},s=i.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:a}),c=s.Consumer;function l(e){return function(t){var n=function(n){return i.createElement(c,null,(function(o){var a=e.prefixCls,s=(0,o.getPrefixCls)(a,n.prefixCls);return i.createElement(t,(0,r.Z)({},o,n,{prefixCls:s}))}))},o=t.constructor,a=o&&o.displayName||t.name||"Component";return n.displayName="withConfigConsumer(".concat(a,")"),n}}},85631:function(e,t,n){"use strict";n.d(t,{nf:function(){return ve},ZP:function(){return xe},w6:function(){return ye}});var r=n(87462),i=n(67294),o=n(63017),a=n(70686),s=n(56982),c=n(15671),l=n(43144),u=n(60136),f=n(31129),d=n(21687),p=n(83008),m=n(67178),v="internalMark",h=function(e){(0,u.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,c.Z)(this,n),r=t.call(this,e),(0,p.f)(e.locale&&e.locale.Modal),(0,d.Z)(e._ANT_MARK__===v,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){(0,p.f)(this.props.locale&&this.props.locale.Modal)}},{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&(0,p.f)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){(0,p.f)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children;return i.createElement(m.Z.Provider,{value:(0,r.Z)((0,r.Z)({},t),{exist:!0})},n)}}]),n}(i.Component);h.defaultProps={locale:{}};var g,y=n(42051),b=n(65632),w=n(97647),x=n(4942),E=n(94184),Z=n.n(E),C=n(98287),k=n(7085),N=n(68855),O=n(43061),P=n(38819),S=n(40847),T=n(29439),M=n(51550);var A,j,R,F=3,I=1,L="",_="move-up",D=!1,z=!1;function V(e,t){var n=e.prefixCls,r=ye(),i=r.getPrefixCls,o=r.getRootPrefixCls,a=i("message",n||L),s=o(e.rootPrefixCls,a);if(g)t({prefixCls:a,rootPrefixCls:s,instance:g});else{var c={prefixCls:a,transitionName:D?_:"".concat(s,"-").concat(_),style:{top:A},getContainer:j,maxCount:R};C.default.newInstance(c,(function(e){g?t({prefixCls:a,rootPrefixCls:s,instance:g}):(g=e,t({prefixCls:a,rootPrefixCls:s,instance:e}))}))}}var H={info:S.Z,success:P.Z,error:O.Z,warning:N.Z,loading:k.Z};function B(e,t){var n,r=void 0!==e.duration?e.duration:F,o=H[e.type],a=Z()("".concat(t,"-custom-content"),(n={},(0,x.Z)(n,"".concat(t,"-").concat(e.type),e.type),(0,x.Z)(n,"".concat(t,"-rtl"),!0===z),n));return{key:e.key,duration:r,style:e.style||{},className:e.className,content:i.createElement("div",{className:a},e.icon||o&&i.createElement(o,null),i.createElement("span",null,e.content)),onClose:e.onClose,onClick:e.onClick}}var U={open:function(e){var t=e.key||I++,n=new Promise((function(n){var i=function(){return"function"===typeof e.onClose&&e.onClose(),n(!0)};V(e,(function(n){var o=n.prefixCls;n.instance.notice(B((0,r.Z)((0,r.Z)({},e),{key:t,onClose:i}),o))}))})),i=function(){g&&g.removeNotice(t)};return i.then=function(e,t){return n.then(e,t)},i.promise=n,i},config:function(e){void 0!==e.top&&(A=e.top,g=null),void 0!==e.duration&&(F=e.duration),void 0!==e.prefixCls&&(L=e.prefixCls),void 0!==e.getContainer&&(j=e.getContainer),void 0!==e.transitionName&&(_=e.transitionName,g=null,D=!0),void 0!==e.maxCount&&(R=e.maxCount,g=null),void 0!==e.rtl&&(z=e.rtl)},destroy:function(e){if(g)if(e){(0,g.removeNotice)(e)}else{var t=g.destroy;t(),g=null}}};function q(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 q(U,e)})),U.warn=U.warning,U.useMessage=function(e,t){return function(){var n,o=null,a={add:function(e,t){null===o||void 0===o||o.component.add(e,t)}},s=(0,M.Z)(a),c=(0,T.Z)(s,2),l=c[0],u=c[1];var f=i.useRef({});return f.current.open=function(i){var a=i.prefixCls,s=n("message",a),c=n(),u=i.key||I++,f=new Promise((function(n){var a=function(){return"function"===typeof i.onClose&&i.onClose(),n(!0)};e((0,r.Z)((0,r.Z)({},i),{prefixCls:s,rootPrefixCls:c}),(function(e){var n=e.prefixCls,s=e.instance;o=s,l(t((0,r.Z)((0,r.Z)({},i),{key:u,onClose:a}),n))}))})),d=function(){o&&o.removeNotice(u)};return d.then=function(e,t){return f.then(e,t)},d.promise=f,d},["success","info","warning","error","loading"].forEach((function(e){return q(f.current,e)})),[f.current,i.createElement(b.C,{key:"holder"},(function(e){return n=e.getPrefixCls,u}))]}}(V,B);var W=U,$=(n(87757),n(54549)),K=n(15873),G=n(73218),Y=n(57119),X=n(68628);var Q,J,ee={},te=4.5,ne=24,re=24,ie="",oe="topRight",ae=!1;function se(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:re;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 ce(e,t){var n=e.placement,r=void 0===n?oe:n,o=e.top,a=e.bottom,s=e.getContainer,c=void 0===s?Q:s,l=e.closeIcon,u=void 0===l?J:l,f=e.prefixCls,d=(0,ye().getPrefixCls)("notification",f||ie),p="".concat(d,"-").concat(r),m=ee[p];if(m)Promise.resolve(m).then((function(e){t({prefixCls:"".concat(d,"-notice"),instance:e})}));else{var v=i.createElement("span",{className:"".concat(d,"-close-x")},u||i.createElement($.Z,{className:"".concat(d,"-close-icon")})),h=Z()("".concat(d,"-").concat(r),(0,x.Z)({},"".concat(d,"-rtl"),!0===ae));ee[p]=new Promise((function(e){C.default.newInstance({prefixCls:d,className:h,style:se(r,o,a),getContainer:c,closeIcon:v},(function(n){e(n),t({prefixCls:"".concat(d,"-notice"),instance:n})}))}))}}var le={success:K.Z,info:X.Z,error:G.Z,warning:Y.Z};function ue(e,t){var n=e.duration,r=e.icon,o=e.type,a=e.description,s=e.message,c=e.btn,l=e.onClose,u=e.onClick,f=e.key,d=e.style,p=e.className,m=void 0===n?te:n,v=null;r?v=i.createElement("span",{className:"".concat(t,"-icon")},e.icon):o&&(v=i.createElement(le[o]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(o)}));var h=!a&&v?i.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:i.createElement("div",{className:v?"".concat(t,"-with-icon"):"",role:"alert"},v,i.createElement("div",{className:"".concat(t,"-message")},h,s),i.createElement("div",{className:"".concat(t,"-description")},a),c?i.createElement("span",{className:"".concat(t,"-btn")},c):null),duration:m,closable:!0,onClose:l,onClick:u,key:f,style:d||{},className:Z()(p,(0,x.Z)({},"".concat(t,"-").concat(o),!!o))}}var fe={open:function(e){ce(e,(function(t){var n=t.prefixCls;t.instance.notice(ue(e,n))}))},close:function(e){Object.keys(ee).forEach((function(t){return Promise.resolve(ee[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,s=e.prefixCls;void 0!==s&&(ie=s),void 0!==t&&(te=t),void 0!==n?oe=n:e.rtl&&(oe="topLeft"),void 0!==r&&(re=r),void 0!==i&&(ne=i),void 0!==o&&(Q=o),void 0!==a&&(J=a),void 0!==e.rtl&&(ae=e.rtl)},destroy:function(){Object.keys(ee).forEach((function(e){Promise.resolve(ee[e]).then((function(e){e.destroy()})),delete ee[e]}))}};["success","info","warning","error"].forEach((function(e){fe[e]=function(t){return fe.open((0,r.Z)((0,r.Z)({},t),{type:e}))}})),fe.warn=fe.warning,fe.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)}},s=(0,M.Z)(a),c=(0,T.Z)(s,2),l=c[0],u=c[1];var f=i.useRef({});return f.current.open=function(i){var a=i.prefixCls,s=n("notification",a);e((0,r.Z)((0,r.Z)({},i),{prefixCls:s}),(function(e){var n=e.prefixCls,r=e.instance;o=r,l(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(b.C,{key:"holder"},(function(e){return n=e.getPrefixCls,u}))]}}(ce,ue);var de,pe=fe,me=n(5767),ve=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"],he=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"];function ge(){return de||"ant"}var ye=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(ge(),"-").concat(e):ge())},getRootPrefixCls:function(e,t){return e||(de||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):ge()))}}},be=function(e){var t,n,c=e.children,l=e.csp,u=e.autoInsertSpaceInButton,f=e.form,d=e.locale,p=e.componentSize,m=e.direction,g=e.space,y=e.virtual,x=e.dropdownMatchSelectWidth,E=e.legacyLocale,Z=e.parentContext,C=e.iconPrefixCls,k=i.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var i=r||Z.getPrefixCls("");return t?"".concat(i,"-").concat(t):i}),[Z.getPrefixCls,e.prefixCls]),N=(0,r.Z)((0,r.Z)({},Z),{csp:l,autoInsertSpaceInButton:u,locale:d||E,direction:m,space:g,virtual:y,dropdownMatchSelectWidth:x,getPrefixCls:k});he.forEach((function(t){var n=e[t];n&&(N[t]=n)}));var O=(0,s.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]}))})),P=i.useMemo((function(){return{prefixCls:C,csp:l}}),[C]),S=c,T={};return d&&(T=(null===(t=d.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=me.Z.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),f&&f.validateMessages&&(T=(0,r.Z)((0,r.Z)({},T),f.validateMessages)),Object.keys(T).length>0&&(S=i.createElement(a.FormProvider,{validateMessages:T},c)),d&&(S=i.createElement(h,{locale:d,_ANT_MARK__:v},S)),C&&(S=i.createElement(o.Z.Provider,{value:P},S)),p&&(S=i.createElement(w.q,{size:p},S)),i.createElement(b.E_.Provider,{value:O},S)},we=function(e){return i.useEffect((function(){e.direction&&(W.config({rtl:"rtl"===e.direction}),pe.config({rtl:"rtl"===e.direction}))}),[e.direction]),i.createElement(y.Z,null,(function(t,n,o){return i.createElement(b.C,null,(function(t){return i.createElement(be,(0,r.Z)({parentContext:t,legacyLocale:o},e))}))}))};we.ConfigContext=b.E_,we.SizeContext=w.Z,we.config=function(e){void 0!==e.prefixCls&&(de=e.prefixCls)};var xe=we},14277:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(87462),i=n(4942),o=n(67294),a=n(94184),s=n.n(a),c=n(65632),l=n(42051),u=function(){var e=(0,o.useContext(c.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(c.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]:{},s=a.props,c=s.className,u=s.addonBefore,p=s.addonAfter,m=s.size,v=s.disabled,h=(0,d.Z)(a.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return l.createElement("input",(0,r.Z)({autoComplete:o.autoComplete},h,{onChange:a.handleChange,onFocus:a.onFocus,onBlur:a.onBlur,onKeyDown:a.handleKeyDown,className:f()((0,g.X)(e,n,m||t,v,a.direction),(0,i.Z)({},c,c&&!u&&!p)),ref:a.saveInput}))},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,s=o.value,c=o.focused,u=a.props,f=u.prefixCls,d=u.bordered,m=void 0===d||d,h=t("input",f);return a.direction=n,l.createElement(v.Z.Consumer,null,(function(e){return l.createElement(p.Z,(0,r.Z)({size:e},a.props,{prefixCls:h,inputType:"input",value:y(s),element:a.renderInput(h,e,m,i),handleReset:a.handleReset,ref:a.saveClearableInput,direction:n,focused:c,triggerFocus:a.focus,bordered:m}))}))};var s="undefined"===typeof e.value?e.defaultValue:e.value;return a.state={value:s,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,h.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 l.createElement(m.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),r}}]),n}(l.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(29439),s=n(93433),c=n(67294),l=n(34084),u=n(98423),f=n(94184),d=n.n(f),p=n(21770),m=n(69430),v=n(65632),h=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=j("input",f);c.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,h.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=c.createElement(l.default,(0,i.Z)({},(0,u.Z)(M,["allowClear"]),{className:d()((n={},(0,o.Z)(n,"".concat(K,"-borderless"),!x),(0,o.Z)(n,k,k&&!Z),(0,o.Z)(n,"".concat(K,"-sm"),"small"===F||"small"===O),(0,o.Z)(n,"".concat(K,"-lg"),"large"===F||"large"===O),n)),style:Z?void 0:N,prefixCls:K,onCompositionStart:function(e){V(!0),null===P||void 0===P||P(e)},onChange:function(e){var t=e.target.value;!z&&$&&(t=b(t,C)),W(t),(0,h.rJ)(e.currentTarget,e,T,t)},onCompositionEnd:function(e){V(!1);var t=e.currentTarget.value;$&&(t=b(t,C)),t!==U&&(W(t),(0,h.rJ)(e.currentTarget,e,T,t)),null===S||void 0===S||S(e)},ref:I})),Y=(0,h.D7)(U);z||!$||null!==M.value&&void 0!==M.value||(Y=b(Y,C));var X=c.createElement(m.Z,(0,i.Z)({},M,{prefixCls:K,direction:R,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,h.rJ)(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e,T)},ref:L,bordered:x,style:Z?void 0:N}));if(Z){var Q=(0,s.Z)(Y).length,J="";return J="object"===(0,r.Z)(Z)?Z.formatter({count:Q,maxLength:C}):"".concat(Q).concat($?" / ".concat(C):""),c.createElement("div",{className:d()("".concat(K,"-textarea"),(0,o.Z)({},"".concat(K,"-textarea-rtl"),"rtl"===R),"".concat(K,"-textarea-show-count"),k),style:N,"data-count":J},X)}return X}));t.Z=w},4107:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(77749),i=n(4942),o=n(67294),a=n(94184),s=n.n(a),c=n(65632),l=function(e){return o.createElement(c.C,null,(function(t){var n,r=t.getPrefixCls,a=t.direction,c=e.prefixCls,l=e.className,u=void 0===l?"":l,f=r("input-group",c),d=s()(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),u);return o.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))},u=n(87462),f=n(42550),d=n(76570),p=n(71577),m=n(97647),v=n(96159),h=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)}}(),C=a.forwardRef((function(e,t){var n=e.prefixCls,s=e.className,u=e.trigger,f=e.children,d=e.defaultCollapsed,p=void 0!==d&&d,C=e.theme,k=void 0===C?"dark":C,N=e.style,O=void 0===N?{}:N,P=e.collapsible,S=void 0!==P&&P,T=e.reverseArrow,M=void 0!==T&&T,A=e.width,j=void 0===A?200:A,R=e.collapsedWidth,F=void 0===R?80:R,I=e.zeroWidthTriggerStyle,L=e.breakpoint,_=e.onCollapse,D=e.onBreakpoint,z=w(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),V=(0,a.useContext)(g.Gs).siderHook,H=(0,a.useState)("collapsed"in z?z.collapsed:p),B=(0,o.Z)(H,2),U=B[0],q=B[1],W=(0,a.useState)(!1),$=(0,o.Z)(W,2),K=$[0],G=$[1];(0,a.useEffect)((function(){"collapsed"in z&&q(z.collapsed)}),[z.collapsed]);var Y=function(e,t){"collapsed"in z||q(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),U!==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=Z("ant-sider-");return V.addSider(e),function(){return V.removeSider(e)}}),[]);var Q=function(){Y(!U,"clickTrigger")},J=(0,a.useContext)(y.E_).getPrefixCls;return a.createElement(E.Provider,{value:{siderCollapsed:U}},function(){var e,o=J("layout-sider",n),d=(0,l.Z)(z,["collapsed"]),p=U?F:j,g=b(p)?"".concat(p,"px"):String(p),y=0===parseFloat(String(F||0))?a.createElement("span",{onClick:Q,className:c()("".concat(o,"-zero-width-trigger"),"".concat(o,"-zero-width-trigger-").concat(M?"right":"left")),style:I},u||a.createElement(m,null)):null,w={expanded:M?a.createElement(v.Z,null):a.createElement(h.Z,null),collapsed:M?a.createElement(h.Z,null):a.createElement(v.Z,null)}[U?"collapsed":"expanded"],x=null!==u?y||a.createElement("div",{className:"".concat(o,"-trigger"),onClick:Q,style:{width:g}},u||w):null,E=(0,i.Z)((0,i.Z)({},O),{flex:"0 0 ".concat(g),maxWidth:g,minWidth:g,width:g}),Z=c()(o,"".concat(o,"-").concat(k),(e={},(0,r.Z)(e,"".concat(o,"-collapsed"),!!U),(0,r.Z)(e,"".concat(o,"-has-trigger"),S&&null!==u&&!y),(0,r.Z)(e,"".concat(o,"-below"),!!K),(0,r.Z)(e,"".concat(o,"-zero-width"),0===parseFloat(g)),e),s);return a.createElement("aside",(0,i.Z)({className:Z},d,{style:E,ref:t}),a.createElement("div",{className:"".concat(o,"-children")},f),S||K&&y?x:null)}())}));C.displayName="Sider";var k=C},2897:function(e,t,n){"use strict";n.d(t,{Gs:function(){return d},h4:function(){return h},$_:function(){return g},VY:function(){return y}});var r=n(93433),i=n(4942),o=n(29439),a=n(87462),s=n(67294),c=n(94184),l=n.n(c),u=n(65632),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(h,"-rtl"),"rtl"===n),t),g);return s.createElement(d.Provider,{value:{siderHook:{addSider:function(e){v((function(t){return[].concat((0,r.Z)(t),[e])}))},removeSider:function(e){v((function(t){return t.filter((function(t){return t!==e}))}))}}}},s.createElement(w,(0,a.Z)({className:E},x),y))})),h=p({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(m),g=p({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(m),y=p({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(m);t.ZP=v},42051: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),s=n(31129),c=n(67294),l=n(5767).Z,u=n(67178),f=function(e){(0,a.Z)(n,e);var t=(0,s.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||l[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?l.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(c.Component);f.defaultProps={componentName:"global"},f.contextType=u.Z},67178:function(e,t,n){"use strict";var r=(0,n(67294).createContext)(void 0);t.Z=r},5767:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});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"]},s={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)},c=s,l="${label} is not a valid ${type}",u={locale:"en",Pagination:r.Z,DatePicker:s,TimePicker:a,Calendar:c,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No 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:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},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"}}},99210:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(87462),i=n(15671),o=n(43144),a=n(60136),s=n(31129),c=n(67294),l=n(10985),u=n(94184),f=n.n(u),d=n(98423),p=n(44545),m=(0,c.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),v=n(96159);var h=function(e){var t,n,i=e.popupClassName,o=e.icon,a=e.title,s=c.useContext(m),u=s.prefixCls,p=s.inlineCollapsed,h=s.antdMenuTheme,g=(0,l.Xl)();if(o){var y=(0,v.l$)(a)&&"span"===a.type;n=c.createElement(c.Fragment,null,(0,v.Tm)(o,{className:f()((0,v.l$)(o)?null===(t=o.props)||void 0===t?void 0:t.className:"","".concat(u,"-item-icon"))}),y?a:c.createElement("span",{className:"".concat(u,"-title-content")},a))}else n=p&&!g.length&&a&&"string"===typeof a?c.createElement("div",{className:"".concat(u,"-inline-collapsed-noicon")},a.charAt(0)):c.createElement("span",{className:"".concat(u,"-title-content")},a);return c.createElement(m.Provider,{value:(0,r.Z)((0,r.Z)({},s),{firstLevel:!1})},c.createElement(l.Wd,(0,r.Z)({},(0,d.Z)(e,["icon"]),{title:n,popupClassName:f()(u,"".concat(u,"-").concat(h),i)})))},g=n(4942),y=n(50344),b=n(31097),w=n(14025),x=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:V}),motion:{motionName:(0,b.m)(D,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),z?(0,h.Tm)(H,{className:U}):H)}));Z.displayName="Tooltip",Z.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var C=Z},4525:function(e,t,n){"use strict";n.d(t,{Z:function(){return ge}});var r=n(87462),i=n(4942),o=n(67294),a=n(94184),s=n.n(a),c=n(42550),l=n(65632),u=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);ir?n:r}(e),f=Math.floor(u)*(a+1)+X(l.paddingTop)+X(l.paddingBottom);Q(q,e);var d=function(e){var t=[];return e.forEach((function(e){var n=t[t.length-1];"string"===typeof e&&"string"===typeof n?t[t.length-1]+=e:t.push(e)})),t}((0,E.Z)(n));function p(){return Math.ceil(q.getBoundingClientRect().height)2&&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 s=r;s>=n;s-=1){var c=t.slice(0,s);if(e.textContent=c,p()||!c)return s===t.length?{finished:!1,reactNode:t}:{finished:!0,reactNode:c}}return p()?w(e,t,o,r,o):w(e,t,n,o,i)}function x(e,t){var n=e.nodeType;if(1===n)return b(e),p()?{finished:!1,reactNode:d[t]}:(g.removeChild(e),{finished:!0,reactNode:null});if(3===n){var r=e.textContent||"",i=document.createTextNode(r);return b(i),w(i,r)}return{finished:!1,reactNode:null}}return g.appendChild(y),v.forEach((function(e){q.appendChild(e)})),m.some((function(e,t){var n=x(e,t),r=n.finished,i=n.reactNode;return i&&h.push(i),r})),{content:h,text:q.innerHTML,ellipsis:!0}},ee=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&&O,T=f;if(E&&a&&!c&&!O){var M=b.title,F=M||"";M||"string"!==typeof f&&"number"!==typeof f||(F=String(f)),F=F.slice(String(n||"").length),T=o.createElement(o.Fragment,null,n,o.createElement("span",{title:F,"aria-hidden":"true"},"..."),Z),C&&(T=o.createElement(V.Z,{title:!0===C?f:C},o.createElement("span",null,T)))}else T=o.createElement(o.Fragment,null,f,Z);return T=function(e,t){var n=e.mark,r=e.code,i=e.underline,a=e.delete,s=e.strong,c=e.keyboard,l=e.italic,u=t;function f(e,t){e&&(u=o.createElement(t,{},u))}return f(s,"strong"),f(i,"u"),f(a,"del"),f(r,"code"),f(n,"mark"),f(c,"kbd"),f(l,"i"),u}(this.props,T),o.createElement(R.Z,{componentName:"Text"},(function(t){var n,a=t.edit,c=t.copy,l=t.copied,f=t.expand;return e.editStr=a,e.copyStr=c,e.copiedStr=l,e.expandStr=f,o.createElement(A.default,{onResize:e.resizeOnNextFrame,disabled:O},o.createElement(m,(0,r.Z)({className:s()((n={},(0,i.Z)(n,"".concat(k,"-").concat(p),p),(0,i.Z)(n,"".concat(k,"-disabled"),v),(0,i.Z)(n,"".concat(k,"-ellipsis"),E),(0,i.Z)(n,"".concat(k,"-single-line"),1===E),(0,i.Z)(n,"".concat(k,"-ellipsis-single-line"),P),(0,i.Z)(n,"".concat(k,"-ellipsis-multiple-line"),S),n),d),style:(0,r.Z)((0,r.Z)({},y),{WebkitLineClamp:S?E:void 0}),component:u,ref:e.contentRef,direction:w},N),T,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,u.Z)(!n||"string"===typeof t,"Typography","When `editable` is enabled, the `children` should use string."),{}}}]),n}(o.Component);ie.contextType=l.E_,ie.defaultProps={children:""};var oe=ie,ae=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}})},70184:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});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 s(e){return e?a[e]:a.trunc}function c(e,t,n){(0,i.Z)(2,arguments);var r=o(e,t)/1e3;return s(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))}},91486:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(4942),i=(n(67294),n(94184)),o=n.n(i),a=n(85893);function s(e){var t,n=e.status||{},i=n.type,s=n.icon,c=n.message,l=o()((t={"status-container":!0},(0,r.Z)(t,"status-".concat(i),i),(0,r.Z)(t,"empty",!c),t));return(0,a.jsxs)("span",{className:l,children:[s?(0,a.jsx)("span",{className:"status-icon",children:s}):null,c?(0,a.jsx)("span",{className:"status-message",children:c}):null]})}},65517:function(e,t,n){"use strict";n.d(t,{Sk:function(){return x},xA:function(){return E},ZP:function(){return Z}});var r=n(4942),i=n(15861),o=n(44925),a=n(87757),s=n.n(a),c=n(71577),l=n(94184),u=n.n(l),f=n(67294),d=n(95828),p=n(74071),m=n(60293),v=n(91486),h=n(60764),g=n(85893),y=["apiPath","configPath","initialValue","useTrim","useTrimLead"];function b(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 w(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(v()?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()?"":b(this.number):this.origin}}]),e}(),E=function(){function e(t){if((0,p.Z)(this,e),this.origin="",(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(g(n)&&(n=Number(n)),w(n="string"===typeof n?n:b(n))){var r=h(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,m.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=h((this.alignDecimal(r)+n.alignDecimal(r)).toString()),o=i.negativeStr,a=i.trimStr,s="".concat(o).concat(a.padStart(r+1,"0"));return new e("".concat(s.slice(0,-r),".").concat(s.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()?"":h("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Z(e){return v()?new E(e):new x(e)}function C(e,t,n){if(""===e)return"";var r=h(e),i=r.negativeStr,o=r.integerStr,a=r.decimalStr,s="".concat(t).concat(a),c="".concat(i).concat(o);if(n>=0){var l=Number(a[n]);return l>=5?C(Z(e).add("0.".concat("0".repeat(n)).concat(10-l)).toString(),t,n):0===n?c:"".concat(c).concat(t).concat(a.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}var k=n(31131);function N(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,c=e.upDisabled,l=e.downDisabled,u=e.onStep,f=i.useRef(),d=i.useRef();d.current=u;var p=function(e,t){e.preventDefault(),d.current(t),f.current=setTimeout((function e(){d.current(t),f.current=setTimeout(e,200)}),600)},m=function(){clearTimeout(f.current)};if(i.useEffect((function(){return m}),[]),(0,k.Z)())return null;var v="".concat(t,"-handler"),h=a()(v,"".concat(v,"-up"),(0,r.Z)({},"".concat(v,"-up-disabled"),c)),g=a()(v,"".concat(v,"-down"),(0,r.Z)({},"".concat(v,"-down-disabled"),l)),y={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return i.createElement("div",{className:"".concat(v,"-wrap")},i.createElement("span",(0,s.Z)({},y,{onMouseDown:function(e){p(e,!0)},"aria-label":"Increase Value","aria-disabled":c,className:h}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",(0,s.Z)({},y,{onMouseDown:function(e){p(e,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:g}),o||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var O=n(80334);var P=(0,n(98924).Z)()?i.useLayoutEffect:i.useEffect;function S(e,t){var n=i.useRef(!1);P((function(){if(n.current)return e();n.current=!0}),t)}var T=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},M=function(e){var t=Z(e);return t.isInvalidate()?null:t},A=i.forwardRef((function(e,t){var n,o=e.prefixCls,p=void 0===o?"rc-input-number":o,m=e.className,v=e.style,h=e.min,g=e.max,x=e.step,E=void 0===x?1:x,k=e.defaultValue,P=e.value,A=e.disabled,j=e.readOnly,R=e.upHandler,F=e.downHandler,I=e.keyboard,L=e.stringMode,_=e.parser,D=e.formatter,z=e.precision,V=e.decimalSeparator,H=e.onChange,B=e.onInput,U=e.onPressEnter,q=e.onStep,W=(0,u.Z)(e,["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"]),$="".concat(p,"-input"),K=i.useRef(null),G=i.useState(!1),Y=(0,l.Z)(G,2),X=Y[0],Q=Y[1],J=i.useRef(!1),ee=i.useRef(!1),te=i.useState((function(){return Z(null!==P&&void 0!==P?P:k)})),ne=(0,l.Z)(te,2),re=ne[0],ie=ne[1];var oe=i.useCallback((function(e,t){if(!t)return z>=0?z:Math.max(y(e),y(E))}),[z,E]),ae=i.useCallback((function(e){var t=String(e);if(_)return _(t);var n=t;return V&&(n=n.replace(V,".")),n.replace(/[^\w.-]+/g,"")}),[_,V]),se=i.useCallback((function(e,t){if(D)return D(e);var n="number"===typeof e?b(e):e;if(!t){var r=oe(n,t);if(w(n)&&(V||r>=0))n=C(n,V||".",r)}return n}),[D,oe,V]),ce=i.useState((function(){var e=null!==k&&void 0!==k?k:P;return re.isInvalidate()&&["string","number"].includes((0,c.Z)(e))?Number.isNaN(e)?"":e:se(re.toString(),!1)})),le=(0,l.Z)(ce,2),ue=le[0],fe=le[1];function de(e,t){fe(se(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var pe=i.useMemo((function(){return M(g)}),[g]),me=i.useMemo((function(){return M(h)}),[h]),ve=i.useMemo((function(){return!(!pe||!re||re.isInvalidate())&&pe.lessEquals(re)}),[pe,re]),he=i.useMemo((function(){return!(!me||!re||re.isInvalidate())&&re.lessEquals(me)}),[me,re]),ge=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(s){}},function(){if(e&&n.current&&t)try{var r=e.value,i=n.current,o=i.beforeTxt,a=i.afterTxt,s=i.start,c=r.length;if(r.endsWith(a))c=r.length-n.current.afterTxt.length;else if(r.startsWith(o))c=o.length;else{var l=o[s-1],u=r.indexOf(l,s-1);-1!==u&&(c=u+1)}e.setSelectionRange(c,c)}catch(f){(0,O.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(f.message))}}]}(K.current,X),ye=(0,l.Z)(ge,2),be=ye[0],we=ye[1],xe=function(e){return pe&&!e.lessEquals(pe)?pe:me&&!me.lessEquals(e)?me:null},Ee=function(e){return!xe(e)},Ze=function(e,t){var n,r=e,i=Ee(r)||r.isEmpty();if(r.isEmpty()||t||(r=xe(r)||r,i=!0),!j&&!A&&i){var o=r.toString(),a=oe(o,t);return a>=0&&(r=Z(C(o,".",a))),r.equals(re)||(n=r,void 0===P&&ie(n),null===H||void 0===H||H(r.isEmpty()?null:T(L,r)),void 0===P&&de(r,t)),r}return re},Ce=function(e){if(be(),fe(e),!ee.current){var t=Z(ae(e));t.isNaN()||Ze(t,!0)}},ke=function(e){var t;if(!(e&&ve||!e&&he)){J.current=!1;var n=Z(E);e||(n=n.negate());var r=(re||Z(0)).add(n.toString()),i=Ze(r,!1);null===q||void 0===q||q(T(L,i),{offset:E,type:e?"up":"down"}),null===(t=K.current)||void 0===t||t.focus()}},Ne=function(e){var t=Z(ae(ue)),n=t;n=t.isNaN()?re:Ze(t,e),void 0!==P?de(re,!1):n.isNaN()||de(n,!1)};return S((function(){re.isInvalidate()||de(re,!1)}),[z]),S((function(){var e=Z(P);ie(e),(e.isNaN()||!J.current||D)&&de(e,!1)}),[P]),S((function(){D&&we()}),[ue]),i.createElement("div",{className:a()(p,m,(n={},(0,r.Z)(n,"".concat(p,"-focused"),X),(0,r.Z)(n,"".concat(p,"-disabled"),A),(0,r.Z)(n,"".concat(p,"-readonly"),j),(0,r.Z)(n,"".concat(p,"-not-a-number"),re.isNaN()),(0,r.Z)(n,"".concat(p,"-out-of-range"),!re.isInvalidate()&&!Ee(re)),n)),style:v,onFocus:function(){Q(!0)},onBlur:function(){Ne(!1),Q(!1),J.current=!1},onKeyDown:function(e){var t=e.which;J.current=!0,t===f.Z.ENTER&&(ee.current||(J.current=!1),Ne(!0),null===U||void 0===U||U(e)),!1!==I&&!ee.current&&[f.Z.UP,f.Z.DOWN].includes(t)&&(ke(f.Z.UP===t),e.preventDefault())},onKeyUp:function(){J.current=!1},onCompositionStart:function(){ee.current=!0},onCompositionEnd:function(){ee.current=!1,Ce(K.current.value)}},i.createElement(N,{prefixCls:p,upNode:R,downNode:F,upDisabled:ve,downDisabled:he,onStep:ke}),i.createElement("div",{className:"".concat($,"-wrap")},i.createElement("input",(0,s.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":re.isInvalidate()?null:re.toString(),step:E},W,{ref:(0,d.sQ)(K,t),className:$,value:ue,onChange:function(e){var t=e.target.value;_||(t=t.replace(/\u3002/g,".")),Ce(t),null===B||void 0===B||B(t)},disabled:A,readOnly:j}))))}));A.displayName="InputNumber";var j=A,R=n(1413),F={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"},I=n(30076),L=function(e,t){return i.createElement(I.Z,(0,R.Z)((0,R.Z)({},e),{},{ref:t,icon:F}))};L.displayName="UpOutlined";var _=i.forwardRef(L),D=n(57254),z=n(65632),V=n(97647),H=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&&(s=!1),t[i?"replace":"push"](n,r,{shallow:o,locale:c,scroll:s}))}(e,i,d,p,v,h,g,y)},onMouseEnter:function(e){a.isLocalURL(d)&&(t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),u(i,d,p,{priority:!0}))}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var N="undefined"!==typeof y?y:i&&i.locale,O=i&&i.isLocaleDomain&&a.getDomainLocale(p,N,i&&i.locales,i&&i.domainLocales);k.href=O||a.addBasePath(a.addLocale(p,N,i&&i.defaultLocale))}return o.default.cloneElement(t,k)};t.default=f},7426:function(e,t,n){"use strict";var r=n(63038);Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!a,c=i.useRef(),l=i.useState(!1),u=r(l,2),f=u[0],d=u[1],p=i.useCallback((function(e){c.current&&(c.current(),c.current=void 0),n||f||e&&e.tagName&&(c.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=s.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 s.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(),s.delete(i))}}(e,(function(e){return e&&d(e)}),{rootMargin:t}))}),[n,t,f]);return i.useEffect((function(){if(!a&&!f){var e=o.requestIdleCallback((function(){return d(!0)}));return function(){return o.cancelIdleCallback(e)}}}),[f]),[p,f]};var i=n(67294),o=n(73447),a="undefined"!==typeof IntersectionObserver;var s=new Map},6454:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return De}});var r=n(4942),i=(n(69586),n(67382),n(67658),n(11164),n(65210),n(80551),n(85052),n(92074),n(83976),n(91130),n(10534),n(73315),n(46510),n(84587),n(63518),n(71844),n(76477),n(60293)),o=n(45197),a=n(15861),s=n(87757),c=n.n(s),l=n(67294),u=n(41664),f=n(9008),d=n(70184),p=n(11163),m=n(2897),v=n(14025),h=m.ZP;h.Header=m.h4,h.Footer=m.$_,h.Content=m.VY,h.Sider=v.Z;var g=h,y=n(99210),b=n(87462),w=n(29439),x=n(54549),E=n(15873),Z=n(57119),C=n(68628),k=n(73218),N=n(38819),O=n(68855),P=n(40847),S=n(43061),T=n(60444),M=n(94184),A=n.n(M),j=n(65632),R=n(5467),F=n(15671),I=n(43144),L=n(60136),_=n(31129),D=function(e){(0,L.Z)(n,e);var t=(0,_.Z)(n);function n(){var e;return(0,F.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,I.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,a=i.info,s=a&&a.componentStack?a.componentStack:null,c="undefined"===typeof t?(o||"").toString():t,u="undefined"===typeof n?s:n;return o?l.createElement(q,{type:"error",message:c,description:l.createElement("pre",null,u)}):r}}]),n}(l.Component),z=n(96159),V=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 V(e){return H.apply(this,arguments)}function H(){return(H=(0,r.Z)(o().mark((function e(t){var n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:if(n=e.sent,"v"===(r=n.tag_name).substr(0,1)&&(r=r.substr(1)),z(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)}},95828:function(e,t,n){"use strict";n.d(t,{sI:function(){return p},AA:function(){return m},d$:function(){return v},$w:function(){return h},c9:function(){return g},sv:function(){return y},vv:function(){return b},AP:function(){return w},CJ:function(){return x},os:function(){return E},CQ:function(){return Z},Si:function(){return C},RE:function(){return N},$t:function(){return O},rs:function(){return P},IX:function(){return S},ZQ:function(){return T},Ri:function(){return M},KB:function(){return A},rE:function(){return j},lT:function(){return R},cj:function(){return F},y_:function(){return I},EY:function(){return L},P:function(){return _},gX:function(){return D},yj:function(){return z},Dg:function(){return V},dL:function(){return H},nm:function(){return B},Xq:function(){return U},x8:function(){return q},yC:function(){return W},SS:function(){return $},HM:function(){return K},t$:function(){return G},I$:function(){return Y},wC:function(){return X},z_:function(){return Q},zm:function(){return J}});var r,i,o,a=n(4942),s=n(15861),c=n(87757),l=n.n(c),u=n(94853),f=n(60764),d=n(31820),p=3e3,m="/pagecontent",v="/customstyles",h="/s3",g="/socialhandles",y="/video/streamlatencylevel",b="/video/streamoutputvariants",w="/directoryenabled",x="/chat/forbiddenusernames",E="/externalactions",Z="/video/codec";function C(e){return k.apply(this,arguments)}function k(){return(k=(0,s.Z)(l().mark((function e(t){var n,r,i,o,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.apiPath,r=t.data,i=t.onSuccess,o=t.onError,e.next=3,(0,u.rQ)("".concat(u.ao).concat(n),{data:r,method:"POST",auth:!0});case 3:(a=e.sent).success&&i?i(a.message):o&&o(a.message);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var N={apiPath:"/name",configPath:"instanceDetails",maxLength:255,placeholder:"Owncast site name",label:"Name",tip:"The name of your Owncast server",required:!0,useTrimLead:!0},O={apiPath:"/streamtitle",configPath:"instanceDetails",maxLength:100,placeholder:"Doing cool things...",label:"Stream Title",tip:"What is your stream about today?"},P={apiPath:"/serversummary",configPath:"instanceDetails",maxLength:500,placeholder:"",label:"About",tip:"A brief blurb about you, your server, or what your stream is about."},S={apiPath:"/welcomemessage",configPath:"instanceDetails",maxLength:500,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."},M={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},A={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},j={apiPath:"/webserverport",configPath:"",maxLength:6,placeholder:"8080",label:"Owncast port",tip:"What port is your Owncast web server listening? Default is 8080",required:!0},R={apiPath:"/rtmpserverport",configPath:"",maxLength:6,placeholder:"1935",label:"RTMP port",tip:"What port should accept inbound broadcasts? Default is 1935",required:!0},F={apiPath:"/serverurl",configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server.",type:f.xA,pattern:d.a,useTrim:!0},I={apiPath:"/tags",configPath:"instanceDetails",maxLength:24,placeholder:"Add a new tag",required:!0,label:"",tip:""},L={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."},_={apiPath:w,configPath:"yp",label:"Enable directory",tip:"Turn this ON to request to show up in the directory."},D={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},V={apiPath:x,placeholder:"username",label:"Forbidden usernames",tip:"A list of words in chat usernames you disallow."},H={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."}},B={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=(r={},(0,a.Z)(r,B.min,"".concat(B.min," ").concat(B.unit)),(0,a.Z)(r,25,""),(0,a.Z)(r,30,""),(0,a.Z)(r,50,""),(0,a.Z)(r,60,""),(0,a.Z)(r,90,""),(0,a.Z)(r,B.max,"".concat(B.max," ").concat(B.unit)),r),q=(i={},(0,a.Z)(i,B.min,"".concat(B.min,"fps - Good for film, presentations, music, low power/bandwidth servers.")),(0,a.Z)(i,25,"25fps - Good for film, presentations, music, low power/bandwidth servers."),(0,a.Z)(i,30,"30fps - Good for slow/casual games, chat, general purpose."),(0,a.Z)(i,50,"50fps - Good for fast/action games, sports, HD video."),(0,a.Z)(i,60,"60fps - Good for fast/action games, sports, HD video."),(0,a.Z)(i,90,"90fps - Good for newer fast games and hardware."),(0,a.Z)(i,B.max,"".concat(B.max,"fps - Experimental, use at your own risk!")),i),W={min:400,max:6e3,defaultValue:1200,unit:"kbps",incrementBy:100,tip:"The overall quality of your stream is generally impacted most by bitrate."},$={fieldName:"name",label:"Name",maxLength:15,placeholder:"HD or Low",tip:"Human-readable name for for displaying in the player."},K=(o={},(0,a.Z)(o,W.min,"".concat(W.min," ").concat(W.unit)),(0,a.Z)(o,3e3,3e3),(0,a.Z)(o,4500,4500),(0,a.Z)(o,W.max,"".concat(W.max," ").concat(W.unit)),o),G={1:"lowest",2:"",3:"",4:"",5:"highest"},Y={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"},X={url:"",platform:""},Q="OTHER_SOCIAL_HANDLE_OPTION",J={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:f.xA,pattern:d.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:f.xA,pattern:d.a,useTrim:!0}}},9431:function(e,t,n){"use strict";n.d(t,{t5:function(){return o},Qr:function(){return a},wS:function(){return c},AB:function(){return l}});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 s(e,t,n){return String(t.repeat(n)+e).slice(-n)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Number.isFinite(+e)?Math.abs(e):0,n=Math.floor(t/86400),r=n>0?"".concat(n," day").concat(n>1?"s":""," "):"",i=Math.floor(t/3600%24),o=i||n?s("".concat(i,":"),"0",3):"",a=Math.floor(t/60%60),c=s("".concat(a,":"),"0",3),l=Math.floor(t%60),u=s("".concat(l),"0",2);return r+o+c+u}function l(e){var t=i()(e),n=t.device,r=t.os,o=t.browser,a=o.major,s=o.name,c=r.version,l=r.name,u=n.model,f=n.type;if(!s||!a||!l)return e;var d=u||f?" (".concat(u||f,")"):"";return"".concat(s," ").concat(a," on ").concat(l," ").concat(c,"\n ").concat(d)}},74071:function(e,t,n){"use strict";n.d(t,{Un:function(){return v},Jk:function(){return g},zv:function(){return y},dG:function(){return b},kg:function(){return x}});var r=n(4942),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"},s=n(30076),c=function(e,t){return o.createElement(s.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:a}))};c.displayName="WarningOutlined";var l,u=o.forwardRef(c),f=n(38819),d=n(68855),p=n(7085),m=n(85893),v="error",h="invalid",g="proessing",y="success",b="warning",w=(l={},(0,r.Z)(l,y,{type:y,icon:(0,m.jsx)(f.Z,{style:{color:"green"}}),message:"Success!"}),(0,r.Z)(l,v,{type:v,icon:(0,m.jsx)(d.Z,{style:{color:"red"}}),message:"An error occurred."}),(0,r.Z)(l,h,{type:h,icon:(0,m.jsx)(d.Z,{style:{color:"red"}}),message:"An error occurred."}),(0,r.Z)(l,g,{type:g,icon:(0,m.jsx)(p.Z,{}),message:""}),(0,r.Z)(l,b,{type:b,icon:(0,m.jsx)(u,{style:{color:"#fc0"}}),message:""}),l);function x(e,t){return e&&w[e]?t?{type:e,icon:w[e].icon,message:t}:w[e]:null}},60293:function(e,t,n){"use strict";n.d(t,{aC:function(){return v}});var r=n(15861),i=n(4942),o=n(87757),a=n.n(o),s=n(67294),c=n(94853),l=n(95828),u=n(85893);function f(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 d(e){for(var t=1;t1)for(var n=1;n=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}}));return a}return i}function F(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 I(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{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},B={integer:function(e){return B.number(e)&&parseInt(e,10)===e},float:function(e){return B.number(e)&&!B.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&&!B.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(H.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(H.url)},hex:function(e){return"string"===typeof e&&!!e.match(H.hex)}};var U={required:V,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(R(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)V(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?B[o](t)||r.push(R(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(R(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,s="number"===typeof e.max,c=t,l=null,u="number"===typeof t,f="string"===typeof t,d=Array.isArray(t);if(u?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(c=t.length),f&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?c!==e.len&&r.push(R(i.messages[l].len,e.fullField,e.len)):a&&!s&&ce.max?r.push(R(i.messages[l].max,e.fullField,e.max)):a&&s&&(ce.max)&&r.push(R(i.messages[l].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(R(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(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function q(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(F(t,o)&&!e.required)return n();U.required(e,t,r,a,i,o),F(t,o)||U.type(e,t,r,a,i)}n(a)}var W={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(F(t,"string")&&!e.required)return n();U.required(e,t,r,o,i,"string"),F(t,"string")||(U.type(e,t,r,o,i),U.range(e,t,r,o,i),U.pattern(e,t,r,o,i),!0===e.whitespace&&U.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(F(t)&&!e.required)return n();U.required(e,t,r,o,i),void 0!==t&&U.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),F(t)&&!e.required)return n();U.required(e,t,r,o,i),void 0!==t&&(U.type(e,t,r,o,i),U.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(F(t)&&!e.required)return n();U.required(e,t,r,o,i),void 0!==t&&U.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(F(t)&&!e.required)return n();U.required(e,t,r,o,i),F(t)||U.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(F(t)&&!e.required)return n();U.required(e,t,r,o,i),void 0!==t&&(U.type(e,t,r,o,i),U.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(F(t)&&!e.required)return n();U.required(e,t,r,o,i),void 0!==t&&(U.type(e,t,r,o,i),U.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();U.required(e,t,r,o,i,"array"),void 0!==t&&null!==t&&(U.type(e,t,r,o,i),U.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(F(t)&&!e.required)return n();U.required(e,t,r,o,i),void 0!==t&&U.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(F(t)&&!e.required)return n();U.required(e,t,r,o,i),void 0!==t&&U.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(F(t,"string")&&!e.required)return n();U.required(e,t,r,o,i),F(t,"string")||U.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(F(t,"date")&&!e.required)return n();var a;if(U.required(e,t,r,o,i),!F(t,"date"))a=t instanceof Date?t:new Date(t),U.type(e,a,r,o,i),a&&U.range(e,a.getTime(),r,o,i)}n(o)},url:q,hex:q,email:q,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;U.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(F(t)&&!e.required)return n();U.required(e,t,r,o,i)}n(o)}};function $(){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 K=$();function G(e){this.rules=null,this._messages=K,this.define(e)}G.prototype={messages:function(e){return e&&(this._messages=z($(),e)),this._messages},define:function(e){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");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var i,o,a=e,s=t,c=n;if("function"===typeof s&&(c=s,s={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(),Promise.resolve();if(s.messages){var l=this.messages();l===K&&(l=$()),z(l,s.messages),s.messages=l}else s.messages=this.messages();var u={};(s.keys||Object.keys(this.rules)).forEach((function(t){i=r.rules[t],o=a[t],i.forEach((function(n){var i=n;"function"===typeof i.transform&&(a===e&&(a=k({},a)),o=a[t]=i.transform(o)),(i="function"===typeof i?{validator:i}:k({},i)).validator=r.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=r.getType(i),i.validator&&(u[t]=u[t]||[],u[t].push({rule:i,value:o,source:a,field:t}))}))}));var f={};return _(u,s,(function(e,t){var n,r=e.rule,i=("object"===r.type||"array"===r.type)&&("object"===typeof r.fields||"object"===typeof r.defaultField);function o(e,t){return k({},t,{fullField:r.fullField+"."+e})}function a(n){void 0===n&&(n=[]);var a=n;if(Array.isArray(a)||(a=[a]),!s.suppressWarning&&a.length&&G.warning("async-validator:",a),a.length&&void 0!==r.message&&(a=[].concat(r.message)),a=a.map(D(r)),s.first&&a.length)return f[r.field]=1,t(a);if(i){if(r.required&&!e.value)return void 0!==r.message?a=[].concat(r.message).map(D(r)):s.error&&(a=[s.error(r,R(s.messages.required,r.field))]),t(a);var c={};if(r.defaultField)for(var l in e.value)e.value.hasOwnProperty(l)&&(c[l]=r.defaultField);for(var u in c=k({},c,e.rule.fields))if(c.hasOwnProperty(u)){var d=Array.isArray(c[u])?c[u]:[c[u]];c[u]=d.map(o.bind(null,u))}var p=new G(c);p.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),p.validate(e.value,e.rule.options||s,(function(e){var n=[];a&&a.length&&n.push.apply(n,a),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(a)}i=i&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,a,e.source,s):r.validator&&(!0===(n=r.validator(r,e.value,a,e.source,s))?a():!1===n?a(r.message||r.field+" fails"):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n=[],r={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t3&&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 le(e,t)}))}function ae(e){return"object"===(0,Z.Z)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function se(e,t){var n=Array.isArray(e)?(0,c.Z)(e):(0,s.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?se(r,i||{}):i})),n):n}function ce(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,c.Z)(e.slice(0,n)),[i],(0,c.Z)(e.slice(n,t)),(0,c.Z)(e.slice(t+1,r))):o<0?[].concat((0,c.Z)(e.slice(0,t)),(0,c.Z)(e.slice(t+1,n+1)),[i],(0,c.Z)(e.slice(n+1,r))):e}var de="'${name}' is not a valid ${type}",pe={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:de,method:de,array:de,object:de,number:de,date:de,boolean:de,integer:de,float:de,regexp:de,email:de,url:de,hex:de},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},me=Y;function ve(e,t,n,r){var i=(0,s.Z)((0,s.Z)({},n),{},{name:t,enum:(n.enum||[]).join(", ")}),o=function(e,t){return function(){return function(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}(e,(0,s.Z)((0,s.Z)({},i),t))}};return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(i){var a=t[i];"string"===typeof a?n[i]=o(a,r):a&&"object"===(0,Z.Z)(a)?(n[i]={},e(a,n[i])):n[i]=a})),n}(ce({},pe,e))}function he(e,t,n,r,i){return ge.apply(this,arguments)}function ge(){return(ge=(0,E.Z)(x().mark((function e(t,n,i,o,l){var u,f,d,p,m,v;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=(0,s.Z)({},i),f=null,u&&"array"===u.type&&u.defaultField&&(f=u.defaultField,delete u.defaultField),d=new me((0,a.Z)({},t,[u])),p=ve(o.validateMessages,t,u,l),d.messages(p),m=[],e.prev=7,e.next=10,Promise.resolve(d.validate((0,a.Z)({},t,n),(0,s.Z)({},o)));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),e.t0.errors?m=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),m=[p.default()]);case 15:if(m.length||!f){e.next=20;break}return e.next=18,Promise.all(n.map((function(e,n){return he("".concat(t,".").concat(n),e,f,o,l)})));case 18:return v=e.sent,e.abrupt("return",v.reduce((function(e,t){return[].concat((0,c.Z)(e),(0,c.Z)(t))}),[]));case 20:return e.abrupt("return",m);case 21:case"end":return e.stop()}}),e,null,[[7,12]])})))).apply(this,arguments)}function ye(e,t,n,r,i,o){var a,c=e.join("."),l=n.map((function(e){var t=e.validator;return t?(0,s.Z)((0,s.Z)({},e),{},{validator:function(e,n,r){var i=!1,o=t(e,n,(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];i.validatePromise===r&&(i.validatePromise=null,i.errors=e,i.reRender())})),f}));return i.validatePromise=r,i.dirty=!0,i.errors=[],i.reRender(),r},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){return i.dirty},i.getErrors=function(){return i.errors},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,name:i.getNamePath()}},i.getOnlyChild=function(e){if("function"===typeof e){var t=i.getMeta();return(0,s.Z)((0,s.Z)({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.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,c=t.normalize,l=t.valuePropName,u=t.getValueProps,f=t.fieldContext,d=void 0!==r?r:f.validateTrigger,p=i.getNamePath(),m=f.getInternalHooks,v=f.getFieldsValue,g=m(h),y=g.dispatch,w=i.getValue(),x=u||function(e){return(0,a.Z)({},l,e)},E=e[n],Z=(0,s.Z)((0,s.Z)({},e),x(w));Z[n]=function(){var e;i.touched=!0,i.dirty=!0;for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(u.keys=[].concat((0,c.Z)(u.keys.slice(0,t)),[u.id],(0,c.Z)(u.keys.slice(t))),o([].concat((0,c.Z)(n.slice(0,t)),[e],(0,c.Z)(n.slice(t))))):(u.keys=[].concat((0,c.Z)(u.keys),[u.id]),o([].concat((0,c.Z)(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.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=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=fe(u.keys,e,t),o(fe(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),i(p.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),f,t)})))},ke=n(29439);var Ne="__@field_split__";function Oe(e){return e.map((function(e){return"".concat((0,Z.Z)(e),":").concat(e)})).join(Ne)}var Pe=function(){function e(){(0,l.Z)(this,e),this.kvs=new Map}return(0,u.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(Oe(e),t)}},{key:"get",value:function(e){return this.kvs.get(Oe(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(Oe(e))}},{key:"map",value:function(e){return(0,c.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}(),Se=function e(t){var n=this;(0,l.Z)(this,e),this.formHooked=!1,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,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===h?(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}):((0,v.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=ce({},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 Pe;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()}:{name:te(e[n]),errors:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=te(e);return n.getFieldsError([t])[0].errors},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 Pe,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,v.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,v.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,c.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,c.Z)((0,c.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=ce({},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,["name","errors"])),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,s.Z)((0,s.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(),s=t?void 0:ne(n.initialValues,a);a.length&&n.getFieldValue(a)!==s&&n.fieldEntities.every((function(e){return!le(e.getNamePath(),a)}))&&(n.store=re(n.store,a,s,!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,s.Z)((0,s.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,c.Z)(o))});var a=n.callbacks.onValuesChange;a&&a(ie(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,c.Z)(o)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&(n.store=ce(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],i=new Pe;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 Pe;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 c=a.getNamePath();c.every((function(t,n){return e[n]===t||void 0===e[n]}))&&i.push(c)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!r||oe(i,l)){var u=a.validateRules((0,s.Z)({validateMessages:(0,s.Z)((0,s.Z)({},pe),n.validateMessages)},t));o.push(u.then((function(){return{name:l,errors:[]}})).catch((function(e){return Promise.reject({name:l,errors:e})})))}}}));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 c=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 c.catch((function(e){return e})),c},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 Se((function(){i({})}));t.current=o.getForm()}return[t.current]},Me=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ae=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,o=e.children,c=r.useContext(Me),l=r.useRef({});return r.createElement(Me.Provider,{value:(0,s.Z)((0,s.Z)({},c),{},{validateMessages:(0,s.Z)((0,s.Z)({},c.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),c.triggerFormChange(e,t)},triggerFormFinish:function(e,t){i&&i(e,{values:t,forms:l.current}),c.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=(0,s.Z)((0,s.Z)({},l.current),{},(0,a.Z)({},e,t))),c.registerForm(e,t)},unregisterForm:function(e){var t=(0,s.Z)({},l.current);delete t[e],l.current=t,c.unregisterForm(e)}})},o)},je=Me,Re=function(e,t){var n=e.name,a=e.initialValues,l=e.fields,u=e.form,f=e.preserve,d=e.children,p=e.component,m=void 0===p?"form":p,v=e.validateMessages,g=e.validateTrigger,b=void 0===g?"onChange":g,w=e.onValuesChange,x=e.onFieldsChange,E=e.onFinish,C=e.onFinishFailed,k=(0,o.Z)(e,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),N=r.useContext(je),O=Te(u),P=(0,ke.Z)(O,1)[0],S=P.getInternalHooks(h),T=S.useSubscribe,M=S.setInitialValues,A=S.setCallbacks,j=S.setValidateMessages,R=S.setPreserve;r.useImperativeHandle(t,(function(){return P})),r.useEffect((function(){return N.registerForm(n,P),function(){N.unregisterForm(n)}}),[N,P,n]),j((0,s.Z)((0,s.Z)({},N.validateMessages),v)),A({onValuesChange:w,onFieldsChange:function(e){if(N.triggerFormChange(n,e),x){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i1&&(E.motionAppear=!1);var Z=E.onVisibleChanged;return E.onVisibleChanged=function(e){return h.current||e||w(!0),null===Z||void 0===Z?void 0:Z(e)},b?null:l.createElement(k,{mode:c,locked:!h.current},l.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 l.createElement($,{id:t,className:n,style:r},a)})))}var ie=function(e){var t,n=e.style,a=e.className,u=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),m=e.internalPopupClose,v=e.children,g=e.itemIcon,y=e.expandIcon,b=e.popupClassName,w=e.popupOffset,x=e.onClick,E=e.onMouseEnter,Z=e.onMouseLeave,T=e.onTitleClick,M=e.onTitleMouseEnter,A=e.onTitleMouseLeave,j=(0,c.Z)(e,["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"]),I=_(d),L=l.useContext(C),D=L.prefixCls,z=L.mode,V=L.openKeys,H=L.disabled,B=L.overflowDisabled,q=L.activeKey,W=L.selectedKeys,K=L.itemIcon,G=L.expandIcon,Y=L.onItemClick,X=L.onOpenChange,Q=L.onActive,J=l.useContext(F).isSubPathKey,ee=R(),ne="".concat(D,"-submenu"),ie=H||p,oe=l.useRef(),ae=l.useRef();var se=g||K,ce=y||G,le=V.includes(d),ue=!B&&le,fe=J(W,d),de=N(d,ie,M,A),pe=de.active,me=(0,c.Z)(de,["active"]),ve=l.useState(!1),he=(0,s.Z)(ve,2),ge=he[0],ye=he[1],be=function(e){ie||ye(e)},we=l.useMemo((function(){return pe||"inline"!==z&&(ge||J([q],d))}),[z,pe,q,ge,d,J]),xe=S(ee.length),Ee=U((function(e){null===x||void 0===x||x(O(e)),Y(e)})),Ze=I&&"".concat(I,"-popup"),Ce=l.createElement("div",(0,r.Z)({role:"menuitem",style:xe,className:"".concat(ne,"-title"),tabIndex:ie?null:-1,ref:oe,title:"string"===typeof u?u:null,"data-menu-id":B&&I?null:I,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":Ze,"aria-disabled":ie,onClick:function(e){ie||(null===T||void 0===T||T({key:d,domEvent:e}),"inline"===z&&X(d,!le))},onFocus:function(){Q(d)}},me),u,l.createElement(P,{icon:"horizontal"!==z?ce:null,props:(0,o.Z)((0,o.Z)({},e),{},{isOpen:ue,isSubMenu:!0})},l.createElement("i",{className:"".concat(ne,"-arrow")}))),ke=l.useRef(z);if("inline"!==z&&(ke.current=ee.length>1?"vertical":z),!B){var Ne=ke.current;Ce=l.createElement(te,{mode:Ne,prefixCls:ne,visible:!m&&ue&&"inline"!==z,popupClassName:b,popupOffset:w,popup:l.createElement(k,{mode:"horizontal"===Ne?"vertical":Ne},l.createElement($,{id:Ze,ref:ae},v)),disabled:ie,onVisibleChange:function(e){"inline"!==z&&X(d,e)}},Ce)}return l.createElement(k,{onItemClick:Ee,mode:"horizontal"===z?"vertical":z,itemIcon:se,expandIcon:ce},l.createElement(h.Z.Item,(0,r.Z)({role:"none"},j,{component:"li",style:n,className:f()(ne,"".concat(ne,"-").concat(z),a,(t={},(0,i.Z)(t,"".concat(ne,"-open"),ue),(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===Z||void 0===Z||Z({key:d,domEvent:e})}}),Ce,!B&&l.createElement(re,{id:Ze,open:ue,keyPath:ee},v)))};function oe(e){var t,n=e.eventKey,r=e.children,i=R(n),o=B(r,i),a=A();return l.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),t=a?o:l.createElement(ie,e,o),l.createElement(j.Provider,{value:i},t)}var ae=n(5110);function se(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 ce(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return se(e,t)}));return se(e,t)&&n.unshift(e),n}var le=x.Z.LEFT,ue=x.Z.RIGHT,fe=x.Z.UP,de=x.Z.DOWN,pe=x.Z.ENTER,me=x.Z.ESC,ve=[fe,de,le,ue];function he(e,t){return ce(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=he(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,s,c,u,f){var d=l.useRef(),p=l.useRef();p.current=t;var m=function(){G.Z.cancel(d.current)};return l.useEffect((function(){return function(){m()}}),[]),function(l){var v=l.which;if([].concat(ve,[pe,me]).includes(v)){var h,g,y,b=function(){return h=new Set,g=new Map,y=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(L(r,e),"']"));t&&(h.add(t),y.set(t,e),g.set(e,t))})),h};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),h),x=y.get(w),E=function(e,t,n,r){var o,a,s,c,l="prev",u="next",f="children",d="parent";if("inline"===e&&r===pe)return{inlineTrigger:!0};var p=(o={},(0,i.Z)(o,fe,l),(0,i.Z)(o,de,u),o),m=(a={},(0,i.Z)(a,le,n?u:l),(0,i.Z)(a,ue,n?l:u),(0,i.Z)(a,de,f),(0,i.Z)(a,pe,f),a),v=(s={},(0,i.Z)(s,fe,l),(0,i.Z)(s,de,u),(0,i.Z)(s,pe,f),(0,i.Z)(s,me,d),(0,i.Z)(s,le,n?f:d),(0,i.Z)(s,ue,n?d:f),s);switch(null===(c={inline:p,horizontal:m,vertical:v,inlineSub:p,horizontalSub:v,verticalSub:v}["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r]){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===s(x,!0).length,n,v);if(!E)return;ve.includes(v)&&l.preventDefault();var Z=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);c(r),m(),d.current=(0,G.Z)((function(){p.current===r&&t.focus()}))}};if(E.sibling||!w){var C=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,h,w,E.offset);Z(C)}else if(E.inlineTrigger)u(x);else if(E.offset>0)u(x,!0),m(),d.current=(0,G.Z)((function(){b();var e=w.getAttribute("aria-controls"),t=ge(document.getElementById(e),h);Z(t)}),5);else if(E.offset<0){var k=s(x,!0),N=k[k.length-2],O=g.get(N);u(N,!1),Z(O)}}null===f||void 0===f||f(l)}}var be=Math.random().toFixed(5).toString().slice(2),we=0;var xe="__RC_UTIL_PATH_SPLIT__",Ee=function(e){return e.join(xe)},Ze="rc-menu-more";function Ce(){var e=l.useState({}),t=(0,s.Z)(e,2)[1],n=(0,l.useRef)(new Map),r=(0,l.useRef)(new Map),i=l.useState([]),o=(0,s.Z)(i,2),c=o[0],u=o[1],f=(0,l.useRef)(0),d=(0,l.useRef)(!1),p=(0,l.useCallback)((function(e,i){var o=Ee(i);r.current.set(o,e),n.current.set(e,o),f.current+=1;var a,s=f.current;a=function(){s===f.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),m=(0,l.useCallback)((function(e,t){var i=Ee(t);r.current.delete(i),n.current.delete(e)}),[]),v=(0,l.useCallback)((function(e){u(e)}),[]),h=(0,l.useCallback)((function(e,t){var r=n.current.get(e)||"",i=r.split(xe);return t&&c.includes(i[0])&&i.unshift(Ze),i}),[c]),g=(0,l.useCallback)((function(e,t){return e.some((function(e){return h(e,!0).includes(t)}))}),[h]),y=(0,l.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 l.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:m,refreshOverflowKeys:v,isSubPathKey:g,getKeyPath:h,getKeys:function(){var e=(0,a.Z)(n.current.keys());return c.length&&e.push(Ze),e},getSubPathKeys:y}}var ke=[],Ne=function(e){var t=e.className,n=e.title,i=(e.eventKey,e.children),o=(0,c.Z)(e,["className","title","eventKey","children"]),a=l.useContext(C).prefixCls,s="".concat(a,"-item-group");return l.createElement("li",(0,r.Z)({},o,{onClick:function(e){return e.stopPropagation()},className:f()(s,t)}),l.createElement("div",{className:"".concat(s,"-title"),title:"string"===typeof n?n:void 0},n),l.createElement("ul",{className:"".concat(s,"-list")},i))};function Oe(e){var t=e.children,n=(0,c.Z)(e,["children"]),r=B(t,R(n.eventKey));return A()?r:l.createElement(Ne,(0,E.Z)(n,["warnKey"]),r)}function Pe(e){var t=e.className,n=e.style,r=l.useContext(C).prefixCls;return A()?null:l.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})}var Se=R,Te=function(e){var t,n,u=e.prefixCls,d=void 0===u?"rc-menu":u,v=e.style,g=e.className,y=e.tabIndex,b=void 0===y?0:y,w=e.children,x=e.direction,E=e.id,Z=e.mode,C=void 0===Z?"vertical":Z,N=e.inlineCollapsed,P=e.disabled,S=e.disabledOverflow,T=e.subMenuOpenDelay,A=void 0===T?.1:T,j=e.subMenuCloseDelay,R=void 0===j?.1:j,L=e.forceSubMenuRender,_=e.defaultOpenKeys,D=e.openKeys,z=e.activeKey,H=e.defaultActiveFirst,q=e.selectable,W=void 0===q||q,$=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,se=e.itemIcon,ce=e.expandIcon,le=e.overflowedIndicator,ue=void 0===le?"...":le,fe=e.overflowedIndicatorPopupClassName,de=e.getPopupContainer,pe=e.onClick,me=e.onOpenChange,ve=e.onKeyDown,he=(e.openAnimation,e.openTransitionName,(0,c.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=l.useState(!1),Ee=(0,s.Z)(xe,2),Ne=Ee[0],Oe=Ee[1],Pe=l.useRef(),Se=function(e){var t=(0,m.Z)(e,{value:e}),n=(0,s.Z)(t,2),r=n[0],i=n[1];return l.useEffect((function(){we+=1;var e="".concat(be,"-").concat(we);i("rc-menu-uuid-".concat(e))}),[]),r}(E),Te="rtl"===x;var Me=l.useMemo((function(){return"inline"!==C&&"vertical"!==C||!N?[C,!1]:["vertical",N]}),[C,N]),Ae=(0,s.Z)(Me,2),je=Ae[0],Re=Ae[1],Fe=l.useState(0),Ie=(0,s.Z)(Fe,2),Le=Ie[0],_e=Ie[1],De=Le>=ge.length-1||"horizontal"!==je||S,ze=(0,m.Z)(_,{value:D,postState:function(e){return e||ke}}),Ve=(0,s.Z)(ze,2),He=Ve[0],Be=Ve[1],Ue=function(e){Be(e),null===me||void 0===me||me(e)},qe=l.useState(He),We=(0,s.Z)(qe,2),$e=We[0],Ke=We[1],Ge="inline"===je,Ye=l.useRef(!1);l.useEffect((function(){Ge&&Ke(He)}),[He]),l.useEffect((function(){Ye.current?Ge?Be($e):Ue(ke):Ye.current=!0}),[Ge]);var Xe=Ce(),Qe=Xe.registerPath,Je=Xe.unregisterPath,et=Xe.refreshOverflowKeys,tt=Xe.isSubPathKey,nt=Xe.getKeyPath,rt=Xe.getKeys,it=Xe.getSubPathKeys,ot=l.useMemo((function(){return{registerPath:Qe,unregisterPath:Je}}),[Qe,Je]),at=l.useMemo((function(){return{isSubPathKey:tt}}),[tt]);l.useEffect((function(){et(De?ke:ge.slice(Le+1).map((function(e){return e.key})))}),[Le,De]);var st=(0,m.Z)(z||H&&(null===(t=ge[0])||void 0===t?void 0:t.key),{value:z}),ct=(0,s.Z)(st,2),lt=ct[0],ut=ct[1],ft=U((function(e){ut(e)})),dt=U((function(){ut(void 0)})),pt=(0,m.Z)(G||[],{value:Y,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?ke:[e]}}),mt=(0,s.Z)(pt,2),vt=mt[0],ht=mt[1],gt=U((function(e){null===pe||void 0===pe||pe(O(e)),function(e){if(W){var t,n=e.key,r=vt.includes(n);t=K?r?vt.filter((function(e){return e!==n})):[].concat((0,a.Z)(vt),[n]):[n],ht(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"!==je&&Ue(ke)}(e)})),yt=U((function(e,t){var n=He.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==je){var r=it(e);n=n.filter((function(e){return!r.has(e)}))}p()(He,n)||Ue(n)})),bt=U(de),wt=ye(je,lt,Te,Se,Pe,rt,nt,ut,(function(e,t){var n=null!==t&&void 0!==t?t:!He.includes(e);yt(e,n)}),ve);l.useEffect((function(){Oe(!0)}),[]);var xt="horizontal"!==je||S?ge:ge.map((function(e,t){return l.createElement(k,{key:e.key,overflowDisabled:t>Le},e)})),Et=l.createElement(h.Z,(0,r.Z)({id:E,ref:Pe,prefixCls:"".concat(d,"-overflow"),component:"ul",itemComponent:V,className:f()(d,"".concat(d,"-root"),"".concat(d,"-").concat(je),g,(n={},(0,i.Z)(n,"".concat(d,"-inline-collapsed"),Re),(0,i.Z)(n,"".concat(d,"-rtl"),Te),n)),dir:x,style:v,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 l.createElement(oe,{eventKey:Ze,title:ue,disabled:De,internalPopupClose:0===t,popupClassName:fe},n)},maxCount:"horizontal"!==je||S?h.Z.INVALIDATE:h.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){_e(e)},onKeyDown:wt},he));return l.createElement(I.Provider,{value:Se},l.createElement(k,{prefixCls:d,mode:je,openKeys:He,rtl:Te,disabled:P,motion:Ne?te:null,defaultMotions:Ne?ne:null,activeKey:lt,onActive:ft,onInactive:dt,selectedKeys:vt,inlineIndent:ee,subMenuOpenDelay:A,subMenuCloseDelay:R,forceSubMenuRender:L,builtinPlacements:ae,triggerSubMenuAction:ie,getPopupContainer:bt,itemIcon:se,expandIcon:ce,onItemClick:gt,onOpenChange:yt},l.createElement(F.Provider,{value:at},Et),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(M.Provider,{value:ot},ge))))};Te.Item=V,Te.SubMenu=oe,Te.ItemGroup=Oe,Te.Divider=Pe;var Me=Te},60444: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(29439),a=n(71002),s=n(67294),c=n(34203),l=n(42550),u=n(94184),f=n.n(u),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 m=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:{}),v={};if((0,d.Z)()){var h=document.createElement("div");v=h.style}var g={};function y(e){if(g[e])return g[e];var t=m[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]}(),l=(0,o.Z)(c,2),u=l[0],f=l[1];return F((function(){if(i!==S&&i!==j){var e=L.indexOf(i),n=L[e+1],r=t(i);false===r?a(n):u((function(e){function t(){e.isCanceled()||a(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,i]),s.useEffect((function(){return function(){f()}}),[]),[function(){a(T)},i]};function z(e,t,n,a){var c=a.motionEnter,l=void 0===c||c,u=a.motionAppear,f=void 0===u||u,d=a.motionLeave,p=void 0===d||d,m=a.motionDeadline,v=a.motionLeaveImmediately,h=a.onAppearPrepare,g=a.onEnterPrepare,y=a.onLeavePrepare,b=a.onAppearStart,w=a.onEnterStart,x=a.onLeaveStart,C=a.onAppearActive,S=a.onEnterActive,j=a.onLeaveActive,I=a.onAppearEnd,L=a.onEnterEnd,z=a.onLeaveEnd,V=a.onVisibleChanged,H=R(),B=(0,o.Z)(H,2),U=B[0],q=B[1],W=R(k),$=(0,o.Z)(W,2),K=$[0],G=$[1],Y=R(null),X=(0,o.Z)(Y,2),Q=X[0],J=X[1],ee=(0,s.useRef)(!1),te=(0,s.useRef)(null),ne=(0,s.useRef)(!1),re=(0,s.useRef)(null);function ie(){return n()||re.current}var oe=(0,s.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===O&&oe.current?t=null===L||void 0===L?void 0:L(n,e):K===P&&oe.current&&(t=null===z||void 0===z?void 0:z(n,e)),!1===t||ne.current||(G(k),J(null)))}var se=function(e){var t=(0,s.useRef)(),n=(0,s.useRef)(e);n.current=e;var r=s.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(Z,r),e.removeEventListener(E,r))}return s.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(Z,r),e.addEventListener(E,r),t.current=e)},i]}(ae),ce=(0,o.Z)(se,1)[0],le=s.useMemo((function(){var e,t,n;switch(K){case"appear":return e={},(0,r.Z)(e,T,h),(0,r.Z)(e,M,b),(0,r.Z)(e,A,C),e;case"enter":return t={},(0,r.Z)(t,T,g),(0,r.Z)(t,M,w),(0,r.Z)(t,A,S),t;case"leave":return n={},(0,r.Z)(n,T,y),(0,r.Z)(n,M,x),(0,r.Z)(n,A,j),n;default:return{}}}),[K]),ue=D(K,(function(e){if(e===T){var t=le.prepare;return!!t&&t(ie())}var n;pe in le&&J((null===(n=le[pe])||void 0===n?void 0:n.call(le,ie(),null))||null);return pe===A&&(ce(ie()),m>0&&(clearTimeout(te.current),te.current=setTimeout((function(){ae({deadline:!0})}),m))),true})),fe=(0,o.Z)(ue,2),de=fe[0],pe=fe[1],me=_(pe);oe.current=me,F((function(){q(t);var n,r=ee.current;(ee.current=!0,e)&&(!r&&t&&f&&(n=N),r&&t&&l&&(n=O),(r&&!t&&p||!r&&v&&!t&&p)&&(n=P),n&&(G(n),de()))}),[t]),(0,s.useEffect)((function(){(K===N&&!f||K===O&&!l||K===P&&!p)&&G(k)}),[f,l,p]),(0,s.useEffect)((function(){return function(){clearTimeout(te.current),ne.current=!0}}),[]),(0,s.useEffect)((function(){void 0!==U&&K===k&&(null===V||void 0===V||V(U))}),[U,K]);var ve=Q;return le.prepare&&pe===M&&(ve=(0,i.Z)({transition:"none"},ve)),[K,pe,ve,null!==U&&void 0!==U?U:t]}var V=n(15671),H=n(43144),B=n(60136),U=n(31129),q=function(e){(0,B.Z)(n,e);var t=(0,U.Z)(n);function n(){return(0,V.Z)(this,n),t.apply(this,arguments)}return(0,H.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);var W=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var u=s.forwardRef((function(e,t){var a=e.visible,u=void 0===a||a,d=e.removeOnLeave,p=void 0===d||d,m=e.forceRender,v=e.children,h=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),w=(0,s.useRef)(),x=(0,s.useRef)();var E=z(b,u,(function(){try{return(0,c.Z)(w.current||x.current)}catch(e){return null}}),e),Z=(0,o.Z)(E,4),N=Z[0],O=Z[1],P=Z[2],S=Z[3],A=s.useRef(S);S&&(A.current=!0);var j=(0,s.useRef)(t);j.current=t;var R,F=s.useCallback((function(e){w.current=e,(0,l.mH)(j.current,e)}),[]),I=(0,i.Z)((0,i.Z)({},y),{},{visible:u});if(v)if(N!==k&&n(e)){var L,D;O===T?D="prepare":_(O)?D="active":O===M&&(D="start"),R=v((0,i.Z)((0,i.Z)({},I),{},{className:f()(C(h,N),(L={},(0,r.Z)(L,C(h,"".concat(N,"-").concat(D)),D),(0,r.Z)(L,h,"string"===typeof h),L)),style:P}),F)}else R=S?v((0,i.Z)({},I),F):!p&&A.current?v((0,i.Z)((0,i.Z)({},I),{},{className:g}),F):m?v((0,i.Z)((0,i.Z)({},I),{},{style:{display:"none"}}),F):null;else R=null;return s.createElement(q,{ref:x},R)}));return u.displayName="CSSMotion",u}(x),$=n(87462),K=n(44925),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),s=ee(t);a.forEach((function(e){for(var t=!1,a=r;a1}));return l.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,U.Z)(r);function r(){var e;return(0,V.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,c=(0,K.Z)(r,["component","children","onVisibleChanged"]),l=i||s.Fragment,u={};return ne.forEach((function(e){u[e]=c[e],delete c[e]})),delete c.keys,s.createElement(l,c,n.map((function(n){var r=n.status,i=(0,K.Z)(n,["status"]),c=r===G||r===Y;return s.createElement(t,(0,$.Z)({},u,{key:i.key,visible:c,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}(s.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),s=n(60136),c=n(31129),l=n(67294),u=n(73935),f=n(94184),d=n.n(f),p=function(e){(0,s.Z)(n,e);var t=(0,c.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=s[0].notice.key,i.updateMark=b(),i.userPassKey=r,s.shift()),s.push({notice:i,holderCallback:n})),{notices:s}}))},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,s.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,s=n.closeIcon,c=n.style,l=[];return t.forEach((function(n,i){var a=n.notice,c=n.holderCallback,u=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:s},a),a.props),{},{key:f,noticeKey:d||f,updateMark:u,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});l.push(f),e.noticePropsMap[f]={props:p,holderCallback:c}})),u.createElement("div",{className:p()(r,a),style:c},u.createElement(m.V,{keys:l,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,s=t.style,c=t.visible,l=e.noticePropsMap[n],f=l.props,d=l.holderCallback;return d?u.createElement("div",{key:n,className:p()(a,"".concat(r,"-hook-holder")),style:(0,o.Z)({},s),ref:function(t){"undefined"!==typeof n&&(t?(e.hookRefs.set(n,t),d(t,f)):e.hookRefs.delete(n))}}):u.createElement(v.Z,(0,i.Z)({},f,{className:p()(a,null===f||void 0===f?void 0:f.className),style:(0,o.Z)((0,o.Z)({},s),null===f||void 0===f?void 0:f.style),visible:c}))})))}}]),n}(u.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"]),s=document.createElement("div");o?o().appendChild(s):document.body.appendChild(s);var c=!1;f.render(u.createElement(w,(0,i.Z)({},a,{ref:function(e){c||(c=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){f.unmountComponentAtNode(s),s.parentNode&&s.parentNode.removeChild(s)},useNotification:function(){return(0,h.Z)(e)}}))}})),s)};var x=w},51550:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(93433),i=n(87462),o=n(29439),a=n(67294),s=n(51784);function c(e){var t=a.useRef({}),n=a.useState([]),c=(0,o.Z)(n,2),l=c[0],u=c[1];return[function(n){var o=!0;e.add(n,(function(e,n){var c=n.key;if(e&&(!t.current[c]||o)){var l=a.createElement(s.Z,(0,i.Z)({},n,{holder:e}));t.current[c]=l,u((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat((0,r.Z)(e),[l]);var i=(0,r.Z)(e);return i[t]=l,i}))}o=!1}))},a.createElement(a.Fragment,null,l)]}},19214:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(87462),i=n(1413),o=n(29439),a=n(44925),s=n(67294),c=n(94184),l=n.n(c),u=n(4084),f=void 0;function d(e,t){var n=e.prefixCls,o=e.invalidate,c=e.item,d=e.renderItem,p=e.responsive,m=e.registerSize,v=e.itemKey,h=e.className,g=e.style,y=e.children,b=e.display,w=e.order,x=e.component,E=void 0===x?"div":x,Z=(0,a.Z)(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),C=p&&!b;function k(e){m(v,e)}s.useEffect((function(){return function(){k(null)}}),[]);var N,O=d&&c!==f?d(c):y;o||(N={opacity:C?0:1,height:C?0:f,overflowY:C?"hidden":f,order:p?w:f,pointerEvents:C?"none":f,position:C?"absolute":f});var P={};C&&(P["aria-hidden"]=!0);var S=s.createElement(E,(0,r.Z)({className:l()(!o&&n,h),style:(0,i.Z)((0,i.Z)({},N),g)},P,Z,{ref:t}),O);return p&&(S=s.createElement(u.default,{onResize:function(e){k(e.offsetWidth)}},S)),S}var p=s.forwardRef(d);p.displayName="Item";var m=p,v=n(75164);var h=function(e,t){var n=s.useContext(b);if(!n){var i=e.component,o=void 0===i?"div":i,c=(0,a.Z)(e,["component"]);return s.createElement(o,(0,r.Z)({},c,{ref:t}))}var u=n.className,f=(0,a.Z)(n,["className"]),d=e.className,p=(0,a.Z)(e,["className"]);return s.createElement(b.Provider,{value:null},s.createElement(m,(0,r.Z)({ref:t,className:l()(u,d)},f,p)))},g=s.forwardRef(h);g.displayName="RawItem";var y=g,b=s.createContext(null),w="responsive",x="invalidate";function E(e){return"+ ".concat(e.length," ...")}function Z(e,t){var n=e.prefixCls,c=void 0===n?"rc-overflow":n,f=e.data,d=void 0===f?[]:f,p=e.renderItem,h=e.renderRawItem,g=e.itemKey,y=e.itemWidth,Z=void 0===y?10:y,C=e.ssr,k=e.style,N=e.className,O=e.maxCount,P=e.renderRest,S=e.renderRawRest,T=e.suffix,M=e.component,A=void 0===M?"div":M,j=e.itemComponent,R=e.onVisibleChange,F=(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,s.useState)({}),t=(0,o.Z)(e,2)[1],n=(0,s.useRef)([]),r=(0,s.useRef)(!1),i=0,a=0;return(0,s.useEffect)((function(){return function(){r.current=!0}}),[]),function(e){var o=i;return i+=1,n.current.lengthO,Ze=(0,s.useMemo)((function(){var e=d;return we?e=null===z&&L?d:d.slice(0,Math.min(d.length,H/Z)):"number"===typeof O&&(e=d.slice(0,O)),e}),[d,Z,z,O,we]),Ce=(0,s.useMemo)((function(){return we?d.slice(pe+1):d.slice(Ze.length)}),[d,Ze,we,pe]),ke=(0,s.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,s.useCallback)(p||function(e){return e},[p]);function Oe(e,t){de(e),t||(ge(eH){Oe(r-1),ce(e-i-re+J);break}}T&&Se(0)+re>H&&ce(null)}}),[H,q,J,re,ke,Ze]);var Te=he&&!!Ce.length,Me={};null!==se&&we&&(Me={position:"absolute",left:se,top:0});var Ae,je={prefixCls:ye,responsive:we,component:j,invalidate:xe},Re=h?function(e,t){var n=ke(e,t);return s.createElement(b.Provider,{key:n,value:(0,i.Z)((0,i.Z)({},je),{},{order:t,item:e,itemKey:n,registerSize:Pe,display:t<=pe})},h(e,t))}:function(e,t){var n=ke(e,t);return s.createElement(m,(0,r.Z)({},je,{order:t,key:n,item:e,renderItem:Ne,itemKey:n,registerSize:Pe,display:t<=pe}))},Fe={order:Te?pe:Number.MAX_SAFE_INTEGER,className:"".concat(ye,"-rest"),registerSize:function(e,t){ee(t),Y(J)},display:Te};if(S)S&&(Ae=s.createElement(b.Provider,{value:(0,i.Z)((0,i.Z)({},je),Fe)},S(Ce)));else{var Ie=P||E;Ae=s.createElement(m,(0,r.Z)({},je,Fe),"function"===typeof Ie?Ie(Ce):Ie)}var Le=s.createElement(A,(0,r.Z)({className:l()(!xe&&c,N),style:k,ref:t},F),Ze.map(Re),Ee?Ae:null,T&&s.createElement(m,(0,r.Z)({},je,{order:pe,className:"".concat(ye,"-suffix"),registerSize:function(e,t){ie(t)},display:!0,style:Me}),T));return we&&(Le=s.createElement(u.default,{onResize:function(e,t){V(t.clientWidth)}},Le)),Le}var C=s.forwardRef(Z);C.displayName="Overflow",C.Item=y,C.RESPONSIVE=w,C.INVALIDATE=x;var k=C},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"}},4084:function(e,t,n){"use strict";n.r(t);var r=n(1413),i=n(15671),o=n(43144),a=n(60136),s=n(31129),c=n(67294),l=n(34203),u=n(50344),f=n(80334),d=n(42550),p=n(91033),m=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,i.Z)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,i=t[0].target,o=i.getBoundingClientRect(),a=o.width,s=o.height,c=i.offsetWidth,l=i.offsetHeight,u=Math.floor(a),f=Math.floor(s);if(e.state.width!==u||e.state.height!==f||e.state.offsetWidth!==c||e.state.offsetHeight!==l){var d={width:u,height:f,offsetWidth:c,offsetHeight:l};e.setState(d),n&&Promise.resolve().then((function(){n((0,r.Z)((0,r.Z)({},d),{},{offsetWidth:c,offsetHeight:l}),i)}))}},e.setChildNode=function(t){e.childNode=t},e}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=(0,l.Z)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new p.Z(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=(0,u.Z)(e);if(t.length>1)(0,f.ZP)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return(0,f.ZP)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(c.isValidElement(n)&&(0,d.Yr)(n)){var r=n.ref;t[0]=c.cloneElement(n,{ref:(0,d.sQ)(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!c.isValidElement(e)||"key"in e&&null!==e.key?e:c.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(c.Component);m.displayName="ResizeObserver",t.default=m},34084: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),s=n(43144),c=n(60136),l=n(31129),u=n(67294),f=n(1413),d=n(4942),p=n(4084),m=n(98423),v=n(94184),h=n.n(v),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")),s=y.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(b[n]=c),c}!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(i||(i={}));var x=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(e){var s;return(0,a.Z)(this,n),(s=t.call(this,e)).saveTextArea=function(e){s.textArea=e},s.handleResize=function(e){var t=s.state.resizeStatus,n=s.props,r=n.autoSize,o=n.onResize;t===i.NONE&&("function"===typeof o&&o(e),r&&s.resizeOnNextFrame())},s.resizeOnNextFrame=function(){cancelAnimationFrame(s.nextFrameActionId),s.nextFrameActionId=requestAnimationFrame(s.resizeTextarea)},s.resizeTextarea=function(){var e=s.props.autoSize;if(e&&s.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,s=o.borderSize,c=o.boxSizing,l=o.sizingStyle;r.setAttribute("style","".concat(l,";").concat(g)),r.value=e.value||e.placeholder||"";var u,f=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,p=r.scrollHeight;if("border-box"===c?p+=s:"content-box"===c&&(p-=a),null!==n||null!==i){r.value=" ";var m=r.scrollHeight-a;null!==n&&(f=m*n,"border-box"===c&&(f=f+a+s),p=Math.max(f,p)),null!==i&&(d=m*i,"border-box"===c&&(d=d+a+s),u=p>d?"":"hidden",p=Math.min(d,p))}return{height:p,minHeight:f,maxHeight:d,overflowY:u,resize:"none"}}(s.textArea,!1,t,n);s.setState({textareaStyles:o,resizeStatus:i.RESIZING},(function(){cancelAnimationFrame(s.resizeFrameId),s.resizeFrameId=requestAnimationFrame((function(){s.setState({resizeStatus:i.RESIZED},(function(){s.resizeFrameId=requestAnimationFrame((function(){s.setState({resizeStatus:i.NONE}),s.fixFirefoxAutoScroll()}))}))}))}))}},s.renderTextArea=function(){var e=s.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,a=e.onResize,c=e.className,l=e.disabled,v=s.state,g=v.textareaStyles,y=v.resizeStatus,b=(0,m.Z)(s.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),w=h()(n,c,(0,d.Z)({},"".concat(n,"-disabled"),l));"value"in b&&(b.value=b.value||"");var x=(0,f.Z)((0,f.Z)((0,f.Z)({},s.props.style),g),y===i.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return u.createElement(p.default,{onResize:s.handleResize,disabled:!(r||a)},u.createElement("textarea",(0,o.Z)({},b,{className:w,style:x,ref:s.saveTextArea})))},s.state={textareaStyles:{},resizeStatus:i.NONE},s}return(0,s.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}(u.Component),E=function(e){(0,c.Z)(n,e);var t=(0,l.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,s.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 u.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}(u.Component)},51472: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(44925),s=n(67294),c=n(18481),l=n(43159),u=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle;return s.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,m=void 0===p?0:p,v=e.mouseLeaveDelay,h=void 0===v?.1:v,g=e.overlayStyle,y=e.prefixCls,b=void 0===y?"rc-tooltip":y,w=e.children,x=e.onVisibleChange,E=e.afterVisibleChange,Z=e.transitionName,C=e.animation,k=e.motion,N=e.placement,O=void 0===N?"right":N,P=e.align,S=void 0===P?{}:P,T=e.destroyTooltipOnHide,M=void 0!==T&&T,A=e.defaultVisible,j=e.getTooltipContainer,R=e.overlayInnerStyle,F=(0,a.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),I=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,(function(){return I.current}));var L=(0,o.Z)({},F);"visible"in e&&(L.popupVisible=e.visible);var _=!1,D=!1;if("boolean"===typeof M)_=M;else if(M&&"object"===(0,i.Z)(M)){var z=M.keepParent;_=!0===z,D=!1===z}return s.createElement(c.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[s.createElement("div",{className:"".concat(b,"-arrow"),key:"arrow"},n),s.createElement(u,{key:"content",prefixCls:b,id:i,overlay:r,overlayInnerStyle:R})]},action:d,builtinPlacements:l.C,popupPlacement:O,ref:I,popupAlign:S,getPopupContainer:j,onPopupVisibleChange:x,afterPopupVisibleChange:E,popupTransitionName:Z,popupAnimation:C,popupMotion:k,defaultPopupVisible:A,destroyPopupOnHide:_,autoDestroy:D,mouseLeaveDelay:h,popupStyle:g,mouseEnterDelay:m},L),w)},d=(0,s.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}}},18481: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),s=n(97326),c=n(60136),l=n(31129),u=n(67294),f=n(73935),d=n(75164),p=n(94999),m=n(34203),v=n(42550),h=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(29439),E=n(44925),Z=n(31131),C=n(60444);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,s=e.maskMotion,c=e.maskAnimation,l=e.maskTransitionName;if(!a)return null;var f={};return(s||l||c)&&(f=(0,r.Z)({motionAppear:!0},k({motion:s,prefixCls:t,transitionName:l,animation:c}))),u.createElement(C.Z,(0,i.Z)({},f,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return u.createElement("div",{style:{zIndex:o},className:b()("".concat(t,"-mask"),n)})}))}var O,P=n(71002),S=n(5110);function T(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 M(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,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function we(e,t,n,r,i){var o=be(t,n[1]),a=be(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function xe(e,t,n){return e.leftn.right}function Ee(e,t,n){return e.topn.bottom}function Ze(e,t,n){var r=[];return pe.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ce(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 Oe(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,c=n.source||e;o=[].concat(o),a=[].concat(a);var l={},u=0,f=ge(c,!(!(s=s||{})||!s.alwaysByViewport)),d=ye(c);Ne(o,d),Ne(a,t);var p=we(d,t,i,o,a),m=pe.merge(d,p);if(f&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&xe(p,d,f)){var v=Ze(i,/[lr]/gi,{l:"r",r:"l"}),h=Ce(o,0),g=Ce(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,l))}return m.width!==d.width&&pe.css(c,"width",pe.width(c)+m.width-d.width),m.height!==d.height&&pe.css(c,"height",pe.height(c)+m.height-d.height),pe.offset(c,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:l}}function Pe(e,t,n){var r=n.target||t;return Oe(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))}Pe.__getOffsetParent=ve,Pe.__getVisibleRectForElement=ge;var Se=n(91033);function Te(e,t){var n=null,r=null;var i=new Se.Z((function(e){var i=(0,x.Z)(e,1)[0].target;if(document.documentElement.contains(i)){var o=i.getBoundingClientRect(),a=o.width,s=o.height,c=Math.floor(a),l=Math.floor(s);n===c&&r===l||Promise.resolve().then((function(){t({width:c,height:l})})),n=c,r=l}}));return e&&i.observe(e),function(){i.disconnect()}}function Me(e){return"function"!==typeof e?null:e()}function Ae(e){return"object"===(0,P.Z)(e)&&e?e:null}var je=u.forwardRef((function(e,t){var n=e.children,r=e.disabled,i=e.target,o=e.align,a=e.onAlign,s=e.monitorWindowResize,c=e.monitorBufferTime,l=void 0===c?0:c,f=u.useRef({}),d=u.useRef(),m=u.Children.only(n),g=u.useRef({});g.current.disabled=r,g.current.target=i,g.current.onAlign=a;var y=function(e,t){var n=u.useRef(!1),r=u.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,s=Me(n),c=Ae(n);f.current.element=s,f.current.point=c;var l=document.activeElement;return s&&(0,S.Z)(s)?i=Pe(a,s,o):c&&(i=function(e,t,n){var r,i,o=pe.getDocument(e),a=o.defaultView||o.parentWindow,s=pe.getWindowScrollLeft(a),c=pe.getWindowScrollTop(a),l=pe.viewportWidth(a),u=pe.viewportHeight(a),f={left:r="pageX"in t?t.pageX:s+t.clientX,top:i="pageY"in t?t.pageY:c+t.clientY,width:0,height:0},d=r>=0&&r<=s+l&&i>=0&&i<=c+u,p=[n.points[0],"cc"];return Oe(e,f,M(M({},n),{},{points:p}),d)}(a,c,o)),function(e,t){e!==document.activeElement&&(0,p.Z)(t,e)&&"function"===typeof e.focus&&e.focus()}(l,a),r&&i&&r(a,i),!0}return!1}),l),b=(0,x.Z)(y,2),w=b[0],E=b[1],Z=u.useRef({cancel:function(){}}),C=u.useRef({cancel:function(){}});u.useEffect((function(){var e,t,n=Me(i),r=Ae(i);d.current!==C.current.element&&(C.current.cancel(),C.current.element=d.current,C.current.cancel=Te(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(),Z.current.element!==n&&(Z.current.cancel(),Z.current.element=n,Z.current.cancel=Te(n,w)))})),u.useEffect((function(){r?E():w()}),[r]);var k=u.useRef(null);return u.useEffect((function(){s?k.current||(k.current=(0,h.Z)(window,"resize",w)):k.current&&(k.current.remove(),k.current=null)}),[s]),u.useEffect((function(){return function(){Z.current.cancel(),C.current.cancel(),k.current&&k.current.remove(),E()}}),[]),u.useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),u.isValidElement(m)&&(m=u.cloneElement(m,{ref:(0,v.sQ)(m.ref,d)})),m}));je.displayName="Align";var Re=je,Fe=n(87757),Ie=n.n(Fe),Le=n(15861),_e=["measure","align",null,"motion"],De=u.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,a=e.className,s=e.style,c=e.children,l=e.zIndex,f=e.stretch,p=e.destroyPopupOnHide,m=e.forceRender,v=e.align,h=e.point,g=e.getRootDomNode,y=e.getClassNameFromAlign,w=e.onAlign,E=e.onMouseEnter,Z=e.onMouseLeave,N=e.onMouseDown,O=e.onTouchStart,P=(0,u.useRef)(),S=(0,u.useRef)(),T=(0,u.useState)(),M=(0,x.Z)(T,2),A=M[0],j=M[1],R=function(e){var t=u.useState({width:0,height:0}),n=(0,x.Z)(t,2),r=n[0],i=n[1];return[u.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),F=(0,x.Z)(R,2),I=F[0],L=F[1];var _=function(e,t){var n=(0,u.useState)(null),r=(0,x.Z)(n,2),i=r[0],o=r[1],a=(0,u.useRef)(),s=(0,u.useRef)(!1);function c(e){s.current||o(e)}function l(){d.Z.cancel(a.current)}return(0,u.useEffect)((function(){c("measure")}),[e]),(0,u.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&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),(0,u.useEffect)((function(){return function(){s.current=!0,l()}}),[]),[i,function(e){l(),a.current=(0,d.Z)((function(){c((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),z=D[0],V=D[1],H=(0,u.useRef)();function B(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function U(e,t){var n=y(t);A!==n&&j(n),"align"===z&&(A!==n?Promise.resolve().then((function(){B()})):V((function(){var e;null===(e=H.current)||void 0===e||e.call(H)})),null===w||void 0===w||w(e,t))}var q=(0,r.Z)({},k(e));function W(){return new Promise((function(e){H.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=q[e];q[e]=function(e,n){return V(),null===t||void 0===t?void 0:t(e,n)}})),u.useEffect((function(){q.motionName||"motion"!==z||V()}),[q.motionName,z]),u.useImperativeHandle(t,(function(){return{forceAlign:B,getElement:function(){return S.current}}}));var $=(0,r.Z)((0,r.Z)({},I),{},{zIndex:l,opacity:"motion"!==z&&"stable"!==z&&n?0:void 0,pointerEvents:"stable"===z?void 0:"none"},s),K=!0;!(null===v||void 0===v?void 0:v.points)||"align"!==z&&"stable"!==z||(K=!1);var G=c;return u.Children.count(c)>1&&(G=u.createElement("div",{className:"".concat(o,"-content")},c)),u.createElement(C.Z,(0,i.Z)({visible:n,ref:S,leavedClassName:"".concat(o,"-hidden")},q,{onAppearPrepare:W,onEnterPrepare:W,removeOnLeave:p,forceRender:m}),(function(e,t){var n=e.className,i=e.style,s=b()(o,a,A,n);return u.createElement(Re,{target:h||g,key:"popup",ref:P,monitorWindowResize:!0,disabled:K,align:v,onAlign:U},u.createElement("div",{ref:t,className:s,onMouseEnter:E,onMouseLeave:Z,onMouseDownCapture:N,onTouchStartCapture:O,style:(0,r.Z)((0,r.Z)({},i),$)},G))}))}));De.displayName="PopupInner";var ze=De,Ve=u.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,a=e.zIndex,s=e.children,c=e.mobile,l=(c=void 0===c?{}:c).popupClassName,f=c.popupStyle,d=c.popupMotion,p=void 0===d?{}:d,m=c.popupRender,v=u.useRef();u.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var h=(0,r.Z)({zIndex:a},f),g=s;return u.Children.count(s)>1&&(g=u.createElement("div",{className:"".concat(n,"-content")},s)),m&&(g=m(g)),u.createElement(C.Z,(0,i.Z)({visible:o,ref:v,removeOnLeave:!0},p),(function(e,t){var i=e.className,o=e.style,a=b()(n,l,i);return u.createElement("div",{ref:t,className:a,style:(0,r.Z)((0,r.Z)({},o),h)},g)}))}));Ve.displayName="MobilePopupInner";var He=Ve,Be=["visible","mobile"],Ue=u.forwardRef((function(e,t){var n=e.visible,o=e.mobile,a=(0,E.Z)(e,Be),s=(0,u.useState)(n),c=(0,x.Z)(s,2),l=c[0],f=c[1],d=(0,u.useState)(!1),p=(0,x.Z)(d,2),m=p[0],v=p[1],h=(0,r.Z)((0,r.Z)({},a),{},{visible:l});(0,u.useEffect)((function(){f(n),n&&o&&v((0,Z.Z)())}),[n,o]);var g=m?u.createElement(He,(0,i.Z)({},h,{mobile:o,ref:t})):u.createElement(ze,(0,i.Z)({},h,{ref:t}));return u.createElement("div",null,u.createElement(N,h),g)}));Ue.displayName="Popup";var qe=Ue,We=u.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,c.Z)(g,t);var n=(0,l.Z)(g);function g(e){var t,r;return(0,o.Z)(this,g),(t=n.call(this,e)).popupRef=u.createRef(),t.triggerRef=u.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,m.Z)(t.triggerRef.current);if(n)return n}catch(r){}return f.findDOMNode((0,s.Z)(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,i=r.popupPlacement,o=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,c=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 c}});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 s=o(n),c=s.firstChild;return n.prepend&&s.prepend?s.prepend(a):n.prepend&&c?s.insertBefore(a,c):s.appendChild(a),a}var s=new Map;function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(n);if(!s.has(r)){var c=a("",n),l=c.parentNode;s.set(r,l),l.removeChild(c)}var u=Array.from(s.get(r).children).find((function(e){return"STYLE"===e.tagName&&e[i]===t}));if(u){var f,d,p;if((null===(f=n.csp)||void 0===f?void 0:f.nonce)&&u.nonce!==(null===(d=n.csp)||void 0===d?void 0:d.nonce))u.nonce=null===(p=n.csp)||void 0===p?void 0:p.nonce;return u.innerHTML!==e&&(u.innerHTML=e),u}var m=a(e,n);return m[i]=t,m}},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}},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,s=e.children,c=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,o.Z)()&&(c.current=a(),l.current=!0),(0,r.useEffect)((function(){null===n||void 0===n||n(e)})),(0,r.useEffect)((function(){return function(){var e,t;null===(e=c.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(c.current)}}),[]),c.current?i.createPortal(s,c.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(29439),i=n(67294);function o(e,t){var n=t||{},o=n.defaultValue,a=n.value,s=n.onChange,c=n.postState,l=i.useState((function(){return void 0!==a?a:void 0!==o?"function"===typeof o?o():o:"function"===typeof e?e():e})),u=(0,r.Z)(l,2),f=u[0],d=u[1],p=void 0!==a?a:f;c&&(p=c(p));var m=i.useRef(!0);return i.useEffect((function(){m.current?m.current=!1:void 0===a&&d(a)}),[a]),[p,function(e){d(e),p!==e&&s&&s(e,p)}]}},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 c}});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 s(e){a.delete(e)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=o+=1;function i(t){if(0===t)s(n),e();else{var o=r((function(){i(t-1)}));a.set(n,o)}}return i(t),n}c.cancel=function(e){var t=a.get(e);return s(t),i(t)}},42550:function(e,t,n){"use strict";n.d(t,{mH:function(){return o},sQ:function(){return a},Yr:function(){return s}});var r=n(71002),i=n(59864);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;n0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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;s.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}(),u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),E="undefined"!==typeof WeakMap?new WeakMap:new r,Z=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=l.getInstance(),r=new x(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Z.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var C="undefined"!==typeof o.ResizeObserver?o.ResizeObserver:Z;t.Z=C},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 s=Object.prototype.hasOwnProperty.bind(t),c=0;c0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):o:this[s[0]]=u?s[1].call(this,u,s[2]):o:4==s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):o):this[s]=u||o;f+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r255?E.trim(e,255):e,this},this.setUA(n),this};N.VERSION="0.7.28",N.BROWSER={NAME:f,MAJOR:"major",VERSION:m},N.CPU={ARCHITECTURE:v},N.DEVICE={MODEL:u,VENDOR:p,TYPE:d,CONSOLE:h,MOBILE:g,SMARTTV:b,TABLET:y,WEARABLE:w,EMBEDDED:x},N.ENGINE={NAME:f,VERSION:m},N.OS={NAME:f,VERSION:m},typeof t!==s?(e.exports&&(t=e.exports=N),t.UAParser=N):(r=function(){return N}.call(t,n,t,e))===o||(e.exports=r);var O="undefined"!==typeof i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var P=new N;O.ua=P.getResult(),O.ua.get=function(){return P.getUA()},O.ua.set=function(e){P.setUA(e);var t=P.getResult();for(var n in t)O.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}})},29439: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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==n.return||n.return()}finally{if(s)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 s}});var r=n(83878),i=n(59199),o=n(40181),a=n(25267);function s(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},93433: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(34651)}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{9321:function(e,t,n){"use strict";function r(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function i(e){return e<=1?100*Number(e)+"%":e}function o(e){return 1===e.length?"0"+e:String(e)}function a(e,t,n){return n<0&&(n+=1),n>1&&(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){return s(e)/255}function s(e){return parseInt(e,16)}n.r(t),n.d(t,{blue:function(){return F},cyan:function(){return R},geekblue:function(){return I},generate:function(){return E},gold:function(){return S},green:function(){return j},grey:function(){return D},lime:function(){return A},magenta:function(){return _},orange:function(){return T},presetDarkPalettes:function(){return N},presetPalettes:function(){return k},presetPrimaryColors:function(){return C},purple:function(){return L},red:function(){return O},volcano:function(){return P},yellow:function(){return M}});var l={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"};function u(e){var t,n,o,u={r:0,g:0,b:0},f=1,d=null,p=null,h=null,g=!1,y=!1;return"string"===typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(l[e])e=l[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=m.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=m.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=m.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=m.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=m.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=m.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=m.hex8.exec(e))return{r:s(n[1]),g:s(n[2]),b:s(n[3]),a:c(n[4]),format:t?"name":"hex8"};if(n=m.hex6.exec(e))return{r:s(n[1]),g:s(n[2]),b:s(n[3]),format:t?"name":"hex"};if(n=m.hex4.exec(e))return{r:s(n[1]+n[1]),g:s(n[2]+n[2]),b:s(n[3]+n[3]),a:c(n[4]+n[4]),format:t?"name":"hex8"};if(n=m.hex3.exec(e))return{r:s(n[1]+n[1]),g:s(n[2]+n[2]),b:s(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(v(e.r)&&v(e.g)&&v(e.b)?(t=e.r,n=e.g,o=e.b,u={r:255*r(t,255),g:255*r(n,255),b:255*r(o,255)},g=!0,y="%"===String(e.r).substr(-1)?"prgb":"rgb"):v(e.h)&&v(e.s)&&v(e.v)?(d=i(e.s),p=i(e.v),u=function(e,t,n){e=6*r(e,360),t=r(t,100),n=r(n,100);var i=Math.floor(e),o=e-i,a=n*(1-t),c=n*(1-o*t),s=n*(1-(1-o)*t),l=i%6;return{r:255*[n,c,a,a,s,n][l],g:255*[s,n,n,c,a,a][l],b:255*[a,a,s,n,n,c][l]}}(e.h,d,p),g=!0,y="hsv"):v(e.h)&&v(e.s)&&v(e.l)&&(d=i(e.s),h=i(e.l),u=function(e,t,n){var i,o,c;if(e=r(e,360),t=r(t,100),n=r(n,100),0===t)o=n,c=n,i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=a(l,s,e+1/3),o=a(l,s,e),c=a(l,s,e-1/3)}return{r:255*i,g:255*o,b:255*c}}(e.h,d,h),g=!0,y="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(f=e.a)),f=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(f),{ok:g,format:e.format||y,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var f="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",d="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",p="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",m={CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+p),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+p),hsv:new RegExp("hsv"+d),hsva:new RegExp("hsva"+p),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 v(e){return Boolean(m.CSS_UNIT.exec(String(e)))}var h=[{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 g(e){var t=function(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,c=i,s=i-o,l=0===i?0:s/i;if(i===o)a=0;else{switch(i){case e:a=(t-n)/s+(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 x(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 Z(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function E(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=u(e),i=5;i>0;i-=1){var o=g(r),a=y(u({h:w(o,i,!0),s:x(o,i,!0),v:Z(o,i,!0)}));n.push(a)}n.push(y(r));for(var c=1;c<=4;c+=1){var s=g(r),l=y(u({h:w(s,c),s:x(s,c),v:Z(s,c)}));n.push(l)}return"dark"===t.theme?h.map((function(e){var r=e.index,i=e.opacity;return y(b(u(t.backgroundColor||"#141414"),u(n[r]),100*i))})):n}var C={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"},k={},N={};Object.keys(C).forEach((function(e){k[e]=E(C[e]),k[e].primary=k[e][5],N[e]=E(C[e],{theme:"dark",backgroundColor:"#141414"}),N[e].primary=N[e][5]}));var O=k.red,P=k.volcano,S=k.gold,T=k.orange,M=k.yellow,A=k.lime,j=k.green,R=k.cyan,F=k.blue,I=k.geekblue,L=k.purple,_=k.magenta,D=k.grey},30076:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(1413),i=n(29439),o=n(4942),a=n(44925),c=n(67294),s=n(94184),l=n.n(s),u=n(63017),f=n(71002),d=n(9321),p=n(80334),m=n(44958);function v(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 h(){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},h(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},h(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"],Z={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var E=function(e){var t,n,i=e.icon,o=e.className,s=e.onClick,l=e.style,f=e.primaryColor,d=e.secondaryColor,h=(0,a.Z)(e,x),b=Z;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)(u.Z).csp;(0,c.useEffect)((function(){(0,m.h)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=v(i),n="icon should be icon definiton, but got ".concat(i),(0,p.ZP)(t,"[@ant-design/icons] ".concat(n)),!v(i))return null;var E=i;return E&&"function"===typeof E.icon&&(E=(0,r.Z)((0,r.Z)({},E),{},{icon:E.icon(b.primaryColor,b.secondaryColor)})),g(E.icon,"svg-".concat(E.name),(0,r.Z)({className:o,onClick:s,style:l,"data-icon":E.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h))};E.displayName="IconReact",E.getTwoToneColors=function(){return(0,r.Z)({},Z)},E.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Z.primaryColor=t,Z.secondaryColor=n||y(t),Z.calculated=!!n};var C=E;function k(e){var t=b(e),n=(0,i.Z)(t,2),r=n[0],o=n[1];return C.setTwoToneColors({primaryColor:r,secondaryColor:o})}var N=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k("#1890ff");var O=c.forwardRef((function(e,t){var n,s=e.className,f=e.icon,d=e.spin,p=e.rotate,m=e.tabIndex,v=e.onClick,h=e.twoToneColor,g=(0,a.Z)(e,N),y=c.useContext(u.Z).prefixCls,w=void 0===y?"anticon":y,x=l()(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),Z=m;void 0===Z&&v&&(Z=-1);var E=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,k=b(h),O=(0,i.Z)(k,2),P=O[0],S=O[1];return c.createElement("span",(0,r.Z)((0,r.Z)({role:"img","aria-label":f.name},g),{},{ref:t,tabIndex:Z,onClick:v,className:x}),c.createElement(C,{icon:f,primaryColor:P,secondaryColor:S,style:E}))}));O.displayName="AntdIcon",O.getTwoToneColor=function(){var e=C.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},O.setTwoToneColor=k;var P=O},63017:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},38819: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(30076),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)},15873: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(30076),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)},79508: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(30076),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)},43061: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(30076),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)},73218: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(30076),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)},54549: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(30076),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)},99165: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(30076),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)},57254: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(30076),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)},44545: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(30076),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)},68855: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(30076),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)},57119: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(30076),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)},88633: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(30076),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)},95357: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(30076),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)},40847: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(30076),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)},68628: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(30076),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)},67724: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(30076),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)},7085: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(30076),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)},8812: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(30076),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)},76570: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(30076),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)},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)}},31808:function(e,t,n){"use strict";n.d(t,{jD:function(){return o},GL:function(){return a},fk:function(){return c}});var r,i=n(98924),o=function(){return(0,i.Z)()&&window.document.documentElement},a=function(e){if(o()){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},c=function(){if(!o())return!1;if(void 0!==r)return r;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),r=1===e.scrollHeight,document.body.removeChild(e),r}},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)){var c=e.props.insertExtraNode;e.extraNode=document.createElement("div");var s=(0,a.Z)(e).extraNode,l=e.context.getPrefixCls;s.className="".concat(l(""),"-click-animating-node");var f=e.getAttributeName();if(t.setAttribute(f,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&h(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){s.style.borderColor=n;var d=(null===(i=t.getRootNode)||void 0===i?void 0:i.call(t))||t.ownerDocument,p=d instanceof Document?d.body:null!==(o=d.firstChild)&&void 0!==o?o:d;r=(0,u.h)("\n [".concat(l(""),"-click-animating-without-extra-node='true']::after, .").concat(l(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:p})}c&&t.appendChild(s),["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&&!v(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,!l.isValidElement(r))return r;var i=e.containerRef;return(0,f.Yr)(r)&&(i=(0,f.sQ)(r.ref,e.containerRef)),(0,m.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 l.createElement(p.C,null,this.renderWave)}}]),n}(l.Component);g.contextType=p.E_},32413:function(e,t,n){"use strict";n.d(t,{n:function(){return M},Z:function(){return R}});var r=n(87462),i=n(4942),o=n(29439),a=n(71002),c=n(67294),s=n(94184),l=n.n(s),u=n(98423),f=n(65632),d=n(15671),p=function e(t){return(0,d.Z)(this,e),new Error("unreachable case: ".concat(JSON.stringify(t)))},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);i2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(k,"` at https://ant.design/components/icon")),(0,y.Z)(!(M&&S(v)),"Button","`link` or `text` button can't be a `ghost` button.");var ee=$("btn",m),te=!1!==K,ne="";switch(x||L){case"large":ne="lg";break;case"small":ne="sm"}var re=z?"loading":k,ie=l()(ee,(n={},(0,i.Z)(n,"".concat(ee,"-").concat(v),v),(0,i.Z)(n,"".concat(ee,"-").concat(w),w),(0,i.Z)(n,"".concat(ee,"-").concat(ne),ne),(0,i.Z)(n,"".concat(ee,"-icon-only"),!E&&0!==E&&!!re),(0,i.Z)(n,"".concat(ee,"-background-ghost"),M&&!S(v)),(0,i.Z)(n,"".concat(ee,"-loading"),z),(0,i.Z)(n,"".concat(ee,"-two-chinese-chars"),B&&te),(0,i.Z)(n,"".concat(ee,"-block"),j),(0,i.Z)(n,"".concat(ee,"-dangerous"),!!g),(0,i.Z)(n,"".concat(ee,"-rtl"),"rtl"===G),n),Z),oe=k&&!z?k:c.createElement(C,{existIcon:!!k,prefixCls:ee,loading:!!z}),ae=E||0===E?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)}))}(E,Q()&&te):null,ce=(0,u.Z)(I,["navigate"]);if(void 0!==ce.href)return c.createElement("a",(0,r.Z)({},ce,{className:ie,onClick:J,ref:Y}),oe,ae);var se=c.createElement("button",(0,r.Z)({},I,{type:F,className:ie,onClick:J,ref:Y}),oe,ae);return S(v)?se:c.createElement(h.Z,null,se)},j=c.forwardRef(A);j.displayName="Button",j.Group=v,j.__ANT_BUTTON=!0;var R=j},71577:function(e,t,n){"use strict";var r=n(32413);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},65632:function(e,t,n){"use strict";n.d(t,{C:function(){return s},E_:function(){return c},PG:function(){return l}});var r=n(87462),i=n(67294),o=n(14277),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 l(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}}},85631:function(e,t,n){"use strict";n.d(t,{nf:function(){return ve},ZP:function(){return xe},w6:function(){return ye}});var r=n(87462),i=n(67294),o=n(63017),a=n(70686),c=n(56982),s=n(15671),l=n(43144),u=n(60136),f=n(31129),d=n(21687),p=n(83008),m=n(67178),v="internalMark",h=function(e){(0,u.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,p.f)(e.locale&&e.locale.Modal),(0,d.Z)(e._ANT_MARK__===v,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){(0,p.f)(this.props.locale&&this.props.locale.Modal)}},{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&(0,p.f)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){(0,p.f)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children;return i.createElement(m.Z.Provider,{value:(0,r.Z)((0,r.Z)({},t),{exist:!0})},n)}}]),n}(i.Component);h.defaultProps={locale:{}};var g,y=n(42051),b=n(65632),w=n(97647),x=n(4942),Z=n(94184),E=n.n(Z),C=n(98287),k=n(7085),N=n(68855),O=n(43061),P=n(38819),S=n(40847),T=n(29439),M=n(51550);var A,j,R,F=3,I=1,L="",_="move-up",D=!1,z=!1;function V(e,t){var n=e.prefixCls,r=ye(),i=r.getPrefixCls,o=r.getRootPrefixCls,a=i("message",n||L),c=o(e.rootPrefixCls,a);if(g)t({prefixCls:a,rootPrefixCls:c,instance:g});else{var s={prefixCls:a,transitionName:D?_:"".concat(c,"-").concat(_),style:{top:A},getContainer:j,maxCount:R};C.default.newInstance(s,(function(e){g?t({prefixCls:a,rootPrefixCls:c,instance:g}):(g=e,t({prefixCls:a,rootPrefixCls:c,instance:e}))}))}}var H={info:S.Z,success:P.Z,error:O.Z,warning:N.Z,loading:k.Z};function U(e,t){var n,r=void 0!==e.duration?e.duration:F,o=H[e.type],a=E()("".concat(t,"-custom-content"),(n={},(0,x.Z)(n,"".concat(t,"-").concat(e.type),e.type),(0,x.Z)(n,"".concat(t,"-rtl"),!0===z),n));return{key:e.key,duration:r,style:e.style||{},className:e.className,content:i.createElement("div",{className:a},e.icon||o&&i.createElement(o,null),i.createElement("span",null,e.content)),onClose:e.onClose,onClick:e.onClick}}var B={open:function(e){var t=e.key||I++,n=new Promise((function(n){var i=function(){return"function"===typeof e.onClose&&e.onClose(),n(!0)};V(e,(function(n){var o=n.prefixCls;n.instance.notice(U((0,r.Z)((0,r.Z)({},e),{key:t,onClose:i}),o))}))})),i=function(){g&&g.removeNotice(t)};return i.then=function(e,t){return n.then(e,t)},i.promise=n,i},config:function(e){void 0!==e.top&&(A=e.top,g=null),void 0!==e.duration&&(F=e.duration),void 0!==e.prefixCls&&(L=e.prefixCls),void 0!==e.getContainer&&(j=e.getContainer),void 0!==e.transitionName&&(_=e.transitionName,g=null,D=!0),void 0!==e.maxCount&&(R=e.maxCount,g=null),void 0!==e.rtl&&(z=e.rtl)},destroy:function(e){if(g)if(e){(0,g.removeNotice)(e)}else{var t=g.destroy;t(),g=null}}};function q(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 q(B,e)})),B.warn=B.warning,B.useMessage=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,M.Z)(a),s=(0,T.Z)(c,2),l=s[0],u=s[1];var f=i.useRef({});return f.current.open=function(i){var a=i.prefixCls,c=n("message",a),s=n(),u=i.key||I++,f=new Promise((function(n){var a=function(){return"function"===typeof i.onClose&&i.onClose(),n(!0)};e((0,r.Z)((0,r.Z)({},i),{prefixCls:c,rootPrefixCls:s}),(function(e){var n=e.prefixCls,c=e.instance;o=c,l(t((0,r.Z)((0,r.Z)({},i),{key:u,onClose:a}),n))}))})),d=function(){o&&o.removeNotice(u)};return d.then=function(e,t){return f.then(e,t)},d.promise=f,d},["success","info","warning","error","loading"].forEach((function(e){return q(f.current,e)})),[f.current,i.createElement(b.C,{key:"holder"},(function(e){return n=e.getPrefixCls,u}))]}}(V,U);var W=B,$=(n(87757),n(54549)),K=n(15873),G=n(73218),Y=n(57119),X=n(68628);var Q,J,ee={},te=4.5,ne=24,re=24,ie="",oe="topRight",ae=!1;function ce(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:re;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 se(e,t){var n=e.placement,r=void 0===n?oe:n,o=e.top,a=e.bottom,c=e.getContainer,s=void 0===c?Q:c,l=e.closeIcon,u=void 0===l?J:l,f=e.prefixCls,d=(0,ye().getPrefixCls)("notification",f||ie),p="".concat(d,"-").concat(r),m=ee[p];if(m)Promise.resolve(m).then((function(e){t({prefixCls:"".concat(d,"-notice"),instance:e})}));else{var v=i.createElement("span",{className:"".concat(d,"-close-x")},u||i.createElement($.Z,{className:"".concat(d,"-close-icon")})),h=E()("".concat(d,"-").concat(r),(0,x.Z)({},"".concat(d,"-rtl"),!0===ae));ee[p]=new Promise((function(e){C.default.newInstance({prefixCls:d,className:h,style:ce(r,o,a),getContainer:s,closeIcon:v},(function(n){e(n),t({prefixCls:"".concat(d,"-notice"),instance:n})}))}))}}var le={success:K.Z,info:X.Z,error:G.Z,warning:Y.Z};function ue(e,t){var n=e.duration,r=e.icon,o=e.type,a=e.description,c=e.message,s=e.btn,l=e.onClose,u=e.onClick,f=e.key,d=e.style,p=e.className,m=void 0===n?te:n,v=null;r?v=i.createElement("span",{className:"".concat(t,"-icon")},e.icon):o&&(v=i.createElement(le[o]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(o)}));var h=!a&&v?i.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:i.createElement("div",{className:v?"".concat(t,"-with-icon"):"",role:"alert"},v,i.createElement("div",{className:"".concat(t,"-message")},h,c),i.createElement("div",{className:"".concat(t,"-description")},a),s?i.createElement("span",{className:"".concat(t,"-btn")},s):null),duration:m,closable:!0,onClose:l,onClick:u,key:f,style:d||{},className:E()(p,(0,x.Z)({},"".concat(t,"-").concat(o),!!o))}}var fe={open:function(e){se(e,(function(t){var n=t.prefixCls;t.instance.notice(ue(e,n))}))},close:function(e){Object.keys(ee).forEach((function(t){return Promise.resolve(ee[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&&(ie=c),void 0!==t&&(te=t),void 0!==n?oe=n:e.rtl&&(oe="topLeft"),void 0!==r&&(re=r),void 0!==i&&(ne=i),void 0!==o&&(Q=o),void 0!==a&&(J=a),void 0!==e.rtl&&(ae=e.rtl)},destroy:function(){Object.keys(ee).forEach((function(e){Promise.resolve(ee[e]).then((function(e){e.destroy()})),delete ee[e]}))}};["success","info","warning","error"].forEach((function(e){fe[e]=function(t){return fe.open((0,r.Z)((0,r.Z)({},t),{type:e}))}})),fe.warn=fe.warning,fe.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,M.Z)(a),s=(0,T.Z)(c,2),l=s[0],u=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,l(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(b.C,{key:"holder"},(function(e){return n=e.getPrefixCls,u}))]}}(se,ue);var de,pe=fe,me=n(5767),ve=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"],he=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"];function ge(){return de||"ant"}var ye=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(ge(),"-").concat(e):ge())},getRootPrefixCls:function(e,t){return e||(de||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):ge()))}}},be=function(e){var t,n,s=e.children,l=e.csp,u=e.autoInsertSpaceInButton,f=e.form,d=e.locale,p=e.componentSize,m=e.direction,g=e.space,y=e.virtual,x=e.dropdownMatchSelectWidth,Z=e.legacyLocale,E=e.parentContext,C=e.iconPrefixCls,k=i.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var i=r||E.getPrefixCls("");return t?"".concat(i,"-").concat(t):i}),[E.getPrefixCls,e.prefixCls]),N=(0,r.Z)((0,r.Z)({},E),{csp:l,autoInsertSpaceInButton:u,locale:d||Z,direction:m,space:g,virtual:y,dropdownMatchSelectWidth:x,getPrefixCls:k});he.forEach((function(t){var n=e[t];n&&(N[t]=n)}));var O=(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]}))})),P=i.useMemo((function(){return{prefixCls:C,csp:l}}),[C]),S=s,T={};return d&&(T=(null===(t=d.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=me.Z.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),f&&f.validateMessages&&(T=(0,r.Z)((0,r.Z)({},T),f.validateMessages)),Object.keys(T).length>0&&(S=i.createElement(a.FormProvider,{validateMessages:T},s)),d&&(S=i.createElement(h,{locale:d,_ANT_MARK__:v},S)),C&&(S=i.createElement(o.Z.Provider,{value:P},S)),p&&(S=i.createElement(w.q,{size:p},S)),i.createElement(b.E_.Provider,{value:O},S)},we=function(e){return i.useEffect((function(){e.direction&&(W.config({rtl:"rtl"===e.direction}),pe.config({rtl:"rtl"===e.direction}))}),[e.direction]),i.createElement(y.Z,null,(function(t,n,o){return i.createElement(b.C,null,(function(t){return i.createElement(be,(0,r.Z)({parentContext:t,legacyLocale:o},e))}))}))};we.ConfigContext=b.E_,we.SizeContext=w.Z,we.config=function(e){void 0!==e.prefixCls&&(de=e.prefixCls)};var xe=we},14277:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(87462),i=n(4942),o=n(67294),a=n(94184),c=n.n(a),s=n(65632),l=n(42051),u=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,u=c.addonBefore,p=c.addonAfter,m=c.size,v=c.disabled,h=(0,d.Z)(a.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return l.createElement("input",(0,r.Z)({autoComplete:o.autoComplete},h,{onChange:a.handleChange,onFocus:a.onFocus,onBlur:a.onBlur,onKeyDown:a.handleKeyDown,className:f()((0,g.X)(e,n,m||t,v,a.direction),(0,i.Z)({},s,s&&!u&&!p)),ref:a.saveInput}))},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,u=a.props,f=u.prefixCls,d=u.bordered,m=void 0===d||d,h=t("input",f);return a.direction=n,l.createElement(v.Z.Consumer,null,(function(e){return l.createElement(p.Z,(0,r.Z)({size:e},a.props,{prefixCls:h,inputType:"input",value:y(c),element:a.renderInput(h,e,m,i),handleReset:a.handleReset,ref:a.saveClearableInput,direction:n,focused:s,triggerFocus:a.focus,bordered:m}))}))};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,h.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 l.createElement(m.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),r}}]),n}(l.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(29439),c=n(93433),s=n(67294),l=n(34084),u=n(98423),f=n(94184),d=n.n(f),p=n(21770),m=n(69430),v=n(65632),h=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=j("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,h.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(l.default,(0,i.Z)({},(0,u.Z)(M,["allowClear"]),{className:d()((n={},(0,o.Z)(n,"".concat(K,"-borderless"),!x),(0,o.Z)(n,k,k&&!E),(0,o.Z)(n,"".concat(K,"-sm"),"small"===F||"small"===O),(0,o.Z)(n,"".concat(K,"-lg"),"large"===F||"large"===O),n)),style:E?void 0:N,prefixCls:K,onCompositionStart:function(e){V(!0),null===P||void 0===P||P(e)},onChange:function(e){var t=e.target.value;!z&&$&&(t=b(t,C)),W(t),(0,h.rJ)(e.currentTarget,e,T,t)},onCompositionEnd:function(e){V(!1);var t=e.currentTarget.value;$&&(t=b(t,C)),t!==B&&(W(t),(0,h.rJ)(e.currentTarget,e,T,t)),null===S||void 0===S||S(e)},ref:I})),Y=(0,h.D7)(B);z||!$||null!==M.value&&void 0!==M.value||(Y=b(Y,C));var X=s.createElement(m.Z,(0,i.Z)({},M,{prefixCls:K,direction:R,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,h.rJ)(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e,T)},ref:L,bordered:x,style:E?void 0:N}));if(E){var Q=(0,c.Z)(Y).length,J="";return J="object"===(0,r.Z)(E)?E.formatter({count:Q,maxLength:C}):"".concat(Q).concat($?" / ".concat(C):""),s.createElement("div",{className:d()("".concat(K,"-textarea"),(0,o.Z)({},"".concat(K,"-textarea-rtl"),"rtl"===R),"".concat(K,"-textarea-show-count"),k),style:N,"data-count":J},X)}return X}));t.Z=w},4107:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(77749),i=n(4942),o=n(67294),a=n(94184),c=n.n(a),s=n(65632),l=function(e){return o.createElement(s.C,null,(function(t){var n,r=t.getPrefixCls,a=t.direction,s=e.prefixCls,l=e.className,u=void 0===l?"":l,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),u);return o.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))},u=n(87462),f=n(42550),d=n(76570),p=n(71577),m=n(97647),v=n(96159),h=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)}}(),C=a.forwardRef((function(e,t){var n=e.prefixCls,c=e.className,u=e.trigger,f=e.children,d=e.defaultCollapsed,p=void 0!==d&&d,C=e.theme,k=void 0===C?"dark":C,N=e.style,O=void 0===N?{}:N,P=e.collapsible,S=void 0!==P&&P,T=e.reverseArrow,M=void 0!==T&&T,A=e.width,j=void 0===A?200:A,R=e.collapsedWidth,F=void 0===R?80:R,I=e.zeroWidthTriggerStyle,L=e.breakpoint,_=e.onCollapse,D=e.onBreakpoint,z=w(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),V=(0,a.useContext)(g.Gs).siderHook,H=(0,a.useState)("collapsed"in z?z.collapsed:p),U=(0,o.Z)(H,2),B=U[0],q=U[1],W=(0,a.useState)(!1),$=(0,o.Z)(W,2),K=$[0],G=$[1];(0,a.useEffect)((function(){"collapsed"in z&&q(z.collapsed)}),[z.collapsed]);var Y=function(e,t){"collapsed"in z||q(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),B!==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=E("ant-sider-");return V.addSider(e),function(){return V.removeSider(e)}}),[]);var Q=function(){Y(!B,"clickTrigger")},J=(0,a.useContext)(y.E_).getPrefixCls;return a.createElement(Z.Provider,{value:{siderCollapsed:B}},function(){var e,o=J("layout-sider",n),d=(0,l.Z)(z,["collapsed"]),p=B?F:j,g=b(p)?"".concat(p,"px"):String(p),y=0===parseFloat(String(F||0))?a.createElement("span",{onClick:Q,className:s()("".concat(o,"-zero-width-trigger"),"".concat(o,"-zero-width-trigger-").concat(M?"right":"left")),style:I},u||a.createElement(m,null)):null,w={expanded:M?a.createElement(v.Z,null):a.createElement(h.Z,null),collapsed:M?a.createElement(h.Z,null):a.createElement(v.Z,null)}[B?"collapsed":"expanded"],x=null!==u?y||a.createElement("div",{className:"".concat(o,"-trigger"),onClick:Q,style:{width:g}},u||w):null,Z=(0,i.Z)((0,i.Z)({},O),{flex:"0 0 ".concat(g),maxWidth:g,minWidth:g,width:g}),E=s()(o,"".concat(o,"-").concat(k),(e={},(0,r.Z)(e,"".concat(o,"-collapsed"),!!B),(0,r.Z)(e,"".concat(o,"-has-trigger"),S&&null!==u&&!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:E},d,{style:Z,ref:t}),a.createElement("div",{className:"".concat(o,"-children")},f),S||K&&y?x:null)}())}));C.displayName="Sider";var k=C},2897:function(e,t,n){"use strict";n.d(t,{Gs:function(){return d},h4:function(){return h},$_:function(){return g},VY:function(){return y}});var r=n(93433),i=n(4942),o=n(29439),a=n(87462),c=n(67294),s=n(94184),l=n.n(s),u=n(65632),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(h,"-rtl"),"rtl"===n),t),g);return c.createElement(d.Provider,{value:{siderHook:{addSider:function(e){v((function(t){return[].concat((0,r.Z)(t),[e])}))},removeSider:function(e){v((function(t){return t.filter((function(t){return t!==e}))}))}}}},c.createElement(w,(0,a.Z)({className:Z},x),y))})),h=p({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(m),g=p({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(m),y=p({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(m);t.ZP=v},42051: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(31129),s=n(67294),l=n(5767).Z,u=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||l[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?l.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=u.Z},67178:function(e,t,n){"use strict";var r=(0,n(67294).createContext)(void 0);t.Z=r},5767:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});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,l="${label} is not a valid ${type}",u={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",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:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},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"}}},99210:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(87462),i=n(15671),o=n(43144),a=n(60136),c=n(31129),s=n(67294),l=n(10985),u=n(94184),f=n.n(u),d=n(98423),p=n(44545),m=(0,s.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),v=n(96159);var h=function(e){var t,n,i=e.popupClassName,o=e.icon,a=e.title,c=s.useContext(m),u=c.prefixCls,p=c.inlineCollapsed,h=c.antdMenuTheme,g=(0,l.Xl)();if(o){var y=(0,v.l$)(a)&&"span"===a.type;n=s.createElement(s.Fragment,null,(0,v.Tm)(o,{className:f()((0,v.l$)(o)?null===(t=o.props)||void 0===t?void 0:t.className:"","".concat(u,"-item-icon"))}),y?a:s.createElement("span",{className:"".concat(u,"-title-content")},a))}else n=p&&!g.length&&a&&"string"===typeof a?s.createElement("div",{className:"".concat(u,"-inline-collapsed-noicon")},a.charAt(0)):s.createElement("span",{className:"".concat(u,"-title-content")},a);return s.createElement(m.Provider,{value:(0,r.Z)((0,r.Z)({},c),{firstLevel:!1})},s.createElement(l.Wd,(0,r.Z)({},(0,d.Z)(e,["icon"]),{title:n,popupClassName:f()(u,"".concat(u,"-").concat(h),i)})))},g=n(4942),y=n(50344),b=n(31097),w=n(14025),x=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:V}),motion:{motionName:(0,b.m)(D,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),z?(0,h.Tm)(H,{className:B}):H)}));E.displayName="Tooltip",E.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var C=E},4525:function(e,t,n){"use strict";n.d(t,{Z:function(){return ge}});var r=n(87462),i=n(4942),o=n(67294),a=n(94184),c=n.n(a),s=n(42550),l=n(65632),u=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);ir?n:r}(e),f=Math.floor(u)*(a+1)+X(l.paddingTop)+X(l.paddingBottom);Q(q,e);var d=function(e){var t=[];return e.forEach((function(e){var n=t[t.length-1];"string"===typeof e&&"string"===typeof n?t[t.length-1]+=e:t.push(e)})),t}((0,Z.Z)(n));function p(){return Math.ceil(q.getBoundingClientRect().height)2&&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,p()||!s)return c===t.length?{finished:!1,reactNode:t}:{finished:!0,reactNode:s}}return p()?w(e,t,o,r,o):w(e,t,n,o,i)}function x(e,t){var n=e.nodeType;if(1===n)return b(e),p()?{finished:!1,reactNode:d[t]}:(g.removeChild(e),{finished:!0,reactNode:null});if(3===n){var r=e.textContent||"",i=document.createTextNode(r);return b(i),w(i,r)}return{finished:!1,reactNode:null}}return g.appendChild(y),v.forEach((function(e){q.appendChild(e)})),m.some((function(e,t){var n=x(e,t),r=n.finished,i=n.reactNode;return i&&h.push(i),r})),{content:h,text:q.innerHTML,ellipsis:!0}},ee=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&&O,T=f;if(Z&&a&&!s&&!O){var M=b.title,F=M||"";M||"string"!==typeof f&&"number"!==typeof f||(F=String(f)),F=F.slice(String(n||"").length),T=o.createElement(o.Fragment,null,n,o.createElement("span",{title:F,"aria-hidden":"true"},"..."),E),C&&(T=o.createElement(V.Z,{title:!0===C?f:C},o.createElement("span",null,T)))}else T=o.createElement(o.Fragment,null,f,E);return T=function(e,t){var n=e.mark,r=e.code,i=e.underline,a=e.delete,c=e.strong,s=e.keyboard,l=e.italic,u=t;function f(e,t){e&&(u=o.createElement(t,{},u))}return f(c,"strong"),f(i,"u"),f(a,"del"),f(r,"code"),f(n,"mark"),f(s,"kbd"),f(l,"i"),u}(this.props,T),o.createElement(R.Z,{componentName:"Text"},(function(t){var n,a=t.edit,s=t.copy,l=t.copied,f=t.expand;return e.editStr=a,e.copyStr=s,e.copiedStr=l,e.expandStr=f,o.createElement(A.default,{onResize:e.resizeOnNextFrame,disabled:O},o.createElement(m,(0,r.Z)({className:c()((n={},(0,i.Z)(n,"".concat(k,"-").concat(p),p),(0,i.Z)(n,"".concat(k,"-disabled"),v),(0,i.Z)(n,"".concat(k,"-ellipsis"),Z),(0,i.Z)(n,"".concat(k,"-single-line"),1===Z),(0,i.Z)(n,"".concat(k,"-ellipsis-single-line"),P),(0,i.Z)(n,"".concat(k,"-ellipsis-multiple-line"),S),n),d),style:(0,r.Z)((0,r.Z)({},y),{WebkitLineClamp:S?Z:void 0}),component:u,ref:e.contentRef,direction:w},N),T,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,u.Z)(!n||"string"===typeof t,"Typography","When `editable` is enabled, the `children` should use string."),{}}}]),n}(o.Component);ie.contextType=l.E_,ie.defaultProps={children:""};var oe=ie,ae=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}})},70184: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))}},91486:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(4942),i=(n(67294),n(94184)),o=n.n(i),a=n(85893);function c(e){var t,n=e.status||{},i=n.type,c=n.icon,s=n.message,l=o()((t={"status-container":!0},(0,r.Z)(t,"status-".concat(i),i),(0,r.Z)(t,"empty",!s),t));return(0,a.jsxs)("span",{className:l,children:[c?(0,a.jsx)("span",{className:"status-icon",children:c}):null,s?(0,a.jsx)("span",{className:"status-message",children:s}):null]})}},65517:function(e,t,n){"use strict";n.d(t,{Sk:function(){return x},xA:function(){return Z},ZP:function(){return E}});var r=n(4942),i=n(15861),o=n(44925),a=n(87757),c=n.n(a),s=n(71577),l=n(94184),u=n.n(l),f=n(67294),d=n(95828),p=n(74071),m=n(60293),v=n(91486),h=n(60764),g=n(85893),y=["apiPath","configPath","initialValue","useTrim","useTrimLead"];function b(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 w(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(v()?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()?"":b(this.number):this.origin}}]),e}(),Z=function(){function e(t){if((0,p.Z)(this,e),this.origin="",(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(g(n)&&(n=Number(n)),w(n="string"===typeof n?n:b(n))){var r=h(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,m.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=h((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()?"":h("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function E(e){return v()?new Z(e):new x(e)}function C(e,t,n){if(""===e)return"";var r=h(e),i=r.negativeStr,o=r.integerStr,a=r.decimalStr,c="".concat(t).concat(a),s="".concat(i).concat(o);if(n>=0){var l=Number(a[n]);return l>=5?C(E(e).add("0.".concat("0".repeat(n)).concat(10-l)).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 k=n(31131);function N(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,s=e.upDisabled,l=e.downDisabled,u=e.onStep,f=i.useRef(),d=i.useRef();d.current=u;var p=function(e,t){e.preventDefault(),d.current(t),f.current=setTimeout((function e(){d.current(t),f.current=setTimeout(e,200)}),600)},m=function(){clearTimeout(f.current)};if(i.useEffect((function(){return m}),[]),(0,k.Z)())return null;var v="".concat(t,"-handler"),h=a()(v,"".concat(v,"-up"),(0,r.Z)({},"".concat(v,"-up-disabled"),s)),g=a()(v,"".concat(v,"-down"),(0,r.Z)({},"".concat(v,"-down-disabled"),l)),y={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return i.createElement("div",{className:"".concat(v,"-wrap")},i.createElement("span",(0,c.Z)({},y,{onMouseDown:function(e){p(e,!0)},"aria-label":"Increase Value","aria-disabled":s,className:h}),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":l,className:g}),o||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var O=n(80334);var P=(0,n(98924).Z)()?i.useLayoutEffect:i.useEffect;function S(e,t){var n=i.useRef(!1);P((function(){if(n.current)return e();n.current=!0}),t)}var T=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},M=function(e){var t=E(e);return t.isInvalidate()?null:t},A=i.forwardRef((function(e,t){var n,o=e.prefixCls,p=void 0===o?"rc-input-number":o,m=e.className,v=e.style,h=e.min,g=e.max,x=e.step,Z=void 0===x?1:x,k=e.defaultValue,P=e.value,A=e.disabled,j=e.readOnly,R=e.upHandler,F=e.downHandler,I=e.keyboard,L=e.stringMode,_=e.parser,D=e.formatter,z=e.precision,V=e.decimalSeparator,H=e.onChange,U=e.onInput,B=e.onPressEnter,q=e.onStep,W=(0,u.Z)(e,["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"]),$="".concat(p,"-input"),K=i.useRef(null),G=i.useState(!1),Y=(0,l.Z)(G,2),X=Y[0],Q=Y[1],J=i.useRef(!1),ee=i.useRef(!1),te=i.useState((function(){return E(null!==P&&void 0!==P?P:k)})),ne=(0,l.Z)(te,2),re=ne[0],ie=ne[1];var oe=i.useCallback((function(e,t){if(!t)return z>=0?z:Math.max(y(e),y(Z))}),[z,Z]),ae=i.useCallback((function(e){var t=String(e);if(_)return _(t);var n=t;return V&&(n=n.replace(V,".")),n.replace(/[^\w.-]+/g,"")}),[_,V]),ce=i.useCallback((function(e,t){if(D)return D(e);var n="number"===typeof e?b(e):e;if(!t){var r=oe(n,t);if(w(n)&&(V||r>=0))n=C(n,V||".",r)}return n}),[D,oe,V]),se=i.useState((function(){var e=null!==k&&void 0!==k?k:P;return re.isInvalidate()&&["string","number"].includes((0,s.Z)(e))?Number.isNaN(e)?"":e:ce(re.toString(),!1)})),le=(0,l.Z)(se,2),ue=le[0],fe=le[1];function de(e,t){fe(ce(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var pe=i.useMemo((function(){return M(g)}),[g]),me=i.useMemo((function(){return M(h)}),[h]),ve=i.useMemo((function(){return!(!pe||!re||re.isInvalidate())&&pe.lessEquals(re)}),[pe,re]),he=i.useMemo((function(){return!(!me||!re||re.isInvalidate())&&re.lessEquals(me)}),[me,re]),ge=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 l=o[c-1],u=r.indexOf(l,c-1);-1!==u&&(s=u+1)}e.setSelectionRange(s,s)}catch(f){(0,O.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(f.message))}}]}(K.current,X),ye=(0,l.Z)(ge,2),be=ye[0],we=ye[1],xe=function(e){return pe&&!e.lessEquals(pe)?pe:me&&!me.lessEquals(e)?me:null},Ze=function(e){return!xe(e)},Ee=function(e,t){var n,r=e,i=Ze(r)||r.isEmpty();if(r.isEmpty()||t||(r=xe(r)||r,i=!0),!j&&!A&&i){var o=r.toString(),a=oe(o,t);return a>=0&&(r=E(C(o,".",a))),r.equals(re)||(n=r,void 0===P&&ie(n),null===H||void 0===H||H(r.isEmpty()?null:T(L,r)),void 0===P&&de(r,t)),r}return re},Ce=function(e){if(be(),fe(e),!ee.current){var t=E(ae(e));t.isNaN()||Ee(t,!0)}},ke=function(e){var t;if(!(e&&ve||!e&&he)){J.current=!1;var n=E(Z);e||(n=n.negate());var r=(re||E(0)).add(n.toString()),i=Ee(r,!1);null===q||void 0===q||q(T(L,i),{offset:Z,type:e?"up":"down"}),null===(t=K.current)||void 0===t||t.focus()}},Ne=function(e){var t=E(ae(ue)),n=t;n=t.isNaN()?re:Ee(t,e),void 0!==P?de(re,!1):n.isNaN()||de(n,!1)};return S((function(){re.isInvalidate()||de(re,!1)}),[z]),S((function(){var e=E(P);ie(e),(e.isNaN()||!J.current||D)&&de(e,!1)}),[P]),S((function(){D&&we()}),[ue]),i.createElement("div",{className:a()(p,m,(n={},(0,r.Z)(n,"".concat(p,"-focused"),X),(0,r.Z)(n,"".concat(p,"-disabled"),A),(0,r.Z)(n,"".concat(p,"-readonly"),j),(0,r.Z)(n,"".concat(p,"-not-a-number"),re.isNaN()),(0,r.Z)(n,"".concat(p,"-out-of-range"),!re.isInvalidate()&&!Ze(re)),n)),style:v,onFocus:function(){Q(!0)},onBlur:function(){Ne(!1),Q(!1),J.current=!1},onKeyDown:function(e){var t=e.which;J.current=!0,t===f.Z.ENTER&&(ee.current||(J.current=!1),Ne(!0),null===B||void 0===B||B(e)),!1!==I&&!ee.current&&[f.Z.UP,f.Z.DOWN].includes(t)&&(ke(f.Z.UP===t),e.preventDefault())},onKeyUp:function(){J.current=!1},onCompositionStart:function(){ee.current=!0},onCompositionEnd:function(){ee.current=!1,Ce(K.current.value)}},i.createElement(N,{prefixCls:p,upNode:R,downNode:F,upDisabled:ve,downDisabled:he,onStep:ke}),i.createElement("div",{className:"".concat($,"-wrap")},i.createElement("input",(0,c.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":re.isInvalidate()?null:re.toString(),step:Z},W,{ref:(0,d.sQ)(K,t),className:$,value:ue,onChange:function(e){var t=e.target.value;_||(t=t.replace(/\u3002/g,".")),Ce(t),null===U||void 0===U||U(t)},disabled:A,readOnly:j}))))}));A.displayName="InputNumber";var j=A,R=n(1413),F={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"},I=n(30076),L=function(e,t){return i.createElement(I.Z,(0,R.Z)((0,R.Z)({},e),{},{ref:t,icon:F}))};L.displayName="UpOutlined";var _=i.forwardRef(L),D=n(57254),z=n(65632),V=n(97647),H=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,v,h,g,y)},onMouseEnter:function(e){a.isLocalURL(d)&&(t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),u(i,d,p,{priority:!0}))}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var N="undefined"!==typeof y?y:i&&i.locale,O=i&&i.isLocaleDomain&&a.getDomainLocale(p,N,i&&i.locales,i&&i.domainLocales);k.href=O||a.addBasePath(a.addLocale(p,N,i&&i.defaultLocale))}return o.default.cloneElement(t,k)};t.default=f},7426:function(e,t,n){"use strict";var r=n(63038);Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!a,s=i.useRef(),l=i.useState(!1),u=r(l,2),f=u[0],d=u[1],p=i.useCallback((function(e){s.current&&(s.current(),s.current=void 0),n||f||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&&d(e)}),{rootMargin:t}))}),[n,t,f]);return i.useEffect((function(){if(!a&&!f){var e=o.requestIdleCallback((function(){return d(!0)}));return function(){return o.cancelIdleCallback(e)}}}),[f]),[p,f]};var i=n(67294),o=n(73447),a="undefined"!==typeof IntersectionObserver;var c=new Map},6454:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return De}});var r=n(4942),i=(n(69586),n(67382),n(67658),n(11164),n(65210),n(80551),n(85052),n(92074),n(83976),n(91130),n(10534),n(73315),n(46510),n(84587),n(63518),n(71844),n(76477),n(60293)),o=n(45197),a=n(15861),c=n(87757),s=n.n(c),l=n(67294),u=n(41664),f=n(9008),d=n(70184),p=n(11163),m=n(2897),v=n(14025),h=m.ZP;h.Header=m.h4,h.Footer=m.$_,h.Content=m.VY,h.Sider=v.Z;var g=h,y=n(99210),b=n(87462),w=n(29439),x=n(54549),Z=n(15873),E=n(57119),C=n(68628),k=n(73218),N=n(38819),O=n(68855),P=n(40847),S=n(43061),T=n(60444),M=n(94184),A=n.n(M),j=n(65632),R=n(5467),F=n(15671),I=n(43144),L=n(60136),_=n(31129),D=function(e){(0,L.Z)(n,e);var t=(0,_.Z)(n);function n(){var e;return(0,F.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,I.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,a=i.info,c=a&&a.componentStack?a.componentStack:null,s="undefined"===typeof t?(o||"").toString():t,u="undefined"===typeof n?c:n;return o?l.createElement(q,{type:"error",message:s,description:l.createElement("pre",null,u)}):r}}]),n}(l.Component),z=n(96159),V=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 V(e){return H.apply(this,arguments)}function H(){return(H=(0,r.Z)(o().mark((function e(t){var n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:if(n=e.sent,"v"===(r=n.tag_name).substr(0,1)&&(r=r.substr(1)),z(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)}},95828:function(e,t,n){"use strict";n.d(t,{sI:function(){return p},AA:function(){return m},d$:function(){return v},$w:function(){return h},c9:function(){return g},sv:function(){return y},vv:function(){return b},AP:function(){return w},CJ:function(){return x},os:function(){return Z},CQ:function(){return E},Si:function(){return C},RE:function(){return N},$t:function(){return O},rs:function(){return P},IX:function(){return S},ZQ:function(){return T},Ri:function(){return M},KB:function(){return A},rE:function(){return j},lT:function(){return R},cj:function(){return F},y_:function(){return I},EY:function(){return L},P:function(){return _},gX:function(){return D},yj:function(){return z},Dg:function(){return V},dL:function(){return H},nm:function(){return U},Xq:function(){return B},x8:function(){return q},yC:function(){return W},SS:function(){return $},HM:function(){return K},t$:function(){return G},I$:function(){return Y},wC:function(){return X},z_:function(){return Q},zm:function(){return J}});var r,i,o,a=n(4942),c=n(15861),s=n(87757),l=n.n(s),u=n(94853),f=n(60764),d=n(31820),p=3e3,m="/pagecontent",v="/customstyles",h="/s3",g="/socialhandles",y="/video/streamlatencylevel",b="/video/streamoutputvariants",w="/directoryenabled",x="/chat/forbiddenusernames",Z="/externalactions",E="/video/codec";function C(e){return k.apply(this,arguments)}function k(){return(k=(0,c.Z)(l().mark((function e(t){var n,r,i,o,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.apiPath,r=t.data,i=t.onSuccess,o=t.onError,e.next=3,(0,u.rQ)("".concat(u.ao).concat(n),{data:r,method:"POST",auth:!0});case 3:(a=e.sent).success&&i?i(a.message):o&&o(a.message);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var N={apiPath:"/name",configPath:"instanceDetails",maxLength:255,placeholder:"Owncast site name",label:"Name",tip:"The name of your Owncast server",required:!0,useTrimLead:!0},O={apiPath:"/streamtitle",configPath:"instanceDetails",maxLength:100,placeholder:"Doing cool things...",label:"Stream Title",tip:"What is your stream about today?"},P={apiPath:"/serversummary",configPath:"instanceDetails",maxLength:500,placeholder:"",label:"About",tip:"A brief blurb about you, your server, or what your stream is about."},S={apiPath:"/welcomemessage",configPath:"instanceDetails",maxLength:500,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."},M={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},A={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},j={apiPath:"/webserverport",configPath:"",maxLength:6,placeholder:"8080",label:"Owncast port",tip:"What port is your Owncast web server listening? Default is 8080",required:!0},R={apiPath:"/rtmpserverport",configPath:"",maxLength:6,placeholder:"1935",label:"RTMP port",tip:"What port should accept inbound broadcasts? Default is 1935",required:!0},F={apiPath:"/serverurl",configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server.",type:f.xA,pattern:d.a,useTrim:!0},I={apiPath:"/tags",configPath:"instanceDetails",maxLength:24,placeholder:"Add a new tag",required:!0,label:"",tip:""},L={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."},_={apiPath:w,configPath:"yp",label:"Enable directory",tip:"Turn this ON to request to show up in the directory."},D={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},V={apiPath:x,placeholder:"username",label:"Forbidden usernames",tip:"A list of words in chat usernames you disallow."},H={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."}},U={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."},B=(r={},(0,a.Z)(r,U.min,"".concat(U.min," ").concat(U.unit)),(0,a.Z)(r,25,""),(0,a.Z)(r,30,""),(0,a.Z)(r,50,""),(0,a.Z)(r,60,""),(0,a.Z)(r,90,""),(0,a.Z)(r,U.max,"".concat(U.max," ").concat(U.unit)),r),q=(i={},(0,a.Z)(i,U.min,"".concat(U.min,"fps - Good for film, presentations, music, low power/bandwidth servers.")),(0,a.Z)(i,25,"25fps - Good for film, presentations, music, low power/bandwidth servers."),(0,a.Z)(i,30,"30fps - Good for slow/casual games, chat, general purpose."),(0,a.Z)(i,50,"50fps - Good for fast/action games, sports, HD video."),(0,a.Z)(i,60,"60fps - Good for fast/action games, sports, HD video."),(0,a.Z)(i,90,"90fps - Good for newer fast games and hardware."),(0,a.Z)(i,U.max,"".concat(U.max,"fps - Experimental, use at your own risk!")),i),W={min:400,max:6e3,defaultValue:1200,unit:"kbps",incrementBy:100,tip:"The overall quality of your stream is generally impacted most by bitrate."},$={fieldName:"name",label:"Name",maxLength:15,placeholder:"HD or Low",tip:"Human-readable name for for displaying in the player."},K=(o={},(0,a.Z)(o,W.min,"".concat(W.min," ").concat(W.unit)),(0,a.Z)(o,3e3,3e3),(0,a.Z)(o,4500,4500),(0,a.Z)(o,W.max,"".concat(W.max," ").concat(W.unit)),o),G={1:"lowest",2:"",3:"",4:"",5:"highest"},Y={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"},X={url:"",platform:""},Q="OTHER_SOCIAL_HANDLE_OPTION",J={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:f.xA,pattern:d.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:f.xA,pattern:d.a,useTrim:!0}}},9431:function(e,t,n){"use strict";n.d(t,{t5:function(){return o},Qr:function(){return a},wS:function(){return s},AB:function(){return l}});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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Number.isFinite(+e)?Math.abs(e):0,n=Math.floor(t/86400),r=n>0?"".concat(n," day").concat(n>1?"s":""," "):"",i=Math.floor(t/3600%24),o=i||n?c("".concat(i,":"),"0",3):"",a=Math.floor(t/60%60),s=c("".concat(a,":"),"0",3),l=Math.floor(t%60),u=c("".concat(l),"0",2);return r+o+s+u}function l(e){var t=i()(e),n=t.device,r=t.os,o=t.browser,a=o.major,c=o.name,s=r.version,l=r.name,u=n.model,f=n.type;if(!c||!a||!l)return e;var d=u||f?" (".concat(u||f,")"):"";return"".concat(c," ").concat(a," on ").concat(l," ").concat(s,"\n ").concat(d)}},74071:function(e,t,n){"use strict";n.d(t,{Un:function(){return v},Jk:function(){return g},zv:function(){return y},dG:function(){return b},kg:function(){return x}});var r=n(4942),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(30076),s=function(e,t){return o.createElement(c.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:a}))};s.displayName="WarningOutlined";var l,u=o.forwardRef(s),f=n(38819),d=n(68855),p=n(7085),m=n(85893),v="error",h="invalid",g="proessing",y="success",b="warning",w=(l={},(0,r.Z)(l,y,{type:y,icon:(0,m.jsx)(f.Z,{style:{color:"green"}}),message:"Success!"}),(0,r.Z)(l,v,{type:v,icon:(0,m.jsx)(d.Z,{style:{color:"red"}}),message:"An error occurred."}),(0,r.Z)(l,h,{type:h,icon:(0,m.jsx)(d.Z,{style:{color:"red"}}),message:"An error occurred."}),(0,r.Z)(l,g,{type:g,icon:(0,m.jsx)(p.Z,{}),message:""}),(0,r.Z)(l,b,{type:b,icon:(0,m.jsx)(u,{style:{color:"#fc0"}}),message:""}),l);function x(e,t){return e&&w[e]?t?{type:e,icon:w[e].icon,message:t}:w[e]:null}},60293:function(e,t,n){"use strict";n.d(t,{aC:function(){return v}});var r=n(15861),i=n(4942),o=n(87757),a=n.n(o),c=n(67294),s=n(94853),l=n(95828),u=n(85893);function f(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 d(e){for(var t=1;t1)for(var n=1;n=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}}));return a}return i}function F(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 I(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]+\.)+[a-zA-Z]{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},U={integer:function(e){return U.number(e)&&parseInt(e,10)===e},float:function(e){return U.number(e)&&!U.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&&!U.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(H.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(H.url)},hex:function(e){return"string"===typeof e&&!!e.match(H.hex)}};var B={required:V,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(R(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)V(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?U[o](t)||r.push(R(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(R(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,l=null,u="number"===typeof t,f="string"===typeof t,d=Array.isArray(t);if(u?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?s!==e.len&&r.push(R(i.messages[l].len,e.fullField,e.len)):a&&!c&&se.max?r.push(R(i.messages[l].max,e.fullField,e.max)):a&&c&&(se.max)&&r.push(R(i.messages[l].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(R(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(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function q(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(F(t,o)&&!e.required)return n();B.required(e,t,r,a,i,o),F(t,o)||B.type(e,t,r,a,i)}n(a)}var W={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(F(t,"string")&&!e.required)return n();B.required(e,t,r,o,i,"string"),F(t,"string")||(B.type(e,t,r,o,i),B.range(e,t,r,o,i),B.pattern(e,t,r,o,i),!0===e.whitespace&&B.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(F(t)&&!e.required)return n();B.required(e,t,r,o,i),void 0!==t&&B.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),F(t)&&!e.required)return n();B.required(e,t,r,o,i),void 0!==t&&(B.type(e,t,r,o,i),B.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(F(t)&&!e.required)return n();B.required(e,t,r,o,i),void 0!==t&&B.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(F(t)&&!e.required)return n();B.required(e,t,r,o,i),F(t)||B.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(F(t)&&!e.required)return n();B.required(e,t,r,o,i),void 0!==t&&(B.type(e,t,r,o,i),B.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(F(t)&&!e.required)return n();B.required(e,t,r,o,i),void 0!==t&&(B.type(e,t,r,o,i),B.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();B.required(e,t,r,o,i,"array"),void 0!==t&&null!==t&&(B.type(e,t,r,o,i),B.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(F(t)&&!e.required)return n();B.required(e,t,r,o,i),void 0!==t&&B.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(F(t)&&!e.required)return n();B.required(e,t,r,o,i),void 0!==t&&B.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(F(t,"string")&&!e.required)return n();B.required(e,t,r,o,i),F(t,"string")||B.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(F(t,"date")&&!e.required)return n();var a;if(B.required(e,t,r,o,i),!F(t,"date"))a=t instanceof Date?t:new Date(t),B.type(e,a,r,o,i),a&&B.range(e,a.getTime(),r,o,i)}n(o)},url:q,hex:q,email:q,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;B.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(F(t)&&!e.required)return n();B.required(e,t,r,o,i)}n(o)}};function $(){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 K=$();function G(e){this.rules=null,this._messages=K,this.define(e)}G.prototype={messages:function(e){return e&&(this._messages=z($(),e)),this._messages},define:function(e){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");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var i,o,a=e,c=t,s=n;if("function"===typeof c&&(s=c,c={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(),Promise.resolve();if(c.messages){var l=this.messages();l===K&&(l=$()),z(l,c.messages),c.messages=l}else c.messages=this.messages();var u={};(c.keys||Object.keys(this.rules)).forEach((function(t){i=r.rules[t],o=a[t],i.forEach((function(n){var i=n;"function"===typeof i.transform&&(a===e&&(a=k({},a)),o=a[t]=i.transform(o)),(i="function"===typeof i?{validator:i}:k({},i)).validator=r.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=r.getType(i),i.validator&&(u[t]=u[t]||[],u[t].push({rule:i,value:o,source:a,field:t}))}))}));var f={};return _(u,c,(function(e,t){var n,r=e.rule,i=("object"===r.type||"array"===r.type)&&("object"===typeof r.fields||"object"===typeof r.defaultField);function o(e,t){return k({},t,{fullField:r.fullField+"."+e})}function a(n){void 0===n&&(n=[]);var a=n;if(Array.isArray(a)||(a=[a]),!c.suppressWarning&&a.length&&G.warning("async-validator:",a),a.length&&void 0!==r.message&&(a=[].concat(r.message)),a=a.map(D(r)),c.first&&a.length)return f[r.field]=1,t(a);if(i){if(r.required&&!e.value)return void 0!==r.message?a=[].concat(r.message).map(D(r)):c.error&&(a=[c.error(r,R(c.messages.required,r.field))]),t(a);var s={};if(r.defaultField)for(var l in e.value)e.value.hasOwnProperty(l)&&(s[l]=r.defaultField);for(var u in s=k({},s,e.rule.fields))if(s.hasOwnProperty(u)){var d=Array.isArray(s[u])?s[u]:[s[u]];s[u]=d.map(o.bind(null,u))}var p=new G(s);p.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),p.validate(e.value,e.rule.options||c,(function(e){var n=[];a&&a.length&&n.push.apply(n,a),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(a)}i=i&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,a,e.source,c):r.validator&&(!0===(n=r.validator(r,e.value,a,e.source,c))?a():!1===n?a(r.message||r.field+" fails"):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n=[],r={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t3&&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 le(e,t)}))}function ae(e){return"object"===(0,E.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="'${name}' is not a valid ${type}",pe={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:de,method:de,array:de,object:de,number:de,date:de,boolean:de,integer:de,float:de,regexp:de,email:de,url:de,hex:de},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},me=Y;function ve(e,t,n,r){var i=(0,c.Z)((0,c.Z)({},n),{},{name:t,enum:(n.enum||[]).join(", ")}),o=function(e,t){return function(){return function(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}(e,(0,c.Z)((0,c.Z)({},i),t))}};return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(i){var a=t[i];"string"===typeof a?n[i]=o(a,r):a&&"object"===(0,E.Z)(a)?(n[i]={},e(a,n[i])):n[i]=a})),n}(se({},pe,e))}function he(e,t,n,r,i){return ge.apply(this,arguments)}function ge(){return(ge=(0,Z.Z)(x().mark((function e(t,n,i,o,l){var u,f,d,p,m,v;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=(0,c.Z)({},i),f=null,u&&"array"===u.type&&u.defaultField&&(f=u.defaultField,delete u.defaultField),d=new me((0,a.Z)({},t,[u])),p=ve(o.validateMessages,t,u,l),d.messages(p),m=[],e.prev=7,e.next=10,Promise.resolve(d.validate((0,a.Z)({},t,n),(0,c.Z)({},o)));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),e.t0.errors?m=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),m=[p.default()]);case 15:if(m.length||!f){e.next=20;break}return e.next=18,Promise.all(n.map((function(e,n){return he("".concat(t,".").concat(n),e,f,o,l)})));case 18:return v=e.sent,e.abrupt("return",v.reduce((function(e,t){return[].concat((0,s.Z)(e),(0,s.Z)(t))}),[]));case 20:return e.abrupt("return",m);case 21:case"end":return e.stop()}}),e,null,[[7,12]])})))).apply(this,arguments)}function ye(e,t,n,r,i,o){var a,s=e.join("."),l=n.map((function(e){var t=e.validator;return t?(0,c.Z)((0,c.Z)({},e),{},{validator:function(e,n,r){var i=!1,o=t(e,n,(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];i.validatePromise===r&&(i.validatePromise=null,i.errors=e,i.reRender())})),f}));return i.validatePromise=r,i.dirty=!0,i.errors=[],i.reRender(),r},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){return i.dirty},i.getErrors=function(){return i.errors},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,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,m.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,l=t.valuePropName,u=t.getValueProps,f=t.fieldContext,d=void 0!==r?r:f.validateTrigger,p=i.getNamePath(),m=f.getInternalHooks,v=f.getFieldsValue,g=m(h),y=g.dispatch,w=i.getValue(),x=u||function(e){return(0,a.Z)({},l,e)},Z=e[n],E=(0,c.Z)((0,c.Z)({},e),x(w));E[n]=function(){var e;i.touched=!0,i.dirty=!0;for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(u.keys=[].concat((0,s.Z)(u.keys.slice(0,t)),[u.id],(0,s.Z)(u.keys.slice(t))),o([].concat((0,s.Z)(n.slice(0,t)),[e],(0,s.Z)(n.slice(t))))):(u.keys=[].concat((0,s.Z)(u.keys),[u.id]),o([].concat((0,s.Z)(n),[e]))),u.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.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||(u.keys=fe(u.keys,e,t),o(fe(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),i(p.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),f,t)})))},ke=n(29439);var Ne="__@field_split__";function Oe(e){return e.map((function(e){return"".concat((0,E.Z)(e),":").concat(e)})).join(Ne)}var Pe=function(){function e(){(0,l.Z)(this,e),this.kvs=new Map}return(0,u.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(Oe(e),t)}},{key:"get",value:function(e){return this.kvs.get(Oe(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(Oe(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}(),Se=function e(t){var n=this;(0,l.Z)(this,e),this.formHooked=!1,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,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===h?(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}):((0,v.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 Pe;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()}:{name:te(e[n]),errors:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=te(e);return n.getFieldsError([t])[0].errors},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 Pe,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,v.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,v.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,["name","errors"])),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!le(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 Pe;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 Pe;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 s=a.getNamePath();s.every((function(t,n){return e[n]===t||void 0===e[n]}))&&i.push(s)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!r||oe(i,l)){var u=a.validateRules((0,c.Z)({validateMessages:(0,c.Z)((0,c.Z)({},pe),n.validateMessages)},t));o.push(u.then((function(){return{name:l,errors:[]}})).catch((function(e){return Promise.reject({name:l,errors:e})})))}}}));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 s=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 s.catch((function(e){return e})),s},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 Se((function(){i({})}));t.current=o.getForm()}return[t.current]},Me=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ae=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,o=e.children,s=r.useContext(Me),l=r.useRef({});return r.createElement(Me.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:l.current}),s.triggerFormChange(e,t)},triggerFormFinish:function(e,t){i&&i(e,{values:t,forms:l.current}),s.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=(0,c.Z)((0,c.Z)({},l.current),{},(0,a.Z)({},e,t))),s.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.Z)({},l.current);delete t[e],l.current=t,s.unregisterForm(e)}})},o)},je=Me,Re=function(e,t){var n=e.name,a=e.initialValues,l=e.fields,u=e.form,f=e.preserve,d=e.children,p=e.component,m=void 0===p?"form":p,v=e.validateMessages,g=e.validateTrigger,b=void 0===g?"onChange":g,w=e.onValuesChange,x=e.onFieldsChange,Z=e.onFinish,C=e.onFinishFailed,k=(0,o.Z)(e,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),N=r.useContext(je),O=Te(u),P=(0,ke.Z)(O,1)[0],S=P.getInternalHooks(h),T=S.useSubscribe,M=S.setInitialValues,A=S.setCallbacks,j=S.setValidateMessages,R=S.setPreserve;r.useImperativeHandle(t,(function(){return P})),r.useEffect((function(){return N.registerForm(n,P),function(){N.unregisterForm(n)}}),[N,P,n]),j((0,c.Z)((0,c.Z)({},N.validateMessages),v)),A({onValuesChange:w,onFieldsChange:function(e){if(N.triggerFormChange(n,e),x){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i1&&(Z.motionAppear=!1);var E=Z.onVisibleChanged;return Z.onVisibleChanged=function(e){return h.current||e||w(!0),null===E||void 0===E?void 0:E(e)},b?null:l.createElement(k,{mode:s,locked:!h.current},l.createElement(ne.Z,(0,r.Z)({visible:x},Z,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,r=e.style;return l.createElement($,{id:t,className:n,style:r},a)})))}var ie=function(e){var t,n=e.style,a=e.className,u=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),m=e.internalPopupClose,v=e.children,g=e.itemIcon,y=e.expandIcon,b=e.popupClassName,w=e.popupOffset,x=e.onClick,Z=e.onMouseEnter,E=e.onMouseLeave,T=e.onTitleClick,M=e.onTitleMouseEnter,A=e.onTitleMouseLeave,j=(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=l.useContext(C),D=L.prefixCls,z=L.mode,V=L.openKeys,H=L.disabled,U=L.overflowDisabled,q=L.activeKey,W=L.selectedKeys,K=L.itemIcon,G=L.expandIcon,Y=L.onItemClick,X=L.onOpenChange,Q=L.onActive,J=l.useContext(F).isSubPathKey,ee=R(),ne="".concat(D,"-submenu"),ie=H||p,oe=l.useRef(),ae=l.useRef();var ce=g||K,se=y||G,le=V.includes(d),ue=!U&&le,fe=J(W,d),de=N(d,ie,M,A),pe=de.active,me=(0,s.Z)(de,["active"]),ve=l.useState(!1),he=(0,c.Z)(ve,2),ge=he[0],ye=he[1],be=function(e){ie||ye(e)},we=l.useMemo((function(){return pe||"inline"!==z&&(ge||J([q],d))}),[z,pe,q,ge,d,J]),xe=S(ee.length),Ze=B((function(e){null===x||void 0===x||x(O(e)),Y(e)})),Ee=I&&"".concat(I,"-popup"),Ce=l.createElement("div",(0,r.Z)({role:"menuitem",style:xe,className:"".concat(ne,"-title"),tabIndex:ie?null:-1,ref:oe,title:"string"===typeof u?u:null,"data-menu-id":U&&I?null:I,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":Ee,"aria-disabled":ie,onClick:function(e){ie||(null===T||void 0===T||T({key:d,domEvent:e}),"inline"===z&&X(d,!le))},onFocus:function(){Q(d)}},me),u,l.createElement(P,{icon:"horizontal"!==z?se:null,props:(0,o.Z)((0,o.Z)({},e),{},{isOpen:ue,isSubMenu:!0})},l.createElement("i",{className:"".concat(ne,"-arrow")}))),ke=l.useRef(z);if("inline"!==z&&(ke.current=ee.length>1?"vertical":z),!U){var Ne=ke.current;Ce=l.createElement(te,{mode:Ne,prefixCls:ne,visible:!m&&ue&&"inline"!==z,popupClassName:b,popupOffset:w,popup:l.createElement(k,{mode:"horizontal"===Ne?"vertical":Ne},l.createElement($,{id:Ee,ref:ae},v)),disabled:ie,onVisibleChange:function(e){"inline"!==z&&X(d,e)}},Ce)}return l.createElement(k,{onItemClick:Ze,mode:"horizontal"===z?"vertical":z,itemIcon:ce,expandIcon:se},l.createElement(h.Z.Item,(0,r.Z)({role:"none"},j,{component:"li",style:n,className:f()(ne,"".concat(ne,"-").concat(z),a,(t={},(0,i.Z)(t,"".concat(ne,"-open"),ue),(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===Z||void 0===Z||Z({key:d,domEvent:e})},onMouseLeave:function(e){be(!1),null===E||void 0===E||E({key:d,domEvent:e})}}),Ce,!U&&l.createElement(re,{id:Ee,open:ue,keyPath:ee},v)))};function oe(e){var t,n=e.eventKey,r=e.children,i=R(n),o=U(r,i),a=A();return l.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),t=a?o:l.createElement(ie,e,o),l.createElement(j.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 le=x.Z.LEFT,ue=x.Z.RIGHT,fe=x.Z.UP,de=x.Z.DOWN,pe=x.Z.ENTER,me=x.Z.ESC,ve=[fe,de,le,ue];function he(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=he(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,u,f){var d=l.useRef(),p=l.useRef();p.current=t;var m=function(){G.Z.cancel(d.current)};return l.useEffect((function(){return function(){m()}}),[]),function(l){var v=l.which;if([].concat(ve,[pe,me]).includes(v)){var h,g,y,b=function(){return h=new Set,g=new Map,y=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(L(r,e),"']"));t&&(h.add(t),y.set(t,e),g.set(e,t))})),h};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),h),x=y.get(w),Z=function(e,t,n,r){var o,a,c,s,l="prev",u="next",f="children",d="parent";if("inline"===e&&r===pe)return{inlineTrigger:!0};var p=(o={},(0,i.Z)(o,fe,l),(0,i.Z)(o,de,u),o),m=(a={},(0,i.Z)(a,le,n?u:l),(0,i.Z)(a,ue,n?l:u),(0,i.Z)(a,de,f),(0,i.Z)(a,pe,f),a),v=(c={},(0,i.Z)(c,fe,l),(0,i.Z)(c,de,u),(0,i.Z)(c,pe,f),(0,i.Z)(c,me,d),(0,i.Z)(c,le,n?f:d),(0,i.Z)(c,ue,n?d:f),c);switch(null===(s={inline:p,horizontal:m,vertical:v,inlineSub:p,horizontalSub:v,verticalSub:v}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case l:return{offset:-1,sibling:!0};case u: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,v);if(!Z)return;ve.includes(v)&&l.preventDefault();var E=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),m(),d.current=(0,G.Z)((function(){p.current===r&&t.focus()}))}};if(Z.sibling||!w){var C=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,h,w,Z.offset);E(C)}else if(Z.inlineTrigger)u(x);else if(Z.offset>0)u(x,!0),m(),d.current=(0,G.Z)((function(){b();var e=w.getAttribute("aria-controls"),t=ge(document.getElementById(e),h);E(t)}),5);else if(Z.offset<0){var k=c(x,!0),N=k[k.length-2],O=g.get(N);u(N,!1),E(O)}}null===f||void 0===f||f(l)}}var be=Math.random().toFixed(5).toString().slice(2),we=0;var xe="__RC_UTIL_PATH_SPLIT__",Ze=function(e){return e.join(xe)},Ee="rc-menu-more";function Ce(){var e=l.useState({}),t=(0,c.Z)(e,2)[1],n=(0,l.useRef)(new Map),r=(0,l.useRef)(new Map),i=l.useState([]),o=(0,c.Z)(i,2),s=o[0],u=o[1],f=(0,l.useRef)(0),d=(0,l.useRef)(!1),p=(0,l.useCallback)((function(e,i){var o=Ze(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)}),[]),m=(0,l.useCallback)((function(e,t){var i=Ze(t);r.current.delete(i),n.current.delete(e)}),[]),v=(0,l.useCallback)((function(e){u(e)}),[]),h=(0,l.useCallback)((function(e,t){var r=n.current.get(e)||"",i=r.split(xe);return t&&s.includes(i[0])&&i.unshift(Ee),i}),[s]),g=(0,l.useCallback)((function(e,t){return e.some((function(e){return h(e,!0).includes(t)}))}),[h]),y=(0,l.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 l.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:m,refreshOverflowKeys:v,isSubPathKey:g,getKeyPath:h,getKeys:function(){var e=(0,a.Z)(n.current.keys());return s.length&&e.push(Ee),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=l.useContext(C).prefixCls,c="".concat(a,"-item-group");return l.createElement("li",(0,r.Z)({},o,{onClick:function(e){return e.stopPropagation()},className:f()(c,t)}),l.createElement("div",{className:"".concat(c,"-title"),title:"string"===typeof n?n:void 0},n),l.createElement("ul",{className:"".concat(c,"-list")},i))};function Oe(e){var t=e.children,n=(0,s.Z)(e,["children"]),r=U(t,R(n.eventKey));return A()?r:l.createElement(Ne,(0,Z.Z)(n,["warnKey"]),r)}function Pe(e){var t=e.className,n=e.style,r=l.useContext(C).prefixCls;return A()?null:l.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})}var Se=R,Te=function(e){var t,n,u=e.prefixCls,d=void 0===u?"rc-menu":u,v=e.style,g=e.className,y=e.tabIndex,b=void 0===y?0:y,w=e.children,x=e.direction,Z=e.id,E=e.mode,C=void 0===E?"vertical":E,N=e.inlineCollapsed,P=e.disabled,S=e.disabledOverflow,T=e.subMenuOpenDelay,A=void 0===T?.1:T,j=e.subMenuCloseDelay,R=void 0===j?.1:j,L=e.forceSubMenuRender,_=e.defaultOpenKeys,D=e.openKeys,z=e.activeKey,H=e.defaultActiveFirst,q=e.selectable,W=void 0===q||q,$=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,le=e.overflowedIndicator,ue=void 0===le?"...":le,fe=e.overflowedIndicatorPopupClassName,de=e.getPopupContainer,pe=e.onClick,me=e.onOpenChange,ve=e.onKeyDown,he=(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=U(w,ke),xe=l.useState(!1),Ze=(0,c.Z)(xe,2),Ne=Ze[0],Oe=Ze[1],Pe=l.useRef(),Se=function(e){var t=(0,m.Z)(e,{value:e}),n=(0,c.Z)(t,2),r=n[0],i=n[1];return l.useEffect((function(){we+=1;var e="".concat(be,"-").concat(we);i("rc-menu-uuid-".concat(e))}),[]),r}(Z),Te="rtl"===x;var Me=l.useMemo((function(){return"inline"!==C&&"vertical"!==C||!N?[C,!1]:["vertical",N]}),[C,N]),Ae=(0,c.Z)(Me,2),je=Ae[0],Re=Ae[1],Fe=l.useState(0),Ie=(0,c.Z)(Fe,2),Le=Ie[0],_e=Ie[1],De=Le>=ge.length-1||"horizontal"!==je||S,ze=(0,m.Z)(_,{value:D,postState:function(e){return e||ke}}),Ve=(0,c.Z)(ze,2),He=Ve[0],Ue=Ve[1],Be=function(e){Ue(e),null===me||void 0===me||me(e)},qe=l.useState(He),We=(0,c.Z)(qe,2),$e=We[0],Ke=We[1],Ge="inline"===je,Ye=l.useRef(!1);l.useEffect((function(){Ge&&Ke(He)}),[He]),l.useEffect((function(){Ye.current?Ge?Ue($e):Be(ke):Ye.current=!0}),[Ge]);var Xe=Ce(),Qe=Xe.registerPath,Je=Xe.unregisterPath,et=Xe.refreshOverflowKeys,tt=Xe.isSubPathKey,nt=Xe.getKeyPath,rt=Xe.getKeys,it=Xe.getSubPathKeys,ot=l.useMemo((function(){return{registerPath:Qe,unregisterPath:Je}}),[Qe,Je]),at=l.useMemo((function(){return{isSubPathKey:tt}}),[tt]);l.useEffect((function(){et(De?ke:ge.slice(Le+1).map((function(e){return e.key})))}),[Le,De]);var ct=(0,m.Z)(z||H&&(null===(t=ge[0])||void 0===t?void 0:t.key),{value:z}),st=(0,c.Z)(ct,2),lt=st[0],ut=st[1],ft=B((function(e){ut(e)})),dt=B((function(){ut(void 0)})),pt=(0,m.Z)(G||[],{value:Y,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?ke:[e]}}),mt=(0,c.Z)(pt,2),vt=mt[0],ht=mt[1],gt=B((function(e){null===pe||void 0===pe||pe(O(e)),function(e){if(W){var t,n=e.key,r=vt.includes(n);t=K?r?vt.filter((function(e){return e!==n})):[].concat((0,a.Z)(vt),[n]):[n],ht(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"!==je&&Be(ke)}(e)})),yt=B((function(e,t){var n=He.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==je){var r=it(e);n=n.filter((function(e){return!r.has(e)}))}p()(He,n)||Be(n)})),bt=B(de),wt=ye(je,lt,Te,Se,Pe,rt,nt,ut,(function(e,t){var n=null!==t&&void 0!==t?t:!He.includes(e);yt(e,n)}),ve);l.useEffect((function(){Oe(!0)}),[]);var xt="horizontal"!==je||S?ge:ge.map((function(e,t){return l.createElement(k,{key:e.key,overflowDisabled:t>Le},e)})),Zt=l.createElement(h.Z,(0,r.Z)({id:Z,ref:Pe,prefixCls:"".concat(d,"-overflow"),component:"ul",itemComponent:V,className:f()(d,"".concat(d,"-root"),"".concat(d,"-").concat(je),g,(n={},(0,i.Z)(n,"".concat(d,"-inline-collapsed"),Re),(0,i.Z)(n,"".concat(d,"-rtl"),Te),n)),dir:x,style:v,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 l.createElement(oe,{eventKey:Ee,title:ue,disabled:De,internalPopupClose:0===t,popupClassName:fe},n)},maxCount:"horizontal"!==je||S?h.Z.INVALIDATE:h.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){_e(e)},onKeyDown:wt},he));return l.createElement(I.Provider,{value:Se},l.createElement(k,{prefixCls:d,mode:je,openKeys:He,rtl:Te,disabled:P,motion:Ne?te:null,defaultMotions:Ne?ne:null,activeKey:lt,onActive:ft,onInactive:dt,selectedKeys:vt,inlineIndent:ee,subMenuOpenDelay:A,subMenuCloseDelay:R,forceSubMenuRender:L,builtinPlacements:ae,triggerSubMenuAction:ie,getPopupContainer:bt,itemIcon:ce,expandIcon:se,onItemClick:gt,onOpenChange:yt},l.createElement(F.Provider,{value:at},Zt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(M.Provider,{value:ot},ge))))};Te.Item=V,Te.SubMenu=oe,Te.ItemGroup=Oe,Te.Divider=Pe;var Me=Te},60444: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(29439),a=n(71002),c=n(67294),s=n(34203),l=n(42550),u=n(94184),f=n.n(u),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 m=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:{}),v={};if((0,d.Z)()){var h=document.createElement("div");v=h.style}var g={};function y(e){if(g[e])return g[e];var t=m[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]}(),l=(0,o.Z)(s,2),u=l[0],f=l[1];return F((function(){if(i!==S&&i!==j){var e=L.indexOf(i),n=L[e+1],r=t(i);false===r?a(n):u((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(T)},i]};function z(e,t,n,a){var s=a.motionEnter,l=void 0===s||s,u=a.motionAppear,f=void 0===u||u,d=a.motionLeave,p=void 0===d||d,m=a.motionDeadline,v=a.motionLeaveImmediately,h=a.onAppearPrepare,g=a.onEnterPrepare,y=a.onLeavePrepare,b=a.onAppearStart,w=a.onEnterStart,x=a.onLeaveStart,C=a.onAppearActive,S=a.onEnterActive,j=a.onLeaveActive,I=a.onAppearEnd,L=a.onEnterEnd,z=a.onLeaveEnd,V=a.onVisibleChanged,H=R(),U=(0,o.Z)(H,2),B=U[0],q=U[1],W=R(k),$=(0,o.Z)(W,2),K=$[0],G=$[1],Y=R(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===O&&oe.current?t=null===L||void 0===L?void 0:L(n,e):K===P&&oe.current&&(t=null===z||void 0===z?void 0:z(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(E,r),e.removeEventListener(Z,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(E,r),e.addEventListener(Z,r),t.current=e)},i]}(ae),se=(0,o.Z)(ce,1)[0],le=c.useMemo((function(){var e,t,n;switch(K){case"appear":return e={},(0,r.Z)(e,T,h),(0,r.Z)(e,M,b),(0,r.Z)(e,A,C),e;case"enter":return t={},(0,r.Z)(t,T,g),(0,r.Z)(t,M,w),(0,r.Z)(t,A,S),t;case"leave":return n={},(0,r.Z)(n,T,y),(0,r.Z)(n,M,x),(0,r.Z)(n,A,j),n;default:return{}}}),[K]),ue=D(K,(function(e){if(e===T){var t=le.prepare;return!!t&&t(ie())}var n;pe in le&&J((null===(n=le[pe])||void 0===n?void 0:n.call(le,ie(),null))||null);return pe===A&&(se(ie()),m>0&&(clearTimeout(te.current),te.current=setTimeout((function(){ae({deadline:!0})}),m))),true})),fe=(0,o.Z)(ue,2),de=fe[0],pe=fe[1],me=_(pe);oe.current=me,F((function(){q(t);var n,r=ee.current;(ee.current=!0,e)&&(!r&&t&&f&&(n=N),r&&t&&l&&(n=O),(r&&!t&&p||!r&&v&&!t&&p)&&(n=P),n&&(G(n),de()))}),[t]),(0,c.useEffect)((function(){(K===N&&!f||K===O&&!l||K===P&&!p)&&G(k)}),[f,l,p]),(0,c.useEffect)((function(){return function(){clearTimeout(te.current),ne.current=!0}}),[]),(0,c.useEffect)((function(){void 0!==B&&K===k&&(null===V||void 0===V||V(B))}),[B,K]);var ve=Q;return le.prepare&&pe===M&&(ve=(0,i.Z)({transition:"none"},ve)),[K,pe,ve,null!==B&&void 0!==B?B:t]}var V=n(15671),H=n(43144),U=n(60136),B=n(31129),q=function(e){(0,U.Z)(n,e);var t=(0,B.Z)(n);function n(){return(0,V.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 u=c.forwardRef((function(e,t){var a=e.visible,u=void 0===a||a,d=e.removeOnLeave,p=void 0===d||d,m=e.forceRender,v=e.children,h=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),w=(0,c.useRef)(),x=(0,c.useRef)();var Z=z(b,u,(function(){try{return(0,s.Z)(w.current||x.current)}catch(e){return null}}),e),E=(0,o.Z)(Z,4),N=E[0],O=E[1],P=E[2],S=E[3],A=c.useRef(S);S&&(A.current=!0);var j=(0,c.useRef)(t);j.current=t;var R,F=c.useCallback((function(e){w.current=e,(0,l.mH)(j.current,e)}),[]),I=(0,i.Z)((0,i.Z)({},y),{},{visible:u});if(v)if(N!==k&&n(e)){var L,D;O===T?D="prepare":_(O)?D="active":O===M&&(D="start"),R=v((0,i.Z)((0,i.Z)({},I),{},{className:f()(C(h,N),(L={},(0,r.Z)(L,C(h,"".concat(N,"-").concat(D)),D),(0,r.Z)(L,h,"string"===typeof h),L)),style:P}),F)}else R=S?v((0,i.Z)({},I),F):!p&&A.current?v((0,i.Z)((0,i.Z)({},I),{},{className:g}),F):m?v((0,i.Z)((0,i.Z)({},I),{},{style:{display:"none"}}),F):null;else R=null;return c.createElement(q,{ref:x},R)}));return u.displayName="CSSMotion",u}(x),$=n(87462),K=n(44925),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 l.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,U.Z)(r,e);var n=(0,B.Z)(r);function r(){var e;return(0,V.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"]),l=i||c.Fragment,u={};return ne.forEach((function(e){u[e]=s[e],delete s[e]})),delete s.keys,c.createElement(l,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)({},u,{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(31129),l=n(67294),u=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,l=[];return t.forEach((function(n,i){var a=n.notice,s=n.holderCallback,u=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:u,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});l.push(f),e.noticePropsMap[f]={props:p,holderCallback:s}})),u.createElement("div",{className:p()(r,a),style:s},u.createElement(m.V,{keys:l,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,l=e.noticePropsMap[n],f=l.props,d=l.holderCallback;return d?u.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))}}):u.createElement(v.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}(u.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(u.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,h.Z)(e)}}))}})),c)};var x=w},51550:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(93433),i=n(87462),o=n(29439),a=n(67294),c=n(51784);function s(e){var t=a.useRef({}),n=a.useState([]),s=(0,o.Z)(n,2),l=s[0],u=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 l=a.createElement(c.Z,(0,i.Z)({},n,{holder:e}));t.current[s]=l,u((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat((0,r.Z)(e),[l]);var i=(0,r.Z)(e);return i[t]=l,i}))}o=!1}))},a.createElement(a.Fragment,null,l)]}},19214:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(87462),i=n(1413),o=n(29439),a=n(44925),c=n(67294),s=n(94184),l=n.n(s),u=n(4084),f=void 0;function d(e,t){var n=e.prefixCls,o=e.invalidate,s=e.item,d=e.renderItem,p=e.responsive,m=e.registerSize,v=e.itemKey,h=e.className,g=e.style,y=e.children,b=e.display,w=e.order,x=e.component,Z=void 0===x?"div":x,E=(0,a.Z)(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),C=p&&!b;function k(e){m(v,e)}c.useEffect((function(){return function(){k(null)}}),[]);var N,O=d&&s!==f?d(s):y;o||(N={opacity:C?0:1,height:C?0:f,overflowY:C?"hidden":f,order:p?w:f,pointerEvents:C?"none":f,position:C?"absolute":f});var P={};C&&(P["aria-hidden"]=!0);var S=c.createElement(Z,(0,r.Z)({className:l()(!o&&n,h),style:(0,i.Z)((0,i.Z)({},N),g)},P,E,{ref:t}),O);return p&&(S=c.createElement(u.default,{onResize:function(e){k(e.offsetWidth)}},S)),S}var p=c.forwardRef(d);p.displayName="Item";var m=p,v=n(75164);var h=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 u=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(m,(0,r.Z)({ref:t,className:l()(u,d)},f,p)))},g=c.forwardRef(h);g.displayName="RawItem";var y=g,b=c.createContext(null),w="responsive",x="invalidate";function Z(e){return"+ ".concat(e.length," ...")}function E(e,t){var n=e.prefixCls,s=void 0===n?"rc-overflow":n,f=e.data,d=void 0===f?[]:f,p=e.renderItem,h=e.renderRawItem,g=e.itemKey,y=e.itemWidth,E=void 0===y?10:y,C=e.ssr,k=e.style,N=e.className,O=e.maxCount,P=e.renderRest,S=e.renderRawRest,T=e.suffix,M=e.component,A=void 0===M?"div":M,j=e.itemComponent,R=e.onVisibleChange,F=(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.lengthO,Ee=(0,c.useMemo)((function(){var e=d;return we?e=null===z&&L?d:d.slice(0,Math.min(d.length,H/E)):"number"===typeof O&&(e=d.slice(0,O)),e}),[d,E,z,O,we]),Ce=(0,c.useMemo)((function(){return we?d.slice(pe+1):d.slice(Ee.length)}),[d,Ee,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 Oe(e,t){de(e),t||(ge(eH){Oe(r-1),se(e-i-re+J);break}}T&&Se(0)+re>H&&se(null)}}),[H,q,J,re,ke,Ee]);var Te=he&&!!Ce.length,Me={};null!==ce&&we&&(Me={position:"absolute",left:ce,top:0});var Ae,je={prefixCls:ye,responsive:we,component:j,invalidate:xe},Re=h?function(e,t){var n=ke(e,t);return c.createElement(b.Provider,{key:n,value:(0,i.Z)((0,i.Z)({},je),{},{order:t,item:e,itemKey:n,registerSize:Pe,display:t<=pe})},h(e,t))}:function(e,t){var n=ke(e,t);return c.createElement(m,(0,r.Z)({},je,{order:t,key:n,item:e,renderItem:Ne,itemKey:n,registerSize:Pe,display:t<=pe}))},Fe={order:Te?pe:Number.MAX_SAFE_INTEGER,className:"".concat(ye,"-rest"),registerSize:function(e,t){ee(t),Y(J)},display:Te};if(S)S&&(Ae=c.createElement(b.Provider,{value:(0,i.Z)((0,i.Z)({},je),Fe)},S(Ce)));else{var Ie=P||Z;Ae=c.createElement(m,(0,r.Z)({},je,Fe),"function"===typeof Ie?Ie(Ce):Ie)}var Le=c.createElement(A,(0,r.Z)({className:l()(!xe&&s,N),style:k,ref:t},F),Ee.map(Re),Ze?Ae:null,T&&c.createElement(m,(0,r.Z)({},je,{order:pe,className:"".concat(ye,"-suffix"),registerSize:function(e,t){ie(t)},display:!0,style:Me}),T));return we&&(Le=c.createElement(u.default,{onResize:function(e,t){V(t.clientWidth)}},Le)),Le}var C=c.forwardRef(E);C.displayName="Overflow",C.Item=y,C.RESPONSIVE=w,C.INVALIDATE=x;var k=C},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"}},4084:function(e,t,n){"use strict";n.r(t);var r=n(1413),i=n(15671),o=n(43144),a=n(60136),c=n(31129),s=n(67294),l=n(34203),u=n(50344),f=n(80334),d=n(42550),p=n(91033),m=function(e){(0,a.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,i.Z)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,i=t[0].target,o=i.getBoundingClientRect(),a=o.width,c=o.height,s=i.offsetWidth,l=i.offsetHeight,u=Math.floor(a),f=Math.floor(c);if(e.state.width!==u||e.state.height!==f||e.state.offsetWidth!==s||e.state.offsetHeight!==l){var d={width:u,height:f,offsetWidth:s,offsetHeight:l};e.setState(d),n&&Promise.resolve().then((function(){n((0,r.Z)((0,r.Z)({},d),{},{offsetWidth:s,offsetHeight:l}),i)}))}},e.setChildNode=function(t){e.childNode=t},e}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=(0,l.Z)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new p.Z(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=(0,u.Z)(e);if(t.length>1)(0,f.ZP)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return(0,f.ZP)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(s.isValidElement(n)&&(0,d.Yr)(n)){var r=n.ref;t[0]=s.cloneElement(n,{ref:(0,d.sQ)(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!s.isValidElement(e)||"key"in e&&null!==e.key?e:s.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(s.Component);m.displayName="ResizeObserver",t.default=m},34084:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizableTextArea:function(){return x},default:function(){return Z}});var r,i,o=n(87462),a=n(15671),c=n(43144),s=n(60136),l=n(31129),u=n(67294),f=n(1413),d=n(4942),p=n(4084),m=n(98423),v=n(94184),h=n.n(v),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,l.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,l=o.sizingStyle;r.setAttribute("style","".concat(l,";").concat(g)),r.value=e.value||e.placeholder||"";var u,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 m=r.scrollHeight-a;null!==n&&(f=m*n,"border-box"===s&&(f=f+a+c),p=Math.max(f,p)),null!==i&&(d=m*i,"border-box"===s&&(d=d+a+c),u=p>d?"":"hidden",p=Math.min(d,p))}return{height:p,minHeight:f,maxHeight:d,overflowY:u,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,l=e.disabled,v=c.state,g=v.textareaStyles,y=v.resizeStatus,b=(0,m.Z)(c.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),w=h()(n,s,(0,d.Z)({},"".concat(n,"-disabled"),l));"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 u.createElement(p.default,{onResize:c.handleResize,disabled:!(r||a)},u.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}(u.Component),Z=function(e){(0,s.Z)(n,e);var t=(0,l.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 u.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}(u.Component)},51472: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(44925),c=n(67294),s=n(18481),l=n(43159),u=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,m=void 0===p?0:p,v=e.mouseLeaveDelay,h=void 0===v?.1:v,g=e.overlayStyle,y=e.prefixCls,b=void 0===y?"rc-tooltip":y,w=e.children,x=e.onVisibleChange,Z=e.afterVisibleChange,E=e.transitionName,C=e.animation,k=e.motion,N=e.placement,O=void 0===N?"right":N,P=e.align,S=void 0===P?{}:P,T=e.destroyTooltipOnHide,M=void 0!==T&&T,A=e.defaultVisible,j=e.getTooltipContainer,R=e.overlayInnerStyle,F=(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)({},F);"visible"in e&&(L.popupVisible=e.visible);var _=!1,D=!1;if("boolean"===typeof M)_=M;else if(M&&"object"===(0,i.Z)(M)){var z=M.keepParent;_=!0===z,D=!1===z}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(u,{key:"content",prefixCls:b,id:i,overlay:r,overlayInnerStyle:R})]},action:d,builtinPlacements:l.C,popupPlacement:O,ref:I,popupAlign:S,getPopupContainer:j,onPopupVisibleChange:x,afterPopupVisibleChange:Z,popupTransitionName:E,popupAnimation:C,popupMotion:k,defaultPopupVisible:A,destroyPopupOnHide:_,autoDestroy:D,mouseLeaveDelay:h,popupStyle:g,mouseEnterDelay:m},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}}},18481: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),l=n(31129),u=n(67294),f=n(73935),d=n(75164),p=n(94999),m=n(34203),v=n(42550),h=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(29439),Z=n(44925),E=n(31131),C=n(60444);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,l=e.maskTransitionName;if(!a)return null;var f={};return(c||l||s)&&(f=(0,r.Z)({motionAppear:!0},k({motion:c,prefixCls:t,transitionName:l,animation:s}))),u.createElement(C.Z,(0,i.Z)({},f,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return u.createElement("div",{style:{zIndex:o},className:b()("".concat(t,"-mask"),n)})}))}var O,P=n(71002),S=n(5110);function T(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 M(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 Ze(e,t,n){return e.topn.bottom}function Ee(e,t,n){var r=[];return pe.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ce(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 Oe(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 l={},u=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),m=pe.merge(d,p);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&xe(p,d,f)){var v=Ee(i,/[lr]/gi,{l:"r",r:"l"}),h=Ce(o,0),g=Ce(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,l))}return m.width!==d.width&&pe.css(s,"width",pe.width(s)+m.width-d.width),m.height!==d.height&&pe.css(s,"height",pe.height(s)+m.height-d.height),pe.offset(s,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:l}}function Pe(e,t,n){var r=n.target||t;return Oe(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))}Pe.__getOffsetParent=ve,Pe.__getVisibleRectForElement=ge;var Se=n(91033);function Te(e,t){var n=null,r=null;var i=new Se.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),l=Math.floor(c);n===s&&r===l||Promise.resolve().then((function(){t({width:s,height:l})})),n=s,r=l}}));return e&&i.observe(e),function(){i.disconnect()}}function Me(e){return"function"!==typeof e?null:e()}function Ae(e){return"object"===(0,P.Z)(e)&&e?e:null}var je=u.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,l=void 0===s?0:s,f=u.useRef({}),d=u.useRef(),m=u.Children.only(n),g=u.useRef({});g.current.disabled=r,g.current.target=i,g.current.onAlign=a;var y=function(e,t){var n=u.useRef(!1),r=u.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=Me(n),s=Ae(n);f.current.element=c,f.current.point=s;var l=document.activeElement;return c&&(0,S.Z)(c)?i=Pe(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),l=pe.viewportWidth(a),u=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+l&&i>=0&&i<=s+u,p=[n.points[0],"cc"];return Oe(e,f,M(M({},n),{},{points:p}),d)}(a,s,o)),function(e,t){e!==document.activeElement&&(0,p.Z)(t,e)&&"function"===typeof e.focus&&e.focus()}(l,a),r&&i&&r(a,i),!0}return!1}),l),b=(0,x.Z)(y,2),w=b[0],Z=b[1],E=u.useRef({cancel:function(){}}),C=u.useRef({cancel:function(){}});u.useEffect((function(){var e,t,n=Me(i),r=Ae(i);d.current!==C.current.element&&(C.current.cancel(),C.current.element=d.current,C.current.cancel=Te(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(),E.current.element!==n&&(E.current.cancel(),E.current.element=n,E.current.cancel=Te(n,w)))})),u.useEffect((function(){r?Z():w()}),[r]);var k=u.useRef(null);return u.useEffect((function(){c?k.current||(k.current=(0,h.Z)(window,"resize",w)):k.current&&(k.current.remove(),k.current=null)}),[c]),u.useEffect((function(){return function(){E.current.cancel(),C.current.cancel(),k.current&&k.current.remove(),Z()}}),[]),u.useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),u.isValidElement(m)&&(m=u.cloneElement(m,{ref:(0,v.sQ)(m.ref,d)})),m}));je.displayName="Align";var Re=je,Fe=n(87757),Ie=n.n(Fe),Le=n(15861),_e=["measure","align",null,"motion"],De=u.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,a=e.className,c=e.style,s=e.children,l=e.zIndex,f=e.stretch,p=e.destroyPopupOnHide,m=e.forceRender,v=e.align,h=e.point,g=e.getRootDomNode,y=e.getClassNameFromAlign,w=e.onAlign,Z=e.onMouseEnter,E=e.onMouseLeave,N=e.onMouseDown,O=e.onTouchStart,P=(0,u.useRef)(),S=(0,u.useRef)(),T=(0,u.useState)(),M=(0,x.Z)(T,2),A=M[0],j=M[1],R=function(e){var t=u.useState({width:0,height:0}),n=(0,x.Z)(t,2),r=n[0],i=n[1];return[u.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),F=(0,x.Z)(R,2),I=F[0],L=F[1];var _=function(e,t){var n=(0,u.useState)(null),r=(0,x.Z)(n,2),i=r[0],o=r[1],a=(0,u.useRef)(),c=(0,u.useRef)(!1);function s(e){c.current||o(e)}function l(){d.Z.cancel(a.current)}return(0,u.useEffect)((function(){s("measure")}),[e]),(0,u.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,u.useEffect)((function(){return function(){c.current=!0,l()}}),[]),[i,function(e){l(),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),z=D[0],V=D[1],H=(0,u.useRef)();function U(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function B(e,t){var n=y(t);A!==n&&j(n),"align"===z&&(A!==n?Promise.resolve().then((function(){U()})):V((function(){var e;null===(e=H.current)||void 0===e||e.call(H)})),null===w||void 0===w||w(e,t))}var q=(0,r.Z)({},k(e));function W(){return new Promise((function(e){H.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=q[e];q[e]=function(e,n){return V(),null===t||void 0===t?void 0:t(e,n)}})),u.useEffect((function(){q.motionName||"motion"!==z||V()}),[q.motionName,z]),u.useImperativeHandle(t,(function(){return{forceAlign:U,getElement:function(){return S.current}}}));var $=(0,r.Z)((0,r.Z)({},I),{},{zIndex:l,opacity:"motion"!==z&&"stable"!==z&&n?0:void 0,pointerEvents:"stable"===z?void 0:"none"},c),K=!0;!(null===v||void 0===v?void 0:v.points)||"align"!==z&&"stable"!==z||(K=!1);var G=s;return u.Children.count(s)>1&&(G=u.createElement("div",{className:"".concat(o,"-content")},s)),u.createElement(C.Z,(0,i.Z)({visible:n,ref:S,leavedClassName:"".concat(o,"-hidden")},q,{onAppearPrepare:W,onEnterPrepare:W,removeOnLeave:p,forceRender:m}),(function(e,t){var n=e.className,i=e.style,c=b()(o,a,A,n);return u.createElement(Re,{target:h||g,key:"popup",ref:P,monitorWindowResize:!0,disabled:K,align:v,onAlign:B},u.createElement("div",{ref:t,className:c,onMouseEnter:Z,onMouseLeave:E,onMouseDownCapture:N,onTouchStartCapture:O,style:(0,r.Z)((0,r.Z)({},i),$)},G))}))}));De.displayName="PopupInner";var ze=De,Ve=u.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,a=e.zIndex,c=e.children,s=e.mobile,l=(s=void 0===s?{}:s).popupClassName,f=s.popupStyle,d=s.popupMotion,p=void 0===d?{}:d,m=s.popupRender,v=u.useRef();u.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var h=(0,r.Z)({zIndex:a},f),g=c;return u.Children.count(c)>1&&(g=u.createElement("div",{className:"".concat(n,"-content")},c)),m&&(g=m(g)),u.createElement(C.Z,(0,i.Z)({visible:o,ref:v,removeOnLeave:!0},p),(function(e,t){var i=e.className,o=e.style,a=b()(n,l,i);return u.createElement("div",{ref:t,className:a,style:(0,r.Z)((0,r.Z)({},o),h)},g)}))}));Ve.displayName="MobilePopupInner";var He=Ve,Ue=["visible","mobile"],Be=u.forwardRef((function(e,t){var n=e.visible,o=e.mobile,a=(0,Z.Z)(e,Ue),c=(0,u.useState)(n),s=(0,x.Z)(c,2),l=s[0],f=s[1],d=(0,u.useState)(!1),p=(0,x.Z)(d,2),m=p[0],v=p[1],h=(0,r.Z)((0,r.Z)({},a),{},{visible:l});(0,u.useEffect)((function(){f(n),n&&o&&v((0,E.Z)())}),[n,o]);var g=m?u.createElement(He,(0,i.Z)({},h,{mobile:o,ref:t})):u.createElement(ze,(0,i.Z)({},h,{ref:t}));return u.createElement("div",null,u.createElement(N,h),g)}));Be.displayName="Popup";var qe=Be,We=u.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,l.Z)(g);function g(e){var t,r;return(0,o.Z)(this,g),(t=n.call(this,e)).popupRef=u.createRef(),t.triggerRef=u.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,m.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),l=s.parentNode;c.set(r,l),l.removeChild(s)}var u=Array.from(c.get(r).children).find((function(e){return"STYLE"===e.tagName&&e[i]===t}));if(u){var f,d,p;if((null===(f=n.csp)||void 0===f?void 0:f.nonce)&&u.nonce!==(null===(d=n.csp)||void 0===d?void 0:d.nonce))u.nonce=null===(p=n.csp)||void 0===p?void 0:p.nonce;return u.innerHTML!==e&&(u.innerHTML=e),u}var m=a(e,n);return m[i]=t,m}},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}},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 l=(0,r.useRef)(!1);return!l.current&&(0,o.Z)()&&(s.current=a(),l.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(29439),i=n(67294);function o(e,t){var n=t||{},o=n.defaultValue,a=n.value,c=n.onChange,s=n.postState,l=i.useState((function(){return void 0!==a?a:void 0!==o?"function"===typeof o?o():o:"function"===typeof e?e():e})),u=(0,r.Z)(l,2),f=u[0],d=u[1],p=void 0!==a?a:f;s&&(p=s(p));var m=i.useRef(!0);return i.useEffect((function(){m.current?m.current=!1:void 0===a&&d(a)}),[a]),[p,function(e){d(e),p!==e&&c&&c(e,p)}]}},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);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;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}(),u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Z="undefined"!==typeof WeakMap?new WeakMap:new r,E=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=l.getInstance(),r=new x(t,n,this);Z.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=Z.get(this))[e].apply(t,arguments)}}));var C="undefined"!==typeof o.ResizeObserver?o.ResizeObserver:E;t.Z=C},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,u):this[c[0]]=c[1]:3==c.length?typeof c[1]!==a||c[1].exec&&c[1].test?this[c[0]]=u?u.replace(c[1],c[2]):o:this[c[0]]=u?c[1].call(this,u,c[2]):o:4==c.length&&(this[c[0]]=u?c[3].call(this,u.replace(c[1],c[2])):o):this[c]=u||o;f+=2}},U=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var r=0;r255?V(e,255):e,this},this.setUA(n),this};W.VERSION="1.0.1",W.BROWSER=_([f,m,"major"]),W.CPU=_([v]),W.DEVICE=_([u,p,d,h,g,b,y,w,x]),W.ENGINE=W.OS=_([f,m]),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}})},29439: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)()}},93433: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(34651)}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/upgrade-c5fdf5dc1f90cc34e241.js b/static/admin/_next/static/chunks/pages/upgrade-67a0b6eae0000b451e71.js similarity index 94% rename from static/admin/_next/static/chunks/pages/upgrade-c5fdf5dc1f90cc34e241.js rename to static/admin/_next/static/chunks/pages/upgrade-67a0b6eae0000b451e71.js index e23c11062..0937247c4 100644 --- a/static/admin/_next/static/chunks/pages/upgrade-c5fdf5dc1f90cc34e241.js +++ b/static/admin/_next/static/chunks/pages/upgrade-67a0b6eae0000b451e71.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69],{59334:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return O}});var n=t(4942),c=t(15861),a=t(87757),o=t.n(a),u=t(67294),i=t(32840),s=t(4525),l=t(2023),f=t(94853),d=t(85893);function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var r=1;r=i)&&Object.keys(t.O).every((function(e){return t.O[e](r[c])}))?r.splice(c--,1):(a=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]}}(),t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,r){return t.f[r](e,n),n}),[]))},t.u=function(e){return"static/chunks/"+e+".e602e2954bee4d3743a7.js"},t.miniCssF=function(e){return"static/css/"+{361:"daab8d18100466477c6d",888:"aa68552b8433355aec7c"}[e]+".css"},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={},n="_N_E:";t.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var a,c;if(void 0!==i)for(var f=document.getElementsByTagName("script"),l=0;l=i)&&Object.keys(t.O).every((function(e){return t.O[e](r[c])}))?r.splice(c--,1):(a=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[r,o,i]}}(),t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,r){return t.f[r](e,n),n}),[]))},t.u=function(e){return"static/chunks/"+e+".e602e2954bee4d3743a7.js"},t.miniCssF=function(e){return"static/css/"+{361:"daab8d18100466477c6d",888:"aa68552b8433355aec7c"}[e]+".css"},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={},n="_N_E:";t.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var a,c;if(void 0!==i)for(var f=document.getElementsByTagName("script"),d=0;dOwncast 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 1f222b0c6..2b47ad20a 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 496301e71..330ebf44d 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 f0396367d..9d7e163b4 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

Connected Chat Participants

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



Banned Users

Last Known Display Name
Created
Disabled at
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Connected Chat Participants

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



Banned Users

Last Known Display Name
Created
Disabled at
No Data
\ No newline at end of file diff --git a/static/admin/config-chat/index.html b/static/admin/config-chat/index.html index c8f7f2f80..2aea5476b 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 27b12e62d..156a6699d 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 42930dd18..c937c76af 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 d8add4559..6ba72b8d0 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 58b7853a5..70c0d9ff3 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 distribute 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.

\ 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 distribute 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.

\ No newline at end of file diff --git a/static/admin/config-video/index.html b/static/admin/config-video/index.html index c142278d9..28abe26bc 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 7bed01251..3b58da61f 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 75434d5ee..be5c33fe4 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 38dd0412b..7a213129f 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 6ef63516d..22c6f59e4 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 8e197f7d0..664af72ed 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

Wed Dec 31 1969

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

Wed Dec 31 1969

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 f22f63c3d..4e6189e01 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 92bc6106c..f2b83c27b 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