oziko-ui-kit 0.0.99 → 0.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -46,7 +46,7 @@ function(e,t){const n=no(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
46
46
  * https://www.chartjs.org
47
47
  * (c) 2024 Chart.js Contributors
48
48
  * Released under the MIT License
49
- */class Wu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const o=t.listeners[r],i=t.duration;o.forEach((r=>r({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=ec.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,n,e,"progress")),o.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=o.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Vu=new Wu;const Yu="transparent",Xu={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=dc(e||Yu),o=r.valid&&dc(t||Yu);return o&&o.valid?o.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class qu{constructor(e,t,n,r){const o=t[n];r=Zc([e.to,r,o,e.from]);const i=Zc([e.from,o,r]);this._active=!0,this._fn=e.fn||Xu[e.type||typeof i],this._easing=cc[e.easing]||cc.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Zc([e.to,t,r,e.from]),this._from=Zc([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||t<n),!this._active)return this._target[r]=a,void this._notify(!0);t<0?this._target[r]=o:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(o,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class Uu{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!ol(e))return;const t=Object.keys(kc.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((r=>{const o=e[r];if(!ol(o))return;const i={};for(const e of t)i[e]=o[e];(rl(o.properties)&&o.properties||[r]).forEach((e=>{e!==r&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){const o=e[r[t]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),o}_createAnimations(e,t){const n=this._properties,r=[],o=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const c=t[l];let u=o[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(o[l]=u=new qu(d,e,l,c),r.push(u)):e[l]=c}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(Vu.add(this._chart,n),!0):void 0}}function Zu(e,t){const n=e&&e.options||{},r=n.reverse,o=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:o,end:r?o:i}}function Gu(e,t){const n=[],r=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Ku(e,t,n,r={}){const o=e.keys,i="single"===r.mode;let a,s,l,c;if(null===t)return;let u=!1;for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(u=!0,r.all)continue;break}c=e.values[l],il(c)&&(i||0===t||Al(t)===Al(c))&&(t+=c)}return u||r.all?t:0}function Ju(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Qu(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function ed(e,t,n,r){for(const o of t.getMatchingVisibleMetas(r).reverse()){const t=e[o.index];if(n&&t>0||!n&&t<0)return o.index}return null}function td(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,r),d=t.length;let h;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Qu(o,u,i),h[s]=d,h._top=ed(h,a,!0,r.type),h._bottom=ed(h,a,!1,r.type);(h._visualValues||(h._visualValues={}))[s]=d}}function nd(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function rd(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n],void 0!==t[r]._visualValues&&void 0!==t[r]._visualValues[n]&&delete t[r]._visualValues[n]}}}const od=e=>"reset"===e||"none"===e,id=(e,t)=>t?e:Object.assign({},e);class ad{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Ju(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&rd(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,o=t.xAxisID=sl(n.xAxisID,nd(e,"x")),i=t.yAxisID=sl(n.yAxisID,nd(e,"y")),a=t.rAxisID=sl(n.rAxisID,nd(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,o,i,a),c=t.vAxisID=r(s,i,o,a);t.xScale=this.getScaleForId(o),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Jl(this._data,this),e._stacked&&rd(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(ol(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:r}=t,o="x"===n.axis?"x":"y",i="x"===r.axis?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[o]:u,[i]:e[u]};return s}(t,e)}else if(n!==t){if(n){Jl(n,this);const e=this._cachedMeta;rd(e),e._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Kl.forEach((t=>{const n="_onData"+_l(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const o=r.apply(this,t);return e._chartjs.listeners.forEach((e=>{"function"==typeof e[n]&&e[n](...t)})),o}})})))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=t._stacked;t._stacked=Ju(t.vScale,t),t.stack!==n.stack&&(r=!0,rd(t),t.stack=n.stack),this._resyncElements(e),(r||o!==t._stacked)&&(td(this,t._parsed),t._stacked=Ju(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:i}=n,a=o.axis;let s,l,c,u=0===e&&t===r.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=rl(r[e])?this.parseArrayData(n,r,e,t):ol(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const o=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(o()&&(u=!1),d=l);n._sorted=u}i&&td(this,c)}parsePrimitiveData(e,t,n,r){const{iScale:o,vScale:i}=e,a=o.axis,s=i.axis,l=o.getLabels(),c=o===i,u=new Array(r);let d,h,p;for(d=0,h=r;d<h;++d)p=d+n,u[d]={[a]:c||o.parse(l[p],p),[s]:i.parse(t[p],p)};return u}parseArrayData(e,t,n,r){const{xScale:o,yScale:i}=e,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],a[s]={x:o.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,r){const{xScale:o,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,d,h;for(c=0,u=r;c<u;++c)d=c+n,h=t[d],l[c]={x:o.parse(bl(h,a),d),y:i.parse(bl(h,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,o=this._cachedMeta,i=t[e.axis];return Ku({keys:Gu(r,!0),values:t._stacks[e.axis]._visualValues},i,o.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const o=n[t.axis];let i=null===o?NaN:o;const a=r&&n._stacks[t.axis];r&&a&&(r.values=a,i=Ku(r,o,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&e===n.iScale,i=r.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Gu(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:r,maxDefined:o}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let d,h;function p(){h=r[d];const t=h[a.axis];return!il(h[e.axis])||c>t||u<t}for(d=0;d<i&&(p()||(this.updateRangeFromParsed(l,e,h,s),!o));++d);if(o)for(d=i-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,e,h,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=t.length;r<o;++r)i=t[r][e.axis],il(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,r=t.vScale,o=this.getParsed(e);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,r,o;return ol(e)?(t=e.top,n=e.right,r=e.bottom,o=e.left):t=n=r=o=e,{top:t,right:n,bottom:r,left:o,disabled:!1===e}}(sl(this.options.clip,function(e,t,n){if(!1===n)return!1;const r=Zu(e,n),o=Zu(t,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],o=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,o,a,s),c=a;c<a+s;++c){const t=r[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,o))}for(c=0;c<i.length;++c)i[c].draw(e,o)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];o=t.$context||(t.$context=function(e,t,n){return Gc(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),o.parsed=this.getParsed(e),o.raw=r.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=function(e,t){return Gc(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!t,o.mode=n,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const r="active"===t,o=this._cachedDataOpts,i=e+"-"+t,a=o[i],s=this.enableOptionSharing&&xl(n);if(a)return id(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(kc.elements[e]),p=l.resolveNamedOptions(d,h,(()=>this.getContext(n,r,t)),u);return p.$shared&&(p.$shared=s,o[i]=Object.freeze(id(p,s))),p}_resolveAnimations(e,t,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${t}`,a=o[i];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,t),i=r.getOptionScopes(this.getDataset(),o);s=r.createResolver(i,this.getContext(e,n,t))}const l=new Uu(r,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||od(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(t,o)||o!==r;return this.updateSharedOptions(o,t,n),{sharedOptions:o,includeOptions:i}}updateElement(e,t,n,r){od(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!od(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const o=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const r=n.length,o=t.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,e):o<r&&this._removeElements(o,r-o)}_insertElements(e,t,n=!0){const r=this._cachedMeta,o=r.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(o),a=e;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(o,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(e,t);n._stacked&&rd(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function sd(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let t=0,o=n.length;t<o;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=Ql(r.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let r,o,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(xl(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(r=0,o=n.length;r<o;++r)i=t.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=t.ticks.length;r<o;++r)i=t.getPixelForTick(r),l();return s}function ld(e,t,n,r){return rl(e)?function(e,t,n,r){const o=n.parse(e[0],r),i=n.parse(e[1],r),a=Math.min(o,i),s=Math.max(o,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:o,end:i,min:a,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function cd(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),s=o===i,l=[];let c,u,d,h;for(c=n,u=n+r;c<u;++c)h=t[c],d={},d[o.axis]=s||o.parse(a[c],c),l.push(ld(h,d,i,c));return l}function ud(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function dd(e,t,n,r){let o=t.borderSkipped;const i={};if(!o)return void(e.borderSkipped=i);if(!0===o)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:t,top:o,bottom:i}}(e);"middle"===o&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?o=c:(n._bottom||0)===r?o=u:(i[hd(u,a,s,l)]=!0,o=c)),i[hd(o,a,s,l)]=!0,e.borderSkipped=i}function hd(e,t,n,r){var o,i,a;return r?(a=n,e=pd(e=(o=e)===(i=t)?a:o===a?i:o,n,t)):e=pd(e,t,n),e}function pd(e,t,n){return"start"===e?t:"end"===e?n:e}function fd(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class md extends ad{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,r){return cd(e,t,n,r)}parseArrayData(e,t,n,r){return cd(e,t,n,r)}parseObjectData(e,t,n,r){const{iScale:o,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===i.axis?a:s,u=[];let d,h,p,f;for(d=n,h=n+r;d<h;++d)f=t[d],p={},p[o.axis]=o.parse(bl(f,l),d),u.push(ld(bl(f,c),p,i,d));return u}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);const o=n._custom;o&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:r}=t,o=this.getParsed(e),i=o._custom,a=ud(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){const o="reset"===r,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r);for(let h=t;h<t+n;h++){const t=this.getParsed(h),n=o||nl(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,c),f=(t._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||ud(t._custom)||i===f._top||i===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(m.options=u||this.resolveDataElementOptions(h,e[h].active?"active":r));const g=m.options||e[h].options;dd(m,g,f,i),fd(m,g,c.ratio),this.updateElement(e[h],h,m,r)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),o=n.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(t),s=a&&a[n.axis],l=e=>{const t=e._parsed.find((e=>e[n.axis]===s)),r=t&&t[e.vScale.axis];if(nl(r)||isNaN(r))return!0};for(const n of r)if((void 0===t||!l(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),o=void 0!==t?r.indexOf(t):-1;return-1===o?r.length-1:o}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let o,i;for(o=0,i=t.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=e.barThickness;return{min:a||sd(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:o,minBarLength:i}}=this,a=o||0,s=this.getParsed(e),l=s._custom,c=ud(l);let u,d,h=s[t.axis],p=0,f=n?this.applyStack(t,s,n):h;f!==h&&(p=f-h,f=h),c&&(h=l.barStart,f=l.barEnd-l.barStart,0!==h&&Al(h)!==Al(l.barEnd)&&(p=0),p+=h);const m=nl(o)||c?p:o;let g=t.getPixelForValue(m);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(p+f):g,d=u-g,Math.abs(d)<i){d=function(e,t,n){return 0!==e?Al(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,h===a&&(g-=d/2);const e=t.getPixelForDecimal(0),o=t.getPixelForDecimal(1),l=Math.min(e,o),p=Math.max(e,o);g=Math.max(Math.min(g,p),l),u=g+d,n&&!c&&(s._stacks[t.axis]._visualValues[r]=t.getValueForPixel(u)-t.getValueForPixel(g))}if(g===t.getPixelForValue(a)){const e=Al(d)*t.getLineWidthForValue(a)/2;g+=e,d-=e}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,o=r.skipNull,i=sl(r.maxBarThickness,1/0);let a,s;if(t.grouped){const n=o?this._getStackCount(e):t.stackCount,l="flex"===r.barThickness?function(e,t,n,r){const o=t.pixels,i=o[e];let a=e>0?o[e-1]:null,s=e<o.length-1?o[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}(e,t,r,n):function(e,t,n,r){const o=n.barThickness;let i,a;return nl(o)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:t.pixels[e]-i/2}}(e,t,r,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length;let o=0;for(;o<r;++o)null===this.getParsed(o)[t.axis]||n[o].hidden||n[o].draw(this._ctx)}}class gd extends ad{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map(((t,o)=>{const i=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,i,a=e=>+n[e];if(ol(n[e])){const{key:e="value"}=this._parsing;a=t=>+bl(n[t],e)}for(o=e,i=e+t;o<i;++o)r._parsed[o]=a(o)}}_getRotation(){return $l(this.options.rotation-90)}_getCircumference(){return $l(this.options.circumference)}_getRotationExtents(){let e=Cl,t=-Cl;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,o=r._getRotation(),i=r._getCircumference();e=Math.min(e,o),t=Math.max(t,o+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,r=this._cachedMeta,o=r.data,i=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:m,offsetY:g}=function(e,t,n){let r=1,o=1,i=0,a=0;if(t<Cl){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),h=Math.sin(l),p=(e,t,r)=>Yl(e,s,l,!0)?1:Math.max(t,t*n,r,r*n),f=(e,t,r)=>Yl(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n),m=p(0,c,d),g=p(Ol,u,h),v=f(kl,c,d),y=f(kl+Ol,u,h);r=(m-v)/2,o=(g-y)/2,i=-(m+v)/2,a=-(g+y)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:a}}(h,d,s),v=(n.width-i)/p,y=(n.height-i)/f,b=Math.max(Math.min(v,y)/2,0),_=ll(this.options.radius,b),x=(_-Math.max(_*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*_,this.offsetY=g*_,r.total=this.calculateTotal(),this.outerRadius=_-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*u,0),this.updateElements(o,0,o.length,e)}_circumference(e,t){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*o/Cl)}updateElements(e,t,n,r){const o="reset"===r,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=o&&s.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(t,r);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,o);for(m=t;m<t+n;++m){const t=this._circumference(m,o),n=e[m],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:h,innerRadius:d};f&&(i.options=p||this.resolveDataElementOptions(m,n.active?"active":r)),g+=t,this.updateElement(n,m,i,r)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,r=0;for(n=0;n<t.length;n++){const o=e._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||t[n].hidden||(r+=Math.abs(o))}return r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?Cl*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=gc(t._parsed[e],n.options.locale);return{label:r[e]||"",value:o}}getMaxBorderWidth(e){let t=0;const n=this.chart;let r,o,i,a,s;if(!e)for(r=0,o=n.data.datasets.length;r<o;++r)if(n.isDatasetVisible(r)){i=n.getDatasetMeta(r),e=i.data,a=i.controller;break}if(!e)return 0;for(r=0,o=e.length;r<o;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(sl(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class vd extends ad{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map(((t,o)=>{const i=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=gc(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:o}}parseObjectData(e,t,n,r){return uu.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<t.min&&(t.min=r),r>t.max&&(t.max=r))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),o=Math.max(r/2,0),i=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=o-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(e,t,n,r){const o="reset"===r,i=this.chart,a=i.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*kl;let d,h=u;const p=360/this.countVisibleElements();for(d=0;d<t;++d)h+=this._computeAngle(d,r,p);for(d=t;d<t+n;d++){const t=e[d];let n=h,f=h+this._computeAngle(d,r,p),m=i.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=f,o&&(a.animateScale&&(m=0),a.animateRotate&&(n=f=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(d,t.active?"active":r)};this.updateElement(t,d,g,r)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?$l(this.resolveDataElementOptions(e,t).angle||n):0}}var yd=Object.freeze({__proto__:null,BarController:md,BubbleController:class extends ad{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,r){const o=super.parsePrimitiveData(e,t,n,r);for(let e=0;e<o.length;e++)o[e]._custom=this.resolveDataElementOptions(e+n).radius;return o}parseArrayData(e,t,n,r){const o=super.parseArrayData(e,t,n,r);for(let e=0;e<o.length;e++){const r=t[n+e];o[e]._custom=sl(r[2],this.resolveDataElementOptions(e+n).radius)}return o}parseObjectData(e,t,n,r){const o=super.parseObjectData(e,t,n,r);for(let e=0;e<o.length;e++){const r=t[n+e];o[e]._custom=sl(r&&r.r&&+r.r,this.resolveDataElementOptions(e+n).radius)}return o}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:o}=t,i=this.getParsed(e),a=r.getLabelForValue(i.x),s=o.getLabelForValue(i.y),l=i._custom;return{label:n[e]||"",value:"("+a+", "+s+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,r),c=i.axis,u=a.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!o&&this.getParsed(d),h={},p=h[c]=o?i.getPixelForDecimal(.5):i.getPixelForValue(n[c]),f=h[u]=o?a.getBasePixel():a.getPixelForValue(n[u]);h.skip=isNaN(p)||isNaN(f),l&&(h.options=s||this.resolveDataElementOptions(d,t.active?"active":r),o&&(h.options.radius=0)),this.updateElement(t,d,h,r)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let r=super.resolveDataElementOptions(e,t);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return"active"!==t&&(r.radius=0),r.radius+=sl(n&&n._custom,o),r}},DoughnutController:gd,LineController:class extends ad{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=oc(t,r,i);this._drawStart=a,this._drawCount=s,ic(t)&&(a=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(r,a,s,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,r),d=i.axis,h=a.axis,{spanGaps:p,segment:f}=this.options,m=zl(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===r,v=t+n,y=e.length;let b=t>0&&this.getParsed(t-1);for(let n=0;n<y;++n){const p=e[n],y=g?p:{};if(n<t||n>=v){y.skip=!0;continue}const _=this.getParsed(n),x=nl(_[h]),w=y[d]=i.getPixelForValue(_[d],n),S=y[h]=o||x?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,_,s):_[h],n);y.skip=isNaN(w)||isNaN(S)||x,y.stop=n>0&&Math.abs(_[d]-b[d])>m,f&&(y.parsed=_,y.raw=l.data[n]),u&&(y.options=c||this.resolveDataElementOptions(n,p.active?"active":r)),g||this.updateElement(p,n,y,r),b=_}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const o=r[0].size(this.resolveDataElementOptions(0)),i=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,o,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},PieController:class extends gd{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:vd,RadarController:class extends ad{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return uu.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta,n=t.dataset,r=t.data||[],o=t.iScale.getLabels();if(n.points=r,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const i={_loop:!0,_fullLoop:o.length===r.length,options:t};this.updateElement(n,void 0,i,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){const o=this._cachedMeta.rScale,i="reset"===r;for(let a=t;a<t+n;a++){const t=e[a],n=this.resolveDataElementOptions(a,t.active?"active":r),s=o.getPointPositionForValue(a,this.getParsed(a).r),l=i?o.xCenter:s.x,c=i?o.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,a,u,r)}}},ScatterController:class extends ad{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:o}=t,i=this.getParsed(e),a=r.getLabelForValue(i.x),s=o.getLabelForValue(i.y);return{label:n[e]||"",value:"("+a+", "+s+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,r=this.chart._animationsDisabled;let{start:o,count:i}=oc(t,n,r);if(this._drawStart=o,this._drawCount=i,ic(t)&&(o=0,i=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:i}=t;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=n;const a=this.resolveDatasetElementOptions(e);a.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:a},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(n,o,i,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,r),u=this.getSharedOptions(c),d=this.includeOptions(r,u),h=i.axis,p=a.axis,{spanGaps:f,segment:m}=this.options,g=zl(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===r;let y=t>0&&this.getParsed(t-1);for(let c=t;c<t+n;++c){const t=e[c],n=this.getParsed(c),f=v?t:{},b=nl(n[p]),_=f[h]=i.getPixelForValue(n[h],c),x=f[p]=o||b?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[p],c);f.skip=isNaN(_)||isNaN(x)||b,f.stop=c>0&&Math.abs(n[h]-y[h])>g,m&&(f.parsed=n,f.raw=l.data[c]),d&&(f.options=u||this.resolveDataElementOptions(c,t.active?"active":r)),v||this.updateElement(t,c,f,r),y=n}this.updateSharedOptions(u,r,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;const o=t[0].size(this.resolveDataElementOptions(0)),i=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,o,i)/2}}});function bd(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class _d{static override(e){Object.assign(_d.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return bd()}parse(){return bd()}format(){return bd()}add(){return bd()}diff(){return bd()}startOf(){return bd()}endOf(){return bd()}}var xd={_date:_d};function wd(e,t,n,r){const{controller:o,data:i,_sorted:a}=e,s=o._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?Gl:Zl;if(!r)return e(i,t,n);if(o._sharedOptions){const r=i[0],o="function"==typeof r.getRange&&r.getRange(t);if(o){const r=e(i,t,n-o),a=e(i,t,n+o);return{lo:r.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function Sd(e,t,n,r,o){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=wd(i[e],t,a,o);for(let e=l;e<=c;++e){const t=s[e];t.skip||r(t,n,e)}}}function kd(e,t,n,r,o){const i=[];if(!o&&!e.isPointInArea(t))return i;return Sd(e,n,t,(function(n,a,s){(o||Nc(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function Cd(e,t,n,r,o,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const o=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return Sd(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,o);if(r&&!d)return;const h=n.getCenterPoint(o);if(!(!!i||e.isPointInArea(h))&&!d)return;const p=s(t,h);p<l?(a=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function Ed(e,t,n,r,o,i){return i||e.isPointInArea(t)?"r"!==n||r?Cd(e,t,n,r,o,i):function(e,t,n,r){let o=[];return Sd(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],r),{angle:l}=Bl(e,{x:t.x,y:t.y});Yl(l,a,s)&&o.push({element:e,datasetIndex:n,index:i})})),o}(e,t,n,o):[]}function Md(e,t,n,r,o){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return Sd(e,n,t,((e,r,l)=>{e[a]&&e[a](t[n],o)&&(i.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,o))})),r&&!s?[]:i}var Pd={evaluateInteractionItems:Sd,modes:{index(e,t,n,r){const o=ku(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?kd(e,o,i,r,a):Ed(e,o,i,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,r){const o=ku(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?kd(e,o,i,r,a):Ed(e,o,i,!1,r,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,r)=>kd(e,ku(t,e),n.axis||"xy",r,n.includeInvisible||!1),nearest(e,t,n,r){const o=ku(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return Ed(e,o,i,n.intersect,r,a)},x:(e,t,n,r)=>Md(e,ku(t,e),"x",n.intersect,r),y:(e,t,n,r)=>Md(e,ku(t,e),"y",n.intersect,r)}};const Od=["left","top","right","bottom"];function Td(e,t){return e.filter((e=>e.pos===t))}function Nd(e,t){return e.filter((e=>-1===Od.indexOf(e.pos)&&e.box.axis===t))}function Dd(e,t){return e.sort(((e,n)=>{const r=t?n:e,o=t?e:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight}))}function Ad(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:o}=n;if(!e||!Od.includes(r))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:o}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&t.availableWidth,s.height=o):(s.width=r,s.height=c?c*o:a&&t.availableHeight)}return n}function Ld(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Id(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function zd(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!ol(o)){n.size&&(e[o]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[o]+=n.size}i.getPadding&&Id(a,i.getPadding());const s=Math.max(0,t.outerWidth-Ld(a,e,"left","right")),l=Math.max(0,t.outerHeight-Ld(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Rd(e,t){const n=t.maxPadding;function r(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function $d(e,t,n,r){const o=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,Rd(s.horizontal,t));const{same:a,other:d}=zd(t,n,s,r);c|=a&&o.length,u=u||d,l.fullSize||o.push(s)}return c&&$d(o,t,n,r)||u}function Fd(e,t,n,r,o){e.top=n,e.left=t,e.right=t+r,e.bottom=n+o,e.width=r,e.height=o}function jd(e,t,n,r){const o=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=t.w*c,i=l.size||e.height;xl(l.start)&&(a=l.start),e.fullSize?Fd(e,o.left,a,n.outerWidth-o.right-o.left,i):Fd(e,t.left+l.placed,a,r,i),l.start=a,l.placed+=r,a=e.bottom}else{const r=t.h*c,a=l.size||e.width;xl(l.start)&&(i=l.start),e.fullSize?Fd(e,i,o.top,a,n.outerHeight-o.bottom-o.top):Fd(e,i,t.top+l.placed,a,r),l.start=i,l.placed+=r,i=e.right}}t.x=i,t.y=a}var Bd={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const o=qc(e.options.layout.padding),i=Math.max(t-o.width,0),a=Math.max(n-o.height,0),s=function(e){const t=function(e){const t=[];let n,r,o,i,a,s;for(n=0,r=(e||[]).length;n<r;++n)o=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=o),t.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=Dd(t.filter((e=>e.box.fullSize)),!0),r=Dd(Td(t,"left"),!0),o=Dd(Td(t,"right")),i=Dd(Td(t,"top"),!0),a=Dd(Td(t,"bottom")),s=Nd(t,"x"),l=Nd(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:Td(t,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;ul(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},o);Id(h,qc(r));const p=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),f=Ad(l.concat(c),d);$d(s.fullSize,p,d,f),$d(l,p,d,f),$d(c,p,d,f)&&$d(l,p,d,f),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(p),jd(s.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,jd(s.rightAndBottom,p,d,f),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},ul(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class Hd{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class Wd extends Hd{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Vd="$chartjs",Yd={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xd=e=>null===e||""===e;const qd=!!Pu&&{passive:!0};function Ud(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,qd)}function Zd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Gd(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Zd(n.addedNodes,r),t=t&&!Zd(n.removedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function Kd(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Zd(n.removedNodes,r),t=t&&!Zd(n.addedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Jd=new Map;let Qd=0;function eh(){const e=window.devicePixelRatio;e!==Qd&&(Qd=e,Jd.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function th(e,t,n){const r=e.canvas,o=r&&bu(r);if(!o)return;const i=tc(((e,t)=>{const r=o.clientWidth;n(e,t),r<o.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||i(n,r)}));return a.observe(o),function(e,t){Jd.size||window.addEventListener("resize",eh),Jd.set(e,t)}(e,i),a}function nh(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Jd.delete(e),Jd.size||window.removeEventListener("resize",eh)}(e)}function rh(e,t,n){const r=e.canvas,o=tc((t=>{null!==e.ctx&&n(function(e,t){const n=Yd[e.type]||e.type,{x:r,y:o}=ku(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==o?o:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,qd)}(r,t,o),o}class oh extends Hd{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[Vd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Xd(o)){const t=Ou(e,"width");void 0!==t&&(e.width=t)}if(Xd(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=Ou(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[Vd])return!1;const n=t[Vd].initial;["height","width"].forEach((e=>{const r=n[e];nl(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t[Vd],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),o={attach:Gd,detach:Kd,resize:th}[t]||rh;r[t]=o(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];if(!r)return;({attach:nh,detach:nh,resize:nh}[t]||Ud)(e,t,r),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return Eu(e,t,n,r)}isAttached(e){const t=e&&bu(e);return!(!t||!t.isConnected)}}class ih{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return zl(this.x)&&zl(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach((e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),r}}function ah(e,t){const n=e.options.ticks,r=function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),o=e._maxLength/n;return Math.floor(Math.min(r,o))}(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>o)return function(e,t,n,r){let o,i=0,a=n[0];for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}(t,c,i,a/o),c;const u=function(e,t,n){const r=function(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}(e),o=t.length/n;if(!r)return Math.max(o,1);const i=function(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r==0&&(t.push(r),t.push(e/r));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(r);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>o)return t}return Math.max(o,1)}(i,t,o);if(a>0){let e,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(sh(t,c,u,nl(r)?0:s-r,s),e=0,n=a-1;e<n;e++)sh(t,c,u,i[e],i[e+1]);return sh(t,c,u,l,nl(r)?t.length:l+r),c}return sh(t,c,u),c}function sh(e,t,n,r,o){const i=sl(r,0),a=Math.min(sl(o,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),o&&(s=o-r,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}const lh=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,ch=(e,t)=>Math.min(t||e,e);function uh(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;i<o;i+=r)n.push(e[Math.floor(i)]);return n}function dh(e,t,n){const r=e.ticks.length,o=Math.min(t,r-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(o-1))/2,c+=o<t?l:-l,c<i-s||c>a+s)))return c}function hh(e){return e.drawTicks?e.tickLength:0}function ph(e,t){if(!e.display)return 0;const n=Uc(e.font,t),r=qc(e.padding);return(rl(e.text)?e.text.length:1)*n.lineHeight+r.height}function fh(e,t,n){let r=nc(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class mh extends ih{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=al(e,Number.POSITIVE_INFINITY),t=al(t,Number.NEGATIVE_INFINITY),n=al(n,Number.POSITIVE_INFINITY),r=al(r,Number.NEGATIVE_INFINITY),{min:al(e,n),max:al(t,r),minDefined:il(e),maxDefined:il(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),o||(n=Math.min(n,t.min)),i||(r=Math.max(r,t.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:al(n,al(r,n)),max:al(r,al(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){cl(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:r,max:o}=e,i=ll(t,(o-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(i)),max:a(o,i)}}(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?uh(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=ah(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){cl(this.options.afterUpdate,[this])}beforeSetDimensions(){cl(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){cl(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),cl(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){cl(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,r,o;for(n=0,r=e.length;n<r;n++)o=e[n],o.label=cl(t.callback,[o.value,n,e],this)}afterTickToLabelConversion(){cl(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){cl(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=ch(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,o=t.maxRotation;let i,a,s,l=r;if(!this._isVisible()||!t.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Xl(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:h/(n-1),u+6>i&&(i=h/(n-(e.offset?.5:1)),a=this.maxHeight-hh(e.grid)-t.padding-ph(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Fl(Math.min(Math.asin(Xl((c.highest.height+6)/i,-1,1)),Math.asin(Xl(a/s,-1,1))-Math.asin(Xl(d/s,-1,1)))),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){cl(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){cl(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=ph(r,t.options.font);if(a?(e.width=this.maxWidth,e.height=hh(o)+i):(e.height=this.maxHeight,e.width=hh(o)+i),n.display&&this.ticks.length){const{first:t,last:r,widest:o,highest:i}=this._getLabelSizes(),s=2*n.padding,l=$l(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*o.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*o.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):"start"===o?d=t.width:"end"===o?u=e.width:"inner"!==o&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,r=e.height/2;"start"===o?(n=0,r=e.height):"end"===o&&(n=t.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_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(){cl(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)nl(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=uh(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:r,_longestTextCache:o}=this,i=[],a=[],s=Math.floor(t/ch(t,n));let l,c,u,d,h,p,f,m,g,v,y,b=0,_=0;for(l=0;l<t;l+=s){if(d=e[l].label,h=this._resolveTickFontOptions(l),r.font=p=h.string,f=o[p]=o[p]||{data:{},gc:[]},m=h.lineHeight,g=v=0,nl(d)||rl(d)){if(rl(d))for(c=0,u=d.length;c<u;++c)y=d[c],nl(y)||rl(y)||(g=Cc(r,f.data,f.gc,g,y),v+=m)}else g=Cc(r,f.data,f.gc,g,d),v=m;i.push(g),a.push(v),b=Math.max(g,b),_=Math.max(v,_)}!function(e,t){ul(e,(e=>{const n=e.gc,r=n.length/2;let o;if(r>t){for(o=0;o<r;++o)delete e.data[n[o]];n.splice(0,r)}}))}(o,t);const x=i.indexOf(b),w=a.indexOf(_),S=e=>({width:i[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(x),highest:S(w),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return Xl(this._alignToPixels?Mc(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return Gc(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=Gc(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=$l(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),o=this._getLabelSizes(),i=e.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:o,position:i,border:a}=r,s=o.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=hh(o),d=[],h=a.setContext(this.getContext()),p=h.display?h.width:0,f=p/2,m=function(e){return Mc(n,e,p)};let g,v,y,b,_,x,w,S,k,C,E,M;if("top"===i)g=m(this.bottom),x=this.bottom-u,S=g-f,C=m(e.top)+f,M=e.bottom;else if("bottom"===i)g=m(this.top),C=e.top,M=m(e.bottom)-f,x=g+f,S=this.top+u;else if("left"===i)g=m(this.right),_=this.right-u,w=g-f,k=m(e.left)+f,E=e.right;else if("right"===i)g=m(this.left),k=e.left,E=m(e.right)-f,_=g+f,w=this.left+u;else if("x"===t){if("center"===i)g=m((e.top+e.bottom)/2+.5);else if(ol(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}C=e.top,M=e.bottom,x=g+f,S=x+u}else if("y"===t){if("center"===i)g=m((e.left+e.right)/2);else if(ol(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}_=g-f,w=_-u,k=e.left,E=e.right}const P=sl(r.ticks.maxTicksLimit,c),O=Math.max(1,Math.ceil(c/P));for(v=0;v<c;v+=O){const e=this.getContext(v),t=o.setContext(e),r=a.setContext(e),i=t.lineWidth,c=t.color,u=r.dash||[],h=r.dashOffset,p=t.tickWidth,f=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;y=dh(this,v,s),void 0!==y&&(b=Mc(n,y,i),l?_=w=k=E=b:x=S=C=M=b,d.push({tx1:_,ty1:x,tx2:w,ty2:S,x1:k,y1:C,x2:E,y2:M,width:i,color:c,borderDash:u,borderDashOffset:h,tickWidth:p,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:r,ticks:o}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=o,d=hh(n.grid),h=d+c,p=u?-c:h,f=-$l(this.labelRotation),m=[];let g,v,y,b,_,x,w,S,k,C,E,M,P="middle";if("top"===r)x=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===r)x=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,_=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,_=e.x}else if("x"===t){if("center"===r)x=(e.top+e.bottom)/2+h;else if(ol(r)){const e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)+h}w=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)_=(e.left+e.right)/2-h;else if(ol(r)){const e=Object.keys(r)[0],t=r[e];_=this.chart.scales[e].getPixelForValue(t)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?P="top":"end"===s&&(P="bottom"));const O=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){y=a[g],b=y.label;const e=o.setContext(this.getContext(g));S=this.getPixelForTick(g)+o.labelOffset,k=this._resolveTickFontOptions(g),C=k.lineHeight,E=rl(b)?b.length:1;const t=E/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,h=w;if(i?(_=S,"inner"===w&&(h=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),M="top"===r?"near"===l||0!==f?-E*C+C/2:"center"===l?-O.highest.height/2-t*C+C:-O.highest.height+C/2:"near"===l||0!==f?C/2:"center"===l?O.highest.height/2-t*C:O.highest.height-E*C,u&&(M*=-1),0===f||e.showLabelBackdrop||(_+=C/2*Math.sin(f))):(x=S,M=(1-E)*C/2),e.showLabelBackdrop){const t=qc(e.backdropPadding),n=O.heights[g],r=O.widths[g];let o=M-t.top,i=0-t.left;switch(P){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":i-=r/2;break;case"right":i-=r;break;case"inner":g===v-1?i-=r:g>0&&(i-=r/2)}d={left:i,top:o,width:r+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:b,font:k,textOffset:M,options:{rotation:f,color:n,strokeColor:s,strokeWidth:c,textAlign:h,textBaseline:P,translation:[_,x],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-$l(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:r,padding:o}}=this.options,i=e+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?r?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?r?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:o,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,o,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,i;const a=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(o=0,i=r.length;o<i;++o){const e=r[o];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:r}}=this,o=n.setContext(this.getContext()),i=n.display?o.width:0;if(!i)return;const a=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Mc(e,this.left,i)-i/2,c=Mc(e,this.right,a)+a/2,u=d=s):(u=Mc(e,this.top,i)-i/2,d=Mc(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&Dc(t,n);const r=this.getLabelItems(e);for(const e of r){const n=e.options,r=e.font;$c(t,e.label,0,e.textOffset,r,n)}n&&Ac(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const o=Uc(n.font),i=qc(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===t||"center"===t||ol(t)?(s+=i.bottom,rl(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,r){const{top:o,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,h,p,f=0;const m=a-o,g=s-i;if(e.isHorizontal()){if(h=rc(r,i,s),ol(n)){const e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)+m-t}else p="center"===n?(c.bottom+c.top)/2+m-t:lh(e,n,t);d=s-i}else{if(ol(n)){const e=Object.keys(n)[0],r=n[e];h=u[e].getPixelForValue(r)-g+t}else h="center"===n?(c.left+c.right)/2-g+t:lh(e,n,t);p=rc(r,a,o),f="left"===n?-Ol:Ol}return{titleX:h,titleY:p,maxWidth:d,rotation:f}}(this,s,t,a);$c(e,n.text,0,0,o,{color:n.color,maxWidth:u,rotation:d,textAlign:fh(a,t,r),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=sl(e.grid&&e.grid.z,-1),r=sl(e.border&&e.border.z,0);return this._isVisible()&&this.draw===mh.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let o,i;for(o=0,i=t.length;o<i;++o){const i=t[o];i[n]!==this.id||e&&i.type!==e||r.push(i)}return r}_resolveTickFontOptions(e){return Uc(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class gh{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const r=this.items,o=e.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in r||(r[o]=e,function(e,t,n){const r=ml(Object.create(null),[n?kc.get(n):{},kc.get(t),e.defaults]);kc.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");kc.route(i,o,l,s)}))}(t,e.defaultRoutes);e.descriptors&&kc.describe(t,e.descriptors)}(e,i,n),this.override&&kc.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in kc[r]&&(delete kc[r][n],this.override&&delete bc[n])}}class vh{constructor(){this.controllers=new gh(ad,"datasets",!0),this.elements=new gh(ih,"elements"),this.plugins=new gh(Object,"plugins"),this.scales=new gh(mh,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):ul(t,(t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)}))}))}_exec(e,t,n){const r=_l(e);cl(n["before"+r],[],n),t[e](n),cl(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}var yh=new vh;class bh{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const o=r?this._descriptors(e).filter(r):this._descriptors(e),i=this._notify(o,e,t,n);return"afterDestroy"===t&&(this._notify(o,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,r){r=r||{};for(const o of e){const e=o.plugin;if(!1===cl(e[n],[t,r,o.options],e)&&r.cancelable)return!1}return!0}invalidate(){nl(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=sl(n.options&&n.options.plugins,{}),o=function(e){const t={},n=[],r=Object.keys(yh.plugins.items);for(let e=0;e<r.length;e++)n.push(yh.getPlugin(r[e]));const o=e.plugins||[];for(let e=0;e<o.length;e++){const r=o[e];-1===n.indexOf(r)&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,{plugins:t,localIds:n},r,o){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=_h(r[t],o);null!==l&&i.push({plugin:s,options:xh(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,o,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function _h(e,t){return t||!1!==e?!0===e?{}:e:null}function xh(e,{plugin:t,local:n},r,o){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(r,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function wh(e,t){const n=kc.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Sh(e){if("x"===e||"y"===e||"r"===e)return e}function kh(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function Ch(e,...t){if(Sh(e))return e;for(const n of t){const t=n.axis||kh(n.position)||e.length>1&&Sh(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Eh(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Mh(e,t){const n=bc[e.type]||{scales:{}},r=t.scales||{},o=wh(e.type,t),i=Object.create(null);return Object.keys(r).forEach((t=>{const a=r[t];if(!ol(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=Ch(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return Eh(e,"x",n[0])||Eh(e,"y",n[0])}return{}}(t,e),kc.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,o),c=n.scales||{};i[t]=gl(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const o=n.type||e.type,a=n.indexAxis||wh(o,t),s=(bc[o]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),o=n[t+"AxisID"]||t;i[o]=i[o]||Object.create(null),gl(i[o],[{axis:t},r[o],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];gl(t,[kc.scales[t.type],kc.scale])})),i}function Ph(e){const t=e.options||(e.options={});t.plugins=sl(t.plugins,{}),t.scales=Mh(e,t)}function Oh(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Th=new Map,Nh=new Set;function Dh(e,t){let n=Th.get(e);return n||(n=t(),Th.set(e,n),Nh.add(n)),n}const Ah=(e,t,n)=>{const r=bl(t,n);void 0!==r&&e.add(r)};class Lh{constructor(e){this._config=function(e){return(e=e||{}).data=Oh(e.data),Ph(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Oh(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Ph(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Dh(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Dh(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Dh(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Dh(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:o}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>Ah(s,e,t)))),t.forEach((e=>Ah(s,r,e))),t.forEach((e=>Ah(s,bc[o]||{},e))),t.forEach((e=>Ah(s,kc,e))),t.forEach((e=>Ah(s,_c,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Nh.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,bc[t]||{},kc.datasets[t]||{},{type:t},kc,_c]}resolveNamedOptions(e,t,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=Ih(this._resolverCache,e,r);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:r}=Qc(e);for(const o of t){const t=n(o),i=r(o),a=(i||t)&&e[o];if(t&&(wl(a)||zh(a))||i&&rl(a))return!0}return!1}(i,t)){o.$shared=!1;s=Jc(i,n=wl(n)?n():n,this.createResolver(e,n,a))}for(const e of t)o[e]=s[e];return o}createResolver(e,t,n=[""],r){const{resolver:o}=Ih(this._resolverCache,e,n);return ol(t)?Jc(o,t,void 0,r):o}}function Ih(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);if(!i){i={resolver:Kc(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},r.set(o,i)}return i}const zh=e=>ol(e)&&Object.getOwnPropertyNames(e).some((t=>wl(e[t])));const Rh=["top","bottom","left","right","chartArea"];function $h(e,t){return"top"===e||"bottom"===e||-1===Rh.indexOf(e)&&"x"===t}function Fh(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function jh(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),cl(n&&n.onComplete,[e],t)}function Bh(e){const t=e.chart,n=t.options.animation;cl(n&&n.onProgress,[e],t)}function Hh(e){return yu()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Wh={},Vh=e=>{const t=Hh(e);return Object.values(Wh).filter((e=>e.canvas===t)).pop()};function Yh(e,t,n){const r=Object.keys(e);for(const o of r){const r=+o;if(r>=t){const i=e[o];delete e[o],(n>0||r>t)&&(e[r+n]=i)}}}function Xh(e,t,n){return e.options.clip?e[n]:t[n]}class qh{static defaults=kc;static instances=Wh;static overrides=bc;static registry=yh;static version="4.4.7";static getChart=Vh;static register(...e){yh.add(...e),Uh()}static unregister(...e){yh.remove(...e),Uh()}constructor(e,t){const n=this.config=new Lh(t),r=Hh(e),o=Vh(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!yu()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Wd:oh}(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=tl(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,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 bh,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],Wh[this.id]=this,a&&s?(Vu.listen(this,"complete",jh),Vu.listen(this,"progress",Bh),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:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:o}=this;return nl(e)?t&&o?o:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return yh}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Mu(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Pc(this.canvas,this.ctx),this}stop(){return Vu.stop(this),this}resize(e,t){Vu.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,e,t,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Mu(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),cl(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){ul(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let o=[];t&&(o=o.concat(Object.keys(t).map((e=>{const n=t[e],r=Ch(e,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),ul(o,(t=>{const o=t.options,i=o.id,a=Ch(i,o),s=sl(o.type,t.dtype);void 0!==o.position&&$h(o.position,a)===$h(t.dposition)||(o.position=t.dposition),r[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(yh.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,e)})),ul(r,((e,t)=>{e||delete n[t]})),ul(n,(e=>{Bd.configure(this,e,e.options),Bd.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Fh("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const r=t[n];let o=this.getDatasetMeta(n);const i=r.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=i,o.indexAxis=r.indexAxis||wh(i,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const t=yh.getController(i),{datasetElementType:r,dataElementType:a}=kc.datasets[i];Object.assign(t,{dataElementType:yh.getElement(a),datasetElementType:r&&yh.getElement(r)}),o.controller=new t(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){ul(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!r&&-1===o.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||ul(o,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Fh("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ul(this.scales,(e=>{Bd.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Sl(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of t){Yh(e,r,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),r=n(0);for(let e=1;e<t;e++)if(!Sl(r,n(e)))return;return Array.from(r).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Bd.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],ul(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,wl(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Vu.has(this)?this.attached&&!Vu.running(this)&&Vu.start(this):(this.draw(),jh({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,o;for(r=0,o=t.length;r<o;++r){const o=t[r];e&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,o=function(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Xh(n,t,"left"),right:Xh(n,t,"right"),top:Xh(r,t,"top"),bottom:Xh(r,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&Dc(t,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),e.controller.draw(),r&&Ac(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return Nc(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const o=Pd.modes[t];return"function"==typeof o?o(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Gc(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",o=this.getDatasetMeta(e),i=o.controller._resolveAnimations(void 0,r);xl(t)?(o.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(o,{visible:n}),this.update((t=>t.datasetIndex===e?r:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Vu.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Pc(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Wh[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};ul(this.options.events,(e=>n(e,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},o=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",i)};i=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){ul(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},ul(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let o,i,a,s;for("dataset"===t&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!dl(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const r=this.options.hover,o=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=o(t,e),a=n?e:o(e,t);i.length&&this.updateHoverStyle(i,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:o}=this,i=t,a=this._getActiveElements(e,r,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,cl(o.onHover,[e,a,this],this),s&&cl(o.onClick,[e,a,this],this));const c=!dl(a,r);return(c||t)&&(this._active=a,this._updateHoverStyles(a,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,r)}}function Uh(){return ul(qh.instances,(e=>e._plugins.invalidate()))}function Zh(e,t,n,r){const o=Vc(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-t)/2,a=Math.min(i,r*t/2),s=e=>{const t=(n-Math.min(i,e))*r/2;return Xl(e,0,Math.min(i,t))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Xl(o.innerStart,0,a),innerEnd:Xl(o.innerEnd,0,a)}}function Gh(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Kh(e,t,n,r,o,i){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let p=0;const f=o-l;if(r){const e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(f-(0!==e?f*e/(e+r):f))/2}const m=(f-Math.max(.001,f*d-n/kl)/d)/2,g=l+m+p,v=o-m-p,{outerStart:y,outerEnd:b,innerStart:_,innerEnd:x}=Zh(t,h,d,v-g),w=d-y,S=d-b,k=g+y/w,C=v-b/S,E=h+_,M=h+x,P=g+_/E,O=v-x/M;if(e.beginPath(),i){const t=(k+C)/2;if(e.arc(a,s,d,k,t),e.arc(a,s,d,t,C),b>0){const t=Gh(S,C,a,s);e.arc(t.x,t.y,b,C,v+Ol)}const n=Gh(M,v,a,s);if(e.lineTo(n.x,n.y),x>0){const t=Gh(M,O,a,s);e.arc(t.x,t.y,x,v+Ol,O+Math.PI)}const r=(v-x/h+(g+_/h))/2;if(e.arc(a,s,h,v-x/h,r,!0),e.arc(a,s,h,r,g+_/h,!0),_>0){const t=Gh(E,P,a,s);e.arc(t.x,t.y,_,P+Math.PI,g-Ol)}const o=Gh(w,g,a,s);if(e.lineTo(o.x,o.y),y>0){const t=Gh(w,k,a,s);e.arc(t.x,t.y,y,g-Ol,k)}}else{e.moveTo(a,s);const t=Math.cos(k)*d+a,n=Math.sin(k)*d+s;e.lineTo(t,n);const r=Math.cos(C)*d+a,o=Math.sin(C)*d+s;e.lineTo(r,o)}e.closePath()}function Jh(e,t,n,r,o){const{fullCircles:i,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,p="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=h,p?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let f=t.endAngle;if(i){Kh(e,t,n,r,f,o);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(f=a+(s%Cl||Cl))}p&&function(e,t,n){const{startAngle:r,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:l}=t;let c=o/s;e.beginPath(),e.arc(i,a,s,r-c,n+c),l>o?(c=o/l,e.arc(i,a,l,n+c,r-c,!0)):e.arc(i,a,o,n+Ol,r-Ol),e.closePath(),e.clip()}(e,t,f),i||(Kh(e,t,n,r,f,o),e.stroke())}function Qh(e,t,n=t){e.lineCap=sl(n.borderCapStyle,t.borderCapStyle),e.setLineDash(sl(n.borderDash,t.borderDash)),e.lineDashOffset=sl(n.borderDashOffset,t.borderDashOffset),e.lineJoin=sl(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=sl(n.borderWidth,t.borderWidth),e.strokeStyle=sl(n.borderColor,t.borderColor)}function ep(e,t,n){e.lineTo(n.x,n.y)}function tp(e,t,n={}){const r=e.length,{start:o=0,end:i=r-1}=n,{start:a,end:s}=t,l=Math.max(o,a),c=Math.min(i,s),u=o<a&&i<a||o>s&&i>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function np(e,t,n,r){const{points:o,options:i}=t,{count:a,start:s,loop:l,ilen:c}=tp(o,n,r),u=function(e){return e.stepped?Lc:e.tension||"monotone"===e.cubicInterpolationMode?Ic:ep}(i);let d,h,p,{move:f=!0,reverse:m}=r||{};for(d=0;d<=c;++d)h=o[(s+(m?c-d:d))%a],h.skip||(f?(e.moveTo(h.x,h.y),f=!1):u(e,p,h,m,i.stepped),p=h);return l&&(h=o[(s+(m?c:0))%a],u(e,p,h,m,i.stepped)),!!l}function rp(e,t,n,r){const o=t.points,{count:i,start:a,ilen:s}=tp(o,n,r),{move:l=!0,reverse:c}=r||{};let u,d,h,p,f,m,g=0,v=0;const y=e=>(a+(c?s-e:e))%i,b=()=>{p!==f&&(e.lineTo(g,f),e.lineTo(g,p),e.lineTo(g,m))};for(l&&(d=o[y(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=o[y(u)],d.skip)continue;const t=d.x,n=d.y,r=0|t;r===h?(n<p?p=n:n>f&&(f=n),g=(v*g+t)/++v):(b(),e.lineTo(t,n),h=r,v=0,p=f=n),m=n}b()}function op(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?rp:np}const ip="function"==typeof Path2D;function ap(e,t,n,r){ip&&!t.options.segment?function(e,t,n,r){let o=t._path;o||(o=t._path=new Path2D,t.path(o,n,r)&&o.closePath()),Qh(e,t.options),e.stroke(o)}(e,t,n,r):function(e,t,n,r){const{segments:o,options:i}=t,a=op(t);for(const s of o)Qh(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}(e,t,n,r)}class sp extends ih{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;vu(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,r=e.options.spanGaps,o=n.length;if(!o)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,r){let o=0,i=t-1;if(n&&!r)for(;o<t&&!e[o].skip;)o++;for(;o<t&&e[o].skip;)o++;for(o%=t,n&&(i+=o);i>o&&e[i%t].skip;)i--;return i%=t,{start:o,end:i}}(n,o,i,r);return ju(e,!0===r?[{start:a,end:s,loop:i}]:function(e,t,n,r){const o=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%o];n.skip||n.stop?l.skip||(r=!1,i.push({start:t%o,end:(a-1)%o,loop:r}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%o,end:s%o,loop:r}),i}(n,a,s<a?s+o:s,!!e._fullLoop&&0===a&&s===o-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,r=e[t],o=this.points,i=Fu(this,{property:t,start:r,end:r});if(!i.length)return;const a=[],s=function(e){return e.stepped?Nu:e.tension||"monotone"===e.cubicInterpolationMode?Du:Tu}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=o[c],h=o[u];if(d===h){a.push(d);continue}const p=s(d,h,Math.abs((r-d[t])/(h[t]-d[t])),n.stepped);p[t]=e[t],a.push(p)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return op(this)(e,this,t,n)}path(e,t,n){const r=this.segments,o=op(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of r)i&=o(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,r){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(e.save(),ap(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function lp(e,t,n,r){const o=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<o.radius+o.hitRadius}function cp(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,o),l=Math.max(n,o),c=r-d,u=r+d):(d=i/2,s=n-d,l=n+d,c=Math.min(r,o),u=Math.max(r,o)),{left:s,top:c,right:l,bottom:u}}function up(e,t,n,r){return e?0:Xl(t,n,r)}function dp(e){const t=cp(e),n=t.right-t.left,r=t.bottom-t.top,o=function(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=Yc(r);return{t:up(o.top,i.top,0,n),r:up(o.right,i.right,0,t),b:up(o.bottom,i.bottom,0,n),l:up(o.left,i.left,0,t)}}(e,n/2,r/2),i=function(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=Xc(o),a=Math.min(t,n),s=e.borderSkipped,l=r||ol(o);return{topLeft:up(!l||s.top||s.left,i.topLeft,0,a),topRight:up(!l||s.top||s.right,i.topRight,0,a),bottomLeft:up(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:up(!l||s.bottom||s.right,i.bottomRight,0,a)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function hp(e,t,n,r){const o=null===t,i=null===n,a=e&&!(o&&i)&&cp(e,r);return a&&(o||ql(t,a.left,a.right))&&(i||ql(n,a.top,a.bottom))}function pp(e,t){e.rect(t.x,t.y,t.w,t.h)}function fp(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class mp extends ih{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:i}=dp(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?Fc:pp;var s;e.save(),i.w===o.w&&i.h===o.h||(e.beginPath(),a(e,fp(i,t,o)),e.clip(),a(e,fp(o,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,fp(o,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return hp(this,e,t,n)}inXRange(e,t){return hp(this,e,null,t)}inYRange(e,t){return hp(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(t+r)/2:t,y:o?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}var gp=Object.freeze({__proto__:null,ArcElement:class extends ih{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:o,distance:i}=Bl(r,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,h=sl(u,s-a),p=Yl(o,a,s)&&a!==s,f=h>=Cl||p,m=ql(i,l+d,c+d);return f&&m}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(r+o)/2,u=(i+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/4,o=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>Cl?Math.floor(n/Cl):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*r,Math.sin(a)*r);const s=r*(1-Math.sin(Math.min(kl,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,r,o){const{fullCircles:i,startAngle:a,circumference:s}=t;let l=t.endAngle;if(i){Kh(e,t,n,r,l,o);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%Cl||Cl))}Kh(e,t,n,r,l,o),e.fill()}(e,this,s,o,i),Jh(e,this,s,o,i),e.restore()}},BarElement:mp,LineElement:sp,PointElement:class extends ih{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:o,y:i}=this.getProps(["x","y"],n);return Math.pow(e-o,2)+Math.pow(t-i,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return lp(this,e,"x",t)}inYRange(e,t){return lp(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!Nc(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,Oc(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}});const vp=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],yp=vp.map((e=>e.replace("rgb(","rgba(").replace(")",", 0.5)")));function bp(e){return vp[e%vp.length]}function _p(e){return yp[e%yp.length]}function xp(e){let t=0;return(n,r)=>{const o=e.getDatasetMeta(r).controller;o instanceof gd?t=function(e,t){return e.backgroundColor=e.data.map((()=>bp(t++))),t}(n,t):o instanceof vd?t=function(e,t){return e.backgroundColor=e.data.map((()=>_p(t++))),t}(n,t):o&&(t=function(e,t){return e.borderColor=bp(t),e.backgroundColor=_p(t),++t}(n,t))}}function wp(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var Sp={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:o}=e.config,{elements:i}=o,a=wp(r)||(s=o)&&(s.borderColor||s.backgroundColor)||i&&wp(i)||"rgba(0,0,0,0.1)"!==kc.borderColor||"rgba(0,0,0,0.1)"!==kc.backgroundColor;var s;if(!n.forceOverride&&a)return;const l=xp(e);r.forEach(l)}};function kp(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Cp(e){e.data.datasets.forEach((e=>{kp(e)}))}var Ep={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void Cp(e);const r=e.width;e.data.datasets.forEach(((t,o)=>{const{_data:i,indexAxis:a}=t,s=e.getDatasetMeta(o),l=i||t.data;if("y"===Zc([a,e.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=e.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let{start:u,count:d}=function(e,t){const n=t.length;let r,o=0;const{iScale:i}=e,{min:a,max:s,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(o=Xl(Zl(t,i.axis,a).lo,0,n-1)),r=c?Xl(Zl(t,i.axis,s).hi+1,o,n)-o:n-o,{start:o,count:r}}(s,l);if(d<=(n.threshold||4*r))return void kp(t);let h;switch(nl(i)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,r,o){const i=o.samples||r;if(i>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(i-2);let l=0;const c=t+n-1;let u,d,h,p,f,m=t;for(a[l++]=e[m],u=0;u<i-2;u++){let r,o=0,i=0;const c=Math.floor((u+1)*s)+1+t,g=Math.min(Math.floor((u+2)*s)+1,n)+t,v=g-c;for(r=c;r<g;r++)o+=e[r].x,i+=e[r].y;o/=v,i/=v;const y=Math.floor(u*s)+1+t,b=Math.min(Math.floor((u+1)*s)+1,n)+t,{x:_,y:x}=e[m];for(h=p=-1,r=y;r<b;r++)p=.5*Math.abs((_-o)*(e[r].y-x)-(_-e[r].x)*(i-x)),p>h&&(h=p,d=e[r],f=r);a[l++]=d,m=f}return a[l++]=e[c],a}(l,u,d,r,n);break;case"min-max":h=function(e,t,n,r){let o,i,a,s,l,c,u,d,h,p,f=0,m=0;const g=[],v=t+n-1,y=e[t].x,b=e[v].x-y;for(o=t;o<t+n;++o){i=e[o],a=(i.x-y)/b*r,s=i.y;const t=0|a;if(t===l)s<h?(h=s,c=o):s>p&&(p=s,u=o),f=(m*f+i.x)/++m;else{const n=o-1;if(!nl(c)&&!nl(u)){const t=Math.min(c,u),r=Math.max(c,u);t!==d&&t!==n&&g.push({...e[t],x:f}),r!==d&&r!==n&&g.push({...e[r],x:f})}o>0&&n!==d&&g.push(e[n]),g.push(i),l=t,m=0,h=p=s,c=u=d=o}}return g}(l,u,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=h}))},destroy(e){Cp(e)}};function Mp(e,t,n,r){if(r)return;let o=t[e],i=n[e];return"angle"===e&&(o=Vl(o),i=Vl(i)),{property:e,start:o,end:i}}function Pp(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Op(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Tp(e,t){let n=[],r=!1;return rl(e)?(r=!0,n=e):n=function(e,t){const{x:n=null,y:r=null}=e||{},o=t.points,i=[];return t.segments.forEach((({start:e,end:t})=>{t=Pp(e,t,o);const a=o[e],s=o[t];null!==r?(i.push({x:a.x,y:r}),i.push({x:s.x,y:r})):null!==n&&(i.push({x:n,y:a.y}),i.push({x:n,y:s.y}))})),i}(e,t),n.length?new sp({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Np(e){return e&&!1!==e.fill}function Dp(e,t,n){let r=e[t].fill;const o=[t];let i;if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!il(r))return r;if(i=e[r],!i)return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function Ap(e,t,n){const r=function(e){const t=e.options,n=t.fill;let r=sl(n&&n.target,n);void 0===r&&(r=!!t.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(e);if(ol(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return il(o)&&Math.floor(o)===o?function(e,t,n,r){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=r)return!1;return n}(r[0],t,o,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Lp(e,t,n){const r=[];for(let o=0;o<n.length;o++){const i=n[o],{first:a,last:s,point:l}=Ip(i,t,"x");if(!(!l||a&&s))if(a)r.unshift(l);else if(e.push(l),!s)break}e.push(...r)}function Ip(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const o=r[n],i=e.segments,a=e.points;let s=!1,l=!1;for(let e=0;e<i.length;e++){const t=i[e],r=a[t.start][n],c=a[t.end][n];if(ql(o,r,c)){s=o===r,l=o===c;break}}return{first:s,last:l,point:r}}class zp{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:r,y:o,radius:i}=this;return t=t||{start:0,end:Cl},e.arc(r,o,i,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:r}=this,o=e.angle;return{x:t+Math.cos(o)*r,y:n+Math.sin(o)*r,angle:o}}}function Rp(e){const{chart:t,fill:n,line:r}=e;if(il(n))return function(e,t){const n=e.getDatasetMeta(t),r=n&&e.isDatasetVisible(t);return r?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:r}=e,o=[],i=r.segments,a=r.points,s=function(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let e=0;e<r.length;e++){const o=r[e];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}(t,n);s.push(Tp({x:null,y:t.bottom},r));for(let e=0;e<i.length;e++){const t=i[e];for(let e=t.start;e<=t.end;e++)Lp(o,a[e],s)}return new sp({points:o,options:{}})}(e);if("shape"===n)return!0;const o=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:n}=e,r=t.options,o=t.getLabels().length,i=r.reverse?t.max:t.min,a=function(e,t,n){let r;return r="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:ol(e)?e.value:t.getBaseValue(),r}(n,t,i),s=[];if(r.grid.circular){const e=t.getPointPositionForValue(0,i);return new zp({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(a)})}for(let e=0;e<o;++e)s.push(t.getPointPositionForValue(e,a));return s}(e);return function(e){const{scale:t={},fill:n}=e,r=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:ol(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if(il(r)){const e=t.isHorizontal();return{x:e?r:null,y:e?null:r}}return null}(e)}(e);return o instanceof zp?o:Tp(o,r)}function $p(e,t,n){const r=Rp(t),{line:o,scale:i,axis:a}=t,s=o.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:d=c}=l||{};r&&o.points.length&&(Dc(e,n),function(e,t){const{line:n,target:r,above:o,below:i,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),"x"===l&&i!==o&&(Fp(e,r,a.top),jp(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore(),e.save(),Fp(e,r,a.bottom));jp(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore()}(e,{line:o,target:r,above:u,below:d,area:n,scale:i,axis:a}),Ac(e))}function Fp(e,t,n){const{segments:r,points:o}=t;let i=!0,a=!1;e.beginPath();for(const s of r){const{start:r,end:l}=s,c=o[r],u=o[Pp(r,l,o)];i?(e.moveTo(c.x,c.y),i=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function jp(e,t){const{line:n,target:r,property:o,color:i,scale:a}=t,s=function(e,t,n){const r=e.segments,o=e.points,i=t.points,a=[];for(const e of r){let{start:r,end:s}=e;s=Pp(r,s,o);const l=Mp(n,o[r],o[s],e.loop);if(!t.segments){a.push({source:e,target:l,start:o[r],end:o[s]});continue}const c=Fu(t,l);for(const t of c){const r=Mp(n,i[t.start],i[t.end],t.loop),s=$u(e,o,r);for(const e of s)a.push({source:e,target:t,start:{[n]:Op(l,r,"start",Math.max)},end:{[n]:Op(l,r,"end",Math.min)}})}}return a}(n,r,o);for(const{source:t,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=i}={}}=t,d=!0!==r;e.save(),e.fillStyle=s,Bp(e,a,d&&Mp(o,c,u)),e.beginPath();const h=!!n.pathSegment(e,t);let p;if(d){h?e.closePath():Hp(e,r,u,o);const t=!!r.pathSegment(e,l,{move:h,reverse:!0});p=h&&t,p||Hp(e,r,c,o)}e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function Bp(e,t,n){const{top:r,bottom:o}=t.chart.chartArea,{property:i,start:a,end:s}=n||{};"x"===i&&(e.beginPath(),e.rect(a,r,s-a,o-r),e.clip())}function Hp(e,t,n,r){const o=t.interpolate(n,r);o&&e.lineTo(o.x,o.y)}var Wp={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,o=[];let i,a,s,l;for(a=0;a<r;++a)i=e.getDatasetMeta(a),s=i.dataset,l=null,s&&s.options&&s instanceof sp&&(l={visible:e.isDatasetVisible(a),index:a,fill:Ap(s,a,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:s}),i.$filler=l,o.push(l);for(a=0;a<r;++a)l=o[a],l&&!1!==l.fill&&(l.fill=Dp(o,a,n.propagate))},beforeDraw(e,t,n){const r="beforeDraw"===n.drawTime,o=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let t=o.length-1;t>=0;--t){const n=o[t].$filler;n&&(n.line.updateControlPoints(i,n.axis),r&&n.fill&&$p(e.ctx,n,i))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){const n=r[t].$filler;Np(n)&&$p(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;Np(r)&&"beforeDatasetDraw"===n.drawTime&&$p(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Vp=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class Yp extends ih{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=cl(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=Uc(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Vp(n,o);let l,c;t.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,o,a,s)+10):(c=this.maxHeight,l=this._fitCols(i,r,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=e;o.textAlign="left",o.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((e,p)=>{const f=n+t/2+o.measureText(e.text).width;(0===p||l[l.length-1]+f+2*a>i)&&(u+=c,l[l.length-(p>0?0:1)]=0,h+=c,d++),s[p]={left:0,top:h,row:d,width:f,height:r},l[l.length-1]+=f+a})),u}_fitCols(e,t,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-e;let u=a,d=0,h=0,p=0,f=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,r,o){const i=function(e,t,n,r){let o=e.text;o&&"string"!=typeof o&&(o=o.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+r.measureText(o).width}(r,e,t,n),a=function(e,t,n){let r=e;"string"!=typeof t.text&&(r=Xp(t,n));return r}(o,r,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,o,e,r);i>0&&h+g+2*a>c&&(u+=d+a,l.push({width:d,height:h}),p+=d+a,f++,d=h=0),s[i]={left:p,top:h,col:f,width:m,height:g},d=Math.max(d,m),h+=g+a})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:o}}=this,i=Au(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=rc(n,this.left+r,this.right-this.lineWidths[o]);for(const s of t)o!==s.row&&(o=s.row,a=rc(n,this.left+r,this.right-this.lineWidths[o])),s.top+=this.top+e+r,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+r}else{let o=0,a=rc(n,this.top+e+r,this.bottom-this.columnSizes[o].height);for(const s of t)s.col!==o&&(o=s.col,a=rc(n,this.top+e+r,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+r,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;Dc(e,this),this._draw(),Ac(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:o,labels:i}=e,a=kc.color,s=Au(e.rtl,this.left,this.width),l=Uc(i.font),{padding:c}=i,u=l.size,d=u/2;let h;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:p,boxHeight:f,itemHeight:m}=Vp(i,u),g=this.isHorizontal(),v=this._computeTitleHeight();h=g?{x:rc(o,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:rc(o,this.top+v+c,this.bottom-t[0].height),line:0},Lu(this.ctx,e.textDirection);const y=m+c;this.legendItems.forEach(((b,_)=>{r.strokeStyle=b.fontColor,r.fillStyle=b.fontColor;const x=r.measureText(b.text).width,w=s.textAlign(b.textAlign||(b.textAlign=i.textAlign)),S=p+d+x;let k=h.x,C=h.y;s.setWidth(this.width),g?_>0&&k+S+c>this.right&&(C=h.y+=y,h.line++,k=h.x=rc(o,this.left+c,this.right-n[h.line])):_>0&&C+y>this.bottom&&(k=h.x=k+t[h.line].width+c,h.line++,C=h.y=rc(o,this.top+v+c,this.bottom-t[h.line].height));if(function(e,t,n){if(isNaN(p)||p<=0||isNaN(f)||f<0)return;r.save();const o=sl(n.lineWidth,1);if(r.fillStyle=sl(n.fillStyle,a),r.lineCap=sl(n.lineCap,"butt"),r.lineDashOffset=sl(n.lineDashOffset,0),r.lineJoin=sl(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=sl(n.strokeStyle,a),r.setLineDash(sl(n.lineDash,[])),i.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(e,p/2);Tc(r,a,l,t+d,i.pointStyleWidth&&p)}else{const i=t+Math.max((u-f)/2,0),a=s.leftForLtr(e,p),l=Xc(n.borderRadius);r.beginPath(),Object.values(l).some((e=>0!==e))?Fc(r,{x:a,y:i,w:p,h:f,radius:l}):r.rect(a,i,p,f),r.fill(),0!==o&&r.stroke()}r.restore()}(s.x(k),C,b),k=((e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t)(w,k+p+d,g?k+S:this.right,e.rtl),function(e,t,n){$c(r,n.text,e,t+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),C,b),g)h.x+=S+c;else if("string"!=typeof b.text){const e=l.lineHeight;h.y+=Xp(b,e)+c}else h.y+=y})),Iu(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Uc(t.font),r=qc(t.padding);if(!t.display)return;const o=Au(e.rtl,this.left,this.width),i=this.ctx,a=t.position,s=n.size/2,l=r.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=rc(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+rc(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const h=rc(a,u,u+d);i.textAlign=o.textAlign(nc(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,$c(i,t.text,h,c,n)}_computeTitleHeight(){const e=this.options.title,t=Uc(e.font),n=qc(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,o;if(ql(e,this.left,this.right)&&ql(t,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],ql(e,r.left,r.left+r.width)&&ql(t,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const r=this._hoveredItem,o=((e,t)=>null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index)(r,n);r&&!o&&cl(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!o&&cl(t.onHover,[e,n,this],this)}else n&&cl(t.onClick,[e,n,this],this)}}function Xp(e,t){return t*(e.text?e.text.length:0)}var qp={id:"legend",_element:Yp,start(e,t,n){const r=e.legend=new Yp({ctx:e.ctx,options:n,chart:e});Bd.configure(e,r,n),Bd.addBox(e,r)},stop(e){Bd.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Bd.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=qc(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Up extends ih{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const r=rl(n.text)?n.text.length:1;this._padding=qc(n.padding);const o=r*Uc(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:o,options:i}=this,a=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=rc(a,n,o),c=t+e,s=o-n):("left"===i.position?(l=n+e,c=rc(a,r,t),u=-.5*kl):(l=o-e,c=rc(a,t,r),u=.5*kl),s=r-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Uc(t.font),r=n.lineHeight/2+this._padding.top,{titleX:o,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(r);$c(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:nc(t.align),textBaseline:"middle",translation:[o,i]})}}var Zp={id:"title",_element:Up,start(e,t,n){!function(e,t){const n=new Up({ctx:e.ctx,options:t,chart:e});Bd.configure(e,n,t),Bd.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;Bd.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Bd.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Gp=new WeakMap;var Kp={id:"subtitle",start(e,t,n){const r=new Up({ctx:e.ctx,options:n,chart:e});Bd.configure(e,r,n),Bd.addBox(e,r),Gp.set(e,r)},stop(e){Bd.removeBox(e,Gp.get(e)),Gp.delete(e)},beforeUpdate(e,t,n){const r=Gp.get(e);Bd.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Jp={average(e){if(!e.length)return!1;let t,n,r=new Set,o=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r.add(e.x),o+=e.y,++i}}if(0===i||0===r.size)return!1;const a=[...r].reduce(((e,t)=>e+t))/r.size;return{x:a,y:o/i}},nearest(e,t){if(!e.length)return!1;let n,r,o,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=Hl(t,r.getCenterPoint());e<s&&(s=e,o=r)}}if(o){const e=o.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function Qp(e,t){return t&&(rl(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ef(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function tf(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function nf(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=Uc(t.bodyFont),c=Uc(t.titleFont),u=Uc(t.footerFont),d=i.length,h=o.length,p=r.length,f=qc(t.padding);let m=f.height,g=0,v=r.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=p*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-p)*l.lineHeight+(v-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let y=0;const b=function(e){g=Math.max(g,n.measureText(e).width+y)};return n.save(),n.font=c.string,ul(e.title,b),n.font=l.string,ul(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?a+2+t.boxPadding:0,ul(r,(e=>{ul(e.before,b),ul(e.lines,b),ul(e.after,b)})),y=0,n.font=u.string,ul(e.footer,b),n.restore(),g+=f.width,{width:g,height:m}}function rf(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===r?c=o<=(s+l)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),function(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;return"left"===e&&o+i+a>t.width||"right"===e&&o-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function of(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||rf(e,t,n,r),yAlign:r}}function af(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=o+i,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=Xc(a);let f=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s);const m=function(e,t,n){let{y:r,height:o}=e;return"top"===t?r+=n:r-="bottom"===t?o+n:o/2,r}(t,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,h)+o:"right"===s&&(f+=Math.max(d,p)+o),{x:Xl(f,0,r.width-t.width),y:Xl(m,0,r.height-t.height)}}function sf(e,t,n){const r=qc(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function lf(e){return Qp([],ef(e))}function cf(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const uf={beforeTitle:el,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:el,beforeBody:el,beforeLabel:el,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return nl(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:el,afterBody:el,beforeFooter:el,footer:el,afterFooter:el};function df(e,t,n,r){const o=e[t].call(n,r);return void 0===o?uf[t].call(n,r):o}class hf extends ih{static positioners=Jp;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,o=new Uu(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,Gc(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,r=df(n,"beforeTitle",this,e),o=df(n,"title",this,e),i=df(n,"afterTitle",this,e);let a=[];return a=Qp(a,ef(r)),a=Qp(a,ef(o)),a=Qp(a,ef(i)),a}getBeforeBody(e,t){return lf(df(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,r=[];return ul(e,(e=>{const t={before:[],lines:[],after:[]},o=cf(n,e);Qp(t.before,ef(df(o,"beforeLabel",this,e))),Qp(t.lines,df(o,"label",this,e)),Qp(t.after,ef(df(o,"afterLabel",this,e))),r.push(t)})),r}getAfterBody(e,t){return lf(df(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,r=df(n,"beforeFooter",this,e),o=df(n,"footer",this,e),i=df(n,"afterFooter",this,e);let a=[];return a=Qp(a,ef(r)),a=Qp(a,ef(o)),a=Qp(a,ef(i)),a}_createItems(e){const t=this._active,n=this.chart.data,r=[],o=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(tf(this.chart,t[a]));return e.filter&&(l=l.filter(((t,r,o)=>e.filter(t,r,o,n)))),e.itemSort&&(l=l.sort(((t,r)=>e.itemSort(t,r,n)))),ul(l,(t=>{const n=cf(e.callbacks,t);r.push(df(n,"labelColor",this,t)),o.push(df(n,"labelPointStyle",this,t)),i.push(df(n,"labelTextColor",this,t))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const e=Jp[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=nf(this,n),a=Object.assign({},e,t),s=of(this.chart,n,a),l=af(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const o=this.getCaretPosition(e,n,r);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Xc(a),{x:d,y:h}=e,{width:p,height:f}=t;let m,g,v,y,b,_;return"center"===o?(b=h+f/2,"left"===r?(m=d,g=m-i,y=b+i,_=b-i):(m=d+p,g=m+i,y=b-i,_=b+i),v=m):(g="left"===r?d+Math.max(s,c)+i:"right"===r?d+p-Math.max(l,u)-i:this.caretX,"top"===o?(y=h,b=y-i,m=g-i,v=g+i):(y=h+f,b=y+i,m=g+i,v=g-i),_=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:_}}drawTitle(e,t,n){const r=this.title,o=r.length;let i,a,s;if(o){const l=Au(n.rtl,this.x,this.width);for(e.x=sf(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=Uc(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<o;++s)t.fillText(r[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===o&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,r,o){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=o,c=Uc(o.bodyFont),u=sf(this,"left",o),d=r.x(u),h=s<c.lineHeight?(c.lineHeight-s)/2:0,p=t.y+h;if(o.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(d,l)+l/2,c=p+s/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,Oc(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,Oc(e,t,n,c)}else{e.lineWidth=ol(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=r.leftForLtr(d,l),n=r.leftForLtr(r.xPlus(d,1),l-2),a=Xc(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=o.multiKeyBackground,Fc(e,{x:t,y:p,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),Fc(e,{x:n,y:p+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,p,l,s),e.strokeRect(t,p,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=Uc(n.bodyFont);let d=u.lineHeight,h=0;const p=Au(n.rtl,this.x,this.width),f=function(n){t.fillText(n,p.x(e.x+h),e.y+d/2),e.y+=d+o},m=p.textAlign(i);let g,v,y,b,_,x,w;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=sf(this,m,n),t.fillStyle=n.bodyColor,ul(this.beforeBody,f),h=a&&"right"!==m?"center"===i?l/2+c:l+2+c:0,b=0,x=r.length;b<x;++b){for(g=r[b],v=this.labelTextColors[b],t.fillStyle=v,ul(g.before,f),y=g.lines,a&&y.length&&(this._drawColorBox(t,e,b,p,n),d=Math.max(u.lineHeight,s)),_=0,w=y.length;_<w;++_)f(y[_]),d=u.lineHeight;ul(g.after,f)}h=0,d=u.lineHeight,ul(this.afterBody,f),e.y-=o}drawFooter(e,t,n){const r=this.footer,o=r.length;let i,a;if(o){const s=Au(n.rtl,this.x,this.width);for(e.x=sf(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=Uc(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<o;++a)t.fillText(r[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=Xc(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+l,s+c-p),t.quadraticCurveTo(a+l,s+c,a+l-p,s+c),"bottom"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+h,s+c),t.quadraticCurveTo(a,s+c,a,s+c-h),"center"===i&&"left"===o&&this.drawCaret(e,t,n,r),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=Jp[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=nf(this,e),a=Object.assign({},n,this._size),s=of(t,e,a),l=af(e,a,s,t);r._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=qc(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(o,e,r,t),Lu(e,t.textDirection),o.y+=i.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),Iu(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),o=!dl(n,r),i=this._positionChanged(r,t);(o||i)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(e,o,t,n),a=this._positionChanged(i,e),s=t||!dl(i,o)||a;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){const o=this.options;if("mouseout"===e.type)return[];if(!r)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:r,options:o}=this,i=Jp[o.position].call(this,e,t);return!1!==i&&(n!==i.x||r!==i.y)}}var pf={id:"tooltip",_element:hf,positioners:Jp,afterInit(e,t,n){n&&(e.tooltip=new hf({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:uf},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},ff=Object.freeze({__proto__:null,Colors:Sp,Decimation:Ep,Filler:Wp,Legend:qp,SubTitle:Kp,Title:Zp,Tooltip:pf});function mf(e,t,n,r){const o=e.indexOf(t);if(-1===o)return((e,t,n,r)=>("string"==typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r);return o!==e.lastIndexOf(t)?n:o}function gf(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class vf extends mh{static id="category";static defaults={ticks:{callback:gf}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(nl(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Xl(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:mf(n,e,sl(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,r=[];let o=this.getLabels();o=0===e&&t===o.length-1?o:o.slice(e,t+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){return gf.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function yf(e,t){const n=[],{bounds:r,step:o,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,h=o||1,p=c-1,{min:f,max:m}=t,g=!nl(i),v=!nl(a),y=!nl(l),b=(m-f)/(u+1);let _,x,w,S,k=Il((m-f)/p/h)*h;if(k<1e-14&&!g&&!v)return[{value:f},{value:m}];S=Math.ceil(m/k)-Math.floor(f/k),S>p&&(k=Il(S*k/p/h)*h),nl(s)||(_=Math.pow(10,s),k=Math.ceil(k*_)/_),"ticks"===r?(x=Math.floor(f/k)*k,w=Math.ceil(m/k)*k):(x=f,w=m),g&&v&&o&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/o,k/1e3)?(S=Math.round(Math.min((a-i)/k,c)),k=(a-i)/S,x=i,w=a):y?(x=g?i:x,w=v?a:w,S=l-1,k=(w-x)/S):(S=(w-x)/k,S=Ll(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const C=Math.max(jl(k),jl(x));_=Math.pow(10,nl(s)?C:s),x=Math.round(x*_)/_,w=Math.round(w*_)/_;let E=0;for(g&&(d&&x!==i?(n.push({value:i}),x<i&&E++,Ll(Math.round((x+E*k)*_)/_,i,bf(i,b,e))&&E++):x<i&&E++);E<S;++E){const e=Math.round((x+E*k)*_)/_;if(v&&e>a)break;n.push({value:e})}return v&&d&&w!==a?n.length&&Ll(n[n.length-1].value,a,bf(a,b,e))?n[n.length-1].value=a:n.push({value:a}):v&&w!==a||n.push({value:w}),n}function bf(e,t,{horizontal:n,minRotation:r}){const o=$l(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class _f extends mh{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return nl(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const i=e=>r=t?r:e,a=e=>o=n?o:e;if(e){const e=Al(r),t=Al(o);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(r===o){let t=0===o?1:Math.abs(.05*o);a(o+t),e||i(r-t)}this.min=r,this.max=o}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=yf({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Rl(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return gc(e,this.chart.options.locale,this.options.ticks.format)}}class xf extends _f{static id="linear";static defaults={ticks:{callback:yc.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=il(e)?e:0,this.max=il(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=$l(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/r))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const wf=e=>Math.floor(Dl(e)),Sf=(e,t)=>Math.pow(10,wf(e)+t);function kf(e){return 1===e/Math.pow(10,wf(e))}function Cf(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function Ef(e,{min:t,max:n}){t=al(e.min,t);const r=[],o=wf(t);let i=function(e,t){let n=wf(t-e);for(;Cf(e,t,n)>10;)n++;for(;Cf(e,t,n)<10;)n--;return Math.min(n,wf(e))}(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const s=Math.pow(10,i),l=o>i?Math.pow(10,o):0,c=Math.round((t-l)*a)/a,u=Math.floor((t-l)/s/10)*s*10;let d=Math.floor((c-u)/Math.pow(10,i)),h=al(e.min,Math.round((l+u+d*Math.pow(10,i))*a)/a);for(;h<n;)r.push({value:h,major:kf(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(i++,d=2,a=i>=0?1:a),h=Math.round((l+u+d*Math.pow(10,i))*a)/a;const p=al(e.max,h);return r.push({value:p,major:kf(p),significand:d}),r}class Mf extends mh{static id="logarithmic";static defaults={ticks:{callback:yc.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=_f.prototype.parse.apply(this,[e,t]);if(0!==n)return il(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=il(e)?Math.max(0,e):null,this.max=il(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!il(this._userMin)&&(this.min=e===Sf(this.min,0)?Sf(this.min,-1):Sf(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,r=this.max;const o=t=>n=e?n:t,i=e=>r=t?r:e;n===r&&(n<=0?(o(1),i(10)):(o(Sf(n,-1)),i(Sf(r,1)))),n<=0&&o(Sf(r,-1)),r<=0&&i(Sf(n,1)),this.min=n,this.max=r}buildTicks(){const e=this.options,t=Ef({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&Rl(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":gc(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Dl(e),this._valueRange=Dl(this.max)-Dl(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Dl(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function Pf(e){const t=e.ticks;if(t.display&&e.display){const e=qc(t.backdropPadding);return sl(t.font&&t.font.size,kc.font.size)+e.height}return 0}function Of(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:e<r||e>o?{start:t-n,end:t}:{start:t,end:t+n}}function Tf(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,s=a.centerPointLabels?kl/i:0;for(let d=0;d<i;d++){const i=a.setContext(e.getPointLabelContext(d));o[d]=i.padding;const h=e.getPointPosition(d,e.drawingArea+o[d],s),p=Uc(i.font),f=(l=e.ctx,c=p,u=rl(u=e._pointLabels[d])?u:[u],{w:Ec(l,c.string,u),h:u.length*c.lineHeight});r[d]=f;const m=Vl(e.getIndexAngle(d)+s),g=Math.round(Fl(m));Nf(n,t,m,Of(g,h.x,f.w,0,180),Of(g,h.y,f.h,90,270))}var l,c,u;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,{centerPointLabels:a,display:s}=i.pointLabels,l={extra:Pf(i)/2,additionalAngle:a?kl/o:0};let c;for(let i=0;i<o;i++){l.padding=n[i],l.size=t[i];const o=Df(e,i,l);r.push(o),"auto"===s&&(o.visible=Af(o,c),o.visible&&(c=o))}return r}(e,r,o)}function Nf(e,t,n,r,o){const i=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+s)),o.start<t.t?(l=(t.t-o.start)/a,e.t=Math.min(e.t,t.t-l)):o.end>t.b&&(l=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function Df(e,t,n){const r=e.drawingArea,{extra:o,additionalAngle:i,padding:a,size:s}=n,l=e.getPointPosition(t,r+o+a,i),c=Math.round(Fl(Vl(l.angle+Ol))),u=function(e,t,n){90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t);return e}(l.y,s.h,c),d=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(c),h=function(e,t,n){"right"===n?e-=t:"center"===n&&(e-=t/2);return e}(l.x,s.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+s.w,bottom:u+s.h}}function Af(e,t){if(!t)return!0;const{left:n,top:r,right:o,bottom:i}=e;return!(Nc({x:n,y:r},t)||Nc({x:n,y:i},t)||Nc({x:o,y:r},t)||Nc({x:o,y:i},t))}function Lf(e,t,n){const{left:r,top:o,right:i,bottom:a}=n,{backdropColor:s}=t;if(!nl(s)){const n=Xc(t.borderRadius),l=qc(t.backdropPadding);e.fillStyle=s;const c=r-l.left,u=o-l.top,d=i-r+l.width,h=a-o+l.height;Object.values(n).some((e=>0!==e))?(e.beginPath(),Fc(e,{x:c,y:u,w:d,h:h,radius:n}),e.fill()):e.fillRect(c,u,d,h)}}function If(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,Cl);else{let n=e.getPointPosition(0,t);o.moveTo(n.x,n.y);for(let i=1;i<r;i++)n=e.getPointPosition(i,t),o.lineTo(n.x,n.y)}}class zf extends _f{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:yc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=qc(Pf(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=il(e)&&!isNaN(e)?e:0,this.max=il(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Pf(this.options))}generateTickLabels(e){_f.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=cl(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?Tf(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){return Vl(e*(Cl/(this._pointLabels.length||1))+$l(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(nl(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(nl(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return Gc(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t,n=0){const r=this.getIndexAngle(e)-Ol+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:r,bottom:o}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:o}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),If(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:r,border:o}=t,i=this._pointLabels.length;let a,s,l;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const t=e._pointLabelItems[o];if(!t.visible)continue;const i=r.setContext(e.getPointLabelContext(o));Lf(n,i,t);const a=Uc(i.font),{x:s,y:l,textAlign:c}=t;$c(n,e._pointLabels[o],s,l+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}(this,i),r.display&&this.ticks.forEach(((e,t)=>{if(0!==t||0===t&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);const n=this.getContext(t),a=r.setContext(n),l=o.setContext(n);!function(e,t,n,r,o){const i=e.ctx,a=t.circular,{color:s,lineWidth:l}=t;!a&&!r||!s||!l||n<0||(i.save(),i.strokeStyle=s,i.lineWidth=l,i.setLineDash(o.dash||[]),i.lineDashOffset=o.dashOffset,i.beginPath(),If(e,n,a,r),i.closePath(),i.stroke(),i.restore())}(this,a,s,i,l)}})),n.display){for(e.save(),a=i-1;a>=0;a--){const r=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:i}=r;i&&o&&(e.lineWidth=i,e.strokeStyle=o,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),l=this.getPointPosition(a,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let o,i;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((r,a)=>{if(0===a&&this.min>=0&&!t.reverse)return;const s=n.setContext(this.getContext(a)),l=Uc(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){e.font=l.string,i=e.measureText(r.label).width,e.fillStyle=s.backdropColor;const t=qc(s.backdropPadding);e.fillRect(-i/2-t.left,-o-l.size/2-t.top,i+t.width,l.size+t.height)}$c(e,r.label,0,-o,l,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})})),e.restore()}drawTitle(){}}const Rf={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}},$f=Object.keys(Rf);function Ff(e,t){return e-t}function jf(e,t){if(nl(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return"function"==typeof r&&(a=r(a)),il(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(o&&(a="week"!==o||!zl(i)&&!0!==i?n.startOf(a,o):n.startOf(a,"isoWeek",i)),+a)}function Bf(e,t,n,r){const o=$f.length;for(let i=$f.indexOf(e);i<o-1;++i){const e=Rf[$f[i]],o=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(o*e.size))<=r)return $f[i]}return $f[o-1]}function Hf(e,t,n){if(n){if(n.length){const{lo:r,hi:o}=Ul(n,t);e[n[r]>=t?n[r]:n[o]]=!0}}else e[t]=!0}function Wf(e,t,n){const r=[],o={},i=t.length;let a,s;for(a=0;a<i;++a)s=t[a],o[s]=a,r.push({value:s,major:!1});return 0!==i&&n?function(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=i;s<=a;s=+o.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}(e,r,o,n):r}class Vf extends mh{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const n=e.time||(e.time={}),r=this._adapter=new xd._date(e.adapters.date);r.init(t),gl(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:jf(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:r,max:o,minDefined:i,maxDefined:a}=this.getUserBounds();function s(e){i||isNaN(e.min)||(r=Math.min(r,e.min)),a||isNaN(e.max)||(o=Math.max(o,e.max))}i&&a||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),r=il(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),o=il(o)&&!isNaN(o)?o:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,i=function(e,t,n){let r=0,o=e.length;for(;r<o&&e[r]<t;)r++;for(;o>r&&e[o-1]>n;)o--;return r>0||o<e.length?e.slice(r,o):e}(r,o,this.max);return this._unit=t.unit||(n.autoSkip?Bf(t.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(e,t,n,r,o){for(let i=$f.length-1;i>=$f.indexOf(n);i--){const n=$f[i];if(Rf[n].common&&e._adapter.diff(o,r,n)>=t-1)return n}return $f[n?$f.indexOf(n):0]}(this,i.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=$f.indexOf(e)+1,n=$f.length;t<n;++t)if(Rf[$f[t]].common)return $f[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&i.reverse(),Wf(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(e=[]){let t,n,r=0,o=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),o=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const i=e.length<3?.5:.25;r=Xl(r,0,i),o=Xl(o,0,i),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const e=this._adapter,t=this.min,n=this.max,r=this.options,o=r.time,i=o.unit||Bf(o.minUnit,t,n,this._getLabelCapacity(t)),a=sl(r.ticks.stepSize,1),s="week"===i&&o.isoWeekday,l=zl(s)||!0===s,c={};let u,d,h=t;if(l&&(h=+e.startOf(h,"isoWeek",s)),h=+e.startOf(h,l?"day":i),e.diff(n,t,i)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+i);const p="data"===r.ticks.source&&this.getDataTimestamps();for(u=h,d=0;u<n;u=+e.add(u,a,i),d++)Hf(c,u,p);return u!==n&&"ticks"!==r.bounds&&1!==d||Hf(c,u,p),Object.keys(c).sort(Ff).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,r=this._unit,o=t||n[r];return this._adapter.format(e,o)}_tickFormatFunction(e,t,n,r){const o=this.options,i=o.ticks.callback;if(i)return cl(i,[e,t,n],this);const a=o.time.displayFormats,s=this._unit,l=this._majorUnit,c=s&&a[s],u=l&&a[l],d=n[t],h=l&&u&&d&&d.major;return this._adapter.format(e,r||(h?u:c))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,r=$l(this.isHorizontal()?t.maxRotation:t.minRotation),o=Math.cos(r),i=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*i,h:n*i+a*o}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,o=this._tickFormatFunction(e,0,Wf(this,[e],this._majorUnit),r),i=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(jf(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Ql(e.sort(Ff))}}function Yf(e,t,n){let r,o,i,a,s=0,l=e.length-1;n?(t>=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=Zl(e,"pos",t)),({pos:r,time:i}=e[s]),({pos:o,time:a}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=Zl(e,"time",t)),({time:r,pos:i}=e[s]),({time:o,pos:a}=e[l]));const c=o-r;return c?i+(a-i)*(t-r)/c:i}var Xf=Object.freeze({__proto__:null,CategoryScale:vf,LinearScale:xf,LogarithmicScale:Mf,RadialLinearScale:zf,TimeScale:Vf,TimeSeriesScale:class extends Vf{static id="timeseries";static defaults=Vf.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Yf(t,this.min),this._tableRange=Yf(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,r=[],o=[];let i,a,s,l,c;for(i=0,a=e.length;i<a;++i)l=e[i],l>=t&&l<=n&&r.push(l);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(i=0,a=r.length;i<a;++i)c=r[i+1],s=r[i-1],l=r[i],Math.round((c+s)/2)!==l&&o.push({time:l,pos:i/(a-1)});return o}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return n.includes(e)&&n.length||n.splice(0,0,e),n.includes(t)&&1!==n.length||n.push(t),n.sort(((e,t)=>e-t))}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Yf(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return Yf(this._table,n*this._tableRange+this._minPos,!0)}}});const qf=[yd,gp,ff,Xf];qh.register(...qf);const Uf=({type:t,data:n,options:r,className:o,style:i,plugins:a})=>{const c=s(null),u=s(null);return l((()=>{if(!c.current)return;const e=c.current.getContext("2d");return e?(u.current&&u.current.destroy(),u.current=new qh(e,{type:t,data:n,options:r||{},plugins:a||[]}),()=>{u.current&&(u.current.destroy(),u.current=null)}):void 0}),[t,n,r,a]),e("canvas",{ref:c,className:o,style:i})};var Zf="Checkbox-module_container__v4ouY",Gf="Checkbox-module_disabled__PAavY",Kf="Checkbox-module_checkbox__tiPi8",Jf="Checkbox-module_indeterminate__GxPm3";var Qf=a((({checked:n=!1,disabled:r=!1,label:o,indeterminate:i=!1,labelProps:a,onChange:c,id:u,...d})=>{const h=s(null),p=s(null),m=f();l((()=>{h.current&&(h.current.indeterminate=i)}),[i]),l((()=>{if(!n||i)return;const e=p.current;if(!e)return;e.style.transform="translateZ(0)";const t=requestAnimationFrame((()=>{e.style.transform=""}));return()=>{cancelAnimationFrame(t),e&&(e.style.transform="")}}),[n,i]);return e(H,{...d,onClick:e=>{r||c?.(e)},dimensionY:36,className:`${d.className} ${Zf} ${r&&Gf}`,prefix:{children:t("div",{className:`${Kf} ${i&&Jf}`,children:[e("input",{id:u??m,ref:h,type:"checkbox",checked:n,disabled:r,"aria-checked":i?"mixed":n,readOnly:!0}),e("label",{ref:p,htmlFor:u??m,onClick:e=>e.stopPropagation()})]}),...d.prefix},root:{children:e(V,{...a,children:o}),...d.root}})})),em={chip:"Chip-module_chip__DLgqh",outlined:"Chip-module_outlined__1seXI",filled:"Chip-module_filled__iKdFt",noButton:"Chip-module_noButton__nEh--",closeButton:"Chip-module_closeButton__83TVb"};var tm=a((({label:t,variant:n="filled",icon:r,onDelete:o,suffixIcon:i,suffixOnClick:a,...s})=>e(H,{dimensionX:"hug",gap:8,prefix:{dimensionX:"hug",children:r?e(Za,{name:r}):void 0,...s.prefix},root:{children:t,...s.root},suffix:(i||o)&&{dimensionX:"hug",alignment:"center",children:e(_s,{className:em.closeButton,shape:"circle",color:"transparent",onClick:i?a:o,children:e(Za,{name:i||"close"})}),...s.suffix},...s,className:`${s.className} ${em.chip} ${em[n]} ${o||i?"":em.noButton}`}))),nm="Color-module_color__icl6l";var rm=a((({value:t="#000000",prefixProps:n,rootProps:r,onChange:o,...i})=>e(H,{dimensionY:36,prefix:{children:e("input",{type:"color",value:t,onChange:e=>{o?.(e.target.value)}}),...n},root:{children:t&&e(V,{children:t}),...r},...i,className:`${i?.className} ${nm}`})));const om=(e,t,n)=>Math.min(Math.max(e,t),n),im=(e,t=0)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},am=(e,t,n)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),o=Math.min(e,t,n),i=r-o,a=r+o,s=a/2;if(0===i)return{h:0,s:0,l:im(100*s,1)};const l=s>.5?i/(2-a):i/a;let c;switch(r){case e:c=(t-n)/i+(t<n?6:0);break;case t:c=(n-e)/i+2;break;case n:c=(e-t)/i+4;break;default:c=0}return{h:im(60*c,1),s:im(100*l,1),l:im(100*s,1)}},sm=(e,t,n)=>{e/=360;const r=(n/=100)*(t/=100),o=r*(1-Math.abs(6*e%2-1)),i=n-r;let a,s,l;return[a,s,l]=e<1/6?[r,o,0]:e<2/6?[o,r,0]:e<.5?[0,r,o]:e<4/6?[0,o,r]:e<5/6?[o,0,r]:[r,0,o],{r:Math.round(255*(a+i)),g:Math.round(255*(s+i)),b:Math.round(255*(l+i))}},lm=({r:e,g:t,b:n,a:r})=>{const o=e=>{const t=Math.round(om(e,0,255)).toString(16);return 1===t.length?"0"+t:t},i=`#${o(e)}${o(t)}${o(n)}`.toUpperCase();if(r<1){return`${i}${o(255*r)}`}return i},cm=(e,t,n,r)=>1===r?`rgb(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)})`:`rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${im(r,2)})`,um=(e,t,n,r)=>1===r?`hsl(${Math.round(e)}, ${Math.round(t)}%, ${Math.round(n)}%)`:`hsla(${Math.round(e)}, ${Math.round(t)}%, ${Math.round(n)}%, ${im(r,2)})`,dm=e=>{const t=e.trim().toLowerCase();if(t.startsWith("#")){const e=(e=>{if(3===(e=e.replace("#","")).length&&(e=e.split("").map((e=>e+e)).join("")),6===e.length)return{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1};if(8===e.length)return{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:parseInt(e.substr(6,2),16)/255};return null})(t);if(e){const t=am(e.r,e.g,e.b);return{hex:lm(e),rgb:e,hsl:{...t,a:e.a}}}}if(t.startsWith("rgb")){const e=(e=>{const t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?{r:parseInt(t[1]),g:parseInt(t[2]),b:parseInt(t[3]),a:t[4]?parseFloat(t[4]):1}:null})(t);if(e){const t=am(e.r,e.g,e.b);return{hex:lm(e),rgb:e,hsl:{...t,a:e.a}}}}if(t.startsWith("hsl")){const e=(e=>{const t=e.match(/hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*([\d.]+))?\s*\)/);return t?{h:parseFloat(t[1]),s:parseFloat(t[2]),l:parseFloat(t[3]),a:t[4]?parseFloat(t[4]):1}:null})(t);if(e){const t=((e,t,n)=>{if(e/=360,n/=100,0==(t/=100)){const e=Math.round(255*n);return{r:e,g:e,b:e}}const r=(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),o=n<.5?n*(1+t):n+t-n*t,i=2*n-o;return{r:Math.round(255*r(i,o,e+1/3)),g:Math.round(255*r(i,o,e)),b:Math.round(255*r(i,o,e-1/3))}})(e.h,e.s,e.l);return{hex:lm({...t,a:e.a}),rgb:{...t,a:e.a},hsl:e}}}return{hex:"#1677FF",rgb:{r:22,g:119,b:255,a:1},hsl:{h:220,s:100,l:54,a:1}}},hm=e=>{const t=((e,t,n)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=r,a=0===r?0:o/r;let s;if(0===o)s=0;else{switch(r){case e:s=(t-n)/o+(t<n?6:0);break;case t:s=(n-e)/o+2;break;case n:s=(e-t)/o+4;break;default:s=0}s/=6}return{h:im(360*s,1),s:im(100*a,1),v:im(100*i,1)}})(e.rgb.r,e.rgb.g,e.rgb.b);return{...t,a:e.rgb.a}},pm=e=>{const t=sm(e.h,e.s,e.v),n=am(t.r,t.g,t.b);return{hex:lm({...t,a:e.a}),rgb:{...t,a:e.a},hsl:{...n,a:e.a}}},fm=(e={})=>{const{onDragStart:t,onDrag:n,onDragEnd:r,onKeyDown:o,preventSelection:i=!0}=e,[a,d]=u({isDragging:!1,startX:0,startY:0,currentX:0,currentY:0}),h=s(null),p=s({left:0,top:0,width:0,height:0}),f=s(void 0),m=s(0),g=c((()=>{if(h.current){const e=h.current.getBoundingClientRect();p.current={left:e.left,top:e.top,width:e.width,height:e.height}}}),[]),v=c((e=>{if("touches"in e){const t=e.touches[0]||e.changedTouches[0];return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}),[]),y=c(((e,t)=>{const n=p.current,r=(e-n.left)/n.width,o=(t-n.top)/n.height;return{x:Math.max(0,Math.min(1,r)),y:Math.max(0,Math.min(1,o))}}),[]),b=c(((e,t)=>{const r=performance.now();f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame((()=>{if(r-m.current>=16){const{x:o,y:i}=y(e,t);n?.(o,i,p.current),m.current=r}}))}),[y,n]),_=c((e=>{e.preventDefault(),g();const{x:n,y:r}=v(e);d({isDragging:!0,startX:n,startY:r,currentX:n,currentY:r}),t?.(e),b(n,r),i&&(document.body.style.userSelect="none",document.body.style.webkitUserSelect="none")}),[v,b,t,i,g]),x=c((e=>{if(!a.isDragging)return;e.preventDefault();const{x:t,y:n}=v(e);d((e=>({...e,currentX:t,currentY:n}))),b(t,n)}),[a.isDragging,v,b]),w=c((()=>{a.isDragging&&(d((e=>({...e,isDragging:!1}))),r?.(),i&&(document.body.style.userSelect="",document.body.style.webkitUserSelect=""),f.current&&cancelAnimationFrame(f.current))}),[a.isDragging,r,i]),S=c((e=>{e.preventDefault(),g();const{x:n,y:r}=v(e);d({isDragging:!0,startX:n,startY:r,currentX:n,currentY:r}),t?.(e),b(n,r)}),[v,b,t,g]),k=c((e=>{if(!a.isDragging)return;e.preventDefault();const{x:t,y:n}=v(e);d((e=>({...e,currentX:t,currentY:n}))),b(t,n)}),[a.isDragging,v,b]),C=c((()=>{a.isDragging&&(d((e=>({...e,isDragging:!1}))),r?.(),f.current&&cancelAnimationFrame(f.current))}),[a.isDragging,r]),E=c((e=>{o?.(e)}),[o]),M=c((()=>{g()}),[g]);return l((()=>{const e=h.current;if(e)return e.addEventListener("mousedown",_),e.addEventListener("touchstart",S,{passive:!1}),e.addEventListener("keydown",E),()=>{e.removeEventListener("mousedown",_),e.removeEventListener("touchstart",S),e.removeEventListener("keydown",E)}}),[_,S,E]),l((()=>{if(a.isDragging)return document.addEventListener("mousemove",x),document.addEventListener("mouseup",w),document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",C),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",k),document.removeEventListener("touchend",C)}}),[a.isDragging,x,w,k,C]),l((()=>(window.addEventListener("resize",M),()=>window.removeEventListener("resize",M))),[M]),l((()=>()=>{f.current&&cancelAnimationFrame(f.current)}),[]),{elementRef:h,dragState:a,updateBounds:g}};var mm="ColorPicker-module_colorPicker__sEZf2",gm="ColorPicker-module_trigger__5Ukgm",vm="ColorPicker-module_triggerLabel__1qiCq",ym="ColorPicker-module_swatch__t-pF4",bm="ColorPicker-module_swatchColor__A-5J8",_m="ColorPicker-module_svPanel__Cr8Xb",xm="ColorPicker-module_svBackground__VgABR",wm="ColorPicker-module_svHandle__gPxoY",Sm="ColorPicker-module_slidersContainer__etZz6",km="ColorPicker-module_sliders__Xpo3f",Cm="ColorPicker-module_slider__HmNSH",Em="ColorPicker-module_hueSlider__smchE",Mm="ColorPicker-module_alphaSlider__7bImL",Pm="ColorPicker-module_alphaGradient__pIdQ6",Om="ColorPicker-module_sliderHandle__S-ghs",Tm="ColorPicker-module_formatSelect__5tLPh",Nm="ColorPicker-module_colorInput__6ajlG",Dm="ColorPicker-module_error__tj3WS",Am="ColorPicker-module_alphaInputContainer__-RszK",Lm="ColorPicker-module_alphaInput__IcWZ-",Im="ColorPicker-module_preview__2wBPl",zm="ColorPicker-module_previewColor__7da0X",Rm="Select-module_container__txDHr",$m="Select-module_disabled__RJ71M",Fm="Select-module_displayer__gzmxI",jm="Select-module_selectDropdown__HBmga",Bm="Portal-module_container__QcS9f";const Hm=new Map,Wm=({children:t,className:n,onClickOutside:r})=>{const o=f(),i=s(null),a=s(Date.now());return J({targetElements:[i.current?.firstChild],onClickOutside:e=>{Hm.get(o)===Math.max(...Hm.values())&&r?.(e)}}),l((()=>(Hm.set(o,a.current),()=>{Hm.delete(o)})),[o]),l((()=>{const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]),M.createPortal(e("div",{ref:i,className:`${Bm} ${n||""}`,children:t}),document.body)};var Vm="SelectOption-module_option__wQb8V",Ym="SelectOption-module_disabled__m5fGS",Xm="SelectOption-module_selected__A6Rky",qm="SelectOption-module_displayer__lEn8X";var Um=a((({option:t,selected:n,multiple:r,disabled:o,onSelect:i,onClick:a,...s})=>{const{value:l,label:c}="object"==typeof t?{value:t.value,label:t.label}:{value:t,label:t};return e(H,{dimensionX:"fill",dimensionY:36,alignment:"leftCenter",onClick:a,root:{children:e(Qf,{disabled:o,dimensionX:"fill",checked:n,label:c,alignment:"leftCenter",prefix:r?void 0:{children:null},root:{className:`${s.root?.className} ${qm}`},labelProps:{className:qm}}),dimensionX:"fill"},...s,className:`${Vm} ${n&&Xm} ${o&&Ym} ${s.className||""}`})}));var Zm=a((({value:r,options:o,placeholder:i="Select an option",placement:a="bottom",multiple:c=!1,disabled:h=!1,maxCount:p,popupClassName:f="",optionProps:g,selectRef:v,disableClick:y,onChange:b,externalDropdownRef:_,...x})=>{const[w,S]=u(!1),[k,C]=u(r||(c?[]:null));l((()=>{(r||0===r||""===r)&&C(r)}),[r]);const E=s(null),M=s(null);m(_??{current:null},(()=>M.current));const{targetPosition:P,calculatePosition:O}=Q({containerRef:E,targetRef:M,initialPlacement:a});d((()=>{w&&E.current&&M.current&&O()}),[w,o,O]);m(v,(()=>({toggleDropdown:N,clear:T})));const T=()=>{C([]),b?.([]),S(!1)},N=e=>{S(void 0===e?e=>!e:e)},D=e=>"object"!=typeof o[0]?String(e):L(e),A=e=>e.length?"object"==typeof o[0]?e.map((e=>L(e))).join(", "):e.join(", "):i,L=e=>o.find((t=>t.value===e))?.label;return t(n,{children:[e(H,{ref:E,onClick:()=>{h||y||N()},dimensionX:"fill",dimensionY:36,...x,root:{children:e(V,{style:x.root?.style,className:`${x.root?.className} ${Fm}`,children:k?c?A(k):D(k):i}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(Za,{name:"chevronDown"})},className:`${x.className} ${Rm} ${h&&$m}`}),w&&e(Wm,{onClickOutside:()=>{y||S(!1)},children:e(B,{ref:M,style:{...P},className:`${f} ${jm}`,direction:"vertical",alignment:"leftTop",gap:0,children:o.map((t=>{const n="object"==typeof t?t.value:t,r=c?Array.isArray(k)&&k.includes(n):k===n,o=c&&!!p&&Array.isArray(k)&&k.length>=p&&!r;return e(Um,{disabled:o,dimensionX:E.current?.offsetWidth,multiple:c,option:t,selected:r,onClick:()=>(e=>{c?(()=>{if(!Array.isArray(k))return;const t=k.includes(e)?k.filter((t=>t!==e)):[...k,e];C(t),b?.(t)})():(C(e),b?.(e),S(!1))})(n),...g},n.toString())}))})})]})}));const Gm=({value:n,defaultValue:r="#1677FF",onChange:o,format:a="hex",placement:d="bottomStart",disabled:h=!1,id:p,className:f,triggerDisplay:m="complete"})=>{const[g,v]=u(!1),[y,b]=u(a),[_,x]=u(""),[w,S]=u(!1),[k,C]=u("100"),E=i((()=>dm(n??r)),[n,r]),[M,P]=u(E),[O,T]=u((()=>hm(E))),N=s(null),D=s(null),A=s(null),L=s(null),I=s(null);l((()=>{if(void 0!==n){const e=dm(n);P(e),T(hm(e))}}),[n]),l((()=>{x(((e,t)=>{switch(t){case"hex":default:return e.hex;case"rgb":return cm(e.rgb.r,e.rgb.g,e.rgb.b,e.rgb.a);case"hsl":return um(e.hsl.h,e.hsl.s,e.hsl.l,e.hsl.a)}})(M,y)),C(Math.round(100*M.rgb.a).toString())}),[M,y]);const z=c((e=>{P(e),T(hm(e)),o?.(e)}),[o]),R=fm({onDrag:(e,t)=>{const n={...O,s:100*e,v:100*(1-t)};T(n),z(pm(n))},onKeyDown:e=>{const t=e.shiftKey?10:1;let n=O.s,r=O.v;switch(e.key){case"ArrowLeft":e.preventDefault(),n=om(O.s-t,0,100);break;case"ArrowRight":e.preventDefault(),n=om(O.s+t,0,100);break;case"ArrowUp":e.preventDefault(),r=om(O.v+t,0,100);break;case"ArrowDown":e.preventDefault(),r=om(O.v-t,0,100)}if(n!==O.s||r!==O.v){const e={...O,s:n,v:r};T(e),z(pm(e))}}}),$=fm({onDrag:e=>{const t={...O,h:360*e};T(t),z(pm(t))},onKeyDown:e=>{const t=e.shiftKey?10:1;let n=O.h;switch(e.key){case"ArrowLeft":e.preventDefault(),n=(O.h-t+360)%360;break;case"ArrowRight":e.preventDefault(),n=(O.h+t)%360}if(n!==O.h){const e={...O,h:n};T(e),z(pm(e))}}}),F=fm({onDrag:e=>{const t={...O,a:e};T(t),z(pm(t))},onKeyDown:e=>{const t=e.shiftKey?.1:.01;let n=O.a;switch(e.key){case"ArrowLeft":e.preventDefault(),n=om(O.a-t,0,1);break;case"ArrowRight":e.preventDefault(),n=om(O.a+t,0,1)}if(n!==O.a){const e={...O,a:n};T(e),z(pm(e))}}}),j=i((()=>{const e=sm(O.h,100,100);return{backgroundColor:`rgb(${e.r}, ${e.g}, ${e.b})`}}),[O.h]),H=i((()=>({left:`${O.s}%`,top:100-O.v+"%"})),[O.s,O.v]),W=i((()=>({left:O.h/360*100+"%"})),[O.h]),V=i((()=>{const e=sm(O.h,O.s,O.v);return{background:`linear-gradient(to right, rgba(${e.r}, ${e.g}, ${e.b}, 0), rgba(${e.r}, ${e.g}, ${e.b}, 1))`}}),[O.h,O.s,O.v]),Y=i((()=>({left:100*O.a+"%"})),[O.a]),X=i((()=>({backgroundColor:lm(M.rgb)})),[M.rgb]),q=()=>{h||v(!g)};l((()=>{const e=e=>{g&&D.current&&N.current&&!D.current.contains(e.target)&&!N.current.contains(e.target)&&v(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[g]),l((()=>{const e=e=>{"Escape"===e.key&&g&&(v(!1),N.current?.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[g]);const U="hex"===y?(M.rgb.a,M.hex):_,Z="only-code"!==m,K="only-color"!==m;return e("div",{className:`${mm} ${f||""}`,"data-disabled":h,children:e(DA,{content:t(B,{gap:5,direction:"vertical",children:[t("div",{ref:e=>{A.current=e,R.elementRef&&(R.elementRef.current=e)},className:_m,style:j,tabIndex:0,role:"slider","aria-label":"Saturation and brightness","aria-valuenow":Math.round(O.s),"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`Saturation ${Math.round(O.s)}%, Brightness ${Math.round(O.v)}%`,children:[e("div",{className:xm}),e("div",{className:wm,style:H})]}),t("div",{className:Sm,children:[t("div",{className:km,children:[e("div",{ref:e=>{L.current=e,$.elementRef&&($.elementRef.current=e)},className:`${Cm} ${Em}`,tabIndex:0,role:"slider","aria-label":"Hue","aria-valuenow":Math.round(O.h),"aria-valuemin":0,"aria-valuemax":360,"aria-valuetext":`Hue ${Math.round(O.h)} degrees`,children:e("div",{className:Om,style:W})}),t("div",{ref:e=>{I.current=e,F.elementRef&&(F.elementRef.current=e)},className:`${Cm} ${Mm}`,tabIndex:0,role:"slider","aria-label":"Alpha","aria-valuenow":Math.round(100*O.a),"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`Alpha ${Math.round(100*O.a)}%`,children:[e("div",{className:Pm,style:V}),e("div",{className:Om,style:Y})]})]}),e("div",{className:Im,children:e("div",{className:zm,style:X})})]}),t(B,{gap:5,direction:"horizontal",children:[e(Zm,{className:Tm,value:y,options:[{value:"hex",label:"HEX"},{value:"rgb",label:"RGB"},{value:"hsl",label:"HSL"}],onChange:e=>b(e),dimensionY:32}),e(G,{type:"text",className:`${Nm} ${w?Dm:""}`,value:_,onChange:e=>(e=>{x(e),S(!1)})(e.target.value),onBlur:()=>{try{const e=dm(_);z(e),S(!1)}catch{S(!0);const e=(e,t)=>{switch(t){case"hex":default:return e.hex;case"rgb":return cm(e.rgb.r,e.rgb.g,e.rgb.b,e.rgb.a);case"hsl":return um(e.hsl.h,e.hsl.s,e.hsl.l,e.hsl.a)}};x(e(M,y))}},"aria-label":"Color value","aria-invalid":w,dimensionY:32}),t(B,{className:Am,children:[e(G,{type:"text",className:Lm,value:k,onChange:e=>(e=>{C(e);const t=parseFloat(e);if(!isNaN(t)&&t>=0&&t<=100){const e={...O,a:t/100};T(e),z(pm(e))}})(e.target.value),"aria-label":"Alpha percentage",dimensionY:32,dimensionX:30}),e("span",{children:"%"})]})]})]}),open:g,onClose:()=>v(!1),arrow:!0,placement:"bottom",children:t("button",{ref:N,className:gm,onClick:q,onKeyDown:e=>{"Enter"===e.key||" "===e.key?(e.preventDefault(),q()):"Escape"===e.key&&g&&v(!1)},disabled:h,"aria-label":"Open color picker","aria-expanded":g,"aria-haspopup":"dialog",id:p,"data-display":m,children:[Z&&e("div",{className:ym,children:e("div",{className:bm,style:X})}),K&&e("span",{className:vm,children:U})]})})})};var Km={container:"DashboardItem-module_container__Cu2fp",settingButton:"DashboardItem-module_settingButton__EVb24",header:"DashboardItem-module_header__1Ltls",chartContainer:"DashboardItem-module_chartContainer__xibFh",chart:"DashboardItem-module_chart__a5kGE"},Jm="Section-module_sectionContainer__qECl2",Qm="Section-module_header__1oDhY",eg="Section-module_content__3PfOv",tg="Section-module_footer__KPdum";const ng=a((({children:t,...n})=>e(B,{dimensionX:"fill",alignment:"leftTop",...n,className:`${Qm} ${n.className}`,children:t}))),rg=a((({children:t,...n})=>e(B,{dimensionX:"fill",alignment:"leftTop",...n,className:`${eg} ${n.className}`,children:t}))),og=a((({children:t,...n})=>e(B,{dimensionX:"fill",alignment:"leftTop",...n,className:`${tg} ${n.className}`,children:t}))),ig=a((({children:t,...n})=>e(B,{dimensionX:"fill",dimensionY:"fill",direction:"vertical",gap:0,...n,className:`${n.className} ${Jm}`,children:t})));ig.Header=ng,ig.Content=rg,ig.Footer=og;const ag=({headerProps:n,chartProps:r})=>t(ig,{className:Km.dashboardItem,children:[t(ig.Header,{children:[e(V,{children:n?.content}),n?.suffix||e(_s,{color:"transparent",shape:"circle",className:Km.settingButton,children:e(Za,{name:"cog",className:Km.settingIcon,size:"xs"})})]}),e(ig.Content,{children:e(Uf,{type:r?.type,data:r?.data,options:r?.options,className:Km.chart})})]});var sg,lg={exports:{}};
49
+ */class Wu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const o=t.listeners[r],i=t.duration;o.forEach((r=>r({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=ec.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,n,e,"progress")),o.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=o.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Vu=new Wu;const Yu="transparent",Xu={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=dc(e||Yu),o=r.valid&&dc(t||Yu);return o&&o.valid?o.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class qu{constructor(e,t,n,r){const o=t[n];r=Zc([e.to,r,o,e.from]);const i=Zc([e.from,o,r]);this._active=!0,this._fn=e.fn||Xu[e.type||typeof i],this._easing=cc[e.easing]||cc.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Zc([e.to,t,r,e.from]),this._from=Zc([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||t<n),!this._active)return this._target[r]=a,void this._notify(!0);t<0?this._target[r]=o:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(o,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class Uu{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!ol(e))return;const t=Object.keys(kc.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((r=>{const o=e[r];if(!ol(o))return;const i={};for(const e of t)i[e]=o[e];(rl(o.properties)&&o.properties||[r]).forEach((e=>{e!==r&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){const o=e[r[t]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),o}_createAnimations(e,t){const n=this._properties,r=[],o=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const c=t[l];let u=o[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(o[l]=u=new qu(d,e,l,c),r.push(u)):e[l]=c}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(Vu.add(this._chart,n),!0):void 0}}function Zu(e,t){const n=e&&e.options||{},r=n.reverse,o=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:o,end:r?o:i}}function Gu(e,t){const n=[],r=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Ku(e,t,n,r={}){const o=e.keys,i="single"===r.mode;let a,s,l,c;if(null===t)return;let u=!1;for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(u=!0,r.all)continue;break}c=e.values[l],il(c)&&(i||0===t||Al(t)===Al(c))&&(t+=c)}return u||r.all?t:0}function Ju(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Qu(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function ed(e,t,n,r){for(const o of t.getMatchingVisibleMetas(r).reverse()){const t=e[o.index];if(n&&t>0||!n&&t<0)return o.index}return null}function td(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,r),d=t.length;let h;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Qu(o,u,i),h[s]=d,h._top=ed(h,a,!0,r.type),h._bottom=ed(h,a,!1,r.type);(h._visualValues||(h._visualValues={}))[s]=d}}function nd(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function rd(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n],void 0!==t[r]._visualValues&&void 0!==t[r]._visualValues[n]&&delete t[r]._visualValues[n]}}}const od=e=>"reset"===e||"none"===e,id=(e,t)=>t?e:Object.assign({},e);class ad{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Ju(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&rd(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,o=t.xAxisID=sl(n.xAxisID,nd(e,"x")),i=t.yAxisID=sl(n.yAxisID,nd(e,"y")),a=t.rAxisID=sl(n.rAxisID,nd(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,o,i,a),c=t.vAxisID=r(s,i,o,a);t.xScale=this.getScaleForId(o),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Jl(this._data,this),e._stacked&&rd(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(ol(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:r}=t,o="x"===n.axis?"x":"y",i="x"===r.axis?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[o]:u,[i]:e[u]};return s}(t,e)}else if(n!==t){if(n){Jl(n,this);const e=this._cachedMeta;rd(e),e._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Kl.forEach((t=>{const n="_onData"+_l(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const o=r.apply(this,t);return e._chartjs.listeners.forEach((e=>{"function"==typeof e[n]&&e[n](...t)})),o}})})))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=t._stacked;t._stacked=Ju(t.vScale,t),t.stack!==n.stack&&(r=!0,rd(t),t.stack=n.stack),this._resyncElements(e),(r||o!==t._stacked)&&(td(this,t._parsed),t._stacked=Ju(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:i}=n,a=o.axis;let s,l,c,u=0===e&&t===r.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=rl(r[e])?this.parseArrayData(n,r,e,t):ol(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const o=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(o()&&(u=!1),d=l);n._sorted=u}i&&td(this,c)}parsePrimitiveData(e,t,n,r){const{iScale:o,vScale:i}=e,a=o.axis,s=i.axis,l=o.getLabels(),c=o===i,u=new Array(r);let d,h,p;for(d=0,h=r;d<h;++d)p=d+n,u[d]={[a]:c||o.parse(l[p],p),[s]:i.parse(t[p],p)};return u}parseArrayData(e,t,n,r){const{xScale:o,yScale:i}=e,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],a[s]={x:o.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,r){const{xScale:o,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,d,h;for(c=0,u=r;c<u;++c)d=c+n,h=t[d],l[c]={x:o.parse(bl(h,a),d),y:i.parse(bl(h,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,o=this._cachedMeta,i=t[e.axis];return Ku({keys:Gu(r,!0),values:t._stacks[e.axis]._visualValues},i,o.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const o=n[t.axis];let i=null===o?NaN:o;const a=r&&n._stacks[t.axis];r&&a&&(r.values=a,i=Ku(r,o,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&e===n.iScale,i=r.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Gu(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:r,maxDefined:o}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let d,h;function p(){h=r[d];const t=h[a.axis];return!il(h[e.axis])||c>t||u<t}for(d=0;d<i&&(p()||(this.updateRangeFromParsed(l,e,h,s),!o));++d);if(o)for(d=i-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,e,h,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=t.length;r<o;++r)i=t[r][e.axis],il(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,r=t.vScale,o=this.getParsed(e);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,r,o;return ol(e)?(t=e.top,n=e.right,r=e.bottom,o=e.left):t=n=r=o=e,{top:t,right:n,bottom:r,left:o,disabled:!1===e}}(sl(this.options.clip,function(e,t,n){if(!1===n)return!1;const r=Zu(e,n),o=Zu(t,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],o=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,o,a,s),c=a;c<a+s;++c){const t=r[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,o))}for(c=0;c<i.length;++c)i[c].draw(e,o)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];o=t.$context||(t.$context=function(e,t,n){return Gc(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),o.parsed=this.getParsed(e),o.raw=r.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=function(e,t){return Gc(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!t,o.mode=n,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const r="active"===t,o=this._cachedDataOpts,i=e+"-"+t,a=o[i],s=this.enableOptionSharing&&xl(n);if(a)return id(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(kc.elements[e]),p=l.resolveNamedOptions(d,h,(()=>this.getContext(n,r,t)),u);return p.$shared&&(p.$shared=s,o[i]=Object.freeze(id(p,s))),p}_resolveAnimations(e,t,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${t}`,a=o[i];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,t),i=r.getOptionScopes(this.getDataset(),o);s=r.createResolver(i,this.getContext(e,n,t))}const l=new Uu(r,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||od(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(t,o)||o!==r;return this.updateSharedOptions(o,t,n),{sharedOptions:o,includeOptions:i}}updateElement(e,t,n,r){od(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!od(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const o=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const r=n.length,o=t.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,e):o<r&&this._removeElements(o,r-o)}_insertElements(e,t,n=!0){const r=this._cachedMeta,o=r.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(o),a=e;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(o,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(e,t);n._stacked&&rd(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function sd(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let t=0,o=n.length;t<o;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=Ql(r.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let r,o,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(xl(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(r=0,o=n.length;r<o;++r)i=t.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=t.ticks.length;r<o;++r)i=t.getPixelForTick(r),l();return s}function ld(e,t,n,r){return rl(e)?function(e,t,n,r){const o=n.parse(e[0],r),i=n.parse(e[1],r),a=Math.min(o,i),s=Math.max(o,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:o,end:i,min:a,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function cd(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),s=o===i,l=[];let c,u,d,h;for(c=n,u=n+r;c<u;++c)h=t[c],d={},d[o.axis]=s||o.parse(a[c],c),l.push(ld(h,d,i,c));return l}function ud(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function dd(e,t,n,r){let o=t.borderSkipped;const i={};if(!o)return void(e.borderSkipped=i);if(!0===o)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:t,top:o,bottom:i}}(e);"middle"===o&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?o=c:(n._bottom||0)===r?o=u:(i[hd(u,a,s,l)]=!0,o=c)),i[hd(o,a,s,l)]=!0,e.borderSkipped=i}function hd(e,t,n,r){var o,i,a;return r?(a=n,e=pd(e=(o=e)===(i=t)?a:o===a?i:o,n,t)):e=pd(e,t,n),e}function pd(e,t,n){return"start"===e?t:"end"===e?n:e}function fd(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class md extends ad{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,r){return cd(e,t,n,r)}parseArrayData(e,t,n,r){return cd(e,t,n,r)}parseObjectData(e,t,n,r){const{iScale:o,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===i.axis?a:s,u=[];let d,h,p,f;for(d=n,h=n+r;d<h;++d)f=t[d],p={},p[o.axis]=o.parse(bl(f,l),d),u.push(ld(bl(f,c),p,i,d));return u}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);const o=n._custom;o&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:r}=t,o=this.getParsed(e),i=o._custom,a=ud(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){const o="reset"===r,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r);for(let h=t;h<t+n;h++){const t=this.getParsed(h),n=o||nl(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,c),f=(t._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||ud(t._custom)||i===f._top||i===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(m.options=u||this.resolveDataElementOptions(h,e[h].active?"active":r));const g=m.options||e[h].options;dd(m,g,f,i),fd(m,g,c.ratio),this.updateElement(e[h],h,m,r)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),o=n.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(t),s=a&&a[n.axis],l=e=>{const t=e._parsed.find((e=>e[n.axis]===s)),r=t&&t[e.vScale.axis];if(nl(r)||isNaN(r))return!0};for(const n of r)if((void 0===t||!l(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),o=void 0!==t?r.indexOf(t):-1;return-1===o?r.length-1:o}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let o,i;for(o=0,i=t.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=e.barThickness;return{min:a||sd(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:o,minBarLength:i}}=this,a=o||0,s=this.getParsed(e),l=s._custom,c=ud(l);let u,d,h=s[t.axis],p=0,f=n?this.applyStack(t,s,n):h;f!==h&&(p=f-h,f=h),c&&(h=l.barStart,f=l.barEnd-l.barStart,0!==h&&Al(h)!==Al(l.barEnd)&&(p=0),p+=h);const m=nl(o)||c?p:o;let g=t.getPixelForValue(m);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(p+f):g,d=u-g,Math.abs(d)<i){d=function(e,t,n){return 0!==e?Al(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,h===a&&(g-=d/2);const e=t.getPixelForDecimal(0),o=t.getPixelForDecimal(1),l=Math.min(e,o),p=Math.max(e,o);g=Math.max(Math.min(g,p),l),u=g+d,n&&!c&&(s._stacks[t.axis]._visualValues[r]=t.getValueForPixel(u)-t.getValueForPixel(g))}if(g===t.getPixelForValue(a)){const e=Al(d)*t.getLineWidthForValue(a)/2;g+=e,d-=e}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,o=r.skipNull,i=sl(r.maxBarThickness,1/0);let a,s;if(t.grouped){const n=o?this._getStackCount(e):t.stackCount,l="flex"===r.barThickness?function(e,t,n,r){const o=t.pixels,i=o[e];let a=e>0?o[e-1]:null,s=e<o.length-1?o[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}(e,t,r,n):function(e,t,n,r){const o=n.barThickness;let i,a;return nl(o)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:t.pixels[e]-i/2}}(e,t,r,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length;let o=0;for(;o<r;++o)null===this.getParsed(o)[t.axis]||n[o].hidden||n[o].draw(this._ctx)}}class gd extends ad{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map(((t,o)=>{const i=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,i,a=e=>+n[e];if(ol(n[e])){const{key:e="value"}=this._parsing;a=t=>+bl(n[t],e)}for(o=e,i=e+t;o<i;++o)r._parsed[o]=a(o)}}_getRotation(){return $l(this.options.rotation-90)}_getCircumference(){return $l(this.options.circumference)}_getRotationExtents(){let e=Cl,t=-Cl;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,o=r._getRotation(),i=r._getCircumference();e=Math.min(e,o),t=Math.max(t,o+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,r=this._cachedMeta,o=r.data,i=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:m,offsetY:g}=function(e,t,n){let r=1,o=1,i=0,a=0;if(t<Cl){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),h=Math.sin(l),p=(e,t,r)=>Yl(e,s,l,!0)?1:Math.max(t,t*n,r,r*n),f=(e,t,r)=>Yl(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n),m=p(0,c,d),g=p(Ol,u,h),v=f(kl,c,d),y=f(kl+Ol,u,h);r=(m-v)/2,o=(g-y)/2,i=-(m+v)/2,a=-(g+y)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:a}}(h,d,s),v=(n.width-i)/p,y=(n.height-i)/f,b=Math.max(Math.min(v,y)/2,0),_=ll(this.options.radius,b),x=(_-Math.max(_*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*_,this.offsetY=g*_,r.total=this.calculateTotal(),this.outerRadius=_-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*u,0),this.updateElements(o,0,o.length,e)}_circumference(e,t){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*o/Cl)}updateElements(e,t,n,r){const o="reset"===r,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=o&&s.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(t,r);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,o);for(m=t;m<t+n;++m){const t=this._circumference(m,o),n=e[m],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:h,innerRadius:d};f&&(i.options=p||this.resolveDataElementOptions(m,n.active?"active":r)),g+=t,this.updateElement(n,m,i,r)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,r=0;for(n=0;n<t.length;n++){const o=e._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||t[n].hidden||(r+=Math.abs(o))}return r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?Cl*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=gc(t._parsed[e],n.options.locale);return{label:r[e]||"",value:o}}getMaxBorderWidth(e){let t=0;const n=this.chart;let r,o,i,a,s;if(!e)for(r=0,o=n.data.datasets.length;r<o;++r)if(n.isDatasetVisible(r)){i=n.getDatasetMeta(r),e=i.data,a=i.controller;break}if(!e)return 0;for(r=0,o=e.length;r<o;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(sl(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class vd extends ad{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map(((t,o)=>{const i=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=gc(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:o}}parseObjectData(e,t,n,r){return uu.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<t.min&&(t.min=r),r>t.max&&(t.max=r))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),o=Math.max(r/2,0),i=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=o-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(e,t,n,r){const o="reset"===r,i=this.chart,a=i.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*kl;let d,h=u;const p=360/this.countVisibleElements();for(d=0;d<t;++d)h+=this._computeAngle(d,r,p);for(d=t;d<t+n;d++){const t=e[d];let n=h,f=h+this._computeAngle(d,r,p),m=i.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=f,o&&(a.animateScale&&(m=0),a.animateRotate&&(n=f=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(d,t.active?"active":r)};this.updateElement(t,d,g,r)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?$l(this.resolveDataElementOptions(e,t).angle||n):0}}var yd=Object.freeze({__proto__:null,BarController:md,BubbleController:class extends ad{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,r){const o=super.parsePrimitiveData(e,t,n,r);for(let e=0;e<o.length;e++)o[e]._custom=this.resolveDataElementOptions(e+n).radius;return o}parseArrayData(e,t,n,r){const o=super.parseArrayData(e,t,n,r);for(let e=0;e<o.length;e++){const r=t[n+e];o[e]._custom=sl(r[2],this.resolveDataElementOptions(e+n).radius)}return o}parseObjectData(e,t,n,r){const o=super.parseObjectData(e,t,n,r);for(let e=0;e<o.length;e++){const r=t[n+e];o[e]._custom=sl(r&&r.r&&+r.r,this.resolveDataElementOptions(e+n).radius)}return o}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:o}=t,i=this.getParsed(e),a=r.getLabelForValue(i.x),s=o.getLabelForValue(i.y),l=i._custom;return{label:n[e]||"",value:"("+a+", "+s+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,r),c=i.axis,u=a.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!o&&this.getParsed(d),h={},p=h[c]=o?i.getPixelForDecimal(.5):i.getPixelForValue(n[c]),f=h[u]=o?a.getBasePixel():a.getPixelForValue(n[u]);h.skip=isNaN(p)||isNaN(f),l&&(h.options=s||this.resolveDataElementOptions(d,t.active?"active":r),o&&(h.options.radius=0)),this.updateElement(t,d,h,r)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let r=super.resolveDataElementOptions(e,t);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return"active"!==t&&(r.radius=0),r.radius+=sl(n&&n._custom,o),r}},DoughnutController:gd,LineController:class extends ad{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=oc(t,r,i);this._drawStart=a,this._drawCount=s,ic(t)&&(a=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(r,a,s,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,r),d=i.axis,h=a.axis,{spanGaps:p,segment:f}=this.options,m=zl(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===r,v=t+n,y=e.length;let b=t>0&&this.getParsed(t-1);for(let n=0;n<y;++n){const p=e[n],y=g?p:{};if(n<t||n>=v){y.skip=!0;continue}const _=this.getParsed(n),x=nl(_[h]),w=y[d]=i.getPixelForValue(_[d],n),S=y[h]=o||x?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,_,s):_[h],n);y.skip=isNaN(w)||isNaN(S)||x,y.stop=n>0&&Math.abs(_[d]-b[d])>m,f&&(y.parsed=_,y.raw=l.data[n]),u&&(y.options=c||this.resolveDataElementOptions(n,p.active?"active":r)),g||this.updateElement(p,n,y,r),b=_}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const o=r[0].size(this.resolveDataElementOptions(0)),i=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,o,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},PieController:class extends gd{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:vd,RadarController:class extends ad{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return uu.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta,n=t.dataset,r=t.data||[],o=t.iScale.getLabels();if(n.points=r,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const i={_loop:!0,_fullLoop:o.length===r.length,options:t};this.updateElement(n,void 0,i,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){const o=this._cachedMeta.rScale,i="reset"===r;for(let a=t;a<t+n;a++){const t=e[a],n=this.resolveDataElementOptions(a,t.active?"active":r),s=o.getPointPositionForValue(a,this.getParsed(a).r),l=i?o.xCenter:s.x,c=i?o.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,a,u,r)}}},ScatterController:class extends ad{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:o}=t,i=this.getParsed(e),a=r.getLabelForValue(i.x),s=o.getLabelForValue(i.y);return{label:n[e]||"",value:"("+a+", "+s+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,r=this.chart._animationsDisabled;let{start:o,count:i}=oc(t,n,r);if(this._drawStart=o,this._drawCount=i,ic(t)&&(o=0,i=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:i}=t;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=n;const a=this.resolveDatasetElementOptions(e);a.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:a},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(n,o,i,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,r),u=this.getSharedOptions(c),d=this.includeOptions(r,u),h=i.axis,p=a.axis,{spanGaps:f,segment:m}=this.options,g=zl(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===r;let y=t>0&&this.getParsed(t-1);for(let c=t;c<t+n;++c){const t=e[c],n=this.getParsed(c),f=v?t:{},b=nl(n[p]),_=f[h]=i.getPixelForValue(n[h],c),x=f[p]=o||b?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[p],c);f.skip=isNaN(_)||isNaN(x)||b,f.stop=c>0&&Math.abs(n[h]-y[h])>g,m&&(f.parsed=n,f.raw=l.data[c]),d&&(f.options=u||this.resolveDataElementOptions(c,t.active?"active":r)),v||this.updateElement(t,c,f,r),y=n}this.updateSharedOptions(u,r,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;const o=t[0].size(this.resolveDataElementOptions(0)),i=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,o,i)/2}}});function bd(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class _d{static override(e){Object.assign(_d.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return bd()}parse(){return bd()}format(){return bd()}add(){return bd()}diff(){return bd()}startOf(){return bd()}endOf(){return bd()}}var xd={_date:_d};function wd(e,t,n,r){const{controller:o,data:i,_sorted:a}=e,s=o._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?Gl:Zl;if(!r)return e(i,t,n);if(o._sharedOptions){const r=i[0],o="function"==typeof r.getRange&&r.getRange(t);if(o){const r=e(i,t,n-o),a=e(i,t,n+o);return{lo:r.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function Sd(e,t,n,r,o){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=wd(i[e],t,a,o);for(let e=l;e<=c;++e){const t=s[e];t.skip||r(t,n,e)}}}function kd(e,t,n,r,o){const i=[];if(!o&&!e.isPointInArea(t))return i;return Sd(e,n,t,(function(n,a,s){(o||Nc(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function Cd(e,t,n,r,o,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const o=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return Sd(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,o);if(r&&!d)return;const h=n.getCenterPoint(o);if(!(!!i||e.isPointInArea(h))&&!d)return;const p=s(t,h);p<l?(a=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function Ed(e,t,n,r,o,i){return i||e.isPointInArea(t)?"r"!==n||r?Cd(e,t,n,r,o,i):function(e,t,n,r){let o=[];return Sd(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],r),{angle:l}=Bl(e,{x:t.x,y:t.y});Yl(l,a,s)&&o.push({element:e,datasetIndex:n,index:i})})),o}(e,t,n,o):[]}function Md(e,t,n,r,o){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return Sd(e,n,t,((e,r,l)=>{e[a]&&e[a](t[n],o)&&(i.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,o))})),r&&!s?[]:i}var Pd={evaluateInteractionItems:Sd,modes:{index(e,t,n,r){const o=ku(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?kd(e,o,i,r,a):Ed(e,o,i,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,r){const o=ku(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?kd(e,o,i,r,a):Ed(e,o,i,!1,r,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,r)=>kd(e,ku(t,e),n.axis||"xy",r,n.includeInvisible||!1),nearest(e,t,n,r){const o=ku(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return Ed(e,o,i,n.intersect,r,a)},x:(e,t,n,r)=>Md(e,ku(t,e),"x",n.intersect,r),y:(e,t,n,r)=>Md(e,ku(t,e),"y",n.intersect,r)}};const Od=["left","top","right","bottom"];function Td(e,t){return e.filter((e=>e.pos===t))}function Nd(e,t){return e.filter((e=>-1===Od.indexOf(e.pos)&&e.box.axis===t))}function Dd(e,t){return e.sort(((e,n)=>{const r=t?n:e,o=t?e:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight}))}function Ad(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:o}=n;if(!e||!Od.includes(r))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:o}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&t.availableWidth,s.height=o):(s.width=r,s.height=c?c*o:a&&t.availableHeight)}return n}function Ld(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Id(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function zd(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!ol(o)){n.size&&(e[o]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[o]+=n.size}i.getPadding&&Id(a,i.getPadding());const s=Math.max(0,t.outerWidth-Ld(a,e,"left","right")),l=Math.max(0,t.outerHeight-Ld(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Rd(e,t){const n=t.maxPadding;function r(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function $d(e,t,n,r){const o=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,Rd(s.horizontal,t));const{same:a,other:d}=zd(t,n,s,r);c|=a&&o.length,u=u||d,l.fullSize||o.push(s)}return c&&$d(o,t,n,r)||u}function Fd(e,t,n,r,o){e.top=n,e.left=t,e.right=t+r,e.bottom=n+o,e.width=r,e.height=o}function jd(e,t,n,r){const o=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=t.w*c,i=l.size||e.height;xl(l.start)&&(a=l.start),e.fullSize?Fd(e,o.left,a,n.outerWidth-o.right-o.left,i):Fd(e,t.left+l.placed,a,r,i),l.start=a,l.placed+=r,a=e.bottom}else{const r=t.h*c,a=l.size||e.width;xl(l.start)&&(i=l.start),e.fullSize?Fd(e,i,o.top,a,n.outerHeight-o.bottom-o.top):Fd(e,i,t.top+l.placed,a,r),l.start=i,l.placed+=r,i=e.right}}t.x=i,t.y=a}var Bd={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const o=qc(e.options.layout.padding),i=Math.max(t-o.width,0),a=Math.max(n-o.height,0),s=function(e){const t=function(e){const t=[];let n,r,o,i,a,s;for(n=0,r=(e||[]).length;n<r;++n)o=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=o),t.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=Dd(t.filter((e=>e.box.fullSize)),!0),r=Dd(Td(t,"left"),!0),o=Dd(Td(t,"right")),i=Dd(Td(t,"top"),!0),a=Dd(Td(t,"bottom")),s=Nd(t,"x"),l=Nd(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:Td(t,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;ul(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},o);Id(h,qc(r));const p=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),f=Ad(l.concat(c),d);$d(s.fullSize,p,d,f),$d(l,p,d,f),$d(c,p,d,f)&&$d(l,p,d,f),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(p),jd(s.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,jd(s.rightAndBottom,p,d,f),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},ul(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class Hd{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class Wd extends Hd{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Vd="$chartjs",Yd={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xd=e=>null===e||""===e;const qd=!!Pu&&{passive:!0};function Ud(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,qd)}function Zd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Gd(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Zd(n.addedNodes,r),t=t&&!Zd(n.removedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function Kd(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Zd(n.removedNodes,r),t=t&&!Zd(n.addedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Jd=new Map;let Qd=0;function eh(){const e=window.devicePixelRatio;e!==Qd&&(Qd=e,Jd.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function th(e,t,n){const r=e.canvas,o=r&&bu(r);if(!o)return;const i=tc(((e,t)=>{const r=o.clientWidth;n(e,t),r<o.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||i(n,r)}));return a.observe(o),function(e,t){Jd.size||window.addEventListener("resize",eh),Jd.set(e,t)}(e,i),a}function nh(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Jd.delete(e),Jd.size||window.removeEventListener("resize",eh)}(e)}function rh(e,t,n){const r=e.canvas,o=tc((t=>{null!==e.ctx&&n(function(e,t){const n=Yd[e.type]||e.type,{x:r,y:o}=ku(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==o?o:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,qd)}(r,t,o),o}class oh extends Hd{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[Vd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Xd(o)){const t=Ou(e,"width");void 0!==t&&(e.width=t)}if(Xd(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=Ou(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[Vd])return!1;const n=t[Vd].initial;["height","width"].forEach((e=>{const r=n[e];nl(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t[Vd],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),o={attach:Gd,detach:Kd,resize:th}[t]||rh;r[t]=o(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];if(!r)return;({attach:nh,detach:nh,resize:nh}[t]||Ud)(e,t,r),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return Eu(e,t,n,r)}isAttached(e){const t=e&&bu(e);return!(!t||!t.isConnected)}}class ih{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return zl(this.x)&&zl(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach((e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),r}}function ah(e,t){const n=e.options.ticks,r=function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),o=e._maxLength/n;return Math.floor(Math.min(r,o))}(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>o)return function(e,t,n,r){let o,i=0,a=n[0];for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}(t,c,i,a/o),c;const u=function(e,t,n){const r=function(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}(e),o=t.length/n;if(!r)return Math.max(o,1);const i=function(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r==0&&(t.push(r),t.push(e/r));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(r);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>o)return t}return Math.max(o,1)}(i,t,o);if(a>0){let e,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(sh(t,c,u,nl(r)?0:s-r,s),e=0,n=a-1;e<n;e++)sh(t,c,u,i[e],i[e+1]);return sh(t,c,u,l,nl(r)?t.length:l+r),c}return sh(t,c,u),c}function sh(e,t,n,r,o){const i=sl(r,0),a=Math.min(sl(o,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),o&&(s=o-r,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}const lh=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,ch=(e,t)=>Math.min(t||e,e);function uh(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;i<o;i+=r)n.push(e[Math.floor(i)]);return n}function dh(e,t,n){const r=e.ticks.length,o=Math.min(t,r-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(o-1))/2,c+=o<t?l:-l,c<i-s||c>a+s)))return c}function hh(e){return e.drawTicks?e.tickLength:0}function ph(e,t){if(!e.display)return 0;const n=Uc(e.font,t),r=qc(e.padding);return(rl(e.text)?e.text.length:1)*n.lineHeight+r.height}function fh(e,t,n){let r=nc(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class mh extends ih{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=al(e,Number.POSITIVE_INFINITY),t=al(t,Number.NEGATIVE_INFINITY),n=al(n,Number.POSITIVE_INFINITY),r=al(r,Number.NEGATIVE_INFINITY),{min:al(e,n),max:al(t,r),minDefined:il(e),maxDefined:il(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),o||(n=Math.min(n,t.min)),i||(r=Math.max(r,t.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:al(n,al(r,n)),max:al(r,al(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){cl(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:r,max:o}=e,i=ll(t,(o-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(i)),max:a(o,i)}}(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?uh(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=ah(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){cl(this.options.afterUpdate,[this])}beforeSetDimensions(){cl(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){cl(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),cl(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){cl(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,r,o;for(n=0,r=e.length;n<r;n++)o=e[n],o.label=cl(t.callback,[o.value,n,e],this)}afterTickToLabelConversion(){cl(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){cl(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=ch(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,o=t.maxRotation;let i,a,s,l=r;if(!this._isVisible()||!t.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Xl(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:h/(n-1),u+6>i&&(i=h/(n-(e.offset?.5:1)),a=this.maxHeight-hh(e.grid)-t.padding-ph(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Fl(Math.min(Math.asin(Xl((c.highest.height+6)/i,-1,1)),Math.asin(Xl(a/s,-1,1))-Math.asin(Xl(d/s,-1,1)))),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){cl(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){cl(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=ph(r,t.options.font);if(a?(e.width=this.maxWidth,e.height=hh(o)+i):(e.height=this.maxHeight,e.width=hh(o)+i),n.display&&this.ticks.length){const{first:t,last:r,widest:o,highest:i}=this._getLabelSizes(),s=2*n.padding,l=$l(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*o.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*o.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):"start"===o?d=t.width:"end"===o?u=e.width:"inner"!==o&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,r=e.height/2;"start"===o?(n=0,r=e.height):"end"===o&&(n=t.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_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(){cl(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)nl(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=uh(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:r,_longestTextCache:o}=this,i=[],a=[],s=Math.floor(t/ch(t,n));let l,c,u,d,h,p,f,m,g,v,y,b=0,_=0;for(l=0;l<t;l+=s){if(d=e[l].label,h=this._resolveTickFontOptions(l),r.font=p=h.string,f=o[p]=o[p]||{data:{},gc:[]},m=h.lineHeight,g=v=0,nl(d)||rl(d)){if(rl(d))for(c=0,u=d.length;c<u;++c)y=d[c],nl(y)||rl(y)||(g=Cc(r,f.data,f.gc,g,y),v+=m)}else g=Cc(r,f.data,f.gc,g,d),v=m;i.push(g),a.push(v),b=Math.max(g,b),_=Math.max(v,_)}!function(e,t){ul(e,(e=>{const n=e.gc,r=n.length/2;let o;if(r>t){for(o=0;o<r;++o)delete e.data[n[o]];n.splice(0,r)}}))}(o,t);const x=i.indexOf(b),w=a.indexOf(_),S=e=>({width:i[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(x),highest:S(w),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return Xl(this._alignToPixels?Mc(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return Gc(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=Gc(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=$l(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),o=this._getLabelSizes(),i=e.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:o,position:i,border:a}=r,s=o.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=hh(o),d=[],h=a.setContext(this.getContext()),p=h.display?h.width:0,f=p/2,m=function(e){return Mc(n,e,p)};let g,v,y,b,_,x,w,S,k,C,E,M;if("top"===i)g=m(this.bottom),x=this.bottom-u,S=g-f,C=m(e.top)+f,M=e.bottom;else if("bottom"===i)g=m(this.top),C=e.top,M=m(e.bottom)-f,x=g+f,S=this.top+u;else if("left"===i)g=m(this.right),_=this.right-u,w=g-f,k=m(e.left)+f,E=e.right;else if("right"===i)g=m(this.left),k=e.left,E=m(e.right)-f,_=g+f,w=this.left+u;else if("x"===t){if("center"===i)g=m((e.top+e.bottom)/2+.5);else if(ol(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}C=e.top,M=e.bottom,x=g+f,S=x+u}else if("y"===t){if("center"===i)g=m((e.left+e.right)/2);else if(ol(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}_=g-f,w=_-u,k=e.left,E=e.right}const P=sl(r.ticks.maxTicksLimit,c),O=Math.max(1,Math.ceil(c/P));for(v=0;v<c;v+=O){const e=this.getContext(v),t=o.setContext(e),r=a.setContext(e),i=t.lineWidth,c=t.color,u=r.dash||[],h=r.dashOffset,p=t.tickWidth,f=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;y=dh(this,v,s),void 0!==y&&(b=Mc(n,y,i),l?_=w=k=E=b:x=S=C=M=b,d.push({tx1:_,ty1:x,tx2:w,ty2:S,x1:k,y1:C,x2:E,y2:M,width:i,color:c,borderDash:u,borderDashOffset:h,tickWidth:p,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:r,ticks:o}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=o,d=hh(n.grid),h=d+c,p=u?-c:h,f=-$l(this.labelRotation),m=[];let g,v,y,b,_,x,w,S,k,C,E,M,P="middle";if("top"===r)x=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===r)x=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,_=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,_=e.x}else if("x"===t){if("center"===r)x=(e.top+e.bottom)/2+h;else if(ol(r)){const e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)+h}w=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)_=(e.left+e.right)/2-h;else if(ol(r)){const e=Object.keys(r)[0],t=r[e];_=this.chart.scales[e].getPixelForValue(t)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?P="top":"end"===s&&(P="bottom"));const O=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){y=a[g],b=y.label;const e=o.setContext(this.getContext(g));S=this.getPixelForTick(g)+o.labelOffset,k=this._resolveTickFontOptions(g),C=k.lineHeight,E=rl(b)?b.length:1;const t=E/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,h=w;if(i?(_=S,"inner"===w&&(h=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),M="top"===r?"near"===l||0!==f?-E*C+C/2:"center"===l?-O.highest.height/2-t*C+C:-O.highest.height+C/2:"near"===l||0!==f?C/2:"center"===l?O.highest.height/2-t*C:O.highest.height-E*C,u&&(M*=-1),0===f||e.showLabelBackdrop||(_+=C/2*Math.sin(f))):(x=S,M=(1-E)*C/2),e.showLabelBackdrop){const t=qc(e.backdropPadding),n=O.heights[g],r=O.widths[g];let o=M-t.top,i=0-t.left;switch(P){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":i-=r/2;break;case"right":i-=r;break;case"inner":g===v-1?i-=r:g>0&&(i-=r/2)}d={left:i,top:o,width:r+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:b,font:k,textOffset:M,options:{rotation:f,color:n,strokeColor:s,strokeWidth:c,textAlign:h,textBaseline:P,translation:[_,x],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-$l(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:r,padding:o}}=this.options,i=e+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?r?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?r?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:o,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,o,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,i;const a=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(o=0,i=r.length;o<i;++o){const e=r[o];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:r}}=this,o=n.setContext(this.getContext()),i=n.display?o.width:0;if(!i)return;const a=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Mc(e,this.left,i)-i/2,c=Mc(e,this.right,a)+a/2,u=d=s):(u=Mc(e,this.top,i)-i/2,d=Mc(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&Dc(t,n);const r=this.getLabelItems(e);for(const e of r){const n=e.options,r=e.font;$c(t,e.label,0,e.textOffset,r,n)}n&&Ac(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const o=Uc(n.font),i=qc(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===t||"center"===t||ol(t)?(s+=i.bottom,rl(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,r){const{top:o,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,h,p,f=0;const m=a-o,g=s-i;if(e.isHorizontal()){if(h=rc(r,i,s),ol(n)){const e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)+m-t}else p="center"===n?(c.bottom+c.top)/2+m-t:lh(e,n,t);d=s-i}else{if(ol(n)){const e=Object.keys(n)[0],r=n[e];h=u[e].getPixelForValue(r)-g+t}else h="center"===n?(c.left+c.right)/2-g+t:lh(e,n,t);p=rc(r,a,o),f="left"===n?-Ol:Ol}return{titleX:h,titleY:p,maxWidth:d,rotation:f}}(this,s,t,a);$c(e,n.text,0,0,o,{color:n.color,maxWidth:u,rotation:d,textAlign:fh(a,t,r),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=sl(e.grid&&e.grid.z,-1),r=sl(e.border&&e.border.z,0);return this._isVisible()&&this.draw===mh.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let o,i;for(o=0,i=t.length;o<i;++o){const i=t[o];i[n]!==this.id||e&&i.type!==e||r.push(i)}return r}_resolveTickFontOptions(e){return Uc(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class gh{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const r=this.items,o=e.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in r||(r[o]=e,function(e,t,n){const r=ml(Object.create(null),[n?kc.get(n):{},kc.get(t),e.defaults]);kc.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");kc.route(i,o,l,s)}))}(t,e.defaultRoutes);e.descriptors&&kc.describe(t,e.descriptors)}(e,i,n),this.override&&kc.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in kc[r]&&(delete kc[r][n],this.override&&delete bc[n])}}class vh{constructor(){this.controllers=new gh(ad,"datasets",!0),this.elements=new gh(ih,"elements"),this.plugins=new gh(Object,"plugins"),this.scales=new gh(mh,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):ul(t,(t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)}))}))}_exec(e,t,n){const r=_l(e);cl(n["before"+r],[],n),t[e](n),cl(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}var yh=new vh;class bh{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const o=r?this._descriptors(e).filter(r):this._descriptors(e),i=this._notify(o,e,t,n);return"afterDestroy"===t&&(this._notify(o,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,r){r=r||{};for(const o of e){const e=o.plugin;if(!1===cl(e[n],[t,r,o.options],e)&&r.cancelable)return!1}return!0}invalidate(){nl(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=sl(n.options&&n.options.plugins,{}),o=function(e){const t={},n=[],r=Object.keys(yh.plugins.items);for(let e=0;e<r.length;e++)n.push(yh.getPlugin(r[e]));const o=e.plugins||[];for(let e=0;e<o.length;e++){const r=o[e];-1===n.indexOf(r)&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,{plugins:t,localIds:n},r,o){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=_h(r[t],o);null!==l&&i.push({plugin:s,options:xh(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,o,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function _h(e,t){return t||!1!==e?!0===e?{}:e:null}function xh(e,{plugin:t,local:n},r,o){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(r,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function wh(e,t){const n=kc.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Sh(e){if("x"===e||"y"===e||"r"===e)return e}function kh(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function Ch(e,...t){if(Sh(e))return e;for(const n of t){const t=n.axis||kh(n.position)||e.length>1&&Sh(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Eh(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Mh(e,t){const n=bc[e.type]||{scales:{}},r=t.scales||{},o=wh(e.type,t),i=Object.create(null);return Object.keys(r).forEach((t=>{const a=r[t];if(!ol(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=Ch(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return Eh(e,"x",n[0])||Eh(e,"y",n[0])}return{}}(t,e),kc.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,o),c=n.scales||{};i[t]=gl(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const o=n.type||e.type,a=n.indexAxis||wh(o,t),s=(bc[o]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),o=n[t+"AxisID"]||t;i[o]=i[o]||Object.create(null),gl(i[o],[{axis:t},r[o],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];gl(t,[kc.scales[t.type],kc.scale])})),i}function Ph(e){const t=e.options||(e.options={});t.plugins=sl(t.plugins,{}),t.scales=Mh(e,t)}function Oh(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Th=new Map,Nh=new Set;function Dh(e,t){let n=Th.get(e);return n||(n=t(),Th.set(e,n),Nh.add(n)),n}const Ah=(e,t,n)=>{const r=bl(t,n);void 0!==r&&e.add(r)};class Lh{constructor(e){this._config=function(e){return(e=e||{}).data=Oh(e.data),Ph(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Oh(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Ph(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Dh(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Dh(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Dh(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Dh(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:o}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>Ah(s,e,t)))),t.forEach((e=>Ah(s,r,e))),t.forEach((e=>Ah(s,bc[o]||{},e))),t.forEach((e=>Ah(s,kc,e))),t.forEach((e=>Ah(s,_c,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Nh.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,bc[t]||{},kc.datasets[t]||{},{type:t},kc,_c]}resolveNamedOptions(e,t,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=Ih(this._resolverCache,e,r);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:r}=Qc(e);for(const o of t){const t=n(o),i=r(o),a=(i||t)&&e[o];if(t&&(wl(a)||zh(a))||i&&rl(a))return!0}return!1}(i,t)){o.$shared=!1;s=Jc(i,n=wl(n)?n():n,this.createResolver(e,n,a))}for(const e of t)o[e]=s[e];return o}createResolver(e,t,n=[""],r){const{resolver:o}=Ih(this._resolverCache,e,n);return ol(t)?Jc(o,t,void 0,r):o}}function Ih(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);if(!i){i={resolver:Kc(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},r.set(o,i)}return i}const zh=e=>ol(e)&&Object.getOwnPropertyNames(e).some((t=>wl(e[t])));const Rh=["top","bottom","left","right","chartArea"];function $h(e,t){return"top"===e||"bottom"===e||-1===Rh.indexOf(e)&&"x"===t}function Fh(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function jh(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),cl(n&&n.onComplete,[e],t)}function Bh(e){const t=e.chart,n=t.options.animation;cl(n&&n.onProgress,[e],t)}function Hh(e){return yu()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Wh={},Vh=e=>{const t=Hh(e);return Object.values(Wh).filter((e=>e.canvas===t)).pop()};function Yh(e,t,n){const r=Object.keys(e);for(const o of r){const r=+o;if(r>=t){const i=e[o];delete e[o],(n>0||r>t)&&(e[r+n]=i)}}}function Xh(e,t,n){return e.options.clip?e[n]:t[n]}class qh{static defaults=kc;static instances=Wh;static overrides=bc;static registry=yh;static version="4.4.7";static getChart=Vh;static register(...e){yh.add(...e),Uh()}static unregister(...e){yh.remove(...e),Uh()}constructor(e,t){const n=this.config=new Lh(t),r=Hh(e),o=Vh(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!yu()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Wd:oh}(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=tl(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,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 bh,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],Wh[this.id]=this,a&&s?(Vu.listen(this,"complete",jh),Vu.listen(this,"progress",Bh),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:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:o}=this;return nl(e)?t&&o?o:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return yh}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Mu(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Pc(this.canvas,this.ctx),this}stop(){return Vu.stop(this),this}resize(e,t){Vu.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,e,t,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Mu(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),cl(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){ul(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let o=[];t&&(o=o.concat(Object.keys(t).map((e=>{const n=t[e],r=Ch(e,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),ul(o,(t=>{const o=t.options,i=o.id,a=Ch(i,o),s=sl(o.type,t.dtype);void 0!==o.position&&$h(o.position,a)===$h(t.dposition)||(o.position=t.dposition),r[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(yh.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,e)})),ul(r,((e,t)=>{e||delete n[t]})),ul(n,(e=>{Bd.configure(this,e,e.options),Bd.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Fh("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const r=t[n];let o=this.getDatasetMeta(n);const i=r.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=i,o.indexAxis=r.indexAxis||wh(i,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const t=yh.getController(i),{datasetElementType:r,dataElementType:a}=kc.datasets[i];Object.assign(t,{dataElementType:yh.getElement(a),datasetElementType:r&&yh.getElement(r)}),o.controller=new t(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){ul(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!r&&-1===o.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||ul(o,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Fh("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ul(this.scales,(e=>{Bd.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Sl(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of t){Yh(e,r,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),r=n(0);for(let e=1;e<t;e++)if(!Sl(r,n(e)))return;return Array.from(r).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Bd.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],ul(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,wl(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Vu.has(this)?this.attached&&!Vu.running(this)&&Vu.start(this):(this.draw(),jh({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,o;for(r=0,o=t.length;r<o;++r){const o=t[r];e&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,o=function(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Xh(n,t,"left"),right:Xh(n,t,"right"),top:Xh(r,t,"top"),bottom:Xh(r,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&Dc(t,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),e.controller.draw(),r&&Ac(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return Nc(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const o=Pd.modes[t];return"function"==typeof o?o(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Gc(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",o=this.getDatasetMeta(e),i=o.controller._resolveAnimations(void 0,r);xl(t)?(o.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(o,{visible:n}),this.update((t=>t.datasetIndex===e?r:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Vu.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Pc(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Wh[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};ul(this.options.events,(e=>n(e,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},o=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",i)};i=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){ul(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},ul(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let o,i,a,s;for("dataset"===t&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!dl(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const r=this.options.hover,o=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=o(t,e),a=n?e:o(e,t);i.length&&this.updateHoverStyle(i,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:o}=this,i=t,a=this._getActiveElements(e,r,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,cl(o.onHover,[e,a,this],this),s&&cl(o.onClick,[e,a,this],this));const c=!dl(a,r);return(c||t)&&(this._active=a,this._updateHoverStyles(a,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,r)}}function Uh(){return ul(qh.instances,(e=>e._plugins.invalidate()))}function Zh(e,t,n,r){const o=Vc(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-t)/2,a=Math.min(i,r*t/2),s=e=>{const t=(n-Math.min(i,e))*r/2;return Xl(e,0,Math.min(i,t))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Xl(o.innerStart,0,a),innerEnd:Xl(o.innerEnd,0,a)}}function Gh(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Kh(e,t,n,r,o,i){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let p=0;const f=o-l;if(r){const e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(f-(0!==e?f*e/(e+r):f))/2}const m=(f-Math.max(.001,f*d-n/kl)/d)/2,g=l+m+p,v=o-m-p,{outerStart:y,outerEnd:b,innerStart:_,innerEnd:x}=Zh(t,h,d,v-g),w=d-y,S=d-b,k=g+y/w,C=v-b/S,E=h+_,M=h+x,P=g+_/E,O=v-x/M;if(e.beginPath(),i){const t=(k+C)/2;if(e.arc(a,s,d,k,t),e.arc(a,s,d,t,C),b>0){const t=Gh(S,C,a,s);e.arc(t.x,t.y,b,C,v+Ol)}const n=Gh(M,v,a,s);if(e.lineTo(n.x,n.y),x>0){const t=Gh(M,O,a,s);e.arc(t.x,t.y,x,v+Ol,O+Math.PI)}const r=(v-x/h+(g+_/h))/2;if(e.arc(a,s,h,v-x/h,r,!0),e.arc(a,s,h,r,g+_/h,!0),_>0){const t=Gh(E,P,a,s);e.arc(t.x,t.y,_,P+Math.PI,g-Ol)}const o=Gh(w,g,a,s);if(e.lineTo(o.x,o.y),y>0){const t=Gh(w,k,a,s);e.arc(t.x,t.y,y,g-Ol,k)}}else{e.moveTo(a,s);const t=Math.cos(k)*d+a,n=Math.sin(k)*d+s;e.lineTo(t,n);const r=Math.cos(C)*d+a,o=Math.sin(C)*d+s;e.lineTo(r,o)}e.closePath()}function Jh(e,t,n,r,o){const{fullCircles:i,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,p="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=h,p?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let f=t.endAngle;if(i){Kh(e,t,n,r,f,o);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(f=a+(s%Cl||Cl))}p&&function(e,t,n){const{startAngle:r,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:l}=t;let c=o/s;e.beginPath(),e.arc(i,a,s,r-c,n+c),l>o?(c=o/l,e.arc(i,a,l,n+c,r-c,!0)):e.arc(i,a,o,n+Ol,r-Ol),e.closePath(),e.clip()}(e,t,f),i||(Kh(e,t,n,r,f,o),e.stroke())}function Qh(e,t,n=t){e.lineCap=sl(n.borderCapStyle,t.borderCapStyle),e.setLineDash(sl(n.borderDash,t.borderDash)),e.lineDashOffset=sl(n.borderDashOffset,t.borderDashOffset),e.lineJoin=sl(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=sl(n.borderWidth,t.borderWidth),e.strokeStyle=sl(n.borderColor,t.borderColor)}function ep(e,t,n){e.lineTo(n.x,n.y)}function tp(e,t,n={}){const r=e.length,{start:o=0,end:i=r-1}=n,{start:a,end:s}=t,l=Math.max(o,a),c=Math.min(i,s),u=o<a&&i<a||o>s&&i>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function np(e,t,n,r){const{points:o,options:i}=t,{count:a,start:s,loop:l,ilen:c}=tp(o,n,r),u=function(e){return e.stepped?Lc:e.tension||"monotone"===e.cubicInterpolationMode?Ic:ep}(i);let d,h,p,{move:f=!0,reverse:m}=r||{};for(d=0;d<=c;++d)h=o[(s+(m?c-d:d))%a],h.skip||(f?(e.moveTo(h.x,h.y),f=!1):u(e,p,h,m,i.stepped),p=h);return l&&(h=o[(s+(m?c:0))%a],u(e,p,h,m,i.stepped)),!!l}function rp(e,t,n,r){const o=t.points,{count:i,start:a,ilen:s}=tp(o,n,r),{move:l=!0,reverse:c}=r||{};let u,d,h,p,f,m,g=0,v=0;const y=e=>(a+(c?s-e:e))%i,b=()=>{p!==f&&(e.lineTo(g,f),e.lineTo(g,p),e.lineTo(g,m))};for(l&&(d=o[y(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=o[y(u)],d.skip)continue;const t=d.x,n=d.y,r=0|t;r===h?(n<p?p=n:n>f&&(f=n),g=(v*g+t)/++v):(b(),e.lineTo(t,n),h=r,v=0,p=f=n),m=n}b()}function op(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?rp:np}const ip="function"==typeof Path2D;function ap(e,t,n,r){ip&&!t.options.segment?function(e,t,n,r){let o=t._path;o||(o=t._path=new Path2D,t.path(o,n,r)&&o.closePath()),Qh(e,t.options),e.stroke(o)}(e,t,n,r):function(e,t,n,r){const{segments:o,options:i}=t,a=op(t);for(const s of o)Qh(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}(e,t,n,r)}class sp extends ih{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;vu(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,r=e.options.spanGaps,o=n.length;if(!o)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,r){let o=0,i=t-1;if(n&&!r)for(;o<t&&!e[o].skip;)o++;for(;o<t&&e[o].skip;)o++;for(o%=t,n&&(i+=o);i>o&&e[i%t].skip;)i--;return i%=t,{start:o,end:i}}(n,o,i,r);return ju(e,!0===r?[{start:a,end:s,loop:i}]:function(e,t,n,r){const o=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%o];n.skip||n.stop?l.skip||(r=!1,i.push({start:t%o,end:(a-1)%o,loop:r}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%o,end:s%o,loop:r}),i}(n,a,s<a?s+o:s,!!e._fullLoop&&0===a&&s===o-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,r=e[t],o=this.points,i=Fu(this,{property:t,start:r,end:r});if(!i.length)return;const a=[],s=function(e){return e.stepped?Nu:e.tension||"monotone"===e.cubicInterpolationMode?Du:Tu}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=o[c],h=o[u];if(d===h){a.push(d);continue}const p=s(d,h,Math.abs((r-d[t])/(h[t]-d[t])),n.stepped);p[t]=e[t],a.push(p)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return op(this)(e,this,t,n)}path(e,t,n){const r=this.segments,o=op(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of r)i&=o(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,r){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(e.save(),ap(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function lp(e,t,n,r){const o=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<o.radius+o.hitRadius}function cp(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,o),l=Math.max(n,o),c=r-d,u=r+d):(d=i/2,s=n-d,l=n+d,c=Math.min(r,o),u=Math.max(r,o)),{left:s,top:c,right:l,bottom:u}}function up(e,t,n,r){return e?0:Xl(t,n,r)}function dp(e){const t=cp(e),n=t.right-t.left,r=t.bottom-t.top,o=function(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=Yc(r);return{t:up(o.top,i.top,0,n),r:up(o.right,i.right,0,t),b:up(o.bottom,i.bottom,0,n),l:up(o.left,i.left,0,t)}}(e,n/2,r/2),i=function(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=Xc(o),a=Math.min(t,n),s=e.borderSkipped,l=r||ol(o);return{topLeft:up(!l||s.top||s.left,i.topLeft,0,a),topRight:up(!l||s.top||s.right,i.topRight,0,a),bottomLeft:up(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:up(!l||s.bottom||s.right,i.bottomRight,0,a)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function hp(e,t,n,r){const o=null===t,i=null===n,a=e&&!(o&&i)&&cp(e,r);return a&&(o||ql(t,a.left,a.right))&&(i||ql(n,a.top,a.bottom))}function pp(e,t){e.rect(t.x,t.y,t.w,t.h)}function fp(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class mp extends ih{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:i}=dp(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?Fc:pp;var s;e.save(),i.w===o.w&&i.h===o.h||(e.beginPath(),a(e,fp(i,t,o)),e.clip(),a(e,fp(o,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,fp(o,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return hp(this,e,t,n)}inXRange(e,t){return hp(this,e,null,t)}inYRange(e,t){return hp(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(t+r)/2:t,y:o?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}var gp=Object.freeze({__proto__:null,ArcElement:class extends ih{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:o,distance:i}=Bl(r,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,h=sl(u,s-a),p=Yl(o,a,s)&&a!==s,f=h>=Cl||p,m=ql(i,l+d,c+d);return f&&m}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(r+o)/2,u=(i+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/4,o=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>Cl?Math.floor(n/Cl):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*r,Math.sin(a)*r);const s=r*(1-Math.sin(Math.min(kl,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,r,o){const{fullCircles:i,startAngle:a,circumference:s}=t;let l=t.endAngle;if(i){Kh(e,t,n,r,l,o);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%Cl||Cl))}Kh(e,t,n,r,l,o),e.fill()}(e,this,s,o,i),Jh(e,this,s,o,i),e.restore()}},BarElement:mp,LineElement:sp,PointElement:class extends ih{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:o,y:i}=this.getProps(["x","y"],n);return Math.pow(e-o,2)+Math.pow(t-i,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return lp(this,e,"x",t)}inYRange(e,t){return lp(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!Nc(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,Oc(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}});const vp=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],yp=vp.map((e=>e.replace("rgb(","rgba(").replace(")",", 0.5)")));function bp(e){return vp[e%vp.length]}function _p(e){return yp[e%yp.length]}function xp(e){let t=0;return(n,r)=>{const o=e.getDatasetMeta(r).controller;o instanceof gd?t=function(e,t){return e.backgroundColor=e.data.map((()=>bp(t++))),t}(n,t):o instanceof vd?t=function(e,t){return e.backgroundColor=e.data.map((()=>_p(t++))),t}(n,t):o&&(t=function(e,t){return e.borderColor=bp(t),e.backgroundColor=_p(t),++t}(n,t))}}function wp(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var Sp={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:o}=e.config,{elements:i}=o,a=wp(r)||(s=o)&&(s.borderColor||s.backgroundColor)||i&&wp(i)||"rgba(0,0,0,0.1)"!==kc.borderColor||"rgba(0,0,0,0.1)"!==kc.backgroundColor;var s;if(!n.forceOverride&&a)return;const l=xp(e);r.forEach(l)}};function kp(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Cp(e){e.data.datasets.forEach((e=>{kp(e)}))}var Ep={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void Cp(e);const r=e.width;e.data.datasets.forEach(((t,o)=>{const{_data:i,indexAxis:a}=t,s=e.getDatasetMeta(o),l=i||t.data;if("y"===Zc([a,e.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=e.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let{start:u,count:d}=function(e,t){const n=t.length;let r,o=0;const{iScale:i}=e,{min:a,max:s,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(o=Xl(Zl(t,i.axis,a).lo,0,n-1)),r=c?Xl(Zl(t,i.axis,s).hi+1,o,n)-o:n-o,{start:o,count:r}}(s,l);if(d<=(n.threshold||4*r))return void kp(t);let h;switch(nl(i)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,r,o){const i=o.samples||r;if(i>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(i-2);let l=0;const c=t+n-1;let u,d,h,p,f,m=t;for(a[l++]=e[m],u=0;u<i-2;u++){let r,o=0,i=0;const c=Math.floor((u+1)*s)+1+t,g=Math.min(Math.floor((u+2)*s)+1,n)+t,v=g-c;for(r=c;r<g;r++)o+=e[r].x,i+=e[r].y;o/=v,i/=v;const y=Math.floor(u*s)+1+t,b=Math.min(Math.floor((u+1)*s)+1,n)+t,{x:_,y:x}=e[m];for(h=p=-1,r=y;r<b;r++)p=.5*Math.abs((_-o)*(e[r].y-x)-(_-e[r].x)*(i-x)),p>h&&(h=p,d=e[r],f=r);a[l++]=d,m=f}return a[l++]=e[c],a}(l,u,d,r,n);break;case"min-max":h=function(e,t,n,r){let o,i,a,s,l,c,u,d,h,p,f=0,m=0;const g=[],v=t+n-1,y=e[t].x,b=e[v].x-y;for(o=t;o<t+n;++o){i=e[o],a=(i.x-y)/b*r,s=i.y;const t=0|a;if(t===l)s<h?(h=s,c=o):s>p&&(p=s,u=o),f=(m*f+i.x)/++m;else{const n=o-1;if(!nl(c)&&!nl(u)){const t=Math.min(c,u),r=Math.max(c,u);t!==d&&t!==n&&g.push({...e[t],x:f}),r!==d&&r!==n&&g.push({...e[r],x:f})}o>0&&n!==d&&g.push(e[n]),g.push(i),l=t,m=0,h=p=s,c=u=d=o}}return g}(l,u,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=h}))},destroy(e){Cp(e)}};function Mp(e,t,n,r){if(r)return;let o=t[e],i=n[e];return"angle"===e&&(o=Vl(o),i=Vl(i)),{property:e,start:o,end:i}}function Pp(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Op(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Tp(e,t){let n=[],r=!1;return rl(e)?(r=!0,n=e):n=function(e,t){const{x:n=null,y:r=null}=e||{},o=t.points,i=[];return t.segments.forEach((({start:e,end:t})=>{t=Pp(e,t,o);const a=o[e],s=o[t];null!==r?(i.push({x:a.x,y:r}),i.push({x:s.x,y:r})):null!==n&&(i.push({x:n,y:a.y}),i.push({x:n,y:s.y}))})),i}(e,t),n.length?new sp({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Np(e){return e&&!1!==e.fill}function Dp(e,t,n){let r=e[t].fill;const o=[t];let i;if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!il(r))return r;if(i=e[r],!i)return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function Ap(e,t,n){const r=function(e){const t=e.options,n=t.fill;let r=sl(n&&n.target,n);void 0===r&&(r=!!t.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(e);if(ol(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return il(o)&&Math.floor(o)===o?function(e,t,n,r){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=r)return!1;return n}(r[0],t,o,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Lp(e,t,n){const r=[];for(let o=0;o<n.length;o++){const i=n[o],{first:a,last:s,point:l}=Ip(i,t,"x");if(!(!l||a&&s))if(a)r.unshift(l);else if(e.push(l),!s)break}e.push(...r)}function Ip(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const o=r[n],i=e.segments,a=e.points;let s=!1,l=!1;for(let e=0;e<i.length;e++){const t=i[e],r=a[t.start][n],c=a[t.end][n];if(ql(o,r,c)){s=o===r,l=o===c;break}}return{first:s,last:l,point:r}}class zp{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:r,y:o,radius:i}=this;return t=t||{start:0,end:Cl},e.arc(r,o,i,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:r}=this,o=e.angle;return{x:t+Math.cos(o)*r,y:n+Math.sin(o)*r,angle:o}}}function Rp(e){const{chart:t,fill:n,line:r}=e;if(il(n))return function(e,t){const n=e.getDatasetMeta(t),r=n&&e.isDatasetVisible(t);return r?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:r}=e,o=[],i=r.segments,a=r.points,s=function(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let e=0;e<r.length;e++){const o=r[e];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}(t,n);s.push(Tp({x:null,y:t.bottom},r));for(let e=0;e<i.length;e++){const t=i[e];for(let e=t.start;e<=t.end;e++)Lp(o,a[e],s)}return new sp({points:o,options:{}})}(e);if("shape"===n)return!0;const o=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:n}=e,r=t.options,o=t.getLabels().length,i=r.reverse?t.max:t.min,a=function(e,t,n){let r;return r="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:ol(e)?e.value:t.getBaseValue(),r}(n,t,i),s=[];if(r.grid.circular){const e=t.getPointPositionForValue(0,i);return new zp({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(a)})}for(let e=0;e<o;++e)s.push(t.getPointPositionForValue(e,a));return s}(e);return function(e){const{scale:t={},fill:n}=e,r=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:ol(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if(il(r)){const e=t.isHorizontal();return{x:e?r:null,y:e?null:r}}return null}(e)}(e);return o instanceof zp?o:Tp(o,r)}function $p(e,t,n){const r=Rp(t),{line:o,scale:i,axis:a}=t,s=o.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:d=c}=l||{};r&&o.points.length&&(Dc(e,n),function(e,t){const{line:n,target:r,above:o,below:i,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),"x"===l&&i!==o&&(Fp(e,r,a.top),jp(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore(),e.save(),Fp(e,r,a.bottom));jp(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore()}(e,{line:o,target:r,above:u,below:d,area:n,scale:i,axis:a}),Ac(e))}function Fp(e,t,n){const{segments:r,points:o}=t;let i=!0,a=!1;e.beginPath();for(const s of r){const{start:r,end:l}=s,c=o[r],u=o[Pp(r,l,o)];i?(e.moveTo(c.x,c.y),i=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function jp(e,t){const{line:n,target:r,property:o,color:i,scale:a}=t,s=function(e,t,n){const r=e.segments,o=e.points,i=t.points,a=[];for(const e of r){let{start:r,end:s}=e;s=Pp(r,s,o);const l=Mp(n,o[r],o[s],e.loop);if(!t.segments){a.push({source:e,target:l,start:o[r],end:o[s]});continue}const c=Fu(t,l);for(const t of c){const r=Mp(n,i[t.start],i[t.end],t.loop),s=$u(e,o,r);for(const e of s)a.push({source:e,target:t,start:{[n]:Op(l,r,"start",Math.max)},end:{[n]:Op(l,r,"end",Math.min)}})}}return a}(n,r,o);for(const{source:t,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=i}={}}=t,d=!0!==r;e.save(),e.fillStyle=s,Bp(e,a,d&&Mp(o,c,u)),e.beginPath();const h=!!n.pathSegment(e,t);let p;if(d){h?e.closePath():Hp(e,r,u,o);const t=!!r.pathSegment(e,l,{move:h,reverse:!0});p=h&&t,p||Hp(e,r,c,o)}e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function Bp(e,t,n){const{top:r,bottom:o}=t.chart.chartArea,{property:i,start:a,end:s}=n||{};"x"===i&&(e.beginPath(),e.rect(a,r,s-a,o-r),e.clip())}function Hp(e,t,n,r){const o=t.interpolate(n,r);o&&e.lineTo(o.x,o.y)}var Wp={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,o=[];let i,a,s,l;for(a=0;a<r;++a)i=e.getDatasetMeta(a),s=i.dataset,l=null,s&&s.options&&s instanceof sp&&(l={visible:e.isDatasetVisible(a),index:a,fill:Ap(s,a,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:s}),i.$filler=l,o.push(l);for(a=0;a<r;++a)l=o[a],l&&!1!==l.fill&&(l.fill=Dp(o,a,n.propagate))},beforeDraw(e,t,n){const r="beforeDraw"===n.drawTime,o=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let t=o.length-1;t>=0;--t){const n=o[t].$filler;n&&(n.line.updateControlPoints(i,n.axis),r&&n.fill&&$p(e.ctx,n,i))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){const n=r[t].$filler;Np(n)&&$p(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;Np(r)&&"beforeDatasetDraw"===n.drawTime&&$p(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Vp=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class Yp extends ih{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=cl(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=Uc(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Vp(n,o);let l,c;t.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,o,a,s)+10):(c=this.maxHeight,l=this._fitCols(i,r,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=e;o.textAlign="left",o.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((e,p)=>{const f=n+t/2+o.measureText(e.text).width;(0===p||l[l.length-1]+f+2*a>i)&&(u+=c,l[l.length-(p>0?0:1)]=0,h+=c,d++),s[p]={left:0,top:h,row:d,width:f,height:r},l[l.length-1]+=f+a})),u}_fitCols(e,t,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-e;let u=a,d=0,h=0,p=0,f=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,r,o){const i=function(e,t,n,r){let o=e.text;o&&"string"!=typeof o&&(o=o.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+r.measureText(o).width}(r,e,t,n),a=function(e,t,n){let r=e;"string"!=typeof t.text&&(r=Xp(t,n));return r}(o,r,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,o,e,r);i>0&&h+g+2*a>c&&(u+=d+a,l.push({width:d,height:h}),p+=d+a,f++,d=h=0),s[i]={left:p,top:h,col:f,width:m,height:g},d=Math.max(d,m),h+=g+a})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:o}}=this,i=Au(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=rc(n,this.left+r,this.right-this.lineWidths[o]);for(const s of t)o!==s.row&&(o=s.row,a=rc(n,this.left+r,this.right-this.lineWidths[o])),s.top+=this.top+e+r,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+r}else{let o=0,a=rc(n,this.top+e+r,this.bottom-this.columnSizes[o].height);for(const s of t)s.col!==o&&(o=s.col,a=rc(n,this.top+e+r,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+r,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;Dc(e,this),this._draw(),Ac(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:o,labels:i}=e,a=kc.color,s=Au(e.rtl,this.left,this.width),l=Uc(i.font),{padding:c}=i,u=l.size,d=u/2;let h;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:p,boxHeight:f,itemHeight:m}=Vp(i,u),g=this.isHorizontal(),v=this._computeTitleHeight();h=g?{x:rc(o,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:rc(o,this.top+v+c,this.bottom-t[0].height),line:0},Lu(this.ctx,e.textDirection);const y=m+c;this.legendItems.forEach(((b,_)=>{r.strokeStyle=b.fontColor,r.fillStyle=b.fontColor;const x=r.measureText(b.text).width,w=s.textAlign(b.textAlign||(b.textAlign=i.textAlign)),S=p+d+x;let k=h.x,C=h.y;s.setWidth(this.width),g?_>0&&k+S+c>this.right&&(C=h.y+=y,h.line++,k=h.x=rc(o,this.left+c,this.right-n[h.line])):_>0&&C+y>this.bottom&&(k=h.x=k+t[h.line].width+c,h.line++,C=h.y=rc(o,this.top+v+c,this.bottom-t[h.line].height));if(function(e,t,n){if(isNaN(p)||p<=0||isNaN(f)||f<0)return;r.save();const o=sl(n.lineWidth,1);if(r.fillStyle=sl(n.fillStyle,a),r.lineCap=sl(n.lineCap,"butt"),r.lineDashOffset=sl(n.lineDashOffset,0),r.lineJoin=sl(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=sl(n.strokeStyle,a),r.setLineDash(sl(n.lineDash,[])),i.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(e,p/2);Tc(r,a,l,t+d,i.pointStyleWidth&&p)}else{const i=t+Math.max((u-f)/2,0),a=s.leftForLtr(e,p),l=Xc(n.borderRadius);r.beginPath(),Object.values(l).some((e=>0!==e))?Fc(r,{x:a,y:i,w:p,h:f,radius:l}):r.rect(a,i,p,f),r.fill(),0!==o&&r.stroke()}r.restore()}(s.x(k),C,b),k=((e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t)(w,k+p+d,g?k+S:this.right,e.rtl),function(e,t,n){$c(r,n.text,e,t+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),C,b),g)h.x+=S+c;else if("string"!=typeof b.text){const e=l.lineHeight;h.y+=Xp(b,e)+c}else h.y+=y})),Iu(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Uc(t.font),r=qc(t.padding);if(!t.display)return;const o=Au(e.rtl,this.left,this.width),i=this.ctx,a=t.position,s=n.size/2,l=r.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=rc(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+rc(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const h=rc(a,u,u+d);i.textAlign=o.textAlign(nc(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,$c(i,t.text,h,c,n)}_computeTitleHeight(){const e=this.options.title,t=Uc(e.font),n=qc(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,o;if(ql(e,this.left,this.right)&&ql(t,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],ql(e,r.left,r.left+r.width)&&ql(t,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const r=this._hoveredItem,o=((e,t)=>null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index)(r,n);r&&!o&&cl(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!o&&cl(t.onHover,[e,n,this],this)}else n&&cl(t.onClick,[e,n,this],this)}}function Xp(e,t){return t*(e.text?e.text.length:0)}var qp={id:"legend",_element:Yp,start(e,t,n){const r=e.legend=new Yp({ctx:e.ctx,options:n,chart:e});Bd.configure(e,r,n),Bd.addBox(e,r)},stop(e){Bd.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Bd.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=qc(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Up extends ih{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const r=rl(n.text)?n.text.length:1;this._padding=qc(n.padding);const o=r*Uc(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:o,options:i}=this,a=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=rc(a,n,o),c=t+e,s=o-n):("left"===i.position?(l=n+e,c=rc(a,r,t),u=-.5*kl):(l=o-e,c=rc(a,t,r),u=.5*kl),s=r-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Uc(t.font),r=n.lineHeight/2+this._padding.top,{titleX:o,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(r);$c(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:nc(t.align),textBaseline:"middle",translation:[o,i]})}}var Zp={id:"title",_element:Up,start(e,t,n){!function(e,t){const n=new Up({ctx:e.ctx,options:t,chart:e});Bd.configure(e,n,t),Bd.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;Bd.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Bd.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Gp=new WeakMap;var Kp={id:"subtitle",start(e,t,n){const r=new Up({ctx:e.ctx,options:n,chart:e});Bd.configure(e,r,n),Bd.addBox(e,r),Gp.set(e,r)},stop(e){Bd.removeBox(e,Gp.get(e)),Gp.delete(e)},beforeUpdate(e,t,n){const r=Gp.get(e);Bd.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Jp={average(e){if(!e.length)return!1;let t,n,r=new Set,o=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r.add(e.x),o+=e.y,++i}}if(0===i||0===r.size)return!1;const a=[...r].reduce(((e,t)=>e+t))/r.size;return{x:a,y:o/i}},nearest(e,t){if(!e.length)return!1;let n,r,o,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=Hl(t,r.getCenterPoint());e<s&&(s=e,o=r)}}if(o){const e=o.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function Qp(e,t){return t&&(rl(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ef(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function tf(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function nf(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=Uc(t.bodyFont),c=Uc(t.titleFont),u=Uc(t.footerFont),d=i.length,h=o.length,p=r.length,f=qc(t.padding);let m=f.height,g=0,v=r.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=p*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-p)*l.lineHeight+(v-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let y=0;const b=function(e){g=Math.max(g,n.measureText(e).width+y)};return n.save(),n.font=c.string,ul(e.title,b),n.font=l.string,ul(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?a+2+t.boxPadding:0,ul(r,(e=>{ul(e.before,b),ul(e.lines,b),ul(e.after,b)})),y=0,n.font=u.string,ul(e.footer,b),n.restore(),g+=f.width,{width:g,height:m}}function rf(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===r?c=o<=(s+l)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),function(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;return"left"===e&&o+i+a>t.width||"right"===e&&o-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function of(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||rf(e,t,n,r),yAlign:r}}function af(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=o+i,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=Xc(a);let f=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s);const m=function(e,t,n){let{y:r,height:o}=e;return"top"===t?r+=n:r-="bottom"===t?o+n:o/2,r}(t,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,h)+o:"right"===s&&(f+=Math.max(d,p)+o),{x:Xl(f,0,r.width-t.width),y:Xl(m,0,r.height-t.height)}}function sf(e,t,n){const r=qc(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function lf(e){return Qp([],ef(e))}function cf(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const uf={beforeTitle:el,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:el,beforeBody:el,beforeLabel:el,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return nl(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:el,afterBody:el,beforeFooter:el,footer:el,afterFooter:el};function df(e,t,n,r){const o=e[t].call(n,r);return void 0===o?uf[t].call(n,r):o}class hf extends ih{static positioners=Jp;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,o=new Uu(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,Gc(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,r=df(n,"beforeTitle",this,e),o=df(n,"title",this,e),i=df(n,"afterTitle",this,e);let a=[];return a=Qp(a,ef(r)),a=Qp(a,ef(o)),a=Qp(a,ef(i)),a}getBeforeBody(e,t){return lf(df(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,r=[];return ul(e,(e=>{const t={before:[],lines:[],after:[]},o=cf(n,e);Qp(t.before,ef(df(o,"beforeLabel",this,e))),Qp(t.lines,df(o,"label",this,e)),Qp(t.after,ef(df(o,"afterLabel",this,e))),r.push(t)})),r}getAfterBody(e,t){return lf(df(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,r=df(n,"beforeFooter",this,e),o=df(n,"footer",this,e),i=df(n,"afterFooter",this,e);let a=[];return a=Qp(a,ef(r)),a=Qp(a,ef(o)),a=Qp(a,ef(i)),a}_createItems(e){const t=this._active,n=this.chart.data,r=[],o=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(tf(this.chart,t[a]));return e.filter&&(l=l.filter(((t,r,o)=>e.filter(t,r,o,n)))),e.itemSort&&(l=l.sort(((t,r)=>e.itemSort(t,r,n)))),ul(l,(t=>{const n=cf(e.callbacks,t);r.push(df(n,"labelColor",this,t)),o.push(df(n,"labelPointStyle",this,t)),i.push(df(n,"labelTextColor",this,t))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const e=Jp[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=nf(this,n),a=Object.assign({},e,t),s=of(this.chart,n,a),l=af(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const o=this.getCaretPosition(e,n,r);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Xc(a),{x:d,y:h}=e,{width:p,height:f}=t;let m,g,v,y,b,_;return"center"===o?(b=h+f/2,"left"===r?(m=d,g=m-i,y=b+i,_=b-i):(m=d+p,g=m+i,y=b-i,_=b+i),v=m):(g="left"===r?d+Math.max(s,c)+i:"right"===r?d+p-Math.max(l,u)-i:this.caretX,"top"===o?(y=h,b=y-i,m=g-i,v=g+i):(y=h+f,b=y+i,m=g+i,v=g-i),_=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:_}}drawTitle(e,t,n){const r=this.title,o=r.length;let i,a,s;if(o){const l=Au(n.rtl,this.x,this.width);for(e.x=sf(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=Uc(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<o;++s)t.fillText(r[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===o&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,r,o){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=o,c=Uc(o.bodyFont),u=sf(this,"left",o),d=r.x(u),h=s<c.lineHeight?(c.lineHeight-s)/2:0,p=t.y+h;if(o.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(d,l)+l/2,c=p+s/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,Oc(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,Oc(e,t,n,c)}else{e.lineWidth=ol(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=r.leftForLtr(d,l),n=r.leftForLtr(r.xPlus(d,1),l-2),a=Xc(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=o.multiKeyBackground,Fc(e,{x:t,y:p,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),Fc(e,{x:n,y:p+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,p,l,s),e.strokeRect(t,p,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=Uc(n.bodyFont);let d=u.lineHeight,h=0;const p=Au(n.rtl,this.x,this.width),f=function(n){t.fillText(n,p.x(e.x+h),e.y+d/2),e.y+=d+o},m=p.textAlign(i);let g,v,y,b,_,x,w;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=sf(this,m,n),t.fillStyle=n.bodyColor,ul(this.beforeBody,f),h=a&&"right"!==m?"center"===i?l/2+c:l+2+c:0,b=0,x=r.length;b<x;++b){for(g=r[b],v=this.labelTextColors[b],t.fillStyle=v,ul(g.before,f),y=g.lines,a&&y.length&&(this._drawColorBox(t,e,b,p,n),d=Math.max(u.lineHeight,s)),_=0,w=y.length;_<w;++_)f(y[_]),d=u.lineHeight;ul(g.after,f)}h=0,d=u.lineHeight,ul(this.afterBody,f),e.y-=o}drawFooter(e,t,n){const r=this.footer,o=r.length;let i,a;if(o){const s=Au(n.rtl,this.x,this.width);for(e.x=sf(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=Uc(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<o;++a)t.fillText(r[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=Xc(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+l,s+c-p),t.quadraticCurveTo(a+l,s+c,a+l-p,s+c),"bottom"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+h,s+c),t.quadraticCurveTo(a,s+c,a,s+c-h),"center"===i&&"left"===o&&this.drawCaret(e,t,n,r),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=Jp[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=nf(this,e),a=Object.assign({},n,this._size),s=of(t,e,a),l=af(e,a,s,t);r._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=qc(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(o,e,r,t),Lu(e,t.textDirection),o.y+=i.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),Iu(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),o=!dl(n,r),i=this._positionChanged(r,t);(o||i)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(e,o,t,n),a=this._positionChanged(i,e),s=t||!dl(i,o)||a;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){const o=this.options;if("mouseout"===e.type)return[];if(!r)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:r,options:o}=this,i=Jp[o.position].call(this,e,t);return!1!==i&&(n!==i.x||r!==i.y)}}var pf={id:"tooltip",_element:hf,positioners:Jp,afterInit(e,t,n){n&&(e.tooltip=new hf({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:uf},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},ff=Object.freeze({__proto__:null,Colors:Sp,Decimation:Ep,Filler:Wp,Legend:qp,SubTitle:Kp,Title:Zp,Tooltip:pf});function mf(e,t,n,r){const o=e.indexOf(t);if(-1===o)return((e,t,n,r)=>("string"==typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r);return o!==e.lastIndexOf(t)?n:o}function gf(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class vf extends mh{static id="category";static defaults={ticks:{callback:gf}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(nl(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Xl(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:mf(n,e,sl(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,r=[];let o=this.getLabels();o=0===e&&t===o.length-1?o:o.slice(e,t+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){return gf.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function yf(e,t){const n=[],{bounds:r,step:o,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,h=o||1,p=c-1,{min:f,max:m}=t,g=!nl(i),v=!nl(a),y=!nl(l),b=(m-f)/(u+1);let _,x,w,S,k=Il((m-f)/p/h)*h;if(k<1e-14&&!g&&!v)return[{value:f},{value:m}];S=Math.ceil(m/k)-Math.floor(f/k),S>p&&(k=Il(S*k/p/h)*h),nl(s)||(_=Math.pow(10,s),k=Math.ceil(k*_)/_),"ticks"===r?(x=Math.floor(f/k)*k,w=Math.ceil(m/k)*k):(x=f,w=m),g&&v&&o&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/o,k/1e3)?(S=Math.round(Math.min((a-i)/k,c)),k=(a-i)/S,x=i,w=a):y?(x=g?i:x,w=v?a:w,S=l-1,k=(w-x)/S):(S=(w-x)/k,S=Ll(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const C=Math.max(jl(k),jl(x));_=Math.pow(10,nl(s)?C:s),x=Math.round(x*_)/_,w=Math.round(w*_)/_;let E=0;for(g&&(d&&x!==i?(n.push({value:i}),x<i&&E++,Ll(Math.round((x+E*k)*_)/_,i,bf(i,b,e))&&E++):x<i&&E++);E<S;++E){const e=Math.round((x+E*k)*_)/_;if(v&&e>a)break;n.push({value:e})}return v&&d&&w!==a?n.length&&Ll(n[n.length-1].value,a,bf(a,b,e))?n[n.length-1].value=a:n.push({value:a}):v&&w!==a||n.push({value:w}),n}function bf(e,t,{horizontal:n,minRotation:r}){const o=$l(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class _f extends mh{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return nl(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const i=e=>r=t?r:e,a=e=>o=n?o:e;if(e){const e=Al(r),t=Al(o);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(r===o){let t=0===o?1:Math.abs(.05*o);a(o+t),e||i(r-t)}this.min=r,this.max=o}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=yf({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Rl(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return gc(e,this.chart.options.locale,this.options.ticks.format)}}class xf extends _f{static id="linear";static defaults={ticks:{callback:yc.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=il(e)?e:0,this.max=il(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=$l(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/r))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const wf=e=>Math.floor(Dl(e)),Sf=(e,t)=>Math.pow(10,wf(e)+t);function kf(e){return 1===e/Math.pow(10,wf(e))}function Cf(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function Ef(e,{min:t,max:n}){t=al(e.min,t);const r=[],o=wf(t);let i=function(e,t){let n=wf(t-e);for(;Cf(e,t,n)>10;)n++;for(;Cf(e,t,n)<10;)n--;return Math.min(n,wf(e))}(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const s=Math.pow(10,i),l=o>i?Math.pow(10,o):0,c=Math.round((t-l)*a)/a,u=Math.floor((t-l)/s/10)*s*10;let d=Math.floor((c-u)/Math.pow(10,i)),h=al(e.min,Math.round((l+u+d*Math.pow(10,i))*a)/a);for(;h<n;)r.push({value:h,major:kf(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(i++,d=2,a=i>=0?1:a),h=Math.round((l+u+d*Math.pow(10,i))*a)/a;const p=al(e.max,h);return r.push({value:p,major:kf(p),significand:d}),r}class Mf extends mh{static id="logarithmic";static defaults={ticks:{callback:yc.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=_f.prototype.parse.apply(this,[e,t]);if(0!==n)return il(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=il(e)?Math.max(0,e):null,this.max=il(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!il(this._userMin)&&(this.min=e===Sf(this.min,0)?Sf(this.min,-1):Sf(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,r=this.max;const o=t=>n=e?n:t,i=e=>r=t?r:e;n===r&&(n<=0?(o(1),i(10)):(o(Sf(n,-1)),i(Sf(r,1)))),n<=0&&o(Sf(r,-1)),r<=0&&i(Sf(n,1)),this.min=n,this.max=r}buildTicks(){const e=this.options,t=Ef({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&Rl(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":gc(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Dl(e),this._valueRange=Dl(this.max)-Dl(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Dl(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function Pf(e){const t=e.ticks;if(t.display&&e.display){const e=qc(t.backdropPadding);return sl(t.font&&t.font.size,kc.font.size)+e.height}return 0}function Of(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:e<r||e>o?{start:t-n,end:t}:{start:t,end:t+n}}function Tf(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,s=a.centerPointLabels?kl/i:0;for(let d=0;d<i;d++){const i=a.setContext(e.getPointLabelContext(d));o[d]=i.padding;const h=e.getPointPosition(d,e.drawingArea+o[d],s),p=Uc(i.font),f=(l=e.ctx,c=p,u=rl(u=e._pointLabels[d])?u:[u],{w:Ec(l,c.string,u),h:u.length*c.lineHeight});r[d]=f;const m=Vl(e.getIndexAngle(d)+s),g=Math.round(Fl(m));Nf(n,t,m,Of(g,h.x,f.w,0,180),Of(g,h.y,f.h,90,270))}var l,c,u;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,{centerPointLabels:a,display:s}=i.pointLabels,l={extra:Pf(i)/2,additionalAngle:a?kl/o:0};let c;for(let i=0;i<o;i++){l.padding=n[i],l.size=t[i];const o=Df(e,i,l);r.push(o),"auto"===s&&(o.visible=Af(o,c),o.visible&&(c=o))}return r}(e,r,o)}function Nf(e,t,n,r,o){const i=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+s)),o.start<t.t?(l=(t.t-o.start)/a,e.t=Math.min(e.t,t.t-l)):o.end>t.b&&(l=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function Df(e,t,n){const r=e.drawingArea,{extra:o,additionalAngle:i,padding:a,size:s}=n,l=e.getPointPosition(t,r+o+a,i),c=Math.round(Fl(Vl(l.angle+Ol))),u=function(e,t,n){90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t);return e}(l.y,s.h,c),d=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(c),h=function(e,t,n){"right"===n?e-=t:"center"===n&&(e-=t/2);return e}(l.x,s.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+s.w,bottom:u+s.h}}function Af(e,t){if(!t)return!0;const{left:n,top:r,right:o,bottom:i}=e;return!(Nc({x:n,y:r},t)||Nc({x:n,y:i},t)||Nc({x:o,y:r},t)||Nc({x:o,y:i},t))}function Lf(e,t,n){const{left:r,top:o,right:i,bottom:a}=n,{backdropColor:s}=t;if(!nl(s)){const n=Xc(t.borderRadius),l=qc(t.backdropPadding);e.fillStyle=s;const c=r-l.left,u=o-l.top,d=i-r+l.width,h=a-o+l.height;Object.values(n).some((e=>0!==e))?(e.beginPath(),Fc(e,{x:c,y:u,w:d,h:h,radius:n}),e.fill()):e.fillRect(c,u,d,h)}}function If(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,Cl);else{let n=e.getPointPosition(0,t);o.moveTo(n.x,n.y);for(let i=1;i<r;i++)n=e.getPointPosition(i,t),o.lineTo(n.x,n.y)}}class zf extends _f{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:yc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=qc(Pf(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=il(e)&&!isNaN(e)?e:0,this.max=il(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Pf(this.options))}generateTickLabels(e){_f.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=cl(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?Tf(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){return Vl(e*(Cl/(this._pointLabels.length||1))+$l(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(nl(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(nl(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return Gc(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t,n=0){const r=this.getIndexAngle(e)-Ol+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:r,bottom:o}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:o}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),If(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:r,border:o}=t,i=this._pointLabels.length;let a,s,l;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const t=e._pointLabelItems[o];if(!t.visible)continue;const i=r.setContext(e.getPointLabelContext(o));Lf(n,i,t);const a=Uc(i.font),{x:s,y:l,textAlign:c}=t;$c(n,e._pointLabels[o],s,l+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}(this,i),r.display&&this.ticks.forEach(((e,t)=>{if(0!==t||0===t&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);const n=this.getContext(t),a=r.setContext(n),l=o.setContext(n);!function(e,t,n,r,o){const i=e.ctx,a=t.circular,{color:s,lineWidth:l}=t;!a&&!r||!s||!l||n<0||(i.save(),i.strokeStyle=s,i.lineWidth=l,i.setLineDash(o.dash||[]),i.lineDashOffset=o.dashOffset,i.beginPath(),If(e,n,a,r),i.closePath(),i.stroke(),i.restore())}(this,a,s,i,l)}})),n.display){for(e.save(),a=i-1;a>=0;a--){const r=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:i}=r;i&&o&&(e.lineWidth=i,e.strokeStyle=o,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),l=this.getPointPosition(a,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let o,i;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((r,a)=>{if(0===a&&this.min>=0&&!t.reverse)return;const s=n.setContext(this.getContext(a)),l=Uc(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){e.font=l.string,i=e.measureText(r.label).width,e.fillStyle=s.backdropColor;const t=qc(s.backdropPadding);e.fillRect(-i/2-t.left,-o-l.size/2-t.top,i+t.width,l.size+t.height)}$c(e,r.label,0,-o,l,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})})),e.restore()}drawTitle(){}}const Rf={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}},$f=Object.keys(Rf);function Ff(e,t){return e-t}function jf(e,t){if(nl(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return"function"==typeof r&&(a=r(a)),il(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(o&&(a="week"!==o||!zl(i)&&!0!==i?n.startOf(a,o):n.startOf(a,"isoWeek",i)),+a)}function Bf(e,t,n,r){const o=$f.length;for(let i=$f.indexOf(e);i<o-1;++i){const e=Rf[$f[i]],o=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(o*e.size))<=r)return $f[i]}return $f[o-1]}function Hf(e,t,n){if(n){if(n.length){const{lo:r,hi:o}=Ul(n,t);e[n[r]>=t?n[r]:n[o]]=!0}}else e[t]=!0}function Wf(e,t,n){const r=[],o={},i=t.length;let a,s;for(a=0;a<i;++a)s=t[a],o[s]=a,r.push({value:s,major:!1});return 0!==i&&n?function(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=i;s<=a;s=+o.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}(e,r,o,n):r}class Vf extends mh{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const n=e.time||(e.time={}),r=this._adapter=new xd._date(e.adapters.date);r.init(t),gl(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:jf(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:r,max:o,minDefined:i,maxDefined:a}=this.getUserBounds();function s(e){i||isNaN(e.min)||(r=Math.min(r,e.min)),a||isNaN(e.max)||(o=Math.max(o,e.max))}i&&a||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),r=il(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),o=il(o)&&!isNaN(o)?o:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,i=function(e,t,n){let r=0,o=e.length;for(;r<o&&e[r]<t;)r++;for(;o>r&&e[o-1]>n;)o--;return r>0||o<e.length?e.slice(r,o):e}(r,o,this.max);return this._unit=t.unit||(n.autoSkip?Bf(t.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(e,t,n,r,o){for(let i=$f.length-1;i>=$f.indexOf(n);i--){const n=$f[i];if(Rf[n].common&&e._adapter.diff(o,r,n)>=t-1)return n}return $f[n?$f.indexOf(n):0]}(this,i.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=$f.indexOf(e)+1,n=$f.length;t<n;++t)if(Rf[$f[t]].common)return $f[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&i.reverse(),Wf(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(e=[]){let t,n,r=0,o=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),o=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const i=e.length<3?.5:.25;r=Xl(r,0,i),o=Xl(o,0,i),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const e=this._adapter,t=this.min,n=this.max,r=this.options,o=r.time,i=o.unit||Bf(o.minUnit,t,n,this._getLabelCapacity(t)),a=sl(r.ticks.stepSize,1),s="week"===i&&o.isoWeekday,l=zl(s)||!0===s,c={};let u,d,h=t;if(l&&(h=+e.startOf(h,"isoWeek",s)),h=+e.startOf(h,l?"day":i),e.diff(n,t,i)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+i);const p="data"===r.ticks.source&&this.getDataTimestamps();for(u=h,d=0;u<n;u=+e.add(u,a,i),d++)Hf(c,u,p);return u!==n&&"ticks"!==r.bounds&&1!==d||Hf(c,u,p),Object.keys(c).sort(Ff).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,r=this._unit,o=t||n[r];return this._adapter.format(e,o)}_tickFormatFunction(e,t,n,r){const o=this.options,i=o.ticks.callback;if(i)return cl(i,[e,t,n],this);const a=o.time.displayFormats,s=this._unit,l=this._majorUnit,c=s&&a[s],u=l&&a[l],d=n[t],h=l&&u&&d&&d.major;return this._adapter.format(e,r||(h?u:c))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,r=$l(this.isHorizontal()?t.maxRotation:t.minRotation),o=Math.cos(r),i=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*i,h:n*i+a*o}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,o=this._tickFormatFunction(e,0,Wf(this,[e],this._majorUnit),r),i=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(jf(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Ql(e.sort(Ff))}}function Yf(e,t,n){let r,o,i,a,s=0,l=e.length-1;n?(t>=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=Zl(e,"pos",t)),({pos:r,time:i}=e[s]),({pos:o,time:a}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=Zl(e,"time",t)),({time:r,pos:i}=e[s]),({time:o,pos:a}=e[l]));const c=o-r;return c?i+(a-i)*(t-r)/c:i}var Xf=Object.freeze({__proto__:null,CategoryScale:vf,LinearScale:xf,LogarithmicScale:Mf,RadialLinearScale:zf,TimeScale:Vf,TimeSeriesScale:class extends Vf{static id="timeseries";static defaults=Vf.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Yf(t,this.min),this._tableRange=Yf(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,r=[],o=[];let i,a,s,l,c;for(i=0,a=e.length;i<a;++i)l=e[i],l>=t&&l<=n&&r.push(l);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(i=0,a=r.length;i<a;++i)c=r[i+1],s=r[i-1],l=r[i],Math.round((c+s)/2)!==l&&o.push({time:l,pos:i/(a-1)});return o}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return n.includes(e)&&n.length||n.splice(0,0,e),n.includes(t)&&1!==n.length||n.push(t),n.sort(((e,t)=>e-t))}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Yf(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return Yf(this._table,n*this._tableRange+this._minPos,!0)}}});const qf=[yd,gp,ff,Xf];qh.register(...qf);const Uf=({type:t,data:n,options:r,className:o,style:i,plugins:a})=>{const c=s(null),u=s(null);return l((()=>{if(!c.current)return;const e=c.current.getContext("2d");return e?(u.current&&u.current.destroy(),u.current=new qh(e,{type:t,data:n,options:r||{},plugins:a||[]}),()=>{u.current&&(u.current.destroy(),u.current=null)}):void 0}),[t,n,r,a]),e("canvas",{ref:c,className:o,style:i})};var Zf="Checkbox-module_container__v4ouY",Gf="Checkbox-module_disabled__PAavY",Kf="Checkbox-module_checkbox__tiPi8",Jf="Checkbox-module_indeterminate__GxPm3";var Qf=a((({checked:n=!1,disabled:r=!1,label:o,indeterminate:i=!1,labelProps:a,onChange:c,id:u,...d})=>{const h=s(null),p=s(null),m=f();l((()=>{h.current&&(h.current.indeterminate=i)}),[i]),l((()=>{if(!n||i)return;const e=p.current;if(!e)return;e.style.transform="translateZ(0)";const t=requestAnimationFrame((()=>{e.style.transform=""}));return()=>{cancelAnimationFrame(t),e&&(e.style.transform="")}}),[n,i]);return e(H,{...d,onClick:e=>{r||c?.(e)},dimensionY:36,className:`${d.className} ${Zf} ${r&&Gf}`,prefix:{children:t("div",{className:`${Kf} ${i&&Jf}`,children:[e("input",{id:u??m,ref:h,type:"checkbox",checked:n,disabled:r,"aria-checked":i?"mixed":n,readOnly:!0}),e("label",{ref:p,htmlFor:u??m,onClick:e=>e.stopPropagation()})]}),...d.prefix},root:{children:e(V,{...a,children:o}),...d.root}})})),em={chip:"Chip-module_chip__DLgqh",outlined:"Chip-module_outlined__1seXI",filled:"Chip-module_filled__iKdFt",noButton:"Chip-module_noButton__nEh--",closeButton:"Chip-module_closeButton__83TVb"};var tm=a((({label:t,variant:n="filled",icon:r,onDelete:o,suffixIcon:i,suffixOnClick:a,...s})=>e(H,{dimensionX:"hug",gap:8,prefix:{dimensionX:"hug",children:r?e(Za,{name:r}):void 0,...s.prefix},root:{children:t,...s.root},suffix:(i||o)&&{dimensionX:"hug",alignment:"center",children:e(_s,{className:em.closeButton,shape:"circle",color:"transparent",onClick:i?a:o,children:e(Za,{name:i||"close"})}),...s.suffix},...s,className:`${s.className} ${em.chip} ${em[n]} ${o||i?"":em.noButton}`}))),nm="Color-module_color__icl6l";var rm=a((({value:t="#000000",prefixProps:n,rootProps:r,onChange:o,...i})=>e(H,{dimensionY:36,prefix:{children:e("input",{type:"color",value:t,onChange:e=>{o?.(e.target.value)}}),...n},root:{children:t&&e(V,{children:t}),...r},...i,className:`${i?.className} ${nm}`})));const om=(e,t,n)=>Math.min(Math.max(e,t),n),im=(e,t=0)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},am=(e,t,n)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),o=Math.min(e,t,n),i=r-o,a=r+o,s=a/2;if(0===i)return{h:0,s:0,l:im(100*s,1)};const l=s>.5?i/(2-a):i/a;let c;switch(r){case e:c=(t-n)/i+(t<n?6:0);break;case t:c=(n-e)/i+2;break;case n:c=(e-t)/i+4;break;default:c=0}return{h:im(60*c,1),s:im(100*l,1),l:im(100*s,1)}},sm=(e,t,n)=>{e/=360;const r=(n/=100)*(t/=100),o=r*(1-Math.abs(6*e%2-1)),i=n-r;let a,s,l;return[a,s,l]=e<1/6?[r,o,0]:e<2/6?[o,r,0]:e<.5?[0,r,o]:e<4/6?[0,o,r]:e<5/6?[o,0,r]:[r,0,o],{r:Math.round(255*(a+i)),g:Math.round(255*(s+i)),b:Math.round(255*(l+i))}},lm=({r:e,g:t,b:n,a:r})=>{const o=e=>{const t=Math.round(om(e,0,255)).toString(16);return 1===t.length?"0"+t:t},i=`#${o(e)}${o(t)}${o(n)}`.toUpperCase();if(r<1){return`${i}${o(255*r)}`}return i},cm=(e,t,n,r)=>1===r?`rgb(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)})`:`rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${im(r,2)})`,um=(e,t,n,r)=>1===r?`hsl(${Math.round(e)}, ${Math.round(t)}%, ${Math.round(n)}%)`:`hsla(${Math.round(e)}, ${Math.round(t)}%, ${Math.round(n)}%, ${im(r,2)})`,dm=e=>{const t=e.trim().toLowerCase();if(t.startsWith("#")){const e=(e=>{if(3===(e=e.replace("#","")).length&&(e=e.split("").map((e=>e+e)).join("")),6===e.length)return{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1};if(8===e.length)return{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:parseInt(e.substr(6,2),16)/255};return null})(t);if(e){const t=am(e.r,e.g,e.b);return{hex:lm(e),rgb:e,hsl:{...t,a:e.a}}}}if(t.startsWith("rgb")){const e=(e=>{const t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?{r:parseInt(t[1]),g:parseInt(t[2]),b:parseInt(t[3]),a:t[4]?parseFloat(t[4]):1}:null})(t);if(e){const t=am(e.r,e.g,e.b);return{hex:lm(e),rgb:e,hsl:{...t,a:e.a}}}}if(t.startsWith("hsl")){const e=(e=>{const t=e.match(/hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*([\d.]+))?\s*\)/);return t?{h:parseFloat(t[1]),s:parseFloat(t[2]),l:parseFloat(t[3]),a:t[4]?parseFloat(t[4]):1}:null})(t);if(e){const t=((e,t,n)=>{if(e/=360,n/=100,0==(t/=100)){const e=Math.round(255*n);return{r:e,g:e,b:e}}const r=(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),o=n<.5?n*(1+t):n+t-n*t,i=2*n-o;return{r:Math.round(255*r(i,o,e+1/3)),g:Math.round(255*r(i,o,e)),b:Math.round(255*r(i,o,e-1/3))}})(e.h,e.s,e.l);return{hex:lm({...t,a:e.a}),rgb:{...t,a:e.a},hsl:e}}}return{hex:"#1677FF",rgb:{r:22,g:119,b:255,a:1},hsl:{h:220,s:100,l:54,a:1}}},hm=e=>{const t=((e,t,n)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=r,a=0===r?0:o/r;let s;if(0===o)s=0;else{switch(r){case e:s=(t-n)/o+(t<n?6:0);break;case t:s=(n-e)/o+2;break;case n:s=(e-t)/o+4;break;default:s=0}s/=6}return{h:im(360*s,1),s:im(100*a,1),v:im(100*i,1)}})(e.rgb.r,e.rgb.g,e.rgb.b);return{...t,a:e.rgb.a}},pm=e=>{const t=sm(e.h,e.s,e.v),n=am(t.r,t.g,t.b);return{hex:lm({...t,a:e.a}),rgb:{...t,a:e.a},hsl:{...n,a:e.a}}},fm=(e={})=>{const{onDragStart:t,onDrag:n,onDragEnd:r,onKeyDown:o,preventSelection:i=!0}=e,[a,d]=u({isDragging:!1,startX:0,startY:0,currentX:0,currentY:0}),h=s(null),p=s({left:0,top:0,width:0,height:0}),f=s(void 0),m=s(0),g=c((()=>{if(h.current){const e=h.current.getBoundingClientRect();p.current={left:e.left,top:e.top,width:e.width,height:e.height}}}),[]),v=c((e=>{if("touches"in e){const t=e.touches[0]||e.changedTouches[0];return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}),[]),y=c(((e,t)=>{const n=p.current,r=(e-n.left)/n.width,o=(t-n.top)/n.height;return{x:Math.max(0,Math.min(1,r)),y:Math.max(0,Math.min(1,o))}}),[]),b=c(((e,t)=>{const r=performance.now();f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame((()=>{if(r-m.current>=16){const{x:o,y:i}=y(e,t);n?.(o,i,p.current),m.current=r}}))}),[y,n]),_=c((e=>{e.preventDefault(),g();const{x:n,y:r}=v(e);d({isDragging:!0,startX:n,startY:r,currentX:n,currentY:r}),t?.(e),b(n,r),i&&(document.body.style.userSelect="none",document.body.style.webkitUserSelect="none")}),[v,b,t,i,g]),x=c((e=>{if(!a.isDragging)return;e.preventDefault();const{x:t,y:n}=v(e);d((e=>({...e,currentX:t,currentY:n}))),b(t,n)}),[a.isDragging,v,b]),w=c((()=>{a.isDragging&&(d((e=>({...e,isDragging:!1}))),r?.(),i&&(document.body.style.userSelect="",document.body.style.webkitUserSelect=""),f.current&&cancelAnimationFrame(f.current))}),[a.isDragging,r,i]),S=c((e=>{e.preventDefault(),g();const{x:n,y:r}=v(e);d({isDragging:!0,startX:n,startY:r,currentX:n,currentY:r}),t?.(e),b(n,r)}),[v,b,t,g]),k=c((e=>{if(!a.isDragging)return;e.preventDefault();const{x:t,y:n}=v(e);d((e=>({...e,currentX:t,currentY:n}))),b(t,n)}),[a.isDragging,v,b]),C=c((()=>{a.isDragging&&(d((e=>({...e,isDragging:!1}))),r?.(),f.current&&cancelAnimationFrame(f.current))}),[a.isDragging,r]),E=c((e=>{o?.(e)}),[o]),M=c((()=>{g()}),[g]);return l((()=>{const e=h.current;if(e)return e.addEventListener("mousedown",_),e.addEventListener("touchstart",S,{passive:!1}),e.addEventListener("keydown",E),()=>{e.removeEventListener("mousedown",_),e.removeEventListener("touchstart",S),e.removeEventListener("keydown",E)}}),[_,S,E]),l((()=>{if(a.isDragging)return document.addEventListener("mousemove",x),document.addEventListener("mouseup",w),document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",C),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",k),document.removeEventListener("touchend",C)}}),[a.isDragging,x,w,k,C]),l((()=>(window.addEventListener("resize",M),()=>window.removeEventListener("resize",M))),[M]),l((()=>()=>{f.current&&cancelAnimationFrame(f.current)}),[]),{elementRef:h,dragState:a,updateBounds:g}};var mm="ColorPicker-module_colorPicker__sEZf2",gm="ColorPicker-module_trigger__5Ukgm",vm="ColorPicker-module_triggerLabel__1qiCq",ym="ColorPicker-module_swatch__t-pF4",bm="ColorPicker-module_swatchColor__A-5J8",_m="ColorPicker-module_svPanel__Cr8Xb",xm="ColorPicker-module_svBackground__VgABR",wm="ColorPicker-module_svHandle__gPxoY",Sm="ColorPicker-module_slidersContainer__etZz6",km="ColorPicker-module_sliders__Xpo3f",Cm="ColorPicker-module_slider__HmNSH",Em="ColorPicker-module_hueSlider__smchE",Mm="ColorPicker-module_alphaSlider__7bImL",Pm="ColorPicker-module_alphaGradient__pIdQ6",Om="ColorPicker-module_sliderHandle__S-ghs",Tm="ColorPicker-module_formatSelect__5tLPh",Nm="ColorPicker-module_colorInput__6ajlG",Dm="ColorPicker-module_error__tj3WS",Am="ColorPicker-module_alphaInputContainer__-RszK",Lm="ColorPicker-module_alphaInput__IcWZ-",Im="ColorPicker-module_preview__2wBPl",zm="ColorPicker-module_previewColor__7da0X",Rm="Select-module_container__txDHr",$m="Select-module_disabled__RJ71M",Fm="Select-module_displayer__gzmxI",jm="Select-module_selectDropdown__HBmga",Bm="Portal-module_container__QcS9f";const Hm=new Map,Wm=({children:t,className:n,onClickOutside:r})=>{const o=f(),i=s(null),a=s(Date.now());return J({targetElements:[i.current?.firstChild],onClickOutside:e=>{Hm.get(o)===Math.max(...Hm.values())&&r?.(e)}}),l((()=>(Hm.set(o,a.current),()=>{Hm.delete(o)})),[o]),l((()=>{const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]),M.createPortal(e("div",{ref:i,className:`${Bm} ${n||""}`,children:t}),document.body)};var Vm="SelectOption-module_option__wQb8V",Ym="SelectOption-module_disabled__m5fGS",Xm="SelectOption-module_selected__A6Rky",qm="SelectOption-module_displayer__lEn8X";var Um=a((({option:t,selected:n,multiple:r,disabled:o,onSelect:i,onClick:a,...s})=>{const{value:l,label:c}="object"==typeof t?{value:t.value,label:t.label}:{value:t,label:t};return e(H,{dimensionX:"fill",dimensionY:36,alignment:"leftCenter",onClick:a,root:{children:e(Qf,{disabled:o,dimensionX:"fill",checked:n,label:c,alignment:"leftCenter",prefix:r?void 0:{children:null},root:{className:`${s.root?.className} ${qm}`},labelProps:{className:qm}}),dimensionX:"fill"},...s,className:`${Vm} ${n&&Xm} ${o&&Ym} ${s.className||""}`})}));var Zm=a((({value:r,options:o,placeholder:i="Select an option",placement:a="bottom",multiple:c=!1,disabled:h=!1,maxCount:p,popupClassName:f="",optionProps:g,selectRef:v,disableClick:y,onChange:b,externalDropdownRef:_,...x})=>{const[w,S]=u(!1),[k,C]=u(r||(c?[]:null));l((()=>{(r||0===r||""===r)&&C(r)}),[r]);const E=s(null),M=s(null);m(_??{current:null},(()=>M.current));const{targetPosition:P,calculatePosition:O}=Q({containerRef:E,targetRef:M,initialPlacement:a});d((()=>{w&&E.current&&M.current&&O()}),[w,o,O]);m(v,(()=>({toggleDropdown:N,clear:T})));const T=()=>{C([]),b?.([]),S(!1)},N=e=>{S(void 0===e?e=>!e:e)},D=e=>"object"!=typeof o[0]?String(e):L(e),A=e=>e.length?"object"==typeof o[0]?e.map((e=>L(e))).join(", "):e.join(", "):i,L=e=>o.find((t=>t.value===e))?.label;return t(n,{children:[e(H,{ref:E,onClick:()=>{h||y||N()},dimensionX:"fill",dimensionY:36,...x,root:{children:e(V,{style:x.root?.style,className:`${x.root?.className} ${Fm}`,children:k?c?A(k):D(k):i}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(Za,{name:"chevronDown"})},className:`${x.className} ${Rm} ${h&&$m}`}),w&&e(Wm,{onClickOutside:()=>{y||S(!1)},children:e(B,{ref:M,style:{...P},className:`${f} ${jm}`,direction:"vertical",alignment:"leftTop",gap:0,"data-select-dropdown":!0,children:o.map((t=>{const n="object"==typeof t?t.value:t,r=c?Array.isArray(k)&&k.includes(n):k===n,o=c&&!!p&&Array.isArray(k)&&k.length>=p&&!r;return e(Um,{disabled:o,dimensionX:E.current?.offsetWidth,multiple:c,option:t,selected:r,onClick:()=>(e=>{c?(()=>{if(!Array.isArray(k))return;const t=k.includes(e)?k.filter((t=>t!==e)):[...k,e];C(t),b?.(t)})():(C(e),b?.(e),S(!1))})(n),...g},n.toString())}))})})]})}));const Gm=({value:n,defaultValue:r="#1677FF",onChange:o,format:a="hex",placement:d="bottomStart",disabled:h=!1,id:p,className:f,triggerDisplay:m="complete"})=>{const[g,v]=u(!1),[y,b]=u(a),[_,x]=u(""),[w,S]=u(!1),[k,C]=u("100"),E=i((()=>dm(n??r)),[n,r]),[M,P]=u(E),[O,T]=u((()=>hm(E))),N=s(null),D=s(null),A=s(null),L=s(null),I=s(null);l((()=>{if(void 0!==n){const e=dm(n);P(e),T(hm(e))}}),[n]),l((()=>{x(((e,t)=>{switch(t){case"hex":default:return e.hex;case"rgb":return cm(e.rgb.r,e.rgb.g,e.rgb.b,e.rgb.a);case"hsl":return um(e.hsl.h,e.hsl.s,e.hsl.l,e.hsl.a)}})(M,y)),C(Math.round(100*M.rgb.a).toString())}),[M,y]);const z=c((e=>{P(e),T(hm(e)),o?.(e)}),[o]),R=fm({onDrag:(e,t)=>{const n={...O,s:100*e,v:100*(1-t)};T(n),z(pm(n))},onKeyDown:e=>{const t=e.shiftKey?10:1;let n=O.s,r=O.v;switch(e.key){case"ArrowLeft":e.preventDefault(),n=om(O.s-t,0,100);break;case"ArrowRight":e.preventDefault(),n=om(O.s+t,0,100);break;case"ArrowUp":e.preventDefault(),r=om(O.v+t,0,100);break;case"ArrowDown":e.preventDefault(),r=om(O.v-t,0,100)}if(n!==O.s||r!==O.v){const e={...O,s:n,v:r};T(e),z(pm(e))}}}),$=fm({onDrag:e=>{const t={...O,h:360*e};T(t),z(pm(t))},onKeyDown:e=>{const t=e.shiftKey?10:1;let n=O.h;switch(e.key){case"ArrowLeft":e.preventDefault(),n=(O.h-t+360)%360;break;case"ArrowRight":e.preventDefault(),n=(O.h+t)%360}if(n!==O.h){const e={...O,h:n};T(e),z(pm(e))}}}),F=fm({onDrag:e=>{const t={...O,a:e};T(t),z(pm(t))},onKeyDown:e=>{const t=e.shiftKey?.1:.01;let n=O.a;switch(e.key){case"ArrowLeft":e.preventDefault(),n=om(O.a-t,0,1);break;case"ArrowRight":e.preventDefault(),n=om(O.a+t,0,1)}if(n!==O.a){const e={...O,a:n};T(e),z(pm(e))}}}),j=i((()=>{const e=sm(O.h,100,100);return{backgroundColor:`rgb(${e.r}, ${e.g}, ${e.b})`}}),[O.h]),H=i((()=>({left:`${O.s}%`,top:100-O.v+"%"})),[O.s,O.v]),W=i((()=>({left:O.h/360*100+"%"})),[O.h]),V=i((()=>{const e=sm(O.h,O.s,O.v);return{background:`linear-gradient(to right, rgba(${e.r}, ${e.g}, ${e.b}, 0), rgba(${e.r}, ${e.g}, ${e.b}, 1))`}}),[O.h,O.s,O.v]),Y=i((()=>({left:100*O.a+"%"})),[O.a]),X=i((()=>({backgroundColor:lm(M.rgb)})),[M.rgb]),q=()=>{h||v(!g)};l((()=>{const e=e=>{g&&D.current&&N.current&&!D.current.contains(e.target)&&!N.current.contains(e.target)&&v(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[g]),l((()=>{const e=e=>{"Escape"===e.key&&g&&(v(!1),N.current?.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[g]);const U="hex"===y?(M.rgb.a,M.hex):_,Z="only-code"!==m,K="only-color"!==m;return e("div",{className:`${mm} ${f||""}`,"data-disabled":h,children:e(DA,{content:t(B,{gap:5,direction:"vertical",children:[t("div",{ref:e=>{A.current=e,R.elementRef&&(R.elementRef.current=e)},className:_m,style:j,tabIndex:0,role:"slider","aria-label":"Saturation and brightness","aria-valuenow":Math.round(O.s),"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`Saturation ${Math.round(O.s)}%, Brightness ${Math.round(O.v)}%`,children:[e("div",{className:xm}),e("div",{className:wm,style:H})]}),t("div",{className:Sm,children:[t("div",{className:km,children:[e("div",{ref:e=>{L.current=e,$.elementRef&&($.elementRef.current=e)},className:`${Cm} ${Em}`,tabIndex:0,role:"slider","aria-label":"Hue","aria-valuenow":Math.round(O.h),"aria-valuemin":0,"aria-valuemax":360,"aria-valuetext":`Hue ${Math.round(O.h)} degrees`,children:e("div",{className:Om,style:W})}),t("div",{ref:e=>{I.current=e,F.elementRef&&(F.elementRef.current=e)},className:`${Cm} ${Mm}`,tabIndex:0,role:"slider","aria-label":"Alpha","aria-valuenow":Math.round(100*O.a),"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`Alpha ${Math.round(100*O.a)}%`,children:[e("div",{className:Pm,style:V}),e("div",{className:Om,style:Y})]})]}),e("div",{className:Im,children:e("div",{className:zm,style:X})})]}),t(B,{gap:5,direction:"horizontal",children:[e(Zm,{className:Tm,value:y,options:[{value:"hex",label:"HEX"},{value:"rgb",label:"RGB"},{value:"hsl",label:"HSL"}],onChange:e=>b(e),dimensionY:32}),e(G,{type:"text",className:`${Nm} ${w?Dm:""}`,value:_,onChange:e=>(e=>{x(e),S(!1)})(e.target.value),onBlur:()=>{try{const e=dm(_);z(e),S(!1)}catch{S(!0);const e=(e,t)=>{switch(t){case"hex":default:return e.hex;case"rgb":return cm(e.rgb.r,e.rgb.g,e.rgb.b,e.rgb.a);case"hsl":return um(e.hsl.h,e.hsl.s,e.hsl.l,e.hsl.a)}};x(e(M,y))}},"aria-label":"Color value","aria-invalid":w,dimensionY:32}),t(B,{className:Am,children:[e(G,{type:"text",className:Lm,value:k,onChange:e=>(e=>{C(e);const t=parseFloat(e);if(!isNaN(t)&&t>=0&&t<=100){const e={...O,a:t/100};T(e),z(pm(e))}})(e.target.value),"aria-label":"Alpha percentage",dimensionY:32,dimensionX:30}),e("span",{children:"%"})]})]})]}),open:g,onClose:()=>v(!1),arrow:!0,placement:"bottom",children:t("button",{ref:N,className:gm,onClick:q,onKeyDown:e=>{"Enter"===e.key||" "===e.key?(e.preventDefault(),q()):"Escape"===e.key&&g&&v(!1)},disabled:h,"aria-label":"Open color picker","aria-expanded":g,"aria-haspopup":"dialog",id:p,"data-display":m,children:[Z&&e("div",{className:ym,children:e("div",{className:bm,style:X})}),K&&e("span",{className:vm,children:U})]})})})};var Km={container:"DashboardItem-module_container__Cu2fp",settingButton:"DashboardItem-module_settingButton__EVb24",header:"DashboardItem-module_header__1Ltls",chartContainer:"DashboardItem-module_chartContainer__xibFh",chart:"DashboardItem-module_chart__a5kGE"},Jm="Section-module_sectionContainer__qECl2",Qm="Section-module_header__1oDhY",eg="Section-module_content__3PfOv",tg="Section-module_footer__KPdum";const ng=a((({children:t,...n})=>e(B,{dimensionX:"fill",alignment:"leftTop",...n,className:`${Qm} ${n.className}`,children:t}))),rg=a((({children:t,...n})=>e(B,{dimensionX:"fill",alignment:"leftTop",...n,className:`${eg} ${n.className}`,children:t}))),og=a((({children:t,...n})=>e(B,{dimensionX:"fill",alignment:"leftTop",...n,className:`${tg} ${n.className}`,children:t}))),ig=a((({children:t,...n})=>e(B,{dimensionX:"fill",dimensionY:"fill",direction:"vertical",gap:0,...n,className:`${n.className} ${Jm}`,children:t})));ig.Header=ng,ig.Content=rg,ig.Footer=og;const ag=({headerProps:n,chartProps:r})=>t(ig,{className:Km.dashboardItem,children:[t(ig.Header,{children:[e(V,{children:n?.content}),n?.suffix||e(_s,{color:"transparent",shape:"circle",className:Km.settingButton,children:e(Za,{name:"cog",className:Km.settingIcon,size:"xs"})})]}),e(ig.Content,{children:e(Uf,{type:r?.type,data:r?.data,options:r?.options,className:Km.chart})})]});var sg,lg={exports:{}};
50
50
  /*!
51
51
  Copyright (c) 2018 Jed Watson.
52
52
  Licensed under the MIT License (MIT), see
@@ -60,7 +60,7 @@ function(e,t){const n=no(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
60
60
  *
61
61
  * This source code is licensed under the MIT license found in the
62
62
  * LICENSE file in the root directory of this source tree.
63
- */var $g=(zg||(zg=1,"production"===process.env.NODE_ENV?Ag.exports=function(){if(Dg)return Lg;Dg=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case p:case h:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),Lg.ContextConsumer=s,Lg.ContextProvider=a,Lg.Element=t,Lg.ForwardRef=c,Lg.Fragment=r,Lg.Lazy=p,Lg.Memo=h,Lg.Portal=n,Lg.Profiler=i,Lg.StrictMode=o,Lg.Suspense=u,Lg.SuspenseList=d,Lg.isAsyncMode=function(){return!1},Lg.isConcurrentMode=function(){return!1},Lg.isContextConsumer=function(e){return m(e)===s},Lg.isContextProvider=function(e){return m(e)===a},Lg.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Lg.isForwardRef=function(e){return m(e)===c},Lg.isFragment=function(e){return m(e)===r},Lg.isLazy=function(e){return m(e)===p},Lg.isMemo=function(e){return m(e)===h},Lg.isPortal=function(e){return m(e)===n},Lg.isProfiler=function(e){return m(e)===i},Lg.isStrictMode=function(e){return m(e)===o},Lg.isSuspense=function(e){return m(e)===u},Lg.isSuspenseList=function(e){return m(e)===d},Lg.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===h||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Lg.typeOf=m,Lg}():Ag.exports=(Ig||(Ig=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case r:case i:case o:case u:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case c:case p:case h:case a:return g;default:return f}}case n:return f}}}e=Symbol.for("react.module.reference");var g=s,v=a,y=t,b=c,_=r,x=p,w=h,S=n,k=i,C=o,E=u,M=d,P=!1,O=!1;Rg.ContextConsumer=g,Rg.ContextProvider=v,Rg.Element=y,Rg.ForwardRef=b,Rg.Fragment=_,Rg.Lazy=x,Rg.Memo=w,Rg.Portal=S,Rg.Profiler=k,Rg.StrictMode=C,Rg.Suspense=E,Rg.SuspenseList=M,Rg.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Rg.isConcurrentMode=function(e){return O||(O=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Rg.isContextConsumer=function(e){return m(e)===s},Rg.isContextProvider=function(e){return m(e)===a},Rg.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Rg.isForwardRef=function(e){return m(e)===c},Rg.isFragment=function(e){return m(e)===r},Rg.isLazy=function(e){return m(e)===p},Rg.isMemo=function(e){return m(e)===h},Rg.isPortal=function(e){return m(e)===n},Rg.isProfiler=function(e){return m(e)===i},Rg.isStrictMode=function(e){return m(e)===o},Rg.isSuspense=function(e){return m(e)===u},Rg.isSuspenseList=function(e){return m(e)===d},Rg.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===h||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Rg.typeOf=m}()),Rg)),Ag.exports);function Fg(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var jg=Number(g.split(".")[0]),Bg=function(e,t){"function"==typeof e?e(t):"object"===hg(e)&&e&&"current"in e&&(e.current=t)},Hg=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){Bg(t,e)}))}},Wg=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fg((function(){return Hg.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Vg=function(e){var t,n;if(!e)return!1;if(Yg(e)&&jg>=19)return!0;var r=$g.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===$g.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===$g.ForwardRef)};function Yg(e){return v(e)&&!gg(e)}var Xg=function(e){if(e&&Yg(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},qg=r.createContext(null);var Ug=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Zg="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Gg="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Kg="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Gg):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Jg=["top","right","bottom","left","width","height","size","weight"],Qg="undefined"!=typeof MutationObserver,ev=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){Kg(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Zg&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Qg?(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(){Zg&&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;Jg.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}(),tv=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},nv=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Gg},rv=cv(0,0,0,0);function ov(e){return parseFloat(e)||0}function iv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ov(e["border-"+n+"-width"])}),0)}function av(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return rv;var r=nv(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ov(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=ov(r.width),l=ov(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=iv(r,"left","right")+i),Math.round(l+a)!==n&&(l-=iv(r,"top","bottom")+a)),!function(e){return e===nv(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return cv(o.left,o.top,s,l)}var sv="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof nv(e).SVGGraphicsElement}:function(e){return e instanceof nv(e).SVGElement&&"function"==typeof e.getBBox};function lv(e){return Zg?sv(e)?function(e){var t=e.getBBox();return cv(0,0,t.width,t.height)}(e):av(e):rv}function cv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var uv=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=cv(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=lv(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),dv=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return tv(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);tv(this,{target:e,contentRect:n})},hv=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ug,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new uv(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new dv(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pv="undefined"!=typeof WeakMap?new WeakMap:new Ug,fv=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=ev.getInstance(),r=new hv(t,n,this);pv.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){fv.prototype[e]=function(){var t;return(t=pv.get(this))[e].apply(t,arguments)}}));var mv=void 0!==Gg.ResizeObserver?Gg.ResizeObserver:fv,gv=Object.freeze({__proto__:null,default:mv}),vv=new Map;function yv(e){e.forEach((function(e){var t,n=e.target;null===(t=vv.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var bv=new mv(yv);function _v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eg(r.key),r)}}function wv(e,t,n){return t&&xv(e.prototype,t),n&&xv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sv(e,t){return Sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sv(e,t)}function kv(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sv(e,t)}function Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cv(e)}function Ev(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ev=function(){return!!e})()}function Mv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pv(e){var t=Ev();return function(){var n,r=Cv(e);if(t){var o=Cv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Cg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mv(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ov=function(){kv(t,r.Component);var e=Pv(t);function t(){return _v(this,t),e.apply(this,arguments)}return wv(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Tv(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),s=r.useContext(qg),l="function"==typeof n,c=l?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&r.isValidElement(c)&&Vg(c),h=d?Xg(c):null,p=Wg(h,i),f=function(){var e;return Ng(i.current)||(i.current&&"object"===Cg(i.current)?Ng(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Ng(a.current)};r.useImperativeHandle(t,(function(){return f()}));var m=r.useRef(e);m.current=e;var g=r.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),h=Math.floor(a);if(u.current.width!==d||u.current.height!==h||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var p={width:d,height:h,offsetWidth:l,offsetHeight:c};u.current=p;var f=l===Math.round(i)?i:l,g=c===Math.round(a)?a:c,v=Og(Og({},p),{},{offsetWidth:f,offsetHeight:g});null==s||s(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return r.useEffect((function(){var e=f();return e&&!o&&function(e,t){vv.has(e)||(vv.set(e,new Set),bv.observe(e)),vv.get(e).add(t)}(e,g),function(){return function(e,t){vv.has(e)&&(vv.get(e).delete(t),vv.get(e).size||(bv.unobserve(e),vv.delete(e)))}(e,g)}}),[i.current,o]),r.createElement(Ov,{ref:a},d?r.cloneElement(c,{ref:p}):c)}var Nv=r.forwardRef(Tv);"production"!==process.env.NODE_ENV&&(Nv.displayName="SingleObserver");function Dv(e,t){var n=e.children,o="function"==typeof n?[n]:vg(n);return"production"!==process.env.NODE_ENV&&(o.length>1?_g(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&_g(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Nv,dg({},e,{key:i,ref:0===o?t:void 0}),n)}))}var Av=r.forwardRef(Dv);function Lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Iv(e){return function(e){if(Array.isArray(e))return Lv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Lv(e,t);var n={}.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)?Lv(e,t):void 0}}(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.")}()}"production"!==process.env.NODE_ENV&&(Av.displayName="ResizeObserver"),Av.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(qg),s=r.useCallback((function(e,t,r){o.current+=1;var s=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){s===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(qg.Provider,{value:s},t)};var zv=function(e){return+setTimeout(e,16)},Rv=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(zv=function(e){return window.requestAnimationFrame(e)},Rv=function(e){return window.cancelAnimationFrame(e)});var $v=0,Fv=new Map;function jv(e){Fv.delete(e)}var Bv=function(e){var t=$v+=1;return function n(r){if(0===r)jv(t),e();else{var o=zv((function(){n(r-1)}));Fv.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Hv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wv(e,t){if(e){if("string"==typeof e)return Hv(e,t);var n={}.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)?Hv(e,t):void 0}}function Vv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Wv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yv(e){return function(e){if(Array.isArray(e))return Hv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wv(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.")}()}function Xv(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function qv(e){var t=function(e,t){if("object"!=hg(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hg(t)?t:t+""}function Uv(e,t,n){return(t=qv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zv(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 Gv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zv(Object(n),!0).forEach((function(t){Uv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kv(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}Bv.cancel=function(e){var t=Fv.get(e);return jv(e),Rv(t)},"production"!==process.env.NODE_ENV&&(Bv.ids=function(){return Fv});var Jv="data-rc-order",Qv="data-rc-priority",ey=new Map;function ty(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function ny(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ry(e){return Array.from((ey.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function oy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Kv())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Jv,a),s&&i&&l.setAttribute(Qv,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=ny(t),u=c.firstChild;if(r){if(s){var d=(t.styles||ry(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Jv)))return!1;var t=Number(e.getAttribute(Qv)||0);return i>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function iy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ny(t);return(t.styles||ry(n)).find((function(n){return n.getAttribute(ty(t))===e}))}function ay(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=iy(e,t);n&&ny(t).removeChild(n)}function sy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ny(n),o=ry(r),i=Gv(Gv({},n),{},{styles:o});!function(e,t){var n=ey.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=oy("",t),o=r.parentNode;ey.set(e,o),e.removeChild(r)}}(r,i);var a=iy(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=oy(e,i);return u.setAttribute(ty(i),t),u}function ly(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cy(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(kg(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],o[l],s))return!1;return!0}if(t&&o&&"object"===hg(t)&&"object"===hg(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],s)}))}return!1}(e,t)}function uy(e){return e.join("%")}var dy=function(){function e(t){_v(this,e),Mg(this,"instanceId",void 0),Mg(this,"cache",new Map),this.instanceId=t}return wv(e,[{key:"get",value:function(e){return this.opGet(uy(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(uy(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),hy="data-token-hash",py="data-css-hash",fy="__cssinjs_instance__";var my=r.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(py,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[fy]=t[fy]||e,t[fy]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(py,"]"))).forEach((function(t){var n,o=t.getAttribute(py);r[o]?t[fy]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new dy(e)}(),defaultCache:!0});var gy=function(){function e(){_v(this,e),Mg(this,"cache",void 0),Mg(this,"keys",void 0),Mg(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return wv(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=Vv(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Vv(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Mg(gy,"MAX_CACHE_SIZE",20),Mg(gy,"MAX_CACHE_OFFSET",5);var vy=0,yy=function(){function e(t){_v(this,e),Mg(this,"derivatives",void 0),Mg(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=vy,0===t.length&&_g(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),vy+=1}return wv(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),by=new gy;function _y(e){var t=Array.isArray(e)?e:[e];return by.has(t)||by.set(t,new yy(t)),by.get(t)}var xy=new WeakMap,wy={};var Sy=new WeakMap;function ky(e){var t=Sy.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof yy?t+=r.id:r&&"object"===Cg(r)?t+=ky(r):t+=r})),t=Xv(t),Sy.set(e,t)),t}function Cy(e,t){return Xv("".concat(t,"_").concat(ky(e)))}var Ey=Kv();function My(e){return"number"==typeof e?"".concat(e,"px"):e}function Py(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=Og(Og({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(Mg(r={},hy,t),Mg(r,py,n),r)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Oy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Ty=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Vv(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ny=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=Vv(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])o[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=Oy(s,null==n?void 0:n.prefix);r[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),o[s]="var(".concat(u,")")}})),[o,Ty(r,t,{scope:null==n?void 0:n.scope})]},Dy="test"!==process.env.NODE_ENV&&Kv()?r.useLayoutEffect:r.useEffect,Ay=function(e,t){var n=r.useRef(!0);Dy((function(){return e(n.current)}),t),Dy((function(){return n.current=!1,function(){n.current=!0}}),[])},Ly=function(e,t){Ay((function(t){if(!t)return e()}),t)},Iy=Og({},r).useInsertionEffect,zy=Iy?function(e,t,n){return Iy((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Ay((function(){return t(!0)}),n)},Ry=void 0!==Og({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&_g(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var $y=!1;var Fy="production"===process.env.NODE_ENV?function(){return!1}:function(){return $y};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var jy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(jy&&"function"==typeof jy.webpackHotUpdate){var By=jy.webpackHotUpdate;jy.webpackHotUpdate=function(){return $y=!0,setTimeout((function(){$y=!1}),0),By.apply(void 0,arguments)}}}function Hy(e,t,n,o,i){var a=r.useContext(my).cache,s=uy([e].concat(Yv(t))),l=Ry([s]),c=Fy(),u=function(e){a.opUpdate(s,(function(t){var r=Vv(t||[void 0,void 0],2),i=r[0],a=void 0===i?0:i,s=r[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==o||o(l,c),l=null);var u=[a,l||n()];return e?e(u):u}))};r.useMemo((function(){u()}),[s]);var d=a.opGet(s);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(s));var h=d[1];return zy((function(){null==i||i(h)}),(function(e){return u((function(t){var n=Vv(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(h)),[r+1,o]})),function(){a.opUpdate(s,(function(t){var n=Vv(t||[],2),r=n[0],i=void 0===r?0:r,c=n[1];return 0===i-1?(l((function(){!e&&a.opGet(s)||null==o||o(c,!1)})),null):[i-1,c]}))}}),[s]),h}var Wy={},Vy="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Yy=new Map;function Xy(e,t){Yy.set(e,(Yy.get(e)||0)-1);var n=Array.from(Yy.keys()),r=n.filter((function(e){return(Yy.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(hy,'="').concat(e,'"]')).forEach((function(e){var n;e[fy]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Yy.delete(e)}))}var qy="token";function Uy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=p(my),o=r.cache.instanceId,i=r.container,a=n.salt,s=void 0===a?"":a,l=n.override,c=void 0===l?Wy:l,u=n.formatToken,d=n.getComputedToken,h=n.cssVar,f=function(e,t){for(var n=xy,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(wy)||n.set(wy,e()),n.get(wy)}((function(){return Object.assign.apply(Object,[{}].concat(Yv(t)))}),t),m=ky(f),g=ky(c),v=h?ky(h):"",y=Hy(qy,[s,e.id,m,g,v],(function(){var t,n=d?d(f,c,e):function(e,t,n,r){var o=Og(Og({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(f,c,e,u),r=Og({},n),o="";if(h){var i=Vv(Ny(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=i[0],o=i[1]}var a=Cy(n,s);n._tokenKey=a,r._tokenKey=Cy(r,s);var l=null!==(t=null==h?void 0:h.key)&&void 0!==t?t:a;n._themeKey=l,function(e){Yy.set(e,(Yy.get(e)||0)+1)}(l);var p="".concat(Vy,"-").concat(Xv(a));return n._hashId=p,[n,p,r,o,(null==h?void 0:h.key)||""]}),(function(e){Xy(e[0]._themeKey,o)}),(function(e){var t=Vv(e,4),n=t[0],r=t[3];if(h&&r){var a=sy(r,Xv("css-variables-".concat(n._themeKey)),{mark:py,prepend:"queue",attachTo:i,priority:-999});a[fy]=o,a.setAttribute(hy,n._themeKey)}}));return y}var Zy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gy="comm",Ky="rule",Jy="decl",Qy=Math.abs,eb=String.fromCharCode;function tb(e){return e.trim()}function nb(e,t,n){return e.replace(t,n)}function rb(e,t,n){return e.indexOf(t,n)}function ob(e,t){return 0|e.charCodeAt(t)}function ib(e,t,n){return e.slice(t,n)}function ab(e){return e.length}function sb(e,t){return t.push(e),e}var lb=1,cb=1,ub=0,db=0,hb=0,pb="";function fb(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lb,column:cb,length:a,return:"",siblings:s}}function mb(){return hb=db>0?ob(pb,--db):0,cb--,10===hb&&(cb=1,lb--),hb}function gb(){return hb=db<ub?ob(pb,db++):0,cb++,10===hb&&(cb=1,lb++),hb}function vb(){return ob(pb,db)}function yb(){return db}function bb(e,t){return ib(pb,e,t)}function _b(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xb(e){return tb(bb(db-1,kb(91===e?e+2:40===e?e+1:e)))}function wb(e){for(;(hb=vb())&&hb<33;)gb();return _b(e)>2||_b(hb)>3?"":" "}function Sb(e,t){for(;--t&&gb()&&!(hb<48||hb>102||hb>57&&hb<65||hb>70&&hb<97););return bb(e,yb()+(t<6&&32==vb()&&32==gb()))}function kb(e){for(;gb();)switch(hb){case e:return db;case 34:case 39:34!==e&&39!==e&&kb(hb);break;case 40:41===e&&kb(e);break;case 92:gb()}return db}function Cb(e,t){for(;gb()&&e+hb!==57&&(e+hb!==84||47!==vb()););return"/*"+bb(t,db-1)+"*"+eb(47===e?e:gb())}function Eb(e){for(;!_b(vb());)gb();return bb(e,db)}function Mb(e){return function(e){return pb="",e}(Pb("",null,null,null,[""],e=function(e){return lb=cb=1,ub=ab(pb=e),db=0,[]}(e),0,[0],e))}function Pb(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,f=0,m=1,g=1,v=1,y=0,b="",_=o,x=i,w=r,S=b;g;)switch(f=y,y=gb()){case 40:if(108!=f&&58==ob(S,d-1)){-1!=rb(S+=nb(xb(y),"&","&\f"),"&\f",Qy(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=xb(y);break;case 9:case 10:case 13:case 32:S+=wb(f);break;case 92:S+=Sb(yb()-1,7);continue;case 47:switch(vb()){case 42:case 47:sb(Tb(Cb(gb(),yb()),t,n,l),l),5!=_b(f||1)&&5!=_b(vb()||1)||!ab(S)||" "===ib(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:s[c++]=ab(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=nb(S,/\f/g,"")),p>0&&(ab(S)-d||0===m&&47===f)&&sb(p>32?Nb(S+";",r,n,d-1,l):Nb(nb(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(sb(w=Ob(S,t,n,c,u,o,s,b,_=[],x=[],d,i),i),123===y)if(0===u)Pb(S,t,w,w,_,i,d,s,x);else{switch(h){case 99:if(110===ob(S,3))break;case 108:if(97===ob(S,2))break;default:u=0;case 100:case 109:case 115:}u?Pb(e,w,w,r&&sb(Ob(e,w,w,0,0,o,s,b,o,_=[],d,x),x),o,x,d,s,r?_:x):Pb(S,w,w,w,[""],x,0,s,x)}}c=u=p=0,m=v=1,b=S="",d=a;break;case 58:d=1+ab(S),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==mb())continue;switch(S+=eb(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(ab(S)-1)*v,v=1;break;case 64:45===vb()&&(S+=xb(gb())),h=vb(),u=d=ab(b=S+=Eb(yb())),y++;break;case 45:45===f&&2==ab(S)&&(m=0)}}return i}function Ob(e,t,n,r,o,i,a,s,l,c,u,d){for(var h=o-1,p=0===o?i:[""],f=function(e){return e.length}(p),m=0,g=0,v=0;m<r;++m)for(var y=0,b=ib(e,h+1,h=Qy(g=a[m])),_=e;y<f;++y)(_=tb(g>0?p[y]+" "+b:nb(b,/&\f/g,p[y])))&&(l[v++]=_);return fb(e,t,n,0===o?Ky:s,l,c,u,d)}function Tb(e,t,n,r){return fb(e,t,n,Gy,eb(hb),ib(e,2,-2),0,r)}function Nb(e,t,n,r,o){return fb(e,t,n,Jy,ib(e,0,r),ib(e,r+1,-1),r,o)}function Db(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ab(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Jy:return e.return=e.return||e.value;case Gy:return"";case"@keyframes":return e.return=e.value+"{"+Db(e.children,r)+"}";case Ky:if(!ab(e.value=e.props.join(",")))return""}return ab(n=Db(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lb(e,t){var n=t.path,r=t.parentSelectors;kg(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Ib,zb=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&Lb("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Rb=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Lb("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},$b="data-ant-cssinjs-cache-path",Fb="_FILE_STYLE__",jb=!0;function Bb(e){return function(){if(!Ib&&(Ib={},Kv())){var e=document.createElement("div");e.className=$b,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=Vv(e.split(":"),2),n=t[0],r=t[1];Ib[n]=r}));var n,r=document.querySelector("style[".concat($b,"]"));r&&(jb=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ib[e]}var Hb="_skip_check_",Wb="_multi_value_";function Vb(e){return Db(Mb(e),Ab).replace(/\{%%%\:[^;];}/g,";")}function Yb(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,i=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Yv(n.slice(1))).join(" ")}));return i.join(",")}var Xb=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,h=void 0===d?[]:d,p=n.linters,f=void 0===p?[]:p,m="",g={};function v(t){var r=t.getName(s);if(!g[r]){var o=Vv(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(t.getName(s)).concat(o)}}var y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return y.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var l=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(l).forEach((function(t){var r=l[t];if("object"!==Cg(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Cg(e)&&e&&(Hb in e||Wb in e)}(r)){var d;function S(e,t){"production"===process.env.NODE_ENV||"object"===Cg(r)&&null!=r&&r[Hb]||[zb,Rb].concat(Yv(f)).forEach((function(n){return n(e,t,{path:c,hashId:s,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;Zy[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),o=t.getName(s)),m+="".concat(n,":").concat(o,";")}var h=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===Cg(r)&&null!=r&&r[Wb]&&Array.isArray(h)?h.forEach((function(e){S(t,e)})):S(t,h)}else{var p=!1,y=t.trim(),b=!1;(o||i)&&s?y.startsWith("@")?p=!0:y=Yb("&"===y?"":t,s,u):!o||s||"&"!==y&&""!==y||(y="",b=!0);var _=Vv(e(r,n,{root:b,injectHash:p,parentSelectors:[].concat(Yv(a),[y])}),2),x=_[0],w=_[1];g=Og(Og({},g),w),m+="".concat(y).concat(x)}}))}})),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,g]};function qb(e,t){return Xv("".concat(e.join("%")).concat(t))}function Ub(){return null}var Zb="style";function Gb(e,t){var n=e.token,o=e.path,i=e.hashId,a=e.layer,s=e.nonce,l=e.clientOnly,c=e.order,u=void 0===c?0:c,d=r.useContext(my),h=d.autoClear,p=d.mock,f=d.defaultCache,m=d.hashPriority,g=d.container,v=d.ssrInline,y=d.transformers,b=d.linters,_=d.cache,x=d.layer,w=n._tokenKey,S=[w];x&&S.push("layer"),S.push.apply(S,Yv(o));var k=Ey;"production"!==process.env.NODE_ENV&&void 0!==p&&(k="client"===p);var C=Hy(Zb,S,(function(){var e=S.join("|");if(Bb(e)){var n=function(e){var t=Ib[e],n=null;if(t&&Kv())if(jb)n=Fb;else{var r=document.querySelector("style[".concat(py,'="').concat(Ib[e],'"]'));r?n=r.innerHTML:delete Ib[e]}return[n,t]}(e),r=Vv(n,2),s=r[0],c=r[1];if(s)return[s,w,c,{},l,u]}var d=t(),h=Vv(Xb(d,{hashId:i,hashPriority:m,layer:x?a:void 0,path:o.join("-"),transformers:y,linters:b}),2),p=h[0],f=h[1],g=Vb(p),v=qb(S,g);return[g,w,v,f,l,u]}),(function(e,t){var n=Vv(e,3)[2];(t||h)&&Ey&&ay(n,{mark:py})}),(function(e){var t=Vv(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(k&&n!==Fb){var i={mark:py,prepend:!x&&"queue",attachTo:g,priority:u},a="function"==typeof s?s():s;a&&(i.csp={nonce:a});var l=[],c=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):c.push(e)})),l.forEach((function(e){sy(Vb(o[e]),"_layer-".concat(e),Og(Og({},i),{},{prepend:!0}))}));var d=sy(n,r,i);d[fy]=_.instanceId,d.setAttribute(hy,w),"production"!==process.env.NODE_ENV&&d.setAttribute("data-cache-path",S.join("|")),c.forEach((function(e){sy(Vb(o[e]),"_effect-".concat(e),i)}))}})),E=Vv(C,3),M=E[0],P=E[1],O=E[2];return function(e){var t,n;v&&!k&&f?t=r.createElement("style",dg({},(Mg(n={},hy,P),Mg(n,py,O),n),{dangerouslySetInnerHTML:{__html:M}})):t=r.createElement(Ub,null);return r.createElement(r.Fragment,null,t,e)}}var Kb,Jb="cssVar";Mg(Kb={},Zb,(function(e,t,n){var r=Vv(e,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=(n||{}).plain;if(l)return null;var d=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Py(o,i,a,h,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Py(Vb(s[e]),i,"_effect-".concat(e),h,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Mg(Kb,qy,(function(e,t,n){var r=Vv(e,5),o=r[2],i=r[3],a=r[4],s=(n||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,Py(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Mg(Kb,Jb,(function(e,t,n){var r=Vv(e,4),o=r[1],i=r[2],a=r[3],s=(n||{}).plain;if(!o)return null;return[-999,i,Py(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var Qb=function(){function e(t,n){_v(this,e),Mg(this,"name",void 0),Mg(this,"style",void 0),Mg(this,"_keyframe",!0),this.name=t,this.style=n}return wv(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function e_(e){return e.notSplit=!0,e}e_(["borderTop","borderBottom"]),e_(["borderTop"]),e_(["borderBottom"]),e_(["borderLeft","borderRight"]),e_(["borderLeft"]),e_(["borderRight"]);var t_=y({});function n_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r_(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function o_(e,t){if(e){if("string"==typeof e)return n_(e,t);var n={}.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)?n_(e,t):void 0}}function i_(e){return function(e){if(Array.isArray(e))return n_(e)}(e)||r_(e)||o_(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.")}()}function a_(e){if(Array.isArray(e))return e}function s_(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l_(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function c_(e,t,n,r){if(!t.length)return n;var o,i=function(e){return a_(e)||r_(e)||o_(e)||s_()}(t),a=i[0],s=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?i_(e):Gv({},e):[],r&&void 0===n&&1===s.length?delete o[a][s[0]]:o[a]=c_(o[a],s,n,r),o}function u_(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!l_(e,t.slice(0,-1))?e:c_(e,t,n,r)}function d_(e){return Array.isArray(e)?[]:{}}var h_="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function p_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=d_(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),s=l_(e,n),l=Array.isArray(s);if(l||"object"===hg(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=l_(r,n);l?r=u_(r,n,[]):c&&"object"===hg(c)||(r=u_(r,n,d_(s))),h_(s).forEach((function(e){t([].concat(i_(n),[e]),a)}))}}else r=u_(r,n,s)}([])})),r}function f_(){}let m_=null;let g_=f_;"production"!==process.env.NODE_ENV&&(g_=(e,t,n)=>{kg(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(m_=null,wg())});const v_=r.createContext({}),y_="production"!==process.env.NODE_ENV?e=>{const{strict:t}=r.useContext(v_),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=m_;m_||(m_={}),m_[e]=m_[e]||[],m_[e].includes(o||"")||m_[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",m_)}else"production"!==process.env.NODE_ENV&&g_(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=f_,e};var b_=g_,__=y(void 0),x_=Og(Og({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});var w_={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var S_={lang:Object.assign({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"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},x_),timePickerLocale:Object.assign({},w_)};const k_="${label} is not a valid ${type}";var C_={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"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",page_size:"Page Size"},DatePicker:S_,TimePicker:w_,Calendar:S_,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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",deselectAll:"Deselect 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",collapse:"Collapse"},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:k_,method:k_,array:k_,object:k_,number:k_,date:k_,boolean:k_,integer:k_,float:k_,regexp:k_,email:k_,url:k_,hex:k_},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"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},C_.Modal);let E_=[];const M_=()=>E_.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),C_.Modal);var P_=y(void 0);var O_=(e,t)=>{const n=r.useContext(P_),o=r.useMemo((()=>{var r;const o=t||C_[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]);return[o,r.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?C_.locale:e}),[n])]};const T_="internalMark",N_=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;if("production"!==process.env.NODE_ENV){const e=y_("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===T_,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}r.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return E_.push(t),M_(),()=>{E_=E_.filter((e=>e!==t)),M_()}}Object.assign({},C_.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(P_.Provider,{value:i},n)};"production"!==process.env.NODE_ENV&&(N_.displayName="LocaleProvider");var D_=N_;const A_={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var L_=Object.assign(Object.assign({},A_),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});const I_=Math.round;function z_(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const R_=(e,t,n)=>0===n?e:e/100;function $_(e,t){const n=t||255;return e>n?n:e<0?0:e}class F_{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(Mg(this,"isValid",!0),Mg(this,"r",0),Mg(this,"g",0),Mg(this,"b",0),Mg(this,"a",1),Mg(this,"_h",void 0),Mg(this,"_s",void 0),Mg(this,"_l",void 0),Mg(this,"_v",void 0),Mg(this,"_max",void 0),Mg(this,"_min",void 0),Mg(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof F_)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=$_(e.r),this.g=$_(e.g),this.b=$_(e.b),this.a="number"==typeof e.a?$_(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:I_(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:I_(o("r")),g:I_(o("g")),b:I_(o("b")),a:I_(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>I_((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=I_(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=I_(100*this.getSaturation()),n=I_(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=$_(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=I_(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const s=e/60,l=(1-Math.abs(2*n-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(o=l,i=c):s>=1&&s<2?(o=c,i=l):s>=2&&s<3?(i=l,a=c):s>=3&&s<4?(i=c,a=l):s>=4&&s<5?(o=c,a=l):s>=5&&s<6&&(o=l,a=c);const u=n-l/2;this.r=I_(255*(o+u)),this.g=I_(255*(i+u)),this.b=I_(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=I_(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),s=i-a,l=I_(n*(1-t)*255),c=I_(n*(1-t*s)*255),u=I_(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=z_(e,R_);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=z_(e,R_);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=z_(e,((e,t)=>t.includes("%")?I_(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var j_=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function B_(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function H_(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),Math.round(100*r)/100);var r}function W_(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function V_(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new F_(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new F_({h:B_(o,i,!0),s:H_(o,i,!0),v:W_(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=4;s+=1){var l=new F_({h:B_(o,s),s:H_(o,s),v:W_(o,s)});n.push(l)}return"dark"===t.theme?j_.map((function(e){var r=e.index,o=e.amount;return new F_(t.backgroundColor||"#141414").mix(n[r],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var Y_={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},X_=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];X_.primary=X_[5];var q_=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];q_.primary=q_[5];var U_=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];U_.primary=U_[5];var Z_=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Z_.primary=Z_[5];var G_=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];G_.primary=G_[5];var K_=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];K_.primary=K_[5];var J_=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];J_.primary=J_[5];var Q_=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Q_.primary=Q_[5];var ex=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ex.primary=ex[5];var tx=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];tx.primary=tx[5];var nx=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];nx.primary=nx[5];var rx=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];rx.primary=rx[5];var ox=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ox.primary=ox[5];var ix={red:X_,volcano:q_,orange:U_,gold:Z_,yellow:G_,lime:K_,green:J_,cyan:Q_,blue:ex,geekblue:tx,purple:nx,magenta:rx,grey:ox};var ax=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};var sx=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function lx(e){return(e+8)/e}var cx=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:lx(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const ux=(e,t)=>new F_(e).setA(t).toRgbString(),dx=(e,t)=>new F_(e).darken(t).toHexString(),hx=e=>{const t=V_(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},px=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ux(r,.88),colorTextSecondary:ux(r,.65),colorTextTertiary:ux(r,.45),colorTextQuaternary:ux(r,.25),colorFill:ux(r,.15),colorFillSecondary:ux(r,.06),colorFillTertiary:ux(r,.04),colorFillQuaternary:ux(r,.02),colorBgSolid:ux(r,1),colorBgSolidHover:ux(r,.75),colorBgSolidActive:ux(r,.95),colorBgLayout:dx(n,4),colorBgContainer:dx(n,0),colorBgElevated:dx(n,0),colorBgSpotlight:ux(r,.85),colorBgBlur:"transparent",colorBorder:dx(n,15),colorBorderSecondary:dx(n,6)}};const fx=_y((function(e){Y_.pink=Y_.magenta,ix.pink=ix.magenta;const t=Object.keys(A_).map((t=>{const n=e[t]===Y_[t]?ix[t]:V_(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),h=n(o),p=n(i),f=n(a),m=n(s),g=r(c,u),v=n(e.colorLink||e.colorInfo),y=new F_(f[1]).mix(new F_(f[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:y,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new F_("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:hx,generateNeutralColorPalettes:px})),cx(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),sx(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},ax(r))}(e))}));var mx=fx;const gx={token:L_,override:{override:L_},hashed:!0},vx=o.createContext(gx),yx="ant",bx="anticon",_x=["outlined","borderless","filled","underlined"],xx=r.createContext({getPrefixCls:(e,t)=>t||(e?`${yx}-${e}`:yx),iconPrefixCls:bx}),wx={};const Sx=`-ant-${Date.now()}-${Math.random()}`;function kx(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new F_(e),i=V_(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new F_(t.primaryColor),i=V_(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setA(.12*e.a)));const a=new F_(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setA(.3*e.a))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Kv()?sy(n,`${Sx}-dynamic-theme`):"production"!==process.env.NODE_ENV&&b_(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Cx=r.createContext(!1),Ex=e=>{let{children:t,disabled:n}=e;const o=r.useContext(Cx);return r.createElement(Cx.Provider,{value:null!=n?n:o},t)};var Mx=Cx;const Px=r.createContext(void 0),Ox=e=>{let{children:t,size:n}=e;const o=r.useContext(Px);return r.createElement(Px.Provider,{value:n||o},t)};var Tx=Px;var Nx=wv((function e(){_v(this,e)})),Dx="CALC_UNIT",Ax=new RegExp(Dx,"g");function Lx(e){return"number"==typeof e?"".concat(e).concat(Dx):e}var Ix=function(){kv(t,Nx);var e=Pv(t);function t(n,r){var o;_v(this,t),Mg(Mv(o=e.call(this)),"result",""),Mg(Mv(o),"unitlessCssVar",void 0),Mg(Mv(o),"lowPriority",void 0);var i=Cg(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=Lx(n):"string"===i&&(o.result=n),o}return wv(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Lx(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Lx(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Ax,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),zx=function(){kv(t,Nx);var e=Pv(t);function t(n){var r;return _v(this,t),Mg(Mv(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return wv(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),Rx=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function $x(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Fx(e,t){return a_(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||o_(e,t)||s_()}function jx(e){var t=r.useRef(!1),n=Fx(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function Bx(e){return void 0!==e}function Hx(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Fx(jx((function(){return Bx(o)?o:Bx(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==o?o:l,d=a?a(u):u,h=$x(i),p=Fx(jx([u]),2),f=p[0],m=p[1];return Ly((function(){var e=f[0];l!==e&&h(l,e)}),[f]),Ly((function(){Bx(o)||c(o)}),[o]),[d,$x((function(e,t){c(e,t),m([u],t)}))]}function Wx(e,t,n,r){var o=Og({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=Vv(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&kg(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=Og(Og({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Vx="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Yx=!0;function Xx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Vx)return Object.assign.apply(Object,[{}].concat(t));Yx=!1;var r={};return t.forEach((function(e){"object"===Cg(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Yx=!0,r}var qx={};function Ux(){}function Zx(e,t,n){var r;return"function"==typeof n?n(Xx(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Gx=function(){function e(){_v(this,e),Mg(this,"map",new Map),Mg(this,"objectIDMap",new WeakMap),Mg(this,"nextID",0),Mg(this,"lastAccessBeat",new Map),Mg(this,"accessBeat",0)}return wv(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===Cg(e)?"obj_".concat(t.getObjectID(e)):"".concat(Cg(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),Kx=new Gx;var Jx=function(){return{}};const Qx=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ew(e){return e>=0&&e<=255}function tw(e,t){const{r:n,g:r,b:o,a:i}=new F_(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new F_(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-s*(1-e))/e),c=Math.round((o-l*(1-e))/e);if(ew(t)&&ew(i)&&ew(c))return new F_({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new F_({r:n,g:r,b:o,a:1}).toRgbString()}var nw=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function rw(e){const{override:t}=e,n=nw(e,["override"]),r=Object.assign({},t);Object.keys(L_).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:tw(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:tw(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:tw(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:tw(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new F_("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new F_("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new F_("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ow=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const iw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},aw={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},sw={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},lw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ow(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=rw(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=ow(n,["theme"]);let i=o;r&&(i=lw(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function cw(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=o.useContext(vx),a=`5.24.0-${t||""}`,s=n||mx,[l,c,u]=Uy(s,[L_,e],{salt:a,override:r,getComputedToken:lw,formatToken:rw,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:iw,ignore:aw,preserve:sw}});return[s,u,t?c:"",l,i]}const uw={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},dw=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},hw=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),pw=(e,t)=>({outline:`${My(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),fw=(e,t)=>({"&:focus-visible":Object.assign({},pw(e,t))}),mw=e=>({[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:gw,genComponentStyleHook:vw,genSubStyleComponent:yw}=function(e){var t=e.useCSP,n=void 0===t?Jx:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,s=e.getCommonStyle,l=e.getCompUnitless;function c(t,l,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],h=Vv(d,1)[0],p=d.join("-"),f=e.layer||{name:"antd"};return function(e){var t,d,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=r(),v=g.theme,y=g.realToken,b=g.hashId,_=g.token,x=g.cssVar,w=i(),S=w.rootPrefixCls,k=w.iconPrefixCls,C=n(),E=x?"css":"js",M=(t=function(){var e=new Set;return x&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Oy(t,x.prefix)),e.add(Oy(t,Rx(h,x.prefix)))})),function(e,t){var n="css"===e?Ix:zx;return function(e){return new n(e,t)}}(E,e)},d=[E,h,null==x?void 0:x.prefix],o.useMemo((function(){var e=Kx.get(d);if(e)return e;var n=t();return Kx.set(d,n),n}),d)),P=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return My(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return My(e)})).join(","),")")}}}(E),O=P.max,T=P.min,N={theme:v,token:_,hashId:b,nonce:function(){return C.nonce},clientOnly:u.clientOnly,layer:f,order:u.order||-999};"function"==typeof a&&Gb(Og(Og({},N),{},{clientOnly:!1,path:["Shared",S]}),(function(){return a(_,{prefix:{rootPrefixCls:S,iconPrefixCls:k},csp:C})}));var D=Gb(Og(Og({},N),{},{path:[p,e,k]}),(function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,r=Ux;return Vx&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return Yx&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;qx[e]={global:Array.from(t),component:Og(Og({},null===(r=qx[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(_),n=t.token,r=t.flush,o=Zx(h,y,c),i=".".concat(e),a=Wx(h,y,o,{deprecatedTokens:u.deprecatedTokens});x&&o&&"object"===Cg(o)&&Object.keys(o).forEach((function(e){o[e]="var(".concat(Oy(e,Rx(h,x.prefix)),")")}));var d=Xx(n,{componentCls:i,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(S),calc:M,max:O,min:T},x?o:a),p=l(d,{hashId:b,prefixCls:e,rootPrefixCls:S,iconPrefixCls:k});r(h,a);var f="function"==typeof s?s(d,e,m,u.resetFont):null;return[!1===u.resetStyle?null:f,p]}));return[D,b]}}return{genStyleHooks:function(e,t,n,i){var a=Array.isArray(e)?e[0]:e;function s(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=Og(Og({},"function"==typeof l?l(e):{}),{},Mg({},s("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[s(e)]=u[e]}));var h=Og(Og({},i),{},{unitless:d,prefixToken:s}),f=c(e,t,n,h),m=function(e,t,n){var i=n.unitless,a=n.injectStyle,s=void 0===a||a,l=n.prefixToken,c=n.ignore,u=function(o){var a=o.rootCls,s=o.cssVar,u=void 0===s?{}:s,d=r().realToken;return function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,s=e.scope,l=void 0===s?"":s,c=p(my),u=c.cache.instanceId,d=c.container,h=a._tokenKey,f=[].concat(Yv(e.path),[n,l,h]),m=Hy(Jb,f,(function(){var e=t(),a=Vv(Ny(e,n,{prefix:r,unitless:o,ignore:i,scope:l}),2),s=a[0],c=a[1];return[s,c,qb(f,c),n]}),(function(e){var t=Vv(e,3)[2];Ey&&ay(t,{mark:py})}),(function(e){var t=Vv(e,3),r=t[1],o=t[2];if(r){var i=sy(r,o,{mark:py,prepend:"queue",attachTo:d,priority:-999});i[fy]=u,i.setAttribute(hy,n)}}))}({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:c,token:d,scope:a},(function(){var r=Zx(e,d,t),o=Wx(e,d,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[l(e)]=o[e],delete o[e]})),o})),null},d=function(t){var n=r().cssVar;return[function(r){return s&&n?o.createElement(o.Fragment,null,o.createElement(u,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return d}(a,n,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Vv(f(e,t),2)[1],r=Vv(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=c(e,t,n,Og({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:c}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=p(xx);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=cw();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=p(xx);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;return[{"&":hw(e)},mw(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:bx)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},getCompUnitless:()=>iw});var bw=(e,t)=>{const[n,r]=cw();return Gb({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[mw(e)]))};const _w=Object.assign({},r),{useId:xw}=_w;var ww=void 0===xw?()=>"":xw;var Sw=["children"],kw=r.createContext({});function Cw(e){var t=e.children,n=ly(e,Sw);return r.createElement(kw.Provider,{value:n},t)}var Ew=function(){kv(t,r.Component);var e=Pv(t);function t(){return _v(this,t),e.apply(this,arguments)}return wv(t,[{key:"render",value:function(){return this.props.children}}]),t}();var Mw="none",Pw="appear",Ow="enter",Tw="leave",Nw="none",Dw="prepare",Aw="start",Lw="active",Iw="end",zw="prepared";function Rw(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 $w=function(e,t){var n={animationend:Rw("Animation","AnimationEnd"),transitionend:Rw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Kv(),"undefined"!=typeof window?window:{}),Fw={};if(Kv()){var jw=document.createElement("div");Fw=jw.style}var Bw={};function Hw(e){if(Bw[e])return Bw[e];var t=$w[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Fw)return Bw[e]=t[i],Bw[e]}return""}var Ww=Hw("animationend"),Vw=Hw("transitionend"),Yw=!(!Ww||!Vw),Xw=Ww||"animationend",qw=Vw||"transitionend";function Uw(e,t){if(!e)return null;if("object"===Cg(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Zw=Kv()?d:l,Gw=[Dw,Aw,Lw,Iw],Kw=[Dw,zw],Jw=!1;function Qw(e){return e===Lw||e===Iw}var eS=function(e,t,n){var o=Vv(jx(Nw),2),i=o[0],a=o[1],s=function(){var e=r.useRef(null);function t(){Bv.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Bv((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),l=Vv(s,2),c=l[0],u=l[1];var d=t?Kw:Gw;return Zw((function(){if(i!==Nw&&i!==Iw){var e=d.indexOf(i),t=d[e+1],r=n(i);r===Jw?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(Dw,!0)},i]};function tS(e,t,n,o){var i,a,c,u,d=o.motionEnter,h=void 0===d||d,p=o.motionAppear,f=void 0===p||p,m=o.motionLeave,g=void 0===m||m,v=o.motionDeadline,y=o.motionLeaveImmediately,b=o.onAppearPrepare,_=o.onEnterPrepare,x=o.onLeavePrepare,w=o.onAppearStart,S=o.onEnterStart,k=o.onLeaveStart,C=o.onAppearActive,E=o.onEnterActive,M=o.onLeaveActive,P=o.onAppearEnd,O=o.onEnterEnd,T=o.onLeaveEnd,N=o.onVisibleChanged,D=Vv(jx(),2),A=D[0],L=D[1],I=(i=Mw,a=r.useReducer((function(e){return e+1}),0),c=Fx(a,2)[1],u=r.useRef(i),[$x((function(){return u.current})),$x((function(e){u.current="function"==typeof e?e(u.current):e,c()}))]),z=Vv(I,2),R=z[0],$=z[1],F=Vv(jx(null),2),j=F[0],B=F[1],H=R(),W=s(!1),V=s(null);function Y(){return n()}var X=s(!1);function q(){$(Mw),B(null,!0)}var U=$x((function(e){var t=R();if(t!==Mw){var n=Y();if(!e||e.deadline||e.target===n){var r,o=X.current;t===Pw&&o?r=null==P?void 0:P(n,e):t===Ow&&o?r=null==O?void 0:O(n,e):t===Tw&&o&&(r=null==T?void 0:T(n,e)),o&&!1!==r&&q()}}})),Z=function(e){var t=s();function n(t){t&&(t.removeEventListener(qw,e),t.removeEventListener(Xw,e))}return r.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(qw,e),r.addEventListener(Xw,e),t.current=r)},n]}(U),G=Vv(Z,1)[0],K=function(e){switch(e){case Pw:return Mg(Mg(Mg({},Dw,b),Aw,w),Lw,C);case Ow:return Mg(Mg(Mg({},Dw,_),Aw,S),Lw,E);case Tw:return Mg(Mg(Mg({},Dw,x),Aw,k),Lw,M);default:return{}}},J=r.useMemo((function(){return K(H)}),[H]),Q=Vv(eS(H,!e,(function(e){if(e===Dw){var t=J[Dw];return t?t(Y()):Jw}var n;te in J&&B((null===(n=J[te])||void 0===n?void 0:n.call(J,Y(),null))||null);return te===Lw&&H!==Mw&&(G(Y()),v>0&&(clearTimeout(V.current),V.current=setTimeout((function(){U({deadline:!0})}),v))),te===zw&&q(),true})),2),ee=Q[0],te=Q[1],ne=Qw(te);X.current=ne;var re=s(null);Zw((function(){if(!W.current||re.current!==t){L(t);var n,r=W.current;W.current=!0,!r&&t&&f&&(n=Pw),r&&t&&h&&(n=Ow),(r&&!t&&g||!r&&y&&!t&&g)&&(n=Tw);var o=K(n);n&&(e||o[Dw])?($(n),ee()):$(Mw),re.current=t}}),[t]),l((function(){(H===Pw&&!f||H===Ow&&!h||H===Tw&&!g)&&$(Mw)}),[f,h,g]),l((function(){return function(){W.current=!1,clearTimeout(V.current)}}),[]);var oe=r.useRef(!1);l((function(){A&&(oe.current=!0),void 0!==A&&H===Mw&&((oe.current||A)&&(null==N||N(A)),oe.current=!0)}),[A,H]);var ie=j;return J[Dw]&&te===Aw&&(ie=Og({transition:"none"},ie)),[H,te,ie,null!=A?A:t]}var nS=function(e){var t=e;"object"===Cg(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,c=e.forceRender,u=e.children,d=e.motionName,h=e.leavedClassName,p=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(kw).motion),m=s(),g=s();var v=Vv(tS(f,i,(function(){try{return m.current instanceof HTMLElement?m.current:Ng(g.current)}catch(e){return null}}),e),4),y=v[0],b=v[1],_=v[2],x=v[3],w=r.useRef(x);x&&(w.current=!0);var S,k=r.useCallback((function(e){m.current=e,Bg(n,e)}),[n]),C=Og(Og({},p),{},{visible:i});if(u)if(y===Mw)S=x?u(Og({},C),k):!l&&w.current&&h?u(Og(Og({},C),{},{className:h}),k):c||!l&&!h?u(Og(Og({},C),{},{style:{display:"none"}}),k):null;else{var E;b===Dw?E="prepare":Qw(b)?E="active":b===Aw&&(E="start");var M=Uw(d,"".concat(y,"-").concat(E));S=u(Og(Og({},C),{},{className:ug(Uw(d,y),Mg(Mg({},M,M&&E),d,"string"==typeof d)),style:_}),k)}else S=null;r.isValidElement(S)&&Vg(S)&&(Xg(S)||(S=r.cloneElement(S,{ref:k})));return r.createElement(Ew,{ref:g},S)}));return n.displayName="CSSMotion",n}(Yw),rS="add",oS="keep",iS="remove",aS="removed";function sS(e){var t;return Og(Og({},t=e&&"object"===Cg(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function lS(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(sS)}var cS=["component","children","onVisibleChanged","onAllRemoved"],uS=["status"],dS=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function hS(e){const{children:t}=e,[,n]=cw(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(Cw,{motion:o},t):t}!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nS,n=function(){kv(n,r.Component);var e=Pv(n);function n(){var t;_v(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Mg(Mv(t=e.call.apply(e,[this].concat(o))),"state",{keyEntities:[]}),Mg(Mv(t),"removeKey",(function(e){t.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:Og(Og({},t),{},{status:aS})}))}}),(function(){0===t.state.keyEntities.filter((function(e){return e.status!==aS})).length&&t.props.onAllRemoved&&t.props.onAllRemoved()}))})),t}return wv(n,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,s=o.onVisibleChanged;o.onAllRemoved;var l=ly(o,cS),c=i||r.Fragment,u={};return dS.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,r.createElement(c,l,n.map((function(n,o){var i=n.status,l=ly(n,uS),c=i===rS||i===oS;return r.createElement(t,dg({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(t){null==s||s(t,{key:l.key}),t||e.removeKey(l.key)}}),(function(e,t){return a(Og(Og({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=lS(n),i=function(){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,i=lS(e),a=lS(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Og(Og({},e),{},{status:rS})}))),r=i),n.push(Og(Og({},s),{},{status:oS})),r+=1,t=!0;break}}t||n.push(Og(Og({},e),{},{status:iS}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Og(Og({},e),{},{status:rS})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==iS}))).forEach((function(t){t.key===e&&(t.status=oS)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==aS||e.status!==iS}))}}}]),n}();Mg(n,"defaultProps",{component:"div"})}(Yw);const pS=r.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return y_("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(pS.displayName="PropWarning");var fS="production"!==process.env.NODE_ENV?pS:()=>null,mS=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let gS=!1;process.env.NODE_ENV;const vS=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let yS;const bS=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:i,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,splitter:h,virtual:p,dropdownMatchSelectWidth:f,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:_,componentDisabled:x,segmented:w,statistic:S,spin:k,calendar:C,carousel:E,cascader:M,collapse:P,typography:O,checkbox:T,descriptions:N,divider:D,drawer:A,skeleton:L,steps:I,image:z,layout:R,list:$,mentions:F,modal:j,progress:B,result:H,slider:W,breadcrumb:V,menu:Y,pagination:X,input:q,textArea:U,empty:Z,badge:G,radio:K,rate:J,switch:Q,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:he,datePicker:pe,rangePicker:fe,flex:me,wave:ge,dropdown:ve,warning:ye,tour:be,tooltip:_e,popover:xe,popconfirm:we,floatButtonGroup:Se,variant:ke,inputNumber:Ce,treeSelect:Ee}=e,Me=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||y.getPrefixCls("");return t?`${o}-${t}`:o}),[y.getPrefixCls,e.prefixCls]),Pe=b||y.iconPrefixCls||bx,Oe=n||y.csp;bw(Pe,Oe);const Te=function(e,t,n){var r,o;const i=y_("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},gx),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:gx.hashed,cssVar:null==t?void 0:t.cssVar}),l=ww();if("production"!==process.env.NODE_ENV){const e=a.cssVar||s.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||l);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Fg((()=>{var r,o;if(!e)return t;const i=Object.assign({},s.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const c=`css-var-${l.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof s.cssVar?s.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:i,cssVar:u})}),[a,s],((e,t)=>e.some(((e,n)=>!cy(e,t[n],!0)))))}(_,y.theme,{prefixCls:Me("")});"production"!==process.env.NODE_ENV&&(gS=gS||!!Te);const Ne={csp:Oe,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:l||v,direction:u,space:d,splitter:h,virtual:p,popupMatchSelectWidth:null!=m?m:f,popupOverflow:g,getPrefixCls:Me,iconPrefixCls:Pe,theme:Te,segmented:w,statistic:S,spin:k,calendar:C,carousel:E,cascader:M,collapse:P,typography:O,checkbox:T,descriptions:N,divider:D,drawer:A,skeleton:L,steps:I,image:z,input:q,textArea:U,layout:R,list:$,mentions:F,modal:j,progress:B,result:H,slider:W,breadcrumb:V,menu:Y,pagination:X,empty:Z,badge:G,radio:K,rate:J,switch:Q,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:he,datePicker:pe,rangePicker:fe,flex:me,wave:ge,dropdown:ve,warning:ye,tour:be,tooltip:_e,popover:xe,popconfirm:we,floatButtonGroup:Se,variant:ke,inputNumber:Ce,treeSelect:Ee};if("production"!==process.env.NODE_ENV){y_("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const De=Object.assign({},y);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(De[e]=Ne[e])})),vS.forEach((t=>{const n=e[t];n&&(De[t]=n)})),void 0!==o&&(De.button=Object.assign({autoInsertSpace:o},De.button));const Ae=Fg((()=>De),De,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),{layer:Le}=r.useContext(my),Ie=r.useMemo((()=>({prefixCls:Pe,csp:Oe,layer:Le?"antd":void 0})),[Pe,Oe,Le]);let ze=r.createElement(r.Fragment,null,r.createElement(fS,{dropdownMatchSelectWidth:f}),t);const Re=r.useMemo((()=>{var e,t,n,r;return p_((null===(e=C_.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ae.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ae.form)||void 0===r?void 0:r.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Ae,null==s?void 0:s.validateMessages]);Object.keys(Re).length>0&&(ze=r.createElement(__.Provider,{value:Re},ze)),l&&(ze=r.createElement(D_,{locale:l,_ANT_MARK__:T_},ze)),(Pe||Oe)&&(ze=r.createElement(t_.Provider,{value:Ie},ze)),c&&(ze=r.createElement(Ox,{size:c},ze)),ze=r.createElement(hS,null,ze);const $e=r.useMemo((()=>{const e=Te||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=mS(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?_y(t):mx,s={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=_y(r.algorithm)),delete r.algorithm),s[t]=r}));const l=Object.assign(Object.assign({},L_),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:o})}),[Te]);return _&&(ze=r.createElement(vx.Provider,{value:$e},ze)),Ae.warning&&(ze=r.createElement(v_.Provider,{value:Ae.warning},ze)),void 0!==x&&(ze=r.createElement(Ex,{disabled:x},ze)),r.createElement(xx.Provider,{value:Ae},ze)},_S=e=>{const t=r.useContext(xx),n=r.useContext(P_);return r.createElement(bS,Object.assign({parentContext:t,legacyLocale:n},e))};function xS(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function wS(e){return function(e){return xS(e)instanceof ShadowRoot}(e)?xS(e):null}function SS(e){return"object"===Cg(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Cg(e.icon)||"function"==typeof e.icon)}function kS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function CS(e,t,n){return n?o.createElement(e.tag,Og(Og({key:t},kS(e.attrs)),n),(e.children||[]).map((function(n,r){return CS(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):o.createElement(e.tag,Og({key:t},kS(e.attrs)),(e.children||[]).map((function(n,r){return CS(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function ES(e){return V_(e)[0]}function MS(e){return e?Array.isArray(e)?e:[e]:[]}_S.ConfigContext=xx,_S.SizeContext=Tx,_S.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(yS=t),r&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&b_(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),kx(yS||yx,r))},_S.useConfig=function(){return{componentDisabled:p(Mx),componentSize:p(Tx)}},Object.defineProperty(_S,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&b_(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Tx)}),"production"!==process.env.NODE_ENV&&(_S.displayName="ConfigProvider");var PS=["icon","className","onClick","style","primaryColor","secondaryColor"],OS={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var TS=function(e){var t,n,o,i,a,s,c=e.icon,u=e.className,d=e.onClick,h=e.style,f=e.primaryColor,m=e.secondaryColor,g=ly(e,PS),v=r.useRef(),y=OS;if(f&&(y={primaryColor:f,secondaryColor:m||ES(f)}),t=v,n=p(t_),o=n.csp,i=n.prefixCls,a=n.layer,s="\n.anticon {\n display: inline-flex;\n align-items: center;\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",i&&(s=s.replace(/anticon/g,i)),a&&(s="@layer ".concat(a," {\n").concat(s,"\n}")),l((function(){var e=wS(t.current);sy(s,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})}),[]),function(e,t){kg(e,"[@ant-design/icons] ".concat(t))}(SS(c),"icon should be icon definiton, but got ".concat(c)),!SS(c))return null;var b=c;return b&&"function"==typeof b.icon&&(b=Og(Og({},b),{},{icon:b.icon(y.primaryColor,y.secondaryColor)})),CS(b.icon,"svg-".concat(b.name),Og(Og({className:u,onClick:d,style:h,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:v}))};TS.displayName="IconReact",TS.getTwoToneColors=function(){return Og({},OS)},TS.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;OS.primaryColor=t,OS.secondaryColor=n||ES(t),OS.calculated=!!n};var NS=TS;function DS(e){var t=Vv(MS(e),2),n=t[0],r=t[1];return NS.setTwoToneColors({primaryColor:n,secondaryColor:r})}var AS=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];DS(ex.primary);var LS=r.forwardRef((function(e,t){var n=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=ly(e,AS),d=r.useContext(t_),h=d.prefixCls,p=void 0===h?"anticon":h,f=d.rootClassName,m=ug(f,p,Mg(Mg({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),n),g=s;void 0===g&&l&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=Vv(MS(c),2),b=y[0],_=y[1];return r.createElement("span",dg({role:"img","aria-label":o.name},u,{ref:t,tabIndex:g,onClick:l,className:m}),r.createElement(NS,{icon:o,primaryColor:b,secondaryColor:_,style:v}))}));LS.displayName="AntdIcon",LS.getTwoToneColor=function(){var e=NS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},LS.setTwoToneColor=DS;var IS=LS,zS={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},RS=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:zS}))},$S=r.forwardRef(RS);"production"!==process.env.NODE_ENV&&($S.displayName="CloseCircleFilled");var FS=$S,jS={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},BS=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:jS}))},HS=r.forwardRef(BS);"production"!==process.env.NODE_ENV&&(HS.displayName="CloseOutlined");var WS=HS,VS="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function YS(e,t){return 0===e.indexOf(t)}function XS(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Gv({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||YS(n,"aria-"))||t.data&&YS(n,"data-")||t.attr&&VS.includes(n))&&(r[n]=e[n])})),r}const qS=(e,t,n)=>o.isValidElement(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function US(e,t){return qS(e,e,t)}function ZS(e){return ZS="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},ZS(e)}function GS(e){var t=function(e,t){if("object"!=ZS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZS(t)?t:t+""}function KS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GS(r.key),r)}}var JS=e=>{const[,,,,t]=cw();return t?`${e}-css-var`:""},QS={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"},ek=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:QS}))},tk=r.forwardRef(ek);"production"!==process.env.NODE_ENV&&(tk.displayName="LoadingOutlined");var nk=tk;const rk=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(rk.displayName="zIndexContext");var ok=rk;const ik=100,ak={Modal:ik,Drawer:ik,Popover:ik,Popconfirm:ik,Tooltip:ik,Tour:ik,FloatButton:ik},sk={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const lk=(e,t)=>{const[,n]=cw(),r=o.useContext(ok),i=function(e){return e in ak}(e);let a;if(void 0!==t)a=[t,t];else{let o=null!=r?r:0;o+=i?(r?0:n.zIndexPopupBase)+ak[e]:sk[e],a=[void 0===r?t:o,o]}if("production"!==process.env.NODE_ENV){const r=y_(e),o=n.zIndexPopupBase+1100,i=a[0]||0;"production"!==process.env.NODE_ENV&&r(void 0!==t||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function ck(){ck=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new T(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var _={};c(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==n&&r.call(w,a)&&(_=w);var S=b.prototype=v.prototype=Object.create(_);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==hg(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function M(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(hg(t)+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function uk(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function dk(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){uk(i,r,o,a,s,"next",e)}function s(e){uk(i,r,o,a,s,"throw",e)}a(void 0)}))}}var hk,pk=Gv({},E),fk=pk.version,mk=pk.render,gk=pk.unmountComponentAtNode;try{Number((fk||"").split(".")[0])>=18&&(hk=pk.createRoot)}catch(e){}function vk(e){var t=pk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===hg(t)&&(t.usingClientEntryPoint=e)}var yk="__rc_react_root__";function bk(e,t){hk?function(e,t){vk(!0);var n=t[yk]||hk(t);vk(!1),n.render(e),t[yk]=n}(e,t):function(e,t){null==mk||mk(e,t)}(e,t)}function _k(e){return xk.apply(this,arguments)}function xk(){return(xk=dk(ck().mark((function e(t){return ck().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[yk])||void 0===e||e.unmount(),delete t[yk]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wk(e){gk(e)}function Sk(){return(Sk=dk(ck().mark((function e(t){return ck().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===hk){e.next=2;break}return e.abrupt("return",_k(t));case 2:wk(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let kk=(e,t)=>{if("production"!==process.env.NODE_ENV){const e=parseInt(r.version.split(".")[0],10),t=Object.keys(E);"production"!==process.env.NODE_ENV&&b_(e<19||t.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return bk(e,t),()=>function(e){return Sk.apply(this,arguments)}(t)};function Ck(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var Ek=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};const Mk=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var Pk=vw("Wave",(e=>[Mk(e)]));const Ok=`${yx}-wave-target`;function Tk(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Nk(e){return Number.isNaN(e)?0:e}const Dk=e=>{const{className:t,target:n,component:o,registerUnmount:i}=e,a=r.useRef(null),s=r.useRef(null);r.useEffect((()=>{s.current=i()}),[]);const[l,c]=r.useState(null),[u,d]=r.useState([]),[h,p]=r.useState(0),[f,m]=r.useState(0),[g,v]=r.useState(0),[y,b]=r.useState(0),[_,x]=r.useState(!1),w={left:h,top:f,width:g,height:y,borderRadius:u.map((e=>`${e}px`)).join(" ")};function S(){const e=getComputedStyle(n);c(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Tk(t)?t:Tk(n)?n:Tk(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:Nk(-parseFloat(r))),m(t?n.offsetTop:Nk(-parseFloat(o))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;d([i,a,l,s].map((e=>Nk(parseFloat(e)))))}if(l&&(w["--wave-color"]=l),r.useEffect((()=>{if(n){const e=Bv((()=>{S(),x(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(S),t.observe(n)),()=>{Bv.cancel(e),null==t||t.disconnect()}}}),[]),!_)return null;const k=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(Ok));return r.createElement(nS,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;null===(r=s.current)||void 0===r||r.call(s).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:o}=e;return r.createElement("div",{ref:Hg(a,n),className:ug(t,o,{"wave-quick":k}),style:w})}))};var Ak=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild);let a=null;a=kk(r.createElement(Dk,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),i)};var Lk=(e,t,n)=>{const{wave:o}=r.useContext(xx),[,i,a]=cw(),s=$x((r=>{const s=e.current;if((null==o?void 0:o.disabled)||!s)return;const l=s.querySelector(`.${Ok}`)||s,{showEffect:c}=o||{};(c||Ak)(l,{className:t,token:i,component:n,event:r,hashId:a})})),l=r.useRef(null);return e=>{Bv.cancel(l.current),l.current=Bv((()=>{s(e)}))}};const Ik=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=p(xx),a=s(null),l=i("wave"),[,c]=Pk(l),u=Lk(a,ug(l,c),r);if(o.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Ek(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!o.isValidElement(t))return null!=t?t:null;return US(t,{ref:Vg(t)?Hg(Xg(t),a):a})};"production"!==process.env.NODE_ENV&&(Ik.displayName="Wave");var zk=Ik;var Rk=e=>{const t=o.useContext(Tx);return o.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])};const $k=r.createContext(null),Fk=(e,t)=>{const n=r.useContext($k),o=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return ug(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},jk=e=>{const{children:t}=e;return r.createElement($k.Provider,{value:null},t)};var Bk=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hk=r.createContext(void 0);var Wk=e=>{const{getPrefixCls:t,direction:n}=r.useContext(xx),{prefixCls:o,size:i,className:a}=e,s=Bk(e,["prefixCls","size","className"]),l=t("btn-group",o),[,,c]=cw(),u=r.useMemo((()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}}),[i]);if("production"!==process.env.NODE_ENV){const e=y_("Button.Group");e.deprecated(!1,"Button.Group","Space.Compact"),"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=ug(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},a,c);return r.createElement(Hk.Provider,{value:i},r.createElement("div",Object.assign({},s,{className:d})))};const Vk=/^[\u4E00-\u9FA5]{2}$/,Yk=Vk.test.bind(Vk);function Xk(e){return"string"==typeof e}function qk(e){return"text"===e||"link"===e}function Uk(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Xk(e.type)&&Yk(e.props.children)?US(e,{children:e.props.children.split("").join(n)}):Xk(e)?Yk(e)?o.createElement("span",null,e.split("").join(n)):o.createElement("span",null,e):function(e){return e&&o.isValidElement(e)&&e.type===o.Fragment}(e)?o.createElement("span",null,e):e}["default","primary","danger"].concat(Iv(Qx));const Zk=h(((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,s=ug(`${a}-icon`,n);return o.createElement("span",{ref:t,className:s,style:r},i)}));var Gk=Zk;const Kk=h(((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,s=ug(`${n}-loading-icon`,r);return o.createElement(Gk,{prefixCls:n,className:s,style:i,ref:t},o.createElement(nk,{className:a}))})),Jk=()=>({width:0,opacity:0,transform:"scale(0)"}),Qk=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var eC=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:s}=e,l=!!n;return r?o.createElement(Kk,{prefixCls:t,className:i,style:a}):o.createElement(nS,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:Jk,onAppearActive:Qk,onEnterStart:Jk,onEnterActive:Qk,onLeaveStart:Qk,onLeaveActive:Jk},((e,n)=>{let{className:r,style:s}=e;const l=Object.assign(Object.assign({},a),s);return o.createElement(Kk,{prefixCls:t,className:ug(i,r),style:l,ref:n})}))};const tC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var nC=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},tC(`${t}-primary`,o),tC(`${t}-danger`,i)]}},rC=["b"],oC=["v"],iC=function(e){return Math.round(Number(e||0))},aC=function(){kv(t,F_);var e=Pv(t);function t(n){return _v(this,t),e.call(this,function(e){if(e instanceof F_)return e;if(e&&"object"===Cg(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return Og(Og({},ly(t,rC)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(n))}return wv(t,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=iC(100*e.s),n=iC(100*e.b),r=iC(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return Og(Og({},ly(e,oC)),{},{b:t,a:this.a})}}]),t}(),sC=function(e){return e instanceof aC?e:new aC(e)},lC=sC("#1677ff"),cC=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),s=a.width,l=a.height,c=n.current.getBoundingClientRect(),u=c.width/2,d=c.height/2,h=(t.x+u)/s,p=1-(t.y+d)/l,f=o.toHsb(),m=h,g=(t.x+u)/s*360;if(i)switch(i){case"hue":return sC(Og(Og({},f),{},{h:g<=0?0:g}));case"alpha":return sC(Og(Og({},f),{},{a:m<=0?0:m}))}return sC({h:f.h,s:h<=0?0:h,b:p>=1?1:p,a:f.a})},uC=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},dC=function(e){var t=e.color,n=e.prefixCls,r=e.className,i=e.style,a=e.onClick,s="".concat(n,"-color-block");return o.createElement("div",{className:ug(s,r),style:i,onClick:a},o.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};function hC(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,c=e.color,d=e.disabledDrag,h=Vv(u({x:0,y:0}),2),p=h[0],f=h[1],m=s(null),g=s(null);l((function(){f(a())}),[c]),l((function(){return function(){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null}}),[]);var v=function(e){var i=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=i.pageX,s=i.pageY,l=n.current.getBoundingClientRect(),c=l.x,u=l.y,d=l.width,h=l.height,f=t.current.getBoundingClientRect(),m=f.width,g=f.height,v=m/2,y=g/2,b=Math.max(0,Math.min(a-c,d))-v,_=Math.max(0,Math.min(s-u,h))-y,x={x:b,y:"x"===r?p.y:_};if(0===m&&0===g||m!==g)return!1;null==o||o(x)},y=function(e){e.preventDefault(),v(e)},b=function(e){e.preventDefault(),document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null,null==i||i()};return[p,function(e){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),d||(v(e),document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),document.addEventListener("touchmove",y),document.addEventListener("touchend",b),m.current=y,g.current=b)}]}var pC=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,i=e.prefixCls;return o.createElement("div",{className:ug("".concat(i,"-handler"),Mg({},"".concat(i,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})},fC=function(e){var t=e.children,n=e.style,r=e.prefixCls;return o.createElement("div",{className:"".concat(r,"-palette"),style:Og({position:"relative"},n)},t)},mC=h((function(e,t){var n=e.children,r=e.x,i=e.y;return o.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)})),gC=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,i=e.onChangeComplete,a=e.disabled,l=s(),c=s(),u=s(t),d=$x((function(e){var r=cC({offset:e,targetRef:c,containerRef:l,color:t});u.current=r,n(r)})),h=Vv(hC({color:t,containerRef:l,targetRef:c,calculate:function(){return uC(t)},onDragChange:d,onDragChangeComplete:function(){return null==i?void 0:i(u.current)},disabledDrag:a}),2),p=h[0],f=h[1];return o.createElement("div",{ref:l,className:"".concat(r,"-select"),onMouseDown:f,onTouchStart:f},o.createElement(fC,{prefixCls:r},o.createElement(mC,{x:p.x,y:p.y,ref:c},o.createElement(pC,{color:t.toRgbString(),prefixCls:r})),o.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},vC=function(e){var t=e.colors,n=e.children,r=e.direction,a=void 0===r?"to right":r,s=e.type,l=e.prefixCls,c=i((function(){return t.map((function(e,n){var r=sC(e);return"alpha"===s&&n===t.length-1&&(r=new aC(r.setA(1))),r.toRgbString()})).join(",")}),[t,s]);return o.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(c,")")}},n)},yC=function(e){var t=e.prefixCls,n=e.colors,r=e.disabled,i=e.onChange,a=e.onChangeComplete,l=e.color,c=e.type,u=s(),d=s(),h=s(l),p=function(e){return"hue"===c?e.getHue():100*e.a},f=$x((function(e){var t=cC({offset:e,targetRef:d,containerRef:u,color:l,type:c});h.current=t,i(p(t))})),m=Vv(hC({color:l,targetRef:d,containerRef:u,calculate:function(){return uC(l,c)},onDragChange:f,onDragChangeComplete:function(){a(p(h.current))},direction:"x",disabledDrag:r}),2),g=m[0],v=m[1],y=o.useMemo((function(){if("hue"===c){var e=l.toHsb();return e.s=1,e.b=1,e.a=1,new aC(e)}return l}),[l,c]),b=o.useMemo((function(){return n.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[n]);return o.createElement("div",{ref:u,className:ug("".concat(t,"-slider"),"".concat(t,"-slider-").concat(c)),onMouseDown:v,onTouchStart:v},o.createElement(fC,{prefixCls:t},o.createElement(mC,{x:g.x,y:g.y,ref:d},o.createElement(pC,{size:"small",color:y.toHexString(),prefixCls:t})),o.createElement(vC,{colors:b,type:c,prefixCls:t})))};function bC(e){return r.useMemo((function(){return[(e||{}).slider||yC]}),[e])}var _C=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],xC=h((function(e,t){var n=e.value,r=e.defaultValue,a=e.prefixCls,s=void 0===a?"rc-color-picker":a,l=e.onChange,c=e.onChangeComplete,u=e.className,d=e.style,h=e.panelRender,p=e.disabledAlpha,f=void 0!==p&&p,m=e.disabled,g=void 0!==m&&m,v=Vv(bC(e.components),1)[0],y=function(e,t){var n=Vv(Hx(e,{value:t}),2),r=n[0],o=n[1];return[i((function(){return sC(r)}),[r]),o]}(r||lC,n),b=Vv(y,2),_=b[0],x=b[1],w=i((function(){return _.setA(1).toRgbString()}),[_]),S=function(e,t){n||x(e),null==l||l(e,t)},k=function(e){return new aC(_.setHue(e))},C=function(e){return new aC(_.setA(e/100))},E=ug("".concat(s,"-panel"),u,Mg({},"".concat(s,"-panel-disabled"),g)),M={prefixCls:s,disabled:g,color:_},P=o.createElement(o.Fragment,null,o.createElement(gC,dg({onChange:S},M,{onChangeComplete:c})),o.createElement("div",{className:"".concat(s,"-slider-container")},o.createElement("div",{className:ug("".concat(s,"-slider-group"),Mg({},"".concat(s,"-slider-group-disabled-alpha"),f))},o.createElement(v,dg({},M,{type:"hue",colors:_C,min:0,max:359,value:_.getHue(),onChange:function(e){S(k(e),{type:"hue",value:e})},onChangeComplete:function(e){c&&c(k(e))}})),!f&&o.createElement(v,dg({},M,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:100*_.a,onChange:function(e){S(C(e),{type:"alpha",value:e})},onChangeComplete:function(e){c&&c(C(e))}}))),o.createElement(dC,{color:_.toRgbString(),prefixCls:s})));return o.createElement("div",{className:E,style:d,ref:t},"function"==typeof h?h(P):P)}));"production"!==process.env.NODE_ENV&&(xC.displayName="ColorPicker");let wC=function(){return function(e,t,n){return t&&KS(e.prototype,t),n&&KS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new aC(this.colors[0].color.metaColor)):this.metaColor=new aC(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return((e,t)=>e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"")(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){const t=e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ");return`linear-gradient(90deg, ${t})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();const SC=e=>({animationDuration:e,animationFillMode:"both"}),kC=e=>({animationDuration:e,animationFillMode:"both"}),CC=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},SC(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},kC(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},EC=new Qb("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),MC=new Qb("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),PC=new Qb("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),OC=new Qb("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),TC=new Qb("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NC=new Qb("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),DC={"move-up":{inKeyframes:new Qb("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Qb("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:EC,outKeyframes:MC},"move-left":{inKeyframes:PC,outKeyframes:OC},"move-right":{inKeyframes:TC,outKeyframes:NC}},AC=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=DC[t];return[CC(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},LC=new Qb("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),IC=new Qb("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),zC=new Qb("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),RC=new Qb("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$C=new Qb("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),FC=new Qb("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),jC=new Qb("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),BC=new Qb("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),HC={"slide-up":{inKeyframes:LC,outKeyframes:IC},"slide-down":{inKeyframes:zC,outKeyframes:RC},"slide-left":{inKeyframes:$C,outKeyframes:FC},"slide-right":{inKeyframes:jC,outKeyframes:BC}},WC=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=HC[t];return[CC(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},VC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Xx(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},YC=e=>{var t,n,r,o,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:lx(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:lx(l),h=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:lx(c),p=((e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new aC(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new wC(e.colorBgSolid),"#fff")?"#000":"#fff",f=Qx.reduce(((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${My(e.controlOutlineWidth)} 0 ${tw(e[`${n}1`],e.colorBgContainer)}`})),{});return Object.assign(Object.assign({},f),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)})},XC=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${My(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":fw(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${i} ${a}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},qC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),UC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ZC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),GC=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),KC=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},qC(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),JC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},GC(e))}),QC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),eE=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?QC:JC;return Object.assign(Object.assign({},o(e)),qC(e.componentCls,t,n))},tE=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},eE(e,r,o))}),nE=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},eE(e,r,o))}),rE=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),oE=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},eE(e,n,r))}),iE=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},eE(e,r,o,n))}),aE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},tE(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),rE(e)),oE(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),iE(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),KC(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),sE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},nE(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),rE(e)),oE(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),iE(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),KC(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),lE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},tE(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),nE(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),rE(e)),oE(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),iE(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),iE(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),KC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),cE=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:aE(e),[`${t}-color-primary`]:sE(e),[`${t}-color-dangerous`]:lE(e)},(e=>{const{componentCls:t}=e;return Qx.reduce(((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},tE(e,e.colorTextLightSolid,o,{background:a},{background:c})),nE(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),rE(e)),oE(e,i,{background:s},{background:l})),iE(e,o,"link",{color:a},{color:c})),iE(e,o,"text",{color:a,background:i},{color:c,background:l}))})}),{})})(e))},uE=e=>Object.assign(Object.assign(Object.assign(Object.assign({},nE(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),iE(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),tE(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),iE(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),dE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${My(l)} ${My(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:UC(e)},{[`${n}${n}-round${t}`]:ZC(e)}]},hE=e=>{const t=Xx(e,{fontSize:e.contentFontSize});return dE(t,e.componentCls)},pE=e=>{const t=Xx(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return dE(t,`${e.componentCls}-sm`)},fE=e=>{const t=Xx(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return dE(t,`${e.componentCls}-lg`)},mE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var gE=gw("Button",(e=>{const t=VC(e);return[XC(t),hE(t),pE(t),fE(t),mE(t),cE(t),uE(t),nC(t)]}),YC,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function vE(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function yE(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function bE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},vE(e,r,t)),yE(n,r,t))}}function _E(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function xE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_E(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const wE=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))};var SE=yw(["Button","compact"],(e=>{const t=VC(e);return[bE(t),xE(t),wE(t)]}),YC),kE=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const CE={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},EE=o.forwardRef(((e,t)=>{var n,a;const{loading:c=!1,prefixCls:d,color:h,variant:f,type:m,danger:g=!1,shape:v="default",size:y,styles:_,disabled:x,className:w,rootClassName:S,children:k,icon:C,iconPosition:E="start",ghost:M=!1,block:P=!1,htmlType:O="button",classNames:T,style:N={},autoInsertSpace:D,autoFocus:A}=e,L=kE(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=m||"default",[z,R]=i((()=>{if(h&&f)return[h,f];const e=CE[I]||[];return g?["danger",e[1]]:e}),[m,h,f,g]),$="danger"===z?"dangerous":z,{getPrefixCls:F,direction:j,autoInsertSpace:B,className:H,style:W,classNames:V,styles:Y}=function(e){const t=r.useContext(xx),{getPrefixCls:n,direction:o,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:wx,styles:wx},a),{getPrefixCls:n,direction:o,getPopupContainer:i})}("button"),X=null===(n=null!=D?D:B)||void 0===n||n,q=F("btn",d),[U,Z,G]=gE(q),K=p(Mx),J=null!=x?x:K,Q=p(Hk),ee=i((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(c)),[c]),[te,ne]=u(ee.loading),[re,oe]=u(!1),ie=s(null),ae=Wg(t,ie),se=1===b.count(k)&&!C&&!qk(R),le=s(!0);o.useEffect((()=>(le.current=!1,()=>{le.current=!0})),[]),l((()=>{let e=null;return ee.delay>0?e=setTimeout((()=>{e=null,ne(!0)}),ee.delay):ne(ee.loading),function(){e&&(clearTimeout(e),e=null)}}),[ee]),l((()=>{if(!ie.current||!X)return;const e=ie.current.textContent||"";se&&Yk(e)?re||oe(!0):re&&oe(!1)})),l((()=>{A&&ie.current&&ie.current.focus()}),[]);const ce=o.useCallback((t=>{var n;te||J?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,te,J]);if("production"!==process.env.NODE_ENV){const e=y_("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof C&&C.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${C}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(M&&qk(R)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ue,compactItemClassnames:de}=Fk(q,j),he={large:"lg",small:"sm",middle:void 0},pe=Rk((e=>{var t,n;return null!==(n=null!==(t=null!=y?y:ue)&&void 0!==t?t:Q)&&void 0!==n?n:e})),fe=pe&&null!==(a=he[pe])&&void 0!==a?a:"",me=te?"loading":C,ge=Ck(L,["navigate"]),ve=ug(q,Z,G,{[`${q}-${v}`]:"default"!==v&&v,[`${q}-${I}`]:I,[`${q}-dangerous`]:g,[`${q}-color-${$}`]:$,[`${q}-variant-${R}`]:R,[`${q}-${fe}`]:fe,[`${q}-icon-only`]:!k&&0!==k&&!!me,[`${q}-background-ghost`]:M&&!qk(R),[`${q}-loading`]:te,[`${q}-two-chinese-chars`]:re&&X&&!te,[`${q}-block`]:P,[`${q}-rtl`]:"rtl"===j,[`${q}-icon-end`]:"end"===E},de,w,S,H),ye=Object.assign(Object.assign({},W),N),be=ug(null==T?void 0:T.icon,V.icon),_e=Object.assign(Object.assign({},(null==_?void 0:_.icon)||{}),Y.icon||{}),xe=C&&!te?o.createElement(Gk,{prefixCls:q,className:be,style:_e},C):c&&"object"==typeof c&&c.icon?o.createElement(Gk,{prefixCls:q,className:be,style:_e},c.icon):o.createElement(eC,{existIcon:!!C,prefixCls:q,loading:te,mount:le.current}),we=k||0===k?function(e,t){let n=!1;const r=[];return o.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),o.Children.map(r,(e=>Uk(e,t)))}(k,se&&X):null;if(void 0!==ge.href)return U(o.createElement("a",Object.assign({},ge,{className:ug(ve,{[`${q}-disabled`]:J}),href:J?void 0:ge.href,style:ye,onClick:ce,ref:ae,tabIndex:J?-1:0}),xe,we));let Se=o.createElement("button",Object.assign({},L,{type:O,className:ve,style:ye,onClick:ce,disabled:J,ref:ae}),xe,we,de&&o.createElement(SE,{prefixCls:q}));return qk(R)||(Se=o.createElement(zk,{component:"Button",disabled:te},Se)),U(Se)})),ME=EE;ME.Group=Wk,ME.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(ME.displayName="Button");var PE=ME,OE=r.createContext(null),TE=[];function NE(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";sy("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=l,o=c}}document.body.appendChild(n);var h=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ay(t),{width:h,height:p}}(e):{width:0,height:0}}var DE="rc-util-locker-".concat(Date.now()),AE=0;function LE(e){var t=!!e,n=Vv(r.useState((function(){return AE+=1,"".concat(DE,"_").concat(AE)})),1)[0];Ay((function(){if(t){var e=NE(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;sy("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else ay(n);return function(){ay(n)}}),[t,n])}var IE=!1;var zE=function(e){return!1!==e&&(Kv()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},RE=r.forwardRef((function(e,t){var n=e.open,o=e.autoLock,i=e.getContainer,a=e.debug,s=e.autoDestroy,l=void 0===s||s,c=e.children,u=Vv(r.useState(n),2),d=u[0],h=u[1],p=d||n;"production"!==process.env.NODE_ENV&&kg(Kv()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),r.useEffect((function(){(l||n)&&h(n)}),[n,l]);var f=Vv(r.useState((function(){return zE(i)})),2),m=f[0],g=f[1];r.useEffect((function(){var e=zE(i);g(null!=e?e:null)}));var v=function(e,t){var n=Vv(r.useState((function(){if(!Kv())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],o=r.useRef(!1),i=r.useContext(OE),a=Vv(r.useState(TE),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(Yv(t))}))});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return Ay((function(){return e?i?i(u):u():d(),d}),[e]),Ay((function(){s.length&&(s.forEach((function(e){return e()})),l(TE))}),[s]),[n,c]}(p&&!m,a),y=Vv(v,2),b=y[0],_=y[1],x=null!=m?m:b;LE(o&&n&&Kv()&&(x===b||x===document.body));var w=null;c&&Vg(c)&&t&&(w=c.ref);var S=Wg(w,t);if(!p||!Kv()||void 0===m)return null;var k,C=!1===x||("boolean"==typeof k&&(IE=k),IE),E=c;return t&&(E=r.cloneElement(c,{ref:S})),r.createElement(OE.Provider,{value:_},C?E:P(E,x))}));"production"!==process.env.NODE_ENV&&(RE.displayName="Portal");var $E=0,FE=Gv({},r).useId,jE=FE?function(e){var t=FE();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=Fx(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=$E;$E+=1,o("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)};function BE(){BE=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new T(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var _={};c(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==n&&r.call(w,a)&&(_=w);var S=b.prototype=v.prototype=Object.create(_);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Cg(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function M(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Cg(t)+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function HE(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function WE(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){HE(i,r,o,a,s,"next",e)}function s(e){HE(i,r,o,a,s,"throw",e)}a(void 0)}))}}var VE="RC_FORM_INTERNAL_HOOKS",YE=function(){kg(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},XE=r.createContext({getFieldValue:YE,getFieldsValue:YE,getFieldError:YE,getFieldWarning:YE,getFieldsError:YE,isFieldsTouched:YE,isFieldTouched:YE,isFieldValidating:YE,isFieldsValidating:YE,resetFields:YE,setFields:YE,setFieldValue:YE,setFieldsValue:YE,validateFields:YE,submit:YE,getInternalHooks:function(){return YE(),{dispatch:YE,initEntityValue:YE,registerField:YE,useSubscribe:YE,setInitialValues:YE,destroyForm:YE,setCallbacks:YE,registerWatch:YE,getFields:YE,setValidateMessages:YE,setPreserve:YE,getInitialValue:YE}}}),qE=r.createContext(null);function UE(e){return null==e?[]:Array.isArray(e)?e:[e]}function ZE(){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 GE=ZE();function KE(e){var t="function"==typeof Map?new Map:void 0;return KE=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Ev())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Sv(o,n.prototype),o}(e,arguments,Cv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Sv(n,e)},KE(e)}var JE=/%[sdj%]/g,QE=function(){};function eM(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function tM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var a=e.replace(JE,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}));return a}return e}function nM(e,t){return 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 rM(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(QE=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var oM=function(){kv(t,KE(Error));var e=Pv(t);function t(n,r){var o;return _v(this,t),Mg(Mv(o=e.call(this,"Async Validation Error")),"errors",void 0),Mg(Mv(o),"fields",void 0),o.errors=n,o.fields=r,o}return wv(t)}();function iM(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Yv(e[n]||[]))})),t}(e);rM(a,n,(function(e){return r(e),e.length?i(new oM(e,eM(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new oM(u,eM(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?rM(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Yv(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function aM(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function sM(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===Cg(r)&&"object"===Cg(e[n])?e[n]=Og(Og({},e[n]),r):e[n]=r}return e}var lM,cM="enum",uM=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!nM(t,i||e.type)||r.push(tM(o.messages.required,e.fullField))},dM=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hM=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,pM={integer:function(e){return pM.number(e)&&parseInt(e,10)===e},float:function(e){return pM.number(e)&&!pM.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){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"===Cg(e)&&!pM.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(dM)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(lM)return lM;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,h="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return lM=new RegExp("(?:^".concat(h,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(hM)}},fM={required:uM,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(tM(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)uM(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?pM[i](t)||r.push(tM(o.messages.types[i],e.fullField,e.type)):i&&Cg(t)!==e.type&&r.push(tM(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,h=Array.isArray(t);if(u?c="number":d?c="string":h&&(c="array"),!c)return!1;h&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(tM(o.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(tM(o.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(tM(o.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(tM(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[cM]=Array.isArray(e[cM])?e[cM]:[],-1===e[cM].indexOf(t)&&r.push(tM(o.messages[cM],e.fullField,e[cM].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(tM(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(tM(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},mM=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t,i)&&!e.required)return n();fM.required(e,t,r,a,o,i),nM(t,i)||fM.type(e,t,r,a,o)}n(a)},gM={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t,"string")&&!e.required)return n();fM.required(e,t,r,i,o,"string"),nM(t,"string")||(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o),fM.pattern(e,t,r,i,o),!0===e.whitespace&&fM.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&fM.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&fM.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),nM(t)||fM.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();fM.required(e,t,r,i,o,"array"),null!=t&&(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&fM.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&fM.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t,"string")&&!e.required)return n();fM.required(e,t,r,i,o),nM(t,"string")||fM.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t,"date")&&!e.required)return n();var a;if(fM.required(e,t,r,i,o),!nM(t,"date"))a=t instanceof Date?t:new Date(t),fM.type(e,a,r,i,o),a&&fM.range(e,a.getTime(),r,i,o)}n(i)},url:mM,hex:mM,email:mM,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":Cg(t);fM.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o)}n(i)}},vM=function(){function e(t){_v(this,e),Mg(this,"rules",null),Mg(this,"_messages",GE),this.define(t)}return wv(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==Cg(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=sM(ZE(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===GE&&(a=ZE()),sM(a,o.messages),o.messages=a}else o.messages=this.messages();var s={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=Og({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":Cg(i)))),(a="function"==typeof a?{validator:a}:Og({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:r,field:e}))}))}));var l={};return iM(s,o,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==Cg(a.fields)&&"object"!==Cg(a.defaultField));function c(e,t){return Og(Og({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Yv(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(aM(a,r));if(o.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(aM(a,r)):o.error&&(d=[o.error(a,tM(o.messages.required,a.field))]),n(d);var h={};a.defaultField&&Object.keys(t.value).map((function(e){h[e]=a.defaultField})),h=Og(Og({},h),t.rule.fields);var p={};Object.keys(h).forEach((function(e){var t=h[e],n=Array.isArray(t)?t:[t];p[e]=n.map(c.bind(null,e))}));var f=new e(p);f.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),f.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Yv(d)),e&&e.length&&t.push.apply(t,Yv(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,h;null===(d=(h=console).error)||void 0===d||d.call(h,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,Yv(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=eM(t),i(t,n)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!gM.hasOwnProperty(e.type))throw new Error(tM("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?gM.required:gM[this.getType(e)]||void 0}}]),e}();Mg(vM,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");gM[e]=t})),Mg(vM,"warning",QE),Mg(vM,"messages",GE),Mg(vM,"validators",gM);var yM="'${name}' is not a valid ${type}",bM={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:yM,method:yM,array:yM,object:yM,number:yM,date:yM,boolean:yM,integer:yM,float:yM,regexp:yM,email:yM,url:yM,hex:yM},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}"}},_M=vM;function xM(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var wM="CODE_LOGIC_ERROR";function SM(e,t,n,r,o){return kM.apply(this,arguments)}function kM(){return kM=WE(BE().mark((function e(t,n,o,i,a){var s,l,c,u,d,h,p,f,m;return BE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(s=Og({},o)).ruleIndex,_M.warning=function(){},s.validator&&(l=s.validator,s.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(wM)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new _M(Mg({},t,[s])),d=p_(bM,i.validateMessages),u.messages(d),h=[],e.prev=10,e.next=13,Promise.resolve(u.validate(Mg({},t,n),Og({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(h=e.t0.errors.map((function(e,t){var n=e.message,o=n===wM?d.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(h.length||!c){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return SM("".concat(t,".").concat(n),e,c,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Yv(e),Yv(t))}),[]));case 23:return f=Og(Og({},o),{},{name:t,enum:(o.enum||[]).join(", ")},a),m=h.map((function(e){return"string"==typeof e?xM(e,f):e})),e.abrupt("return",m);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),kM.apply(this,arguments)}function CM(e,t,n,r,o,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,r=Og(Og({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){kg(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));kg(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=WE(BE().mark((function e(n,o){var a,c,u;return BE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,SM(s,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return SM(s,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return MM.apply(this,arguments)}(c):function(e){return EM.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function EM(){return(EM=WE(BE().mark((function e(t){return BE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Yv(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function MM(){return MM=WE(BE().mark((function e(t){var n;return BE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),MM.apply(this,arguments)}function PM(e){return UE(e)}function OM(e,t){var n={};return t.forEach((function(t){var r=l_(e,t);n=u_(n,t,r)})),n}function TM(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return NM(t,e,n)}))}function NM(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function DM(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Cg(t.target)&&e in t.target?t.target[e]:t}function AM(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Yv(e.slice(0,n)),[o],Yv(e.slice(n,t)),Yv(e.slice(t+1,r))):i<0?[].concat(Yv(e.slice(0,t)),Yv(e.slice(t+1,n+1)),[o],Yv(e.slice(n+1,r))):e}var LM=["name"],IM=[];function zM(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var RM=function(){kv(t,r.Component);var e=Pv(t);function t(n){var o;(_v(this,t),Mg(Mv(o=e.call(this,n)),"state",{resetCount:0}),Mg(Mv(o),"cancelRegisterFunc",null),Mg(Mv(o),"mounted",!1),Mg(Mv(o),"touched",!1),Mg(Mv(o),"dirty",!1),Mg(Mv(o),"validatePromise",void 0),Mg(Mv(o),"prevValidating",void 0),Mg(Mv(o),"errors",IM),Mg(Mv(o),"warnings",IM),Mg(Mv(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,PM(r)),o.cancelRegisterFunc=null})),Mg(Mv(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Yv(void 0===n?[]:n),Yv(t)):[]})),Mg(Mv(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),Mg(Mv(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),Mg(Mv(o),"metaCache",null),Mg(Mv(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=Og(Og({},o.getMeta()),{},{destroy:e});cy(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),Mg(Mv(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,l=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),h=o.getValue(c),p=t&&TM(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||cy(d,h)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=IM,o.warnings=IM,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=IM,o.warnings=IM,o.triggerMetaEvent(),null==l||l(),void o.refresh();break;case"remove":if(i&&zM(i,e,c,d,h,n))return void o.reRender();break;case"setField":var f=n.data;if(p)return"touched"in f&&(o.touched=f.touched),"validating"in f&&!("originRCField"in f)&&(o.validatePromise=f.validating?Promise.resolve([]):null),"errors"in f&&(o.errors=f.errors||IM),"warnings"in f&&(o.warnings=f.warnings||IM),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in f&&TM(t,u,!0))return void o.reRender();if(i&&!u.length&&zM(i,e,c,d,h,n))return void o.reRender();break;case"dependenciesUpdate":if(s.map(PM).some((function(e){return TM(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!s.length||u.length||i)&&zM(i,e,c,d,h,n))return void o.reRender()}!0===i&&o.reRender()})),Mg(Mv(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(WE(BE().mark((function r(){var a,s,c,u,d,h,p;return BE().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,h=o.getRules(),i&&(h=h.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||UE(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===l){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=CM(t,n,h,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:IM;if(o.validatePromise===l){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?IM:o;t?r.push.apply(r,Yv(i)):n.push.apply(n,Yv(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return s||(o.validatePromise=l,o.dirty=!0,o.errors=IM,o.warnings=IM,o.triggerMetaEvent(),o.reRender()),l})),Mg(Mv(o),"isFieldValidating",(function(){return!!o.validatePromise})),Mg(Mv(o),"isFieldTouched",(function(){return o.touched})),Mg(Mv(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(VE).getInitialValue)(o.getNamePath())})),Mg(Mv(o),"getErrors",(function(){return o.errors})),Mg(Mv(o),"getWarnings",(function(){return o.warnings})),Mg(Mv(o),"isListField",(function(){return o.props.isListField})),Mg(Mv(o),"isList",(function(){return o.props.isList})),Mg(Mv(o),"isPreserve",(function(){return o.props.preserve})),Mg(Mv(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),Mg(Mv(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return Og(Og({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=vg(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Mg(Mv(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return l_(e||t(!0),n)})),Mg(Mv(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,h=o.getNamePath(),p=u.getInternalHooks,f=u.getFieldsValue,m=p(VE).dispatch,g=o.getValue(),v=c||function(e){return Mg({},l,e)},y=e[r],b=void 0!==n?v(g):{};"production"!==process.env.NODE_ENV&&b&&Object.keys(b).forEach((function(e){kg("function"!=typeof b[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var _=Og(Og({},e),b);return _[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):DM.apply(void 0,[l].concat(n)),s&&(e=s(e,g,f(!0))),e!==g&&m({type:"updateValue",namePath:h,value:e}),y&&y.apply(void 0,n)},UE(d||[]).forEach((function(e){var t=_[e];_[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&m({type:"validateField",namePath:h,triggerName:e})}})),_})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(VE).initEntityValue)(Mv(o));return o}return wv(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(VE).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(kg(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),t}();function $M(e){var t,n=e.name,o=ly(e,LM),i=r.useContext(XE),a=r.useContext(qE),s=void 0!==n?PM(n):void 0,l=null!==(t=o.isListField)&&void 0!==t?t:!!a,c="keep";return l||(c="_".concat((s||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===o.preserve&&l&&s.length<=1&&kg(!1,"`preserve` should not apply on Form.List fields."),r.createElement(RM,dg({key:c,name:s,isListField:l},o,{fieldContext:i}))}Mg(RM,"contextType",XE),Mg(RM,"defaultProps",{trigger:"onChange",valuePropName:"value"});var FM="__@field_split__";function jM(e){return e.map((function(e){return"".concat(Cg(e),":").concat(e)})).join(FM)}var BM=function(){function e(){_v(this,e),Mg(this,"kvs",new Map)}return wv(e,[{key:"set",value:function(e,t){this.kvs.set(jM(e),t)}},{key:"get",value:function(e){return this.kvs.get(jM(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(jM(e))}},{key:"map",value:function(e){return Yv(this.kvs.entries()).map((function(t){var n=Vv(t,2),r=n[0],o=n[1],i=r.split(FM);return e({key:i.map((function(e){var t=Vv(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{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}(),HM=["name"],WM=wv((function e(t){var n=this;_v(this,e),Mg(this,"formHooked",!1),Mg(this,"forceRootUpdate",void 0),Mg(this,"subscribable",!0),Mg(this,"store",{}),Mg(this,"fieldEntities",[]),Mg(this,"initialValues",{}),Mg(this,"callbacks",{}),Mg(this,"validateMessages",null),Mg(this,"preserve",null),Mg(this,"lastValidatePromise",null),Mg(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),Mg(this,"getInternalHooks",(function(e){return e===VE?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(kg(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Mg(this,"useSubscribe",(function(e){n.subscribable=e})),Mg(this,"prevWithoutPreserves",null),Mg(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=p_(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=u_(o,n,l_(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Mg(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new BM;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),Mg(this,"getInitialValue",(function(e){var t=l_(n.initialValues,e);return e.length?p_(t):t})),Mg(this,"setCallbacks",(function(e){n.callbacks=e})),Mg(this,"setValidateMessages",(function(e){n.validateMessages=e})),Mg(this,"setPreserve",(function(e){n.preserve=e})),Mg(this,"watchList",[]),Mg(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Mg(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),Mg(this,"timeoutId",null),Mg(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||kg(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),Mg(this,"updateStore",(function(e){n.store=e})),Mg(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Mg(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new BM;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Mg(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=PM(e);return t.get(n)||{INVALIDATE_NAME_PATH:PM(e)}}))})),Mg(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Cg(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&s.push(c)}else s.push(c)})),OM(n.store,s.map(PM))})),Mg(this,"getFieldValue",(function(e){n.warningUnhooked();var t=PM(e);return l_(n.store,t)})),Mg(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:PM(e[n]),errors:[],warnings:[]}}))})),Mg(this,"getFieldError",(function(e){n.warningUnhooked();var t=PM(e);return n.getFieldsError([t])[0].errors})),Mg(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=PM(e);return n.getFieldsError([t])[0].warnings})),Mg(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(PM),s=!1):(o=null,s=i):(o=i.map(PM),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return s?l.every((function(e){return c(e)||e.isList()})):l.some(c);var u=new BM;o.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Yv(t),[e])}))}))}));var d=function(e){return e.some(c)},h=u.map((function(e){return e.value}));return s?h.every(d):h.some(d)})),Mg(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Mg(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(PM);return t.some((function(e){var t=e.getNamePath();return TM(r,t)&&e.isFieldValidating()}))})),Mg(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Mg(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new BM,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Yv(Yv(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))kg(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)kg(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(u_(n.store,o,Yv(i)[0].value))}}}}))})),Mg(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(p_(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(PM);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(u_(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Mg(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=ly(e,HM),a=PM(o);r.push(a),"value"in i&&n.updateStore(u_(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Mg(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Og(Og({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Mg(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===l_(n.store,r)&&n.updateStore(u_(n.store,r,t))}})),Mg(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Mg(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!NM(e.getNamePath(),t)}))){var s=n.store;n.updateStore(u_(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Mg(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),Mg(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Og(Og({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Mg(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Yv(r))}),r})),Mg(this,"updateValue",(function(e,t){var r=PM(e),o=n.store;n.updateStore(u_(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(OM(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Yv(i)))})),Mg(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=p_(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Mg(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])})),Mg(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new BM;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=PM(t);o.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){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),Mg(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new BM;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return TM(e,n)}));a.length&&r(a,o)}})),Mg(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(PM):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,h=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!h||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||TM(a,t,d)){var r=e.validateRules(Og({validateMessages:Og(Og({},bM),n.validateMessages)},o));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Yv(n)):r.push.apply(r,Yv(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=p,p.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 f=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));f.catch((function(e){return e}));var m=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(m),f})),Mg(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function VM(e){var t=r.useRef(),n=Vv(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new WM((function(){n({})}));t.current=o.getForm()}return[t.current]}var YM=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),XM=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],qM=function(e,t){var n=e.name,o=e.initialValues,i=e.fields,a=e.form,s=e.preserve,l=e.children,c=e.component,u=void 0===c?"form":c,d=e.validateMessages,h=e.validateTrigger,p=void 0===h?"onChange":h,f=e.onValuesChange,m=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,y=e.clearOnDestroy,b=ly(e,XM),_=r.useRef(null),x=r.useContext(YM),w=Vv(VM(a),1)[0],S=w.getInternalHooks(VE),k=S.useSubscribe,C=S.setInitialValues,E=S.setCallbacks,M=S.setValidateMessages,P=S.setPreserve,O=S.destroyForm;r.useImperativeHandle(t,(function(){return Og(Og({},w),{},{nativeElement:_.current})})),r.useEffect((function(){return x.registerForm(n,w),function(){x.unregisterForm(n)}}),[x,w,n]),M(Og(Og({},x.validateMessages),d)),E({onValuesChange:f,onFieldsChange:function(e){if(x.triggerFormChange(n,e),m){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];m.apply(void 0,[e].concat(r))}},onFinish:function(e){x.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:v}),P(s);var T,N=r.useRef(null);C(o,!N.current),N.current||(N.current=!0),r.useEffect((function(){return function(){return O(y)}}),[]);var D="function"==typeof l;D?T=l(w.getFieldsValue(!0),w):T=l;k(!D);var A=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Cg(e)||"object"!==Cg(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Yv(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(A.current||[],i||[])||w.setFields(i||[]),A.current=i}),[i,w]);var L=r.useMemo((function(){return Og(Og({},w),{},{validateTrigger:p})}),[w,p]),I=r.createElement(qE.Provider,{value:null},r.createElement(XE.Provider,{value:L},T));return!1===u?I:r.createElement(u,dg({},b,{ref:_,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),I)};function UM(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ZM="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");kg(s(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var GM=r.forwardRef(qM);GM.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,a=r.useContext(YM),s=r.useRef({});return r.createElement(YM.Provider,{value:Og(Og({},a),{},{validateMessages:Og(Og({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=Og(Og({},s.current),{},Mg({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Og({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},GM.Field=$M,GM.List=function(e){var t=e.name,n=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,s=e.isListField,l=r.useContext(XE),c=r.useContext(qE),u=r.useRef({keys:[],id:0}).current,d=r.useMemo((function(){var e=PM(l.prefixName)||[];return[].concat(Yv(e),Yv(PM(t)))}),[l.prefixName,t]),h=r.useMemo((function(){return Og(Og({},l),{},{prefixName:d})}),[l,d]),p=r.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(kg(!1,"Form.List only accepts function as children."),null):r.createElement(qE.Provider,{value:p},r.createElement(XE.Provider,{value:h},r.createElement($M,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=s?s:!!c},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(d||[])||[]},c={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(Yv(u.keys.slice(0,t)),[u.id],Yv(u.keys.slice(t))),i([].concat(Yv(n.slice(0,t)),[e],Yv(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&kg(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Yv(u.keys),[u.id]),i([].concat(Yv(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)})),i(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=AM(u.keys,e,t),i(AM(n,e,t)))}}},h=r||[];return Array.isArray(h)||(h=[],"production"!==process.env.NODE_ENV&&kg(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),o(h.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}})),c,t)}))))},GM.useForm=VM,GM.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=void 0===o?{}:o,c=function(e){return e&&!!e._init}(a)?{form:a}:a,d=c.form,h=Vv(u(),2),f=h[0],m=h[1],g=i((function(){return UM(f)}),[f]),v=s(g);v.current=g;var y=p(XE),b=d||y,_=b&&b._init;"production"!==process.env.NODE_ENV&&kg(2===t.length&&!d||_,"useWatch requires a form instance since it can not auto detect from context.");var x=PM(r),w=s(x);return w.current=x,ZM(x),l((function(){if(_){var e=b.getFieldsValue,t=(0,b.getInternalHooks)(VE).registerWatch,n=function(e,t){var n=c.preserve?t:e;return"function"==typeof r?r(n):l_(n,w.current)},o=t((function(e,t){var r=n(e,t),o=UM(r);v.current!==o&&(v.current=o,m(r))})),i=n(e(),e(!0));return f!==i&&m(i),o}}),[_]),f};const KM=r.createContext({});"production"!==process.env.NODE_ENV&&(KM.displayName="FormItemInputContext");const JM=e=>{let{children:t,status:n,override:o}=e;const i=r.useContext(KM),a=r.useMemo((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,i]);return r.createElement(KM.Provider,{value:a},t)},QM=r.createContext(void 0);var eP=e=>{const{space:t,form:n,children:r}=e;if(null==r)return null;let i=r;return n&&(i=o.createElement(JM,{override:!0,status:!0},i)),t&&(i=o.createElement(jk,null,i)),i};function tP(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function nP(e){const{closable:t,closeIcon:n}=e||{};return o.useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function rP(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const oP={};var iP=(e,t,n,o,i)=>function(e){return t=>r.createElement(_S,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}((a=>{const{prefixCls:s,style:l}=a,c=r.useRef(null),[u,d]=r.useState(0),[h,p]=r.useState(0),[f,m]=Hx(!1,{value:a.open}),{getPrefixCls:g}=r.useContext(xx),v=g(o||"select",s);r.useEffect((()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;d(t.offsetHeight+8),p(t.offsetWidth)})),t=setInterval((()=>{var n;const r=i?`.${i(v)}`:`.${v}-dropdown`,o=null===(n=c.current)||void 0===n?void 0:n.querySelector(r);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let y=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:f,visible:f,getPopupContainer:()=>c.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:h};return r.createElement("div",{ref:c,style:b},r.createElement(e,Object.assign({},y)))})),aP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],sP=void 0;function lP(e,t){var n=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,h=e.style,p=e.children,f=e.display,m=e.order,g=e.component,v=void 0===g?"div":g,y=ly(e,aP),b=s&&!f;function _(e){c(u,e)}r.useEffect((function(){return function(){_(null)}}),[]);var x,w=a&&i!==sP?a(i,{index:m}):p;o||(x={opacity:b?0:1,height:b?0:sP,overflowY:b?"hidden":sP,order:s?m:sP,pointerEvents:b?"none":sP,position:b?"absolute":sP});var S={};b&&(S["aria-hidden"]=!0);var k=r.createElement(v,dg({className:ug(!o&&n,d),style:Og(Og({},x),h)},S,y,{ref:t}),w);return s&&(k=r.createElement(Av,{onResize:function(e){_(e.offsetWidth)},disabled:l},k)),k}var cP=r.forwardRef(lP);function uP(){var e=r.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Bv(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){O((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function dP(e,t){var n=Vv(r.useState(t),2),o=n[0],i=n[1];return[o,$x((function(t){e((function(){i(t)}))}))]}cP.displayName="Item";var hP=o.createContext(null),pP=["component"],fP=["className"],mP=["className"],gP=function(e,t){var n=r.useContext(hP);if(!n){var o=e.component,i=void 0===o?"div":o,a=ly(e,pP);return r.createElement(i,dg({},a,{ref:t}))}var s=n.className,l=ly(n,fP),c=e.className,u=ly(e,mP);return r.createElement(hP.Provider,{value:null},r.createElement(cP,dg({ref:t,className:ug(s,c)},l,u)))},vP=r.forwardRef(gP);vP.displayName="RawItem";var yP=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],bP="responsive",_P="invalidate";function xP(e){return"+ ".concat(e.length," ...")}function wP(e,t){var n=e.prefixCls,o=void 0===n?"rc-overflow":n,a=e.data,s=void 0===a?[]:a,l=e.renderItem,d=e.renderRawItem,h=e.itemKey,p=e.itemWidth,f=void 0===p?10:p,m=e.ssr,g=e.style,v=e.className,y=e.maxCount,b=e.renderRest,_=e.renderRawRest,x=e.suffix,w=e.component,S=void 0===w?"div":w,k=e.itemComponent,C=e.onVisibleChange,E=ly(e,yP),M="full"===m,P=uP(),O=Vv(dP(P,null),2),T=O[0],N=O[1],D=T||0,A=Vv(dP(P,new Map),2),L=A[0],I=A[1],z=Vv(dP(P,0),2),R=z[0],$=z[1],F=Vv(dP(P,0),2),j=F[0],B=F[1],H=Vv(dP(P,0),2),W=H[0],V=H[1],Y=Vv(u(null),2),X=Y[0],q=Y[1],U=Vv(u(null),2),Z=U[0],G=U[1],K=r.useMemo((function(){return null===Z&&M?Number.MAX_SAFE_INTEGER:Z||0}),[Z,T]),J=Vv(u(!1),2),Q=J[0],ee=J[1],te="".concat(o,"-item"),ne=Math.max(R,j),re=y===bP,oe=s.length&&re,ie=y===_P,ae=oe||"number"==typeof y&&s.length>y,se=i((function(){var e=s;return oe?e=null===T&&M?s:s.slice(0,Math.min(s.length,D/f)):"number"==typeof y&&(e=s.slice(0,y)),e}),[s,f,T,y,oe]),le=i((function(){return oe?s.slice(K+1):s.slice(se.length)}),[s,se,oe,K]),ce=c((function(e,t){var n;return"function"==typeof h?h(e):null!==(n=h&&(null==e?void 0:e[h]))&&void 0!==n?n:t}),[h]),ue=c(l||function(e){return e},[l]);function de(e,t,n){(Z!==e||void 0!==t&&t!==X)&&(G(e),n||(ee(e<s.length-1),null==C||C(e)),void 0!==t&&q(t))}function he(e,t){I((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function pe(e){return L.get(ce(se[e],e))}Ay((function(){if(D&&"number"==typeof ne&&se){var e=W,t=se.length,n=t-1;if(!t)return void de(0,null);for(var r=0;r<t;r+=1){var o=pe(r);if(M&&(o=o||0),void 0===o){de(r-1,void 0,!0);break}if(e+=o,0===n&&e<=D||r===n-1&&e+pe(n)<=D){de(n,null);break}if(e+ne>D){de(r-1,e-o-W+j);break}}x&&pe(0)+W>D&&q(null)}}),[D,L,j,W,ce,se]);var fe=Q&&!!le.length,me={};null!==X&&oe&&(me={position:"absolute",left:X,top:0});var ge={prefixCls:te,responsive:oe,component:k,invalidate:ie},ve=d?function(e,t){var n=ce(e,t);return r.createElement(hP.Provider,{key:n,value:Og(Og({},ge),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=K})},d(e,t))}:function(e,t){var n=ce(e,t);return r.createElement(cP,dg({},ge,{order:t,key:n,item:e,renderItem:ue,itemKey:n,registerSize:he,display:t<=K}))},ye={order:fe?K:Number.MAX_SAFE_INTEGER,className:"".concat(te,"-rest"),registerSize:function(e,t){B(t),$(j)},display:fe},be=b||xP,_e=_?r.createElement(hP.Provider,{value:Og(Og({},ge),ye)},_(le)):r.createElement(cP,dg({},ge,ye),"function"==typeof be?be(le):be),xe=r.createElement(S,dg({className:ug(!ie&&o,v),style:g,ref:t},E),se.map(ve),ae?_e:null,x&&r.createElement(cP,dg({},ge,{responsive:re,responsiveDisabled:!oe,order:K,className:"".concat(te,"-suffix"),registerSize:function(e,t){V(t)},display:!0,style:me}),x));return re?r.createElement(Av,{onResize:function(e,t){N(t.clientWidth)},disabled:!oe},xe):xe}var SP=r.forwardRef(wP);function kP(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,d=i.y,h=void 0===d?0:d,p=r.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],y=m[1],b=g[0],_=g[1];v!==b&&["t","b"].includes(v)?"t"===v?f.top=0:f.bottom=0:f.top=h,y!==_&&["l","r"].includes(y)?"l"===y?f.left=0:f.right=0:f.left=u}return r.createElement("div",{ref:p,className:ug("".concat(t,"-arrow"),s),style:f},l)}function CP(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?r.createElement(nS,dg({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:ug("".concat(t,"-mask"),n)})})):null}SP.displayName="Overflow",SP.Item=vP,SP.RESPONSIVE=bP,SP.INVALIDATE=_P;var EP=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(EP.displayName="PopupContent");var MP=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,h=e.onClick,p=e.mask,f=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,_=e.getPopupContainer,x=e.autoDestroy,w=e.portal,S=e.zIndex,k=e.onMouseEnter,C=e.onMouseLeave,E=e.onPointerEnter,M=e.onPointerDownCapture,P=e.ready,O=e.offsetX,T=e.offsetY,N=e.offsetR,D=e.offsetB,A=e.onAlign,L=e.onPrepare,I=e.stretch,z=e.targetWidth,R=e.targetHeight,$="function"==typeof n?n():n,F=c||u,j=(null==_?void 0:_.length)>0,B=Vv(r.useState(!_||!j),2),H=B[0],W=B[1];if(Ay((function(){!H&&j&&s&&W(!0)}),[H,j,s]),!H)return null;var V="auto",Y={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(P||!c){var X,q=g.points,U=g.dynamicInset||(null===(X=g._experimental)||void 0===X?void 0:X.dynamicInset),Z=U&&"r"===q[0][1],G=U&&"b"===q[0][0];Z?(Y.right=N,Y.left=V):(Y.left=O,Y.right=V),G?(Y.bottom=D,Y.top=V):(Y.top=T,Y.bottom=V)}var K={};return I&&(I.includes("height")&&R?K.height=R:I.includes("minHeight")&&R&&(K.minHeight=R),I.includes("width")&&z?K.width=z:I.includes("minWidth")&&z&&(K.minWidth=z)),c||(K.pointerEvents="none"),r.createElement(w,{open:b||F,getContainer:_&&function(){return _(s)},autoDestroy:x},r.createElement(CP,{prefixCls:i,open:c,zIndex:S,mask:p,motion:y}),r.createElement(Av,{onResize:A,disabled:!c},(function(e){return r.createElement(nS,dg({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:L,onEnterPrepare:L,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),l(e)}}),(function(n,s){var l=n.className,u=n.style,p=ug(i,l,o);return r.createElement("div",{ref:Hg(e,t,s),className:p,style:Og(Og(Og(Og({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},Y),K),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:k,onMouseLeave:C,onPointerEnter:E,onClick:h,onPointerDownCapture:M},f&&r.createElement(kP,{prefixCls:i,arrow:f,arrowPos:m,align:g}),r.createElement(EP,{cache:!c&&!d},$))}))})))}));"production"!==process.env.NODE_ENV&&(MP.displayName="Popup");var PP=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=Vg(n),a=r.useCallback((function(e){Bg(t,o?o(e):e)}),[o]),s=Wg(a,Xg(n));return i?r.cloneElement(n,{ref:s}):n}));"production"!==process.env.NODE_ENV&&(PP.displayName="TriggerWrapper");var OP=r.createContext(null);function TP(e){return e?Array.isArray(e)?e:[e]:[]}function NP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function DP(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function AP(e){return e.ownerDocument.defaultView}function LP(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=AP(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function IP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function zP(e){return IP(parseFloat(e),0)}function RP(e,t){var n=Og({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=AP(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,h=e.offsetWidth,p=e.clientWidth,f=zP(i),m=zP(a),g=zP(s),v=zP(l),y=IP(Math.round(c.width/h*1e3)/1e3),b=IP(Math.round(c.height/u*1e3)/1e3),_=(h-p-g-v)*y,x=(u-d-f-m)*b,w=f*b,S=m*b,k=g*y,C=v*y,E=0,M=0;if("clip"===r){var P=zP(o);E=P*y,M=P*b}var O=c.x+k-E,T=c.y+w-M,N=O+c.width+2*E-k-C-_,D=T+c.height+2*M-w-S-x;n.left=Math.max(n.left,O),n.top=Math.max(n.top,T),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,D)}})),n}function $P(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function FP(e,t){var n=Vv(t||[],2),r=n[0],o=n[1];return[$P(e.width,r),$P(e.height,o)]}function jP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function BP(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function HP(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var WP=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var VP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:RE,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,s=t.action,l=void 0===s?"hover":s,c=t.showAction,u=t.hideAction,d=t.popupVisible,h=t.defaultPopupVisible,p=t.onPopupVisibleChange,f=t.afterPopupVisibleChange,m=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,y=t.focusDelay,b=t.blurDelay,_=t.mask,x=t.maskClosable,w=void 0===x||x,S=t.getPopupContainer,k=t.forceRender,C=t.autoDestroy,E=t.destroyPopupOnHide,M=t.popup,P=t.popupClassName,O=t.popupStyle,T=t.popupPlacement,N=t.builtinPlacements,D=void 0===N?{}:N,A=t.popupAlign,L=t.zIndex,I=t.stretch,z=t.getPopupClassNameFromAlign,R=t.fresh,$=t.alignPoint,F=t.onPopupClick,j=t.onPopupAlign,B=t.arrow,H=t.popupMotion,W=t.maskMotion,V=t.popupTransitionName,Y=t.popupAnimation,X=t.maskTransitionName,q=t.maskAnimation,U=t.className,Z=t.getTriggerDOMNode,G=ly(t,WP),K=C||E||!1,J=Vv(r.useState(!1),2),Q=J[0],ee=J[1];Ay((function(){ee(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.substr(0,4))}())}),[]);var te=r.useRef({}),ne=r.useContext(OP),re=r.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=jE(),ie=Vv(r.useState(null),2),ae=ie[0],se=ie[1],le=r.useRef(null),ce=$x((function(e){le.current=e,Tg(e)&&ae!==e&&se(e),null==ne||ne.registerSubPopup(oe,e)})),ue=Vv(r.useState(null),2),de=ue[0],he=ue[1],pe=r.useRef(null),fe=$x((function(e){Tg(e)&&de!==e&&(he(e),pe.current=e)})),me=r.Children.only(a),ge=(null==me?void 0:me.props)||{},ve={},ye=$x((function(e){var t,n,r=de;return(null==r?void 0:r.contains(e))||(null===(t=wS(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=wS(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),be=DP(i,H,Y,V),_e=DP(i,W,q,X),xe=Vv(r.useState(h||!1),2),we=xe[0],Se=xe[1],ke=null!=d?d:we,Ce=$x((function(e){void 0===d&&Se(e)}));Ay((function(){Se(d||!1)}),[d]);var Ee=r.useRef(ke);Ee.current=ke;var Me=r.useRef([]);Me.current=[];var Pe=$x((function(e){var t;Ce(e),(null!==(t=Me.current[Me.current.length-1])&&void 0!==t?t:ke)!==e&&(Me.current.push(e),null==p||p(e))})),Oe=r.useRef(),Te=function(){clearTimeout(Oe.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Te(),0===t?Pe(e):Oe.current=setTimeout((function(){Pe(e)}),1e3*t)};r.useEffect((function(){return Te}),[]);var De=Vv(r.useState(!1),2),Ae=De[0],Le=De[1];Ay((function(e){e&&!ke||Le(!0)}),[ke]);var Ie=Vv(r.useState(null),2),ze=Ie[0],Re=Ie[1],$e=Vv(r.useState(null),2),Fe=$e[0],je=$e[1],Be=function(e){je([e.clientX,e.clientY])},He=function(e,t,n,o,i,a,s){var l=Vv(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),c=l[0],u=l[1],d=r.useRef(0),h=r.useMemo((function(){return t?LP(t):[]}),[t]),p=r.useRef({});e||(p.current={});var f=$x((function(){if(t&&n&&e){var r,l,c,d,f,m=t,g=m.ownerDocument,v=AP(m).getComputedStyle(m),y=v.width,b=v.height,_=v.position,x=m.style.left,w=m.style.top,S=m.style.right,k=m.style.bottom,C=m.style.overflow,E=Og(Og({},i[o]),a),M=g.createElement("div");if(null===(r=m.parentElement)||void 0===r||r.appendChild(M),M.style.left="".concat(m.offsetLeft,"px"),M.style.top="".concat(m.offsetTop,"px"),M.style.position=_,M.style.height="".concat(m.offsetHeight,"px"),M.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var P,O,T=n.getBoundingClientRect();T.x=null!==(P=T.x)&&void 0!==P?P:T.left,T.y=null!==(O=T.y)&&void 0!==O?O:T.top,f={x:T.x,y:T.y,width:T.width,height:T.height}}var N=m.getBoundingClientRect();N.x=null!==(l=N.x)&&void 0!==l?l:N.left,N.y=null!==(c=N.y)&&void 0!==c?c:N.top;var D=g.documentElement,A=D.clientWidth,L=D.clientHeight,I=D.scrollWidth,z=D.scrollHeight,R=D.scrollTop,$=D.scrollLeft,F=N.height,j=N.width,B=f.height,H=f.width,W={left:0,top:0,right:A,bottom:L},V={left:-$,top:-R,right:I-$,bottom:z-R},Y=E.htmlRegion,X="visible",q="visibleFirst";"scroll"!==Y&&Y!==q&&(Y=X);var U=Y===q,Z=RP(V,h),G=RP(W,h),K=Y===X?G:Z,J=U?G:K;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var Q=m.getBoundingClientRect();m.style.left=x,m.style.top=w,m.style.right=S,m.style.bottom=k,m.style.overflow=C,null===(d=m.parentElement)||void 0===d||d.removeChild(M);var ee=IP(Math.round(j/parseFloat(y)*1e3)/1e3),te=IP(Math.round(F/parseFloat(b)*1e3)/1e3);if(0===ee||0===te||Tg(n)&&!Ek(n))return;var ne=E.offset,re=E.targetOffset,oe=Vv(FP(N,ne),2),ie=oe[0],ae=oe[1],se=Vv(FP(f,re),2),le=se[0],ce=se[1];f.x-=le,f.y-=ce;var ue=Vv(E.points||[],2),de=ue[0],he=jP(ue[1]),pe=jP(de),fe=BP(f,he),me=BP(N,pe),ge=Og({},E),ve=fe.x-me.x+ie,ye=fe.y-me.y+ae;function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K,r=N.x+e,o=N.y+t,i=r+j,a=o+F,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var be,_e,xe,we,Se=dt(ve,ye),ke=dt(ve,ye,G),Ce=BP(f,["t","l"]),Ee=BP(N,["t","l"]),Me=BP(f,["b","r"]),Pe=BP(N,["b","r"]),Oe=E.overflow||{},Te=Oe.adjustX,Ne=Oe.adjustY,De=Oe.shiftX,Ae=Oe.shiftY,Le=function(e){return"boolean"==typeof e?e:e>=0};function ht(){be=N.y+ye,_e=be+F,xe=N.x+ve,we=xe+j}ht();var Ie=Le(Ne),ze=pe[0]===he[0];if(Ie&&"t"===pe[0]&&(_e>J.bottom||p.current.bt)){var Re=ye;ze?Re-=F-B:Re=Ce.y-Pe.y-ae;var $e=dt(ve,Re),Fe=dt(ve,Re,G);$e>Se||$e===Se&&(!U||Fe>=ke)?(p.current.bt=!0,ye=Re,ae=-ae,ge.points=[HP(pe,0),HP(he,0)]):p.current.bt=!1}if(Ie&&"b"===pe[0]&&(be<J.top||p.current.tb)){var je=ye;ze?je+=F-B:je=Me.y-Ee.y-ae;var Be=dt(ve,je),He=dt(ve,je,G);Be>Se||Be===Se&&(!U||He>=ke)?(p.current.tb=!0,ye=je,ae=-ae,ge.points=[HP(pe,0),HP(he,0)]):p.current.tb=!1}var We=Le(Te),Ve=pe[1]===he[1];if(We&&"l"===pe[1]&&(we>J.right||p.current.rl)){var Ye=ve;Ve?Ye-=j-H:Ye=Ce.x-Pe.x-ie;var Xe=dt(Ye,ye),qe=dt(Ye,ye,G);Xe>Se||Xe===Se&&(!U||qe>=ke)?(p.current.rl=!0,ve=Ye,ie=-ie,ge.points=[HP(pe,1),HP(he,1)]):p.current.rl=!1}if(We&&"r"===pe[1]&&(xe<J.left||p.current.lr)){var Ue=ve;Ve?Ue+=j-H:Ue=Me.x-Ee.x-ie;var Ze=dt(Ue,ye),Ge=dt(Ue,ye,G);Ze>Se||Ze===Se&&(!U||Ge>=ke)?(p.current.lr=!0,ve=Ue,ie=-ie,ge.points=[HP(pe,1),HP(he,1)]):p.current.lr=!1}ht();var Ke=!0===De?0:De;"number"==typeof Ke&&(xe<G.left&&(ve-=xe-G.left-ie,f.x+H<G.left+Ke&&(ve+=f.x-G.left+H-Ke)),we>G.right&&(ve-=we-G.right-ie,f.x>G.right-Ke&&(ve+=f.x-G.right+Ke)));var Je=!0===Ae?0:Ae;"number"==typeof Je&&(be<G.top&&(ye-=be-G.top-ae,f.y+B<G.top+Je&&(ye+=f.y-G.top+B-Je)),_e>G.bottom&&(ye-=_e-G.bottom-ae,f.y>G.bottom-Je&&(ye+=f.y-G.bottom+Je)));var Qe=N.x+ve,et=Qe+j,tt=N.y+ye,nt=tt+F,rt=f.x,ot=rt+H,it=f.y,at=it+B,st=(Math.max(Qe,rt)+Math.min(et,ot))/2-Qe,lt=(Math.max(tt,it)+Math.min(nt,at))/2-tt;null==s||s(t,ge);var ct=Q.right-N.x-(ve+N.width),ut=Q.bottom-N.y-(ye+N.height);1===ee&&(ve=Math.round(ve),ct=Math.round(ct)),1===te&&(ye=Math.round(ye),ut=Math.round(ut)),u({ready:!0,offsetX:ve/ee,offsetY:ye/te,offsetR:ct/ee,offsetB:ut/te,arrowX:st/ee,arrowY:lt/te,scaleX:ee,scaleY:te,align:ge})}})),m=function(){u((function(e){return Og(Og({},e),{},{ready:!1})}))};return Ay(m,[o]),Ay((function(){e||m()}),[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&f()}))}]}(ke,ae,$&&null!==Fe?Fe:de,T,D,A,j),We=Vv(He,11),Ve=We[0],Ye=We[1],Xe=We[2],qe=We[3],Ue=We[4],Ze=We[5],Ge=We[6],Ke=We[7],Je=We[8],Qe=We[9],et=We[10],tt=function(e,t,n,o){return r.useMemo((function(){var r=TP(null!=n?n:t),i=TP(null!=o?o:t),a=new Set(r),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,o])}(Q,l,c,u),nt=Vv(tt,2),rt=nt[0],ot=nt[1],it=rt.has("click"),at=ot.has("click")||ot.has("contextMenu"),st=$x((function(){Ae||et()}));!function(e,t,n,r,o){Ay((function(){if(e&&t&&n){var i=n,a=LP(t),s=LP(i),l=AP(i),c=new Set([l].concat(Yv(a),Yv(s)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(ke,de,ae,st,(function(){Ee.current&&$&&at&&Ne(!1)})),Ay((function(){st()}),[Fe,T]),Ay((function(){!ke||null!=D&&D[T]||st()}),[JSON.stringify(A)]);var lt=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(NP(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(D,i,Qe,$);return ug(e,null==z?void 0:z(Qe))}),[Qe,z,D,i,$]);r.useImperativeHandle(n,(function(){return{nativeElement:pe.current,popupElement:le.current,forceAlign:st}}));var ct=Vv(r.useState(0),2),ut=ct[0],dt=ct[1],ht=Vv(r.useState(0),2),pt=ht[0],ft=ht[1],mt=function(){if(I&&de){var e=de.getBoundingClientRect();dt(e.width),ft(e.height)}};function gt(e,t,n,r){ve[e]=function(o){var i;null==r||r(o),Ne(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=ge[e])||void 0===i||i.call.apply(i,[ge,o].concat(s))}}Ay((function(){ze&&(et(),ze(),Re(null))}),[ze]),(it||at)&&(ve.onClick=function(e){var t;Ee.current&&at?Ne(!1):!Ee.current&&it&&(Be(e),Ne(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onClick)||void 0===t||t.call.apply(t,[ge,e].concat(r))});var vt,yt,bt=function(e,t,n,o,i,a,s,l){var c=r.useRef(e);c.current=e;var u=r.useRef(!1);return r.useEffect((function(){if(t&&o&&(!i||a)){var e=function(){u.current=!1},r=function(e){var t;!c.current||s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||l(!1)},d=AP(o);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",r,!0),d.addEventListener("contextmenu",r,!0);var h,p,f=wS(n);return f&&(f.addEventListener("mousedown",r,!0),f.addEventListener("contextmenu",r,!0)),"production"!==process.env.NODE_ENV&&_g((null==n||null===(h=n.getRootNode)||void 0===h?void 0:h.call(n))===(null===(p=o.getRootNode)||void 0===p?void 0:p.call(o)),"trigger element and popup element should in same shadow root."),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",r,!0),d.removeEventListener("contextmenu",r,!0),f&&(f.removeEventListener("mousedown",r,!0),f.removeEventListener("contextmenu",r,!0))}}}),[t,n,o,i,a]),function(){u.current=!0}}(ke,at,de,ae,_,w,ye,Ne),_t=rt.has("hover"),xt=ot.has("hover");_t&&(gt("onMouseEnter",!0,m,(function(e){Be(e)})),gt("onPointerEnter",!0,m,(function(e){Be(e)})),vt=function(e){(ke||Ae)&&null!=ae&&ae.contains(e.target)&&Ne(!0,m)},$&&(ve.onMouseMove=function(e){var t;null===(t=ge.onMouseMove)||void 0===t||t.call(ge,e)})),xt&&(gt("onMouseLeave",!1,v),gt("onPointerLeave",!1,v),yt=function(){Ne(!1,v)}),rt.has("focus")&&gt("onFocus",!0,y),ot.has("focus")&&gt("onBlur",!1,b),rt.has("contextMenu")&&(ve.onContextMenu=function(e){var t;Ee.current&&ot.has("contextMenu")?Ne(!1):(Be(e),Ne(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onContextMenu)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),U&&(ve.className=ug(ge.className,U));var wt=Og(Og({},ge),ve),St={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){G[e]&&(St[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=wt[e])||void 0===t||t.call.apply(t,[wt].concat(r)),G[e].apply(G,r)})}));var kt=r.cloneElement(me,Og(Og({},wt),St)),Ct={x:Ze,y:Ge},Et=B?Og({},!0!==B?B:{}):null;return r.createElement(r.Fragment,null,r.createElement(Av,{disabled:!ke,ref:fe,onResize:function(){mt(),st()}},r.createElement(PP,{getTriggerDOMNode:Z},kt)),r.createElement(OP.Provider,{value:re},r.createElement(MP,{portal:e,ref:ce,prefixCls:i,popup:M,className:ug(P,lt),style:O,target:de,onMouseEnter:vt,onMouseLeave:yt,onPointerEnter:vt,zIndex:L,open:ke,keepDom:Ae,fresh:R,onClick:F,onPointerDownCapture:bt,mask:_,motion:be,maskMotion:_e,onVisibleChanged:function(e){Le(!1),et(),null==f||f(e)},onPrepare:function(){return new Promise((function(e){mt(),Re((function(){return e}))}))},forceRender:k,autoDestroy:K,getPopupContainer:S,align:Qe,arrow:Et,arrowPos:Ct,ready:Ve,offsetX:Ye,offsetY:Xe,offsetR:qe,offsetB:Ue,onAlign:st,stretch:I,targetWidth:ut/Ke,targetHeight:pt/Je})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(RE);function YP(e,t,n){return ug({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const XP=(e,t)=>t||e;var qP=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:s}=r.useContext(xx),l=r.useContext(QM),c=null==s?void 0:s.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(o=null!=l?l:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,_x.includes(u)]};const UP=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}};var ZP={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"},GP=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:ZP}))},KP=r.forwardRef(GP);"production"!==process.env.NODE_ENV&&(KP.displayName="CheckOutlined");var JP=KP,QP={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"},eO=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:QP}))},tO=r.forwardRef(eO);"production"!==process.env.NODE_ENV&&(tO.displayName="DownOutlined");var nO=tO,rO={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"},oO=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:rO}))},iO=r.forwardRef(oO);"production"!==process.env.NODE_ENV&&(iO.displayName="SearchOutlined");var aO=iO;const sO=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${My(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},lO=Qx.map((e=>`${e}-inverse`)),cO=["success","processing","error","default","warning"];var uO,dO={exports:{}};var hO,pO=(uO||(uO=1,dO.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=g;var x="$isDayjsObject",w=function(e){return e instanceof E||!(!e||!e[x])},S=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();_[i]&&(o=i),n&&(_[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;_[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},k=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},C=y;C.l=S,C.i=w,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},f=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(r?v-_:v+(6-_),g);case s:case h:return f(y+"Hours",0);case a:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case o:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(r,u){var h,p=this;r=Number(r);var f=C.p(u),m=function(e){var t=k(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===s)return m(1);if(f===l)return m(7);var g=(h={},h[i]=t,h[a]=n,h[o]=e,h)[f]||1,v=this.$d.getTime()+r*g;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},h=function(e){return C.s(i%12||12,e,"0")},f=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return C.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(i,a,!0);case"A":return f(i,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,p){var f,m=this,g=C.p(h),v=k(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,_=function(){return C.m(m,v)};switch(g){case d:f=_()/12;break;case c:f=_();break;case u:f=_()/3;break;case l:f=(b-y)/6048e5;break;case s:f=(b-y)/864e5;break;case a:f=b/n;break;case i:f=b/t;break;case o:f=b/e;break;default:f=b}return p?f:C.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return _[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),M=E.prototype;return k.prototype=M,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",h]].forEach((function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,E,k),e.$i=!0),k},k.locale=S,k.isDayjs=w,k.unix=function(e){return k(1e3*e)},k.en=_[b],k.Ls=_,k.p={},k}()),dO.exports),fO=ye(pO),mO={exports:{}};var gO,vO=(hO||(hO=1,mO.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}),mO.exports),yO=ye(vO),bO={exports:{}};var _O,xO=(gO||(gO=1,bO.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),s=o(a[t]),l=o(a[n]),c=s||l.map((function(e){return e.slice(0,r)}));if(!i)return c;var u=a.weekStart;return c.map((function(e,t){return c[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}),bO.exports),wO=ye(xO),SO={exports:{}};var kO,CO=(_O||(_O=1,SO.exports=function(){var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()),SO.exports),EO=ye(CO),MO={exports:{}};var PO,OO=(kO||(kO=1,MO.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}),MO.exports),TO=ye(OO),NO={exports:{}};var DO,AO=(PO||(PO=1,NO.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}),NO.exports),LO=ye(AO),IO={exports:{}};var zO=(DO||(DO=1,IO.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[r,l("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,l("week")],ww:[r,l("week")],M:[o,l("month")],MM:[r,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=i.length,l=0;l<s;l+=1){var c=i[l],u=h[c],d=u&&u[0],p=u&&u[1];i[l]=p?{regex:d,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,l=o.parser,c=e.slice(r),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var s=i[1];if("string"==typeof s){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),i=o.year,a=o.month,s=o.day,l=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,h=o.zone,f=o.week,m=new Date,g=s||(i||a?1:m.getDate()),v=i||m.getFullYear(),y=0;i&&!a||(y=a>0?a-1:m.getMonth());var b,_=l||0,x=c||0,w=u||0,S=d||0;return h?new Date(Date.UTC(v,y,g,_,x,w,S+60*h.offset*1e3)):n?new Date(Date.UTC(v,y,g,_,x,w,S)):(b=new Date(v,y,g,_,x,w,S),f&&(b=r(b).week(f).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var h=s.length,f=1;f<=h;f+=1){i[1]=s[f-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===h&&(this.$d=new Date(""))}else o.call(this,e)}}}()),IO.exports),RO=ye(zO);fO.extend(RO),fO.extend(LO),fO.extend(yO),fO.extend(wO),fO.extend(EO),fO.extend(TO),fO.extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var $O={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},FO=function(e){return $O[e]||e.split("_")[0]},jO={getNow:function(){var e=fO();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return fO(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return fO().locale(FO(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(FO(e)).weekday(0)},getWeek:function(e,t){return t.locale(FO(e)).week()},getShortWeekDays:function(e){return fO().locale(FO(e)).localeData().weekdaysMin()},getShortMonths:function(e){return fO().locale(FO(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(FO(e)).format(n)},parse:function(e,t,n){for(var r=FO(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var s=a.split("-")[0],l=a.split("-")[1],c=fO(s,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=c.add(u,"week");if(d.format("Wo")===l)return d}return null}var h=fO(a,i,!0).locale(r);if(h.isValid())return h}return null}}};var BO=r.createContext(null),HO={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function WO(e){var t=e.popupElement,n=e.popupStyle,o=e.popupClassName,i=e.popupAlign,a=e.transitionName,s=e.getPopupContainer,l=e.children,c=e.range,u=e.placement,d=e.builtinPlacements,h=void 0===d?HO:d,p=e.direction,f=e.visible,m=e.onClose,g=r.useContext(BO).prefixCls,v="".concat(g,"-dropdown"),y=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(u,"rtl"===p);return r.createElement(VP,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:h,prefixCls:v,popupTransitionName:a,popup:t,popupAlign:i,popupVisible:f,popupClassName:ug(o,Mg(Mg({},"".concat(v,"-range"),c),"".concat(v,"-rtl"),"rtl"===p)),popupStyle:n,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:function(e){e||m()}},l)}function VO(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function YO(e){return null==e?[]:Array.isArray(e)?e:[e]}function XO(e,t,n){var r=Yv(e);return r[t]=n,r}function qO(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function UO(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function ZO(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find((function(t){return e[t]}));return r!==o?e[o]:void 0}function GO(e){return qO(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function KO(e,t,n,o){"production"!==process.env.NODE_ENV&&(kg(!t,"'dateRender' is deprecated. Please use 'cellRender' instead."),kg(!n,"'monthCellRender' is deprecated. Please use 'cellRender' instead."));var i=r.useMemo((function(){return e||function(e,r){var o=e;return t&&"date"===r.type?t(o,r.today):n&&"month"===r.type?n(o,r.locale):r.originNode}}),[e,n,t]),a=r.useCallback((function(e,t){return i(e,Og(Og({},t),{},{range:o}))}),[i,o]);return a}function JO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Vv(r.useState([!1,!1]),2),i=o[0],a=o[1],s=r.useMemo((function(){return i.map((function(r,o){if(r)return!0;var i=e[o];return!!i&&(!n[o]&&!i||!(!i||!t(i,{activeIndex:o})))}))}),[e,i,t,n]);return[s,function(e,t){a((function(n){return XO(n,t,e)}))}]}function QO(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function eT(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,s=t.use12Hours;return o.useMemo((function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,h=e.fieldQuarterFormat,p=e.yearFormat,f=e.cellYearFormat,m=e.cellQuarterFormat,g=e.dayFormat,v=e.cellDateFormat,y=QO(t,n,r,o,i);return Og(Og({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:f||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:v||g||"D"})}(e,n,r,i,a,s)}),[e,n,r,i,a,s])}function tT(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var nT=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function rT(e){return e&&"string"==typeof e}function oT(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function iT(e,t,n,r,o){var i=t,a=n,s=r;if(e||i||a||s||o){if(e){var l,c,u,d=[i,a,s].some((function(e){return!1===e})),h=[i,a,s].some((function(e){return!0===e})),p=!!d||!h;i=null!==(l=i)&&void 0!==l?l:p,a=null!==(c=a)&&void 0!==c?c:p,s=null!==(u=s)&&void 0!==u?u:p}}else i=!0,a=!0,s=!0;return[i,a,s,o]}function aT(e){var t=e.showTime,n=function(e){var t=qO(e,nT),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===Cg(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=Vv(n,2),o=r[0],i=r[1],a=t&&"object"===Cg(t)?t:{},s=Og(Og({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,h=Vv(iT(oT(c,u,d,l),c,u,d,l),3);return c=h[0],u=h[1],d=h[2],[s,Og(Og({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,i]}function sT(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=UO(e,o,null),s=[t,n],l=0;l<s.length;l+=1){var c=YO(s[l])[0];if(rT(c)){a=c;break}}var u=i.showHour,d=i.showMinute,h=i.showSecond,p=i.showMillisecond,f=tT(a,["a","A","LT","LLL","LTS"],i.use12Hours),m=oT(u,d,h,p);m||(u=tT(a,["H","h","k","LT","LLL"]),d=tT(a,["m","LT","LLL"]),h=tT(a,["s","LTS"]),p=tT(a,["SSS"]));var g=Vv(iT(m,u,d,h,p),3);u=g[0],d=g[1],h=g[2];var v=t||QO(u,d,h,p,f);return Og(Og({},i),{},{format:v,showHour:u,showMinute:d,showSecond:h,showMillisecond:p,use12Hours:f})}return null}function lT(e,t,n){return"production"!==process.env.NODE_ENV&&n&&kg(!1,"`clearIcon` will be removed in future. Please use `allowClear` instead."),!1===t?null:(t&&"object"===Cg(t)?t:{}).clearIcon||n||r.createElement("span",{className:"".concat(e,"-clear-btn")})}function cT(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function uT(e,t,n){return cT(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function dT(e,t,n){return cT(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function hT(e,t){return Math.floor(e.getMonth(t)/3)+1}function pT(e,t,n){return cT(t,n,(function(){return dT(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function fT(e,t,n){return cT(t,n,(function(){return dT(e,t,n)&&pT(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function mT(e,t,n){return cT(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function gT(e,t,n){return cT(t,n,(function(){return fT(e,t,n)&&mT(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function vT(e,t,n,r){return cT(n,r,(function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return dT(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}))}function yT(e,t,n,r,o){switch(o){case"date":return fT(e,n,r);case"week":return vT(e,t.locale,n,r);case"month":return pT(e,n,r);case"quarter":return function(e,t,n){return cT(t,n,(function(){return dT(e,t,n)&&hT(e,t)===hT(e,n)}))}(e,n,r);case"year":return dT(e,n,r);case"decade":return uT(e,n,r);case"time":return mT(e,n,r);default:return gT(e,n,r)}}function bT(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function _T(e,t,n,r,o){return!!yT(e,t,n,r,o)||e.isAfter(n,r)}function xT(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"==typeof o?o(e):n.locale.format(r.locale,e,o):""}function wT(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)})),r}function ST(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.useMemo((function(){var n=e?YO(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t])}function kT(e,t){var n=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,s=e.prefixCls,l=void 0===s?"rc-picker":s,c=e.styles,u=void 0===c?{}:c,d=e.classNames,h=void 0===d?{}:d,p=e.order,f=void 0===p||p,m=e.components,g=void 0===m?{}:m,v=e.inputRender,y=e.allowClear,b=e.clearIcon,_=e.needConfirm,x=e.multiple,w=e.format,S=e.inputReadOnly,k=e.disabledDate,C=e.minDate,E=e.maxDate,M=e.showTime,P=e.value,O=e.defaultValue,T=e.pickerValue,N=e.defaultPickerValue,D=ST(P),A=ST(O),L=ST(T),I=ST(N),z="date"===a&&M?"datetime":a,R="time"===z||"datetime"===z,$=R||x,F=null!=_?_:R,j=Vv(aT(e),4),B=j[0],H=j[1],W=j[2],V=j[3],Y=eT(o,H),X=r.useMemo((function(){return sT(z,W,V,B,Y)}),[z,W,V,B,Y]);"production"!==process.env.NODE_ENV&&"time"===a&&["disabledHours","disabledMinutes","disabledSeconds"].some((function(t){return e[t]}))&&kg(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.");var q=r.useMemo((function(){return Og(Og({},e),{},{prefixCls:l,locale:Y,picker:a,styles:u,classNames:h,order:f,components:Og({input:v},g),clearIcon:lT(l,y,b),showTime:X,value:D,defaultValue:A,pickerValue:L,defaultPickerValue:I},null==t?void 0:t())}),[e]),U=function(e,t,n){return r.useMemo((function(){var r=YO(UO(e,t,n)),o=r[0],i="object"===Cg(o)&&"mask"===o.type?o.format:null;return[r.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,t,n])}(z,Y,w),Z=Vv(U,2),G=Z[0],K=Z[1],J=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(G,S,x),Q=function(e,t,n,r,o){var i=$x((function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||yT(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||yT(e,t,o,i,a.type))}));return i}(n,o,k,C,E),ee=function(e,t,n,r){var o=$x((function(o,i){var a=Og({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var s,l=i&&1===i.activeIndex?"end":"start",c=(null===(s=r.disabledTime)||void 0===s?void 0:s.call(r,o,l,{from:a.from}))||{},u=c.disabledHours,d=c.disabledMinutes,h=c.disabledSeconds,p=c.disabledMilliseconds,f=r.disabledHours,m=r.disabledMinutes,g=r.disabledSeconds,v=u||f,y=d||m,b=h||g,_=e.getHour(o),x=e.getMinute(o),w=e.getSecond(o),S=e.getMillisecond(o);if(v&&v().includes(_))return!0;if(y&&y(_).includes(x))return!0;if(b&&b(_,x).includes(w))return!0;if(p&&p(_,x,w).includes(S))return!0}return!1}));return o}(n,a,Q,X);return[r.useMemo((function(){return Og(Og({},q),{},{needConfirm:F,inputReadOnly:J,disabledDate:Q})}),[q,F,J,Q]),z,$,G,K,ee]}function CT(e,t){var n,r,i,a,s,l,c,u,d,h,p=arguments.length>3?arguments[3]:void 0,f=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,m=(r=p,i=Vv(Hx(t||!1,{value:n=f}),2),a=i[0],s=i[1],l=o.useRef(n),c=o.useRef(),u=function(){Bv.cancel(c.current)},d=$x((function(){s(l.current),r&&a!==l.current&&r(l.current)})),h=$x((function(e,t){u(),l.current=e,e||t?d():c.current=Bv(d)})),o.useEffect((function(){return u}),[]),[a,h]),g=Vv(m,2),v=g[0],y=g[1];return[v,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!v||y(e,t.force)}]}function ET(e){var t=r.useRef();return r.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function MT(e,t){return r.useMemo((function(){return e||(t?(kg(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=Vv(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function PT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=r.useRef(t);o.current=t,Ly((function(){if(!e){var t=Bv((function(){o.current(e)}),n);return function(){Bv.cancel(t)}}o.current(e)}),[e])}function OT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Vv(r.useState(0),2),i=o[0],a=o[1],s=Vv(r.useState(!1),2),l=s[0],c=s[1],u=r.useRef([]),d=r.useRef(null),h=r.useRef(null),p=function(e){d.current=e};return PT(l||n,(function(){l||(u.current=[],p(null))})),r.useEffect((function(){l&&u.current.push(i)}),[l,i]),[l,function(e){c(e)},function(e){return e&&(h.current=e),h.current},i,a,function(n){var r=u.current,o=new Set(r.filter((function(e){return n[e]||t[e]}))),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},u.current,p,function(e){return d.current===e}]}function TT(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var NT=[];function DT(e,t,n,o,i,a,s,l){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:NT,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:NT,d=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,f="time"===s,m=a||0,g=function(t){var r=e.getNow();return f&&(r=wT(e,r)),c[t]||n[t]||r},v=Vv(arguments.length>9&&void 0!==arguments[9]?arguments[9]:NT,2),y=v[0],b=v[1],_=Vv(Hx((function(){return g(0)}),{value:y}),2),x=_[0],w=_[1],S=Vv(Hx((function(){return g(1)}),{value:b}),2),k=S[0],C=S[1],E=r.useMemo((function(){var t=[x,k][m];return f?t:wT(e,t,u[m])}),[f,x,k,m,e,u]),M=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[w,C][m])(n);var i=[x,k];i[m]=n,!d||yT(e,t,x,i[0],s)&&yT(e,t,k,i[1],s)||d(i,{source:r,range:1===m?"end":"start",mode:o})},P=r.useRef(null);return Ay((function(){if(i&&!c[m]){var r=f?null:e.getNow();if(null!==P.current&&P.current!==m?r=[x,k][1^m]:n[m]?r=0===m?n[0]:function(n,r){if(l){var o={date:"month",week:"month",month:"year",quarter:"year"}[s];if(o&&!yT(e,t,n,r,o))return TT(e,s,r,-1);if("year"===s&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return TT(e,s,r,-1)}return r}(n[0],n[1]):n[1^m]&&(r=n[1^m]),r){h&&e.isAfter(h,r)&&(r=h);var o=l?TT(e,s,r,1):r;p&&e.isAfter(o,p)&&(r=l?TT(e,s,p,-1):p),M(r,"reset")}}}),[i,m,n[m]]),r.useEffect((function(){P.current=i?m:null}),[i,m]),Ay((function(){i&&c&&c[m]&&M(c[m],"reset")}),[i,m]),[E,M]}function AT(e,t){var n=r.useRef(e),o=Vv(r.useState({}),2)[1],i=function(e){return e&&void 0!==t?t:n.current};return[i,function(e){n.current=e,o({})},i(!0)]}var LT=[];function IT(e,t,n){return[function(r){return r.map((function(r){return xT(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,s=n[i]||null;if(a!==s&&!gT(e,a,s)){o=i;break}}return[o<0,0!==o]}]}function zT(e,t){return Yv(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function RT(e,t,n,o,i,a,s,l,c){var u=Vv(Hx(a,{value:s}),2),d=u[0],h=u[1],p=d||LT,f=function(e){var t=Vv(AT(e),2),n=t[0],o=t[1],i=$x((function(){o(e)}));return r.useEffect((function(){i()}),[e]),[n,o]}(p),m=Vv(f,2),g=m[0],v=m[1],y=Vv(IT(e,t,n),2),b=y[0],_=y[1],x=$x((function(t){var n=Yv(t);if(o)for(var r=0;r<2;r+=1)n[r]=n[r]||null;else i&&(n=zT(n.filter((function(e){return e})),e));var a=Vv(_(g(),n),2),s=a[0],c=a[1];if(!s&&(v(n),l)){var u=b(n);l(n,u,{range:c?"end":"start"})}}));return[p,h,g,x,function(){c&&c(g())}]}function $T(e,t,n,o,i,a,s,l,c,u){var d=e.generateConfig,h=e.locale,p=e.picker,f=e.onChange,m=e.allowEmpty,g=e.order,v=!a.some((function(e){return e}))&&g,y=Vv(IT(d,h,s),2),b=y[0],_=y[1],x=Vv(AT(t),2),w=x[0],S=x[1],k=$x((function(){S(t)}));r.useEffect((function(){k()}),[t]);var C=$x((function(e){var r=null===e,o=Yv(e||w());if(r)for(var s=Math.max(a.length,o.length),l=0;l<s;l+=1)a[l]||(o[l]=null);v&&o[0]&&o[1]&&(o=zT(o,d)),i(o);var c=Vv(o,2),y=c[0],x=c[1],S=!y,k=!x,C=!m||(!S||m[0])&&(!k||m[1]),E=!g||S||k||yT(d,h,y,x,p)||d.isAfter(x,y),M=(a[0]||!y||!u(y,{activeIndex:0}))&&(a[1]||!x||!u(x,{from:y,activeIndex:1})),P=r||C&&E&&M;if(P){n(o);var O=Vv(_(o,t),1)[0];f&&!O&&f(r&&o.every((function(e){return!e}))?null:o,b(o))}return P})),E=$x((function(e,t){var n=XO(w(),e,o()[e]);S(n),t&&C()})),M=!l&&!c;return PT(!M,(function(){M&&(C(),i(t),k())}),2),[E,C]}function FT(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function jT(){return[]}function BT(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],s=n>=1?0|n:1,l=e;l<=t;l+=s){var c=o.includes(l);c&&r||a.push({label:VO(l,i),value:l,disabled:c})}return a}function HT(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=n.use12Hours,i=n.hourStep,a=void 0===i?1:i,s=n.minuteStep,l=void 0===s?1:s,c=n.secondStep,u=void 0===c?1:c,d=n.millisecondStep,h=void 0===d?100:d,p=n.hideDisabledOptions,f=n.disabledTime,m=n.disabledHours,g=n.disabledMinutes,v=n.disabledSeconds,y=r.useMemo((function(){return t||e.getNow()}),[t,e]);if("production"!==process.env.NODE_ENV){var b=60%l==0,_=60%u==0;kg(24%a==0,"`hourStep` ".concat(a," is invalid. It should be a factor of 24.")),kg(b,"`minuteStep` ".concat(l," is invalid. It should be a factor of 60.")),kg(_,"`secondStep` ".concat(u," is invalid. It should be a factor of 60."))}var x=r.useCallback((function(e){var t=(null==f?void 0:f(e))||{};return[t.disabledHours||m||jT,t.disabledMinutes||g||jT,t.disabledSeconds||v||jT,t.disabledMilliseconds||jT]}),[f,m,g,v]),w=Vv(r.useMemo((function(){return x(y)}),[y,x]),4),S=w[0],k=w[1],C=w[2],E=w[3],M=r.useCallback((function(e,t,n,r){var i=BT(0,23,a,p,e()),s=o?i.map((function(e){return Og(Og({},e),{},{label:VO(e.value%12||12,2)})})):i;return[s,function(e){return BT(0,59,l,p,t(e))},function(e,t){return BT(0,59,u,p,n(e,t))},function(e,t,n){return BT(0,999,h,p,r(e,t,n),3)}]}),[p,a,o,h,l,u]),P=Vv(r.useMemo((function(){return M(S,k,C,E)}),[M,S,k,C,E]),4),O=P[0],T=P[1],N=P[2],D=P[3];return[function(t,n){var r=function(){return O},o=T,i=N,a=D;if(n){var s=Vv(x(n),4),l=s[0],c=s[1],u=s[2],d=s[3],h=Vv(M(l,c,u,d),4),p=h[0];r=function(){return p},o=h[1],i=h[2],a=h[3]}var f=function(e,t,n,r,o,i){var a=e;function s(e,t,n){var r=i[e](a),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var s=n.filter((function(e){return!e.disabled})),l=Yv(s).reverse().find((function(e){return e.value<=r}))||s[0];l&&(r=l.value,a=i[t](a,r))}return r}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",o(l,c,u)),a}(t,r,o,i,a,e);return f},O,T,N,D]}function WT(e){var t=e.mode,n=e.internalMode,o=e.renderExtraFooter,i=e.showNow,a=e.showTime,s=e.onSubmit,l=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,h=e.disabledDate,p=r.useContext(BO),f=p.prefixCls,m=p.locale,g=p.button,v=void 0===g?"button":g,y=d.getNow(),b=Vv(HT(d,a,y),1)[0],_=null==o?void 0:o(t),x=h(y,{type:t}),w="".concat(f,"-now"),S="".concat(w,"-btn"),k=i&&r.createElement("li",{className:w},r.createElement("a",{className:ug(S,x&&"".concat(S,"-disabled")),"aria-disabled":x,onClick:function(){if(!x){var e=b(y);l(e)}}},"date"===n?m.today:m.now)),C=u&&r.createElement("li",{className:"".concat(f,"-ok")},r.createElement(v,{disabled:c,onClick:s},m.ok)),E=(k||C)&&r.createElement("ul",{className:"".concat(f,"-ranges")},k,C);return _||E?r.createElement("div",{className:"".concat(f,"-footer")},_&&r.createElement("div",{className:"".concat(f,"-footer-extra")},_),E):null}function VT(e,t,n){return function(r,o){var i=r.findIndex((function(r){return yT(e,t,r,o,n)}));if(-1===i)return[].concat(Yv(r),[o]);var a=Yv(r);return a.splice(i,1),a}}var YT=r.createContext(null);function XT(){return r.useContext(YT)}function qT(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,h=e.values,p=e.pickerValue,f=e.onSelect,m=e.prevIcon,g=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,b=r.getNow();return[{now:b,values:h,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:f,panelType:t,prevIcon:m,nextIcon:g,superPrevIcon:v,superNextIcon:y},b]}var UT=r.createContext({});function ZT(e){for(var t=e.rowNum,n=e.colNum,o=e.baseDate,i=e.getCellDate,a=e.prefixColumn,s=e.rowClassName,l=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,h=e.cellSelection,p=void 0===h||h,f=e.disabledDate,m=XT(),g=m.prefixCls,v=m.panelType,y=m.now,b=m.disabledDate,_=m.cellRender,x=m.onHover,w=m.hoverValue,S=m.hoverRangeValue,k=m.generateConfig,C=m.values,E=m.locale,M=m.onSelect,P=f||b,O="".concat(g,"-cell"),T=r.useContext(UT).onCellDblClick,N=function(e){return C.some((function(t){return t&&yT(k,E,e,t,v)}))},D=[],A=0;A<t;A+=1){for(var L=[],I=void 0,z=function(){var e=i(o,A*n+R),t=null==P?void 0:P(e,{type:v});0===R&&(I=e,a&&L.push(a(I)));var s=!1,d=!1,h=!1;if(p&&S){var f=Vv(S,2),m=f[0],b=f[1];s=bT(k,m,b,e),d=yT(k,E,e,m,v),h=yT(k,E,e,b,v)}var C=l?xT(e,{locale:E,format:l,generateConfig:k}):void 0,D=r.createElement("div",{className:"".concat(O,"-inner")},c(e));L.push(r.createElement("td",{key:R,title:C,className:ug(O,Og(Mg(Mg(Mg(Mg(Mg(Mg({},"".concat(O,"-disabled"),t),"".concat(O,"-hover"),(w||[]).some((function(t){return yT(k,E,e,t,v)}))),"".concat(O,"-in-range"),s&&!d&&!h),"".concat(O,"-range-start"),d),"".concat(O,"-range-end"),h),"".concat(g,"-cell-selected"),!S&&"week"!==v&&N(e)),u(e))),onClick:function(){t||M(e)},onDoubleClick:function(){!t&&T&&T()},onMouseEnter:function(){t||null==x||x(e)},onMouseLeave:function(){t||null==x||x(null)}},_?_(e,{prefixCls:g,originNode:D,today:y,type:v,locale:E}):D))},R=0;R<n;R+=1)z();D.push(r.createElement("tr",{key:A,className:null==s?void 0:s(I)},L))}return r.createElement("div",{className:"".concat(g,"-body")},r.createElement("table",{className:"".concat(g,"-content")},d&&r.createElement("thead",null,r.createElement("tr",null,d)),r.createElement("tbody",null,D)))}"production"!==process.env.NODE_ENV&&(UT.displayName="PickerHackContext");var GT={visibility:"hidden"};function KT(e){var t=e.offset,n=e.superOffset,o=e.onChange,i=e.getStart,a=e.getEnd,s=e.children,l=XT(),c=l.prefixCls,u=l.prevIcon,d=void 0===u?"‹":u,h=l.nextIcon,p=void 0===h?"›":h,f=l.superPrevIcon,m=void 0===f?"«":f,g=l.superNextIcon,v=void 0===g?"»":g,y=l.minDate,b=l.maxDate,_=l.generateConfig,x=l.locale,w=l.pickerValue,S=l.panelType,k="".concat(c,"-header"),C=r.useContext(UT),E=C.hidePrev,M=C.hideNext,P=C.hideHeader,O=r.useMemo((function(){if(!y||!t||!a)return!1;var e=a(t(-1,w));return!_T(_,x,e,y,S)}),[y,t,w,a,_,x,S]),T=r.useMemo((function(){if(!y||!n||!a)return!1;var e=a(n(-1,w));return!_T(_,x,e,y,S)}),[y,n,w,a,_,x,S]),N=r.useMemo((function(){if(!b||!t||!i)return!1;var e=i(t(1,w));return!_T(_,x,b,e,S)}),[b,t,w,i,_,x,S]),D=r.useMemo((function(){if(!b||!n||!i)return!1;var e=i(n(1,w));return!_T(_,x,b,e,S)}),[b,n,w,i,_,x,S]),A=function(e){t&&o(t(e,w))},L=function(e){n&&o(n(e,w))};if(P)return null;var I="".concat(k,"-prev-btn"),z="".concat(k,"-next-btn"),R="".concat(k,"-super-prev-btn"),$="".concat(k,"-super-next-btn");return r.createElement("div",{className:k},n&&r.createElement("button",{type:"button","aria-label":x.previousYear,onClick:function(){return L(-1)},tabIndex:-1,className:ug(R,T&&"".concat(R,"-disabled")),disabled:T,style:E?GT:{}},m),t&&r.createElement("button",{type:"button","aria-label":x.previousMonth,onClick:function(){return A(-1)},tabIndex:-1,className:ug(I,O&&"".concat(I,"-disabled")),disabled:O,style:E?GT:{}},d),r.createElement("div",{className:"".concat(k,"-view")},s),t&&r.createElement("button",{type:"button","aria-label":x.nextMonth,onClick:function(){return A(1)},tabIndex:-1,className:ug(z,N&&"".concat(z,"-disabled")),disabled:N,style:M?GT:{}},p),n&&r.createElement("button",{type:"button","aria-label":x.nextYear,onClick:function(){return L(1)},tabIndex:-1,className:ug($,D&&"".concat($,"-disabled")),disabled:D,style:M?GT:{}},v))}function JT(e){var t=e.prefixCls,n=e.panelName,o=void 0===n?"date":n,i=e.locale,a=e.generateConfig,s=e.pickerValue,l=e.onPickerValueChange,c=e.onModeChange,u=e.mode,d=void 0===u?"date":u,h=e.disabledDate,p=e.onSelect,f=e.onHover,m=e.showWeek,g="".concat(t,"-").concat(o,"-panel"),v="".concat(t,"-cell"),y="week"===d,b=Vv(qT(e,d),2),_=b[0],x=b[1],w=a.locale.getWeekFirstDay(i.locale),S=a.setDate(s,1),k=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,a,S),C=a.getMonth(s),E=(void 0===m?y:m)?function(e){var t=null==h?void 0:h(e,{type:"week"});return r.createElement("td",{key:"week",className:ug(v,"".concat(v,"-week"),Mg({},"".concat(v,"-disabled"),t)),onClick:function(){t||p(e)},onMouseEnter:function(){t||null==f||f(e)},onMouseLeave:function(){t||null==f||f(null)}},r.createElement("div",{className:"".concat(v,"-inner")},a.locale.getWeek(i.locale,e)))}:null,M=[],P=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);E&&M.push(r.createElement("th",{key:"empty"},r.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},i.week)));for(var O=0;O<7;O+=1)M.push(r.createElement("th",{key:O},P[(O+w)%7]));var T=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),N=r.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){c("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},xT(s,{locale:i,format:i.yearFormat,generateConfig:a})),D=r.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){c("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?xT(s,{locale:i,format:i.monthFormat,generateConfig:a}):T[C]),A=i.monthBeforeYear?[D,N]:[N,D];return r.createElement(YT.Provider,{value:_},r.createElement("div",{className:ug(g,m&&"".concat(g,"-show-week"))},r.createElement(KT,{offset:function(e){return a.addMonth(s,e)},superOffset:function(e){return a.addYear(s,e)},onChange:l,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},A),r.createElement(ZT,dg({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:k,headerCells:M,getCellDate:function(e,t){return a.addDate(e,t)},getCellText:function(e){return xT(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},getCellClassName:function(e){return Mg(Mg({},"".concat(t,"-cell-in-view"),pT(a,e,s)),"".concat(t,"-cell-today"),fT(a,e,x))},prefixColumn:E,cellSelection:!y}))))}var QT=1/3;function eN(e){return e.map((function(e){return[e.value,e.label,e.disabled].join(",")})).join(";")}function tN(e){var t=e.units,n=e.value,o=e.optionalValue,i=e.type,a=e.onChange,s=e.onHover,l=e.onDblClick,c=e.changeOnScroll,u=XT(),d=u.prefixCls,h=u.cellRender,p=u.now,f=u.locale,m="".concat(d,"-time-panel"),g="".concat(d,"-time-panel-cell"),v=r.useRef(null),y=r.useRef(),b=function(){clearTimeout(y.current)},_=function(e,t){var n=r.useRef(!1),o=r.useRef(null),i=r.useRef(null),a=function(){Bv.cancel(o.current),n.current=!1},s=r.useRef();return[$x((function(){var r=e.current;if(i.current=null,s.current=0,r){var l=r.querySelector('[data-value="'.concat(t,'"]')),c=r.querySelector("li");l&&c&&function e(){a(),n.current=!0,s.current+=1;var t=r.scrollTop,u=c.offsetTop,d=l.offsetTop,h=d-u;if(0===d&&l!==c||!Ek(r))s.current<=5&&(o.current=Bv(e));else{var p=t+(h-t)*QT,f=Math.abs(h-p);if(null!==i.current&&i.current<f)a();else{if(i.current=f,f<=1)return r.scrollTop=h,void a();r.scrollTop=p,o.current=Bv(e)}}}()}})),a,function(){return n.current}]}(v,null!=n?n:o),x=Vv(_,3),w=x[0],S=x[1],k=x[2];Ay((function(){return w(),b(),function(){S(),b()}}),[n,o,eN(t)]);var C="".concat(m,"-column");return r.createElement("ul",{className:C,ref:v,"data-type":i,onScroll:function(e){b();var n=e.target;!k()&&c&&(y.current=setTimeout((function(){var e=v.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-r})),i=o.map((function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)})),s=Math.min.apply(Math,Yv(i)),l=i.findIndex((function(e){return e===s})),c=t[l];c&&!c.disabled&&a(c.value)}),300))}},t.map((function(e){var t=e.label,o=e.value,c=e.disabled,u=r.createElement("div",{className:"".concat(g,"-inner")},t);return r.createElement("li",{key:o,className:ug(g,Mg(Mg({},"".concat(g,"-selected"),n===o),"".concat(g,"-disabled"),c)),onClick:function(){c||a(o)},onDoubleClick:function(){!c&&l&&l()},onMouseEnter:function(){s(o)},onMouseLeave:function(){s(null)},"data-value":o},h?h(o,{prefixCls:d,originNode:u,today:p,type:"time",subType:i,locale:f}):u)})))}function nN(e){return e<12}function rN(e){var t=e.showHour,n=e.showMinute,o=e.showSecond,i=e.showMillisecond,a=e.use12Hours,s=e.changeOnScroll,l=XT(),c=l.prefixCls,u=l.values,d=l.generateConfig,h=l.locale,p=l.onSelect,f=l.onHover,m=void 0===f?function(){}:f,g=l.pickerValue,v=(null==u?void 0:u[0])||null,y=r.useContext(UT).onCellDblClick,b=Vv(HT(d,e,v),5),_=b[0],x=b[1],w=b[2],S=b[3],k=b[4],C=function(e){return[v&&d[e](v),g&&d[e](g)]},E=Vv(C("getHour"),2),M=E[0],P=E[1],O=Vv(C("getMinute"),2),T=O[0],N=O[1],D=Vv(C("getSecond"),2),A=D[0],L=D[1],I=Vv(C("getMillisecond"),2),z=I[0],R=I[1],$=null===M?null:nN(M)?"am":"pm",F=r.useMemo((function(){return a?nN(M)?x.filter((function(e){return nN(e.value)})):x.filter((function(e){return!nN(e.value)})):x}),[M,x,a]),j=function(e,t){var n,r=e.filter((function(e){return!e.disabled}));return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},B=j(x,M),H=r.useMemo((function(){return w(B)}),[w,B]),W=j(H,T),V=r.useMemo((function(){return S(B,W)}),[S,B,W]),Y=j(V,A),X=r.useMemo((function(){return k(B,W,Y)}),[k,B,W,Y]),q=j(X,z),U=r.useMemo((function(){if(!a)return[];var e=d.getNow(),t=d.setHour(e,6),n=d.setHour(e,18),r=function(e,t){var n=h.cellMeridiemFormat;return n?xT(e,{generateConfig:d,locale:h,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:x.every((function(e){return e.disabled||!nN(e.value)}))},{label:r(n,"PM"),value:"pm",disabled:x.every((function(e){return e.disabled||nN(e.value)}))}]}),[x,a,d,h]),Z=function(e){var t=_(e);p(t)},G=r.useMemo((function(){var e=v||g||d.getNow(),t=function(e){return null!=e};return t(M)?(e=d.setHour(e,M),e=d.setMinute(e,T),e=d.setSecond(e,A),e=d.setMillisecond(e,z)):t(P)?(e=d.setHour(e,P),e=d.setMinute(e,N),e=d.setSecond(e,L),e=d.setMillisecond(e,R)):t(B)&&(e=d.setHour(e,B),e=d.setMinute(e,W),e=d.setSecond(e,Y),e=d.setMillisecond(e,q)),e}),[v,g,M,T,A,z,B,W,Y,q,P,N,L,R,d]),K=function(e,t){return null===e?null:d[t](G,e)},J=function(e){return K(e,"setHour")},Q=function(e){return K(e,"setMinute")},ee=function(e){return K(e,"setSecond")},te=function(e){return K(e,"setMillisecond")},ne=function(e){return null===e?null:"am"!==e||nN(M)?"pm"===e&&nN(M)?d.setHour(G,M+12):G:d.setHour(G,M-12)},re={onDblClick:y,changeOnScroll:s};return r.createElement("div",{className:"".concat(c,"-content")},t&&r.createElement(tN,dg({units:F,value:M,optionalValue:P,type:"hour",onChange:function(e){Z(J(e))},onHover:function(e){m(J(e))}},re)),n&&r.createElement(tN,dg({units:H,value:T,optionalValue:N,type:"minute",onChange:function(e){Z(Q(e))},onHover:function(e){m(Q(e))}},re)),o&&r.createElement(tN,dg({units:V,value:A,optionalValue:L,type:"second",onChange:function(e){Z(ee(e))},onHover:function(e){m(ee(e))}},re)),i&&r.createElement(tN,dg({units:X,value:z,optionalValue:R,type:"millisecond",onChange:function(e){Z(te(e))},onHover:function(e){m(te(e))}},re)),a&&r.createElement(tN,dg({units:U,value:$,type:"meridiem",onChange:function(e){Z(ne(e))},onHover:function(e){m(ne(e))}},re)))}function oN(e){var t=e.prefixCls,n=e.value,o=e.locale,i=e.generateConfig,a=e.showTime,s=(a||{}).format,l="".concat(t,"-time-panel"),c=Vv(qT(e,"time"),1)[0];return r.createElement(YT.Provider,{value:c},r.createElement("div",{className:ug(l)},r.createElement(KT,null,n?xT(n,{locale:o,format:s,generateConfig:i}):" "),r.createElement(rN,a)))}var iN={date:JT,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,o=e.showTime,i=e.onSelect,a=e.value,s=e.pickerValue,l=e.onHover,c="".concat(t,"-datetime-panel"),u=Vv(HT(n,o),1)[0],d=function(e){return wT(n,e,a||s)};return r.createElement("div",{className:c},r.createElement(JT,dg({},e,{onSelect:function(e){var t=d(e);i(u(t,t))},onHover:function(e){null==l||l(e?d(e):e)}})),r.createElement(oN,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,i=e.value,a=e.hoverValue,s=e.hoverRangeValue,l=o.locale,c="".concat(t,"-week-panel-row");return r.createElement(JT,dg({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(s){var r=Vv(s,2),o=r[0],u=r[1],d=vT(n,l,o,e),h=vT(n,l,u,e);t["".concat(c,"-range-start")]=d,t["".concat(c,"-range-end")]=h,t["".concat(c,"-range-hover")]=!d&&!h&&bT(n,o,u,e)}return a&&(t["".concat(c,"-hover")]=a.some((function(t){return vT(n,l,e,t)}))),ug(c,Mg({},"".concat(c,"-selected"),!s&&vT(n,l,i,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-month-panel"),u=Vv(qT(e,"month"),1)[0],d=o.setMonth(i,0),h=n.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(n.locale):[]),p=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,o.getMonth(n)+1),i=o.addDate(r,-1);return a(n,t)&&a(i,t)}:null,f=r.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},xT(i,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(YT.Provider,{value:u},r.createElement("div",{className:c},r.createElement(KT,{superOffset:function(e){return o.addYear(i,e)},onChange:s,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},f),r.createElement(ZT,dg({},e,{disabledDate:p,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(e,t){return o.addMonth(e,t)},getCellText:function(e){var t=o.getMonth(e);return n.monthFormat?xT(e,{locale:n,format:n.monthFormat,generateConfig:o}):h[t]},getCellClassName:function(){return Mg({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-quarter-panel"),c=Vv(qT(e,"quarter"),1)[0],u=o.setMonth(i,0),d=r.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},xT(i,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(YT.Provider,{value:c},r.createElement("div",{className:l},r.createElement(KT,{superOffset:function(e){return o.addYear(i,e)},onChange:a,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},d),r.createElement(ZT,dg({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return o.addMonth(e,3*t)},getCellText:function(e){return xT(e,{locale:n,format:n.cellQuarterFormat,generateConfig:o})},getCellClassName:function(){return Mg({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-year-panel"),u=Vv(qT(e,"year"),1)[0],d=function(e){var t=10*Math.floor(o.getYear(e)/10);return o.setYear(e,t)},h=function(e){var t=d(e);return o.addYear(t,9)},p=d(i),f=h(i),m=o.addYear(p,-1),g=a?function(e,t){var n=o.setMonth(e,0),r=o.setDate(n,1),i=o.addYear(r,1),s=o.addDate(i,-1);return a(r,t)&&a(s,t)}:null,v=r.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){l("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},xT(p,{locale:n,format:n.yearFormat,generateConfig:o}),"-",xT(f,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(YT.Provider,{value:u},r.createElement("div",{className:c},r.createElement(KT,{superOffset:function(e){return o.addYear(i,10*e)},onChange:s,getStart:d,getEnd:h},v),r.createElement(ZT,dg({},e,{disabledDate:g,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:function(e,t){return o.addYear(e,t)},getCellText:function(e){return xT(e,{locale:n,format:n.cellYearFormat,generateConfig:o})},getCellClassName:function(e){return Mg({},"".concat(t,"-cell-in-view"),dT(o,e,p)||dT(o,e,f)||bT(o,p,f,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l="".concat(t,"-decade-panel"),c=Vv(qT(e,"decade"),1)[0],u=function(e){var t=100*Math.floor(o.getYear(e)/100);return o.setYear(e,t)},d=function(e){var t=u(e);return o.addYear(t,99)},h=u(i),p=d(i),f=o.addYear(h,-10),m=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,0),i=o.setYear(r,10*Math.floor(o.getYear(r)/10)),s=o.addYear(i,10),l=o.addDate(s,-1);return a(i,t)&&a(l,t)}:null,g="".concat(xT(h,{locale:n,format:n.yearFormat,generateConfig:o}),"-").concat(xT(p,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(YT.Provider,{value:c},r.createElement("div",{className:l},r.createElement(KT,{superOffset:function(e){return o.addYear(i,100*e)},onChange:s,getStart:u,getEnd:d},g),r.createElement(ZT,dg({},e,{disabledDate:m,colNum:3,rowNum:4,baseDate:f,getCellDate:function(e,t){return o.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,r=xT(e,{locale:n,format:t,generateConfig:o}),i=xT(o.addYear(e,9),{locale:n,format:t,generateConfig:o});return"".concat(r,"-").concat(i)},getCellClassName:function(e){return Mg({},"".concat(t,"-cell-in-view"),uT(o,e,h)||uT(o,e,p)||bT(o,h,p,e))}}))))},time:oN};function aN(e,t){var n,o=e.locale,i=e.generateConfig,a=e.direction,s=e.prefixCls,l=e.tabIndex,c=void 0===l?0:l,u=e.multiple,d=e.defaultValue,h=e.value,p=e.onChange,f=e.onSelect,m=e.defaultPickerValue,g=e.pickerValue,v=e.onPickerValueChange,y=e.mode,b=e.onPanelChange,_=e.picker,x=void 0===_?"date":_,w=e.showTime,S=e.hoverValue,k=e.hoverRangeValue,C=e.cellRender,E=e.dateRender,M=e.monthCellRender,P=e.components,O=void 0===P?{}:P,T=e.hideHeader,N=(null===(n=r.useContext(BO))||void 0===n?void 0:n.prefixCls)||s||"rc-picker",D=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:D.current}}));var A=Vv(aT(e),4),L=A[0],I=A[1],z=A[2],R=A[3],$=eT(o,I),F="date"===x&&w?"datetime":x,j=r.useMemo((function(){return sT(F,z,R,L,$)}),[F,z,R,L,$]),B=i.getNow(),H=Vv(Hx(x,{value:y,postState:function(e){return e||"date"}}),2),W=H[0],V=H[1],Y="date"===W&&j?"datetime":W,X=VT(i,o,F),q=Vv(Hx(d,{value:h}),2),U=q[0],Z=q[1],G=r.useMemo((function(){var e=YO(U).filter((function(e){return e}));return u?e:e.slice(0,1)}),[U,u]),K=$x((function(e){Z(e),p&&(null===e||G.length!==e.length||G.some((function(t,n){return!yT(i,o,t,e[n],F)})))&&(null==p||p(u?e:e[0]))})),J=$x((function(e){if(null==f||f(e),W===x){var t=u?X(G,e):[e];K(t)}})),Q=Vv(Hx(m||G[0]||B,{value:g}),2),ee=Q[0],te=Q[1];r.useEffect((function(){G[0]&&!g&&te(G[0])}),[G[0]]);var ne=function(e,t){null==b||b(e||g,t||W)},re=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];te(e),null==v||v(e),t&&ne(e)},oe=function(e,t){V(e),t&&re(t),ne(t,e)},ie=r.useMemo((function(){var e,t;if(Array.isArray(k)){var n=Vv(k,2);e=n[0],t=n[1]}else e=k;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null}),[k,i]),ae=KO(C,E,M),se=O[Y]||iN[Y]||JT,le=r.useContext(UT),ce=r.useMemo((function(){return Og(Og({},le),{},{hideHeader:T})}),[le,T]);"production"!==process.env.NODE_ENV&&kg(!G||G.every((function(e){return i.isValidate(e)})),"Invalidate date pass to `value` or `defaultValue`.");var ue="".concat(N,"-panel"),de=qO(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return r.createElement(UT.Provider,{value:ce},r.createElement("div",{ref:D,tabIndex:c,className:ug(ue,Mg({},"".concat(ue,"-rtl"),"rtl"===a))},r.createElement(se,dg({},de,{showTime:j,prefixCls:N,locale:$,generateConfig:i,onModeChange:oe,pickerValue:ee,onPickerValueChange:function(e){re(e,!0)},value:G[0],onSelect:function(e){if(J(e),re(e),W!==x){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(Yv(n),["week"]),date:[].concat(Yv(n),["date"])}[x]||n,o=r.indexOf(W),i=r[o+1];i&&oe(i,e)}},values:G,cellRender:ae,hoverRangeValue:ie,hoverValue:S}))))}var sN=r.memo(r.forwardRef(aN));function lN(e){var t=e.picker,n=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,s=e.onSubmit,l=e.range,c=e.hoverValue,u=r.useContext(BO),d=u.prefixCls,h=u.generateConfig,p=r.useCallback((function(e,n){return TT(h,t,e,n)}),[h,t]),f=r.useMemo((function(){return p(o,1)}),[o,p]),m={onCellDblClick:function(){a&&s()}},g="time"===t,v=Og(Og({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return l?v.hoverRangeValue=c:v.hoverValue=c,n?r.createElement("div",{className:"".concat(d,"-panels")},r.createElement(UT.Provider,{value:Og(Og({},m),{},{hideNext:!0})},r.createElement(sN,v)),r.createElement(UT.Provider,{value:Og(Og({},m),{},{hidePrev:!0})},r.createElement(sN,dg({},v,{pickerValue:f,onPickerValueChange:function(e){i(p(e,-1))}})))):r.createElement(UT.Provider,{value:Og({},m)},r.createElement(sN,v))}function cN(e){return"function"==typeof e?e():e}function uN(e){var t=e.prefixCls,n=e.presets,o=e.onClick,i=e.onHover;return n.length?r.createElement("div",{className:"".concat(t,"-presets")},r.createElement("ul",null,n.map((function(e,t){var n=e.label,a=e.value;return r.createElement("li",{key:t,onClick:function(){o(cN(a))},onMouseEnter:function(){i(cN(a))},onMouseLeave:function(){i(null)}},n)})))):null}function dN(e){var t=e.panelRender,n=e.internalMode,o=e.picker,i=e.showNow,a=e.range,s=e.multiple,l=e.activeInfo,c=void 0===l?[0,0,0]:l,u=e.presets,d=e.onPresetHover,h=e.onPresetSubmit,p=e.onFocus,f=e.onBlur,m=e.onPanelMouseDown,g=e.direction,v=e.value,y=e.onSelect,b=e.isInvalid,_=e.defaultOpenValue,x=e.onOk,w=e.onSubmit,S=r.useContext(BO).prefixCls,k="".concat(S,"-panel"),C="rtl"===g,E=r.useRef(null),M=r.useRef(null),P=Vv(r.useState(0),2),O=P[0],T=P[1],N=Vv(r.useState(0),2),D=N[0],A=N[1],L=Vv(r.useState(0),2),I=L[0],z=L[1],R=Vv(c,3),$=R[0],F=R[1],j=R[2];function B(e){return e.filter((function(e){return e}))}r.useEffect((function(){if(a&&M.current){var e,t=(null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0,n=M.current.getBoundingClientRect(),r=(C?F-t:$)-n.left;if(z(r),O&&O<j){var o=C?n.right-(F-t+O):$+t-n.left-O,i=Math.max(0,o);A(i)}else A(0)}}),[C,O,$,F,j,a]);var H=r.useMemo((function(){return B(YO(v))}),[v]),W="time"===o&&!H.length,V=r.useMemo((function(){return W?B([_]):H}),[W,H,_]),Y=W?_:H,X=r.useMemo((function(){return!V.length||V.some((function(e){return b(e)}))}),[V,b]),q=r.createElement("div",{className:"".concat(S,"-panel-layout")},r.createElement(uN,{prefixCls:S,presets:u,onClick:h,onHover:d}),r.createElement("div",null,r.createElement(lN,dg({},e,{value:Y})),r.createElement(WT,dg({},e,{showNow:!s&&i,invalid:X,onSubmit:function(){W&&y(_),x(),w()}}))));t&&(q=t(q));var U="".concat(k,"-container"),Z="marginLeft",G="marginRight",K=r.createElement("div",{onMouseDown:m,tabIndex:-1,className:ug(U,"".concat(S,"-").concat(n,"-panel-container")),style:Mg(Mg({},C?G:Z,D),C?Z:G,"auto"),onFocus:p,onBlur:f},q);return a&&(K=r.createElement("div",{onMouseDown:m,ref:M,className:ug("".concat(S,"-range-wrapper"),"".concat(S,"-").concat(o,"-range-wrapper"))},r.createElement("div",{ref:E,className:"".concat(S,"-range-arrow"),style:{left:I}}),r.createElement(Av,{onResize:function(e){e.width&&T(e.width)}},K))),K}function hN(e,t){var n=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,s=e.preserveInvalidOnBlur,l=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,h=e.onFocus,p=e.onBlur,f=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,y=e.onKeyDown,b=e.onChange,_=e.activeHelp,x=e.name,w=e.autoComplete,S=e.id,k=e.value,C=e.invalid,E=e.placeholder,M=e.disabled,P=e.activeIndex,O=e.allHelp,T=e.picker,N=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},D=n[0],A=r.useCallback((function(e){return xT(e,{locale:a,format:D,generateConfig:i})}),[a,i,D]),L=r.useMemo((function(){return k.map(A)}),[k,A]),I=r.useMemo((function(){var e="time"===T?8:10,t="function"==typeof D?D(i.getNow()).length:D.length;return Math.max(e,t)+2}),[D,T,i]),z=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"==typeof r){var o=N(e,r);if(o)return o}}return!1};return[function(n){function r(e){return void 0!==n?e[n]:e}var i=Og(Og({},XS(e,{aria:!0,data:!0})),{},{format:o,validateFormat:function(e){return!!z(e)},preserveInvalidOnBlur:s,readOnly:l,required:c,"aria-required":u,name:x,autoComplete:w,size:I,id:r(S),value:r(L)||"",invalid:r(C),placeholder:r(E),active:P===n,helped:O||_&&P===n,disabled:r(M),onFocus:function(e){h(e,n)},onBlur:function(e){p(e,n)},onSubmit:d,onChange:function(e){f();var t=z(e);if(t)return m(!1,n),void b(t,n);m(!!e,n)},onHelp:function(){v(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null==y||y(e,(function(){"production"!==process.env.NODE_ENV&&kg(!1,"`preventDefault` callback is deprecated. Please call `event.preventDefault` directly."),t=!0})),!e.defaultPrevented&&!t)switch(e.key){case"Escape":v(!1,{index:n});break;case"Enter":g||v(!0)}}},null==t?void 0:t({valueTexts:L}));return Object.keys(i).forEach((function(e){void 0===i[e]&&delete i[e]})),i},A]}"production"!==process.env.NODE_ENV&&(sN.displayName="PanelPicker");var pN=["onMouseEnter","onMouseLeave"];function fN(e){return r.useMemo((function(){return qO(e,pN)}),[e])}var mN=["icon","type"],gN=["onClear"];function vN(e){var t=e.icon,n=e.type,o=ly(e,mN),i=r.useContext(BO).prefixCls;return t?r.createElement("span",dg({className:"".concat(i,"-").concat(n)},o),t):null}function yN(e){var t=e.onClear,n=ly(e,gN);return r.createElement(vN,dg({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var bN=["YYYY","MM","DD","HH","mm","ss","SSS"],_N=function(){function e(t){_v(this,e),Mg(this,"format",void 0),Mg(this,"maskFormat",void 0),Mg(this,"cells",void 0),Mg(this,"maskCells",void 0),this.format=t;var n=bN.map((function(e){return"(".concat(e,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,(function(e){return"顧".repeat(e.length)}));var o=new RegExp("(".concat(bN.join("|"),")")),i=(t.split(o)||[]).filter((function(e){return e})),a=0;this.cells=i.map((function(e){var t=bN.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}return wv(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var s=Math.min(Math.abs(e-i),Math.abs(e-a));s<t&&(t=s,n=r)}return n}}]),e}();var xN=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],wN=r.forwardRef((function(e,t){var n=e.active,o=e.showActiveCls,i=void 0===o||o,a=e.suffixIcon,s=e.format,l=e.validateFormat,c=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,h=e.onSubmit,p=e.onKeyDown,f=e.preserveInvalidOnBlur,m=void 0!==f&&f,g=e.invalid,v=e.clearIcon,y=ly(e,xN),b=e.value,_=e.onFocus,x=e.onBlur,w=e.onMouseUp,S=r.useContext(BO),k=S.prefixCls,C=S.input,E=void 0===C?"input":C,M="".concat(k,"-input"),P=Vv(r.useState(!1),2),O=P[0],T=P[1],N=Vv(r.useState(b),2),D=N[0],A=N[1],L=Vv(r.useState(""),2),I=L[0],z=L[1],R=Vv(r.useState(null),2),$=R[0],F=R[1],j=Vv(r.useState(null),2),B=j[0],H=j[1],W=D||"";r.useEffect((function(){A(b)}),[b]);var V=r.useRef(),Y=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:V.current,inputElement:Y.current,focus:function(e){Y.current.focus(e)},blur:function(){Y.current.blur()}}}));var X=r.useMemo((function(){return new _N(s||"")}),[s]),q=Vv(r.useMemo((function(){return u?[0,0]:X.getSelection($)}),[X,$,u]),2),U=q[0],Z=q[1],G=function(e){e&&e!==s&&e!==b&&d()},K=$x((function(e){l(e)&&c(e),A(e),G(e)})),J=r.useRef(!1),Q=function(e){x(e)};PT(n,(function(){n||m||A(b)}));var ee=function(e){"Enter"===e.key&&l(W)&&h(),null==p||p(e)},te=r.useRef();Ay((function(){if(O&&s&&!J.current){if(X.match(W))return Y.current.setSelectionRange(U,Z),te.current=Bv((function(){Y.current.setSelectionRange(U,Z)})),function(){Bv.cancel(te.current)};K(s)}}),[X,s,O,W,$,U,Z,B,K]);var ne=s?{onFocus:function(e){T(!0),F(0),z(""),_(e)},onBlur:function(e){T(!1),Q(e)},onKeyDown:function(e){ee(e);var t=e.key,n=null,r=null,o=Z-U,i=s.slice(U,Z),a=function(e){F((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,X.size()-1)}))},l=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=Vv(t,3),r=n[0],o=n[1],a=n[2],s=W.slice(U,Z),l=Number(s);if(isNaN(l))return String(a||(e>0?r:o));var c=o-r+1;return String(r+(c+(l+e)-r)%c)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=l(1);break;case"ArrowDown":n="",r=l(-1);break;default:isNaN(Number(t))||(r=n=I+t)}if(null!==n&&(z(n),n.length>=o&&(a(1),z(""))),null!==r){var c=W.slice(0,U)+VO(r,o)+W.slice(Z);K(c.slice(0,s.length))}H({})},onMouseDown:function(){J.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=X.getMaskCellIndex(t);F(n),H({}),null==w||w(e),J.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");l(t)&&K(t)}}:{};return r.createElement("div",{ref:V,className:ug(M,Mg(Mg({},"".concat(M,"-active"),n&&i),"".concat(M,"-placeholder"),u))},r.createElement(E,dg({ref:Y,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:ee,onBlur:Q},ne,{value:W,onChange:function(e){if(!s){var t=e.target.value;G(t),A(t),c(t)}}})),r.createElement(vN,{type:"suffix",icon:a}),v)}));"production"!==process.env.NODE_ENV&&(wN.displayName="Input");var SN=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],kN=["index"];function CN(e,t){var n=e.id,o=e.prefix,i=e.clearIcon,a=e.suffixIcon,s=e.separator,l=void 0===s?"~":s,c=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,h=e.className,p=e.style,f=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var b=e.direction;e.onOpenChange;var _=e.onActiveInfo;e.placement;var x=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,S=e.tabIndex,k=ly(e,SN),C="rtl"===b,E=r.useContext(BO).prefixCls,M=r.useMemo((function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),P=r.useRef(),O=r.useRef(),T=r.useRef(),N=function(e){var t;return null===(t=[O,T][e])||void 0===t?void 0:t.current};r.useImperativeHandle(t,(function(){return{nativeElement:P.current,focus:function(e){if("object"===Cg(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=ly(n,kN);null===(t=N(o))||void 0===t||t.focus(i)}else{var a;null===(a=N(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=N(0))||void 0===e||e.blur(),null===(t=N(1))||void 0===t||t.blur()}}}));var D=fN(k),A=r.useMemo((function(){return Array.isArray(d)?d:[d,d]}),[d]),L=Vv(hN(Og(Og({},e),{},{id:M,placeholder:A})),1)[0],I=Vv(r.useState({position:"absolute",width:0}),2),z=I[0],R=I[1],$=$x((function(){var e=N(c);if(e){var t=e.nativeElement.getBoundingClientRect(),n=P.current.getBoundingClientRect(),r=t.left-n.left;R((function(e){return Og(Og({},e),{},{width:t.width,left:r})})),_([t.left,t.right,n.width])}}));r.useEffect((function(){$()}),[c]);var F=i&&(g[0]&&!v[0]||g[1]&&!v[1]),j=w&&!v[0],B=w&&!j&&!v[1];return r.createElement(Av,{onResize:$},r.createElement("div",dg({},D,{className:ug(E,"".concat(E,"-range"),Mg(Mg(Mg(Mg({},"".concat(E,"-focused"),u),"".concat(E,"-disabled"),v.every((function(e){return e}))),"".concat(E,"-invalid"),y.some((function(e){return e}))),"".concat(E,"-rtl"),C),h),style:p,ref:P,onClick:f,onMouseDown:function(e){var t=e.target;t!==O.current.inputElement&&t!==T.current.inputElement&&e.preventDefault(),null==x||x(e)}}),o&&r.createElement("div",{className:"".concat(E,"-prefix")},o),r.createElement(wN,dg({ref:O},L(0),{autoFocus:j,tabIndex:S,"date-range":"start"})),r.createElement("div",{className:"".concat(E,"-range-separator")},l),r.createElement(wN,dg({ref:T},L(1),{autoFocus:B,tabIndex:S,"date-range":"end"})),r.createElement("div",{className:"".concat(E,"-active-bar"),style:z}),r.createElement(vN,{type:"suffix",icon:a}),F&&r.createElement(yN,{icon:i,onClear:m})))}var EN=r.forwardRef(CN);function MN(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function PN(e){return 1===e?"end":"start"}function ON(e,t){var n=kT(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:MN(t,!1),allowEmpty:MN(n,!1)}})),o=Vv(n,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],d=i.prefixCls,h=i.styles,p=i.classNames,f=i.defaultValue,m=i.value,g=i.needConfirm,v=i.onKeyDown,y=i.disabled,b=i.allowEmpty,_=i.disabledDate,x=i.minDate,w=i.maxDate,S=i.defaultOpen,k=i.open,C=i.onOpenChange,E=i.locale,M=i.generateConfig,P=i.picker,O=i.showNow,T=i.showToday,N=i.showTime,D=i.mode,A=i.onPanelChange,L=i.onCalendarChange,I=i.onOk,z=i.defaultPickerValue,R=i.pickerValue,$=i.onPickerValueChange,F=i.inputReadOnly,j=i.suffixIcon,B=i.onFocus,H=i.onBlur,W=i.presets,V=i.ranges,Y=i.components,X=i.cellRender,q=i.dateRender,U=i.monthCellRender,Z=i.onClick,G=ET(t),K=Vv(CT(k,S,y,C),2),J=K[0],Q=K[1],ee=function(e,t){!y.some((function(e){return!e}))&&e||Q(e,t)},te=Vv(RT(M,E,l,!0,!1,f,m,L,I),5),ne=te[0],re=te[1],oe=te[2],ie=te[3],ae=te[4],se=oe(),le=Vv(OT(y,b,J),9),ce=le[0],ue=le[1],de=le[2],he=le[3],pe=le[4],fe=le[5],me=le[6],ge=le[7],ve=le[8],ye=function(e,t){ue(!0),null==B||B(e,{range:PN(null!=t?t:he)})},be=function(e,t){ue(!1),null==H||H(e,{range:PN(null!=t?t:he)})},_e=r.useMemo((function(){if(!N)return null;var e=N.disabledTime,t=e?function(t){var n=PN(he),r=ZO(se,me,he);return e(t,n,{from:r})}:void 0;return Og(Og({},N),{},{disabledTime:t})}),[N,he,se,me]),xe=Vv(Hx([P,P],{value:D}),2),we=xe[0],Se=xe[1],ke=we[he]||P,Ce="date"===ke&&_e?"datetime":ke,Ee=Ce===P&&"time"!==Ce,Me=FT(P,ke,O,T,!0),Pe=Vv($T(i,ne,re,oe,ie,y,l,ce,J,u),2),Oe=Pe[0],Te=Pe[1],Ne=function(e,t,n,r,o,i){var a=n[n.length-1];return function(s,l){var c=Vv(e,2),u=c[0],d=c[1],h=Og(Og({},l),{},{from:ZO(e,n)});return!(1!==a||!t[0]||!u||yT(r,o,u,s,h.type)||!r.isAfter(u,s))||!(0!==a||!t[1]||!d||yT(r,o,d,s,h.type)||!r.isAfter(s,d))||(null==i?void 0:i(s,h))}}(se,y,me,M,E,_),De=Vv(JO(se,u,b),2),Ae=De[0],Le=De[1],Ie=Vv(DT(M,E,se,we,J,he,a,Ee,z,R,null==_e?void 0:_e.defaultOpenValue,$,x,w),2),ze=Ie[0],Re=Ie[1],$e=$x((function(e,t,n){var r=XO(we,he,t);if(r[0]===we[0]&&r[1]===we[1]||Se(r),A&&!1!==n){var o=Yv(se);e&&(o[he]=e),A(o,r)}})),Fe=function(e,t){return XO(se,t,e)},je=function(e,t){var n=se;e&&(n=Fe(e,he)),ge(he);var r=fe(n);ie(n),Oe(he,null===r),null===r?ee(!1,{force:!0}):t||G.current.focus({index:r})},Be=Vv(r.useState(null),2),He=Be[0],We=Be[1],Ve=Vv(r.useState(null),2),Ye=Ve[0],Xe=Ve[1],qe=r.useMemo((function(){return Ye||se}),[se,Ye]);r.useEffect((function(){J||Xe(null)}),[J]);var Ue=Vv(r.useState([0,0,0]),2),Ze=Ue[0],Ge=Ue[1],Ke=MT(W,V),Je=KO(X,q,U,PN(he)),Qe=se[he]||null,et=$x((function(e){return u(e,{activeIndex:he})})),tt=r.useMemo((function(){var e=XS(i,!1);return Ck(i,[].concat(Yv(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[i]),nt=r.createElement(dN,dg({},tt,{showNow:Me,showTime:_e,range:!0,multiplePanel:Ee,activeInfo:Ze,disabledDate:Ne,onFocus:function(e){ee(!0),ye(e)},onBlur:be,onPanelMouseDown:function(){de("panel")},picker:P,mode:ke,internalMode:Ce,onPanelChange:$e,format:c,value:Qe,isInvalid:et,onChange:null,onSelect:function(e){var t=XO(se,he,e);ie(t),g||s||a!==Ce||je(e)},pickerValue:ze,defaultOpenValue:YO(null==N?void 0:N.defaultOpenValue)[he],onPickerValueChange:Re,hoverValue:qe,onHover:function(e){Xe(e?Fe(e,he):null),We("cell")},needConfirm:g,onSubmit:je,onOk:ae,presets:Ke,onPresetHover:function(e){Xe(e),We("preset")},onPresetSubmit:function(e){Te(e)&&ee(!1,{force:!0})},onNow:function(e){je(e)},cellRender:Je})),rt=r.useMemo((function(){return{prefixCls:d,locale:E,generateConfig:M,button:Y.button,input:Y.input}}),[d,E,M,Y.button,Y.input]);if(Ay((function(){J&&void 0!==he&&$e(null,P,!1)}),[J,he,P]),Ay((function(){var e=de();J||"input"!==e||(ee(!1),je(null,!0)),J||!s||g||"panel"!==e||(ee(!0),je())}),[J]),"production"!==process.env.NODE_ENV){y.some((function(e,t){return e&&function(e){return!(null!=m&&m[e]||null!=f&&f[e])}(t)&&!b[t]}))&&kg(!1,"`disabled` should not set with empty `value`. You should set `allowEmpty` or `value` instead.")}return r.createElement(BO.Provider,{value:rt},r.createElement(WO,dg({},GO(i),{popupElement:nt,popupStyle:h.popup,popupClassName:p.popup,visible:J,onClose:function(){ee(!1)},range:!0}),r.createElement(EN,dg({},i,{ref:G,suffixIcon:j,activeIndex:ce||J?he:null,activeHelp:!!Ye,allHelp:!!Ye&&"preset"===He,focused:ce,onFocus:function(e,t){var n=me.length,r=me[n-1];n&&r!==t&&g&&!b[r]&&!ve(r)&&se[r]?G.current.focus({index:r}):(de("input"),ee(!0,{inherit:!0}),he!==t&&J&&!g&&s&&je(null,!0),pe(t),ye(e,t))},onBlur:function(e,t){if(ee(!1),!g&&"input"===de()){var n=fe(se);Oe(he,null===n)}be(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&je(null,!0),null==v||v(e,t)},onSubmit:je,value:qe,maskFormat:c,onChange:function(e,t){var n=Fe(e,t);ie(n)},onInputChange:function(){de("input")},format:l,inputReadOnly:F,disabled:y,open:J,onOpenChange:ee,onClick:function(e){var t,n=e.target.getRootNode();if(!G.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=y.findIndex((function(e){return!e}));r>=0&&G.current.focus({index:r})}ee(!0),null==Z||Z(e)},onClear:function(){Te(null),ee(!1,{force:!0})},invalid:Ae,onInvalid:Le,onActiveInfo:Ge}))))}"production"!==process.env.NODE_ENV&&(EN.displayName="RangeSelector");var TN=r.forwardRef(ON);function NN(e){var t=e.prefixCls,n=e.value,o=e.onRemove,i=e.removeIcon,a=void 0===i?"×":i,s=e.formatDate,l=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),h="".concat(t,"-selection"),p="".concat(h,"-overflow");function f(e,t){return r.createElement("span",{className:ug("".concat(h,"-item")),title:"string"==typeof e?e:null},r.createElement("span",{className:"".concat(h,"-item-content")},e),!l&&t&&r.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(h,"-item-remove")},a))}return r.createElement("div",{className:d},r.createElement(SP,{prefixCls:p,data:n,renderItem:function(e){return f(s(e),(function(t){t&&t.stopPropagation(),o(e)}))},renderRest:function(e){return f("+ ".concat(e.length," ..."))},itemKey:function(e){return s(e)},maxCount:c}),!n.length&&r.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}"production"!==process.env.NODE_ENV&&(TN.displayName="RefRangePicker");var DN=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function AN(e,t){e.id;var n=e.open,o=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,c=e.generateConfig,u=e.placeholder,d=e.className,h=e.style,p=e.onClick,f=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var b=e.multiple,_=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var x=e.disabled,w=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var k=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,E=e.tabIndex,M=e.removeIcon,P=ly(e,DN),O="rtl"===S,T=r.useContext(BO).prefixCls,N=r.useRef(),D=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:N.current,focus:function(e){var t;null===(t=D.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=D.current)||void 0===e||e.blur()}}}));var A=fN(P),L=hN(Og(Og({},e),{},{onChange:function(e){v([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:s}})),I=Vv(L,2),z=I[0],R=I[1],$=!(!i||!g.length||x),F=b?r.createElement(r.Fragment,null,r.createElement(NN,{prefixCls:T,value:g,onRemove:function(e){var t=g.filter((function(t){return t&&!yT(c,l,t,e,m)}));v(t),n||y()},formatDate:R,maxTagCount:_,disabled:x,removeIcon:M,placeholder:u}),r.createElement("input",{className:"".concat(T,"-multiple-input"),value:g.map(R).join(","),ref:D,readOnly:!0,autoFocus:C,tabIndex:E}),r.createElement(vN,{type:"suffix",icon:a}),$&&r.createElement(yN,{icon:i,onClear:f})):r.createElement(wN,dg({ref:D},z(),{autoFocus:C,tabIndex:E,suffixIcon:a,clearIcon:$&&r.createElement(yN,{icon:i,onClear:f}),showActiveCls:!1}));return r.createElement("div",dg({},A,{className:ug(T,Mg(Mg(Mg(Mg(Mg({},"".concat(T,"-multiple"),b),"".concat(T,"-focused"),s),"".concat(T,"-disabled"),x),"".concat(T,"-invalid"),w),"".concat(T,"-rtl"),O),d),style:h,ref:N,onClick:p,onMouseDown:function(e){var t;e.target!==(null===(t=D.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==k||k(e)}}),o&&r.createElement("div",{className:"".concat(T,"-prefix")},o),F)}var LN=r.forwardRef(AN);function IN(e,t){var n=Vv(kT(e),6),o=n[0],i=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=o,d=u.prefixCls,h=u.styles,p=u.classNames,f=u.order,m=u.defaultValue,g=u.value,v=u.needConfirm,y=u.onChange,b=u.onKeyDown,_=u.disabled,x=u.disabledDate,w=u.minDate,S=u.maxDate,k=u.defaultOpen,C=u.open,E=u.onOpenChange,M=u.locale,P=u.generateConfig,O=u.picker,T=u.showNow,N=u.showToday,D=u.showTime,A=u.mode,L=u.onPanelChange,I=u.onCalendarChange,z=u.onOk,R=u.multiple,$=u.defaultPickerValue,F=u.pickerValue,j=u.onPickerValueChange,B=u.inputReadOnly,H=u.suffixIcon,W=u.removeIcon,V=u.onFocus,Y=u.onBlur,X=u.presets,q=u.components,U=u.cellRender,Z=u.dateRender,G=u.monthCellRender,K=u.onClick,J=ET(t);function Q(e){return null===e?null:R?e:e[0]}var ee=VT(P,M,i),te=Vv(CT(C,k,[_],E),2),ne=te[0],re=te[1],oe=Vv(RT(P,M,s,!1,f,m,g,(function(e,t,n){if(I){var r=Og({},n);delete r.range,I(Q(e),Q(t),r)}}),(function(e){null==z||z(Q(e))})),5),ie=oe[0],ae=oe[1],se=oe[2],le=oe[3],ce=oe[4],ue=se(),de=Vv(OT([_]),4),he=de[0],pe=de[1],fe=de[2],me=de[3],ge=function(e){pe(!0),null==V||V(e,{})},ve=function(e){pe(!1),null==Y||Y(e,{})},ye=Vv(Hx(O,{value:A}),2),be=ye[0],_e=ye[1],xe="date"===be&&D?"datetime":be,we=FT(O,be,T,N),Se=y&&function(e,t){y(Q(e),Q(t))},ke=Vv($T(Og(Og({},o),{},{onChange:Se}),ie,ae,se,le,[],s,he,ne,c),2)[1],Ce=Vv(JO(ue,c),2),Ee=Ce[0],Me=Ce[1],Pe=r.useMemo((function(){return Ee.some((function(e){return e}))}),[Ee]),Oe=Vv(DT(P,M,ue,[be],ne,me,i,!1,$,F,YO(null==D?void 0:D.defaultOpenValue),(function(e,t){if(j){var n=Og(Og({},t),{},{mode:t.mode[0]});delete n.range,j(e[0],n)}}),w,S),2),Te=Oe[0],Ne=Oe[1],De=$x((function(e,t,n){if(_e(t),L&&!1!==n){var r=e||ue[ue.length-1];L(r,t)}})),Ae=function(){ke(se()),re(!1,{force:!0})},Le=Vv(r.useState(null),2),Ie=Le[0],ze=Le[1],Re=Vv(r.useState(null),2),$e=Re[0],Fe=Re[1],je=r.useMemo((function(){var e=[$e].concat(Yv(ue)).filter((function(e){return e}));return R?e:e.slice(0,1)}),[ue,$e,R]),Be=r.useMemo((function(){return!R&&$e?[$e]:ue.filter((function(e){return e}))}),[ue,$e,R]);r.useEffect((function(){ne||Fe(null)}),[ne]);var He=MT(X),We=function(e){var t=R?ee(se(),e):[e];ke(t)&&!R&&re(!1,{force:!0})},Ve=KO(U,Z,G),Ye=r.useMemo((function(){var e=XS(o,!1);return Og(Og({},Ck(o,[].concat(Yv(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:o.multiple})}),[o]),Xe=r.createElement(dN,dg({},Ye,{showNow:we,showTime:D,disabledDate:x,onFocus:function(e){re(!0),ge(e)},onBlur:ve,picker:O,mode:be,internalMode:xe,onPanelChange:De,format:l,value:ue,isInvalid:c,onChange:null,onSelect:function(e){if(fe("panel"),!R||xe===O){var t=R?ee(se(),e):[e];le(t),v||a||i!==xe||Ae()}},pickerValue:Te,defaultOpenValue:null==D?void 0:D.defaultOpenValue,onPickerValueChange:Ne,hoverValue:je,onHover:function(e){Fe(e),ze("cell")},needConfirm:v,onSubmit:Ae,onOk:ce,presets:He,onPresetHover:function(e){Fe(e),ze("preset")},onPresetSubmit:We,onNow:function(e){We(e)},cellRender:Ve})),qe=r.useMemo((function(){return{prefixCls:d,locale:M,generateConfig:P,button:q.button,input:q.input}}),[d,M,P,q.button,q.input]);return Ay((function(){ne&&void 0!==me&&De(null,O,!1)}),[ne,me,O]),Ay((function(){var e=fe();ne||"input"!==e||(re(!1),Ae()),ne||!a||v||"panel"!==e||(re(!0),Ae())}),[ne]),r.createElement(BO.Provider,{value:qe},r.createElement(WO,dg({},GO(o),{popupElement:Xe,popupStyle:h.popup,popupClassName:p.popup,visible:ne,onClose:function(){re(!1)}}),r.createElement(LN,dg({},o,{ref:J,suffixIcon:H,removeIcon:W,activeHelp:!!$e,allHelp:!!$e&&"preset"===Ie,focused:he,onFocus:function(e){fe("input"),re(!0,{inherit:!0}),ge(e)},onBlur:function(e){re(!1),ve(e)},onKeyDown:function(e,t){"Tab"===e.key&&Ae(),null==b||b(e,t)},onSubmit:Ae,value:Be,maskFormat:l,onChange:function(e){le(e)},onInputChange:function(){fe("input")},internalPicker:i,format:s,inputReadOnly:B,disabled:_,open:ne,onOpenChange:re,onClick:function(e){_||J.current.nativeElement.contains(document.activeElement)||J.current.focus(),re(!0),null==K||K(e)},onClear:function(){ke(null),re(!1,{force:!0})},invalid:Pe,onInvalid:function(e){Me(e,0)}}))))}"production"!==process.env.NODE_ENV&&(LN.displayName="SingleSelector");var zN=r.forwardRef(IN);function RN(e){return Xx(e,{inputAffixPadding:e.paddingXXS})}"production"!==process.env.NODE_ENV&&(zN.displayName="RefPicker");const $N=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:f,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:h,activeBorderColor:f,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${v}`,warningActiveShadow:`0 0 0 ${m}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},FN=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),jN=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},FN(Xx(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),BN=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),HN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},BN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),WN=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},jN(e))}),HN(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),HN(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),VN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),YN=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},VN(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),VN(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},jN(e))}})}),XN=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},qN=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),UN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ZN=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},jN(e))}),UN(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),UN(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),GN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),KN=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${My(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${My(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},GN(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),GN(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),JN=(e,t)=>({background:e.colorBgContainer,borderWidth:`0 0 ${My(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,borderRadius:0,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,outline:0,backgroundColor:e.activeBg}}),QN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},JN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),eD=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},JN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:e.colorBorder}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),QN(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),QN(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),tD=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),nD=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${My(t)} ${My(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},rD=e=>({padding:`${My(e.paddingBlockSM)} ${My(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),oD=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${My(e.paddingBlock)} ${My(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},tD(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},nD(e)),"&-sm":Object.assign({},rD(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),iD=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},nD(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},rD(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${My(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${My(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${My(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${My(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${My(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},aD=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dw(e)),oD(e)),WN(e)),ZN(e)),XN(e)),eD(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},sD=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${My(e.inputAffixPadding)}`}}}},lD=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},oD(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),sD(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},cD=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},dw(e)),iD(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},YN(e)),KN(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},uD=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},dD=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};gw(["Input","Shared"],(e=>{const t=Xx(e,RN(e));return[aD(t),lD(t)]}),$N,{resetFont:!1}),gw(["Input","Component"],(e=>{const t=Xx(e,RN(e));return[cD(t),uD(t),dD(t),bE(t)]}),$N,{resetFont:!1});const hD=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:My(t),itemLineHeight:My(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:My(i.itemLineHeight)}}}]};var pD=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Xx(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Xx(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[hD(o,"small"),hD(e),hD(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},UP(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const fD=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:h,cellBgDisabled:p,colorFillSecondary:f}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:My(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${My(s)} ${l} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${t}-disabled ${n}`]:{background:f}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},mD=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:h,borderRadiusLG:p,colorPrimary:f,colorTextHeading:m,colorSplit:g,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:b,motionDurationMid:_,colorIconHover:x,fontWeightStrong:w,cellHeight:S,pickerCellPaddingVertical:k,colorTextDisabled:C,colorText:E,fontSize:M,motionDurationSlow:P,withoutTimeCellHeight:O,pickerQuarterPanelContentHeight:T,borderRadiusSM:N,colorTextLightSolid:D,cellHoverBg:A,timeColumnHeight:L,timeColumnWidth:I,timeCellHeight:z,controlItemBgActive:R,marginXXS:$,pickerDatePanelPaddingHorizontal:F,pickerControlIconMargin:j}=e,B=e.calc(a).mul(7).add(e.calc(F).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:f},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:B},"&-header":{display:"flex",padding:`0 ${My(l)}`,color:m,borderBottom:`${My(d)} ${h} ${g}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:My(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${_}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:My(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:f}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${My(v)} 0`,borderInlineWidth:`${My(v)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:j,insetInlineStart:j,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${My(v)} 0`,borderInlineWidth:`${My(v)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:e.calc(S).add(e.calc(k).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${My(k)} 0`,color:C,cursor:"pointer","&-in-view":{color:E}},fD(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(O).mul(4).equal()},[r]:{padding:`0 ${My(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:T}},"&-decade-panel":{[r]:{padding:`0 ${My(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${My(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${My(l)} ${My(F)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${_}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:A},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:f},[`&${t}-cell-week`]:{color:new F_(D).setA(.5).toHexString()},[r]:{color:D}}},"&-range-hover td:before":{background:R}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${My(l)} ${My(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${My(d)} ${h} ${g}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${P}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:L},"&-column":{flex:"1 0 auto",width:I,margin:`${My(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${_}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${My(z)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${My(d)} ${h} ${g}`},"&-active":{background:new F_(R).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:$,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(I).sub(e.calc($).mul(2)).equal(),height:z,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(I).sub(z).div(2).equal(),color:E,lineHeight:My(z),borderRadius:N,cursor:"pointer",transition:`background ${_}`,"&:hover":{background:A}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:R}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:C,background:"transparent",cursor:"not-allowed"}}}}}}}}};var gD=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${My(r)} ${c} ${u}`,"&-extra":{padding:`0 ${My(o)}`,lineHeight:My(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${My(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:My(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:My(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};var vD=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},WN(e)),eD(e)),ZN(e)),XN(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${My(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};const yD=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${My(i)} ${My(r)} ${My(a)}`}},bD=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},_D=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:h,fontSizeLG:p,controlHeightSM:f,paddingInlineSM:m,paddingXS:g,marginXS:v,colorTextDescription:y,lineWidthBold:b,colorPrimary:_,motionDurationSlow:x,zIndexPopup:w,paddingXXS:S,sizePopupArrow:k,colorBgElevated:C,borderRadiusLG:E,boxShadowSecondary:M,borderRadiusSM:P,colorSplit:O,cellHoverBg:T,presetsWidth:N,presetsMaxWidth:D,boxShadowPopoverArrow:A,fontHeight:L,fontHeightLG:I,lineHeightLG:z}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},dw(e)),yD(e,r,L,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},tD(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},yD(e,h,I,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:z}}),"&-small":Object.assign({},yD(e,f,L,m)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:b,background:_,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${My(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},dw(e)),mD(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:zC},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:LC},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:RC},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:IC},[`${t}-panel > ${t}-time-panel`]:{paddingTop:S},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},sO(e,C,A)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:C,borderRadius:E,boxShadow:M,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:N,maxWidth:D,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${My(i)} ${a} ${O}`,li:Object.assign(Object.assign({},uw),{borderRadius:P,paddingInline:g,paddingBlock:e.calc(f).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:v},"&:hover":{background:T}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${My(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},WC(e,"slide-up"),WC(e,"slide-down"),AC(e,"move-up"),AC(e,"move-down")]};var xD=gw("DatePicker",(e=>{const t=Xx(RN(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[gD(t),_D(t),vD(t),bD(t),pD(t),bE(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},$N(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,s=2*i,l=2*a,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new F_(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new F_(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-l,d=c,h=2*o-a,p=s,f=2*o-0,m=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${h} ${p} A ${r} ${r} 0 0 0 ${f} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}))),wD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},SD=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:wD}))},kD=r.forwardRef(SD);"production"!==process.env.NODE_ENV&&(kD.displayName="CalendarOutlined");var CD=kD,ED={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},MD=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:ED}))},PD=r.forwardRef(MD);"production"!==process.env.NODE_ENV&&(PD.displayName="ClockCircleOutlined");var OD=PD,TD={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},ND=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:TD}))},DD=r.forwardRef(ND);"production"!==process.env.NODE_ENV&&(DD.displayName="SwapRightOutlined");var AD=DD;function LD(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function ID(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function zD(e,t){const{allowClear:n=!0}=e,{clearIcon:o,removeIcon:i}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:h,componentName:p}=e;"production"!==process.env.NODE_ENV&&y_(p).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const f=null!=n?n:r.createElement(FS,null),m=e=>null!==t||l||h?r.createElement(r.Fragment,null,!1!==u&&e,l&&d):null;let g=null;if(void 0!==t)g=m(t);else if(a)g=m(r.createElement(nk,{spin:!0}));else{const e=`${c}-suffix`;g=t=>{let{open:n,showSearch:o}=t;return m(n&&o?r.createElement(aO,{className:e}):r.createElement(nO,{className:e}))}}let v=null;v=void 0!==o?o:s?r.createElement(JP,null):null;let y=null;return y=void 0!==i?i:r.createElement(WS,null),{clearIcon:f,suffixIcon:g,itemIcon:v,removeIcon:y}}(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[r.useMemo((()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:o},e)}),[n,o]),i]}const[RD,$D]=["week","WeekPicker"],[FD,jD]=["month","MonthPicker"],[BD,HD]=["year","YearPicker"],[WD,VD]=["quarter","QuarterPicker"],[YD,XD]=["time","TimePicker"];var qD=e=>r.createElement(PE,Object.assign({size:"small",type:"primary"},e));function UD(e){return i((()=>Object.assign({button:qD},e)),[e])}var ZD=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var GD=e=>{const t=h(((t,n)=>{var o;const{prefixCls:i,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:d,disabled:h,bordered:f=!0,placeholder:g,popupClassName:v,dropdownClassName:y,status:b,rootClassName:_,variant:x,picker:w}=t,S=ZD(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),k=r.useRef(null),{getPrefixCls:C,direction:E,getPopupContainer:M,rangePicker:P}=p(xx),O=C("picker",i),{compactSize:T,compactItemClassnames:N}=Fk(O,E),D=C(),[A,L]=qP("rangePicker",x,f),I=JS(O),[z,R,$]=xD(O,I);if("production"!==process.env.NODE_ENV){const e=y_("DatePicker.RangePicker");e.deprecated(!y,"dropdownClassName","popupClassName"),e.deprecated(!("bordered"in t),"bordered","variant")}const[F]=zD(t,O),j=UD(s),B=Rk((e=>{var t;return null!==(t=null!=d?d:T)&&void 0!==t?t:e})),H=r.useContext(Mx),W=null!=h?h:H,V=p(KM),{hasFeedback:Y,status:X,feedbackIcon:q}=V,U=r.createElement(r.Fragment,null,w===YD?r.createElement(OD,null):r.createElement(CD,null),Y&&q);m(n,(()=>k.current));const[Z]=O_("Calendar",S_),G=Object.assign(Object.assign({},Z),t.locale),[K]=lk("DatePicker",null===(o=t.popupStyle)||void 0===o?void 0:o.zIndex);return z(r.createElement(eP,{space:!0},r.createElement(TN,Object.assign({separator:r.createElement("span",{"aria-label":"to",className:`${O}-separator`},r.createElement(AD,null)),disabled:W,ref:k,placement:u,placeholder:ID(G,w,g),suffixIcon:U,prevIcon:r.createElement("span",{className:`${O}-prev-icon`}),nextIcon:r.createElement("span",{className:`${O}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${O}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${O}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:w},S,{className:ug({[`${O}-${B}`]:B,[`${O}-${A}`]:L},YP(O,XP(X,b),Y),R,N,l,null==P?void 0:P.className,$,I,_),style:Object.assign(Object.assign({},null==P?void 0:P.style),c),locale:G.lang,prefixCls:O,getPopupContainer:a||M,generateConfig:e,components:j,direction:E,classNames:{popup:ug(R,v||y,$,I,_)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:K})},allowClear:F}))))}));return"production"!==process.env.NODE_ENV&&(t.displayName="RangePicker"),t},KD=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var JD=e=>{const t=(t,n)=>{const o=n===XD?"timePicker":"datePicker",i=h(((i,a)=>{var s;const{prefixCls:l,getPopupContainer:c,components:u,style:d,className:h,rootClassName:f,size:g,bordered:v,placement:y,placeholder:b,popupClassName:_,dropdownClassName:x,disabled:w,status:S,variant:k,onCalendarChange:C}=i,E=KD(i,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:M,direction:P,getPopupContainer:O,[o]:T}=p(xx),N=M("picker",l),{compactSize:D,compactItemClassnames:A}=Fk(N,P),L=r.useRef(null),[I,z]=qP("datePicker",k,v),R=JS(N),[$,F,j]=xD(N,R);m(a,(()=>L.current));const B=t||i.picker,H=M(),{onSelect:W,multiple:V}=E,Y=W&&"time"===t&&!V;if("production"!==process.env.NODE_ENV){const e=y_(n||"DatePicker");"production"!==process.env.NODE_ENV&&e("quarter"!==t,"deprecated",`DatePicker.${n} is legacy usage. Please use DatePicker[picker='${t}'] directly.`),e.deprecated(!x,"dropdownClassName","popupClassName"),e.deprecated(!("bordered"in i),"bordered","variant"),e.deprecated(!Y,"onSelect","onCalendarChange")}const[X,q]=zD(i,N),U=UD(u),Z=Rk((e=>{var t;return null!==(t=null!=g?g:D)&&void 0!==t?t:e})),G=r.useContext(Mx),K=null!=w?w:G,J=p(KM),{hasFeedback:Q,status:ee,feedbackIcon:te}=J,ne=r.createElement(r.Fragment,null,"time"===B?r.createElement(OD,null):r.createElement(CD,null),Q&&te),[re]=O_("DatePicker",S_),oe=Object.assign(Object.assign({},re),i.locale),[ie]=lk("DatePicker",null===(s=i.popupStyle)||void 0===s?void 0:s.zIndex);return $(r.createElement(eP,{space:!0},r.createElement(zN,Object.assign({ref:L,placeholder:LD(oe,B,b),suffixIcon:ne,placement:y,prevIcon:r.createElement("span",{className:`${N}-prev-icon`}),nextIcon:r.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null==C||C(e,t,n),Y&&W(e)}},{showToday:!0},E,{locale:oe.lang,className:ug({[`${N}-${Z}`]:Z,[`${N}-${I}`]:z},YP(N,XP(ee,S),Q),F,A,null==T?void 0:T.className,h,j,R,f),style:Object.assign(Object.assign({},null==T?void 0:T.style),d),prefixCls:N,getPopupContainer:c||O,generateConfig:e,components:U,direction:P,disabled:K,classNames:{popup:ug(F,j,R,f,_||x)},styles:{popup:Object.assign(Object.assign({},i.popupStyle),{zIndex:ie})},allowClear:X,removeIcon:q}))))}));return"production"!==process.env.NODE_ENV&&n&&(i.displayName=n),i},n=t(),o=t(RD,$D),i=t(FD,jD),a=t(BD,HD),s=t(WD,VD);return{DatePicker:n,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:t(YD,XD),QuarterPicker:s}};var QD=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=JD(e),s=GD(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,"production"!==process.env.NODE_ENV&&(l.displayName="DatePicker"),l};const eA=QD(jO),tA=iP(eA,"popupAlign",void 0,"picker");eA._InternalPanelDoNotUseOrYouWillBeFired=tA;const nA=iP(eA.RangePicker,"popupAlign",void 0,"picker");eA._InternalRangePanelDoNotUseOrYouWillBeFired=nA,eA.generatePicker=QD;var rA=eA;const oA=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Xx(e,{tagFontSize:o,tagLineHeight:My(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},iA=e=>({defaultBg:new F_(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var aA=gw("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},dw(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(oA(e))),iA),sA=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lA=r.forwardRef(((e,t)=>{const{prefixCls:n,style:o,className:i,checked:a,onChange:s,onClick:l}=e,c=sA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=r.useContext(xx),h=u("tag",n),[p,f,m]=aA(h),g=ug(h,`${h}-checkable`,{[`${h}-checkable-checked`]:a},null==d?void 0:d.className,i,f,m);return p(r.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},o),null==d?void 0:d.style),className:g,onClick:e=>{null==s||s(!a),null==l||l(e)}})))}));var cA=lA;const uA=e=>function(e,t){return Qx.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}));var dA=yw(["Tag","preset"],(e=>{const t=oA(e);return uA(t)}),iA);const hA=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var pA=yw(["Tag","status"],(e=>{const t=oA(e);return[hA(t,"success","Success"),hA(t,"processing","Info"),hA(t,"error","Error"),hA(t,"warning","Warning")]}),iA),fA=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mA=r.forwardRef(((e,t)=>{const{prefixCls:n,className:i,rootClassName:a,style:s,children:l,icon:c,color:u,onClose:d,bordered:h=!0,visible:p}=e,f=fA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:m,direction:g,tag:v}=r.useContext(xx),[y,b]=r.useState(!0),_=Ck(f,["closeIcon","closable"]);if("production"!==process.env.NODE_ENV){y_("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />")}r.useEffect((()=>{void 0!==p&&b(p)}),[p]);const x=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Qx.includes(e):[].concat(Iv(lO),Iv(Qx)).includes(e)}(u),w=function(e){return cO.includes(e)}(u),S=x||w,k=Object.assign(Object.assign({backgroundColor:u&&!S?u:void 0},null==v?void 0:v.style),s),C=m("tag",n),[E,M,P]=aA(C),O=ug(C,null==v?void 0:v.className,{[`${C}-${u}`]:S,[`${C}-has-color`]:u&&!S,[`${C}-hidden`]:!y,[`${C}-rtl`]:"rtl"===g,[`${C}-borderless`]:!h},i,a,M,P),T=e=>{e.stopPropagation(),null==d||d(e),e.defaultPrevented||b(!1)},[,N]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oP;const r=nP(e),i=nP(t),a="boolean"!=typeof r&&!!(null==r?void 0:r.disabled),s=o.useMemo((()=>Object.assign({closeIcon:o.createElement(WS,null)},n)),[n]),l=o.useMemo((()=>!1!==r&&(r?rP(s,i,r):!1!==i&&(i?rP(s,i):!!s.closable&&s))),[r,i,s]);return o.useMemo((()=>{if(!1===l)return[!1,null,a];const{closeIconRender:e}=s,{closeIcon:t}=l;let n=t;if(null!=n){e&&(n=e(t));const r=XS(l,!0);Object.keys(r).length&&(n=o.isValidElement(n)?o.cloneElement(n,r):o.createElement("span",Object.assign({},r),n))}return[!0,n,a]}),[l,s])}(tP(e),tP(v),{closable:!1,closeIconRender:e=>qS(e,r.createElement("span",{className:`${C}-close-icon`,onClick:T},e),(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),T(t)},className:ug(null==e?void 0:e.className,`${C}-close-icon`)})))}),D="function"==typeof f.onClick||l&&"a"===l.type,A=c||null,L=A?r.createElement(r.Fragment,null,A,l&&r.createElement("span",null,l)):l,I=r.createElement("span",Object.assign({},_,{ref:t,className:O,style:k}),L,N,x&&r.createElement(dA,{key:"preset",prefixCls:C}),w&&r.createElement(pA,{key:"status",prefixCls:C}));return E(D?r.createElement(zk,{component:"Tag"},I):I)})),gA=mA;"production"!==process.env.NODE_ENV&&(gA.displayName="Tag"),gA.CheckableTag=cA;var vA=gA,yA="DatePicker-module_datePicker__9BVwE",bA="DatePicker-module_stringValueWrapper__6UTWs",_A="DatePicker-module_stringValue__BAJKp",xA="DatePicker-module_hiddenAntDatePicker__OxApk";const wA=({value:r,onChange:o,renderLabel:a,...l})=>{const[c,d]=u(!1),h=s(null),p=i((()=>fO(r)),[r]),f=p.isValid(),m="string"!=typeof r||f||""===r,g=f?p:null;return t(n,{children:[e(rA,{...l,ref:h,open:c,onOpenChange:d,value:g,onChange:(e,t)=>{o?.(t),d(!1)},className:`${yA} ${l.className||""} ${m?"":xA}`}),!m&&e("div",{className:bA,onClick:()=>{d(!0),setTimeout((()=>{h.current?.focus()}),100)},children:a?a(r):e(vA,{color:"default",className:_A,children:r})})]})};var SA="Directory-module_moreIcon__V7kXf",kA="Directory-module_directory__koFRz",CA="Directory-module_path__lw-xg",EA={container:"Popover-module_container__-idjE",content:"Popover-module_content__TTNdo",arrow:"Popover-module_arrow__ODp-E",bottom:"Popover-module_bottom__Dq-dO",bottomStart:"Popover-module_bottomStart__eZAKA",bottomEnd:"Popover-module_bottomEnd__YAoIK",top:"Popover-module_top__gphPv",topStart:"Popover-module_topStart__UL0EG",topEnd:"Popover-module_topEnd__rr7Hq",right:"Popover-module_right__gx1MF",rightStart:"Popover-module_rightStart__jScCt",rightEnd:"Popover-module_rightEnd__FI5TB",left:"Popover-module_left__0Ng53",leftStart:"Popover-module_leftStart__OsJTm",leftEnd:"Popover-module_leftEnd__lr3aT"};const MA={Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Space:" "};function PA(e,t){l((()=>{const n=n=>{n.key===MA[e]&&t(n)};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)}),[e,t])}var OA="Backdrop-module_container__IkwCT",TA="Backdrop-module_showBackdrop__MMIy-";const NA=({className:t,children:n,showBackdrop:r=!0,...o})=>e("div",{...o,className:`${OA} ${t} ${r?TA:""}`,children:n});var DA=a((({placement:n="bottom",content:r,trigger:o="click",children:i,open:a,containerProps:l,contentProps:h,arrow:p=!1,arrowPlacement:f,portalClassName:g,onClose:v})=>{const y=s(null),b=s(null);m(h?.ref??{current:null},(()=>b.current)),m(l?.ref??{current:null},(()=>y.current));const _=s(null),[x,w]=u(!1),S=void 0!==v,k=S?a:x,C=c(((e,t)=>{S||w(e),!1===e&&v?.(t)}),[S,v]);PA("Escape",(()=>{k&&C(!1)}));const{targetPosition:E,calculatePosition:M}=Q({containerRef:_,targetRef:b,initialPlacement:n});d((()=>{k&&M()}),[k,M]);const P=c((e=>{if(!k||"click"!==o||!e?.target||!b.current)return;const t=e.target,n=document.querySelectorAll("[data-popover-content]");if(Array.from(n).some((e=>e!==b.current&&e.contains(t))))return;const r=Array.from(n).filter((e=>{const t=globalThis.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}));r.at(-1)===b.current&&C(!1,e)}),[k,o,C]);J({targetElements:[b,y],onClickOutside:P});const O={onMouseEnter:()=>{"hover"===o&&C(!0)},onMouseLeave:()=>"hover"===o&&C(!1),onClick:()=>"click"===o&&C(!0)};return t(B,{...l,ref:y,...O,className:`${EA.container} ${l?.className||""}`,children:[e(B,{ref:_,children:i}),k&&t(Wm,{className:g,children:[e(NA,{showBackdrop:!1}),t(B,{...h,ref:b,"data-popover-content":!0,style:{...E,...h?.style??{}},className:`${h?.className} ${EA.content}`,children:[p&&e("div",{className:`${EA.arrow} ${EA[f||{top:"bottom",topStart:"bottomStart",topEnd:"bottomEnd",bottom:"top",bottomStart:"topStart",bottomEnd:"topEnd",left:"right",leftStart:"rightStart",leftEnd:"rightEnd",right:"left",rightStart:"leftStart",rightEnd:"leftEnd"}[n]]}`}),r]})]})]})}));var AA=a((({directory:n,onChangeDirectory:r})=>{const o=n.length>2,i=n.slice(-2),a=n.slice(0,-2);return t(B,{gap:20,className:kA,children:[o&&e(DA,{content:e(B,{direction:"vertical",dimensionX:150,children:a.map(((t,n)=>e(Y,{label:t,onClick:()=>r?.(n)},n)))}),placement:"bottomEnd",trigger:"click",children:e(Za,{name:"dotsHorizontal",className:SA})}),i.map(((n,i)=>{const s=a.length+i;return t(_,{children:[(o||0!==i)&&e(Za,{name:"chevronRight"}),e(V,{size:"large",className:CA,onClick:()=>r?.(s),children:n})]},n)}))]})})),LA="DropList-module_container__OfA7W",IA="DropList-module_deleteButton__zG9N6",zA="DropList-module_active__3guYr",RA="DropList-module_dropListItemContainer__9xeGb",$A="DropList-module_deleteButtonContent__Wev-V",FA="DropList-module_addButtonContent__ISPbG";const jA=({activeIndex:n,index:r,onDelete:o,onClick:i})=>{const[a,c]=u(!1),d=s(null),h=e=>{e?(d.current&&clearTimeout(d.current),c(!0)):c(!1)};return l((()=>()=>{d.current&&clearTimeout(d.current)}),[]),t(B,{alignment:"center",gap:4,direction:"vertical",className:RA,children:[a&&e(_s,{color:"transparent",variant:"filled",keepWidth:!1,onClick:o,className:IA,containerProps:{className:$A},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:"-"}),e(_s,{color:"transparent",variant:"filled",keepWidth:!1,onClick:i,onMouseEnter:()=>{d.current&&clearTimeout(d.current),c(!0)},onMouseLeave:()=>{d.current=setTimeout((()=>{c(!1)}),1e3)},className:n===r&&zA,children:r+1})]})};var BA=a((({active:n=0,length:r=0,maxItems:o,onChange:i,onCreate:a,onDelete:s})=>t(B,{className:LA,dimensionX:"fill",alignment:"leftCenter",children:[new Array(r).fill(0).map(((t,r)=>e(jA,{activeIndex:n,index:r,onDelete:()=>(e=>s?.(e))(r),onClick:()=>(e=>i?.(e))(r)},r))),e(_s,{color:"transparent",variant:"filled",onClick:()=>o!==r&&a?.(),disabled:o===r,containerProps:{className:FA},children:"+"})]}))),HA="InputHeader-module_inputHeaderContainer__ozfOk";const WA=a((({className:t,prefix:n,root:r,suffix:o,...i})=>e(H,{className:`${HA} ${t}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:36,...i,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}},suffix:{children:o?.children,...{dimensionX:"hug",alignment:"rightCenter",...o}}})));var VA="Json-module_jsonContainer__cv8rx";var YA=a((({data:t})=>e(V,{className:VA,children:JSON.stringify(t,null,2)}))),XA="ListRow-module_rowContainer__5LCRb";const qA=a((({children:t,...n})=>e(B,{dimensionX:"hug",...n,className:`${n.className}`,children:t}))),UA=a((({children:t,...n})=>e(B,{ref:n.ref,dimensionX:"fill",alignment:"leftCenter",gap:10,...n,className:`${n.className} ${XA}`,children:t})));UA.Cell=qA;const ZA=y(null);function GA(){const e=x(ZA);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function KA(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}var JA,QA={exports:{}};
63
+ */var $g=(zg||(zg=1,"production"===process.env.NODE_ENV?Ag.exports=function(){if(Dg)return Lg;Dg=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case p:case h:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),Lg.ContextConsumer=s,Lg.ContextProvider=a,Lg.Element=t,Lg.ForwardRef=c,Lg.Fragment=r,Lg.Lazy=p,Lg.Memo=h,Lg.Portal=n,Lg.Profiler=i,Lg.StrictMode=o,Lg.Suspense=u,Lg.SuspenseList=d,Lg.isAsyncMode=function(){return!1},Lg.isConcurrentMode=function(){return!1},Lg.isContextConsumer=function(e){return m(e)===s},Lg.isContextProvider=function(e){return m(e)===a},Lg.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Lg.isForwardRef=function(e){return m(e)===c},Lg.isFragment=function(e){return m(e)===r},Lg.isLazy=function(e){return m(e)===p},Lg.isMemo=function(e){return m(e)===h},Lg.isPortal=function(e){return m(e)===n},Lg.isProfiler=function(e){return m(e)===i},Lg.isStrictMode=function(e){return m(e)===o},Lg.isSuspense=function(e){return m(e)===u},Lg.isSuspenseList=function(e){return m(e)===d},Lg.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===h||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Lg.typeOf=m,Lg}():Ag.exports=(Ig||(Ig=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case r:case i:case o:case u:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case c:case p:case h:case a:return g;default:return f}}case n:return f}}}e=Symbol.for("react.module.reference");var g=s,v=a,y=t,b=c,_=r,x=p,w=h,S=n,k=i,C=o,E=u,M=d,P=!1,O=!1;Rg.ContextConsumer=g,Rg.ContextProvider=v,Rg.Element=y,Rg.ForwardRef=b,Rg.Fragment=_,Rg.Lazy=x,Rg.Memo=w,Rg.Portal=S,Rg.Profiler=k,Rg.StrictMode=C,Rg.Suspense=E,Rg.SuspenseList=M,Rg.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Rg.isConcurrentMode=function(e){return O||(O=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Rg.isContextConsumer=function(e){return m(e)===s},Rg.isContextProvider=function(e){return m(e)===a},Rg.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Rg.isForwardRef=function(e){return m(e)===c},Rg.isFragment=function(e){return m(e)===r},Rg.isLazy=function(e){return m(e)===p},Rg.isMemo=function(e){return m(e)===h},Rg.isPortal=function(e){return m(e)===n},Rg.isProfiler=function(e){return m(e)===i},Rg.isStrictMode=function(e){return m(e)===o},Rg.isSuspense=function(e){return m(e)===u},Rg.isSuspenseList=function(e){return m(e)===d},Rg.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===h||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Rg.typeOf=m}()),Rg)),Ag.exports);function Fg(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var jg=Number(g.split(".")[0]),Bg=function(e,t){"function"==typeof e?e(t):"object"===hg(e)&&e&&"current"in e&&(e.current=t)},Hg=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){Bg(t,e)}))}},Wg=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fg((function(){return Hg.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Vg=function(e){var t,n;if(!e)return!1;if(Yg(e)&&jg>=19)return!0;var r=$g.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===$g.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===$g.ForwardRef)};function Yg(e){return v(e)&&!gg(e)}var Xg=function(e){if(e&&Yg(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},qg=r.createContext(null);var Ug=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Zg="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Gg="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Kg="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Gg):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Jg=["top","right","bottom","left","width","height","size","weight"],Qg="undefined"!=typeof MutationObserver,ev=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){Kg(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Zg&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Qg?(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(){Zg&&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;Jg.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}(),tv=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},nv=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Gg},rv=cv(0,0,0,0);function ov(e){return parseFloat(e)||0}function iv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ov(e["border-"+n+"-width"])}),0)}function av(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return rv;var r=nv(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ov(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=ov(r.width),l=ov(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=iv(r,"left","right")+i),Math.round(l+a)!==n&&(l-=iv(r,"top","bottom")+a)),!function(e){return e===nv(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return cv(o.left,o.top,s,l)}var sv="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof nv(e).SVGGraphicsElement}:function(e){return e instanceof nv(e).SVGElement&&"function"==typeof e.getBBox};function lv(e){return Zg?sv(e)?function(e){var t=e.getBBox();return cv(0,0,t.width,t.height)}(e):av(e):rv}function cv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var uv=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=cv(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=lv(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),dv=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return tv(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);tv(this,{target:e,contentRect:n})},hv=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ug,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new uv(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new dv(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pv="undefined"!=typeof WeakMap?new WeakMap:new Ug,fv=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=ev.getInstance(),r=new hv(t,n,this);pv.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){fv.prototype[e]=function(){var t;return(t=pv.get(this))[e].apply(t,arguments)}}));var mv=void 0!==Gg.ResizeObserver?Gg.ResizeObserver:fv,gv=Object.freeze({__proto__:null,default:mv}),vv=new Map;function yv(e){e.forEach((function(e){var t,n=e.target;null===(t=vv.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var bv=new mv(yv);function _v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eg(r.key),r)}}function wv(e,t,n){return t&&xv(e.prototype,t),n&&xv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sv(e,t){return Sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sv(e,t)}function kv(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sv(e,t)}function Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cv(e)}function Ev(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ev=function(){return!!e})()}function Mv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pv(e){var t=Ev();return function(){var n,r=Cv(e);if(t){var o=Cv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Cg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mv(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ov=function(){kv(t,r.Component);var e=Pv(t);function t(){return _v(this,t),e.apply(this,arguments)}return wv(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Tv(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),s=r.useContext(qg),l="function"==typeof n,c=l?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&r.isValidElement(c)&&Vg(c),h=d?Xg(c):null,p=Wg(h,i),f=function(){var e;return Ng(i.current)||(i.current&&"object"===Cg(i.current)?Ng(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Ng(a.current)};r.useImperativeHandle(t,(function(){return f()}));var m=r.useRef(e);m.current=e;var g=r.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),h=Math.floor(a);if(u.current.width!==d||u.current.height!==h||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var p={width:d,height:h,offsetWidth:l,offsetHeight:c};u.current=p;var f=l===Math.round(i)?i:l,g=c===Math.round(a)?a:c,v=Og(Og({},p),{},{offsetWidth:f,offsetHeight:g});null==s||s(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return r.useEffect((function(){var e=f();return e&&!o&&function(e,t){vv.has(e)||(vv.set(e,new Set),bv.observe(e)),vv.get(e).add(t)}(e,g),function(){return function(e,t){vv.has(e)&&(vv.get(e).delete(t),vv.get(e).size||(bv.unobserve(e),vv.delete(e)))}(e,g)}}),[i.current,o]),r.createElement(Ov,{ref:a},d?r.cloneElement(c,{ref:p}):c)}var Nv=r.forwardRef(Tv);"production"!==process.env.NODE_ENV&&(Nv.displayName="SingleObserver");function Dv(e,t){var n=e.children,o="function"==typeof n?[n]:vg(n);return"production"!==process.env.NODE_ENV&&(o.length>1?_g(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&_g(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Nv,dg({},e,{key:i,ref:0===o?t:void 0}),n)}))}var Av=r.forwardRef(Dv);function Lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Iv(e){return function(e){if(Array.isArray(e))return Lv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Lv(e,t);var n={}.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)?Lv(e,t):void 0}}(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.")}()}"production"!==process.env.NODE_ENV&&(Av.displayName="ResizeObserver"),Av.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(qg),s=r.useCallback((function(e,t,r){o.current+=1;var s=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){s===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(qg.Provider,{value:s},t)};var zv=function(e){return+setTimeout(e,16)},Rv=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(zv=function(e){return window.requestAnimationFrame(e)},Rv=function(e){return window.cancelAnimationFrame(e)});var $v=0,Fv=new Map;function jv(e){Fv.delete(e)}var Bv=function(e){var t=$v+=1;return function n(r){if(0===r)jv(t),e();else{var o=zv((function(){n(r-1)}));Fv.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Hv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wv(e,t){if(e){if("string"==typeof e)return Hv(e,t);var n={}.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)?Hv(e,t):void 0}}function Vv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Wv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yv(e){return function(e){if(Array.isArray(e))return Hv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wv(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.")}()}function Xv(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function qv(e){var t=function(e,t){if("object"!=hg(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hg(t)?t:t+""}function Uv(e,t,n){return(t=qv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zv(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 Gv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zv(Object(n),!0).forEach((function(t){Uv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kv(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}Bv.cancel=function(e){var t=Fv.get(e);return jv(e),Rv(t)},"production"!==process.env.NODE_ENV&&(Bv.ids=function(){return Fv});var Jv="data-rc-order",Qv="data-rc-priority",ey=new Map;function ty(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function ny(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ry(e){return Array.from((ey.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function oy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Kv())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Jv,a),s&&i&&l.setAttribute(Qv,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=ny(t),u=c.firstChild;if(r){if(s){var d=(t.styles||ry(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Jv)))return!1;var t=Number(e.getAttribute(Qv)||0);return i>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function iy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ny(t);return(t.styles||ry(n)).find((function(n){return n.getAttribute(ty(t))===e}))}function ay(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=iy(e,t);n&&ny(t).removeChild(n)}function sy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ny(n),o=ry(r),i=Gv(Gv({},n),{},{styles:o});!function(e,t){var n=ey.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=oy("",t),o=r.parentNode;ey.set(e,o),e.removeChild(r)}}(r,i);var a=iy(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=oy(e,i);return u.setAttribute(ty(i),t),u}function ly(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cy(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(kg(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],o[l],s))return!1;return!0}if(t&&o&&"object"===hg(t)&&"object"===hg(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],s)}))}return!1}(e,t)}function uy(e){return e.join("%")}var dy=function(){function e(t){_v(this,e),Mg(this,"instanceId",void 0),Mg(this,"cache",new Map),this.instanceId=t}return wv(e,[{key:"get",value:function(e){return this.opGet(uy(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(uy(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),hy="data-token-hash",py="data-css-hash",fy="__cssinjs_instance__";var my=r.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(py,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[fy]=t[fy]||e,t[fy]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(py,"]"))).forEach((function(t){var n,o=t.getAttribute(py);r[o]?t[fy]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new dy(e)}(),defaultCache:!0});var gy=function(){function e(){_v(this,e),Mg(this,"cache",void 0),Mg(this,"keys",void 0),Mg(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return wv(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=Vv(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Vv(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Mg(gy,"MAX_CACHE_SIZE",20),Mg(gy,"MAX_CACHE_OFFSET",5);var vy=0,yy=function(){function e(t){_v(this,e),Mg(this,"derivatives",void 0),Mg(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=vy,0===t.length&&_g(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),vy+=1}return wv(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),by=new gy;function _y(e){var t=Array.isArray(e)?e:[e];return by.has(t)||by.set(t,new yy(t)),by.get(t)}var xy=new WeakMap,wy={};var Sy=new WeakMap;function ky(e){var t=Sy.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof yy?t+=r.id:r&&"object"===Cg(r)?t+=ky(r):t+=r})),t=Xv(t),Sy.set(e,t)),t}function Cy(e,t){return Xv("".concat(t,"_").concat(ky(e)))}var Ey=Kv();function My(e){return"number"==typeof e?"".concat(e,"px"):e}function Py(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=Og(Og({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(Mg(r={},hy,t),Mg(r,py,n),r)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Oy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Ty=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Vv(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ny=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=Vv(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])o[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=Oy(s,null==n?void 0:n.prefix);r[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),o[s]="var(".concat(u,")")}})),[o,Ty(r,t,{scope:null==n?void 0:n.scope})]},Dy="test"!==process.env.NODE_ENV&&Kv()?r.useLayoutEffect:r.useEffect,Ay=function(e,t){var n=r.useRef(!0);Dy((function(){return e(n.current)}),t),Dy((function(){return n.current=!1,function(){n.current=!0}}),[])},Ly=function(e,t){Ay((function(t){if(!t)return e()}),t)},Iy=Og({},r).useInsertionEffect,zy=Iy?function(e,t,n){return Iy((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Ay((function(){return t(!0)}),n)},Ry=void 0!==Og({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&_g(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var $y=!1;var Fy="production"===process.env.NODE_ENV?function(){return!1}:function(){return $y};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var jy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(jy&&"function"==typeof jy.webpackHotUpdate){var By=jy.webpackHotUpdate;jy.webpackHotUpdate=function(){return $y=!0,setTimeout((function(){$y=!1}),0),By.apply(void 0,arguments)}}}function Hy(e,t,n,o,i){var a=r.useContext(my).cache,s=uy([e].concat(Yv(t))),l=Ry([s]),c=Fy(),u=function(e){a.opUpdate(s,(function(t){var r=Vv(t||[void 0,void 0],2),i=r[0],a=void 0===i?0:i,s=r[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==o||o(l,c),l=null);var u=[a,l||n()];return e?e(u):u}))};r.useMemo((function(){u()}),[s]);var d=a.opGet(s);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(s));var h=d[1];return zy((function(){null==i||i(h)}),(function(e){return u((function(t){var n=Vv(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(h)),[r+1,o]})),function(){a.opUpdate(s,(function(t){var n=Vv(t||[],2),r=n[0],i=void 0===r?0:r,c=n[1];return 0===i-1?(l((function(){!e&&a.opGet(s)||null==o||o(c,!1)})),null):[i-1,c]}))}}),[s]),h}var Wy={},Vy="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Yy=new Map;function Xy(e,t){Yy.set(e,(Yy.get(e)||0)-1);var n=Array.from(Yy.keys()),r=n.filter((function(e){return(Yy.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(hy,'="').concat(e,'"]')).forEach((function(e){var n;e[fy]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Yy.delete(e)}))}var qy="token";function Uy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=p(my),o=r.cache.instanceId,i=r.container,a=n.salt,s=void 0===a?"":a,l=n.override,c=void 0===l?Wy:l,u=n.formatToken,d=n.getComputedToken,h=n.cssVar,f=function(e,t){for(var n=xy,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(wy)||n.set(wy,e()),n.get(wy)}((function(){return Object.assign.apply(Object,[{}].concat(Yv(t)))}),t),m=ky(f),g=ky(c),v=h?ky(h):"",y=Hy(qy,[s,e.id,m,g,v],(function(){var t,n=d?d(f,c,e):function(e,t,n,r){var o=Og(Og({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(f,c,e,u),r=Og({},n),o="";if(h){var i=Vv(Ny(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=i[0],o=i[1]}var a=Cy(n,s);n._tokenKey=a,r._tokenKey=Cy(r,s);var l=null!==(t=null==h?void 0:h.key)&&void 0!==t?t:a;n._themeKey=l,function(e){Yy.set(e,(Yy.get(e)||0)+1)}(l);var p="".concat(Vy,"-").concat(Xv(a));return n._hashId=p,[n,p,r,o,(null==h?void 0:h.key)||""]}),(function(e){Xy(e[0]._themeKey,o)}),(function(e){var t=Vv(e,4),n=t[0],r=t[3];if(h&&r){var a=sy(r,Xv("css-variables-".concat(n._themeKey)),{mark:py,prepend:"queue",attachTo:i,priority:-999});a[fy]=o,a.setAttribute(hy,n._themeKey)}}));return y}var Zy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gy="comm",Ky="rule",Jy="decl",Qy=Math.abs,eb=String.fromCharCode;function tb(e){return e.trim()}function nb(e,t,n){return e.replace(t,n)}function rb(e,t,n){return e.indexOf(t,n)}function ob(e,t){return 0|e.charCodeAt(t)}function ib(e,t,n){return e.slice(t,n)}function ab(e){return e.length}function sb(e,t){return t.push(e),e}var lb=1,cb=1,ub=0,db=0,hb=0,pb="";function fb(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lb,column:cb,length:a,return:"",siblings:s}}function mb(){return hb=db>0?ob(pb,--db):0,cb--,10===hb&&(cb=1,lb--),hb}function gb(){return hb=db<ub?ob(pb,db++):0,cb++,10===hb&&(cb=1,lb++),hb}function vb(){return ob(pb,db)}function yb(){return db}function bb(e,t){return ib(pb,e,t)}function _b(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xb(e){return tb(bb(db-1,kb(91===e?e+2:40===e?e+1:e)))}function wb(e){for(;(hb=vb())&&hb<33;)gb();return _b(e)>2||_b(hb)>3?"":" "}function Sb(e,t){for(;--t&&gb()&&!(hb<48||hb>102||hb>57&&hb<65||hb>70&&hb<97););return bb(e,yb()+(t<6&&32==vb()&&32==gb()))}function kb(e){for(;gb();)switch(hb){case e:return db;case 34:case 39:34!==e&&39!==e&&kb(hb);break;case 40:41===e&&kb(e);break;case 92:gb()}return db}function Cb(e,t){for(;gb()&&e+hb!==57&&(e+hb!==84||47!==vb()););return"/*"+bb(t,db-1)+"*"+eb(47===e?e:gb())}function Eb(e){for(;!_b(vb());)gb();return bb(e,db)}function Mb(e){return function(e){return pb="",e}(Pb("",null,null,null,[""],e=function(e){return lb=cb=1,ub=ab(pb=e),db=0,[]}(e),0,[0],e))}function Pb(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,f=0,m=1,g=1,v=1,y=0,b="",_=o,x=i,w=r,S=b;g;)switch(f=y,y=gb()){case 40:if(108!=f&&58==ob(S,d-1)){-1!=rb(S+=nb(xb(y),"&","&\f"),"&\f",Qy(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=xb(y);break;case 9:case 10:case 13:case 32:S+=wb(f);break;case 92:S+=Sb(yb()-1,7);continue;case 47:switch(vb()){case 42:case 47:sb(Tb(Cb(gb(),yb()),t,n,l),l),5!=_b(f||1)&&5!=_b(vb()||1)||!ab(S)||" "===ib(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:s[c++]=ab(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=nb(S,/\f/g,"")),p>0&&(ab(S)-d||0===m&&47===f)&&sb(p>32?Nb(S+";",r,n,d-1,l):Nb(nb(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(sb(w=Ob(S,t,n,c,u,o,s,b,_=[],x=[],d,i),i),123===y)if(0===u)Pb(S,t,w,w,_,i,d,s,x);else{switch(h){case 99:if(110===ob(S,3))break;case 108:if(97===ob(S,2))break;default:u=0;case 100:case 109:case 115:}u?Pb(e,w,w,r&&sb(Ob(e,w,w,0,0,o,s,b,o,_=[],d,x),x),o,x,d,s,r?_:x):Pb(S,w,w,w,[""],x,0,s,x)}}c=u=p=0,m=v=1,b=S="",d=a;break;case 58:d=1+ab(S),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==mb())continue;switch(S+=eb(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(ab(S)-1)*v,v=1;break;case 64:45===vb()&&(S+=xb(gb())),h=vb(),u=d=ab(b=S+=Eb(yb())),y++;break;case 45:45===f&&2==ab(S)&&(m=0)}}return i}function Ob(e,t,n,r,o,i,a,s,l,c,u,d){for(var h=o-1,p=0===o?i:[""],f=function(e){return e.length}(p),m=0,g=0,v=0;m<r;++m)for(var y=0,b=ib(e,h+1,h=Qy(g=a[m])),_=e;y<f;++y)(_=tb(g>0?p[y]+" "+b:nb(b,/&\f/g,p[y])))&&(l[v++]=_);return fb(e,t,n,0===o?Ky:s,l,c,u,d)}function Tb(e,t,n,r){return fb(e,t,n,Gy,eb(hb),ib(e,2,-2),0,r)}function Nb(e,t,n,r,o){return fb(e,t,n,Jy,ib(e,0,r),ib(e,r+1,-1),r,o)}function Db(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ab(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Jy:return e.return=e.return||e.value;case Gy:return"";case"@keyframes":return e.return=e.value+"{"+Db(e.children,r)+"}";case Ky:if(!ab(e.value=e.props.join(",")))return""}return ab(n=Db(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lb(e,t){var n=t.path,r=t.parentSelectors;kg(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Ib,zb=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&Lb("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Rb=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Lb("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},$b="data-ant-cssinjs-cache-path",Fb="_FILE_STYLE__",jb=!0;function Bb(e){return function(){if(!Ib&&(Ib={},Kv())){var e=document.createElement("div");e.className=$b,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=Vv(e.split(":"),2),n=t[0],r=t[1];Ib[n]=r}));var n,r=document.querySelector("style[".concat($b,"]"));r&&(jb=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ib[e]}var Hb="_skip_check_",Wb="_multi_value_";function Vb(e){return Db(Mb(e),Ab).replace(/\{%%%\:[^;];}/g,";")}function Yb(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,i=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Yv(n.slice(1))).join(" ")}));return i.join(",")}var Xb=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,h=void 0===d?[]:d,p=n.linters,f=void 0===p?[]:p,m="",g={};function v(t){var r=t.getName(s);if(!g[r]){var o=Vv(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(t.getName(s)).concat(o)}}var y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return y.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var l=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(l).forEach((function(t){var r=l[t];if("object"!==Cg(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Cg(e)&&e&&(Hb in e||Wb in e)}(r)){var d;function S(e,t){"production"===process.env.NODE_ENV||"object"===Cg(r)&&null!=r&&r[Hb]||[zb,Rb].concat(Yv(f)).forEach((function(n){return n(e,t,{path:c,hashId:s,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;Zy[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),o=t.getName(s)),m+="".concat(n,":").concat(o,";")}var h=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===Cg(r)&&null!=r&&r[Wb]&&Array.isArray(h)?h.forEach((function(e){S(t,e)})):S(t,h)}else{var p=!1,y=t.trim(),b=!1;(o||i)&&s?y.startsWith("@")?p=!0:y=Yb("&"===y?"":t,s,u):!o||s||"&"!==y&&""!==y||(y="",b=!0);var _=Vv(e(r,n,{root:b,injectHash:p,parentSelectors:[].concat(Yv(a),[y])}),2),x=_[0],w=_[1];g=Og(Og({},g),w),m+="".concat(y).concat(x)}}))}})),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,g]};function qb(e,t){return Xv("".concat(e.join("%")).concat(t))}function Ub(){return null}var Zb="style";function Gb(e,t){var n=e.token,o=e.path,i=e.hashId,a=e.layer,s=e.nonce,l=e.clientOnly,c=e.order,u=void 0===c?0:c,d=r.useContext(my),h=d.autoClear,p=d.mock,f=d.defaultCache,m=d.hashPriority,g=d.container,v=d.ssrInline,y=d.transformers,b=d.linters,_=d.cache,x=d.layer,w=n._tokenKey,S=[w];x&&S.push("layer"),S.push.apply(S,Yv(o));var k=Ey;"production"!==process.env.NODE_ENV&&void 0!==p&&(k="client"===p);var C=Hy(Zb,S,(function(){var e=S.join("|");if(Bb(e)){var n=function(e){var t=Ib[e],n=null;if(t&&Kv())if(jb)n=Fb;else{var r=document.querySelector("style[".concat(py,'="').concat(Ib[e],'"]'));r?n=r.innerHTML:delete Ib[e]}return[n,t]}(e),r=Vv(n,2),s=r[0],c=r[1];if(s)return[s,w,c,{},l,u]}var d=t(),h=Vv(Xb(d,{hashId:i,hashPriority:m,layer:x?a:void 0,path:o.join("-"),transformers:y,linters:b}),2),p=h[0],f=h[1],g=Vb(p),v=qb(S,g);return[g,w,v,f,l,u]}),(function(e,t){var n=Vv(e,3)[2];(t||h)&&Ey&&ay(n,{mark:py})}),(function(e){var t=Vv(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(k&&n!==Fb){var i={mark:py,prepend:!x&&"queue",attachTo:g,priority:u},a="function"==typeof s?s():s;a&&(i.csp={nonce:a});var l=[],c=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):c.push(e)})),l.forEach((function(e){sy(Vb(o[e]),"_layer-".concat(e),Og(Og({},i),{},{prepend:!0}))}));var d=sy(n,r,i);d[fy]=_.instanceId,d.setAttribute(hy,w),"production"!==process.env.NODE_ENV&&d.setAttribute("data-cache-path",S.join("|")),c.forEach((function(e){sy(Vb(o[e]),"_effect-".concat(e),i)}))}})),E=Vv(C,3),M=E[0],P=E[1],O=E[2];return function(e){var t,n;v&&!k&&f?t=r.createElement("style",dg({},(Mg(n={},hy,P),Mg(n,py,O),n),{dangerouslySetInnerHTML:{__html:M}})):t=r.createElement(Ub,null);return r.createElement(r.Fragment,null,t,e)}}var Kb,Jb="cssVar";Mg(Kb={},Zb,(function(e,t,n){var r=Vv(e,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=(n||{}).plain;if(l)return null;var d=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Py(o,i,a,h,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Py(Vb(s[e]),i,"_effect-".concat(e),h,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Mg(Kb,qy,(function(e,t,n){var r=Vv(e,5),o=r[2],i=r[3],a=r[4],s=(n||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,Py(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Mg(Kb,Jb,(function(e,t,n){var r=Vv(e,4),o=r[1],i=r[2],a=r[3],s=(n||{}).plain;if(!o)return null;return[-999,i,Py(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var Qb=function(){function e(t,n){_v(this,e),Mg(this,"name",void 0),Mg(this,"style",void 0),Mg(this,"_keyframe",!0),this.name=t,this.style=n}return wv(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function e_(e){return e.notSplit=!0,e}e_(["borderTop","borderBottom"]),e_(["borderTop"]),e_(["borderBottom"]),e_(["borderLeft","borderRight"]),e_(["borderLeft"]),e_(["borderRight"]);var t_=y({});function n_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r_(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function o_(e,t){if(e){if("string"==typeof e)return n_(e,t);var n={}.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)?n_(e,t):void 0}}function i_(e){return function(e){if(Array.isArray(e))return n_(e)}(e)||r_(e)||o_(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.")}()}function a_(e){if(Array.isArray(e))return e}function s_(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l_(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function c_(e,t,n,r){if(!t.length)return n;var o,i=function(e){return a_(e)||r_(e)||o_(e)||s_()}(t),a=i[0],s=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?i_(e):Gv({},e):[],r&&void 0===n&&1===s.length?delete o[a][s[0]]:o[a]=c_(o[a],s,n,r),o}function u_(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!l_(e,t.slice(0,-1))?e:c_(e,t,n,r)}function d_(e){return Array.isArray(e)?[]:{}}var h_="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function p_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=d_(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),s=l_(e,n),l=Array.isArray(s);if(l||"object"===hg(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=l_(r,n);l?r=u_(r,n,[]):c&&"object"===hg(c)||(r=u_(r,n,d_(s))),h_(s).forEach((function(e){t([].concat(i_(n),[e]),a)}))}}else r=u_(r,n,s)}([])})),r}function f_(){}let m_=null;let g_=f_;"production"!==process.env.NODE_ENV&&(g_=(e,t,n)=>{kg(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(m_=null,wg())});const v_=r.createContext({}),y_="production"!==process.env.NODE_ENV?e=>{const{strict:t}=r.useContext(v_),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=m_;m_||(m_={}),m_[e]=m_[e]||[],m_[e].includes(o||"")||m_[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",m_)}else"production"!==process.env.NODE_ENV&&g_(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=f_,e};var b_=g_,__=y(void 0),x_=Og(Og({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});var w_={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var S_={lang:Object.assign({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"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},x_),timePickerLocale:Object.assign({},w_)};const k_="${label} is not a valid ${type}";var C_={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"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",page_size:"Page Size"},DatePicker:S_,TimePicker:w_,Calendar:S_,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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",deselectAll:"Deselect 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",collapse:"Collapse"},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:k_,method:k_,array:k_,object:k_,number:k_,date:k_,boolean:k_,integer:k_,float:k_,regexp:k_,email:k_,url:k_,hex:k_},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"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},C_.Modal);let E_=[];const M_=()=>E_.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),C_.Modal);var P_=y(void 0);var O_=(e,t)=>{const n=r.useContext(P_),o=r.useMemo((()=>{var r;const o=t||C_[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]);return[o,r.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?C_.locale:e}),[n])]};const T_="internalMark",N_=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;if("production"!==process.env.NODE_ENV){const e=y_("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===T_,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}r.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return E_.push(t),M_(),()=>{E_=E_.filter((e=>e!==t)),M_()}}Object.assign({},C_.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(P_.Provider,{value:i},n)};"production"!==process.env.NODE_ENV&&(N_.displayName="LocaleProvider");var D_=N_;const A_={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var L_=Object.assign(Object.assign({},A_),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});const I_=Math.round;function z_(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const R_=(e,t,n)=>0===n?e:e/100;function $_(e,t){const n=t||255;return e>n?n:e<0?0:e}class F_{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(Mg(this,"isValid",!0),Mg(this,"r",0),Mg(this,"g",0),Mg(this,"b",0),Mg(this,"a",1),Mg(this,"_h",void 0),Mg(this,"_s",void 0),Mg(this,"_l",void 0),Mg(this,"_v",void 0),Mg(this,"_max",void 0),Mg(this,"_min",void 0),Mg(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof F_)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=$_(e.r),this.g=$_(e.g),this.b=$_(e.b),this.a="number"==typeof e.a?$_(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:I_(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:I_(o("r")),g:I_(o("g")),b:I_(o("b")),a:I_(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>I_((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=I_(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=I_(100*this.getSaturation()),n=I_(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=$_(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=I_(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const s=e/60,l=(1-Math.abs(2*n-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(o=l,i=c):s>=1&&s<2?(o=c,i=l):s>=2&&s<3?(i=l,a=c):s>=3&&s<4?(i=c,a=l):s>=4&&s<5?(o=c,a=l):s>=5&&s<6&&(o=l,a=c);const u=n-l/2;this.r=I_(255*(o+u)),this.g=I_(255*(i+u)),this.b=I_(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=I_(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),s=i-a,l=I_(n*(1-t)*255),c=I_(n*(1-t*s)*255),u=I_(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=z_(e,R_);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=z_(e,R_);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=z_(e,((e,t)=>t.includes("%")?I_(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var j_=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function B_(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function H_(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),Math.round(100*r)/100);var r}function W_(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function V_(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new F_(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new F_({h:B_(o,i,!0),s:H_(o,i,!0),v:W_(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=4;s+=1){var l=new F_({h:B_(o,s),s:H_(o,s),v:W_(o,s)});n.push(l)}return"dark"===t.theme?j_.map((function(e){var r=e.index,o=e.amount;return new F_(t.backgroundColor||"#141414").mix(n[r],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var Y_={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},X_=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];X_.primary=X_[5];var q_=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];q_.primary=q_[5];var U_=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];U_.primary=U_[5];var Z_=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Z_.primary=Z_[5];var G_=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];G_.primary=G_[5];var K_=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];K_.primary=K_[5];var J_=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];J_.primary=J_[5];var Q_=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Q_.primary=Q_[5];var ex=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ex.primary=ex[5];var tx=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];tx.primary=tx[5];var nx=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];nx.primary=nx[5];var rx=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];rx.primary=rx[5];var ox=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ox.primary=ox[5];var ix={red:X_,volcano:q_,orange:U_,gold:Z_,yellow:G_,lime:K_,green:J_,cyan:Q_,blue:ex,geekblue:tx,purple:nx,magenta:rx,grey:ox};var ax=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};var sx=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function lx(e){return(e+8)/e}var cx=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:lx(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const ux=(e,t)=>new F_(e).setA(t).toRgbString(),dx=(e,t)=>new F_(e).darken(t).toHexString(),hx=e=>{const t=V_(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},px=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ux(r,.88),colorTextSecondary:ux(r,.65),colorTextTertiary:ux(r,.45),colorTextQuaternary:ux(r,.25),colorFill:ux(r,.15),colorFillSecondary:ux(r,.06),colorFillTertiary:ux(r,.04),colorFillQuaternary:ux(r,.02),colorBgSolid:ux(r,1),colorBgSolidHover:ux(r,.75),colorBgSolidActive:ux(r,.95),colorBgLayout:dx(n,4),colorBgContainer:dx(n,0),colorBgElevated:dx(n,0),colorBgSpotlight:ux(r,.85),colorBgBlur:"transparent",colorBorder:dx(n,15),colorBorderSecondary:dx(n,6)}};const fx=_y((function(e){Y_.pink=Y_.magenta,ix.pink=ix.magenta;const t=Object.keys(A_).map((t=>{const n=e[t]===Y_[t]?ix[t]:V_(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),h=n(o),p=n(i),f=n(a),m=n(s),g=r(c,u),v=n(e.colorLink||e.colorInfo),y=new F_(f[1]).mix(new F_(f[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:y,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new F_("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:hx,generateNeutralColorPalettes:px})),cx(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),sx(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},ax(r))}(e))}));var mx=fx;const gx={token:L_,override:{override:L_},hashed:!0},vx=o.createContext(gx),yx="ant",bx="anticon",_x=["outlined","borderless","filled","underlined"],xx=r.createContext({getPrefixCls:(e,t)=>t||(e?`${yx}-${e}`:yx),iconPrefixCls:bx}),wx={};const Sx=`-ant-${Date.now()}-${Math.random()}`;function kx(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new F_(e),i=V_(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new F_(t.primaryColor),i=V_(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setA(.12*e.a)));const a=new F_(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setA(.3*e.a))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Kv()?sy(n,`${Sx}-dynamic-theme`):"production"!==process.env.NODE_ENV&&b_(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Cx=r.createContext(!1),Ex=e=>{let{children:t,disabled:n}=e;const o=r.useContext(Cx);return r.createElement(Cx.Provider,{value:null!=n?n:o},t)};var Mx=Cx;const Px=r.createContext(void 0),Ox=e=>{let{children:t,size:n}=e;const o=r.useContext(Px);return r.createElement(Px.Provider,{value:n||o},t)};var Tx=Px;var Nx=wv((function e(){_v(this,e)})),Dx="CALC_UNIT",Ax=new RegExp(Dx,"g");function Lx(e){return"number"==typeof e?"".concat(e).concat(Dx):e}var Ix=function(){kv(t,Nx);var e=Pv(t);function t(n,r){var o;_v(this,t),Mg(Mv(o=e.call(this)),"result",""),Mg(Mv(o),"unitlessCssVar",void 0),Mg(Mv(o),"lowPriority",void 0);var i=Cg(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=Lx(n):"string"===i&&(o.result=n),o}return wv(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Lx(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Lx(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Ax,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),zx=function(){kv(t,Nx);var e=Pv(t);function t(n){var r;return _v(this,t),Mg(Mv(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return wv(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),Rx=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function $x(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Fx(e,t){return a_(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||o_(e,t)||s_()}function jx(e){var t=r.useRef(!1),n=Fx(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function Bx(e){return void 0!==e}function Hx(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Fx(jx((function(){return Bx(o)?o:Bx(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==o?o:l,d=a?a(u):u,h=$x(i),p=Fx(jx([u]),2),f=p[0],m=p[1];return Ly((function(){var e=f[0];l!==e&&h(l,e)}),[f]),Ly((function(){Bx(o)||c(o)}),[o]),[d,$x((function(e,t){c(e,t),m([u],t)}))]}function Wx(e,t,n,r){var o=Og({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=Vv(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&kg(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=Og(Og({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Vx="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Yx=!0;function Xx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Vx)return Object.assign.apply(Object,[{}].concat(t));Yx=!1;var r={};return t.forEach((function(e){"object"===Cg(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Yx=!0,r}var qx={};function Ux(){}function Zx(e,t,n){var r;return"function"==typeof n?n(Xx(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Gx=function(){function e(){_v(this,e),Mg(this,"map",new Map),Mg(this,"objectIDMap",new WeakMap),Mg(this,"nextID",0),Mg(this,"lastAccessBeat",new Map),Mg(this,"accessBeat",0)}return wv(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===Cg(e)?"obj_".concat(t.getObjectID(e)):"".concat(Cg(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),Kx=new Gx;var Jx=function(){return{}};const Qx=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ew(e){return e>=0&&e<=255}function tw(e,t){const{r:n,g:r,b:o,a:i}=new F_(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new F_(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-s*(1-e))/e),c=Math.round((o-l*(1-e))/e);if(ew(t)&&ew(i)&&ew(c))return new F_({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new F_({r:n,g:r,b:o,a:1}).toRgbString()}var nw=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function rw(e){const{override:t}=e,n=nw(e,["override"]),r=Object.assign({},t);Object.keys(L_).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:tw(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:tw(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:tw(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:tw(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new F_("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new F_("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new F_("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ow=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const iw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},aw={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},sw={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},lw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ow(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=rw(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=ow(n,["theme"]);let i=o;r&&(i=lw(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function cw(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=o.useContext(vx),a=`5.24.0-${t||""}`,s=n||mx,[l,c,u]=Uy(s,[L_,e],{salt:a,override:r,getComputedToken:lw,formatToken:rw,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:iw,ignore:aw,preserve:sw}});return[s,u,t?c:"",l,i]}const uw={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},dw=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},hw=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),pw=(e,t)=>({outline:`${My(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),fw=(e,t)=>({"&:focus-visible":Object.assign({},pw(e,t))}),mw=e=>({[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:gw,genComponentStyleHook:vw,genSubStyleComponent:yw}=function(e){var t=e.useCSP,n=void 0===t?Jx:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,s=e.getCommonStyle,l=e.getCompUnitless;function c(t,l,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],h=Vv(d,1)[0],p=d.join("-"),f=e.layer||{name:"antd"};return function(e){var t,d,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=r(),v=g.theme,y=g.realToken,b=g.hashId,_=g.token,x=g.cssVar,w=i(),S=w.rootPrefixCls,k=w.iconPrefixCls,C=n(),E=x?"css":"js",M=(t=function(){var e=new Set;return x&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Oy(t,x.prefix)),e.add(Oy(t,Rx(h,x.prefix)))})),function(e,t){var n="css"===e?Ix:zx;return function(e){return new n(e,t)}}(E,e)},d=[E,h,null==x?void 0:x.prefix],o.useMemo((function(){var e=Kx.get(d);if(e)return e;var n=t();return Kx.set(d,n),n}),d)),P=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return My(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return My(e)})).join(","),")")}}}(E),O=P.max,T=P.min,N={theme:v,token:_,hashId:b,nonce:function(){return C.nonce},clientOnly:u.clientOnly,layer:f,order:u.order||-999};"function"==typeof a&&Gb(Og(Og({},N),{},{clientOnly:!1,path:["Shared",S]}),(function(){return a(_,{prefix:{rootPrefixCls:S,iconPrefixCls:k},csp:C})}));var D=Gb(Og(Og({},N),{},{path:[p,e,k]}),(function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,r=Ux;return Vx&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return Yx&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;qx[e]={global:Array.from(t),component:Og(Og({},null===(r=qx[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(_),n=t.token,r=t.flush,o=Zx(h,y,c),i=".".concat(e),a=Wx(h,y,o,{deprecatedTokens:u.deprecatedTokens});x&&o&&"object"===Cg(o)&&Object.keys(o).forEach((function(e){o[e]="var(".concat(Oy(e,Rx(h,x.prefix)),")")}));var d=Xx(n,{componentCls:i,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(S),calc:M,max:O,min:T},x?o:a),p=l(d,{hashId:b,prefixCls:e,rootPrefixCls:S,iconPrefixCls:k});r(h,a);var f="function"==typeof s?s(d,e,m,u.resetFont):null;return[!1===u.resetStyle?null:f,p]}));return[D,b]}}return{genStyleHooks:function(e,t,n,i){var a=Array.isArray(e)?e[0]:e;function s(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=Og(Og({},"function"==typeof l?l(e):{}),{},Mg({},s("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[s(e)]=u[e]}));var h=Og(Og({},i),{},{unitless:d,prefixToken:s}),f=c(e,t,n,h),m=function(e,t,n){var i=n.unitless,a=n.injectStyle,s=void 0===a||a,l=n.prefixToken,c=n.ignore,u=function(o){var a=o.rootCls,s=o.cssVar,u=void 0===s?{}:s,d=r().realToken;return function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,s=e.scope,l=void 0===s?"":s,c=p(my),u=c.cache.instanceId,d=c.container,h=a._tokenKey,f=[].concat(Yv(e.path),[n,l,h]),m=Hy(Jb,f,(function(){var e=t(),a=Vv(Ny(e,n,{prefix:r,unitless:o,ignore:i,scope:l}),2),s=a[0],c=a[1];return[s,c,qb(f,c),n]}),(function(e){var t=Vv(e,3)[2];Ey&&ay(t,{mark:py})}),(function(e){var t=Vv(e,3),r=t[1],o=t[2];if(r){var i=sy(r,o,{mark:py,prepend:"queue",attachTo:d,priority:-999});i[fy]=u,i.setAttribute(hy,n)}}))}({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:c,token:d,scope:a},(function(){var r=Zx(e,d,t),o=Wx(e,d,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[l(e)]=o[e],delete o[e]})),o})),null},d=function(t){var n=r().cssVar;return[function(r){return s&&n?o.createElement(o.Fragment,null,o.createElement(u,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return d}(a,n,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Vv(f(e,t),2)[1],r=Vv(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=c(e,t,n,Og({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:c}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=p(xx);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=cw();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=p(xx);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;return[{"&":hw(e)},mw(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:bx)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},getCompUnitless:()=>iw});var bw=(e,t)=>{const[n,r]=cw();return Gb({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[mw(e)]))};const _w=Object.assign({},r),{useId:xw}=_w;var ww=void 0===xw?()=>"":xw;var Sw=["children"],kw=r.createContext({});function Cw(e){var t=e.children,n=ly(e,Sw);return r.createElement(kw.Provider,{value:n},t)}var Ew=function(){kv(t,r.Component);var e=Pv(t);function t(){return _v(this,t),e.apply(this,arguments)}return wv(t,[{key:"render",value:function(){return this.props.children}}]),t}();var Mw="none",Pw="appear",Ow="enter",Tw="leave",Nw="none",Dw="prepare",Aw="start",Lw="active",Iw="end",zw="prepared";function Rw(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 $w=function(e,t){var n={animationend:Rw("Animation","AnimationEnd"),transitionend:Rw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Kv(),"undefined"!=typeof window?window:{}),Fw={};if(Kv()){var jw=document.createElement("div");Fw=jw.style}var Bw={};function Hw(e){if(Bw[e])return Bw[e];var t=$w[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Fw)return Bw[e]=t[i],Bw[e]}return""}var Ww=Hw("animationend"),Vw=Hw("transitionend"),Yw=!(!Ww||!Vw),Xw=Ww||"animationend",qw=Vw||"transitionend";function Uw(e,t){if(!e)return null;if("object"===Cg(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Zw=Kv()?d:l,Gw=[Dw,Aw,Lw,Iw],Kw=[Dw,zw],Jw=!1;function Qw(e){return e===Lw||e===Iw}var eS=function(e,t,n){var o=Vv(jx(Nw),2),i=o[0],a=o[1],s=function(){var e=r.useRef(null);function t(){Bv.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Bv((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),l=Vv(s,2),c=l[0],u=l[1];var d=t?Kw:Gw;return Zw((function(){if(i!==Nw&&i!==Iw){var e=d.indexOf(i),t=d[e+1],r=n(i);r===Jw?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(Dw,!0)},i]};function tS(e,t,n,o){var i,a,c,u,d=o.motionEnter,h=void 0===d||d,p=o.motionAppear,f=void 0===p||p,m=o.motionLeave,g=void 0===m||m,v=o.motionDeadline,y=o.motionLeaveImmediately,b=o.onAppearPrepare,_=o.onEnterPrepare,x=o.onLeavePrepare,w=o.onAppearStart,S=o.onEnterStart,k=o.onLeaveStart,C=o.onAppearActive,E=o.onEnterActive,M=o.onLeaveActive,P=o.onAppearEnd,O=o.onEnterEnd,T=o.onLeaveEnd,N=o.onVisibleChanged,D=Vv(jx(),2),A=D[0],L=D[1],I=(i=Mw,a=r.useReducer((function(e){return e+1}),0),c=Fx(a,2)[1],u=r.useRef(i),[$x((function(){return u.current})),$x((function(e){u.current="function"==typeof e?e(u.current):e,c()}))]),z=Vv(I,2),R=z[0],$=z[1],F=Vv(jx(null),2),j=F[0],B=F[1],H=R(),W=s(!1),V=s(null);function Y(){return n()}var X=s(!1);function q(){$(Mw),B(null,!0)}var U=$x((function(e){var t=R();if(t!==Mw){var n=Y();if(!e||e.deadline||e.target===n){var r,o=X.current;t===Pw&&o?r=null==P?void 0:P(n,e):t===Ow&&o?r=null==O?void 0:O(n,e):t===Tw&&o&&(r=null==T?void 0:T(n,e)),o&&!1!==r&&q()}}})),Z=function(e){var t=s();function n(t){t&&(t.removeEventListener(qw,e),t.removeEventListener(Xw,e))}return r.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(qw,e),r.addEventListener(Xw,e),t.current=r)},n]}(U),G=Vv(Z,1)[0],K=function(e){switch(e){case Pw:return Mg(Mg(Mg({},Dw,b),Aw,w),Lw,C);case Ow:return Mg(Mg(Mg({},Dw,_),Aw,S),Lw,E);case Tw:return Mg(Mg(Mg({},Dw,x),Aw,k),Lw,M);default:return{}}},J=r.useMemo((function(){return K(H)}),[H]),Q=Vv(eS(H,!e,(function(e){if(e===Dw){var t=J[Dw];return t?t(Y()):Jw}var n;te in J&&B((null===(n=J[te])||void 0===n?void 0:n.call(J,Y(),null))||null);return te===Lw&&H!==Mw&&(G(Y()),v>0&&(clearTimeout(V.current),V.current=setTimeout((function(){U({deadline:!0})}),v))),te===zw&&q(),true})),2),ee=Q[0],te=Q[1],ne=Qw(te);X.current=ne;var re=s(null);Zw((function(){if(!W.current||re.current!==t){L(t);var n,r=W.current;W.current=!0,!r&&t&&f&&(n=Pw),r&&t&&h&&(n=Ow),(r&&!t&&g||!r&&y&&!t&&g)&&(n=Tw);var o=K(n);n&&(e||o[Dw])?($(n),ee()):$(Mw),re.current=t}}),[t]),l((function(){(H===Pw&&!f||H===Ow&&!h||H===Tw&&!g)&&$(Mw)}),[f,h,g]),l((function(){return function(){W.current=!1,clearTimeout(V.current)}}),[]);var oe=r.useRef(!1);l((function(){A&&(oe.current=!0),void 0!==A&&H===Mw&&((oe.current||A)&&(null==N||N(A)),oe.current=!0)}),[A,H]);var ie=j;return J[Dw]&&te===Aw&&(ie=Og({transition:"none"},ie)),[H,te,ie,null!=A?A:t]}var nS=function(e){var t=e;"object"===Cg(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,c=e.forceRender,u=e.children,d=e.motionName,h=e.leavedClassName,p=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(kw).motion),m=s(),g=s();var v=Vv(tS(f,i,(function(){try{return m.current instanceof HTMLElement?m.current:Ng(g.current)}catch(e){return null}}),e),4),y=v[0],b=v[1],_=v[2],x=v[3],w=r.useRef(x);x&&(w.current=!0);var S,k=r.useCallback((function(e){m.current=e,Bg(n,e)}),[n]),C=Og(Og({},p),{},{visible:i});if(u)if(y===Mw)S=x?u(Og({},C),k):!l&&w.current&&h?u(Og(Og({},C),{},{className:h}),k):c||!l&&!h?u(Og(Og({},C),{},{style:{display:"none"}}),k):null;else{var E;b===Dw?E="prepare":Qw(b)?E="active":b===Aw&&(E="start");var M=Uw(d,"".concat(y,"-").concat(E));S=u(Og(Og({},C),{},{className:ug(Uw(d,y),Mg(Mg({},M,M&&E),d,"string"==typeof d)),style:_}),k)}else S=null;r.isValidElement(S)&&Vg(S)&&(Xg(S)||(S=r.cloneElement(S,{ref:k})));return r.createElement(Ew,{ref:g},S)}));return n.displayName="CSSMotion",n}(Yw),rS="add",oS="keep",iS="remove",aS="removed";function sS(e){var t;return Og(Og({},t=e&&"object"===Cg(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function lS(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(sS)}var cS=["component","children","onVisibleChanged","onAllRemoved"],uS=["status"],dS=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function hS(e){const{children:t}=e,[,n]=cw(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(Cw,{motion:o},t):t}!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nS,n=function(){kv(n,r.Component);var e=Pv(n);function n(){var t;_v(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Mg(Mv(t=e.call.apply(e,[this].concat(o))),"state",{keyEntities:[]}),Mg(Mv(t),"removeKey",(function(e){t.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:Og(Og({},t),{},{status:aS})}))}}),(function(){0===t.state.keyEntities.filter((function(e){return e.status!==aS})).length&&t.props.onAllRemoved&&t.props.onAllRemoved()}))})),t}return wv(n,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,s=o.onVisibleChanged;o.onAllRemoved;var l=ly(o,cS),c=i||r.Fragment,u={};return dS.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,r.createElement(c,l,n.map((function(n,o){var i=n.status,l=ly(n,uS),c=i===rS||i===oS;return r.createElement(t,dg({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(t){null==s||s(t,{key:l.key}),t||e.removeKey(l.key)}}),(function(e,t){return a(Og(Og({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=lS(n),i=function(){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,i=lS(e),a=lS(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Og(Og({},e),{},{status:rS})}))),r=i),n.push(Og(Og({},s),{},{status:oS})),r+=1,t=!0;break}}t||n.push(Og(Og({},e),{},{status:iS}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Og(Og({},e),{},{status:rS})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==iS}))).forEach((function(t){t.key===e&&(t.status=oS)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==aS||e.status!==iS}))}}}]),n}();Mg(n,"defaultProps",{component:"div"})}(Yw);const pS=r.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return y_("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(pS.displayName="PropWarning");var fS="production"!==process.env.NODE_ENV?pS:()=>null,mS=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let gS=!1;process.env.NODE_ENV;const vS=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let yS;const bS=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:i,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,splitter:h,virtual:p,dropdownMatchSelectWidth:f,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:_,componentDisabled:x,segmented:w,statistic:S,spin:k,calendar:C,carousel:E,cascader:M,collapse:P,typography:O,checkbox:T,descriptions:N,divider:D,drawer:A,skeleton:L,steps:I,image:z,layout:R,list:$,mentions:F,modal:j,progress:B,result:H,slider:W,breadcrumb:V,menu:Y,pagination:X,input:q,textArea:U,empty:Z,badge:G,radio:K,rate:J,switch:Q,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:he,datePicker:pe,rangePicker:fe,flex:me,wave:ge,dropdown:ve,warning:ye,tour:be,tooltip:_e,popover:xe,popconfirm:we,floatButtonGroup:Se,variant:ke,inputNumber:Ce,treeSelect:Ee}=e,Me=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||y.getPrefixCls("");return t?`${o}-${t}`:o}),[y.getPrefixCls,e.prefixCls]),Pe=b||y.iconPrefixCls||bx,Oe=n||y.csp;bw(Pe,Oe);const Te=function(e,t,n){var r,o;const i=y_("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},gx),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:gx.hashed,cssVar:null==t?void 0:t.cssVar}),l=ww();if("production"!==process.env.NODE_ENV){const e=a.cssVar||s.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||l);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Fg((()=>{var r,o;if(!e)return t;const i=Object.assign({},s.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const c=`css-var-${l.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof s.cssVar?s.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:i,cssVar:u})}),[a,s],((e,t)=>e.some(((e,n)=>!cy(e,t[n],!0)))))}(_,y.theme,{prefixCls:Me("")});"production"!==process.env.NODE_ENV&&(gS=gS||!!Te);const Ne={csp:Oe,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:l||v,direction:u,space:d,splitter:h,virtual:p,popupMatchSelectWidth:null!=m?m:f,popupOverflow:g,getPrefixCls:Me,iconPrefixCls:Pe,theme:Te,segmented:w,statistic:S,spin:k,calendar:C,carousel:E,cascader:M,collapse:P,typography:O,checkbox:T,descriptions:N,divider:D,drawer:A,skeleton:L,steps:I,image:z,input:q,textArea:U,layout:R,list:$,mentions:F,modal:j,progress:B,result:H,slider:W,breadcrumb:V,menu:Y,pagination:X,empty:Z,badge:G,radio:K,rate:J,switch:Q,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:he,datePicker:pe,rangePicker:fe,flex:me,wave:ge,dropdown:ve,warning:ye,tour:be,tooltip:_e,popover:xe,popconfirm:we,floatButtonGroup:Se,variant:ke,inputNumber:Ce,treeSelect:Ee};if("production"!==process.env.NODE_ENV){y_("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const De=Object.assign({},y);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(De[e]=Ne[e])})),vS.forEach((t=>{const n=e[t];n&&(De[t]=n)})),void 0!==o&&(De.button=Object.assign({autoInsertSpace:o},De.button));const Ae=Fg((()=>De),De,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),{layer:Le}=r.useContext(my),Ie=r.useMemo((()=>({prefixCls:Pe,csp:Oe,layer:Le?"antd":void 0})),[Pe,Oe,Le]);let ze=r.createElement(r.Fragment,null,r.createElement(fS,{dropdownMatchSelectWidth:f}),t);const Re=r.useMemo((()=>{var e,t,n,r;return p_((null===(e=C_.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ae.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ae.form)||void 0===r?void 0:r.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Ae,null==s?void 0:s.validateMessages]);Object.keys(Re).length>0&&(ze=r.createElement(__.Provider,{value:Re},ze)),l&&(ze=r.createElement(D_,{locale:l,_ANT_MARK__:T_},ze)),(Pe||Oe)&&(ze=r.createElement(t_.Provider,{value:Ie},ze)),c&&(ze=r.createElement(Ox,{size:c},ze)),ze=r.createElement(hS,null,ze);const $e=r.useMemo((()=>{const e=Te||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=mS(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?_y(t):mx,s={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=_y(r.algorithm)),delete r.algorithm),s[t]=r}));const l=Object.assign(Object.assign({},L_),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:o})}),[Te]);return _&&(ze=r.createElement(vx.Provider,{value:$e},ze)),Ae.warning&&(ze=r.createElement(v_.Provider,{value:Ae.warning},ze)),void 0!==x&&(ze=r.createElement(Ex,{disabled:x},ze)),r.createElement(xx.Provider,{value:Ae},ze)},_S=e=>{const t=r.useContext(xx),n=r.useContext(P_);return r.createElement(bS,Object.assign({parentContext:t,legacyLocale:n},e))};function xS(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function wS(e){return function(e){return xS(e)instanceof ShadowRoot}(e)?xS(e):null}function SS(e){return"object"===Cg(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Cg(e.icon)||"function"==typeof e.icon)}function kS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function CS(e,t,n){return n?o.createElement(e.tag,Og(Og({key:t},kS(e.attrs)),n),(e.children||[]).map((function(n,r){return CS(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):o.createElement(e.tag,Og({key:t},kS(e.attrs)),(e.children||[]).map((function(n,r){return CS(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function ES(e){return V_(e)[0]}function MS(e){return e?Array.isArray(e)?e:[e]:[]}_S.ConfigContext=xx,_S.SizeContext=Tx,_S.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(yS=t),r&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&b_(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),kx(yS||yx,r))},_S.useConfig=function(){return{componentDisabled:p(Mx),componentSize:p(Tx)}},Object.defineProperty(_S,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&b_(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Tx)}),"production"!==process.env.NODE_ENV&&(_S.displayName="ConfigProvider");var PS=["icon","className","onClick","style","primaryColor","secondaryColor"],OS={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var TS=function(e){var t,n,o,i,a,s,c=e.icon,u=e.className,d=e.onClick,h=e.style,f=e.primaryColor,m=e.secondaryColor,g=ly(e,PS),v=r.useRef(),y=OS;if(f&&(y={primaryColor:f,secondaryColor:m||ES(f)}),t=v,n=p(t_),o=n.csp,i=n.prefixCls,a=n.layer,s="\n.anticon {\n display: inline-flex;\n align-items: center;\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",i&&(s=s.replace(/anticon/g,i)),a&&(s="@layer ".concat(a," {\n").concat(s,"\n}")),l((function(){var e=wS(t.current);sy(s,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})}),[]),function(e,t){kg(e,"[@ant-design/icons] ".concat(t))}(SS(c),"icon should be icon definiton, but got ".concat(c)),!SS(c))return null;var b=c;return b&&"function"==typeof b.icon&&(b=Og(Og({},b),{},{icon:b.icon(y.primaryColor,y.secondaryColor)})),CS(b.icon,"svg-".concat(b.name),Og(Og({className:u,onClick:d,style:h,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:v}))};TS.displayName="IconReact",TS.getTwoToneColors=function(){return Og({},OS)},TS.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;OS.primaryColor=t,OS.secondaryColor=n||ES(t),OS.calculated=!!n};var NS=TS;function DS(e){var t=Vv(MS(e),2),n=t[0],r=t[1];return NS.setTwoToneColors({primaryColor:n,secondaryColor:r})}var AS=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];DS(ex.primary);var LS=r.forwardRef((function(e,t){var n=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=ly(e,AS),d=r.useContext(t_),h=d.prefixCls,p=void 0===h?"anticon":h,f=d.rootClassName,m=ug(f,p,Mg(Mg({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),n),g=s;void 0===g&&l&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=Vv(MS(c),2),b=y[0],_=y[1];return r.createElement("span",dg({role:"img","aria-label":o.name},u,{ref:t,tabIndex:g,onClick:l,className:m}),r.createElement(NS,{icon:o,primaryColor:b,secondaryColor:_,style:v}))}));LS.displayName="AntdIcon",LS.getTwoToneColor=function(){var e=NS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},LS.setTwoToneColor=DS;var IS=LS,zS={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},RS=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:zS}))},$S=r.forwardRef(RS);"production"!==process.env.NODE_ENV&&($S.displayName="CloseCircleFilled");var FS=$S,jS={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},BS=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:jS}))},HS=r.forwardRef(BS);"production"!==process.env.NODE_ENV&&(HS.displayName="CloseOutlined");var WS=HS,VS="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function YS(e,t){return 0===e.indexOf(t)}function XS(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Gv({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||YS(n,"aria-"))||t.data&&YS(n,"data-")||t.attr&&VS.includes(n))&&(r[n]=e[n])})),r}const qS=(e,t,n)=>o.isValidElement(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function US(e,t){return qS(e,e,t)}function ZS(e){return ZS="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},ZS(e)}function GS(e){var t=function(e,t){if("object"!=ZS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZS(t)?t:t+""}function KS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GS(r.key),r)}}var JS=e=>{const[,,,,t]=cw();return t?`${e}-css-var`:""},QS={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"},ek=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:QS}))},tk=r.forwardRef(ek);"production"!==process.env.NODE_ENV&&(tk.displayName="LoadingOutlined");var nk=tk;const rk=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(rk.displayName="zIndexContext");var ok=rk;const ik=100,ak={Modal:ik,Drawer:ik,Popover:ik,Popconfirm:ik,Tooltip:ik,Tour:ik,FloatButton:ik},sk={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const lk=(e,t)=>{const[,n]=cw(),r=o.useContext(ok),i=function(e){return e in ak}(e);let a;if(void 0!==t)a=[t,t];else{let o=null!=r?r:0;o+=i?(r?0:n.zIndexPopupBase)+ak[e]:sk[e],a=[void 0===r?t:o,o]}if("production"!==process.env.NODE_ENV){const r=y_(e),o=n.zIndexPopupBase+1100,i=a[0]||0;"production"!==process.env.NODE_ENV&&r(void 0!==t||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function ck(){ck=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new T(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var _={};c(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==n&&r.call(w,a)&&(_=w);var S=b.prototype=v.prototype=Object.create(_);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==hg(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function M(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(hg(t)+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function uk(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function dk(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){uk(i,r,o,a,s,"next",e)}function s(e){uk(i,r,o,a,s,"throw",e)}a(void 0)}))}}var hk,pk=Gv({},E),fk=pk.version,mk=pk.render,gk=pk.unmountComponentAtNode;try{Number((fk||"").split(".")[0])>=18&&(hk=pk.createRoot)}catch(e){}function vk(e){var t=pk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===hg(t)&&(t.usingClientEntryPoint=e)}var yk="__rc_react_root__";function bk(e,t){hk?function(e,t){vk(!0);var n=t[yk]||hk(t);vk(!1),n.render(e),t[yk]=n}(e,t):function(e,t){null==mk||mk(e,t)}(e,t)}function _k(e){return xk.apply(this,arguments)}function xk(){return(xk=dk(ck().mark((function e(t){return ck().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[yk])||void 0===e||e.unmount(),delete t[yk]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wk(e){gk(e)}function Sk(){return(Sk=dk(ck().mark((function e(t){return ck().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===hk){e.next=2;break}return e.abrupt("return",_k(t));case 2:wk(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let kk=(e,t)=>{if("production"!==process.env.NODE_ENV){const e=parseInt(r.version.split(".")[0],10),t=Object.keys(E);"production"!==process.env.NODE_ENV&&b_(e<19||t.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return bk(e,t),()=>function(e){return Sk.apply(this,arguments)}(t)};function Ck(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var Ek=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};const Mk=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var Pk=vw("Wave",(e=>[Mk(e)]));const Ok=`${yx}-wave-target`;function Tk(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Nk(e){return Number.isNaN(e)?0:e}const Dk=e=>{const{className:t,target:n,component:o,registerUnmount:i}=e,a=r.useRef(null),s=r.useRef(null);r.useEffect((()=>{s.current=i()}),[]);const[l,c]=r.useState(null),[u,d]=r.useState([]),[h,p]=r.useState(0),[f,m]=r.useState(0),[g,v]=r.useState(0),[y,b]=r.useState(0),[_,x]=r.useState(!1),w={left:h,top:f,width:g,height:y,borderRadius:u.map((e=>`${e}px`)).join(" ")};function S(){const e=getComputedStyle(n);c(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Tk(t)?t:Tk(n)?n:Tk(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:Nk(-parseFloat(r))),m(t?n.offsetTop:Nk(-parseFloat(o))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;d([i,a,l,s].map((e=>Nk(parseFloat(e)))))}if(l&&(w["--wave-color"]=l),r.useEffect((()=>{if(n){const e=Bv((()=>{S(),x(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(S),t.observe(n)),()=>{Bv.cancel(e),null==t||t.disconnect()}}}),[]),!_)return null;const k=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(Ok));return r.createElement(nS,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;null===(r=s.current)||void 0===r||r.call(s).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:o}=e;return r.createElement("div",{ref:Hg(a,n),className:ug(t,o,{"wave-quick":k}),style:w})}))};var Ak=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild);let a=null;a=kk(r.createElement(Dk,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),i)};var Lk=(e,t,n)=>{const{wave:o}=r.useContext(xx),[,i,a]=cw(),s=$x((r=>{const s=e.current;if((null==o?void 0:o.disabled)||!s)return;const l=s.querySelector(`.${Ok}`)||s,{showEffect:c}=o||{};(c||Ak)(l,{className:t,token:i,component:n,event:r,hashId:a})})),l=r.useRef(null);return e=>{Bv.cancel(l.current),l.current=Bv((()=>{s(e)}))}};const Ik=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=p(xx),a=s(null),l=i("wave"),[,c]=Pk(l),u=Lk(a,ug(l,c),r);if(o.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Ek(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!o.isValidElement(t))return null!=t?t:null;return US(t,{ref:Vg(t)?Hg(Xg(t),a):a})};"production"!==process.env.NODE_ENV&&(Ik.displayName="Wave");var zk=Ik;var Rk=e=>{const t=o.useContext(Tx);return o.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])};const $k=r.createContext(null),Fk=(e,t)=>{const n=r.useContext($k),o=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return ug(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},jk=e=>{const{children:t}=e;return r.createElement($k.Provider,{value:null},t)};var Bk=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hk=r.createContext(void 0);var Wk=e=>{const{getPrefixCls:t,direction:n}=r.useContext(xx),{prefixCls:o,size:i,className:a}=e,s=Bk(e,["prefixCls","size","className"]),l=t("btn-group",o),[,,c]=cw(),u=r.useMemo((()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}}),[i]);if("production"!==process.env.NODE_ENV){const e=y_("Button.Group");e.deprecated(!1,"Button.Group","Space.Compact"),"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=ug(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},a,c);return r.createElement(Hk.Provider,{value:i},r.createElement("div",Object.assign({},s,{className:d})))};const Vk=/^[\u4E00-\u9FA5]{2}$/,Yk=Vk.test.bind(Vk);function Xk(e){return"string"==typeof e}function qk(e){return"text"===e||"link"===e}function Uk(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Xk(e.type)&&Yk(e.props.children)?US(e,{children:e.props.children.split("").join(n)}):Xk(e)?Yk(e)?o.createElement("span",null,e.split("").join(n)):o.createElement("span",null,e):function(e){return e&&o.isValidElement(e)&&e.type===o.Fragment}(e)?o.createElement("span",null,e):e}["default","primary","danger"].concat(Iv(Qx));const Zk=h(((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,s=ug(`${a}-icon`,n);return o.createElement("span",{ref:t,className:s,style:r},i)}));var Gk=Zk;const Kk=h(((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,s=ug(`${n}-loading-icon`,r);return o.createElement(Gk,{prefixCls:n,className:s,style:i,ref:t},o.createElement(nk,{className:a}))})),Jk=()=>({width:0,opacity:0,transform:"scale(0)"}),Qk=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var eC=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:s}=e,l=!!n;return r?o.createElement(Kk,{prefixCls:t,className:i,style:a}):o.createElement(nS,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:Jk,onAppearActive:Qk,onEnterStart:Jk,onEnterActive:Qk,onLeaveStart:Qk,onLeaveActive:Jk},((e,n)=>{let{className:r,style:s}=e;const l=Object.assign(Object.assign({},a),s);return o.createElement(Kk,{prefixCls:t,className:ug(i,r),style:l,ref:n})}))};const tC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var nC=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},tC(`${t}-primary`,o),tC(`${t}-danger`,i)]}},rC=["b"],oC=["v"],iC=function(e){return Math.round(Number(e||0))},aC=function(){kv(t,F_);var e=Pv(t);function t(n){return _v(this,t),e.call(this,function(e){if(e instanceof F_)return e;if(e&&"object"===Cg(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return Og(Og({},ly(t,rC)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(n))}return wv(t,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=iC(100*e.s),n=iC(100*e.b),r=iC(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return Og(Og({},ly(e,oC)),{},{b:t,a:this.a})}}]),t}(),sC=function(e){return e instanceof aC?e:new aC(e)},lC=sC("#1677ff"),cC=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),s=a.width,l=a.height,c=n.current.getBoundingClientRect(),u=c.width/2,d=c.height/2,h=(t.x+u)/s,p=1-(t.y+d)/l,f=o.toHsb(),m=h,g=(t.x+u)/s*360;if(i)switch(i){case"hue":return sC(Og(Og({},f),{},{h:g<=0?0:g}));case"alpha":return sC(Og(Og({},f),{},{a:m<=0?0:m}))}return sC({h:f.h,s:h<=0?0:h,b:p>=1?1:p,a:f.a})},uC=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},dC=function(e){var t=e.color,n=e.prefixCls,r=e.className,i=e.style,a=e.onClick,s="".concat(n,"-color-block");return o.createElement("div",{className:ug(s,r),style:i,onClick:a},o.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};function hC(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,c=e.color,d=e.disabledDrag,h=Vv(u({x:0,y:0}),2),p=h[0],f=h[1],m=s(null),g=s(null);l((function(){f(a())}),[c]),l((function(){return function(){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null}}),[]);var v=function(e){var i=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=i.pageX,s=i.pageY,l=n.current.getBoundingClientRect(),c=l.x,u=l.y,d=l.width,h=l.height,f=t.current.getBoundingClientRect(),m=f.width,g=f.height,v=m/2,y=g/2,b=Math.max(0,Math.min(a-c,d))-v,_=Math.max(0,Math.min(s-u,h))-y,x={x:b,y:"x"===r?p.y:_};if(0===m&&0===g||m!==g)return!1;null==o||o(x)},y=function(e){e.preventDefault(),v(e)},b=function(e){e.preventDefault(),document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null,null==i||i()};return[p,function(e){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),d||(v(e),document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),document.addEventListener("touchmove",y),document.addEventListener("touchend",b),m.current=y,g.current=b)}]}var pC=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,i=e.prefixCls;return o.createElement("div",{className:ug("".concat(i,"-handler"),Mg({},"".concat(i,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})},fC=function(e){var t=e.children,n=e.style,r=e.prefixCls;return o.createElement("div",{className:"".concat(r,"-palette"),style:Og({position:"relative"},n)},t)},mC=h((function(e,t){var n=e.children,r=e.x,i=e.y;return o.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)})),gC=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,i=e.onChangeComplete,a=e.disabled,l=s(),c=s(),u=s(t),d=$x((function(e){var r=cC({offset:e,targetRef:c,containerRef:l,color:t});u.current=r,n(r)})),h=Vv(hC({color:t,containerRef:l,targetRef:c,calculate:function(){return uC(t)},onDragChange:d,onDragChangeComplete:function(){return null==i?void 0:i(u.current)},disabledDrag:a}),2),p=h[0],f=h[1];return o.createElement("div",{ref:l,className:"".concat(r,"-select"),onMouseDown:f,onTouchStart:f},o.createElement(fC,{prefixCls:r},o.createElement(mC,{x:p.x,y:p.y,ref:c},o.createElement(pC,{color:t.toRgbString(),prefixCls:r})),o.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},vC=function(e){var t=e.colors,n=e.children,r=e.direction,a=void 0===r?"to right":r,s=e.type,l=e.prefixCls,c=i((function(){return t.map((function(e,n){var r=sC(e);return"alpha"===s&&n===t.length-1&&(r=new aC(r.setA(1))),r.toRgbString()})).join(",")}),[t,s]);return o.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(c,")")}},n)},yC=function(e){var t=e.prefixCls,n=e.colors,r=e.disabled,i=e.onChange,a=e.onChangeComplete,l=e.color,c=e.type,u=s(),d=s(),h=s(l),p=function(e){return"hue"===c?e.getHue():100*e.a},f=$x((function(e){var t=cC({offset:e,targetRef:d,containerRef:u,color:l,type:c});h.current=t,i(p(t))})),m=Vv(hC({color:l,targetRef:d,containerRef:u,calculate:function(){return uC(l,c)},onDragChange:f,onDragChangeComplete:function(){a(p(h.current))},direction:"x",disabledDrag:r}),2),g=m[0],v=m[1],y=o.useMemo((function(){if("hue"===c){var e=l.toHsb();return e.s=1,e.b=1,e.a=1,new aC(e)}return l}),[l,c]),b=o.useMemo((function(){return n.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[n]);return o.createElement("div",{ref:u,className:ug("".concat(t,"-slider"),"".concat(t,"-slider-").concat(c)),onMouseDown:v,onTouchStart:v},o.createElement(fC,{prefixCls:t},o.createElement(mC,{x:g.x,y:g.y,ref:d},o.createElement(pC,{size:"small",color:y.toHexString(),prefixCls:t})),o.createElement(vC,{colors:b,type:c,prefixCls:t})))};function bC(e){return r.useMemo((function(){return[(e||{}).slider||yC]}),[e])}var _C=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],xC=h((function(e,t){var n=e.value,r=e.defaultValue,a=e.prefixCls,s=void 0===a?"rc-color-picker":a,l=e.onChange,c=e.onChangeComplete,u=e.className,d=e.style,h=e.panelRender,p=e.disabledAlpha,f=void 0!==p&&p,m=e.disabled,g=void 0!==m&&m,v=Vv(bC(e.components),1)[0],y=function(e,t){var n=Vv(Hx(e,{value:t}),2),r=n[0],o=n[1];return[i((function(){return sC(r)}),[r]),o]}(r||lC,n),b=Vv(y,2),_=b[0],x=b[1],w=i((function(){return _.setA(1).toRgbString()}),[_]),S=function(e,t){n||x(e),null==l||l(e,t)},k=function(e){return new aC(_.setHue(e))},C=function(e){return new aC(_.setA(e/100))},E=ug("".concat(s,"-panel"),u,Mg({},"".concat(s,"-panel-disabled"),g)),M={prefixCls:s,disabled:g,color:_},P=o.createElement(o.Fragment,null,o.createElement(gC,dg({onChange:S},M,{onChangeComplete:c})),o.createElement("div",{className:"".concat(s,"-slider-container")},o.createElement("div",{className:ug("".concat(s,"-slider-group"),Mg({},"".concat(s,"-slider-group-disabled-alpha"),f))},o.createElement(v,dg({},M,{type:"hue",colors:_C,min:0,max:359,value:_.getHue(),onChange:function(e){S(k(e),{type:"hue",value:e})},onChangeComplete:function(e){c&&c(k(e))}})),!f&&o.createElement(v,dg({},M,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:100*_.a,onChange:function(e){S(C(e),{type:"alpha",value:e})},onChangeComplete:function(e){c&&c(C(e))}}))),o.createElement(dC,{color:_.toRgbString(),prefixCls:s})));return o.createElement("div",{className:E,style:d,ref:t},"function"==typeof h?h(P):P)}));"production"!==process.env.NODE_ENV&&(xC.displayName="ColorPicker");let wC=function(){return function(e,t,n){return t&&KS(e.prototype,t),n&&KS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new aC(this.colors[0].color.metaColor)):this.metaColor=new aC(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return((e,t)=>e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"")(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){const t=e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ");return`linear-gradient(90deg, ${t})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();const SC=e=>({animationDuration:e,animationFillMode:"both"}),kC=e=>({animationDuration:e,animationFillMode:"both"}),CC=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},SC(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},kC(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},EC=new Qb("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),MC=new Qb("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),PC=new Qb("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),OC=new Qb("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),TC=new Qb("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NC=new Qb("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),DC={"move-up":{inKeyframes:new Qb("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Qb("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:EC,outKeyframes:MC},"move-left":{inKeyframes:PC,outKeyframes:OC},"move-right":{inKeyframes:TC,outKeyframes:NC}},AC=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=DC[t];return[CC(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},LC=new Qb("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),IC=new Qb("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),zC=new Qb("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),RC=new Qb("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$C=new Qb("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),FC=new Qb("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),jC=new Qb("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),BC=new Qb("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),HC={"slide-up":{inKeyframes:LC,outKeyframes:IC},"slide-down":{inKeyframes:zC,outKeyframes:RC},"slide-left":{inKeyframes:$C,outKeyframes:FC},"slide-right":{inKeyframes:jC,outKeyframes:BC}},WC=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=HC[t];return[CC(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},VC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Xx(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},YC=e=>{var t,n,r,o,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:lx(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:lx(l),h=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:lx(c),p=((e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new aC(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new wC(e.colorBgSolid),"#fff")?"#000":"#fff",f=Qx.reduce(((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${My(e.controlOutlineWidth)} 0 ${tw(e[`${n}1`],e.colorBgContainer)}`})),{});return Object.assign(Object.assign({},f),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)})},XC=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${My(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":fw(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${i} ${a}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},qC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),UC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ZC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),GC=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),KC=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},qC(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),JC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},GC(e))}),QC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),eE=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?QC:JC;return Object.assign(Object.assign({},o(e)),qC(e.componentCls,t,n))},tE=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},eE(e,r,o))}),nE=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},eE(e,r,o))}),rE=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),oE=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},eE(e,n,r))}),iE=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},eE(e,r,o,n))}),aE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},tE(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),rE(e)),oE(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),iE(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),KC(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),sE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},nE(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),rE(e)),oE(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),iE(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),KC(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),lE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},tE(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),nE(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),rE(e)),oE(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),iE(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),iE(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),KC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),cE=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:aE(e),[`${t}-color-primary`]:sE(e),[`${t}-color-dangerous`]:lE(e)},(e=>{const{componentCls:t}=e;return Qx.reduce(((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},tE(e,e.colorTextLightSolid,o,{background:a},{background:c})),nE(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),rE(e)),oE(e,i,{background:s},{background:l})),iE(e,o,"link",{color:a},{color:c})),iE(e,o,"text",{color:a,background:i},{color:c,background:l}))})}),{})})(e))},uE=e=>Object.assign(Object.assign(Object.assign(Object.assign({},nE(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),iE(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),tE(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),iE(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),dE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${My(l)} ${My(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:UC(e)},{[`${n}${n}-round${t}`]:ZC(e)}]},hE=e=>{const t=Xx(e,{fontSize:e.contentFontSize});return dE(t,e.componentCls)},pE=e=>{const t=Xx(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return dE(t,`${e.componentCls}-sm`)},fE=e=>{const t=Xx(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return dE(t,`${e.componentCls}-lg`)},mE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var gE=gw("Button",(e=>{const t=VC(e);return[XC(t),hE(t),pE(t),fE(t),mE(t),cE(t),uE(t),nC(t)]}),YC,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function vE(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function yE(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function bE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},vE(e,r,t)),yE(n,r,t))}}function _E(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function xE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_E(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const wE=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))};var SE=yw(["Button","compact"],(e=>{const t=VC(e);return[bE(t),xE(t),wE(t)]}),YC),kE=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const CE={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},EE=o.forwardRef(((e,t)=>{var n,a;const{loading:c=!1,prefixCls:d,color:h,variant:f,type:m,danger:g=!1,shape:v="default",size:y,styles:_,disabled:x,className:w,rootClassName:S,children:k,icon:C,iconPosition:E="start",ghost:M=!1,block:P=!1,htmlType:O="button",classNames:T,style:N={},autoInsertSpace:D,autoFocus:A}=e,L=kE(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=m||"default",[z,R]=i((()=>{if(h&&f)return[h,f];const e=CE[I]||[];return g?["danger",e[1]]:e}),[m,h,f,g]),$="danger"===z?"dangerous":z,{getPrefixCls:F,direction:j,autoInsertSpace:B,className:H,style:W,classNames:V,styles:Y}=function(e){const t=r.useContext(xx),{getPrefixCls:n,direction:o,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:wx,styles:wx},a),{getPrefixCls:n,direction:o,getPopupContainer:i})}("button"),X=null===(n=null!=D?D:B)||void 0===n||n,q=F("btn",d),[U,Z,G]=gE(q),K=p(Mx),J=null!=x?x:K,Q=p(Hk),ee=i((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(c)),[c]),[te,ne]=u(ee.loading),[re,oe]=u(!1),ie=s(null),ae=Wg(t,ie),se=1===b.count(k)&&!C&&!qk(R),le=s(!0);o.useEffect((()=>(le.current=!1,()=>{le.current=!0})),[]),l((()=>{let e=null;return ee.delay>0?e=setTimeout((()=>{e=null,ne(!0)}),ee.delay):ne(ee.loading),function(){e&&(clearTimeout(e),e=null)}}),[ee]),l((()=>{if(!ie.current||!X)return;const e=ie.current.textContent||"";se&&Yk(e)?re||oe(!0):re&&oe(!1)})),l((()=>{A&&ie.current&&ie.current.focus()}),[]);const ce=o.useCallback((t=>{var n;te||J?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,te,J]);if("production"!==process.env.NODE_ENV){const e=y_("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof C&&C.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${C}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(M&&qk(R)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ue,compactItemClassnames:de}=Fk(q,j),he={large:"lg",small:"sm",middle:void 0},pe=Rk((e=>{var t,n;return null!==(n=null!==(t=null!=y?y:ue)&&void 0!==t?t:Q)&&void 0!==n?n:e})),fe=pe&&null!==(a=he[pe])&&void 0!==a?a:"",me=te?"loading":C,ge=Ck(L,["navigate"]),ve=ug(q,Z,G,{[`${q}-${v}`]:"default"!==v&&v,[`${q}-${I}`]:I,[`${q}-dangerous`]:g,[`${q}-color-${$}`]:$,[`${q}-variant-${R}`]:R,[`${q}-${fe}`]:fe,[`${q}-icon-only`]:!k&&0!==k&&!!me,[`${q}-background-ghost`]:M&&!qk(R),[`${q}-loading`]:te,[`${q}-two-chinese-chars`]:re&&X&&!te,[`${q}-block`]:P,[`${q}-rtl`]:"rtl"===j,[`${q}-icon-end`]:"end"===E},de,w,S,H),ye=Object.assign(Object.assign({},W),N),be=ug(null==T?void 0:T.icon,V.icon),_e=Object.assign(Object.assign({},(null==_?void 0:_.icon)||{}),Y.icon||{}),xe=C&&!te?o.createElement(Gk,{prefixCls:q,className:be,style:_e},C):c&&"object"==typeof c&&c.icon?o.createElement(Gk,{prefixCls:q,className:be,style:_e},c.icon):o.createElement(eC,{existIcon:!!C,prefixCls:q,loading:te,mount:le.current}),we=k||0===k?function(e,t){let n=!1;const r=[];return o.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),o.Children.map(r,(e=>Uk(e,t)))}(k,se&&X):null;if(void 0!==ge.href)return U(o.createElement("a",Object.assign({},ge,{className:ug(ve,{[`${q}-disabled`]:J}),href:J?void 0:ge.href,style:ye,onClick:ce,ref:ae,tabIndex:J?-1:0}),xe,we));let Se=o.createElement("button",Object.assign({},L,{type:O,className:ve,style:ye,onClick:ce,disabled:J,ref:ae}),xe,we,de&&o.createElement(SE,{prefixCls:q}));return qk(R)||(Se=o.createElement(zk,{component:"Button",disabled:te},Se)),U(Se)})),ME=EE;ME.Group=Wk,ME.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(ME.displayName="Button");var PE=ME,OE=r.createContext(null),TE=[];function NE(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";sy("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=l,o=c}}document.body.appendChild(n);var h=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ay(t),{width:h,height:p}}(e):{width:0,height:0}}var DE="rc-util-locker-".concat(Date.now()),AE=0;function LE(e){var t=!!e,n=Vv(r.useState((function(){return AE+=1,"".concat(DE,"_").concat(AE)})),1)[0];Ay((function(){if(t){var e=NE(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;sy("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else ay(n);return function(){ay(n)}}),[t,n])}var IE=!1;var zE=function(e){return!1!==e&&(Kv()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},RE=r.forwardRef((function(e,t){var n=e.open,o=e.autoLock,i=e.getContainer,a=e.debug,s=e.autoDestroy,l=void 0===s||s,c=e.children,u=Vv(r.useState(n),2),d=u[0],h=u[1],p=d||n;"production"!==process.env.NODE_ENV&&kg(Kv()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),r.useEffect((function(){(l||n)&&h(n)}),[n,l]);var f=Vv(r.useState((function(){return zE(i)})),2),m=f[0],g=f[1];r.useEffect((function(){var e=zE(i);g(null!=e?e:null)}));var v=function(e,t){var n=Vv(r.useState((function(){if(!Kv())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],o=r.useRef(!1),i=r.useContext(OE),a=Vv(r.useState(TE),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(Yv(t))}))});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return Ay((function(){return e?i?i(u):u():d(),d}),[e]),Ay((function(){s.length&&(s.forEach((function(e){return e()})),l(TE))}),[s]),[n,c]}(p&&!m,a),y=Vv(v,2),b=y[0],_=y[1],x=null!=m?m:b;LE(o&&n&&Kv()&&(x===b||x===document.body));var w=null;c&&Vg(c)&&t&&(w=c.ref);var S=Wg(w,t);if(!p||!Kv()||void 0===m)return null;var k,C=!1===x||("boolean"==typeof k&&(IE=k),IE),E=c;return t&&(E=r.cloneElement(c,{ref:S})),r.createElement(OE.Provider,{value:_},C?E:P(E,x))}));"production"!==process.env.NODE_ENV&&(RE.displayName="Portal");var $E=0,FE=Gv({},r).useId,jE=FE?function(e){var t=FE();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=Fx(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=$E;$E+=1,o("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)};function BE(){BE=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new T(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var _={};c(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==n&&r.call(w,a)&&(_=w);var S=b.prototype=v.prototype=Object.create(_);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Cg(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function M(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Cg(t)+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function HE(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function WE(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){HE(i,r,o,a,s,"next",e)}function s(e){HE(i,r,o,a,s,"throw",e)}a(void 0)}))}}var VE="RC_FORM_INTERNAL_HOOKS",YE=function(){kg(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},XE=r.createContext({getFieldValue:YE,getFieldsValue:YE,getFieldError:YE,getFieldWarning:YE,getFieldsError:YE,isFieldsTouched:YE,isFieldTouched:YE,isFieldValidating:YE,isFieldsValidating:YE,resetFields:YE,setFields:YE,setFieldValue:YE,setFieldsValue:YE,validateFields:YE,submit:YE,getInternalHooks:function(){return YE(),{dispatch:YE,initEntityValue:YE,registerField:YE,useSubscribe:YE,setInitialValues:YE,destroyForm:YE,setCallbacks:YE,registerWatch:YE,getFields:YE,setValidateMessages:YE,setPreserve:YE,getInitialValue:YE}}}),qE=r.createContext(null);function UE(e){return null==e?[]:Array.isArray(e)?e:[e]}function ZE(){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 GE=ZE();function KE(e){var t="function"==typeof Map?new Map:void 0;return KE=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Ev())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Sv(o,n.prototype),o}(e,arguments,Cv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Sv(n,e)},KE(e)}var JE=/%[sdj%]/g,QE=function(){};function eM(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function tM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var a=e.replace(JE,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}));return a}return e}function nM(e,t){return 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 rM(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(QE=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var oM=function(){kv(t,KE(Error));var e=Pv(t);function t(n,r){var o;return _v(this,t),Mg(Mv(o=e.call(this,"Async Validation Error")),"errors",void 0),Mg(Mv(o),"fields",void 0),o.errors=n,o.fields=r,o}return wv(t)}();function iM(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Yv(e[n]||[]))})),t}(e);rM(a,n,(function(e){return r(e),e.length?i(new oM(e,eM(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new oM(u,eM(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?rM(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Yv(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function aM(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function sM(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===Cg(r)&&"object"===Cg(e[n])?e[n]=Og(Og({},e[n]),r):e[n]=r}return e}var lM,cM="enum",uM=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!nM(t,i||e.type)||r.push(tM(o.messages.required,e.fullField))},dM=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hM=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,pM={integer:function(e){return pM.number(e)&&parseInt(e,10)===e},float:function(e){return pM.number(e)&&!pM.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){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"===Cg(e)&&!pM.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(dM)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(lM)return lM;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,h="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return lM=new RegExp("(?:^".concat(h,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(hM)}},fM={required:uM,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(tM(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)uM(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?pM[i](t)||r.push(tM(o.messages.types[i],e.fullField,e.type)):i&&Cg(t)!==e.type&&r.push(tM(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,h=Array.isArray(t);if(u?c="number":d?c="string":h&&(c="array"),!c)return!1;h&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(tM(o.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(tM(o.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(tM(o.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(tM(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[cM]=Array.isArray(e[cM])?e[cM]:[],-1===e[cM].indexOf(t)&&r.push(tM(o.messages[cM],e.fullField,e[cM].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(tM(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(tM(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},mM=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t,i)&&!e.required)return n();fM.required(e,t,r,a,o,i),nM(t,i)||fM.type(e,t,r,a,o)}n(a)},gM={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t,"string")&&!e.required)return n();fM.required(e,t,r,i,o,"string"),nM(t,"string")||(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o),fM.pattern(e,t,r,i,o),!0===e.whitespace&&fM.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&fM.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&fM.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),nM(t)||fM.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();fM.required(e,t,r,i,o,"array"),null!=t&&(fM.type(e,t,r,i,o),fM.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&fM.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o),void 0!==t&&fM.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t,"string")&&!e.required)return n();fM.required(e,t,r,i,o),nM(t,"string")||fM.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t,"date")&&!e.required)return n();var a;if(fM.required(e,t,r,i,o),!nM(t,"date"))a=t instanceof Date?t:new Date(t),fM.type(e,a,r,i,o),a&&fM.range(e,a.getTime(),r,i,o)}n(i)},url:mM,hex:mM,email:mM,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":Cg(t);fM.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nM(t)&&!e.required)return n();fM.required(e,t,r,i,o)}n(i)}},vM=function(){function e(t){_v(this,e),Mg(this,"rules",null),Mg(this,"_messages",GE),this.define(t)}return wv(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==Cg(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=sM(ZE(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===GE&&(a=ZE()),sM(a,o.messages),o.messages=a}else o.messages=this.messages();var s={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=Og({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":Cg(i)))),(a="function"==typeof a?{validator:a}:Og({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:r,field:e}))}))}));var l={};return iM(s,o,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==Cg(a.fields)&&"object"!==Cg(a.defaultField));function c(e,t){return Og(Og({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Yv(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(aM(a,r));if(o.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(aM(a,r)):o.error&&(d=[o.error(a,tM(o.messages.required,a.field))]),n(d);var h={};a.defaultField&&Object.keys(t.value).map((function(e){h[e]=a.defaultField})),h=Og(Og({},h),t.rule.fields);var p={};Object.keys(h).forEach((function(e){var t=h[e],n=Array.isArray(t)?t:[t];p[e]=n.map(c.bind(null,e))}));var f=new e(p);f.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),f.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Yv(d)),e&&e.length&&t.push.apply(t,Yv(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,h;null===(d=(h=console).error)||void 0===d||d.call(h,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,Yv(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=eM(t),i(t,n)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!gM.hasOwnProperty(e.type))throw new Error(tM("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?gM.required:gM[this.getType(e)]||void 0}}]),e}();Mg(vM,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");gM[e]=t})),Mg(vM,"warning",QE),Mg(vM,"messages",GE),Mg(vM,"validators",gM);var yM="'${name}' is not a valid ${type}",bM={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:yM,method:yM,array:yM,object:yM,number:yM,date:yM,boolean:yM,integer:yM,float:yM,regexp:yM,email:yM,url:yM,hex:yM},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}"}},_M=vM;function xM(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var wM="CODE_LOGIC_ERROR";function SM(e,t,n,r,o){return kM.apply(this,arguments)}function kM(){return kM=WE(BE().mark((function e(t,n,o,i,a){var s,l,c,u,d,h,p,f,m;return BE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(s=Og({},o)).ruleIndex,_M.warning=function(){},s.validator&&(l=s.validator,s.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(wM)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new _M(Mg({},t,[s])),d=p_(bM,i.validateMessages),u.messages(d),h=[],e.prev=10,e.next=13,Promise.resolve(u.validate(Mg({},t,n),Og({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(h=e.t0.errors.map((function(e,t){var n=e.message,o=n===wM?d.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(h.length||!c){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return SM("".concat(t,".").concat(n),e,c,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Yv(e),Yv(t))}),[]));case 23:return f=Og(Og({},o),{},{name:t,enum:(o.enum||[]).join(", ")},a),m=h.map((function(e){return"string"==typeof e?xM(e,f):e})),e.abrupt("return",m);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),kM.apply(this,arguments)}function CM(e,t,n,r,o,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,r=Og(Og({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){kg(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));kg(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=WE(BE().mark((function e(n,o){var a,c,u;return BE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,SM(s,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return SM(s,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return MM.apply(this,arguments)}(c):function(e){return EM.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function EM(){return(EM=WE(BE().mark((function e(t){return BE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Yv(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function MM(){return MM=WE(BE().mark((function e(t){var n;return BE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),MM.apply(this,arguments)}function PM(e){return UE(e)}function OM(e,t){var n={};return t.forEach((function(t){var r=l_(e,t);n=u_(n,t,r)})),n}function TM(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return NM(t,e,n)}))}function NM(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function DM(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Cg(t.target)&&e in t.target?t.target[e]:t}function AM(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Yv(e.slice(0,n)),[o],Yv(e.slice(n,t)),Yv(e.slice(t+1,r))):i<0?[].concat(Yv(e.slice(0,t)),Yv(e.slice(t+1,n+1)),[o],Yv(e.slice(n+1,r))):e}var LM=["name"],IM=[];function zM(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var RM=function(){kv(t,r.Component);var e=Pv(t);function t(n){var o;(_v(this,t),Mg(Mv(o=e.call(this,n)),"state",{resetCount:0}),Mg(Mv(o),"cancelRegisterFunc",null),Mg(Mv(o),"mounted",!1),Mg(Mv(o),"touched",!1),Mg(Mv(o),"dirty",!1),Mg(Mv(o),"validatePromise",void 0),Mg(Mv(o),"prevValidating",void 0),Mg(Mv(o),"errors",IM),Mg(Mv(o),"warnings",IM),Mg(Mv(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,PM(r)),o.cancelRegisterFunc=null})),Mg(Mv(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Yv(void 0===n?[]:n),Yv(t)):[]})),Mg(Mv(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),Mg(Mv(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),Mg(Mv(o),"metaCache",null),Mg(Mv(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=Og(Og({},o.getMeta()),{},{destroy:e});cy(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),Mg(Mv(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,l=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),h=o.getValue(c),p=t&&TM(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||cy(d,h)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=IM,o.warnings=IM,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=IM,o.warnings=IM,o.triggerMetaEvent(),null==l||l(),void o.refresh();break;case"remove":if(i&&zM(i,e,c,d,h,n))return void o.reRender();break;case"setField":var f=n.data;if(p)return"touched"in f&&(o.touched=f.touched),"validating"in f&&!("originRCField"in f)&&(o.validatePromise=f.validating?Promise.resolve([]):null),"errors"in f&&(o.errors=f.errors||IM),"warnings"in f&&(o.warnings=f.warnings||IM),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in f&&TM(t,u,!0))return void o.reRender();if(i&&!u.length&&zM(i,e,c,d,h,n))return void o.reRender();break;case"dependenciesUpdate":if(s.map(PM).some((function(e){return TM(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!s.length||u.length||i)&&zM(i,e,c,d,h,n))return void o.reRender()}!0===i&&o.reRender()})),Mg(Mv(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(WE(BE().mark((function r(){var a,s,c,u,d,h,p;return BE().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,h=o.getRules(),i&&(h=h.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||UE(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===l){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=CM(t,n,h,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:IM;if(o.validatePromise===l){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?IM:o;t?r.push.apply(r,Yv(i)):n.push.apply(n,Yv(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return s||(o.validatePromise=l,o.dirty=!0,o.errors=IM,o.warnings=IM,o.triggerMetaEvent(),o.reRender()),l})),Mg(Mv(o),"isFieldValidating",(function(){return!!o.validatePromise})),Mg(Mv(o),"isFieldTouched",(function(){return o.touched})),Mg(Mv(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(VE).getInitialValue)(o.getNamePath())})),Mg(Mv(o),"getErrors",(function(){return o.errors})),Mg(Mv(o),"getWarnings",(function(){return o.warnings})),Mg(Mv(o),"isListField",(function(){return o.props.isListField})),Mg(Mv(o),"isList",(function(){return o.props.isList})),Mg(Mv(o),"isPreserve",(function(){return o.props.preserve})),Mg(Mv(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),Mg(Mv(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return Og(Og({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=vg(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Mg(Mv(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return l_(e||t(!0),n)})),Mg(Mv(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,h=o.getNamePath(),p=u.getInternalHooks,f=u.getFieldsValue,m=p(VE).dispatch,g=o.getValue(),v=c||function(e){return Mg({},l,e)},y=e[r],b=void 0!==n?v(g):{};"production"!==process.env.NODE_ENV&&b&&Object.keys(b).forEach((function(e){kg("function"!=typeof b[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var _=Og(Og({},e),b);return _[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):DM.apply(void 0,[l].concat(n)),s&&(e=s(e,g,f(!0))),e!==g&&m({type:"updateValue",namePath:h,value:e}),y&&y.apply(void 0,n)},UE(d||[]).forEach((function(e){var t=_[e];_[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&m({type:"validateField",namePath:h,triggerName:e})}})),_})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(VE).initEntityValue)(Mv(o));return o}return wv(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(VE).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(kg(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),t}();function $M(e){var t,n=e.name,o=ly(e,LM),i=r.useContext(XE),a=r.useContext(qE),s=void 0!==n?PM(n):void 0,l=null!==(t=o.isListField)&&void 0!==t?t:!!a,c="keep";return l||(c="_".concat((s||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===o.preserve&&l&&s.length<=1&&kg(!1,"`preserve` should not apply on Form.List fields."),r.createElement(RM,dg({key:c,name:s,isListField:l},o,{fieldContext:i}))}Mg(RM,"contextType",XE),Mg(RM,"defaultProps",{trigger:"onChange",valuePropName:"value"});var FM="__@field_split__";function jM(e){return e.map((function(e){return"".concat(Cg(e),":").concat(e)})).join(FM)}var BM=function(){function e(){_v(this,e),Mg(this,"kvs",new Map)}return wv(e,[{key:"set",value:function(e,t){this.kvs.set(jM(e),t)}},{key:"get",value:function(e){return this.kvs.get(jM(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(jM(e))}},{key:"map",value:function(e){return Yv(this.kvs.entries()).map((function(t){var n=Vv(t,2),r=n[0],o=n[1],i=r.split(FM);return e({key:i.map((function(e){var t=Vv(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{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}(),HM=["name"],WM=wv((function e(t){var n=this;_v(this,e),Mg(this,"formHooked",!1),Mg(this,"forceRootUpdate",void 0),Mg(this,"subscribable",!0),Mg(this,"store",{}),Mg(this,"fieldEntities",[]),Mg(this,"initialValues",{}),Mg(this,"callbacks",{}),Mg(this,"validateMessages",null),Mg(this,"preserve",null),Mg(this,"lastValidatePromise",null),Mg(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),Mg(this,"getInternalHooks",(function(e){return e===VE?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(kg(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Mg(this,"useSubscribe",(function(e){n.subscribable=e})),Mg(this,"prevWithoutPreserves",null),Mg(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=p_(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=u_(o,n,l_(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Mg(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new BM;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),Mg(this,"getInitialValue",(function(e){var t=l_(n.initialValues,e);return e.length?p_(t):t})),Mg(this,"setCallbacks",(function(e){n.callbacks=e})),Mg(this,"setValidateMessages",(function(e){n.validateMessages=e})),Mg(this,"setPreserve",(function(e){n.preserve=e})),Mg(this,"watchList",[]),Mg(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Mg(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),Mg(this,"timeoutId",null),Mg(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||kg(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),Mg(this,"updateStore",(function(e){n.store=e})),Mg(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Mg(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new BM;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Mg(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=PM(e);return t.get(n)||{INVALIDATE_NAME_PATH:PM(e)}}))})),Mg(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Cg(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&s.push(c)}else s.push(c)})),OM(n.store,s.map(PM))})),Mg(this,"getFieldValue",(function(e){n.warningUnhooked();var t=PM(e);return l_(n.store,t)})),Mg(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:PM(e[n]),errors:[],warnings:[]}}))})),Mg(this,"getFieldError",(function(e){n.warningUnhooked();var t=PM(e);return n.getFieldsError([t])[0].errors})),Mg(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=PM(e);return n.getFieldsError([t])[0].warnings})),Mg(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(PM),s=!1):(o=null,s=i):(o=i.map(PM),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return s?l.every((function(e){return c(e)||e.isList()})):l.some(c);var u=new BM;o.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Yv(t),[e])}))}))}));var d=function(e){return e.some(c)},h=u.map((function(e){return e.value}));return s?h.every(d):h.some(d)})),Mg(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Mg(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(PM);return t.some((function(e){var t=e.getNamePath();return TM(r,t)&&e.isFieldValidating()}))})),Mg(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Mg(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new BM,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Yv(Yv(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))kg(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)kg(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(u_(n.store,o,Yv(i)[0].value))}}}}))})),Mg(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(p_(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(PM);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(u_(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Mg(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=ly(e,HM),a=PM(o);r.push(a),"value"in i&&n.updateStore(u_(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Mg(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Og(Og({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Mg(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===l_(n.store,r)&&n.updateStore(u_(n.store,r,t))}})),Mg(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Mg(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!NM(e.getNamePath(),t)}))){var s=n.store;n.updateStore(u_(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Mg(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),Mg(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Og(Og({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Mg(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Yv(r))}),r})),Mg(this,"updateValue",(function(e,t){var r=PM(e),o=n.store;n.updateStore(u_(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(OM(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Yv(i)))})),Mg(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=p_(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Mg(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])})),Mg(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new BM;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=PM(t);o.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){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),Mg(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new BM;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return TM(e,n)}));a.length&&r(a,o)}})),Mg(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(PM):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,h=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!h||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||TM(a,t,d)){var r=e.validateRules(Og({validateMessages:Og(Og({},bM),n.validateMessages)},o));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Yv(n)):r.push.apply(r,Yv(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=p,p.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 f=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));f.catch((function(e){return e}));var m=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(m),f})),Mg(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function VM(e){var t=r.useRef(),n=Vv(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new WM((function(){n({})}));t.current=o.getForm()}return[t.current]}var YM=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),XM=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],qM=function(e,t){var n=e.name,o=e.initialValues,i=e.fields,a=e.form,s=e.preserve,l=e.children,c=e.component,u=void 0===c?"form":c,d=e.validateMessages,h=e.validateTrigger,p=void 0===h?"onChange":h,f=e.onValuesChange,m=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,y=e.clearOnDestroy,b=ly(e,XM),_=r.useRef(null),x=r.useContext(YM),w=Vv(VM(a),1)[0],S=w.getInternalHooks(VE),k=S.useSubscribe,C=S.setInitialValues,E=S.setCallbacks,M=S.setValidateMessages,P=S.setPreserve,O=S.destroyForm;r.useImperativeHandle(t,(function(){return Og(Og({},w),{},{nativeElement:_.current})})),r.useEffect((function(){return x.registerForm(n,w),function(){x.unregisterForm(n)}}),[x,w,n]),M(Og(Og({},x.validateMessages),d)),E({onValuesChange:f,onFieldsChange:function(e){if(x.triggerFormChange(n,e),m){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];m.apply(void 0,[e].concat(r))}},onFinish:function(e){x.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:v}),P(s);var T,N=r.useRef(null);C(o,!N.current),N.current||(N.current=!0),r.useEffect((function(){return function(){return O(y)}}),[]);var D="function"==typeof l;D?T=l(w.getFieldsValue(!0),w):T=l;k(!D);var A=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Cg(e)||"object"!==Cg(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Yv(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(A.current||[],i||[])||w.setFields(i||[]),A.current=i}),[i,w]);var L=r.useMemo((function(){return Og(Og({},w),{},{validateTrigger:p})}),[w,p]),I=r.createElement(qE.Provider,{value:null},r.createElement(XE.Provider,{value:L},T));return!1===u?I:r.createElement(u,dg({},b,{ref:_,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),I)};function UM(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ZM="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");kg(s(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var GM=r.forwardRef(qM);GM.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,a=r.useContext(YM),s=r.useRef({});return r.createElement(YM.Provider,{value:Og(Og({},a),{},{validateMessages:Og(Og({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=Og(Og({},s.current),{},Mg({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Og({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},GM.Field=$M,GM.List=function(e){var t=e.name,n=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,s=e.isListField,l=r.useContext(XE),c=r.useContext(qE),u=r.useRef({keys:[],id:0}).current,d=r.useMemo((function(){var e=PM(l.prefixName)||[];return[].concat(Yv(e),Yv(PM(t)))}),[l.prefixName,t]),h=r.useMemo((function(){return Og(Og({},l),{},{prefixName:d})}),[l,d]),p=r.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(kg(!1,"Form.List only accepts function as children."),null):r.createElement(qE.Provider,{value:p},r.createElement(XE.Provider,{value:h},r.createElement($M,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=s?s:!!c},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(d||[])||[]},c={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(Yv(u.keys.slice(0,t)),[u.id],Yv(u.keys.slice(t))),i([].concat(Yv(n.slice(0,t)),[e],Yv(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&kg(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Yv(u.keys),[u.id]),i([].concat(Yv(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)})),i(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=AM(u.keys,e,t),i(AM(n,e,t)))}}},h=r||[];return Array.isArray(h)||(h=[],"production"!==process.env.NODE_ENV&&kg(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),o(h.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}})),c,t)}))))},GM.useForm=VM,GM.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=void 0===o?{}:o,c=function(e){return e&&!!e._init}(a)?{form:a}:a,d=c.form,h=Vv(u(),2),f=h[0],m=h[1],g=i((function(){return UM(f)}),[f]),v=s(g);v.current=g;var y=p(XE),b=d||y,_=b&&b._init;"production"!==process.env.NODE_ENV&&kg(2===t.length&&!d||_,"useWatch requires a form instance since it can not auto detect from context.");var x=PM(r),w=s(x);return w.current=x,ZM(x),l((function(){if(_){var e=b.getFieldsValue,t=(0,b.getInternalHooks)(VE).registerWatch,n=function(e,t){var n=c.preserve?t:e;return"function"==typeof r?r(n):l_(n,w.current)},o=t((function(e,t){var r=n(e,t),o=UM(r);v.current!==o&&(v.current=o,m(r))})),i=n(e(),e(!0));return f!==i&&m(i),o}}),[_]),f};const KM=r.createContext({});"production"!==process.env.NODE_ENV&&(KM.displayName="FormItemInputContext");const JM=e=>{let{children:t,status:n,override:o}=e;const i=r.useContext(KM),a=r.useMemo((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,i]);return r.createElement(KM.Provider,{value:a},t)},QM=r.createContext(void 0);var eP=e=>{const{space:t,form:n,children:r}=e;if(null==r)return null;let i=r;return n&&(i=o.createElement(JM,{override:!0,status:!0},i)),t&&(i=o.createElement(jk,null,i)),i};function tP(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function nP(e){const{closable:t,closeIcon:n}=e||{};return o.useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function rP(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const oP={};var iP=(e,t,n,o,i)=>function(e){return t=>r.createElement(_S,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}((a=>{const{prefixCls:s,style:l}=a,c=r.useRef(null),[u,d]=r.useState(0),[h,p]=r.useState(0),[f,m]=Hx(!1,{value:a.open}),{getPrefixCls:g}=r.useContext(xx),v=g(o||"select",s);r.useEffect((()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;d(t.offsetHeight+8),p(t.offsetWidth)})),t=setInterval((()=>{var n;const r=i?`.${i(v)}`:`.${v}-dropdown`,o=null===(n=c.current)||void 0===n?void 0:n.querySelector(r);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let y=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:f,visible:f,getPopupContainer:()=>c.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:h};return r.createElement("div",{ref:c,style:b},r.createElement(e,Object.assign({},y)))})),aP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],sP=void 0;function lP(e,t){var n=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,h=e.style,p=e.children,f=e.display,m=e.order,g=e.component,v=void 0===g?"div":g,y=ly(e,aP),b=s&&!f;function _(e){c(u,e)}r.useEffect((function(){return function(){_(null)}}),[]);var x,w=a&&i!==sP?a(i,{index:m}):p;o||(x={opacity:b?0:1,height:b?0:sP,overflowY:b?"hidden":sP,order:s?m:sP,pointerEvents:b?"none":sP,position:b?"absolute":sP});var S={};b&&(S["aria-hidden"]=!0);var k=r.createElement(v,dg({className:ug(!o&&n,d),style:Og(Og({},x),h)},S,y,{ref:t}),w);return s&&(k=r.createElement(Av,{onResize:function(e){_(e.offsetWidth)},disabled:l},k)),k}var cP=r.forwardRef(lP);function uP(){var e=r.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Bv(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){O((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function dP(e,t){var n=Vv(r.useState(t),2),o=n[0],i=n[1];return[o,$x((function(t){e((function(){i(t)}))}))]}cP.displayName="Item";var hP=o.createContext(null),pP=["component"],fP=["className"],mP=["className"],gP=function(e,t){var n=r.useContext(hP);if(!n){var o=e.component,i=void 0===o?"div":o,a=ly(e,pP);return r.createElement(i,dg({},a,{ref:t}))}var s=n.className,l=ly(n,fP),c=e.className,u=ly(e,mP);return r.createElement(hP.Provider,{value:null},r.createElement(cP,dg({ref:t,className:ug(s,c)},l,u)))},vP=r.forwardRef(gP);vP.displayName="RawItem";var yP=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],bP="responsive",_P="invalidate";function xP(e){return"+ ".concat(e.length," ...")}function wP(e,t){var n=e.prefixCls,o=void 0===n?"rc-overflow":n,a=e.data,s=void 0===a?[]:a,l=e.renderItem,d=e.renderRawItem,h=e.itemKey,p=e.itemWidth,f=void 0===p?10:p,m=e.ssr,g=e.style,v=e.className,y=e.maxCount,b=e.renderRest,_=e.renderRawRest,x=e.suffix,w=e.component,S=void 0===w?"div":w,k=e.itemComponent,C=e.onVisibleChange,E=ly(e,yP),M="full"===m,P=uP(),O=Vv(dP(P,null),2),T=O[0],N=O[1],D=T||0,A=Vv(dP(P,new Map),2),L=A[0],I=A[1],z=Vv(dP(P,0),2),R=z[0],$=z[1],F=Vv(dP(P,0),2),j=F[0],B=F[1],H=Vv(dP(P,0),2),W=H[0],V=H[1],Y=Vv(u(null),2),X=Y[0],q=Y[1],U=Vv(u(null),2),Z=U[0],G=U[1],K=r.useMemo((function(){return null===Z&&M?Number.MAX_SAFE_INTEGER:Z||0}),[Z,T]),J=Vv(u(!1),2),Q=J[0],ee=J[1],te="".concat(o,"-item"),ne=Math.max(R,j),re=y===bP,oe=s.length&&re,ie=y===_P,ae=oe||"number"==typeof y&&s.length>y,se=i((function(){var e=s;return oe?e=null===T&&M?s:s.slice(0,Math.min(s.length,D/f)):"number"==typeof y&&(e=s.slice(0,y)),e}),[s,f,T,y,oe]),le=i((function(){return oe?s.slice(K+1):s.slice(se.length)}),[s,se,oe,K]),ce=c((function(e,t){var n;return"function"==typeof h?h(e):null!==(n=h&&(null==e?void 0:e[h]))&&void 0!==n?n:t}),[h]),ue=c(l||function(e){return e},[l]);function de(e,t,n){(Z!==e||void 0!==t&&t!==X)&&(G(e),n||(ee(e<s.length-1),null==C||C(e)),void 0!==t&&q(t))}function he(e,t){I((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function pe(e){return L.get(ce(se[e],e))}Ay((function(){if(D&&"number"==typeof ne&&se){var e=W,t=se.length,n=t-1;if(!t)return void de(0,null);for(var r=0;r<t;r+=1){var o=pe(r);if(M&&(o=o||0),void 0===o){de(r-1,void 0,!0);break}if(e+=o,0===n&&e<=D||r===n-1&&e+pe(n)<=D){de(n,null);break}if(e+ne>D){de(r-1,e-o-W+j);break}}x&&pe(0)+W>D&&q(null)}}),[D,L,j,W,ce,se]);var fe=Q&&!!le.length,me={};null!==X&&oe&&(me={position:"absolute",left:X,top:0});var ge={prefixCls:te,responsive:oe,component:k,invalidate:ie},ve=d?function(e,t){var n=ce(e,t);return r.createElement(hP.Provider,{key:n,value:Og(Og({},ge),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=K})},d(e,t))}:function(e,t){var n=ce(e,t);return r.createElement(cP,dg({},ge,{order:t,key:n,item:e,renderItem:ue,itemKey:n,registerSize:he,display:t<=K}))},ye={order:fe?K:Number.MAX_SAFE_INTEGER,className:"".concat(te,"-rest"),registerSize:function(e,t){B(t),$(j)},display:fe},be=b||xP,_e=_?r.createElement(hP.Provider,{value:Og(Og({},ge),ye)},_(le)):r.createElement(cP,dg({},ge,ye),"function"==typeof be?be(le):be),xe=r.createElement(S,dg({className:ug(!ie&&o,v),style:g,ref:t},E),se.map(ve),ae?_e:null,x&&r.createElement(cP,dg({},ge,{responsive:re,responsiveDisabled:!oe,order:K,className:"".concat(te,"-suffix"),registerSize:function(e,t){V(t)},display:!0,style:me}),x));return re?r.createElement(Av,{onResize:function(e,t){N(t.clientWidth)},disabled:!oe},xe):xe}var SP=r.forwardRef(wP);function kP(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,d=i.y,h=void 0===d?0:d,p=r.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],y=m[1],b=g[0],_=g[1];v!==b&&["t","b"].includes(v)?"t"===v?f.top=0:f.bottom=0:f.top=h,y!==_&&["l","r"].includes(y)?"l"===y?f.left=0:f.right=0:f.left=u}return r.createElement("div",{ref:p,className:ug("".concat(t,"-arrow"),s),style:f},l)}function CP(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?r.createElement(nS,dg({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:ug("".concat(t,"-mask"),n)})})):null}SP.displayName="Overflow",SP.Item=vP,SP.RESPONSIVE=bP,SP.INVALIDATE=_P;var EP=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(EP.displayName="PopupContent");var MP=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,h=e.onClick,p=e.mask,f=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,_=e.getPopupContainer,x=e.autoDestroy,w=e.portal,S=e.zIndex,k=e.onMouseEnter,C=e.onMouseLeave,E=e.onPointerEnter,M=e.onPointerDownCapture,P=e.ready,O=e.offsetX,T=e.offsetY,N=e.offsetR,D=e.offsetB,A=e.onAlign,L=e.onPrepare,I=e.stretch,z=e.targetWidth,R=e.targetHeight,$="function"==typeof n?n():n,F=c||u,j=(null==_?void 0:_.length)>0,B=Vv(r.useState(!_||!j),2),H=B[0],W=B[1];if(Ay((function(){!H&&j&&s&&W(!0)}),[H,j,s]),!H)return null;var V="auto",Y={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(P||!c){var X,q=g.points,U=g.dynamicInset||(null===(X=g._experimental)||void 0===X?void 0:X.dynamicInset),Z=U&&"r"===q[0][1],G=U&&"b"===q[0][0];Z?(Y.right=N,Y.left=V):(Y.left=O,Y.right=V),G?(Y.bottom=D,Y.top=V):(Y.top=T,Y.bottom=V)}var K={};return I&&(I.includes("height")&&R?K.height=R:I.includes("minHeight")&&R&&(K.minHeight=R),I.includes("width")&&z?K.width=z:I.includes("minWidth")&&z&&(K.minWidth=z)),c||(K.pointerEvents="none"),r.createElement(w,{open:b||F,getContainer:_&&function(){return _(s)},autoDestroy:x},r.createElement(CP,{prefixCls:i,open:c,zIndex:S,mask:p,motion:y}),r.createElement(Av,{onResize:A,disabled:!c},(function(e){return r.createElement(nS,dg({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:L,onEnterPrepare:L,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),l(e)}}),(function(n,s){var l=n.className,u=n.style,p=ug(i,l,o);return r.createElement("div",{ref:Hg(e,t,s),className:p,style:Og(Og(Og(Og({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},Y),K),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:k,onMouseLeave:C,onPointerEnter:E,onClick:h,onPointerDownCapture:M},f&&r.createElement(kP,{prefixCls:i,arrow:f,arrowPos:m,align:g}),r.createElement(EP,{cache:!c&&!d},$))}))})))}));"production"!==process.env.NODE_ENV&&(MP.displayName="Popup");var PP=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=Vg(n),a=r.useCallback((function(e){Bg(t,o?o(e):e)}),[o]),s=Wg(a,Xg(n));return i?r.cloneElement(n,{ref:s}):n}));"production"!==process.env.NODE_ENV&&(PP.displayName="TriggerWrapper");var OP=r.createContext(null);function TP(e){return e?Array.isArray(e)?e:[e]:[]}function NP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function DP(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function AP(e){return e.ownerDocument.defaultView}function LP(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=AP(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function IP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function zP(e){return IP(parseFloat(e),0)}function RP(e,t){var n=Og({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=AP(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,h=e.offsetWidth,p=e.clientWidth,f=zP(i),m=zP(a),g=zP(s),v=zP(l),y=IP(Math.round(c.width/h*1e3)/1e3),b=IP(Math.round(c.height/u*1e3)/1e3),_=(h-p-g-v)*y,x=(u-d-f-m)*b,w=f*b,S=m*b,k=g*y,C=v*y,E=0,M=0;if("clip"===r){var P=zP(o);E=P*y,M=P*b}var O=c.x+k-E,T=c.y+w-M,N=O+c.width+2*E-k-C-_,D=T+c.height+2*M-w-S-x;n.left=Math.max(n.left,O),n.top=Math.max(n.top,T),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,D)}})),n}function $P(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function FP(e,t){var n=Vv(t||[],2),r=n[0],o=n[1];return[$P(e.width,r),$P(e.height,o)]}function jP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function BP(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function HP(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var WP=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var VP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:RE,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,s=t.action,l=void 0===s?"hover":s,c=t.showAction,u=t.hideAction,d=t.popupVisible,h=t.defaultPopupVisible,p=t.onPopupVisibleChange,f=t.afterPopupVisibleChange,m=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,y=t.focusDelay,b=t.blurDelay,_=t.mask,x=t.maskClosable,w=void 0===x||x,S=t.getPopupContainer,k=t.forceRender,C=t.autoDestroy,E=t.destroyPopupOnHide,M=t.popup,P=t.popupClassName,O=t.popupStyle,T=t.popupPlacement,N=t.builtinPlacements,D=void 0===N?{}:N,A=t.popupAlign,L=t.zIndex,I=t.stretch,z=t.getPopupClassNameFromAlign,R=t.fresh,$=t.alignPoint,F=t.onPopupClick,j=t.onPopupAlign,B=t.arrow,H=t.popupMotion,W=t.maskMotion,V=t.popupTransitionName,Y=t.popupAnimation,X=t.maskTransitionName,q=t.maskAnimation,U=t.className,Z=t.getTriggerDOMNode,G=ly(t,WP),K=C||E||!1,J=Vv(r.useState(!1),2),Q=J[0],ee=J[1];Ay((function(){ee(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.substr(0,4))}())}),[]);var te=r.useRef({}),ne=r.useContext(OP),re=r.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=jE(),ie=Vv(r.useState(null),2),ae=ie[0],se=ie[1],le=r.useRef(null),ce=$x((function(e){le.current=e,Tg(e)&&ae!==e&&se(e),null==ne||ne.registerSubPopup(oe,e)})),ue=Vv(r.useState(null),2),de=ue[0],he=ue[1],pe=r.useRef(null),fe=$x((function(e){Tg(e)&&de!==e&&(he(e),pe.current=e)})),me=r.Children.only(a),ge=(null==me?void 0:me.props)||{},ve={},ye=$x((function(e){var t,n,r=de;return(null==r?void 0:r.contains(e))||(null===(t=wS(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=wS(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),be=DP(i,H,Y,V),_e=DP(i,W,q,X),xe=Vv(r.useState(h||!1),2),we=xe[0],Se=xe[1],ke=null!=d?d:we,Ce=$x((function(e){void 0===d&&Se(e)}));Ay((function(){Se(d||!1)}),[d]);var Ee=r.useRef(ke);Ee.current=ke;var Me=r.useRef([]);Me.current=[];var Pe=$x((function(e){var t;Ce(e),(null!==(t=Me.current[Me.current.length-1])&&void 0!==t?t:ke)!==e&&(Me.current.push(e),null==p||p(e))})),Oe=r.useRef(),Te=function(){clearTimeout(Oe.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Te(),0===t?Pe(e):Oe.current=setTimeout((function(){Pe(e)}),1e3*t)};r.useEffect((function(){return Te}),[]);var De=Vv(r.useState(!1),2),Ae=De[0],Le=De[1];Ay((function(e){e&&!ke||Le(!0)}),[ke]);var Ie=Vv(r.useState(null),2),ze=Ie[0],Re=Ie[1],$e=Vv(r.useState(null),2),Fe=$e[0],je=$e[1],Be=function(e){je([e.clientX,e.clientY])},He=function(e,t,n,o,i,a,s){var l=Vv(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),c=l[0],u=l[1],d=r.useRef(0),h=r.useMemo((function(){return t?LP(t):[]}),[t]),p=r.useRef({});e||(p.current={});var f=$x((function(){if(t&&n&&e){var r,l,c,d,f,m=t,g=m.ownerDocument,v=AP(m).getComputedStyle(m),y=v.width,b=v.height,_=v.position,x=m.style.left,w=m.style.top,S=m.style.right,k=m.style.bottom,C=m.style.overflow,E=Og(Og({},i[o]),a),M=g.createElement("div");if(null===(r=m.parentElement)||void 0===r||r.appendChild(M),M.style.left="".concat(m.offsetLeft,"px"),M.style.top="".concat(m.offsetTop,"px"),M.style.position=_,M.style.height="".concat(m.offsetHeight,"px"),M.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var P,O,T=n.getBoundingClientRect();T.x=null!==(P=T.x)&&void 0!==P?P:T.left,T.y=null!==(O=T.y)&&void 0!==O?O:T.top,f={x:T.x,y:T.y,width:T.width,height:T.height}}var N=m.getBoundingClientRect();N.x=null!==(l=N.x)&&void 0!==l?l:N.left,N.y=null!==(c=N.y)&&void 0!==c?c:N.top;var D=g.documentElement,A=D.clientWidth,L=D.clientHeight,I=D.scrollWidth,z=D.scrollHeight,R=D.scrollTop,$=D.scrollLeft,F=N.height,j=N.width,B=f.height,H=f.width,W={left:0,top:0,right:A,bottom:L},V={left:-$,top:-R,right:I-$,bottom:z-R},Y=E.htmlRegion,X="visible",q="visibleFirst";"scroll"!==Y&&Y!==q&&(Y=X);var U=Y===q,Z=RP(V,h),G=RP(W,h),K=Y===X?G:Z,J=U?G:K;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var Q=m.getBoundingClientRect();m.style.left=x,m.style.top=w,m.style.right=S,m.style.bottom=k,m.style.overflow=C,null===(d=m.parentElement)||void 0===d||d.removeChild(M);var ee=IP(Math.round(j/parseFloat(y)*1e3)/1e3),te=IP(Math.round(F/parseFloat(b)*1e3)/1e3);if(0===ee||0===te||Tg(n)&&!Ek(n))return;var ne=E.offset,re=E.targetOffset,oe=Vv(FP(N,ne),2),ie=oe[0],ae=oe[1],se=Vv(FP(f,re),2),le=se[0],ce=se[1];f.x-=le,f.y-=ce;var ue=Vv(E.points||[],2),de=ue[0],he=jP(ue[1]),pe=jP(de),fe=BP(f,he),me=BP(N,pe),ge=Og({},E),ve=fe.x-me.x+ie,ye=fe.y-me.y+ae;function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K,r=N.x+e,o=N.y+t,i=r+j,a=o+F,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var be,_e,xe,we,Se=dt(ve,ye),ke=dt(ve,ye,G),Ce=BP(f,["t","l"]),Ee=BP(N,["t","l"]),Me=BP(f,["b","r"]),Pe=BP(N,["b","r"]),Oe=E.overflow||{},Te=Oe.adjustX,Ne=Oe.adjustY,De=Oe.shiftX,Ae=Oe.shiftY,Le=function(e){return"boolean"==typeof e?e:e>=0};function ht(){be=N.y+ye,_e=be+F,xe=N.x+ve,we=xe+j}ht();var Ie=Le(Ne),ze=pe[0]===he[0];if(Ie&&"t"===pe[0]&&(_e>J.bottom||p.current.bt)){var Re=ye;ze?Re-=F-B:Re=Ce.y-Pe.y-ae;var $e=dt(ve,Re),Fe=dt(ve,Re,G);$e>Se||$e===Se&&(!U||Fe>=ke)?(p.current.bt=!0,ye=Re,ae=-ae,ge.points=[HP(pe,0),HP(he,0)]):p.current.bt=!1}if(Ie&&"b"===pe[0]&&(be<J.top||p.current.tb)){var je=ye;ze?je+=F-B:je=Me.y-Ee.y-ae;var Be=dt(ve,je),He=dt(ve,je,G);Be>Se||Be===Se&&(!U||He>=ke)?(p.current.tb=!0,ye=je,ae=-ae,ge.points=[HP(pe,0),HP(he,0)]):p.current.tb=!1}var We=Le(Te),Ve=pe[1]===he[1];if(We&&"l"===pe[1]&&(we>J.right||p.current.rl)){var Ye=ve;Ve?Ye-=j-H:Ye=Ce.x-Pe.x-ie;var Xe=dt(Ye,ye),qe=dt(Ye,ye,G);Xe>Se||Xe===Se&&(!U||qe>=ke)?(p.current.rl=!0,ve=Ye,ie=-ie,ge.points=[HP(pe,1),HP(he,1)]):p.current.rl=!1}if(We&&"r"===pe[1]&&(xe<J.left||p.current.lr)){var Ue=ve;Ve?Ue+=j-H:Ue=Me.x-Ee.x-ie;var Ze=dt(Ue,ye),Ge=dt(Ue,ye,G);Ze>Se||Ze===Se&&(!U||Ge>=ke)?(p.current.lr=!0,ve=Ue,ie=-ie,ge.points=[HP(pe,1),HP(he,1)]):p.current.lr=!1}ht();var Ke=!0===De?0:De;"number"==typeof Ke&&(xe<G.left&&(ve-=xe-G.left-ie,f.x+H<G.left+Ke&&(ve+=f.x-G.left+H-Ke)),we>G.right&&(ve-=we-G.right-ie,f.x>G.right-Ke&&(ve+=f.x-G.right+Ke)));var Je=!0===Ae?0:Ae;"number"==typeof Je&&(be<G.top&&(ye-=be-G.top-ae,f.y+B<G.top+Je&&(ye+=f.y-G.top+B-Je)),_e>G.bottom&&(ye-=_e-G.bottom-ae,f.y>G.bottom-Je&&(ye+=f.y-G.bottom+Je)));var Qe=N.x+ve,et=Qe+j,tt=N.y+ye,nt=tt+F,rt=f.x,ot=rt+H,it=f.y,at=it+B,st=(Math.max(Qe,rt)+Math.min(et,ot))/2-Qe,lt=(Math.max(tt,it)+Math.min(nt,at))/2-tt;null==s||s(t,ge);var ct=Q.right-N.x-(ve+N.width),ut=Q.bottom-N.y-(ye+N.height);1===ee&&(ve=Math.round(ve),ct=Math.round(ct)),1===te&&(ye=Math.round(ye),ut=Math.round(ut)),u({ready:!0,offsetX:ve/ee,offsetY:ye/te,offsetR:ct/ee,offsetB:ut/te,arrowX:st/ee,arrowY:lt/te,scaleX:ee,scaleY:te,align:ge})}})),m=function(){u((function(e){return Og(Og({},e),{},{ready:!1})}))};return Ay(m,[o]),Ay((function(){e||m()}),[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&f()}))}]}(ke,ae,$&&null!==Fe?Fe:de,T,D,A,j),We=Vv(He,11),Ve=We[0],Ye=We[1],Xe=We[2],qe=We[3],Ue=We[4],Ze=We[5],Ge=We[6],Ke=We[7],Je=We[8],Qe=We[9],et=We[10],tt=function(e,t,n,o){return r.useMemo((function(){var r=TP(null!=n?n:t),i=TP(null!=o?o:t),a=new Set(r),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,o])}(Q,l,c,u),nt=Vv(tt,2),rt=nt[0],ot=nt[1],it=rt.has("click"),at=ot.has("click")||ot.has("contextMenu"),st=$x((function(){Ae||et()}));!function(e,t,n,r,o){Ay((function(){if(e&&t&&n){var i=n,a=LP(t),s=LP(i),l=AP(i),c=new Set([l].concat(Yv(a),Yv(s)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(ke,de,ae,st,(function(){Ee.current&&$&&at&&Ne(!1)})),Ay((function(){st()}),[Fe,T]),Ay((function(){!ke||null!=D&&D[T]||st()}),[JSON.stringify(A)]);var lt=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(NP(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(D,i,Qe,$);return ug(e,null==z?void 0:z(Qe))}),[Qe,z,D,i,$]);r.useImperativeHandle(n,(function(){return{nativeElement:pe.current,popupElement:le.current,forceAlign:st}}));var ct=Vv(r.useState(0),2),ut=ct[0],dt=ct[1],ht=Vv(r.useState(0),2),pt=ht[0],ft=ht[1],mt=function(){if(I&&de){var e=de.getBoundingClientRect();dt(e.width),ft(e.height)}};function gt(e,t,n,r){ve[e]=function(o){var i;null==r||r(o),Ne(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=ge[e])||void 0===i||i.call.apply(i,[ge,o].concat(s))}}Ay((function(){ze&&(et(),ze(),Re(null))}),[ze]),(it||at)&&(ve.onClick=function(e){var t;Ee.current&&at?Ne(!1):!Ee.current&&it&&(Be(e),Ne(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onClick)||void 0===t||t.call.apply(t,[ge,e].concat(r))});var vt,yt,bt=function(e,t,n,o,i,a,s,l){var c=r.useRef(e);c.current=e;var u=r.useRef(!1);return r.useEffect((function(){if(t&&o&&(!i||a)){var e=function(){u.current=!1},r=function(e){var t;!c.current||s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||l(!1)},d=AP(o);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",r,!0),d.addEventListener("contextmenu",r,!0);var h,p,f=wS(n);return f&&(f.addEventListener("mousedown",r,!0),f.addEventListener("contextmenu",r,!0)),"production"!==process.env.NODE_ENV&&_g((null==n||null===(h=n.getRootNode)||void 0===h?void 0:h.call(n))===(null===(p=o.getRootNode)||void 0===p?void 0:p.call(o)),"trigger element and popup element should in same shadow root."),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",r,!0),d.removeEventListener("contextmenu",r,!0),f&&(f.removeEventListener("mousedown",r,!0),f.removeEventListener("contextmenu",r,!0))}}}),[t,n,o,i,a]),function(){u.current=!0}}(ke,at,de,ae,_,w,ye,Ne),_t=rt.has("hover"),xt=ot.has("hover");_t&&(gt("onMouseEnter",!0,m,(function(e){Be(e)})),gt("onPointerEnter",!0,m,(function(e){Be(e)})),vt=function(e){(ke||Ae)&&null!=ae&&ae.contains(e.target)&&Ne(!0,m)},$&&(ve.onMouseMove=function(e){var t;null===(t=ge.onMouseMove)||void 0===t||t.call(ge,e)})),xt&&(gt("onMouseLeave",!1,v),gt("onPointerLeave",!1,v),yt=function(){Ne(!1,v)}),rt.has("focus")&&gt("onFocus",!0,y),ot.has("focus")&&gt("onBlur",!1,b),rt.has("contextMenu")&&(ve.onContextMenu=function(e){var t;Ee.current&&ot.has("contextMenu")?Ne(!1):(Be(e),Ne(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onContextMenu)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),U&&(ve.className=ug(ge.className,U));var wt=Og(Og({},ge),ve),St={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){G[e]&&(St[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=wt[e])||void 0===t||t.call.apply(t,[wt].concat(r)),G[e].apply(G,r)})}));var kt=r.cloneElement(me,Og(Og({},wt),St)),Ct={x:Ze,y:Ge},Et=B?Og({},!0!==B?B:{}):null;return r.createElement(r.Fragment,null,r.createElement(Av,{disabled:!ke,ref:fe,onResize:function(){mt(),st()}},r.createElement(PP,{getTriggerDOMNode:Z},kt)),r.createElement(OP.Provider,{value:re},r.createElement(MP,{portal:e,ref:ce,prefixCls:i,popup:M,className:ug(P,lt),style:O,target:de,onMouseEnter:vt,onMouseLeave:yt,onPointerEnter:vt,zIndex:L,open:ke,keepDom:Ae,fresh:R,onClick:F,onPointerDownCapture:bt,mask:_,motion:be,maskMotion:_e,onVisibleChanged:function(e){Le(!1),et(),null==f||f(e)},onPrepare:function(){return new Promise((function(e){mt(),Re((function(){return e}))}))},forceRender:k,autoDestroy:K,getPopupContainer:S,align:Qe,arrow:Et,arrowPos:Ct,ready:Ve,offsetX:Ye,offsetY:Xe,offsetR:qe,offsetB:Ue,onAlign:st,stretch:I,targetWidth:ut/Ke,targetHeight:pt/Je})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(RE);function YP(e,t,n){return ug({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const XP=(e,t)=>t||e;var qP=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:s}=r.useContext(xx),l=r.useContext(QM),c=null==s?void 0:s.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(o=null!=l?l:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,_x.includes(u)]};const UP=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}};var ZP={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"},GP=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:ZP}))},KP=r.forwardRef(GP);"production"!==process.env.NODE_ENV&&(KP.displayName="CheckOutlined");var JP=KP,QP={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"},eO=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:QP}))},tO=r.forwardRef(eO);"production"!==process.env.NODE_ENV&&(tO.displayName="DownOutlined");var nO=tO,rO={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"},oO=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:rO}))},iO=r.forwardRef(oO);"production"!==process.env.NODE_ENV&&(iO.displayName="SearchOutlined");var aO=iO;const sO=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${My(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},lO=Qx.map((e=>`${e}-inverse`)),cO=["success","processing","error","default","warning"];var uO,dO={exports:{}};var hO,pO=(uO||(uO=1,dO.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=g;var x="$isDayjsObject",w=function(e){return e instanceof E||!(!e||!e[x])},S=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();_[i]&&(o=i),n&&(_[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;_[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},k=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},C=y;C.l=S,C.i=w,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},f=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(r?v-_:v+(6-_),g);case s:case h:return f(y+"Hours",0);case a:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case o:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(r,u){var h,p=this;r=Number(r);var f=C.p(u),m=function(e){var t=k(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===s)return m(1);if(f===l)return m(7);var g=(h={},h[i]=t,h[a]=n,h[o]=e,h)[f]||1,v=this.$d.getTime()+r*g;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},h=function(e){return C.s(i%12||12,e,"0")},f=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return C.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(i,a,!0);case"A":return f(i,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,p){var f,m=this,g=C.p(h),v=k(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,_=function(){return C.m(m,v)};switch(g){case d:f=_()/12;break;case c:f=_();break;case u:f=_()/3;break;case l:f=(b-y)/6048e5;break;case s:f=(b-y)/864e5;break;case a:f=b/n;break;case i:f=b/t;break;case o:f=b/e;break;default:f=b}return p?f:C.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return _[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),M=E.prototype;return k.prototype=M,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",h]].forEach((function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,E,k),e.$i=!0),k},k.locale=S,k.isDayjs=w,k.unix=function(e){return k(1e3*e)},k.en=_[b],k.Ls=_,k.p={},k}()),dO.exports),fO=ye(pO),mO={exports:{}};var gO,vO=(hO||(hO=1,mO.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}),mO.exports),yO=ye(vO),bO={exports:{}};var _O,xO=(gO||(gO=1,bO.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),s=o(a[t]),l=o(a[n]),c=s||l.map((function(e){return e.slice(0,r)}));if(!i)return c;var u=a.weekStart;return c.map((function(e,t){return c[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}),bO.exports),wO=ye(xO),SO={exports:{}};var kO,CO=(_O||(_O=1,SO.exports=function(){var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()),SO.exports),EO=ye(CO),MO={exports:{}};var PO,OO=(kO||(kO=1,MO.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}),MO.exports),TO=ye(OO),NO={exports:{}};var DO,AO=(PO||(PO=1,NO.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}),NO.exports),LO=ye(AO),IO={exports:{}};var zO=(DO||(DO=1,IO.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[r,l("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,l("week")],ww:[r,l("week")],M:[o,l("month")],MM:[r,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=i.length,l=0;l<s;l+=1){var c=i[l],u=h[c],d=u&&u[0],p=u&&u[1];i[l]=p?{regex:d,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,l=o.parser,c=e.slice(r),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var s=i[1];if("string"==typeof s){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),i=o.year,a=o.month,s=o.day,l=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,h=o.zone,f=o.week,m=new Date,g=s||(i||a?1:m.getDate()),v=i||m.getFullYear(),y=0;i&&!a||(y=a>0?a-1:m.getMonth());var b,_=l||0,x=c||0,w=u||0,S=d||0;return h?new Date(Date.UTC(v,y,g,_,x,w,S+60*h.offset*1e3)):n?new Date(Date.UTC(v,y,g,_,x,w,S)):(b=new Date(v,y,g,_,x,w,S),f&&(b=r(b).week(f).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var h=s.length,f=1;f<=h;f+=1){i[1]=s[f-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===h&&(this.$d=new Date(""))}else o.call(this,e)}}}()),IO.exports),RO=ye(zO);fO.extend(RO),fO.extend(LO),fO.extend(yO),fO.extend(wO),fO.extend(EO),fO.extend(TO),fO.extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var $O={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},FO=function(e){return $O[e]||e.split("_")[0]},jO={getNow:function(){var e=fO();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return fO(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return fO().locale(FO(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(FO(e)).weekday(0)},getWeek:function(e,t){return t.locale(FO(e)).week()},getShortWeekDays:function(e){return fO().locale(FO(e)).localeData().weekdaysMin()},getShortMonths:function(e){return fO().locale(FO(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(FO(e)).format(n)},parse:function(e,t,n){for(var r=FO(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var s=a.split("-")[0],l=a.split("-")[1],c=fO(s,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=c.add(u,"week");if(d.format("Wo")===l)return d}return null}var h=fO(a,i,!0).locale(r);if(h.isValid())return h}return null}}};var BO=r.createContext(null),HO={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function WO(e){var t=e.popupElement,n=e.popupStyle,o=e.popupClassName,i=e.popupAlign,a=e.transitionName,s=e.getPopupContainer,l=e.children,c=e.range,u=e.placement,d=e.builtinPlacements,h=void 0===d?HO:d,p=e.direction,f=e.visible,m=e.onClose,g=r.useContext(BO).prefixCls,v="".concat(g,"-dropdown"),y=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(u,"rtl"===p);return r.createElement(VP,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:h,prefixCls:v,popupTransitionName:a,popup:t,popupAlign:i,popupVisible:f,popupClassName:ug(o,Mg(Mg({},"".concat(v,"-range"),c),"".concat(v,"-rtl"),"rtl"===p)),popupStyle:n,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:function(e){e||m()}},l)}function VO(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function YO(e){return null==e?[]:Array.isArray(e)?e:[e]}function XO(e,t,n){var r=Yv(e);return r[t]=n,r}function qO(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function UO(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function ZO(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find((function(t){return e[t]}));return r!==o?e[o]:void 0}function GO(e){return qO(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function KO(e,t,n,o){"production"!==process.env.NODE_ENV&&(kg(!t,"'dateRender' is deprecated. Please use 'cellRender' instead."),kg(!n,"'monthCellRender' is deprecated. Please use 'cellRender' instead."));var i=r.useMemo((function(){return e||function(e,r){var o=e;return t&&"date"===r.type?t(o,r.today):n&&"month"===r.type?n(o,r.locale):r.originNode}}),[e,n,t]),a=r.useCallback((function(e,t){return i(e,Og(Og({},t),{},{range:o}))}),[i,o]);return a}function JO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Vv(r.useState([!1,!1]),2),i=o[0],a=o[1],s=r.useMemo((function(){return i.map((function(r,o){if(r)return!0;var i=e[o];return!!i&&(!n[o]&&!i||!(!i||!t(i,{activeIndex:o})))}))}),[e,i,t,n]);return[s,function(e,t){a((function(n){return XO(n,t,e)}))}]}function QO(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function eT(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,s=t.use12Hours;return o.useMemo((function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,h=e.fieldQuarterFormat,p=e.yearFormat,f=e.cellYearFormat,m=e.cellQuarterFormat,g=e.dayFormat,v=e.cellDateFormat,y=QO(t,n,r,o,i);return Og(Og({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:f||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:v||g||"D"})}(e,n,r,i,a,s)}),[e,n,r,i,a,s])}function tT(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var nT=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function rT(e){return e&&"string"==typeof e}function oT(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function iT(e,t,n,r,o){var i=t,a=n,s=r;if(e||i||a||s||o){if(e){var l,c,u,d=[i,a,s].some((function(e){return!1===e})),h=[i,a,s].some((function(e){return!0===e})),p=!!d||!h;i=null!==(l=i)&&void 0!==l?l:p,a=null!==(c=a)&&void 0!==c?c:p,s=null!==(u=s)&&void 0!==u?u:p}}else i=!0,a=!0,s=!0;return[i,a,s,o]}function aT(e){var t=e.showTime,n=function(e){var t=qO(e,nT),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===Cg(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=Vv(n,2),o=r[0],i=r[1],a=t&&"object"===Cg(t)?t:{},s=Og(Og({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,h=Vv(iT(oT(c,u,d,l),c,u,d,l),3);return c=h[0],u=h[1],d=h[2],[s,Og(Og({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,i]}function sT(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=UO(e,o,null),s=[t,n],l=0;l<s.length;l+=1){var c=YO(s[l])[0];if(rT(c)){a=c;break}}var u=i.showHour,d=i.showMinute,h=i.showSecond,p=i.showMillisecond,f=tT(a,["a","A","LT","LLL","LTS"],i.use12Hours),m=oT(u,d,h,p);m||(u=tT(a,["H","h","k","LT","LLL"]),d=tT(a,["m","LT","LLL"]),h=tT(a,["s","LTS"]),p=tT(a,["SSS"]));var g=Vv(iT(m,u,d,h,p),3);u=g[0],d=g[1],h=g[2];var v=t||QO(u,d,h,p,f);return Og(Og({},i),{},{format:v,showHour:u,showMinute:d,showSecond:h,showMillisecond:p,use12Hours:f})}return null}function lT(e,t,n){return"production"!==process.env.NODE_ENV&&n&&kg(!1,"`clearIcon` will be removed in future. Please use `allowClear` instead."),!1===t?null:(t&&"object"===Cg(t)?t:{}).clearIcon||n||r.createElement("span",{className:"".concat(e,"-clear-btn")})}function cT(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function uT(e,t,n){return cT(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function dT(e,t,n){return cT(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function hT(e,t){return Math.floor(e.getMonth(t)/3)+1}function pT(e,t,n){return cT(t,n,(function(){return dT(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function fT(e,t,n){return cT(t,n,(function(){return dT(e,t,n)&&pT(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function mT(e,t,n){return cT(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function gT(e,t,n){return cT(t,n,(function(){return fT(e,t,n)&&mT(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function vT(e,t,n,r){return cT(n,r,(function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return dT(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}))}function yT(e,t,n,r,o){switch(o){case"date":return fT(e,n,r);case"week":return vT(e,t.locale,n,r);case"month":return pT(e,n,r);case"quarter":return function(e,t,n){return cT(t,n,(function(){return dT(e,t,n)&&hT(e,t)===hT(e,n)}))}(e,n,r);case"year":return dT(e,n,r);case"decade":return uT(e,n,r);case"time":return mT(e,n,r);default:return gT(e,n,r)}}function bT(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function _T(e,t,n,r,o){return!!yT(e,t,n,r,o)||e.isAfter(n,r)}function xT(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"==typeof o?o(e):n.locale.format(r.locale,e,o):""}function wT(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)})),r}function ST(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.useMemo((function(){var n=e?YO(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t])}function kT(e,t){var n=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,s=e.prefixCls,l=void 0===s?"rc-picker":s,c=e.styles,u=void 0===c?{}:c,d=e.classNames,h=void 0===d?{}:d,p=e.order,f=void 0===p||p,m=e.components,g=void 0===m?{}:m,v=e.inputRender,y=e.allowClear,b=e.clearIcon,_=e.needConfirm,x=e.multiple,w=e.format,S=e.inputReadOnly,k=e.disabledDate,C=e.minDate,E=e.maxDate,M=e.showTime,P=e.value,O=e.defaultValue,T=e.pickerValue,N=e.defaultPickerValue,D=ST(P),A=ST(O),L=ST(T),I=ST(N),z="date"===a&&M?"datetime":a,R="time"===z||"datetime"===z,$=R||x,F=null!=_?_:R,j=Vv(aT(e),4),B=j[0],H=j[1],W=j[2],V=j[3],Y=eT(o,H),X=r.useMemo((function(){return sT(z,W,V,B,Y)}),[z,W,V,B,Y]);"production"!==process.env.NODE_ENV&&"time"===a&&["disabledHours","disabledMinutes","disabledSeconds"].some((function(t){return e[t]}))&&kg(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.");var q=r.useMemo((function(){return Og(Og({},e),{},{prefixCls:l,locale:Y,picker:a,styles:u,classNames:h,order:f,components:Og({input:v},g),clearIcon:lT(l,y,b),showTime:X,value:D,defaultValue:A,pickerValue:L,defaultPickerValue:I},null==t?void 0:t())}),[e]),U=function(e,t,n){return r.useMemo((function(){var r=YO(UO(e,t,n)),o=r[0],i="object"===Cg(o)&&"mask"===o.type?o.format:null;return[r.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,t,n])}(z,Y,w),Z=Vv(U,2),G=Z[0],K=Z[1],J=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(G,S,x),Q=function(e,t,n,r,o){var i=$x((function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||yT(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||yT(e,t,o,i,a.type))}));return i}(n,o,k,C,E),ee=function(e,t,n,r){var o=$x((function(o,i){var a=Og({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var s,l=i&&1===i.activeIndex?"end":"start",c=(null===(s=r.disabledTime)||void 0===s?void 0:s.call(r,o,l,{from:a.from}))||{},u=c.disabledHours,d=c.disabledMinutes,h=c.disabledSeconds,p=c.disabledMilliseconds,f=r.disabledHours,m=r.disabledMinutes,g=r.disabledSeconds,v=u||f,y=d||m,b=h||g,_=e.getHour(o),x=e.getMinute(o),w=e.getSecond(o),S=e.getMillisecond(o);if(v&&v().includes(_))return!0;if(y&&y(_).includes(x))return!0;if(b&&b(_,x).includes(w))return!0;if(p&&p(_,x,w).includes(S))return!0}return!1}));return o}(n,a,Q,X);return[r.useMemo((function(){return Og(Og({},q),{},{needConfirm:F,inputReadOnly:J,disabledDate:Q})}),[q,F,J,Q]),z,$,G,K,ee]}function CT(e,t){var n,r,i,a,s,l,c,u,d,h,p=arguments.length>3?arguments[3]:void 0,f=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,m=(r=p,i=Vv(Hx(t||!1,{value:n=f}),2),a=i[0],s=i[1],l=o.useRef(n),c=o.useRef(),u=function(){Bv.cancel(c.current)},d=$x((function(){s(l.current),r&&a!==l.current&&r(l.current)})),h=$x((function(e,t){u(),l.current=e,e||t?d():c.current=Bv(d)})),o.useEffect((function(){return u}),[]),[a,h]),g=Vv(m,2),v=g[0],y=g[1];return[v,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!v||y(e,t.force)}]}function ET(e){var t=r.useRef();return r.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function MT(e,t){return r.useMemo((function(){return e||(t?(kg(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=Vv(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function PT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=r.useRef(t);o.current=t,Ly((function(){if(!e){var t=Bv((function(){o.current(e)}),n);return function(){Bv.cancel(t)}}o.current(e)}),[e])}function OT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Vv(r.useState(0),2),i=o[0],a=o[1],s=Vv(r.useState(!1),2),l=s[0],c=s[1],u=r.useRef([]),d=r.useRef(null),h=r.useRef(null),p=function(e){d.current=e};return PT(l||n,(function(){l||(u.current=[],p(null))})),r.useEffect((function(){l&&u.current.push(i)}),[l,i]),[l,function(e){c(e)},function(e){return e&&(h.current=e),h.current},i,a,function(n){var r=u.current,o=new Set(r.filter((function(e){return n[e]||t[e]}))),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},u.current,p,function(e){return d.current===e}]}function TT(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var NT=[];function DT(e,t,n,o,i,a,s,l){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:NT,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:NT,d=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,f="time"===s,m=a||0,g=function(t){var r=e.getNow();return f&&(r=wT(e,r)),c[t]||n[t]||r},v=Vv(arguments.length>9&&void 0!==arguments[9]?arguments[9]:NT,2),y=v[0],b=v[1],_=Vv(Hx((function(){return g(0)}),{value:y}),2),x=_[0],w=_[1],S=Vv(Hx((function(){return g(1)}),{value:b}),2),k=S[0],C=S[1],E=r.useMemo((function(){var t=[x,k][m];return f?t:wT(e,t,u[m])}),[f,x,k,m,e,u]),M=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[w,C][m])(n);var i=[x,k];i[m]=n,!d||yT(e,t,x,i[0],s)&&yT(e,t,k,i[1],s)||d(i,{source:r,range:1===m?"end":"start",mode:o})},P=r.useRef(null);return Ay((function(){if(i&&!c[m]){var r=f?null:e.getNow();if(null!==P.current&&P.current!==m?r=[x,k][1^m]:n[m]?r=0===m?n[0]:function(n,r){if(l){var o={date:"month",week:"month",month:"year",quarter:"year"}[s];if(o&&!yT(e,t,n,r,o))return TT(e,s,r,-1);if("year"===s&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return TT(e,s,r,-1)}return r}(n[0],n[1]):n[1^m]&&(r=n[1^m]),r){h&&e.isAfter(h,r)&&(r=h);var o=l?TT(e,s,r,1):r;p&&e.isAfter(o,p)&&(r=l?TT(e,s,p,-1):p),M(r,"reset")}}}),[i,m,n[m]]),r.useEffect((function(){P.current=i?m:null}),[i,m]),Ay((function(){i&&c&&c[m]&&M(c[m],"reset")}),[i,m]),[E,M]}function AT(e,t){var n=r.useRef(e),o=Vv(r.useState({}),2)[1],i=function(e){return e&&void 0!==t?t:n.current};return[i,function(e){n.current=e,o({})},i(!0)]}var LT=[];function IT(e,t,n){return[function(r){return r.map((function(r){return xT(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,s=n[i]||null;if(a!==s&&!gT(e,a,s)){o=i;break}}return[o<0,0!==o]}]}function zT(e,t){return Yv(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function RT(e,t,n,o,i,a,s,l,c){var u=Vv(Hx(a,{value:s}),2),d=u[0],h=u[1],p=d||LT,f=function(e){var t=Vv(AT(e),2),n=t[0],o=t[1],i=$x((function(){o(e)}));return r.useEffect((function(){i()}),[e]),[n,o]}(p),m=Vv(f,2),g=m[0],v=m[1],y=Vv(IT(e,t,n),2),b=y[0],_=y[1],x=$x((function(t){var n=Yv(t);if(o)for(var r=0;r<2;r+=1)n[r]=n[r]||null;else i&&(n=zT(n.filter((function(e){return e})),e));var a=Vv(_(g(),n),2),s=a[0],c=a[1];if(!s&&(v(n),l)){var u=b(n);l(n,u,{range:c?"end":"start"})}}));return[p,h,g,x,function(){c&&c(g())}]}function $T(e,t,n,o,i,a,s,l,c,u){var d=e.generateConfig,h=e.locale,p=e.picker,f=e.onChange,m=e.allowEmpty,g=e.order,v=!a.some((function(e){return e}))&&g,y=Vv(IT(d,h,s),2),b=y[0],_=y[1],x=Vv(AT(t),2),w=x[0],S=x[1],k=$x((function(){S(t)}));r.useEffect((function(){k()}),[t]);var C=$x((function(e){var r=null===e,o=Yv(e||w());if(r)for(var s=Math.max(a.length,o.length),l=0;l<s;l+=1)a[l]||(o[l]=null);v&&o[0]&&o[1]&&(o=zT(o,d)),i(o);var c=Vv(o,2),y=c[0],x=c[1],S=!y,k=!x,C=!m||(!S||m[0])&&(!k||m[1]),E=!g||S||k||yT(d,h,y,x,p)||d.isAfter(x,y),M=(a[0]||!y||!u(y,{activeIndex:0}))&&(a[1]||!x||!u(x,{from:y,activeIndex:1})),P=r||C&&E&&M;if(P){n(o);var O=Vv(_(o,t),1)[0];f&&!O&&f(r&&o.every((function(e){return!e}))?null:o,b(o))}return P})),E=$x((function(e,t){var n=XO(w(),e,o()[e]);S(n),t&&C()})),M=!l&&!c;return PT(!M,(function(){M&&(C(),i(t),k())}),2),[E,C]}function FT(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function jT(){return[]}function BT(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],s=n>=1?0|n:1,l=e;l<=t;l+=s){var c=o.includes(l);c&&r||a.push({label:VO(l,i),value:l,disabled:c})}return a}function HT(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=n.use12Hours,i=n.hourStep,a=void 0===i?1:i,s=n.minuteStep,l=void 0===s?1:s,c=n.secondStep,u=void 0===c?1:c,d=n.millisecondStep,h=void 0===d?100:d,p=n.hideDisabledOptions,f=n.disabledTime,m=n.disabledHours,g=n.disabledMinutes,v=n.disabledSeconds,y=r.useMemo((function(){return t||e.getNow()}),[t,e]);if("production"!==process.env.NODE_ENV){var b=60%l==0,_=60%u==0;kg(24%a==0,"`hourStep` ".concat(a," is invalid. It should be a factor of 24.")),kg(b,"`minuteStep` ".concat(l," is invalid. It should be a factor of 60.")),kg(_,"`secondStep` ".concat(u," is invalid. It should be a factor of 60."))}var x=r.useCallback((function(e){var t=(null==f?void 0:f(e))||{};return[t.disabledHours||m||jT,t.disabledMinutes||g||jT,t.disabledSeconds||v||jT,t.disabledMilliseconds||jT]}),[f,m,g,v]),w=Vv(r.useMemo((function(){return x(y)}),[y,x]),4),S=w[0],k=w[1],C=w[2],E=w[3],M=r.useCallback((function(e,t,n,r){var i=BT(0,23,a,p,e()),s=o?i.map((function(e){return Og(Og({},e),{},{label:VO(e.value%12||12,2)})})):i;return[s,function(e){return BT(0,59,l,p,t(e))},function(e,t){return BT(0,59,u,p,n(e,t))},function(e,t,n){return BT(0,999,h,p,r(e,t,n),3)}]}),[p,a,o,h,l,u]),P=Vv(r.useMemo((function(){return M(S,k,C,E)}),[M,S,k,C,E]),4),O=P[0],T=P[1],N=P[2],D=P[3];return[function(t,n){var r=function(){return O},o=T,i=N,a=D;if(n){var s=Vv(x(n),4),l=s[0],c=s[1],u=s[2],d=s[3],h=Vv(M(l,c,u,d),4),p=h[0];r=function(){return p},o=h[1],i=h[2],a=h[3]}var f=function(e,t,n,r,o,i){var a=e;function s(e,t,n){var r=i[e](a),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var s=n.filter((function(e){return!e.disabled})),l=Yv(s).reverse().find((function(e){return e.value<=r}))||s[0];l&&(r=l.value,a=i[t](a,r))}return r}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",o(l,c,u)),a}(t,r,o,i,a,e);return f},O,T,N,D]}function WT(e){var t=e.mode,n=e.internalMode,o=e.renderExtraFooter,i=e.showNow,a=e.showTime,s=e.onSubmit,l=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,h=e.disabledDate,p=r.useContext(BO),f=p.prefixCls,m=p.locale,g=p.button,v=void 0===g?"button":g,y=d.getNow(),b=Vv(HT(d,a,y),1)[0],_=null==o?void 0:o(t),x=h(y,{type:t}),w="".concat(f,"-now"),S="".concat(w,"-btn"),k=i&&r.createElement("li",{className:w},r.createElement("a",{className:ug(S,x&&"".concat(S,"-disabled")),"aria-disabled":x,onClick:function(){if(!x){var e=b(y);l(e)}}},"date"===n?m.today:m.now)),C=u&&r.createElement("li",{className:"".concat(f,"-ok")},r.createElement(v,{disabled:c,onClick:s},m.ok)),E=(k||C)&&r.createElement("ul",{className:"".concat(f,"-ranges")},k,C);return _||E?r.createElement("div",{className:"".concat(f,"-footer")},_&&r.createElement("div",{className:"".concat(f,"-footer-extra")},_),E):null}function VT(e,t,n){return function(r,o){var i=r.findIndex((function(r){return yT(e,t,r,o,n)}));if(-1===i)return[].concat(Yv(r),[o]);var a=Yv(r);return a.splice(i,1),a}}var YT=r.createContext(null);function XT(){return r.useContext(YT)}function qT(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,h=e.values,p=e.pickerValue,f=e.onSelect,m=e.prevIcon,g=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,b=r.getNow();return[{now:b,values:h,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:f,panelType:t,prevIcon:m,nextIcon:g,superPrevIcon:v,superNextIcon:y},b]}var UT=r.createContext({});function ZT(e){for(var t=e.rowNum,n=e.colNum,o=e.baseDate,i=e.getCellDate,a=e.prefixColumn,s=e.rowClassName,l=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,h=e.cellSelection,p=void 0===h||h,f=e.disabledDate,m=XT(),g=m.prefixCls,v=m.panelType,y=m.now,b=m.disabledDate,_=m.cellRender,x=m.onHover,w=m.hoverValue,S=m.hoverRangeValue,k=m.generateConfig,C=m.values,E=m.locale,M=m.onSelect,P=f||b,O="".concat(g,"-cell"),T=r.useContext(UT).onCellDblClick,N=function(e){return C.some((function(t){return t&&yT(k,E,e,t,v)}))},D=[],A=0;A<t;A+=1){for(var L=[],I=void 0,z=function(){var e=i(o,A*n+R),t=null==P?void 0:P(e,{type:v});0===R&&(I=e,a&&L.push(a(I)));var s=!1,d=!1,h=!1;if(p&&S){var f=Vv(S,2),m=f[0],b=f[1];s=bT(k,m,b,e),d=yT(k,E,e,m,v),h=yT(k,E,e,b,v)}var C=l?xT(e,{locale:E,format:l,generateConfig:k}):void 0,D=r.createElement("div",{className:"".concat(O,"-inner")},c(e));L.push(r.createElement("td",{key:R,title:C,className:ug(O,Og(Mg(Mg(Mg(Mg(Mg(Mg({},"".concat(O,"-disabled"),t),"".concat(O,"-hover"),(w||[]).some((function(t){return yT(k,E,e,t,v)}))),"".concat(O,"-in-range"),s&&!d&&!h),"".concat(O,"-range-start"),d),"".concat(O,"-range-end"),h),"".concat(g,"-cell-selected"),!S&&"week"!==v&&N(e)),u(e))),onClick:function(){t||M(e)},onDoubleClick:function(){!t&&T&&T()},onMouseEnter:function(){t||null==x||x(e)},onMouseLeave:function(){t||null==x||x(null)}},_?_(e,{prefixCls:g,originNode:D,today:y,type:v,locale:E}):D))},R=0;R<n;R+=1)z();D.push(r.createElement("tr",{key:A,className:null==s?void 0:s(I)},L))}return r.createElement("div",{className:"".concat(g,"-body")},r.createElement("table",{className:"".concat(g,"-content")},d&&r.createElement("thead",null,r.createElement("tr",null,d)),r.createElement("tbody",null,D)))}"production"!==process.env.NODE_ENV&&(UT.displayName="PickerHackContext");var GT={visibility:"hidden"};function KT(e){var t=e.offset,n=e.superOffset,o=e.onChange,i=e.getStart,a=e.getEnd,s=e.children,l=XT(),c=l.prefixCls,u=l.prevIcon,d=void 0===u?"‹":u,h=l.nextIcon,p=void 0===h?"›":h,f=l.superPrevIcon,m=void 0===f?"«":f,g=l.superNextIcon,v=void 0===g?"»":g,y=l.minDate,b=l.maxDate,_=l.generateConfig,x=l.locale,w=l.pickerValue,S=l.panelType,k="".concat(c,"-header"),C=r.useContext(UT),E=C.hidePrev,M=C.hideNext,P=C.hideHeader,O=r.useMemo((function(){if(!y||!t||!a)return!1;var e=a(t(-1,w));return!_T(_,x,e,y,S)}),[y,t,w,a,_,x,S]),T=r.useMemo((function(){if(!y||!n||!a)return!1;var e=a(n(-1,w));return!_T(_,x,e,y,S)}),[y,n,w,a,_,x,S]),N=r.useMemo((function(){if(!b||!t||!i)return!1;var e=i(t(1,w));return!_T(_,x,b,e,S)}),[b,t,w,i,_,x,S]),D=r.useMemo((function(){if(!b||!n||!i)return!1;var e=i(n(1,w));return!_T(_,x,b,e,S)}),[b,n,w,i,_,x,S]),A=function(e){t&&o(t(e,w))},L=function(e){n&&o(n(e,w))};if(P)return null;var I="".concat(k,"-prev-btn"),z="".concat(k,"-next-btn"),R="".concat(k,"-super-prev-btn"),$="".concat(k,"-super-next-btn");return r.createElement("div",{className:k},n&&r.createElement("button",{type:"button","aria-label":x.previousYear,onClick:function(){return L(-1)},tabIndex:-1,className:ug(R,T&&"".concat(R,"-disabled")),disabled:T,style:E?GT:{}},m),t&&r.createElement("button",{type:"button","aria-label":x.previousMonth,onClick:function(){return A(-1)},tabIndex:-1,className:ug(I,O&&"".concat(I,"-disabled")),disabled:O,style:E?GT:{}},d),r.createElement("div",{className:"".concat(k,"-view")},s),t&&r.createElement("button",{type:"button","aria-label":x.nextMonth,onClick:function(){return A(1)},tabIndex:-1,className:ug(z,N&&"".concat(z,"-disabled")),disabled:N,style:M?GT:{}},p),n&&r.createElement("button",{type:"button","aria-label":x.nextYear,onClick:function(){return L(1)},tabIndex:-1,className:ug($,D&&"".concat($,"-disabled")),disabled:D,style:M?GT:{}},v))}function JT(e){var t=e.prefixCls,n=e.panelName,o=void 0===n?"date":n,i=e.locale,a=e.generateConfig,s=e.pickerValue,l=e.onPickerValueChange,c=e.onModeChange,u=e.mode,d=void 0===u?"date":u,h=e.disabledDate,p=e.onSelect,f=e.onHover,m=e.showWeek,g="".concat(t,"-").concat(o,"-panel"),v="".concat(t,"-cell"),y="week"===d,b=Vv(qT(e,d),2),_=b[0],x=b[1],w=a.locale.getWeekFirstDay(i.locale),S=a.setDate(s,1),k=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,a,S),C=a.getMonth(s),E=(void 0===m?y:m)?function(e){var t=null==h?void 0:h(e,{type:"week"});return r.createElement("td",{key:"week",className:ug(v,"".concat(v,"-week"),Mg({},"".concat(v,"-disabled"),t)),onClick:function(){t||p(e)},onMouseEnter:function(){t||null==f||f(e)},onMouseLeave:function(){t||null==f||f(null)}},r.createElement("div",{className:"".concat(v,"-inner")},a.locale.getWeek(i.locale,e)))}:null,M=[],P=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);E&&M.push(r.createElement("th",{key:"empty"},r.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},i.week)));for(var O=0;O<7;O+=1)M.push(r.createElement("th",{key:O},P[(O+w)%7]));var T=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),N=r.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){c("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},xT(s,{locale:i,format:i.yearFormat,generateConfig:a})),D=r.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){c("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?xT(s,{locale:i,format:i.monthFormat,generateConfig:a}):T[C]),A=i.monthBeforeYear?[D,N]:[N,D];return r.createElement(YT.Provider,{value:_},r.createElement("div",{className:ug(g,m&&"".concat(g,"-show-week"))},r.createElement(KT,{offset:function(e){return a.addMonth(s,e)},superOffset:function(e){return a.addYear(s,e)},onChange:l,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},A),r.createElement(ZT,dg({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:k,headerCells:M,getCellDate:function(e,t){return a.addDate(e,t)},getCellText:function(e){return xT(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},getCellClassName:function(e){return Mg(Mg({},"".concat(t,"-cell-in-view"),pT(a,e,s)),"".concat(t,"-cell-today"),fT(a,e,x))},prefixColumn:E,cellSelection:!y}))))}var QT=1/3;function eN(e){return e.map((function(e){return[e.value,e.label,e.disabled].join(",")})).join(";")}function tN(e){var t=e.units,n=e.value,o=e.optionalValue,i=e.type,a=e.onChange,s=e.onHover,l=e.onDblClick,c=e.changeOnScroll,u=XT(),d=u.prefixCls,h=u.cellRender,p=u.now,f=u.locale,m="".concat(d,"-time-panel"),g="".concat(d,"-time-panel-cell"),v=r.useRef(null),y=r.useRef(),b=function(){clearTimeout(y.current)},_=function(e,t){var n=r.useRef(!1),o=r.useRef(null),i=r.useRef(null),a=function(){Bv.cancel(o.current),n.current=!1},s=r.useRef();return[$x((function(){var r=e.current;if(i.current=null,s.current=0,r){var l=r.querySelector('[data-value="'.concat(t,'"]')),c=r.querySelector("li");l&&c&&function e(){a(),n.current=!0,s.current+=1;var t=r.scrollTop,u=c.offsetTop,d=l.offsetTop,h=d-u;if(0===d&&l!==c||!Ek(r))s.current<=5&&(o.current=Bv(e));else{var p=t+(h-t)*QT,f=Math.abs(h-p);if(null!==i.current&&i.current<f)a();else{if(i.current=f,f<=1)return r.scrollTop=h,void a();r.scrollTop=p,o.current=Bv(e)}}}()}})),a,function(){return n.current}]}(v,null!=n?n:o),x=Vv(_,3),w=x[0],S=x[1],k=x[2];Ay((function(){return w(),b(),function(){S(),b()}}),[n,o,eN(t)]);var C="".concat(m,"-column");return r.createElement("ul",{className:C,ref:v,"data-type":i,onScroll:function(e){b();var n=e.target;!k()&&c&&(y.current=setTimeout((function(){var e=v.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-r})),i=o.map((function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)})),s=Math.min.apply(Math,Yv(i)),l=i.findIndex((function(e){return e===s})),c=t[l];c&&!c.disabled&&a(c.value)}),300))}},t.map((function(e){var t=e.label,o=e.value,c=e.disabled,u=r.createElement("div",{className:"".concat(g,"-inner")},t);return r.createElement("li",{key:o,className:ug(g,Mg(Mg({},"".concat(g,"-selected"),n===o),"".concat(g,"-disabled"),c)),onClick:function(){c||a(o)},onDoubleClick:function(){!c&&l&&l()},onMouseEnter:function(){s(o)},onMouseLeave:function(){s(null)},"data-value":o},h?h(o,{prefixCls:d,originNode:u,today:p,type:"time",subType:i,locale:f}):u)})))}function nN(e){return e<12}function rN(e){var t=e.showHour,n=e.showMinute,o=e.showSecond,i=e.showMillisecond,a=e.use12Hours,s=e.changeOnScroll,l=XT(),c=l.prefixCls,u=l.values,d=l.generateConfig,h=l.locale,p=l.onSelect,f=l.onHover,m=void 0===f?function(){}:f,g=l.pickerValue,v=(null==u?void 0:u[0])||null,y=r.useContext(UT).onCellDblClick,b=Vv(HT(d,e,v),5),_=b[0],x=b[1],w=b[2],S=b[3],k=b[4],C=function(e){return[v&&d[e](v),g&&d[e](g)]},E=Vv(C("getHour"),2),M=E[0],P=E[1],O=Vv(C("getMinute"),2),T=O[0],N=O[1],D=Vv(C("getSecond"),2),A=D[0],L=D[1],I=Vv(C("getMillisecond"),2),z=I[0],R=I[1],$=null===M?null:nN(M)?"am":"pm",F=r.useMemo((function(){return a?nN(M)?x.filter((function(e){return nN(e.value)})):x.filter((function(e){return!nN(e.value)})):x}),[M,x,a]),j=function(e,t){var n,r=e.filter((function(e){return!e.disabled}));return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},B=j(x,M),H=r.useMemo((function(){return w(B)}),[w,B]),W=j(H,T),V=r.useMemo((function(){return S(B,W)}),[S,B,W]),Y=j(V,A),X=r.useMemo((function(){return k(B,W,Y)}),[k,B,W,Y]),q=j(X,z),U=r.useMemo((function(){if(!a)return[];var e=d.getNow(),t=d.setHour(e,6),n=d.setHour(e,18),r=function(e,t){var n=h.cellMeridiemFormat;return n?xT(e,{generateConfig:d,locale:h,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:x.every((function(e){return e.disabled||!nN(e.value)}))},{label:r(n,"PM"),value:"pm",disabled:x.every((function(e){return e.disabled||nN(e.value)}))}]}),[x,a,d,h]),Z=function(e){var t=_(e);p(t)},G=r.useMemo((function(){var e=v||g||d.getNow(),t=function(e){return null!=e};return t(M)?(e=d.setHour(e,M),e=d.setMinute(e,T),e=d.setSecond(e,A),e=d.setMillisecond(e,z)):t(P)?(e=d.setHour(e,P),e=d.setMinute(e,N),e=d.setSecond(e,L),e=d.setMillisecond(e,R)):t(B)&&(e=d.setHour(e,B),e=d.setMinute(e,W),e=d.setSecond(e,Y),e=d.setMillisecond(e,q)),e}),[v,g,M,T,A,z,B,W,Y,q,P,N,L,R,d]),K=function(e,t){return null===e?null:d[t](G,e)},J=function(e){return K(e,"setHour")},Q=function(e){return K(e,"setMinute")},ee=function(e){return K(e,"setSecond")},te=function(e){return K(e,"setMillisecond")},ne=function(e){return null===e?null:"am"!==e||nN(M)?"pm"===e&&nN(M)?d.setHour(G,M+12):G:d.setHour(G,M-12)},re={onDblClick:y,changeOnScroll:s};return r.createElement("div",{className:"".concat(c,"-content")},t&&r.createElement(tN,dg({units:F,value:M,optionalValue:P,type:"hour",onChange:function(e){Z(J(e))},onHover:function(e){m(J(e))}},re)),n&&r.createElement(tN,dg({units:H,value:T,optionalValue:N,type:"minute",onChange:function(e){Z(Q(e))},onHover:function(e){m(Q(e))}},re)),o&&r.createElement(tN,dg({units:V,value:A,optionalValue:L,type:"second",onChange:function(e){Z(ee(e))},onHover:function(e){m(ee(e))}},re)),i&&r.createElement(tN,dg({units:X,value:z,optionalValue:R,type:"millisecond",onChange:function(e){Z(te(e))},onHover:function(e){m(te(e))}},re)),a&&r.createElement(tN,dg({units:U,value:$,type:"meridiem",onChange:function(e){Z(ne(e))},onHover:function(e){m(ne(e))}},re)))}function oN(e){var t=e.prefixCls,n=e.value,o=e.locale,i=e.generateConfig,a=e.showTime,s=(a||{}).format,l="".concat(t,"-time-panel"),c=Vv(qT(e,"time"),1)[0];return r.createElement(YT.Provider,{value:c},r.createElement("div",{className:ug(l)},r.createElement(KT,null,n?xT(n,{locale:o,format:s,generateConfig:i}):" "),r.createElement(rN,a)))}var iN={date:JT,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,o=e.showTime,i=e.onSelect,a=e.value,s=e.pickerValue,l=e.onHover,c="".concat(t,"-datetime-panel"),u=Vv(HT(n,o),1)[0],d=function(e){return wT(n,e,a||s)};return r.createElement("div",{className:c},r.createElement(JT,dg({},e,{onSelect:function(e){var t=d(e);i(u(t,t))},onHover:function(e){null==l||l(e?d(e):e)}})),r.createElement(oN,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,i=e.value,a=e.hoverValue,s=e.hoverRangeValue,l=o.locale,c="".concat(t,"-week-panel-row");return r.createElement(JT,dg({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(s){var r=Vv(s,2),o=r[0],u=r[1],d=vT(n,l,o,e),h=vT(n,l,u,e);t["".concat(c,"-range-start")]=d,t["".concat(c,"-range-end")]=h,t["".concat(c,"-range-hover")]=!d&&!h&&bT(n,o,u,e)}return a&&(t["".concat(c,"-hover")]=a.some((function(t){return vT(n,l,e,t)}))),ug(c,Mg({},"".concat(c,"-selected"),!s&&vT(n,l,i,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-month-panel"),u=Vv(qT(e,"month"),1)[0],d=o.setMonth(i,0),h=n.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(n.locale):[]),p=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,o.getMonth(n)+1),i=o.addDate(r,-1);return a(n,t)&&a(i,t)}:null,f=r.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},xT(i,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(YT.Provider,{value:u},r.createElement("div",{className:c},r.createElement(KT,{superOffset:function(e){return o.addYear(i,e)},onChange:s,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},f),r.createElement(ZT,dg({},e,{disabledDate:p,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(e,t){return o.addMonth(e,t)},getCellText:function(e){var t=o.getMonth(e);return n.monthFormat?xT(e,{locale:n,format:n.monthFormat,generateConfig:o}):h[t]},getCellClassName:function(){return Mg({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-quarter-panel"),c=Vv(qT(e,"quarter"),1)[0],u=o.setMonth(i,0),d=r.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},xT(i,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(YT.Provider,{value:c},r.createElement("div",{className:l},r.createElement(KT,{superOffset:function(e){return o.addYear(i,e)},onChange:a,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},d),r.createElement(ZT,dg({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return o.addMonth(e,3*t)},getCellText:function(e){return xT(e,{locale:n,format:n.cellQuarterFormat,generateConfig:o})},getCellClassName:function(){return Mg({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-year-panel"),u=Vv(qT(e,"year"),1)[0],d=function(e){var t=10*Math.floor(o.getYear(e)/10);return o.setYear(e,t)},h=function(e){var t=d(e);return o.addYear(t,9)},p=d(i),f=h(i),m=o.addYear(p,-1),g=a?function(e,t){var n=o.setMonth(e,0),r=o.setDate(n,1),i=o.addYear(r,1),s=o.addDate(i,-1);return a(r,t)&&a(s,t)}:null,v=r.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){l("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},xT(p,{locale:n,format:n.yearFormat,generateConfig:o}),"-",xT(f,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(YT.Provider,{value:u},r.createElement("div",{className:c},r.createElement(KT,{superOffset:function(e){return o.addYear(i,10*e)},onChange:s,getStart:d,getEnd:h},v),r.createElement(ZT,dg({},e,{disabledDate:g,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:function(e,t){return o.addYear(e,t)},getCellText:function(e){return xT(e,{locale:n,format:n.cellYearFormat,generateConfig:o})},getCellClassName:function(e){return Mg({},"".concat(t,"-cell-in-view"),dT(o,e,p)||dT(o,e,f)||bT(o,p,f,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l="".concat(t,"-decade-panel"),c=Vv(qT(e,"decade"),1)[0],u=function(e){var t=100*Math.floor(o.getYear(e)/100);return o.setYear(e,t)},d=function(e){var t=u(e);return o.addYear(t,99)},h=u(i),p=d(i),f=o.addYear(h,-10),m=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,0),i=o.setYear(r,10*Math.floor(o.getYear(r)/10)),s=o.addYear(i,10),l=o.addDate(s,-1);return a(i,t)&&a(l,t)}:null,g="".concat(xT(h,{locale:n,format:n.yearFormat,generateConfig:o}),"-").concat(xT(p,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(YT.Provider,{value:c},r.createElement("div",{className:l},r.createElement(KT,{superOffset:function(e){return o.addYear(i,100*e)},onChange:s,getStart:u,getEnd:d},g),r.createElement(ZT,dg({},e,{disabledDate:m,colNum:3,rowNum:4,baseDate:f,getCellDate:function(e,t){return o.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,r=xT(e,{locale:n,format:t,generateConfig:o}),i=xT(o.addYear(e,9),{locale:n,format:t,generateConfig:o});return"".concat(r,"-").concat(i)},getCellClassName:function(e){return Mg({},"".concat(t,"-cell-in-view"),uT(o,e,h)||uT(o,e,p)||bT(o,h,p,e))}}))))},time:oN};function aN(e,t){var n,o=e.locale,i=e.generateConfig,a=e.direction,s=e.prefixCls,l=e.tabIndex,c=void 0===l?0:l,u=e.multiple,d=e.defaultValue,h=e.value,p=e.onChange,f=e.onSelect,m=e.defaultPickerValue,g=e.pickerValue,v=e.onPickerValueChange,y=e.mode,b=e.onPanelChange,_=e.picker,x=void 0===_?"date":_,w=e.showTime,S=e.hoverValue,k=e.hoverRangeValue,C=e.cellRender,E=e.dateRender,M=e.monthCellRender,P=e.components,O=void 0===P?{}:P,T=e.hideHeader,N=(null===(n=r.useContext(BO))||void 0===n?void 0:n.prefixCls)||s||"rc-picker",D=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:D.current}}));var A=Vv(aT(e),4),L=A[0],I=A[1],z=A[2],R=A[3],$=eT(o,I),F="date"===x&&w?"datetime":x,j=r.useMemo((function(){return sT(F,z,R,L,$)}),[F,z,R,L,$]),B=i.getNow(),H=Vv(Hx(x,{value:y,postState:function(e){return e||"date"}}),2),W=H[0],V=H[1],Y="date"===W&&j?"datetime":W,X=VT(i,o,F),q=Vv(Hx(d,{value:h}),2),U=q[0],Z=q[1],G=r.useMemo((function(){var e=YO(U).filter((function(e){return e}));return u?e:e.slice(0,1)}),[U,u]),K=$x((function(e){Z(e),p&&(null===e||G.length!==e.length||G.some((function(t,n){return!yT(i,o,t,e[n],F)})))&&(null==p||p(u?e:e[0]))})),J=$x((function(e){if(null==f||f(e),W===x){var t=u?X(G,e):[e];K(t)}})),Q=Vv(Hx(m||G[0]||B,{value:g}),2),ee=Q[0],te=Q[1];r.useEffect((function(){G[0]&&!g&&te(G[0])}),[G[0]]);var ne=function(e,t){null==b||b(e||g,t||W)},re=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];te(e),null==v||v(e),t&&ne(e)},oe=function(e,t){V(e),t&&re(t),ne(t,e)},ie=r.useMemo((function(){var e,t;if(Array.isArray(k)){var n=Vv(k,2);e=n[0],t=n[1]}else e=k;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null}),[k,i]),ae=KO(C,E,M),se=O[Y]||iN[Y]||JT,le=r.useContext(UT),ce=r.useMemo((function(){return Og(Og({},le),{},{hideHeader:T})}),[le,T]);"production"!==process.env.NODE_ENV&&kg(!G||G.every((function(e){return i.isValidate(e)})),"Invalidate date pass to `value` or `defaultValue`.");var ue="".concat(N,"-panel"),de=qO(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return r.createElement(UT.Provider,{value:ce},r.createElement("div",{ref:D,tabIndex:c,className:ug(ue,Mg({},"".concat(ue,"-rtl"),"rtl"===a))},r.createElement(se,dg({},de,{showTime:j,prefixCls:N,locale:$,generateConfig:i,onModeChange:oe,pickerValue:ee,onPickerValueChange:function(e){re(e,!0)},value:G[0],onSelect:function(e){if(J(e),re(e),W!==x){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(Yv(n),["week"]),date:[].concat(Yv(n),["date"])}[x]||n,o=r.indexOf(W),i=r[o+1];i&&oe(i,e)}},values:G,cellRender:ae,hoverRangeValue:ie,hoverValue:S}))))}var sN=r.memo(r.forwardRef(aN));function lN(e){var t=e.picker,n=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,s=e.onSubmit,l=e.range,c=e.hoverValue,u=r.useContext(BO),d=u.prefixCls,h=u.generateConfig,p=r.useCallback((function(e,n){return TT(h,t,e,n)}),[h,t]),f=r.useMemo((function(){return p(o,1)}),[o,p]),m={onCellDblClick:function(){a&&s()}},g="time"===t,v=Og(Og({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return l?v.hoverRangeValue=c:v.hoverValue=c,n?r.createElement("div",{className:"".concat(d,"-panels")},r.createElement(UT.Provider,{value:Og(Og({},m),{},{hideNext:!0})},r.createElement(sN,v)),r.createElement(UT.Provider,{value:Og(Og({},m),{},{hidePrev:!0})},r.createElement(sN,dg({},v,{pickerValue:f,onPickerValueChange:function(e){i(p(e,-1))}})))):r.createElement(UT.Provider,{value:Og({},m)},r.createElement(sN,v))}function cN(e){return"function"==typeof e?e():e}function uN(e){var t=e.prefixCls,n=e.presets,o=e.onClick,i=e.onHover;return n.length?r.createElement("div",{className:"".concat(t,"-presets")},r.createElement("ul",null,n.map((function(e,t){var n=e.label,a=e.value;return r.createElement("li",{key:t,onClick:function(){o(cN(a))},onMouseEnter:function(){i(cN(a))},onMouseLeave:function(){i(null)}},n)})))):null}function dN(e){var t=e.panelRender,n=e.internalMode,o=e.picker,i=e.showNow,a=e.range,s=e.multiple,l=e.activeInfo,c=void 0===l?[0,0,0]:l,u=e.presets,d=e.onPresetHover,h=e.onPresetSubmit,p=e.onFocus,f=e.onBlur,m=e.onPanelMouseDown,g=e.direction,v=e.value,y=e.onSelect,b=e.isInvalid,_=e.defaultOpenValue,x=e.onOk,w=e.onSubmit,S=r.useContext(BO).prefixCls,k="".concat(S,"-panel"),C="rtl"===g,E=r.useRef(null),M=r.useRef(null),P=Vv(r.useState(0),2),O=P[0],T=P[1],N=Vv(r.useState(0),2),D=N[0],A=N[1],L=Vv(r.useState(0),2),I=L[0],z=L[1],R=Vv(c,3),$=R[0],F=R[1],j=R[2];function B(e){return e.filter((function(e){return e}))}r.useEffect((function(){if(a&&M.current){var e,t=(null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0,n=M.current.getBoundingClientRect(),r=(C?F-t:$)-n.left;if(z(r),O&&O<j){var o=C?n.right-(F-t+O):$+t-n.left-O,i=Math.max(0,o);A(i)}else A(0)}}),[C,O,$,F,j,a]);var H=r.useMemo((function(){return B(YO(v))}),[v]),W="time"===o&&!H.length,V=r.useMemo((function(){return W?B([_]):H}),[W,H,_]),Y=W?_:H,X=r.useMemo((function(){return!V.length||V.some((function(e){return b(e)}))}),[V,b]),q=r.createElement("div",{className:"".concat(S,"-panel-layout")},r.createElement(uN,{prefixCls:S,presets:u,onClick:h,onHover:d}),r.createElement("div",null,r.createElement(lN,dg({},e,{value:Y})),r.createElement(WT,dg({},e,{showNow:!s&&i,invalid:X,onSubmit:function(){W&&y(_),x(),w()}}))));t&&(q=t(q));var U="".concat(k,"-container"),Z="marginLeft",G="marginRight",K=r.createElement("div",{onMouseDown:m,tabIndex:-1,className:ug(U,"".concat(S,"-").concat(n,"-panel-container")),style:Mg(Mg({},C?G:Z,D),C?Z:G,"auto"),onFocus:p,onBlur:f},q);return a&&(K=r.createElement("div",{onMouseDown:m,ref:M,className:ug("".concat(S,"-range-wrapper"),"".concat(S,"-").concat(o,"-range-wrapper"))},r.createElement("div",{ref:E,className:"".concat(S,"-range-arrow"),style:{left:I}}),r.createElement(Av,{onResize:function(e){e.width&&T(e.width)}},K))),K}function hN(e,t){var n=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,s=e.preserveInvalidOnBlur,l=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,h=e.onFocus,p=e.onBlur,f=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,y=e.onKeyDown,b=e.onChange,_=e.activeHelp,x=e.name,w=e.autoComplete,S=e.id,k=e.value,C=e.invalid,E=e.placeholder,M=e.disabled,P=e.activeIndex,O=e.allHelp,T=e.picker,N=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},D=n[0],A=r.useCallback((function(e){return xT(e,{locale:a,format:D,generateConfig:i})}),[a,i,D]),L=r.useMemo((function(){return k.map(A)}),[k,A]),I=r.useMemo((function(){var e="time"===T?8:10,t="function"==typeof D?D(i.getNow()).length:D.length;return Math.max(e,t)+2}),[D,T,i]),z=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"==typeof r){var o=N(e,r);if(o)return o}}return!1};return[function(n){function r(e){return void 0!==n?e[n]:e}var i=Og(Og({},XS(e,{aria:!0,data:!0})),{},{format:o,validateFormat:function(e){return!!z(e)},preserveInvalidOnBlur:s,readOnly:l,required:c,"aria-required":u,name:x,autoComplete:w,size:I,id:r(S),value:r(L)||"",invalid:r(C),placeholder:r(E),active:P===n,helped:O||_&&P===n,disabled:r(M),onFocus:function(e){h(e,n)},onBlur:function(e){p(e,n)},onSubmit:d,onChange:function(e){f();var t=z(e);if(t)return m(!1,n),void b(t,n);m(!!e,n)},onHelp:function(){v(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null==y||y(e,(function(){"production"!==process.env.NODE_ENV&&kg(!1,"`preventDefault` callback is deprecated. Please call `event.preventDefault` directly."),t=!0})),!e.defaultPrevented&&!t)switch(e.key){case"Escape":v(!1,{index:n});break;case"Enter":g||v(!0)}}},null==t?void 0:t({valueTexts:L}));return Object.keys(i).forEach((function(e){void 0===i[e]&&delete i[e]})),i},A]}"production"!==process.env.NODE_ENV&&(sN.displayName="PanelPicker");var pN=["onMouseEnter","onMouseLeave"];function fN(e){return r.useMemo((function(){return qO(e,pN)}),[e])}var mN=["icon","type"],gN=["onClear"];function vN(e){var t=e.icon,n=e.type,o=ly(e,mN),i=r.useContext(BO).prefixCls;return t?r.createElement("span",dg({className:"".concat(i,"-").concat(n)},o),t):null}function yN(e){var t=e.onClear,n=ly(e,gN);return r.createElement(vN,dg({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var bN=["YYYY","MM","DD","HH","mm","ss","SSS"],_N=function(){function e(t){_v(this,e),Mg(this,"format",void 0),Mg(this,"maskFormat",void 0),Mg(this,"cells",void 0),Mg(this,"maskCells",void 0),this.format=t;var n=bN.map((function(e){return"(".concat(e,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,(function(e){return"顧".repeat(e.length)}));var o=new RegExp("(".concat(bN.join("|"),")")),i=(t.split(o)||[]).filter((function(e){return e})),a=0;this.cells=i.map((function(e){var t=bN.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}return wv(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var s=Math.min(Math.abs(e-i),Math.abs(e-a));s<t&&(t=s,n=r)}return n}}]),e}();var xN=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],wN=r.forwardRef((function(e,t){var n=e.active,o=e.showActiveCls,i=void 0===o||o,a=e.suffixIcon,s=e.format,l=e.validateFormat,c=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,h=e.onSubmit,p=e.onKeyDown,f=e.preserveInvalidOnBlur,m=void 0!==f&&f,g=e.invalid,v=e.clearIcon,y=ly(e,xN),b=e.value,_=e.onFocus,x=e.onBlur,w=e.onMouseUp,S=r.useContext(BO),k=S.prefixCls,C=S.input,E=void 0===C?"input":C,M="".concat(k,"-input"),P=Vv(r.useState(!1),2),O=P[0],T=P[1],N=Vv(r.useState(b),2),D=N[0],A=N[1],L=Vv(r.useState(""),2),I=L[0],z=L[1],R=Vv(r.useState(null),2),$=R[0],F=R[1],j=Vv(r.useState(null),2),B=j[0],H=j[1],W=D||"";r.useEffect((function(){A(b)}),[b]);var V=r.useRef(),Y=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:V.current,inputElement:Y.current,focus:function(e){Y.current.focus(e)},blur:function(){Y.current.blur()}}}));var X=r.useMemo((function(){return new _N(s||"")}),[s]),q=Vv(r.useMemo((function(){return u?[0,0]:X.getSelection($)}),[X,$,u]),2),U=q[0],Z=q[1],G=function(e){e&&e!==s&&e!==b&&d()},K=$x((function(e){l(e)&&c(e),A(e),G(e)})),J=r.useRef(!1),Q=function(e){x(e)};PT(n,(function(){n||m||A(b)}));var ee=function(e){"Enter"===e.key&&l(W)&&h(),null==p||p(e)},te=r.useRef();Ay((function(){if(O&&s&&!J.current){if(X.match(W))return Y.current.setSelectionRange(U,Z),te.current=Bv((function(){Y.current.setSelectionRange(U,Z)})),function(){Bv.cancel(te.current)};K(s)}}),[X,s,O,W,$,U,Z,B,K]);var ne=s?{onFocus:function(e){T(!0),F(0),z(""),_(e)},onBlur:function(e){T(!1),Q(e)},onKeyDown:function(e){ee(e);var t=e.key,n=null,r=null,o=Z-U,i=s.slice(U,Z),a=function(e){F((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,X.size()-1)}))},l=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=Vv(t,3),r=n[0],o=n[1],a=n[2],s=W.slice(U,Z),l=Number(s);if(isNaN(l))return String(a||(e>0?r:o));var c=o-r+1;return String(r+(c+(l+e)-r)%c)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=l(1);break;case"ArrowDown":n="",r=l(-1);break;default:isNaN(Number(t))||(r=n=I+t)}if(null!==n&&(z(n),n.length>=o&&(a(1),z(""))),null!==r){var c=W.slice(0,U)+VO(r,o)+W.slice(Z);K(c.slice(0,s.length))}H({})},onMouseDown:function(){J.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=X.getMaskCellIndex(t);F(n),H({}),null==w||w(e),J.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");l(t)&&K(t)}}:{};return r.createElement("div",{ref:V,className:ug(M,Mg(Mg({},"".concat(M,"-active"),n&&i),"".concat(M,"-placeholder"),u))},r.createElement(E,dg({ref:Y,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:ee,onBlur:Q},ne,{value:W,onChange:function(e){if(!s){var t=e.target.value;G(t),A(t),c(t)}}})),r.createElement(vN,{type:"suffix",icon:a}),v)}));"production"!==process.env.NODE_ENV&&(wN.displayName="Input");var SN=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],kN=["index"];function CN(e,t){var n=e.id,o=e.prefix,i=e.clearIcon,a=e.suffixIcon,s=e.separator,l=void 0===s?"~":s,c=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,h=e.className,p=e.style,f=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var b=e.direction;e.onOpenChange;var _=e.onActiveInfo;e.placement;var x=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,S=e.tabIndex,k=ly(e,SN),C="rtl"===b,E=r.useContext(BO).prefixCls,M=r.useMemo((function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),P=r.useRef(),O=r.useRef(),T=r.useRef(),N=function(e){var t;return null===(t=[O,T][e])||void 0===t?void 0:t.current};r.useImperativeHandle(t,(function(){return{nativeElement:P.current,focus:function(e){if("object"===Cg(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=ly(n,kN);null===(t=N(o))||void 0===t||t.focus(i)}else{var a;null===(a=N(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=N(0))||void 0===e||e.blur(),null===(t=N(1))||void 0===t||t.blur()}}}));var D=fN(k),A=r.useMemo((function(){return Array.isArray(d)?d:[d,d]}),[d]),L=Vv(hN(Og(Og({},e),{},{id:M,placeholder:A})),1)[0],I=Vv(r.useState({position:"absolute",width:0}),2),z=I[0],R=I[1],$=$x((function(){var e=N(c);if(e){var t=e.nativeElement.getBoundingClientRect(),n=P.current.getBoundingClientRect(),r=t.left-n.left;R((function(e){return Og(Og({},e),{},{width:t.width,left:r})})),_([t.left,t.right,n.width])}}));r.useEffect((function(){$()}),[c]);var F=i&&(g[0]&&!v[0]||g[1]&&!v[1]),j=w&&!v[0],B=w&&!j&&!v[1];return r.createElement(Av,{onResize:$},r.createElement("div",dg({},D,{className:ug(E,"".concat(E,"-range"),Mg(Mg(Mg(Mg({},"".concat(E,"-focused"),u),"".concat(E,"-disabled"),v.every((function(e){return e}))),"".concat(E,"-invalid"),y.some((function(e){return e}))),"".concat(E,"-rtl"),C),h),style:p,ref:P,onClick:f,onMouseDown:function(e){var t=e.target;t!==O.current.inputElement&&t!==T.current.inputElement&&e.preventDefault(),null==x||x(e)}}),o&&r.createElement("div",{className:"".concat(E,"-prefix")},o),r.createElement(wN,dg({ref:O},L(0),{autoFocus:j,tabIndex:S,"date-range":"start"})),r.createElement("div",{className:"".concat(E,"-range-separator")},l),r.createElement(wN,dg({ref:T},L(1),{autoFocus:B,tabIndex:S,"date-range":"end"})),r.createElement("div",{className:"".concat(E,"-active-bar"),style:z}),r.createElement(vN,{type:"suffix",icon:a}),F&&r.createElement(yN,{icon:i,onClear:m})))}var EN=r.forwardRef(CN);function MN(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function PN(e){return 1===e?"end":"start"}function ON(e,t){var n=kT(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:MN(t,!1),allowEmpty:MN(n,!1)}})),o=Vv(n,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],d=i.prefixCls,h=i.styles,p=i.classNames,f=i.defaultValue,m=i.value,g=i.needConfirm,v=i.onKeyDown,y=i.disabled,b=i.allowEmpty,_=i.disabledDate,x=i.minDate,w=i.maxDate,S=i.defaultOpen,k=i.open,C=i.onOpenChange,E=i.locale,M=i.generateConfig,P=i.picker,O=i.showNow,T=i.showToday,N=i.showTime,D=i.mode,A=i.onPanelChange,L=i.onCalendarChange,I=i.onOk,z=i.defaultPickerValue,R=i.pickerValue,$=i.onPickerValueChange,F=i.inputReadOnly,j=i.suffixIcon,B=i.onFocus,H=i.onBlur,W=i.presets,V=i.ranges,Y=i.components,X=i.cellRender,q=i.dateRender,U=i.monthCellRender,Z=i.onClick,G=ET(t),K=Vv(CT(k,S,y,C),2),J=K[0],Q=K[1],ee=function(e,t){!y.some((function(e){return!e}))&&e||Q(e,t)},te=Vv(RT(M,E,l,!0,!1,f,m,L,I),5),ne=te[0],re=te[1],oe=te[2],ie=te[3],ae=te[4],se=oe(),le=Vv(OT(y,b,J),9),ce=le[0],ue=le[1],de=le[2],he=le[3],pe=le[4],fe=le[5],me=le[6],ge=le[7],ve=le[8],ye=function(e,t){ue(!0),null==B||B(e,{range:PN(null!=t?t:he)})},be=function(e,t){ue(!1),null==H||H(e,{range:PN(null!=t?t:he)})},_e=r.useMemo((function(){if(!N)return null;var e=N.disabledTime,t=e?function(t){var n=PN(he),r=ZO(se,me,he);return e(t,n,{from:r})}:void 0;return Og(Og({},N),{},{disabledTime:t})}),[N,he,se,me]),xe=Vv(Hx([P,P],{value:D}),2),we=xe[0],Se=xe[1],ke=we[he]||P,Ce="date"===ke&&_e?"datetime":ke,Ee=Ce===P&&"time"!==Ce,Me=FT(P,ke,O,T,!0),Pe=Vv($T(i,ne,re,oe,ie,y,l,ce,J,u),2),Oe=Pe[0],Te=Pe[1],Ne=function(e,t,n,r,o,i){var a=n[n.length-1];return function(s,l){var c=Vv(e,2),u=c[0],d=c[1],h=Og(Og({},l),{},{from:ZO(e,n)});return!(1!==a||!t[0]||!u||yT(r,o,u,s,h.type)||!r.isAfter(u,s))||!(0!==a||!t[1]||!d||yT(r,o,d,s,h.type)||!r.isAfter(s,d))||(null==i?void 0:i(s,h))}}(se,y,me,M,E,_),De=Vv(JO(se,u,b),2),Ae=De[0],Le=De[1],Ie=Vv(DT(M,E,se,we,J,he,a,Ee,z,R,null==_e?void 0:_e.defaultOpenValue,$,x,w),2),ze=Ie[0],Re=Ie[1],$e=$x((function(e,t,n){var r=XO(we,he,t);if(r[0]===we[0]&&r[1]===we[1]||Se(r),A&&!1!==n){var o=Yv(se);e&&(o[he]=e),A(o,r)}})),Fe=function(e,t){return XO(se,t,e)},je=function(e,t){var n=se;e&&(n=Fe(e,he)),ge(he);var r=fe(n);ie(n),Oe(he,null===r),null===r?ee(!1,{force:!0}):t||G.current.focus({index:r})},Be=Vv(r.useState(null),2),He=Be[0],We=Be[1],Ve=Vv(r.useState(null),2),Ye=Ve[0],Xe=Ve[1],qe=r.useMemo((function(){return Ye||se}),[se,Ye]);r.useEffect((function(){J||Xe(null)}),[J]);var Ue=Vv(r.useState([0,0,0]),2),Ze=Ue[0],Ge=Ue[1],Ke=MT(W,V),Je=KO(X,q,U,PN(he)),Qe=se[he]||null,et=$x((function(e){return u(e,{activeIndex:he})})),tt=r.useMemo((function(){var e=XS(i,!1);return Ck(i,[].concat(Yv(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[i]),nt=r.createElement(dN,dg({},tt,{showNow:Me,showTime:_e,range:!0,multiplePanel:Ee,activeInfo:Ze,disabledDate:Ne,onFocus:function(e){ee(!0),ye(e)},onBlur:be,onPanelMouseDown:function(){de("panel")},picker:P,mode:ke,internalMode:Ce,onPanelChange:$e,format:c,value:Qe,isInvalid:et,onChange:null,onSelect:function(e){var t=XO(se,he,e);ie(t),g||s||a!==Ce||je(e)},pickerValue:ze,defaultOpenValue:YO(null==N?void 0:N.defaultOpenValue)[he],onPickerValueChange:Re,hoverValue:qe,onHover:function(e){Xe(e?Fe(e,he):null),We("cell")},needConfirm:g,onSubmit:je,onOk:ae,presets:Ke,onPresetHover:function(e){Xe(e),We("preset")},onPresetSubmit:function(e){Te(e)&&ee(!1,{force:!0})},onNow:function(e){je(e)},cellRender:Je})),rt=r.useMemo((function(){return{prefixCls:d,locale:E,generateConfig:M,button:Y.button,input:Y.input}}),[d,E,M,Y.button,Y.input]);if(Ay((function(){J&&void 0!==he&&$e(null,P,!1)}),[J,he,P]),Ay((function(){var e=de();J||"input"!==e||(ee(!1),je(null,!0)),J||!s||g||"panel"!==e||(ee(!0),je())}),[J]),"production"!==process.env.NODE_ENV){y.some((function(e,t){return e&&function(e){return!(null!=m&&m[e]||null!=f&&f[e])}(t)&&!b[t]}))&&kg(!1,"`disabled` should not set with empty `value`. You should set `allowEmpty` or `value` instead.")}return r.createElement(BO.Provider,{value:rt},r.createElement(WO,dg({},GO(i),{popupElement:nt,popupStyle:h.popup,popupClassName:p.popup,visible:J,onClose:function(){ee(!1)},range:!0}),r.createElement(EN,dg({},i,{ref:G,suffixIcon:j,activeIndex:ce||J?he:null,activeHelp:!!Ye,allHelp:!!Ye&&"preset"===He,focused:ce,onFocus:function(e,t){var n=me.length,r=me[n-1];n&&r!==t&&g&&!b[r]&&!ve(r)&&se[r]?G.current.focus({index:r}):(de("input"),ee(!0,{inherit:!0}),he!==t&&J&&!g&&s&&je(null,!0),pe(t),ye(e,t))},onBlur:function(e,t){if(ee(!1),!g&&"input"===de()){var n=fe(se);Oe(he,null===n)}be(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&je(null,!0),null==v||v(e,t)},onSubmit:je,value:qe,maskFormat:c,onChange:function(e,t){var n=Fe(e,t);ie(n)},onInputChange:function(){de("input")},format:l,inputReadOnly:F,disabled:y,open:J,onOpenChange:ee,onClick:function(e){var t,n=e.target.getRootNode();if(!G.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=y.findIndex((function(e){return!e}));r>=0&&G.current.focus({index:r})}ee(!0),null==Z||Z(e)},onClear:function(){Te(null),ee(!1,{force:!0})},invalid:Ae,onInvalid:Le,onActiveInfo:Ge}))))}"production"!==process.env.NODE_ENV&&(EN.displayName="RangeSelector");var TN=r.forwardRef(ON);function NN(e){var t=e.prefixCls,n=e.value,o=e.onRemove,i=e.removeIcon,a=void 0===i?"×":i,s=e.formatDate,l=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),h="".concat(t,"-selection"),p="".concat(h,"-overflow");function f(e,t){return r.createElement("span",{className:ug("".concat(h,"-item")),title:"string"==typeof e?e:null},r.createElement("span",{className:"".concat(h,"-item-content")},e),!l&&t&&r.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(h,"-item-remove")},a))}return r.createElement("div",{className:d},r.createElement(SP,{prefixCls:p,data:n,renderItem:function(e){return f(s(e),(function(t){t&&t.stopPropagation(),o(e)}))},renderRest:function(e){return f("+ ".concat(e.length," ..."))},itemKey:function(e){return s(e)},maxCount:c}),!n.length&&r.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}"production"!==process.env.NODE_ENV&&(TN.displayName="RefRangePicker");var DN=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function AN(e,t){e.id;var n=e.open,o=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,c=e.generateConfig,u=e.placeholder,d=e.className,h=e.style,p=e.onClick,f=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var b=e.multiple,_=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var x=e.disabled,w=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var k=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,E=e.tabIndex,M=e.removeIcon,P=ly(e,DN),O="rtl"===S,T=r.useContext(BO).prefixCls,N=r.useRef(),D=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:N.current,focus:function(e){var t;null===(t=D.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=D.current)||void 0===e||e.blur()}}}));var A=fN(P),L=hN(Og(Og({},e),{},{onChange:function(e){v([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:s}})),I=Vv(L,2),z=I[0],R=I[1],$=!(!i||!g.length||x),F=b?r.createElement(r.Fragment,null,r.createElement(NN,{prefixCls:T,value:g,onRemove:function(e){var t=g.filter((function(t){return t&&!yT(c,l,t,e,m)}));v(t),n||y()},formatDate:R,maxTagCount:_,disabled:x,removeIcon:M,placeholder:u}),r.createElement("input",{className:"".concat(T,"-multiple-input"),value:g.map(R).join(","),ref:D,readOnly:!0,autoFocus:C,tabIndex:E}),r.createElement(vN,{type:"suffix",icon:a}),$&&r.createElement(yN,{icon:i,onClear:f})):r.createElement(wN,dg({ref:D},z(),{autoFocus:C,tabIndex:E,suffixIcon:a,clearIcon:$&&r.createElement(yN,{icon:i,onClear:f}),showActiveCls:!1}));return r.createElement("div",dg({},A,{className:ug(T,Mg(Mg(Mg(Mg(Mg({},"".concat(T,"-multiple"),b),"".concat(T,"-focused"),s),"".concat(T,"-disabled"),x),"".concat(T,"-invalid"),w),"".concat(T,"-rtl"),O),d),style:h,ref:N,onClick:p,onMouseDown:function(e){var t;e.target!==(null===(t=D.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==k||k(e)}}),o&&r.createElement("div",{className:"".concat(T,"-prefix")},o),F)}var LN=r.forwardRef(AN);function IN(e,t){var n=Vv(kT(e),6),o=n[0],i=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=o,d=u.prefixCls,h=u.styles,p=u.classNames,f=u.order,m=u.defaultValue,g=u.value,v=u.needConfirm,y=u.onChange,b=u.onKeyDown,_=u.disabled,x=u.disabledDate,w=u.minDate,S=u.maxDate,k=u.defaultOpen,C=u.open,E=u.onOpenChange,M=u.locale,P=u.generateConfig,O=u.picker,T=u.showNow,N=u.showToday,D=u.showTime,A=u.mode,L=u.onPanelChange,I=u.onCalendarChange,z=u.onOk,R=u.multiple,$=u.defaultPickerValue,F=u.pickerValue,j=u.onPickerValueChange,B=u.inputReadOnly,H=u.suffixIcon,W=u.removeIcon,V=u.onFocus,Y=u.onBlur,X=u.presets,q=u.components,U=u.cellRender,Z=u.dateRender,G=u.monthCellRender,K=u.onClick,J=ET(t);function Q(e){return null===e?null:R?e:e[0]}var ee=VT(P,M,i),te=Vv(CT(C,k,[_],E),2),ne=te[0],re=te[1],oe=Vv(RT(P,M,s,!1,f,m,g,(function(e,t,n){if(I){var r=Og({},n);delete r.range,I(Q(e),Q(t),r)}}),(function(e){null==z||z(Q(e))})),5),ie=oe[0],ae=oe[1],se=oe[2],le=oe[3],ce=oe[4],ue=se(),de=Vv(OT([_]),4),he=de[0],pe=de[1],fe=de[2],me=de[3],ge=function(e){pe(!0),null==V||V(e,{})},ve=function(e){pe(!1),null==Y||Y(e,{})},ye=Vv(Hx(O,{value:A}),2),be=ye[0],_e=ye[1],xe="date"===be&&D?"datetime":be,we=FT(O,be,T,N),Se=y&&function(e,t){y(Q(e),Q(t))},ke=Vv($T(Og(Og({},o),{},{onChange:Se}),ie,ae,se,le,[],s,he,ne,c),2)[1],Ce=Vv(JO(ue,c),2),Ee=Ce[0],Me=Ce[1],Pe=r.useMemo((function(){return Ee.some((function(e){return e}))}),[Ee]),Oe=Vv(DT(P,M,ue,[be],ne,me,i,!1,$,F,YO(null==D?void 0:D.defaultOpenValue),(function(e,t){if(j){var n=Og(Og({},t),{},{mode:t.mode[0]});delete n.range,j(e[0],n)}}),w,S),2),Te=Oe[0],Ne=Oe[1],De=$x((function(e,t,n){if(_e(t),L&&!1!==n){var r=e||ue[ue.length-1];L(r,t)}})),Ae=function(){ke(se()),re(!1,{force:!0})},Le=Vv(r.useState(null),2),Ie=Le[0],ze=Le[1],Re=Vv(r.useState(null),2),$e=Re[0],Fe=Re[1],je=r.useMemo((function(){var e=[$e].concat(Yv(ue)).filter((function(e){return e}));return R?e:e.slice(0,1)}),[ue,$e,R]),Be=r.useMemo((function(){return!R&&$e?[$e]:ue.filter((function(e){return e}))}),[ue,$e,R]);r.useEffect((function(){ne||Fe(null)}),[ne]);var He=MT(X),We=function(e){var t=R?ee(se(),e):[e];ke(t)&&!R&&re(!1,{force:!0})},Ve=KO(U,Z,G),Ye=r.useMemo((function(){var e=XS(o,!1);return Og(Og({},Ck(o,[].concat(Yv(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:o.multiple})}),[o]),Xe=r.createElement(dN,dg({},Ye,{showNow:we,showTime:D,disabledDate:x,onFocus:function(e){re(!0),ge(e)},onBlur:ve,picker:O,mode:be,internalMode:xe,onPanelChange:De,format:l,value:ue,isInvalid:c,onChange:null,onSelect:function(e){if(fe("panel"),!R||xe===O){var t=R?ee(se(),e):[e];le(t),v||a||i!==xe||Ae()}},pickerValue:Te,defaultOpenValue:null==D?void 0:D.defaultOpenValue,onPickerValueChange:Ne,hoverValue:je,onHover:function(e){Fe(e),ze("cell")},needConfirm:v,onSubmit:Ae,onOk:ce,presets:He,onPresetHover:function(e){Fe(e),ze("preset")},onPresetSubmit:We,onNow:function(e){We(e)},cellRender:Ve})),qe=r.useMemo((function(){return{prefixCls:d,locale:M,generateConfig:P,button:q.button,input:q.input}}),[d,M,P,q.button,q.input]);return Ay((function(){ne&&void 0!==me&&De(null,O,!1)}),[ne,me,O]),Ay((function(){var e=fe();ne||"input"!==e||(re(!1),Ae()),ne||!a||v||"panel"!==e||(re(!0),Ae())}),[ne]),r.createElement(BO.Provider,{value:qe},r.createElement(WO,dg({},GO(o),{popupElement:Xe,popupStyle:h.popup,popupClassName:p.popup,visible:ne,onClose:function(){re(!1)}}),r.createElement(LN,dg({},o,{ref:J,suffixIcon:H,removeIcon:W,activeHelp:!!$e,allHelp:!!$e&&"preset"===Ie,focused:he,onFocus:function(e){fe("input"),re(!0,{inherit:!0}),ge(e)},onBlur:function(e){re(!1),ve(e)},onKeyDown:function(e,t){"Tab"===e.key&&Ae(),null==b||b(e,t)},onSubmit:Ae,value:Be,maskFormat:l,onChange:function(e){le(e)},onInputChange:function(){fe("input")},internalPicker:i,format:s,inputReadOnly:B,disabled:_,open:ne,onOpenChange:re,onClick:function(e){_||J.current.nativeElement.contains(document.activeElement)||J.current.focus(),re(!0),null==K||K(e)},onClear:function(){ke(null),re(!1,{force:!0})},invalid:Pe,onInvalid:function(e){Me(e,0)}}))))}"production"!==process.env.NODE_ENV&&(LN.displayName="SingleSelector");var zN=r.forwardRef(IN);function RN(e){return Xx(e,{inputAffixPadding:e.paddingXXS})}"production"!==process.env.NODE_ENV&&(zN.displayName="RefPicker");const $N=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:f,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:h,activeBorderColor:f,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${v}`,warningActiveShadow:`0 0 0 ${m}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},FN=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),jN=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},FN(Xx(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),BN=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),HN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},BN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),WN=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},jN(e))}),HN(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),HN(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),VN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),YN=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},VN(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),VN(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},jN(e))}})}),XN=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},qN=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),UN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ZN=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},jN(e))}),UN(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),UN(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),GN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),KN=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${My(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${My(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},GN(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),GN(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),JN=(e,t)=>({background:e.colorBgContainer,borderWidth:`0 0 ${My(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,borderRadius:0,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,outline:0,backgroundColor:e.activeBg}}),QN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},JN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),eD=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},JN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:e.colorBorder}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),QN(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),QN(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),tD=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),nD=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${My(t)} ${My(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},rD=e=>({padding:`${My(e.paddingBlockSM)} ${My(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),oD=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${My(e.paddingBlock)} ${My(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},tD(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},nD(e)),"&-sm":Object.assign({},rD(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),iD=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},nD(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},rD(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${My(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${My(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${My(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${My(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${My(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},aD=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dw(e)),oD(e)),WN(e)),ZN(e)),XN(e)),eD(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},sD=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${My(e.inputAffixPadding)}`}}}},lD=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},oD(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),sD(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},cD=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},dw(e)),iD(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},YN(e)),KN(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},uD=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},dD=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};gw(["Input","Shared"],(e=>{const t=Xx(e,RN(e));return[aD(t),lD(t)]}),$N,{resetFont:!1}),gw(["Input","Component"],(e=>{const t=Xx(e,RN(e));return[cD(t),uD(t),dD(t),bE(t)]}),$N,{resetFont:!1});const hD=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:My(t),itemLineHeight:My(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:My(i.itemLineHeight)}}}]};var pD=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Xx(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Xx(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[hD(o,"small"),hD(e),hD(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},UP(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const fD=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:h,cellBgDisabled:p,colorFillSecondary:f}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:My(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${My(s)} ${l} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${t}-disabled ${n}`]:{background:f}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},mD=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:h,borderRadiusLG:p,colorPrimary:f,colorTextHeading:m,colorSplit:g,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:b,motionDurationMid:_,colorIconHover:x,fontWeightStrong:w,cellHeight:S,pickerCellPaddingVertical:k,colorTextDisabled:C,colorText:E,fontSize:M,motionDurationSlow:P,withoutTimeCellHeight:O,pickerQuarterPanelContentHeight:T,borderRadiusSM:N,colorTextLightSolid:D,cellHoverBg:A,timeColumnHeight:L,timeColumnWidth:I,timeCellHeight:z,controlItemBgActive:R,marginXXS:$,pickerDatePanelPaddingHorizontal:F,pickerControlIconMargin:j}=e,B=e.calc(a).mul(7).add(e.calc(F).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:f},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:B},"&-header":{display:"flex",padding:`0 ${My(l)}`,color:m,borderBottom:`${My(d)} ${h} ${g}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:My(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${_}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:My(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:f}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${My(v)} 0`,borderInlineWidth:`${My(v)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:j,insetInlineStart:j,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${My(v)} 0`,borderInlineWidth:`${My(v)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:e.calc(S).add(e.calc(k).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${My(k)} 0`,color:C,cursor:"pointer","&-in-view":{color:E}},fD(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(O).mul(4).equal()},[r]:{padding:`0 ${My(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:T}},"&-decade-panel":{[r]:{padding:`0 ${My(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${My(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${My(l)} ${My(F)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${_}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:A},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:f},[`&${t}-cell-week`]:{color:new F_(D).setA(.5).toHexString()},[r]:{color:D}}},"&-range-hover td:before":{background:R}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${My(l)} ${My(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${My(d)} ${h} ${g}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${P}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:L},"&-column":{flex:"1 0 auto",width:I,margin:`${My(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${_}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${My(z)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${My(d)} ${h} ${g}`},"&-active":{background:new F_(R).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:$,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(I).sub(e.calc($).mul(2)).equal(),height:z,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(I).sub(z).div(2).equal(),color:E,lineHeight:My(z),borderRadius:N,cursor:"pointer",transition:`background ${_}`,"&:hover":{background:A}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:R}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:C,background:"transparent",cursor:"not-allowed"}}}}}}}}};var gD=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${My(r)} ${c} ${u}`,"&-extra":{padding:`0 ${My(o)}`,lineHeight:My(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${My(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:My(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:My(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};var vD=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},WN(e)),eD(e)),ZN(e)),XN(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${My(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};const yD=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${My(i)} ${My(r)} ${My(a)}`}},bD=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},_D=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:h,fontSizeLG:p,controlHeightSM:f,paddingInlineSM:m,paddingXS:g,marginXS:v,colorTextDescription:y,lineWidthBold:b,colorPrimary:_,motionDurationSlow:x,zIndexPopup:w,paddingXXS:S,sizePopupArrow:k,colorBgElevated:C,borderRadiusLG:E,boxShadowSecondary:M,borderRadiusSM:P,colorSplit:O,cellHoverBg:T,presetsWidth:N,presetsMaxWidth:D,boxShadowPopoverArrow:A,fontHeight:L,fontHeightLG:I,lineHeightLG:z}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},dw(e)),yD(e,r,L,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},tD(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},yD(e,h,I,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:z}}),"&-small":Object.assign({},yD(e,f,L,m)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:b,background:_,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${My(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},dw(e)),mD(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:zC},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:LC},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:RC},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:IC},[`${t}-panel > ${t}-time-panel`]:{paddingTop:S},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},sO(e,C,A)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:C,borderRadius:E,boxShadow:M,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:N,maxWidth:D,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${My(i)} ${a} ${O}`,li:Object.assign(Object.assign({},uw),{borderRadius:P,paddingInline:g,paddingBlock:e.calc(f).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:v},"&:hover":{background:T}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${My(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},WC(e,"slide-up"),WC(e,"slide-down"),AC(e,"move-up"),AC(e,"move-down")]};var xD=gw("DatePicker",(e=>{const t=Xx(RN(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[gD(t),_D(t),vD(t),bD(t),pD(t),bE(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},$N(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,s=2*i,l=2*a,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new F_(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new F_(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-l,d=c,h=2*o-a,p=s,f=2*o-0,m=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${h} ${p} A ${r} ${r} 0 0 0 ${f} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}))),wD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},SD=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:wD}))},kD=r.forwardRef(SD);"production"!==process.env.NODE_ENV&&(kD.displayName="CalendarOutlined");var CD=kD,ED={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},MD=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:ED}))},PD=r.forwardRef(MD);"production"!==process.env.NODE_ENV&&(PD.displayName="ClockCircleOutlined");var OD=PD,TD={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},ND=function(e,t){return r.createElement(IS,dg({},e,{ref:t,icon:TD}))},DD=r.forwardRef(ND);"production"!==process.env.NODE_ENV&&(DD.displayName="SwapRightOutlined");var AD=DD;function LD(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function ID(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function zD(e,t){const{allowClear:n=!0}=e,{clearIcon:o,removeIcon:i}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:h,componentName:p}=e;"production"!==process.env.NODE_ENV&&y_(p).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const f=null!=n?n:r.createElement(FS,null),m=e=>null!==t||l||h?r.createElement(r.Fragment,null,!1!==u&&e,l&&d):null;let g=null;if(void 0!==t)g=m(t);else if(a)g=m(r.createElement(nk,{spin:!0}));else{const e=`${c}-suffix`;g=t=>{let{open:n,showSearch:o}=t;return m(n&&o?r.createElement(aO,{className:e}):r.createElement(nO,{className:e}))}}let v=null;v=void 0!==o?o:s?r.createElement(JP,null):null;let y=null;return y=void 0!==i?i:r.createElement(WS,null),{clearIcon:f,suffixIcon:g,itemIcon:v,removeIcon:y}}(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[r.useMemo((()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:o},e)}),[n,o]),i]}const[RD,$D]=["week","WeekPicker"],[FD,jD]=["month","MonthPicker"],[BD,HD]=["year","YearPicker"],[WD,VD]=["quarter","QuarterPicker"],[YD,XD]=["time","TimePicker"];var qD=e=>r.createElement(PE,Object.assign({size:"small",type:"primary"},e));function UD(e){return i((()=>Object.assign({button:qD},e)),[e])}var ZD=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var GD=e=>{const t=h(((t,n)=>{var o;const{prefixCls:i,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:d,disabled:h,bordered:f=!0,placeholder:g,popupClassName:v,dropdownClassName:y,status:b,rootClassName:_,variant:x,picker:w}=t,S=ZD(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),k=r.useRef(null),{getPrefixCls:C,direction:E,getPopupContainer:M,rangePicker:P}=p(xx),O=C("picker",i),{compactSize:T,compactItemClassnames:N}=Fk(O,E),D=C(),[A,L]=qP("rangePicker",x,f),I=JS(O),[z,R,$]=xD(O,I);if("production"!==process.env.NODE_ENV){const e=y_("DatePicker.RangePicker");e.deprecated(!y,"dropdownClassName","popupClassName"),e.deprecated(!("bordered"in t),"bordered","variant")}const[F]=zD(t,O),j=UD(s),B=Rk((e=>{var t;return null!==(t=null!=d?d:T)&&void 0!==t?t:e})),H=r.useContext(Mx),W=null!=h?h:H,V=p(KM),{hasFeedback:Y,status:X,feedbackIcon:q}=V,U=r.createElement(r.Fragment,null,w===YD?r.createElement(OD,null):r.createElement(CD,null),Y&&q);m(n,(()=>k.current));const[Z]=O_("Calendar",S_),G=Object.assign(Object.assign({},Z),t.locale),[K]=lk("DatePicker",null===(o=t.popupStyle)||void 0===o?void 0:o.zIndex);return z(r.createElement(eP,{space:!0},r.createElement(TN,Object.assign({separator:r.createElement("span",{"aria-label":"to",className:`${O}-separator`},r.createElement(AD,null)),disabled:W,ref:k,placement:u,placeholder:ID(G,w,g),suffixIcon:U,prevIcon:r.createElement("span",{className:`${O}-prev-icon`}),nextIcon:r.createElement("span",{className:`${O}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${O}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${O}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:w},S,{className:ug({[`${O}-${B}`]:B,[`${O}-${A}`]:L},YP(O,XP(X,b),Y),R,N,l,null==P?void 0:P.className,$,I,_),style:Object.assign(Object.assign({},null==P?void 0:P.style),c),locale:G.lang,prefixCls:O,getPopupContainer:a||M,generateConfig:e,components:j,direction:E,classNames:{popup:ug(R,v||y,$,I,_)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:K})},allowClear:F}))))}));return"production"!==process.env.NODE_ENV&&(t.displayName="RangePicker"),t},KD=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var JD=e=>{const t=(t,n)=>{const o=n===XD?"timePicker":"datePicker",i=h(((i,a)=>{var s;const{prefixCls:l,getPopupContainer:c,components:u,style:d,className:h,rootClassName:f,size:g,bordered:v,placement:y,placeholder:b,popupClassName:_,dropdownClassName:x,disabled:w,status:S,variant:k,onCalendarChange:C}=i,E=KD(i,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:M,direction:P,getPopupContainer:O,[o]:T}=p(xx),N=M("picker",l),{compactSize:D,compactItemClassnames:A}=Fk(N,P),L=r.useRef(null),[I,z]=qP("datePicker",k,v),R=JS(N),[$,F,j]=xD(N,R);m(a,(()=>L.current));const B=t||i.picker,H=M(),{onSelect:W,multiple:V}=E,Y=W&&"time"===t&&!V;if("production"!==process.env.NODE_ENV){const e=y_(n||"DatePicker");"production"!==process.env.NODE_ENV&&e("quarter"!==t,"deprecated",`DatePicker.${n} is legacy usage. Please use DatePicker[picker='${t}'] directly.`),e.deprecated(!x,"dropdownClassName","popupClassName"),e.deprecated(!("bordered"in i),"bordered","variant"),e.deprecated(!Y,"onSelect","onCalendarChange")}const[X,q]=zD(i,N),U=UD(u),Z=Rk((e=>{var t;return null!==(t=null!=g?g:D)&&void 0!==t?t:e})),G=r.useContext(Mx),K=null!=w?w:G,J=p(KM),{hasFeedback:Q,status:ee,feedbackIcon:te}=J,ne=r.createElement(r.Fragment,null,"time"===B?r.createElement(OD,null):r.createElement(CD,null),Q&&te),[re]=O_("DatePicker",S_),oe=Object.assign(Object.assign({},re),i.locale),[ie]=lk("DatePicker",null===(s=i.popupStyle)||void 0===s?void 0:s.zIndex);return $(r.createElement(eP,{space:!0},r.createElement(zN,Object.assign({ref:L,placeholder:LD(oe,B,b),suffixIcon:ne,placement:y,prevIcon:r.createElement("span",{className:`${N}-prev-icon`}),nextIcon:r.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null==C||C(e,t,n),Y&&W(e)}},{showToday:!0},E,{locale:oe.lang,className:ug({[`${N}-${Z}`]:Z,[`${N}-${I}`]:z},YP(N,XP(ee,S),Q),F,A,null==T?void 0:T.className,h,j,R,f),style:Object.assign(Object.assign({},null==T?void 0:T.style),d),prefixCls:N,getPopupContainer:c||O,generateConfig:e,components:U,direction:P,disabled:K,classNames:{popup:ug(F,j,R,f,_||x)},styles:{popup:Object.assign(Object.assign({},i.popupStyle),{zIndex:ie})},allowClear:X,removeIcon:q}))))}));return"production"!==process.env.NODE_ENV&&n&&(i.displayName=n),i},n=t(),o=t(RD,$D),i=t(FD,jD),a=t(BD,HD),s=t(WD,VD);return{DatePicker:n,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:t(YD,XD),QuarterPicker:s}};var QD=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=JD(e),s=GD(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,"production"!==process.env.NODE_ENV&&(l.displayName="DatePicker"),l};const eA=QD(jO),tA=iP(eA,"popupAlign",void 0,"picker");eA._InternalPanelDoNotUseOrYouWillBeFired=tA;const nA=iP(eA.RangePicker,"popupAlign",void 0,"picker");eA._InternalRangePanelDoNotUseOrYouWillBeFired=nA,eA.generatePicker=QD;var rA=eA;const oA=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Xx(e,{tagFontSize:o,tagLineHeight:My(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},iA=e=>({defaultBg:new F_(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var aA=gw("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},dw(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${My(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(oA(e))),iA),sA=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lA=r.forwardRef(((e,t)=>{const{prefixCls:n,style:o,className:i,checked:a,onChange:s,onClick:l}=e,c=sA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=r.useContext(xx),h=u("tag",n),[p,f,m]=aA(h),g=ug(h,`${h}-checkable`,{[`${h}-checkable-checked`]:a},null==d?void 0:d.className,i,f,m);return p(r.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},o),null==d?void 0:d.style),className:g,onClick:e=>{null==s||s(!a),null==l||l(e)}})))}));var cA=lA;const uA=e=>function(e,t){return Qx.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}));var dA=yw(["Tag","preset"],(e=>{const t=oA(e);return uA(t)}),iA);const hA=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var pA=yw(["Tag","status"],(e=>{const t=oA(e);return[hA(t,"success","Success"),hA(t,"processing","Info"),hA(t,"error","Error"),hA(t,"warning","Warning")]}),iA),fA=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mA=r.forwardRef(((e,t)=>{const{prefixCls:n,className:i,rootClassName:a,style:s,children:l,icon:c,color:u,onClose:d,bordered:h=!0,visible:p}=e,f=fA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:m,direction:g,tag:v}=r.useContext(xx),[y,b]=r.useState(!0),_=Ck(f,["closeIcon","closable"]);if("production"!==process.env.NODE_ENV){y_("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />")}r.useEffect((()=>{void 0!==p&&b(p)}),[p]);const x=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Qx.includes(e):[].concat(Iv(lO),Iv(Qx)).includes(e)}(u),w=function(e){return cO.includes(e)}(u),S=x||w,k=Object.assign(Object.assign({backgroundColor:u&&!S?u:void 0},null==v?void 0:v.style),s),C=m("tag",n),[E,M,P]=aA(C),O=ug(C,null==v?void 0:v.className,{[`${C}-${u}`]:S,[`${C}-has-color`]:u&&!S,[`${C}-hidden`]:!y,[`${C}-rtl`]:"rtl"===g,[`${C}-borderless`]:!h},i,a,M,P),T=e=>{e.stopPropagation(),null==d||d(e),e.defaultPrevented||b(!1)},[,N]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oP;const r=nP(e),i=nP(t),a="boolean"!=typeof r&&!!(null==r?void 0:r.disabled),s=o.useMemo((()=>Object.assign({closeIcon:o.createElement(WS,null)},n)),[n]),l=o.useMemo((()=>!1!==r&&(r?rP(s,i,r):!1!==i&&(i?rP(s,i):!!s.closable&&s))),[r,i,s]);return o.useMemo((()=>{if(!1===l)return[!1,null,a];const{closeIconRender:e}=s,{closeIcon:t}=l;let n=t;if(null!=n){e&&(n=e(t));const r=XS(l,!0);Object.keys(r).length&&(n=o.isValidElement(n)?o.cloneElement(n,r):o.createElement("span",Object.assign({},r),n))}return[!0,n,a]}),[l,s])}(tP(e),tP(v),{closable:!1,closeIconRender:e=>qS(e,r.createElement("span",{className:`${C}-close-icon`,onClick:T},e),(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),T(t)},className:ug(null==e?void 0:e.className,`${C}-close-icon`)})))}),D="function"==typeof f.onClick||l&&"a"===l.type,A=c||null,L=A?r.createElement(r.Fragment,null,A,l&&r.createElement("span",null,l)):l,I=r.createElement("span",Object.assign({},_,{ref:t,className:O,style:k}),L,N,x&&r.createElement(dA,{key:"preset",prefixCls:C}),w&&r.createElement(pA,{key:"status",prefixCls:C}));return E(D?r.createElement(zk,{component:"Tag"},I):I)})),gA=mA;"production"!==process.env.NODE_ENV&&(gA.displayName="Tag"),gA.CheckableTag=cA;var vA=gA,yA="DatePicker-module_datePicker__9BVwE",bA="DatePicker-module_stringValueWrapper__6UTWs",_A="DatePicker-module_stringValue__BAJKp",xA="DatePicker-module_hiddenAntDatePicker__OxApk";const wA=({value:r,onChange:o,renderLabel:a,...l})=>{const[c,d]=u(!1),h=s(null),p=i((()=>fO(r)),[r]),f=p.isValid(),m="string"!=typeof r||f||""===r,g=f?p:null;return t(n,{children:[e(rA,{...l,ref:h,open:c,onOpenChange:d,value:g,onChange:(e,t)=>{o?.(t),d(!1)},className:`${yA} ${l.className||""} ${m?"":xA}`}),!m&&e("div",{className:bA,onClick:()=>{d(!0),setTimeout((()=>{h.current?.focus()}),100)},children:a?a(r):e(vA,{color:"default",className:_A,children:r})})]})};var SA="Directory-module_moreIcon__V7kXf",kA="Directory-module_directory__koFRz",CA="Directory-module_path__lw-xg",EA={container:"Popover-module_container__-idjE",content:"Popover-module_content__TTNdo",arrow:"Popover-module_arrow__ODp-E",bottom:"Popover-module_bottom__Dq-dO",bottomStart:"Popover-module_bottomStart__eZAKA",bottomEnd:"Popover-module_bottomEnd__YAoIK",top:"Popover-module_top__gphPv",topStart:"Popover-module_topStart__UL0EG",topEnd:"Popover-module_topEnd__rr7Hq",right:"Popover-module_right__gx1MF",rightStart:"Popover-module_rightStart__jScCt",rightEnd:"Popover-module_rightEnd__FI5TB",left:"Popover-module_left__0Ng53",leftStart:"Popover-module_leftStart__OsJTm",leftEnd:"Popover-module_leftEnd__lr3aT"};const MA={Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Space:" "};function PA(e,t){l((()=>{const n=n=>{n.key===MA[e]&&t(n)};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)}),[e,t])}var OA="Backdrop-module_container__IkwCT",TA="Backdrop-module_showBackdrop__MMIy-";const NA=({className:t,children:n,showBackdrop:r=!0,...o})=>e("div",{...o,className:`${OA} ${t} ${r?TA:""}`,children:n});var DA=a((({placement:n="bottom",content:r,trigger:o="click",children:i,open:a,containerProps:l,contentProps:h,arrow:p=!1,arrowPlacement:f,portalClassName:g,onClose:v})=>{const y=s(null),b=s(null);m(h?.ref??{current:null},(()=>b.current)),m(l?.ref??{current:null},(()=>y.current));const _=s(null),[x,w]=u(!1),S=void 0!==v,k=S?a:x,C=c(((e,t)=>{S||w(e),!1===e&&v?.(t)}),[S,v]);PA("Escape",(()=>{k&&C(!1)}));const{targetPosition:E,calculatePosition:M}=Q({containerRef:_,targetRef:b,initialPlacement:n});d((()=>{k&&M()}),[k,M]);const P=c((e=>{if(!k||"click"!==o||!e?.target||!b.current)return;const t=e.target,n=document.querySelectorAll("[data-popover-content]");if(Array.from(n).some((e=>e!==b.current&&e.contains(t))))return;const r=document.querySelectorAll("[data-select-dropdown]");if(Array.from(r).some((e=>e.contains(t))))return;const i=Array.from(n).filter((e=>{const t=globalThis.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}));i.at(-1)===b.current&&C(!1,e)}),[k,o,C]);J({targetElements:[b,y],onClickOutside:P});const O={onMouseEnter:()=>{"hover"===o&&C(!0)},onMouseLeave:()=>"hover"===o&&C(!1),onClick:()=>"click"===o&&C(!0)};return t(B,{...l,ref:y,...O,className:`${EA.container} ${l?.className||""}`,children:[e(B,{ref:_,children:i}),k&&t(Wm,{className:g,children:[e(NA,{showBackdrop:!1}),t(B,{...h,ref:b,"data-popover-content":!0,style:{...E,...h?.style??{}},className:`${h?.className} ${EA.content}`,children:[p&&e("div",{className:`${EA.arrow} ${EA[f||{top:"bottom",topStart:"bottomStart",topEnd:"bottomEnd",bottom:"top",bottomStart:"topStart",bottomEnd:"topEnd",left:"right",leftStart:"rightStart",leftEnd:"rightEnd",right:"left",rightStart:"leftStart",rightEnd:"leftEnd"}[n]]}`}),r]})]})]})}));var AA=a((({directory:n,onChangeDirectory:r})=>{const o=n.length>2,i=n.slice(-2),a=n.slice(0,-2);return t(B,{gap:20,className:kA,children:[o&&e(DA,{content:e(B,{direction:"vertical",dimensionX:150,children:a.map(((t,n)=>e(Y,{label:t,onClick:()=>r?.(n)},n)))}),placement:"bottomEnd",trigger:"click",children:e(Za,{name:"dotsHorizontal",className:SA})}),i.map(((n,i)=>{const s=a.length+i;return t(_,{children:[(o||0!==i)&&e(Za,{name:"chevronRight"}),e(V,{size:"large",className:CA,onClick:()=>r?.(s),children:n})]},n)}))]})})),LA="DropList-module_container__OfA7W",IA="DropList-module_deleteButton__zG9N6",zA="DropList-module_active__3guYr",RA="DropList-module_dropListItemContainer__9xeGb",$A="DropList-module_deleteButtonContent__Wev-V",FA="DropList-module_addButtonContent__ISPbG";const jA=({activeIndex:n,index:r,onDelete:o,onClick:i})=>{const[a,c]=u(!1),d=s(null),h=e=>{e?(d.current&&clearTimeout(d.current),c(!0)):c(!1)};return l((()=>()=>{d.current&&clearTimeout(d.current)}),[]),t(B,{alignment:"center",gap:4,direction:"vertical",className:RA,children:[a&&e(_s,{color:"transparent",variant:"filled",keepWidth:!1,onClick:o,className:IA,containerProps:{className:$A},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:"-"}),e(_s,{color:"transparent",variant:"filled",keepWidth:!1,onClick:i,onMouseEnter:()=>{d.current&&clearTimeout(d.current),c(!0)},onMouseLeave:()=>{d.current=setTimeout((()=>{c(!1)}),1e3)},className:n===r&&zA,children:r+1})]})};var BA=a((({active:n=0,length:r=0,maxItems:o,onChange:i,onCreate:a,onDelete:s})=>t(B,{className:LA,dimensionX:"fill",alignment:"leftCenter",children:[new Array(r).fill(0).map(((t,r)=>e(jA,{activeIndex:n,index:r,onDelete:()=>(e=>s?.(e))(r),onClick:()=>(e=>i?.(e))(r)},r))),e(_s,{color:"transparent",variant:"filled",onClick:()=>o!==r&&a?.(),disabled:o===r,containerProps:{className:FA},children:"+"})]}))),HA="InputHeader-module_inputHeaderContainer__ozfOk";const WA=a((({className:t,prefix:n,root:r,suffix:o,...i})=>e(H,{className:`${HA} ${t}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:36,...i,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}},suffix:{children:o?.children,...{dimensionX:"hug",alignment:"rightCenter",...o}}})));var VA="Json-module_jsonContainer__cv8rx";var YA=a((({data:t})=>e(V,{className:VA,children:JSON.stringify(t,null,2)}))),XA="ListRow-module_rowContainer__5LCRb";const qA=a((({children:t,...n})=>e(B,{dimensionX:"hug",...n,className:`${n.className}`,children:t}))),UA=a((({children:t,...n})=>e(B,{ref:n.ref,dimensionX:"fill",alignment:"leftCenter",gap:10,...n,className:`${n.className} ${XA}`,children:t})));UA.Cell=qA;const ZA=y(null);function GA(){const e=x(ZA);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function KA(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}var JA,QA={exports:{}};
64
64
  /* @preserve
65
65
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
66
66
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade