(function(){var Pw={69:(function(oe,w,N){"use strict";oe.exports=N(5369)}),550:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K,p){return K===p||Number.isNaN(K)&&Number.isNaN(p)}w.eq=N}),1167:(function(oe,w,N){"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var K=N(1609),p=N(8279);function ie(U,W){return U===W&&(U!==0||1/U===1/W)||U!==U&&W!==W}var L=typeof Object.is=="function"?Object.is:ie,y=p.useSyncExternalStore,x=K.useRef,C=K.useEffect,E=K.useMemo,D=K.useDebugValue;w.useSyncExternalStoreWithSelector=function(U,W,Z,z,H){var se=x(null);if(se.current===null){var Y={hasValue:!1,value:null};se.current=Y}else Y=se.current;se=E(function(){function Ie(xe){if(!de){if(de=!0,Le=xe,xe=z(xe),H!==void 0&&Y.hasValue){var dt=Y.value;if(H(dt,xe))return re=dt}return re=xe}if(dt=re,L(Le,xe))return dt;var Xe=z(xe);return H!==void 0&&H(dt,Xe)?(Le=xe,dt):(Le=xe,re=Xe)}var de=!1,Le,re,Ve=Z===void 0?null:Z;return[function(){return Ie(W())},Ve===null?void 0:function(){return Ie(Ve())}]},[W,Z,z,H]);var q=y(U,se[0],se[1]);return C(function(){Y.hasValue=!0,Y.value=q},[q]),D(q),q}}),1486:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K){return K==="__proto__"}w.isUnsafeProperty=N}),1557:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(1486),p=N(5579),ie=N(7922),L=N(2570);function y(C,E,D){if(C==null)return D;switch(typeof E){case"string":{if(K.isUnsafeProperty(E))return D;const U=C[E];return U===void 0?p.isDeepKey(E)?y(C,L.toPath(E),D):D:U}case"number":case"symbol":{typeof E=="number"&&(E=ie.toKey(E));const U=C[E];return U===void 0?D:U}default:{if(Array.isArray(E))return x(C,E,D);if(Object.is(E?.valueOf(),-0)?E="-0":E=String(E),K.isUnsafeProperty(E))return D;const U=C[E];return U===void 0?D:U}}}function x(C,E,D){if(E.length===0)return D;let U=C;for(let W=0;W<E.length;W++){if(U==null||K.isUnsafeProperty(E[W]))return D;U=U[E[W]]}return U===void 0?D:U}w.get=y}),1609:(function(oe){"use strict";oe.exports=window.React}),2209:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(5402),p=N(3069),ie=N(6536),L=N(550);function y(x,C,E){return ie.isObject(E)&&(typeof C=="number"&&p.isArrayLike(E)&&K.isIndex(C)&&C<E.length||typeof C=="string"&&C in E)?L.eq(E[C],x):!1}w.isIterateeCall=y}),2327:(function(oe,w,N){oe.exports=N(4140).isPlainObject}),2570:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(4848),p=N(7922);function ie(L){if(Array.isArray(L))return L.map(p.toKey);if(typeof L=="symbol")return[L];L=K.toString(L);const y=[],x=L.length;if(x===0)return y;let C=0,E="",D="",U=!1;for(L.charCodeAt(0)===46&&(y.push(""),C++);C<x;){const W=L[C];D?W==="\\"&&C+1<x?(C++,E+=L[C]):W===D?D="":E+=W:U?W==='"'||W==="'"?D=W:W==="]"?(U=!1,y.push(E),E=""):E+=W:W==="["?(U=!0,E&&(y.push(E),E="")):W==="."?E&&(y.push(E),E=""):E+=W,C++}return E&&y.push(E),y}w.toPath=ie}),2625:(function(oe,w,N){oe.exports=N(9025).range}),2638:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K){return Number.isSafeInteger(K)&&K>=0}w.isLength=N}),3013:(function(oe,w,N){"use strict";oe.exports=N(1167)}),3069:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(2638);function p(ie){return ie!=null&&typeof ie!="function"&&K.isLength(ie.length)}w.isArrayLike=p}),3424:(function(oe,w,N){oe.exports=N(1557).get}),3593:(function(oe,w,N){"use strict";oe.exports=N(3691)}),3691:(function(oe,w,N){"use strict";/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */N(9645);var K=N(1609),p=60103;if(w.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var ie=Symbol.for;p=ie("react.element"),w.Fragment=ie("react.fragment")}var L=K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function C(E,D,U){var W,Z={},z=null,H=null;U!==void 0&&(z=""+U),D.key!==void 0&&(z=""+D.key),D.ref!==void 0&&(H=D.ref);for(W in D)y.call(D,W)&&!x.hasOwnProperty(W)&&(Z[W]=D[W]);if(E&&E.defaultProps)for(W in D=E.defaultProps,D)Z[W]===void 0&&(Z[W]=D[W]);return{$$typeof:p,type:E,key:z,ref:H,props:Z,_owner:L.current}}w.jsx=C,w.jsxs=C}),3730:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(9940);function p(ie){return ie?(ie=K.toNumber(ie),ie===1/0||ie===-1/0?(ie<0?-1:1)*Number.MAX_VALUE:ie===ie?ie:0):ie===0?ie:0}w.toFinite=p}),4066:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K,p=1){const ie=[],L=Math.floor(p),y=(x,C)=>{for(let E=0;E<x.length;E++){const D=x[E];Array.isArray(D)&&C<L?y(D,C+1):ie.push(D)}};return y(K,0),ie}w.flatten=N}),4140:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K){if(typeof K!="object"||K==null)return!1;if(Object.getPrototypeOf(K)===null)return!0;if(Object.prototype.toString.call(K)!=="[object Object]"){const ie=K[Symbol.toStringTag];return ie==null||!Object.getOwnPropertyDescriptor(K,Symbol.toStringTag)?.writable?!1:K.toString()===`[object ${ie}]`}let p=K;for(;Object.getPrototypeOf(p)!==null;)p=Object.getPrototypeOf(p);return Object.getPrototypeOf(K)===p}w.isPlainObject=N}),4147:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(p){return typeof p=="symbol"?1:p===null?2:p===void 0?3:p!==p?4:0}const K=(p,ie,L)=>{if(p!==ie){const y=N(p),x=N(ie);if(y===x&&y===0){if(p<ie)return L==="desc"?1:-1;if(p>ie)return L==="desc"?-1:1}return L==="desc"?x-y:y-x}return 0};w.compareValues=K}),4174:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(4147),p=N(5877),ie=N(2570);function L(y,x,C,E){if(y==null)return[];C=E?void 0:C,Array.isArray(y)||(y=Object.values(y)),Array.isArray(x)||(x=x==null?[null]:[x]),x.length===0&&(x=[null]),Array.isArray(C)||(C=C==null?[]:[C]),C=C.map(z=>String(z));const D=(z,H)=>{let se=z;for(let Y=0;Y<H.length&&se!=null;++Y)se=se[H[Y]];return se},U=(z,H)=>H==null||z==null?H:typeof z=="object"&&"key"in z?Object.hasOwn(H,z.key)?H[z.key]:D(H,z.path):typeof z=="function"?z(H):Array.isArray(z)?D(H,z):typeof H=="object"?H[z]:H,W=x.map(z=>(Array.isArray(z)&&z.length===1&&(z=z[0]),z==null||typeof z=="function"||Array.isArray(z)||p.isKey(z)?z:{key:z,path:ie.toPath(z)}));return y.map(z=>({original:z,criteria:W.map(H=>U(H,z))})).slice().sort((z,H)=>{for(let se=0;se<W.length;se++){const Y=K.compareValues(z.criteria[se],H.criteria[se],C[se]);if(Y!==0)return Y}return 0}).map(z=>z.original)}w.orderBy=L}),4848:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K){if(K==null)return"";if(typeof K=="string")return K;if(Array.isArray(K))return K.map(N).join(",");const p=String(K);return p==="0"&&Object.is(Number(K),-0)?"-0":p}w.toString=N}),5339:(function(oe,w,N){oe.exports=N(5802).sortBy}),5369:(function(oe,w){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var N=typeof Symbol=="function"&&Symbol.for,K=N?Symbol.for("react.element"):60103,p=N?Symbol.for("react.portal"):60106,ie=N?Symbol.for("react.fragment"):60107,L=N?Symbol.for("react.strict_mode"):60108,y=N?Symbol.for("react.profiler"):60114,x=N?Symbol.for("react.provider"):60109,C=N?Symbol.for("react.context"):60110,E=N?Symbol.for("react.async_mode"):60111,D=N?Symbol.for("react.concurrent_mode"):60111,U=N?Symbol.for("react.forward_ref"):60112,W=N?Symbol.for("react.suspense"):60113,Z=N?Symbol.for("react.suspense_list"):60120,z=N?Symbol.for("react.memo"):60115,H=N?Symbol.for("react.lazy"):60116,se=N?Symbol.for("react.block"):60121,Y=N?Symbol.for("react.fundamental"):60117,q=N?Symbol.for("react.responder"):60118,Ie=N?Symbol.for("react.scope"):60119;function de(re){if(typeof re=="object"&&re!==null){var Ve=re.$$typeof;switch(Ve){case K:switch(re=re.type,re){case E:case D:case ie:case y:case L:case W:return re;default:switch(re=re&&re.$$typeof,re){case C:case U:case H:case z:case x:return re;default:return Ve}}case p:return Ve}}}function Le(re){return de(re)===D}w.AsyncMode=E,w.ConcurrentMode=D,w.ContextConsumer=C,w.ContextProvider=x,w.Element=K,w.ForwardRef=U,w.Fragment=ie,w.Lazy=H,w.Memo=z,w.Portal=p,w.Profiler=y,w.StrictMode=L,w.Suspense=W,w.isAsyncMode=function(re){return Le(re)||de(re)===E},w.isConcurrentMode=Le,w.isContextConsumer=function(re){return de(re)===C},w.isContextProvider=function(re){return de(re)===x},w.isElement=function(re){return typeof re=="object"&&re!==null&&re.$$typeof===K},w.isForwardRef=function(re){return de(re)===U},w.isFragment=function(re){return de(re)===ie},w.isLazy=function(re){return de(re)===H},w.isMemo=function(re){return de(re)===z},w.isPortal=function(re){return de(re)===p},w.isProfiler=function(re){return de(re)===y},w.isStrictMode=function(re){return de(re)===L},w.isSuspense=function(re){return de(re)===W},w.isValidElementType=function(re){return typeof re=="string"||typeof re=="function"||re===ie||re===D||re===y||re===L||re===W||re===Z||typeof re=="object"&&re!==null&&(re.$$typeof===H||re.$$typeof===z||re.$$typeof===x||re.$$typeof===C||re.$$typeof===U||re.$$typeof===Y||re.$$typeof===q||re.$$typeof===Ie||re.$$typeof===se)},w.typeOf=de}),5402:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const N=/^(?:0|[1-9]\d*)$/;function K(p,ie=Number.MAX_SAFE_INTEGER){switch(typeof p){case"number":return Number.isInteger(p)&&p>=0&&p<ie;case"symbol":return!1;case"string":return N.test(p)}}w.isIndex=K}),5579:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K){switch(typeof K){case"number":case"symbol":return!1;case"string":return K.includes(".")||K.includes("[")||K.includes("]")}}w.isDeepKey=N}),5802:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(4174),p=N(4066),ie=N(2209);function L(y,...x){const C=x.length;return C>1&&ie.isIterateeCall(y,x[0],x[1])?x=[]:C>2&&ie.isIterateeCall(x[0],x[1],x[2])&&(x=[x[0]]),K.orderBy(y,p.flatten(x),["asc"])}w.sortBy=L}),5877:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(6079),p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ie=/^\w*$/;function L(y,x){return Array.isArray(y)?!1:typeof y=="number"||typeof y=="boolean"||y==null||K.isSymbol(y)?!0:typeof y=="string"&&(ie.test(y)||!p.test(y))||x!=null&&Object.hasOwn(x,y)}w.isKey=L}),6079:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K){return typeof K=="symbol"||K instanceof Symbol}w.isSymbol=N}),6536:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K){return K!==null&&(typeof K=="object"||typeof K=="function")}w.isObject=N}),7179:(function(oe,w,N){"use strict";N(8731)}),7385:(function(oe){"use strict";var w=Object.prototype.hasOwnProperty,N="~";function K(){}Object.create&&(K.prototype=Object.create(null),new K().__proto__||(N=!1));function p(x,C,E){this.fn=x,this.context=C,this.once=E||!1}function ie(x,C,E,D,U){if(typeof E!="function")throw new TypeError("The listener must be a function");var W=new p(E,D||x,U),Z=N?N+C:C;return x._events[Z]?x._events[Z].fn?x._events[Z]=[x._events[Z],W]:x._events[Z].push(W):(x._events[Z]=W,x._eventsCount++),x}function L(x,C){--x._eventsCount===0?x._events=new K:delete x._events[C]}function y(){this._events=new K,this._eventsCount=0}y.prototype.eventNames=function(){var C=[],E,D;if(this._eventsCount===0)return C;for(D in E=this._events)w.call(E,D)&&C.push(N?D.slice(1):D);return Object.getOwnPropertySymbols?C.concat(Object.getOwnPropertySymbols(E)):C},y.prototype.listeners=function(C){var E=N?N+C:C,D=this._events[E];if(!D)return[];if(D.fn)return[D.fn];for(var U=0,W=D.length,Z=new Array(W);U<W;U++)Z[U]=D[U].fn;return Z},y.prototype.listenerCount=function(C){var E=N?N+C:C,D=this._events[E];return D?D.fn?1:D.length:0},y.prototype.emit=function(C,E,D,U,W,Z){var z=N?N+C:C;if(!this._events[z])return!1;var H=this._events[z],se=arguments.length,Y,q;if(H.fn){switch(H.once&&this.removeListener(C,H.fn,void 0,!0),se){case 1:return H.fn.call(H.context),!0;case 2:return H.fn.call(H.context,E),!0;case 3:return H.fn.call(H.context,E,D),!0;case 4:return H.fn.call(H.context,E,D,U),!0;case 5:return H.fn.call(H.context,E,D,U,W),!0;case 6:return H.fn.call(H.context,E,D,U,W,Z),!0}for(q=1,Y=new Array(se-1);q<se;q++)Y[q-1]=arguments[q];H.fn.apply(H.context,Y)}else{var Ie=H.length,de;for(q=0;q<Ie;q++)switch(H[q].once&&this.removeListener(C,H[q].fn,void 0,!0),se){case 1:H[q].fn.call(H[q].context);break;case 2:H[q].fn.call(H[q].context,E);break;case 3:H[q].fn.call(H[q].context,E,D);break;case 4:H[q].fn.call(H[q].context,E,D,U);break;default:if(!Y)for(de=1,Y=new Array(se-1);de<se;de++)Y[de-1]=arguments[de];H[q].fn.apply(H[q].context,Y)}}return!0},y.prototype.on=function(C,E,D){return ie(this,C,E,D,!1)},y.prototype.once=function(C,E,D){return ie(this,C,E,D,!0)},y.prototype.removeListener=function(C,E,D,U){var W=N?N+C:C;if(!this._events[W])return this;if(!E)return L(this,W),this;var Z=this._events[W];if(Z.fn)Z.fn===E&&(!U||Z.once)&&(!D||Z.context===D)&&L(this,W);else{for(var z=0,H=[],se=Z.length;z<se;z++)(Z[z].fn!==E||U&&!Z[z].once||D&&Z[z].context!==D)&&H.push(Z[z]);H.length?this._events[W]=H.length===1?H[0]:H:L(this,W)}return this},y.prototype.removeAllListeners=function(C){var E;return C?(E=N?N+C:C,this._events[E]&&L(this,E)):(this._events=new K,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prefixed=N,y.EventEmitter=y,oe.exports=y}),7621:(function(oe,w,N){"use strict";var K=N(69),p={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},x={};x[K.ForwardRef]=L,x[K.Memo]=y;function C(se){return K.isMemo(se)?y:x[se.$$typeof]||p}var E=Object.defineProperty,D=Object.getOwnPropertyNames,U=Object.getOwnPropertySymbols,W=Object.getOwnPropertyDescriptor,Z=Object.getPrototypeOf,z=Object.prototype;function H(se,Y,q){if(typeof Y!="string"){if(z){var Ie=Z(Y);Ie&&Ie!==z&&H(se,Ie,q)}var de=D(Y);U&&(de=de.concat(U(Y)));for(var Le=C(se),re=C(Y),Ve=0;Ve<de.length;++Ve){var xe=de[Ve];if(!ie[xe]&&!(q&&q[xe])&&!(re&&re[xe])&&!(Le&&Le[xe])){var dt=W(Y,xe);try{E(se,xe,dt)}catch{}}}}return se}oe.exports=H}),7852:(function(oe,w,N){var K;/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */(function(p){"use strict";var ie=1e9,L={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},y=!0,x="[DecimalError] ",C=x+"Invalid argument: ",E=x+"Exponent out of range: ",D=Math.floor,U=Math.pow,W=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Z,z=1e7,H=7,se=9007199254740991,Y=D(se/H),q={};q.absoluteValue=q.abs=function(){var M=new this.constructor(this);return M.s&&(M.s=1),M},q.comparedTo=q.cmp=function(M){var T,F,I,k,R=this;if(M=new R.constructor(M),R.s!==M.s)return R.s||-M.s;if(R.e!==M.e)return R.e>M.e^R.s<0?1:-1;for(I=R.d.length,k=M.d.length,T=0,F=I<k?I:k;T<F;++T)if(R.d[T]!==M.d[T])return R.d[T]>M.d[T]^R.s<0?1:-1;return I===k?0:I>k^R.s<0?1:-1},q.decimalPlaces=q.dp=function(){var M=this,T=M.d.length-1,F=(T-M.e)*H;if(T=M.d[T],T)for(;T%10==0;T/=10)F--;return F<0?0:F},q.dividedBy=q.div=function(M){return re(this,new this.constructor(M))},q.dividedToIntegerBy=q.idiv=function(M){var T=this,F=T.constructor;return Ue(re(T,new F(M),0,1),F.precision)},q.equals=q.eq=function(M){return!this.cmp(M)},q.exponent=function(){return xe(this)},q.greaterThan=q.gt=function(M){return this.cmp(M)>0},q.greaterThanOrEqualTo=q.gte=function(M){return this.cmp(M)>=0},q.isInteger=q.isint=function(){return this.e>this.d.length-2},q.isNegative=q.isneg=function(){return this.s<0},q.isPositive=q.ispos=function(){return this.s>0},q.isZero=function(){return this.s===0},q.lessThan=q.lt=function(M){return this.cmp(M)<0},q.lessThanOrEqualTo=q.lte=function(M){return this.cmp(M)<1},q.logarithm=q.log=function(M){var T,F=this,I=F.constructor,k=I.precision,R=k+5;if(M===void 0)M=new I(10);else if(M=new I(M),M.s<1||M.eq(Z))throw Error(x+"NaN");if(F.s<1)throw Error(x+(F.s?"NaN":"-Infinity"));return F.eq(Z)?new I(0):(y=!1,T=re(pr(F,R),pr(M,R),R),y=!0,Ue(T,k))},q.minus=q.sub=function(M){var T=this;return M=new T.constructor(M),T.s==M.s?xu(T,M):Ie(T,(M.s=-M.s,M))},q.modulo=q.mod=function(M){var T,F=this,I=F.constructor,k=I.precision;if(M=new I(M),!M.s)throw Error(x+"NaN");return F.s?(y=!1,T=re(F,M,0,1).times(M),y=!0,F.minus(T)):Ue(new I(F),k)},q.naturalExponential=q.exp=function(){return Ve(this)},q.naturalLogarithm=q.ln=function(){return pr(this)},q.negated=q.neg=function(){var M=new this.constructor(this);return M.s=-M.s||0,M},q.plus=q.add=function(M){var T=this;return M=new T.constructor(M),T.s==M.s?Ie(T,M):xu(T,(M.s=-M.s,M))},q.precision=q.sd=function(M){var T,F,I,k=this;if(M!==void 0&&M!==!!M&&M!==1&&M!==0)throw Error(C+M);if(T=xe(k)+1,I=k.d.length-1,F=I*H+1,I=k.d[I],I){for(;I%10==0;I/=10)F--;for(I=k.d[0];I>=10;I/=10)F++}return M&&T>F?T:F},q.squareRoot=q.sqrt=function(){var M,T,F,I,k,R,Q,X=this,ne=X.constructor;if(X.s<1){if(!X.s)return new ne(0);throw Error(x+"NaN")}for(M=xe(X),y=!1,k=Math.sqrt(+X),k==0||k==1/0?(T=Le(X.d),(T.length+M)%2==0&&(T+="0"),k=Math.sqrt(T),M=D((M+1)/2)-(M<0||M%2),k==1/0?T="5e"+M:(T=k.toExponential(),T=T.slice(0,T.indexOf("e")+1)+M),I=new ne(T)):I=new ne(k.toString()),F=ne.precision,k=Q=F+3;;)if(R=I,I=R.plus(re(X,R,Q+2)).times(.5),Le(R.d).slice(0,Q)===(T=Le(I.d)).slice(0,Q)){if(T=T.slice(Q-3,Q+1),k==Q&&T=="4999"){if(Ue(R,F+1,0),R.times(R).eq(X)){I=R;break}}else if(T!="9999")break;Q+=4}return y=!0,Ue(I,F)},q.times=q.mul=function(M){var T,F,I,k,R,Q,X,ne,pe,fe=this,he=fe.constructor,gt=fe.d,Oe=(M=new he(M)).d;if(!fe.s||!M.s)return new he(0);for(M.s*=fe.s,F=fe.e+M.e,ne=gt.length,pe=Oe.length,ne<pe&&(R=gt,gt=Oe,Oe=R,Q=ne,ne=pe,pe=Q),R=[],Q=ne+pe,I=Q;I--;)R.push(0);for(I=pe;--I>=0;){for(T=0,k=ne+I;k>I;)X=R[k]+Oe[I]*gt[k-I-1]+T,R[k--]=X%z|0,T=X/z|0;R[k]=(R[k]+T)%z|0}for(;!R[--Q];)R.pop();return T?++F:R.shift(),M.d=R,M.e=F,y?Ue(M,he.precision):M},q.toDecimalPlaces=q.todp=function(M,T){var F=this,I=F.constructor;return F=new I(F),M===void 0?F:(de(M,0,ie),T===void 0?T=I.rounding:de(T,0,8),Ue(F,M+xe(F)+1,T))},q.toExponential=function(M,T){var F,I=this,k=I.constructor;return M===void 0?F=Mr(I,!0):(de(M,0,ie),T===void 0?T=k.rounding:de(T,0,8),I=Ue(new k(I),M+1,T),F=Mr(I,!0,M+1)),F},q.toFixed=function(M,T){var F,I,k=this,R=k.constructor;return M===void 0?Mr(k):(de(M,0,ie),T===void 0?T=R.rounding:de(T,0,8),I=Ue(new R(k),M+xe(k)+1,T),F=Mr(I.abs(),!1,M+xe(I)+1),k.isneg()&&!k.isZero()?"-"+F:F)},q.toInteger=q.toint=function(){var M=this,T=M.constructor;return Ue(new T(M),xe(M)+1,T.rounding)},q.toNumber=function(){return+this},q.toPower=q.pow=function(M){var T,F,I,k,R,Q,X=this,ne=X.constructor,pe=12,fe=+(M=new ne(M));if(!M.s)return new ne(Z);if(X=new ne(X),!X.s){if(M.s<1)throw Error(x+"Infinity");return X}if(X.eq(Z))return X;if(I=ne.precision,M.eq(Z))return Ue(X,I);if(T=M.e,F=M.d.length-1,Q=T>=F,R=X.s,Q){if((F=fe<0?-fe:fe)<=se){for(k=new ne(Z),T=Math.ceil(I/H+4),y=!1;F%2&&(k=k.times(X),_u(k.d,T)),F=D(F/2),F!==0;)X=X.times(X),_u(X.d,T);return y=!0,M.s<0?new ne(Z).div(k):Ue(k,I)}}else if(R<0)throw Error(x+"NaN");return R=R<0&&M.d[Math.max(T,F)]&1?-1:1,X.s=1,y=!1,k=M.times(pr(X,I+pe)),y=!0,k=Ve(k),k.s=R,k},q.toPrecision=function(M,T){var F,I,k=this,R=k.constructor;return M===void 0?(F=xe(k),I=Mr(k,F<=R.toExpNeg||F>=R.toExpPos)):(de(M,1,ie),T===void 0?T=R.rounding:de(T,0,8),k=Ue(new R(k),M,T),F=xe(k),I=Mr(k,M<=F||F<=R.toExpNeg,M)),I},q.toSignificantDigits=q.tosd=function(M,T){var F=this,I=F.constructor;return M===void 0?(M=I.precision,T=I.rounding):(de(M,1,ie),T===void 0?T=I.rounding:de(T,0,8)),Ue(new I(F),M,T)},q.toString=q.valueOf=q.val=q.toJSON=function(){var M=this,T=xe(M),F=M.constructor;return Mr(M,T<=F.toExpNeg||T>=F.toExpPos)};function Ie(M,T){var F,I,k,R,Q,X,ne,pe,fe=M.constructor,he=fe.precision;if(!M.s||!T.s)return T.s||(T=new fe(M)),y?Ue(T,he):T;if(ne=M.d,pe=T.d,Q=M.e,k=T.e,ne=ne.slice(),R=Q-k,R){for(R<0?(I=ne,R=-R,X=pe.length):(I=pe,k=Q,X=ne.length),Q=Math.ceil(he/H),X=Q>X?Q+1:X+1,R>X&&(R=X,I.length=1),I.reverse();R--;)I.push(0);I.reverse()}for(X=ne.length,R=pe.length,X-R<0&&(R=X,I=pe,pe=ne,ne=I),F=0;R;)F=(ne[--R]=ne[R]+pe[R]+F)/z|0,ne[R]%=z;for(F&&(ne.unshift(F),++k),X=ne.length;ne[--X]==0;)ne.pop();return T.d=ne,T.e=k,y?Ue(T,he):T}function de(M,T,F){if(M!==~~M||M<T||M>F)throw Error(C+M)}function Le(M){var T,F,I,k=M.length-1,R="",Q=M[0];if(k>0){for(R+=Q,T=1;T<k;T++)I=M[T]+"",F=H-I.length,F&&(R+=Xe(F)),R+=I;Q=M[T],I=Q+"",F=H-I.length,F&&(R+=Xe(F))}else if(Q===0)return"0";for(;Q%10===0;)Q/=10;return R+Q}var re=(function(){function M(I,k){var R,Q=0,X=I.length;for(I=I.slice();X--;)R=I[X]*k+Q,I[X]=R%z|0,Q=R/z|0;return Q&&I.unshift(Q),I}function T(I,k,R,Q){var X,ne;if(R!=Q)ne=R>Q?1:-1;else for(X=ne=0;X<R;X++)if(I[X]!=k[X]){ne=I[X]>k[X]?1:-1;break}return ne}function F(I,k,R){for(var Q=0;R--;)I[R]-=Q,Q=I[R]<k[R]?1:0,I[R]=Q*z+I[R]-k[R];for(;!I[0]&&I.length>1;)I.shift()}return function(I,k,R,Q){var X,ne,pe,fe,he,gt,Oe,Tr,ke,Ke,Hn,hr,Ii,ji,Kn,Wa,Kt,Ri,Yn=I.constructor,Ha=I.s==k.s?1:-1,Yt=I.d,nt=k.d;if(!I.s)return new Yn(I);if(!k.s)throw Error(x+"Division by zero");for(ne=I.e-k.e,Kt=nt.length,Kn=Yt.length,Oe=new Yn(Ha),Tr=Oe.d=[],pe=0;nt[pe]==(Yt[pe]||0);)++pe;if(nt[pe]>(Yt[pe]||0)&&--ne,R==null?hr=R=Yn.precision:Q?hr=R+(xe(I)-xe(k))+1:hr=R,hr<0)return new Yn(0);if(hr=hr/H+2|0,pe=0,Kt==1)for(fe=0,nt=nt[0],hr++;(pe<Kn||fe)&&hr--;pe++)Ii=fe*z+(Yt[pe]||0),Tr[pe]=Ii/nt|0,fe=Ii%nt|0;else{for(fe=z/(nt[0]+1)|0,fe>1&&(nt=M(nt,fe),Yt=M(Yt,fe),Kt=nt.length,Kn=Yt.length),ji=Kt,ke=Yt.slice(0,Kt),Ke=ke.length;Ke<Kt;)ke[Ke++]=0;Ri=nt.slice(),Ri.unshift(0),Wa=nt[0],nt[1]>=z/2&&++Wa;do fe=0,X=T(nt,ke,Kt,Ke),X<0?(Hn=ke[0],Kt!=Ke&&(Hn=Hn*z+(ke[1]||0)),fe=Hn/Wa|0,fe>1?(fe>=z&&(fe=z-1),he=M(nt,fe),gt=he.length,Ke=ke.length,X=T(he,ke,gt,Ke),X==1&&(fe--,F(he,Kt<gt?Ri:nt,gt))):(fe==0&&(X=fe=1),he=nt.slice()),gt=he.length,gt<Ke&&he.unshift(0),F(ke,he,Ke),X==-1&&(Ke=ke.length,X=T(nt,ke,Kt,Ke),X<1&&(fe++,F(ke,Kt<Ke?Ri:nt,Ke))),Ke=ke.length):X===0&&(fe++,ke=[0]),Tr[pe++]=fe,X&&ke[0]?ke[Ke++]=Yt[ji]||0:(ke=[Yt[ji]],Ke=1);while((ji++<Kn||ke[0]!==void 0)&&hr--)}return Tr[0]||Tr.shift(),Oe.e=ne,Ue(Oe,Q?R+xe(Oe)+1:R)}})();function Ve(M,T){var F,I,k,R,Q,X,ne=0,pe=0,fe=M.constructor,he=fe.precision;if(xe(M)>16)throw Error(E+xe(M));if(!M.s)return new fe(Z);for(T==null?(y=!1,X=he):X=T,Q=new fe(.03125);M.abs().gte(.1);)M=M.times(Q),pe+=5;for(I=Math.log(U(2,pe))/Math.LN10*2+5|0,X+=I,F=k=R=new fe(Z),fe.precision=X;;){if(k=Ue(k.times(M),X),F=F.times(++ne),Q=R.plus(re(k,F,X)),Le(Q.d).slice(0,X)===Le(R.d).slice(0,X)){for(;pe--;)R=Ue(R.times(R),X);return fe.precision=he,T==null?(y=!0,Ue(R,he)):R}R=Q}}function xe(M){for(var T=M.e*H,F=M.d[0];F>=10;F/=10)T++;return T}function dt(M,T,F){if(T>M.LN10.sd())throw y=!0,F&&(M.precision=F),Error(x+"LN10 precision limit exceeded");return Ue(new M(M.LN10),T)}function Xe(M){for(var T="";M--;)T+="0";return T}function pr(M,T){var F,I,k,R,Q,X,ne,pe,fe,he=1,gt=10,Oe=M,Tr=Oe.d,ke=Oe.constructor,Ke=ke.precision;if(Oe.s<1)throw Error(x+(Oe.s?"NaN":"-Infinity"));if(Oe.eq(Z))return new ke(0);if(T==null?(y=!1,pe=Ke):pe=T,Oe.eq(10))return T==null&&(y=!0),dt(ke,pe);if(pe+=gt,ke.precision=pe,F=Le(Tr),I=F.charAt(0),R=xe(Oe),Math.abs(R)<15e14){for(;I<7&&I!=1||I==1&&F.charAt(1)>3;)Oe=Oe.times(M),F=Le(Oe.d),I=F.charAt(0),he++;R=xe(Oe),I>1?(Oe=new ke("0."+F),R++):Oe=new ke(I+"."+F.slice(1))}else return ne=dt(ke,pe+2,Ke).times(R+""),Oe=pr(new ke(I+"."+F.slice(1)),pe-gt).plus(ne),ke.precision=Ke,T==null?(y=!0,Ue(Oe,Ke)):Oe;for(X=Q=Oe=re(Oe.minus(Z),Oe.plus(Z),pe),fe=Ue(Oe.times(Oe),pe),k=3;;){if(Q=Ue(Q.times(fe),pe),ne=X.plus(re(Q,new ke(k),pe)),Le(ne.d).slice(0,pe)===Le(X.d).slice(0,pe))return X=X.times(2),R!==0&&(X=X.plus(dt(ke,pe+2,Ke).times(R+""))),X=re(X,new ke(he),pe),ke.precision=Ke,T==null?(y=!0,Ue(X,Ke)):X;X=ne,k+=2}}function wu(M,T){var F,I,k;for((F=T.indexOf("."))>-1&&(T=T.replace(".","")),(I=T.search(/e/i))>0?(F<0&&(F=I),F+=+T.slice(I+1),T=T.substring(0,I)):F<0&&(F=T.length),I=0;T.charCodeAt(I)===48;)++I;for(k=T.length;T.charCodeAt(k-1)===48;)--k;if(T=T.slice(I,k),T){if(k-=I,F=F-I-1,M.e=D(F/H),M.d=[],I=(F+1)%H,F<0&&(I+=H),I<k){for(I&&M.d.push(+T.slice(0,I)),k-=H;I<k;)M.d.push(+T.slice(I,I+=H));T=T.slice(I),I=H-T.length}else I-=k;for(;I--;)T+="0";if(M.d.push(+T),y&&(M.e>Y||M.e<-Y))throw Error(E+F)}else M.s=0,M.e=0,M.d=[0];return M}function Ue(M,T,F){var I,k,R,Q,X,ne,pe,fe,he=M.d;for(Q=1,R=he[0];R>=10;R/=10)Q++;if(I=T-Q,I<0)I+=H,k=T,pe=he[fe=0];else{if(fe=Math.ceil((I+1)/H),R=he.length,fe>=R)return M;for(pe=R=he[fe],Q=1;R>=10;R/=10)Q++;I%=H,k=I-H+Q}if(F!==void 0&&(R=U(10,Q-k-1),X=pe/R%10|0,ne=T<0||he[fe+1]!==void 0||pe%R,ne=F<4?(X||ne)&&(F==0||F==(M.s<0?3:2)):X>5||X==5&&(F==4||ne||F==6&&(I>0?k>0?pe/U(10,Q-k):0:he[fe-1])%10&1||F==(M.s<0?8:7))),T<1||!he[0])return ne?(R=xe(M),he.length=1,T=T-R-1,he[0]=U(10,(H-T%H)%H),M.e=D(-T/H)||0):(he.length=1,he[0]=M.e=M.s=0),M;if(I==0?(he.length=fe,R=1,fe--):(he.length=fe+1,R=U(10,H-I),he[fe]=k>0?(pe/U(10,Q-k)%U(10,k)|0)*R:0),ne)for(;;)if(fe==0){(he[0]+=R)==z&&(he[0]=1,++M.e);break}else{if(he[fe]+=R,he[fe]!=z)break;he[fe--]=0,R=1}for(I=he.length;he[--I]===0;)he.pop();if(y&&(M.e>Y||M.e<-Y))throw Error(E+xe(M));return M}function xu(M,T){var F,I,k,R,Q,X,ne,pe,fe,he,gt=M.constructor,Oe=gt.precision;if(!M.s||!T.s)return T.s?T.s=-T.s:T=new gt(M),y?Ue(T,Oe):T;if(ne=M.d,he=T.d,I=T.e,pe=M.e,ne=ne.slice(),Q=pe-I,Q){for(fe=Q<0,fe?(F=ne,Q=-Q,X=he.length):(F=he,I=pe,X=ne.length),k=Math.max(Math.ceil(Oe/H),X)+2,Q>k&&(Q=k,F.length=1),F.reverse(),k=Q;k--;)F.push(0);F.reverse()}else{for(k=ne.length,X=he.length,fe=k<X,fe&&(X=k),k=0;k<X;k++)if(ne[k]!=he[k]){fe=ne[k]<he[k];break}Q=0}for(fe&&(F=ne,ne=he,he=F,T.s=-T.s),X=ne.length,k=he.length-X;k>0;--k)ne[X++]=0;for(k=he.length;k>Q;){if(ne[--k]<he[k]){for(R=k;R&&ne[--R]===0;)ne[R]=z-1;--ne[R],ne[k]+=z}ne[k]-=he[k]}for(;ne[--X]===0;)ne.pop();for(;ne[0]===0;ne.shift())--I;return ne[0]?(T.d=ne,T.e=I,y?Ue(T,Oe):T):new gt(0)}function Mr(M,T,F){var I,k=xe(M),R=Le(M.d),Q=R.length;return T?(F&&(I=F-Q)>0?R=R.charAt(0)+"."+R.slice(1)+Xe(I):Q>1&&(R=R.charAt(0)+"."+R.slice(1)),R=R+(k<0?"e":"e+")+k):k<0?(R="0."+Xe(-k-1)+R,F&&(I=F-Q)>0&&(R+=Xe(I))):k>=Q?(R+=Xe(k+1-Q),F&&(I=F-k-1)>0&&(R=R+"."+Xe(I))):((I=k+1)<Q&&(R=R.slice(0,I)+"."+R.slice(I)),F&&(I=F-Q)>0&&(k+1===Q&&(R+="."),R+=Xe(I))),M.s<0?"-"+R:R}function _u(M,T){if(M.length>T)return M.length=T,!0}function Wn(M){var T,F,I;function k(R){var Q=this;if(!(Q instanceof k))return new k(R);if(Q.constructor=k,R instanceof k){Q.s=R.s,Q.e=R.e,Q.d=(R=R.d)?R.slice():R;return}if(typeof R=="number"){if(R*0!==0)throw Error(C+R);if(R>0)Q.s=1;else if(R<0)R=-R,Q.s=-1;else{Q.s=0,Q.e=0,Q.d=[0];return}if(R===~~R&&R<1e7){Q.e=0,Q.d=[R];return}return wu(Q,R.toString())}else if(typeof R!="string")throw Error(C+R);if(R.charCodeAt(0)===45?(R=R.slice(1),Q.s=-1):Q.s=1,W.test(R))wu(Q,R);else throw Error(C+R)}if(k.prototype=q,k.ROUND_UP=0,k.ROUND_DOWN=1,k.ROUND_CEIL=2,k.ROUND_FLOOR=3,k.ROUND_HALF_UP=4,k.ROUND_HALF_DOWN=5,k.ROUND_HALF_EVEN=6,k.ROUND_HALF_CEIL=7,k.ROUND_HALF_FLOOR=8,k.clone=Wn,k.config=k.set=yd,M===void 0&&(M={}),M)for(I=["precision","rounding","toExpNeg","toExpPos","LN10"],T=0;T<I.length;)M.hasOwnProperty(F=I[T++])||(M[F]=this[F]);return k.config(M),k}function yd(M){if(!M||typeof M!="object")throw Error(x+"Object expected");var T,F,I,k=["precision",1,ie,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(T=0;T<k.length;T+=3)if((I=M[F=k[T]])!==void 0)if(D(I)===I&&I>=k[T+1]&&I<=k[T+2])this[F]=I;else throw Error(C+F+": "+I);if((I=M[F="LN10"])!==void 0)if(I==Math.LN10)this[F]=new this(I);else throw Error(C+F+": "+I);return this}L=Wn(L),L.default=L.Decimal=L,Z=new L(1),K=(function(){return L}).call(w,N,w,oe),K!==void 0&&(oe.exports=K)})(this)}),7922:(function(oe,w){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});function N(K){return typeof K=="string"||typeof K=="symbol"?K:Object.is(K?.valueOf?.(),-0)?"-0":String(K)}w.toKey=N}),8140:(function(oe,w,N){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var K=N(1609);function p(Z,z){return Z===z&&(Z!==0||1/Z===1/z)||Z!==Z&&z!==z}var ie=typeof Object.is=="function"?Object.is:p,L=K.useState,y=K.useEffect,x=K.useLayoutEffect,C=K.useDebugValue;function E(Z,z){var H=z(),se=L({inst:{value:H,getSnapshot:z}}),Y=se[0].inst,q=se[1];return x(function(){Y.value=H,Y.getSnapshot=z,D(Y)&&q({inst:Y})},[Z,H,z]),y(function(){return D(Y)&&q({inst:Y}),Z(function(){D(Y)&&q({inst:Y})})},[Z]),C(H),H}function D(Z){var z=Z.getSnapshot;Z=Z.value;try{var H=z();return!ie(Z,H)}catch{return!0}}function U(Z,z){return z()}var W=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?U:E;w.useSyncExternalStore=K.useSyncExternalStore!==void 0?K.useSyncExternalStore:W}),8279:(function(oe,w,N){"use strict";oe.exports=N(8140)}),8623:(function(oe){(function(w,N){oe.exports=N()})(window,(()=>(()=>{"use strict";var w={d:(y,x)=>{for(var C in x)w.o(x,C)&&!w.o(y,C)&&Object.defineProperty(y,C,{enumerable:!0,get:x[C]})},o:(y,x)=>Object.prototype.hasOwnProperty.call(y,x)},N={};let K;w.d(N,{default:()=>L}),window.DoMini===void 0?(K=function(y,x){return arguments[2]!==void 0?this.constructor.call(this,y,x):arguments.length!==1||typeof arguments[0]!="function"?new K(y,x,!0):void(document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?arguments[0].apply(this,[K]):window.addEventListener("DOMContentLoaded",(()=>{arguments[0].apply(this,[K])})))},K.prototype=K.fn={constructor:function(y,x){if(this.length=0,x!==void 0){if(x instanceof K)return x.find(y);if(this.isValidNode(x)||typeof x=="string")return K(x).find(y)}else if(typeof y=="string"&&y!=="")this.push(...this._(y));else{if(y instanceof K)return y;this.isValidNode(y)&&this.push(y)}return this},_:function(y){return y.charAt(0)==="<"?K._fn.createElementsFromHTML(y):[...document.querySelectorAll(y)]},isValidNode:y=>y instanceof Element||y instanceof Document||y instanceof Window,push:Array.prototype.push,pop:Array.prototype.pop,sort:Array.prototype.sort,splice:Array.prototype.splice},K.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],K._fn={},K.version="0.2.8"):K=window.DoMini;const p=K;p.fn.get=function(y){return y===void 0?Array.from(this):this[y]},p.fn.extend=function(){for(let y=1;y<arguments.length;y++)for(let x in arguments[y])arguments[y].hasOwnProperty(x)&&(arguments[0][x]=arguments[y][x]);return arguments[0]},p.fn.forEach=function(y){return this.get().forEach((function(x,C,E){y.apply(x,[x,C,E])})),this},p.fn.each=function(y){return this.get().forEach((function(x,C,E){y.apply(x,[C,x,E])})),this},p.fn.css=function(y,x){for(const C of this)if(arguments.length===1){if(typeof y!="object")return window.getComputedStyle(C)[y];Object.keys(y).forEach((function(E){C.style[E]=y[E]}))}else C.style[y]=x;return this},p.fn.hasClass=function(y){let x=this.get(0);return x!=null&&x.classList.contains(y)},p.fn.addClass=function(y){let x=y;return typeof y=="string"&&(x=y.split(" ")),x=x.filter((function(C){return C.trim()!==""})),x.length>0&&this.forEach((function(C){C.classList.add.apply(C.classList,x)})),this},p.fn.removeClass=function(y){if(y!==void 0){let x=y;typeof y=="string"&&(x=y.split(" ")),x=x.filter((function(C){return C.trim()!==""})),x.length>0&&this.forEach((function(C){C.classList.remove.apply(C.classList,x)}))}else this.forEach((function(x){x.classList.length>0&&x.classList.remove.apply(x.classList,x.classList)}));return this},p.fn.isVisible=function(){let y,x=this.get(0),C=!0;for(;x!==null;){if(y=window.getComputedStyle(x),y.display==="none"||y.visibility==="hidden"||parseInt(y.opacity)===0){C=!1;break}x=x.parentElement}return C},p.fn.val=function(y){let x;if(arguments.length===1){for(const C of this)if(C.type==="select-multiple"){y=typeof y=="string"?y.split(","):y;for(let E,D=0,U=C.options.length;D<U;D++)E=C.options[D],E.selected=y.indexOf(E.value)!==-1}else C.value=y;x=this}else{let C=this.get(0);C!=null&&(x=C.type==="select-multiple"?Array.prototype.map.call(C.selectedOptions,(function(E){return E.value})):C.value)}return x},p.fn.attr=function(y,x){let C;for(const E of this)if(arguments.length===2)E.setAttribute(y,x),C=this;else{if(typeof y!="object"){C=E.getAttribute(y);break}Object.keys(y).forEach((function(D){E.setAttribute(D,y[D])}))}return C},p.fn.removeAttr=function(y){for(const x of this)x.removeAttribute(y);return this},p.fn.prop=function(y,x){let C;for(const E of this){if(arguments.length!==2){C=E[y]!==void 0?E[y]:null;break}E[y]=x}return arguments.length===2?this:C},p.fn.data=function(y,x){const C=y.replace(/-([a-z])/g,(function(E){return E[1].toUpperCase()}));if(arguments.length===2){for(const E of this)E!=null&&(E.dataset[C]=x);return this}{let E=this.get(0);return E!=null&&E.dataset[C]!==void 0?E.dataset[C]:""}},p.fn.html=function(y){if(arguments.length===1){for(const x of this)x.innerHTML=y;return this}{let x=this.get(0);return x==null?"":x.innerHTML}},p.fn.text=function(y){if(arguments.length===1){for(const x of this)x.textContent=y;return this}{let x=this.get(0);return x==null?"":x.textContent}},p.fn.position=function(){let y=this.get(0);return y!=null?{top:y.offsetTop,left:y.offsetLeft}:{top:0,left:0}},p.fn.offset=function(){let y=this.get(0);return y!=null?p._fn.hasFixedParent(y)?y.getBoundingClientRect():p._fn.absolutePosition(y):{top:0,left:0}},p.fn.outerWidth=function(y){y=y||!1;let x=this.get(0);return x!=null?y?parseInt(x.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(x.offsetWidth):0},p.fn.outerHeight=function(y){y=y||!1;let x=this.get(0);return x!=null?y?parseInt(x.offsetHeight)+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(x.offsetHeight):0},p.fn.noPaddingHeight=function(y){return y=y||!1,this.length>0?y?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height")):0},p.fn.noPaddingWidth=function(y){return y=y||!1,this.length>0?y?parseInt(this.css("width"))+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(this.css("width")):0},p.fn.innerWidth=function(){let y=this.get(0);if(y!=null){let x=window.getComputedStyle(y);return this.outerWidth()-parseFloat(x.borderLeftWidth)-parseFloat(x.borderRightWidth)}return 0},p.fn.innerHeight=function(){let y=this.get(0);if(y!=null){let x=window.getComputedStyle(y);return this.outerHeight()-parseFloat(x.borderTopWidth)-parseFloat(x.borderBottomtWidth)}return 0},p.fn.width=function(){return this.outerWidth()},p.fn.height=function(){return this.outerHeight()},p.fn.on=function(){let y=arguments,x=function(E,D){let U;if(D.type==="mouseenter"||D.type==="mouseleave"||D.type==="mouseover"){let W=document.elementFromPoint(D.clientX,D.clientY);if(!W.matches(E[1]))for(;(W=W.parentElement)&&!W.matches(E[1]););W!=null&&(U=p(W))}else U=p(D.target).closest(E[1]);if(U!=null&&U.closest(this).length>0){let W=[];if(W.push(D),E[4]!==void 0)for(let Z=4;Z<E.length;Z++)W.push(E[Z]);E[2].apply(U.get(0),W)}},C=y[0].split(" ");for(let E=0;E<C.length;E++){let D=C[E];if(typeof y[1]=="string")this.forEach((function(U){if(!p._fn.hasEventListener(U,D,y[2])){let W=x.bind(U,y);U.addEventListener(D,W,y[3]),U._domini_events=U._domini_events===void 0?[]:U._domini_events,U._domini_events.push({type:D,selector:y[1],func:W,trigger:y[2],args:y[3]})}}));else for(let U=0;U<C.length;U++){let W=C[U];this.forEach((function(Z){p._fn.hasEventListener(Z,W,y[1])||(Z.addEventListener(W,y[1],y[2]),Z._domini_events=Z._domini_events===void 0?[]:Z._domini_events,Z._domini_events.push({type:W,func:y[1],trigger:y[1],args:y[2]}))}))}}return this},p.fn.off=function(y,x){return this.forEach((function(C){if(C._domini_events!==void 0&&C._domini_events.length>0)if(y===void 0){let E;for(;E=C._domini_events.pop();)C.removeEventListener(E.type,E.func,E.args);C._domini_events=[]}else y.split(" ").forEach((function(E){let D,U=[];for(;D=C._domini_events.pop();)D.type!==E||x!==void 0&&D.trigger!==x?U.push(D):C.removeEventListener(E,D.func,D.args);C._domini_events=U}))})),this},p.fn.offForced=function(){let y=this;return this.forEach((function(x,C){let E=x.cloneNode(!0);x.parentNode.replaceChild(E,x),y[C]=E})),this},p.fn.trigger=function(y,x,C,E){return C=C||!1,E=E||!1,this.forEach((function(D){let U=!1;if(E&&typeof jQuery<"u"&&jQuery._data!==void 0&&jQuery._data(D,"events")!==void 0&&jQuery._data(D,"events")[y]!==void 0&&(jQuery(D).trigger(y,x),U=!0),!U&&C){let W=new Event(y);W.detail=x,D.dispatchEvent(W)}if(D._domini_events!==void 0)D._domini_events.forEach((function(W){if(W.type===y){let Z=new Event(y);W.trigger.apply(D,[Z].concat(x))}}));else{let W=!1,Z=D;for(;Z=Z.parentElement,Z!=null&&(Z._domini_events!==void 0&&Z._domini_events.forEach((function(z){if(z.selector!==void 0){let H=p(Z).find(z.selector);if(H.length>0&&H.get().indexOf(D)>=0&&z.type===y){let se=new Event(y);z.trigger.apply(D,[se].concat(x)),W=!0}}})),!W););}})),this},p.fn.clear=function(){for(const y of this)delete y._domini_events;return this},p.fn.clone=function(){let y=[];for(const x of this)y.push(x.cloneNode(!0));return p().add(y)},p.fn.detach=function(y){let x=this,C=[];y!==void 0&&(x=this.find(y));for(const E of x)E.parentElement!=null&&C.push(E.parentElement.removeChild(E));return p().add(C)},p.fn.remove=function(y){return this.detach(y).off().clear()},p.fn.prepend=function(y){if((y=p._fn.elementArrayFromAny(y)).length>0)for(const x of this)for(const C of y)x.insertBefore(C,x.children[0]);return this},p.fn.append=function(y){if((y=p._fn.elementArrayFromAny(y)).length>0)for(const x of this)for(const C of y)x.appendChild(C);return this},p.fn.is=function(y){let x=!1;for(const C of this)if(C.matches(y)){x=!0;break}return x},p.fn.parent=function(y){let x=[];for(const C of this){let E=C.parentElement;typeof y=="string"&&(E==null||E.matches(y)||(E=null)),x.push(E)}return p().add(x)},p.fn.copy=function(y,x){let C,E,D;if(typeof y!="object"||y===null)return C=y,C;for(E in C=new y.constructor,y)y.hasOwnProperty(E)&&(D=typeof y[E],x&&D==="object"&&y[E]!==null?C[E]=this.copy(y[E]):C[E]=y[E]);return C},p.fn.first=function(){return p(this[0])},p.fn.last=function(){return p(this[this.length-1])},p.fn.prev=function(y){let x=[];for(const C of this){let E;if(typeof y=="string")for(E=C.previousElementSibling;E!=null;){if(E.matches(y)){x.push(E);break}E=E.previousElementSibling}else x.push(C.previousElementSibling)}return p(null).add(x)},p.fn.next=function(y){let x=[];for(const C of this){let E;if(typeof y=="string")for(E=C.nextElementSibling;E!=null;){if(E.matches(y)){x.includes(E)||x.push(E);break}E=E.nextElementSibling}else x.push(C.nextElementSibling)}return p(null).add(x)},p.fn.closest=function(y){let x=[];for(let C of this)if(typeof y=="string"&&y!==""){for(;!C.matches(y)&&(C=C.parentElement););x.includes(C)||x.push(C)}else{if((y=y instanceof p?y.get(0):y)instanceof Element)for(;C!==y&&(C=C.parentElement););else C=null;x.includes(C)||x.push(C)}return p().add(x)},p.fn.add=function(y){let x=p._fn.elementArrayFromAny(y);for(const C of x)Array.from(this).includes(C)||this.push(C);return this},p.fn.find=function(y){const x=new p;if(typeof y=="string"){let C=[];this.get().forEach((function(E){const D=E.querySelectorAll?.(y)??[];C=C.concat(Array.from(D))})),C.length>0&&x.add(C)}return x},p._fn.bodyTransform=function(){let y=0,x=0;if(typeof WebKitCSSMatrix<"u"){let C=window.getComputedStyle(document.body);if(C.transform!==void 0){let E=new WebKitCSSMatrix(C.transform);E.m41!=="undefined"&&(y=E.m41),E.m42!=="undefined"&&(x=E.m42)}}return{x:y,y:x}},p._fn.bodyTransformY=function(){return this.bodyTransform().y},p._fn.bodyTransformX=function(){return this.bodyTransform().x},p._fn.hasFixedParent=function(y){if(p._fn.bodyTransformY()!=0)return!1;do if(window.getComputedStyle(y).position=="fixed")return!0;while(y=y.parentElement);return!1},p._fn.hasEventListener=function(y,x,C){if(y._domini_events===void 0)return!1;for(let E=0;E<y._domini_events.length;E++)if(y._domini_events[E].trigger===C&&y._domini_events[E].type===x)return!0;return!1},p._fn.allDescendants=function(y){let x=[],C=this;return Array.isArray(y)||(y=[y]),y.forEach((function(E){for(let D=0;D<E.childNodes.length;D++){let U=E.childNodes[D];x.push(U),x=x.concat(C.allDescendants(U))}})),x},p._fn.createElementsFromHTML=function(y){let x=document.createElement("template");return x.innerHTML=y.replace(/(\r\n|\n|\r)/gm,""),[...x.content.childNodes]},p._fn.elementArrayFromAny=function(y){if(typeof y=="string")y=p(y).get();else if(y instanceof p)y=y.get();else if(y instanceof Element)y=[y];else{if(!(y instanceof Array))return[];y=y.filter((x=>x instanceof Element))}return y},p._fn.ElementArrayFromAny=p._fn.elementArrayFromAny,p._fn.absolutePosition=function(y){if(!y.getClientRects().length)return{top:0,left:0};let x=y.getBoundingClientRect(),C=y.ownerDocument.defaultView;return{top:x.top+C.pageYOffset,left:x.left+C.pageXOffset}},p._fn.plugin=function(y,x){p.fn[y]=function(C){return C!==void 0&&x[C]?x[C].apply(this,Array.prototype.slice.call(arguments,1)):this.forEach((function(E){E["domini_"+y]=Object.create(x).init(C,E)}))}},document.dispatchEvent(new Event("domini-dom-core-loaded"));const ie=p;p.fn.animate=function(y,x,C){x=x||200,C=C||"easeInOutQuad";for(const E of this){let D,U,W,Z,z,H=0,se=60,Y={},q={};if(W=this.prop("_domini_animations"),W=W??[],y===!1)W.forEach((function(Ie){clearInterval(Ie)}));else{let Ie=function(){H++,H>D?clearInterval(Z):(U=z(H/D),Object.keys(q).forEach((function(de){de.indexOf("scroll")>-1?E[de]=Y[de]+q[de]*U:E.style[de]=Y[de]+q[de]*U+"px"})))};z=p.fn.animate.easing[C]??p.fn.animate.easing.easeInOutQuad,Object.keys(y).forEach((function(de){de.indexOf("scroll")>-1?(Y[de]=E[de],q[de]=y[de]-Y[de]):(Y[de]=parseInt(window.getComputedStyle(E)[de]),q[de]=y[de]-Y[de])})),D=x/1e3*se,Z=setInterval(Ie,1e3/se),W.push(Z),this.prop("_domini_animations",W)}}return this},p.fn.animate.easing={linear:function(y){return y},easeInOutQuad:function(y){return y<.5?2*y*y:1-Math.pow(-2*y+2,2)/2},easeOutQuad:function(y){return 1-(1-y)*(1-y)}},p.fn.unhighlight=function(y){let x={className:"highlight",element:"span"};return p.fn.extend(x,y),this.find(x.element+"."+x.className).forEach((function(){let C=this.parentNode;C.replaceChild(this.firstChild,this),C.normalize()}))},p.fn.highlight=function(y,x){this.defaults={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:".excludeFromHighlight"};const C=p,E={...this.defaults,...x};if(y.constructor===String&&(y=[y]),(y=y.filter((function(z){return z!==""}))).forEach((function(z,H,se){se[H]=z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")})),y.length===0)return this;let D=E.caseSensitive?"":"i",U="("+y.join("|")+")";E.wordsOnly&&(U="(?:,|^|\\s)"+U+"(?:,|$|\\s)");let W=new RegExp(U,D);function Z(z,H,se,Y,q){if(q=q===""?C.fn.highlight.defaults:q,z.nodeType===3){if(!C(z.parentNode).is(q)){let Ie=z.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(H);if(Ie){let de,Le=document.createElement(se||"span");Le.className=Y||"highlight",de=/\.|,|\s/.test(Ie[0].charAt(0))?Ie.index+1:Ie.index;let re=z.splitText(de);re.splitText(Ie[1].length);let Ve=re.cloneNode(!0);return Le.appendChild(Ve),re.parentNode.replaceChild(Le,re),1}}}else if(z.nodeType===1&&z.childNodes&&!/(script|style)/i.test(z.tagName)&&!C(z).closest(q).length>0&&(z.tagName!==se.toUpperCase()||z.className!==Y))for(let Ie=0;Ie<z.childNodes.length;Ie++)Ie+=Z(z.childNodes[Ie],H,se,Y,q);return 0}return this.forEach((function(z){Z(z,W,E.element,E.className,E.excludeParents)}))},p.fn.serialize=function(){let y=this.get(0);if(!y||y.nodeName!=="FORM")return"";let x,C,E=[];for(x=y.elements.length-1;x>=0;x-=1)if(y.elements[x].name!=="")switch(y.elements[x].nodeName){case"INPUT":switch(y.elements[x].type){case"checkbox":case"radio":y.elements[x].checked&&E.push(y.elements[x].name+"="+encodeURIComponent(y.elements[x].value));break;case"file":break;default:E.push(y.elements[x].name+"="+encodeURIComponent(y.elements[x].value))}break;case"TEXTAREA":E.push(y.elements[x].name+"="+encodeURIComponent(y.elements[x].value));break;case"SELECT":switch(y.elements[x].type){case"select-one":E.push(y.elements[x].name+"="+encodeURIComponent(y.elements[x].value));break;case"select-multiple":for(C=y.elements[x].options.length-1;C>=0;C-=1)y.elements[x].options[C].selected&&E.push(y.elements[x].name+"="+encodeURIComponent(y.elements[x].options[C].value))}break;case"BUTTON":switch(y.elements[x].type){case"reset":case"submit":case"button":E.push(y.elements[x].name+"="+encodeURIComponent(y.elements[x].value))}}return E.join("&")},p.fn.serializeObject=function(y,x){let C,E=[];for(C in y)if(y.hasOwnProperty(C)){let D=x?x+"["+C+"]":C,U=y[C];E.push(U!==null&&typeof U=="object"?p.fn.serializeObject(U,D):encodeURIComponent(D)+"="+encodeURIComponent(U))}return E.join("&")},p.fn.inViewPort=function(y,x){let C,E,D=this.get(0);if(D==null)return!1;y=y===void 0?0:y,x=x===void 0?window:typeof x=="string"?document.querySelector(x):x;let U=D.getBoundingClientRect(),W=U.top,Z=U.bottom,z=U.left,H=U.right,se=!1;if(x==null&&(x=window),x===window)C=window.innerWidth||0,E=window.innerHeight||0;else{C=x.clientWidth,E=x.clientHeight;let Y=x.getBoundingClientRect();W-=Y.top,Z-=Y.top,z-=Y.left,H-=Y.left}return y=~~Math.round(parseFloat(y)),H<=0||z>=C||(se=y>0?W>=y&&Z<E-y:(Z>0&&W<=E-y)|(W<=0&&Z>y)),se},p.fn.ajax=function(y){if((y=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},y)).cors==="cors"){let x=new XMLHttpRequest;return x.onreadystatechange=function(){y.success!=null&&this.readyState===4&&this.status>=200&&this.status<400&&y.success(this.responseText),y.fail!=null&&this.readyState===4&&this.status>=400&&y.fail(this)},x.open(y.method.toUpperCase(),y.url,!0),x.setRequestHeader("Content-type",y.contentType),x.setRequestHeader("Accept",y.accept),x.send(this.serializeObject(y.data)),x}{let x="ajax_cb_"+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(E){let D=16*Math.random()|0;return(E==="x"?D:3&D|8).toString(16)})).replaceAll("-","");p.fn[x]=function(){y.success.apply(this,arguments),delete p.fn[y.data.fn]},y.data.callback="DoMini.fn."+x,y.data.fn=x;let C=document.createElement("script");C.type="text/javascript",C.src=y.url+"?"+this.serializeObject(y.data),C.onload=function(){this.remove()},document.body.appendChild(C)}};const L=ie;return N.default})()))}),8658:(function(oe,w){"use strict";var N;/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var K=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),ie=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),z=Symbol.for("react.view_transition"),H=Symbol.for("react.client.reference");function se(Y){if(typeof Y=="object"&&Y!==null){var q=Y.$$typeof;switch(q){case K:switch(Y=Y.type,Y){case ie:case y:case L:case D:case U:case z:return Y;default:switch(Y=Y&&Y.$$typeof,Y){case C:case E:case Z:case W:return Y;case x:return Y;default:return q}}case p:return q}}}N=x,N=C,N=K,N=E,N=ie,N=Z,N=W,N=p,N=y,N=L,N=D,N=U,N=function(Y){return se(Y)===x},N=function(Y){return se(Y)===C},N=function(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===K},N=function(Y){return se(Y)===E},w.zv=function(Y){return se(Y)===ie},N=function(Y){return se(Y)===Z},N=function(Y){return se(Y)===W},N=function(Y){return se(Y)===p},N=function(Y){return se(Y)===y},N=function(Y){return se(Y)===L},N=function(Y){return se(Y)===D},N=function(Y){return se(Y)===U},N=function(Y){return typeof Y=="string"||typeof Y=="function"||Y===ie||Y===y||Y===L||Y===D||Y===U||typeof Y=="object"&&Y!==null&&(Y.$$typeof===Z||Y.$$typeof===W||Y.$$typeof===C||Y.$$typeof===x||Y.$$typeof===E||Y.$$typeof===H||Y.getModuleId!==void 0)},N=se}),8731:(function(oe,w,N){"use strict";var K;/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var p=N(1609);function ie(U,W){return U===W&&(U!==0||1/U===1/W)||U!==U&&W!==W}var L=typeof Object.is=="function"?Object.is:ie,y=p.useSyncExternalStore,x=p.useRef,C=p.useEffect,E=p.useMemo,D=p.useDebugValue;K=function(U,W,Z,z,H){var se=x(null);if(se.current===null){var Y={hasValue:!1,value:null};se.current=Y}else Y=se.current;se=E(function(){function Ie(xe){if(!de){if(de=!0,Le=xe,xe=z(xe),H!==void 0&&Y.hasValue){var dt=Y.value;if(H(dt,xe))return re=dt}return re=xe}if(dt=re,L(Le,xe))return dt;var Xe=z(xe);return H!==void 0&&H(dt,Xe)?(Le=xe,dt):(Le=xe,re=Xe)}var de=!1,Le,re,Ve=Z===void 0?null:Z;return[function(){return Ie(W())},Ve===null?void 0:function(){return Ie(Ve())}]},[W,Z,z,H]);var q=y(U,se[0],se[1]);return C(function(){Y.hasValue=!0,Y.value=q},[q]),D(q),q}}),9025:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(2209),p=N(3730);function ie(L,y,x){x&&typeof x!="number"&&K.isIterateeCall(L,y,x)&&(y=x=void 0),L=p.toFinite(L),y===void 0?(y=L,L=0):y=p.toFinite(y),x=x===void 0?L<y?1:-1:p.toFinite(x);const C=Math.max(Math.ceil((y-L)/(x||1)),0),E=new Array(C);for(let D=0;D<C;D++)E[D]=L,L+=x;return E}w.range=ie}),9645:(function(oe){"use strict";/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var w=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;function p(L){if(L==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(L)}function ie(){try{if(!Object.assign)return!1;var L=new String("abc");if(L[5]="de",Object.getOwnPropertyNames(L)[0]==="5")return!1;for(var y={},x=0;x<10;x++)y["_"+String.fromCharCode(x)]=x;var C=Object.getOwnPropertyNames(y).map(function(D){return y[D]});if(C.join("")!=="0123456789")return!1;var E={};return"abcdefghijklmnopqrst".split("").forEach(function(D){E[D]=D}),Object.keys(Object.assign({},E)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}oe.exports=ie()?Object.assign:function(L,y){for(var x,C=p(L),E,D=1;D<arguments.length;D++){x=Object(arguments[D]);for(var U in x)N.call(x,U)&&(C[U]=x[U]);if(w){E=w(x);for(var W=0;W<E.length;W++)K.call(x,E[W])&&(C[E[W]]=x[E[W]])}}return C}}),9940:(function(oe,w,N){"use strict";Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});const K=N(6079);function p(ie){return K.isSymbol(ie)?NaN:Number(ie)}w.toNumber=p})},gd={};function De(oe){var w=gd[oe];if(w!==void 0)return w.exports;var N=gd[oe]={exports:{}};return Pw[oe].call(N.exports,N,N.exports,De),N.exports}(function(){De.n=function(oe){var w=oe&&oe.__esModule?function(){return oe.default}:function(){return oe};return De.d(w,{a:w}),w}})(),(function(){De.d=function(oe,w){for(var N in w)De.o(w,N)&&!De.o(oe,N)&&Object.defineProperty(oe,N,{enumerable:!0,get:w[N]})}})(),(function(){De.o=function(oe,w){return Object.prototype.hasOwnProperty.call(oe,w)}})(),(function(){De.r=function(oe){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(oe,"__esModule",{value:!0})}})();var eL={};(function(){"use strict";var oe={};De.r(oe),De.d(oe,{scaleBand:function(){return Cc},scaleDiverging:function(){return mg},scaleDivergingLog:function(){return gg},scaleDivergingPow:function(){return af},scaleDivergingSqrt:function(){return sj},scaleDivergingSymlog:function(){return yg},scaleIdentity:function(){return P0},scaleImplicit:function(){return Sc},scaleLinear:function(){return A0},scaleLog:function(){return R0},scaleOrdinal:function(){return Ec},scalePoint:function(){return LM},scalePow:function(){return Uc},scaleQuantile:function(){return W0},scaleQuantize:function(){return H0},scaleRadial:function(){return $0},scaleSequential:function(){return dg},scaleSequentialLog:function(){return pg},scaleSequentialPow:function(){return nf},scaleSequentialQuantile:function(){return vg},scaleSequentialSqrt:function(){return aj},scaleSequentialSymlog:function(){return hg},scaleSqrt:function(){return NT},scaleSymlog:function(){return N0},scaleThreshold:function(){return K0},scaleTime:function(){return nj},scaleUtc:function(){return ij},tickFormat:function(){return O0}});var w=De(3593),N=window.ReactDOM,K=De.n(N),p=De(1609),ie=De.n(p),L=window.wp.i18n,y=window.wp.apiFetch,x=De.n(y);function C(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=C(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function E(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=C(e))&&(n&&(n+=" "),n+=t);return n}var D=E;const U=({children:e,onOverlayClick:t,isOpen:r=!1,...n})=>(0,w.jsx)("div",{className:D("wdo:modal",r&&"open"),onClick:t,children:(0,w.jsx)("div",{className:"wdo:modal-content",onClick:i=>i.stopPropagation(),...n,children:e})});var W=ie().memo(U);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const se=e=>{const t=H(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Y={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ie=(0,p.createContext)({});function de({children:e,size:t,color:r,strokeWidth:n,absoluteStrokeWidth:i,className:a}){const o=useMemo(()=>({size:t,color:r,strokeWidth:n,absoluteStrokeWidth:i,className:a}),[t,r,n,i,a]);return createElement(Ie.Provider,{value:o},e)}const Le=()=>(0,p.useContext)(Ie);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const re=(0,p.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},u)=>{const{size:l=24,strokeWidth:c=2,absoluteStrokeWidth:f=!1,color:d="currentColor",className:h=""}=Le()??{},v=n??f?Number(r??c)*24/Number(t??l):r??c;return(0,p.createElement)("svg",{ref:u,...Y,width:t??l??Y.width,height:t??l??Y.height,stroke:e??d,strokeWidth:v,className:Z("lucide",h,i),...!a&&!q(s)&&{"aria-hidden":"true"},...s},[...o.map(([g,m])=>(0,p.createElement)(g,m)),...Array.isArray(a)?a:[a]])});/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ve=(e,t)=>{const r=(0,p.forwardRef)(({className:n,...i},a)=>(0,p.createElement)(re,{ref:a,iconNode:t,className:Z(`lucide-${z(se(e))}`,`lucide-${e}`,n),...i}));return r.displayName=se(e),r};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dt=Ve("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Xe=({className:e="",children:t,isLoading:r,...n})=>(0,w.jsx)("button",{className:`wdo:button ${e}`,...n,...r?{disabled:!0}:{},children:r?(0,w.jsx)(dt,{className:"wdo:animate-spin wdo:w-4 wdo:h-4"}):t}),pr=({className:e="",children:t,...r})=>(0,w.jsx)(Xe,{className:`wdo:button-primary ${e}`,...r,children:t}),wu=({className:e="",children:t,...r})=>jsx(Xe,{className:`wdo:button-danger ${e}`,...r,children:t}),Ue=({className:e="",children:t,...r})=>jsx(Xe,{className:`wdo:button-ghost ${e}`,...r,children:t});/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mr=Ve("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var Wn=({className:e,children:t})=>(0,w.jsxs)("div",{className:`wdo:flex wdo:gap-3 wdo:items-center wdo:p-3 wdo:rounded-sm wdo:border wdo:border-amber-500/30 wdo:bg-amber-500/10 wdo:text-amber-700 wdo:dark:text-amber-400 wdo:text-sm ${e??""}`,children:[(0,w.jsx)(Mr,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"}),(0,w.jsx)("div",{children:t})]}),M=({forceOpen:e,onClose:t})=>{const[r,n]=(0,p.useState)(!1),[i,a]=(0,p.useState)(""),[o,s]=(0,p.useState)(!1),[u,l]=(0,p.useState)("");(0,p.useEffect)(()=>{Number(ASP_BACKEND.asset_rev)>0&&n(!0),x()({path:"/ajax-search-pro/updates-help/check"}).then(h=>{h.message==="ok"&&n(!0)}).catch(()=>{})},[]),(0,p.useEffect)(()=>{e&&n(!0)},[e]);const c=()=>{n(!1),a(""),l(""),t?.()},f=()=>{s(!0),l(""),x()({path:"/ajax-search-pro/updates-help/activate",method:"POST",data:{key:i}}).then(()=>{c()}).catch(h=>{l(h?.message||(0,L.__)("Activation failed. Please try again.","ajax-search-pro"))}).finally(()=>{s(!1)})},d=()=>{c(),t||(window.history.length>1?window.history.back():window.location.href=ASP_BACKEND.admin_url)};return(0,w.jsx)(W,{isOpen:r,children:(0,w.jsxs)("div",{className:"wdo:p-8 wdo:min-w-[480px] wdo:max-w-lg",children:[(0,w.jsx)("h2",{className:"wdo:text-lg wdo:font-semibold wdo:text-gray-900 wdo:dark:text-white wdo:mb-3",children:(0,L.__)("Activate your license","ajax-search-pro")}),(0,w.jsx)("p",{className:"wdo:text-sm wdo:text-gray-600 wdo:dark:text-gray-400 wdo:mb-2",children:(0,L.__)("A valid license is required to use Ajax Search Pro. Enter your purchase code to activate it on this site.","ajax-search-pro")}),(0,w.jsx)("p",{className:"wdo:text-sm wdo:mb-5",children:(0,w.jsx)("a",{href:"https://documentation.ajaxsearchpro.com/plugin-updates/automatic-updates/purchase-code",target:"_blank",rel:"noreferrer",className:"wdo:text-blue-600 wdo:dark:text-blue-400 wdo:underline",children:(0,L.__)("Where do I find my license key?","ajax-search-pro")})}),u&&(0,w.jsx)(Wn,{className:"wdo:mb-4",children:u}),(0,w.jsx)("label",{className:"wdo:block wdo:text-sm wdo:font-medium wdo:text-gray-700 wdo:dark:text-gray-200 wdo:mb-1",children:(0,L.__)("License key","ajax-search-pro")}),(0,w.jsx)("input",{type:"text",value:i,onChange:h=>{a(h.target.value),l("")},className:"wdo:block wdo:w-full wdo:mb-4 wdo:px-3 wdo:py-2 wdo:rounded wdo:border wdo:border-gray-300 wdo:dark:border-gray-600 wdo:dark:bg-gray-700 wdo:dark:text-white wdo:text-sm",placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}),(0,w.jsxs)("div",{className:"wdo:flex wdo:gap-3",children:[(0,w.jsx)(pr,{isLoading:o,disabled:o||i.trim().length!==36,onClick:f,children:(0,L.__)("Activate","ajax-search-pro")}),e&&(0,w.jsx)(Xe,{disabled:o,onClick:d,children:(0,L.__)("Go back","ajax-search-pro")})]})]})})};const T=["Yay","Top of the morning to you","You did it","All good chief","Looking good","Good job"],F=["Something went south :(","Ooof, please try again","Ouch, that didn't work...","Ooops, that didn't work..."];let I=[],k=[];const R=()=>k.forEach(e=>e(I)),Q=e=>{I=I.filter(t=>t.id!==e),R()},X=(e,t="")=>{const r=Math.random().toString(36).substring(2,9);t===""&&(e==="success"?t=T[Math.floor(Math.random()*T.length)]:t=F[Math.floor(Math.random()*F.length)]),I=[...I,{id:r,type:e,text:t}],R(),setTimeout(()=>Q(r),e==="success"?3e3:15e3)},ne=(e="")=>X("success",e),pe=(e="")=>{typeof e=="string"?X("error",e):X("error",e.message)},fe=()=>{const[e,t]=(0,p.useState)(I);return(0,p.useEffect)(()=>(k.push(t),t(I),()=>{k=k.filter(r=>r!==t)}),[]),{messages:e,addSuccess:ne,addError:pe,addMessage:X,dismissMessage:Q}};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gt=Ve("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tr=Ve("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ke=Ve("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Hn={success:(0,w.jsx)(gt,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"}),error:(0,w.jsx)(Tr,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"})};var Ii=({messages:e})=>(0,w.jsx)("div",{className:"wdo:fixed wdo:top-16 wdo:left-1/2 wdo:-translate-x-1/2 wdo:w-full wdo:max-w-md wdo:z-50 wdo:flex wdo:flex-col wdo:gap-2 wdo:px-4",children:e.map(t=>(0,w.jsxs)("div",{className:D("wdo:toast",t.type==="success"?"wdo:toast-success":"wdo:toast-error"),children:[(0,w.jsx)("span",{className:D("wdo:shrink-0",t.type==="success"?"wdo:text-green-600 wdo:dark:text-green-400":"wdo:text-red-600 wdo:dark:text-red-400"),children:Hn[t.type]}),(0,w.jsx)("span",{className:"wdo:grow wdo:text-sm",children:t.text}),(0,w.jsx)("button",{className:"wdo:shrink-0 wdo:p-0.5 wdo:rounded wdo:border-0 wdo:cursor-pointer wdo:bg-transparent wdo:text-wp-admin-500 wdo:hover:text-wp-admin-800 wdo:dark:text-wp-admin-400 wdo:dark:hover:text-wp-admin-100 wdo:transition-colors",onClick:()=>Q(t.id),"aria-label":"Dismiss",children:(0,w.jsx)(Ke,{className:"wdo:w-4 wdo:h-4"})})]},t.id))});/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kn=Ve("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kt=Ve("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yn=Ve("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),Ha=(0,p.createContext)(void 0),Yt=e=>e==="light"||e==="dark"||e==="system",nt=e=>e==="dark"?!0:e==="light"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches,Mw=({children:e})=>{const[t,r]=(0,p.useState)(()=>{const o=localStorage.getItem("wdo_darkmode");return Yt(o)?o:"system"}),[n,i]=(0,p.useState)(()=>nt(t)),a=o=>{r(o),localStorage.setItem("wdo_darkmode",o)};return(0,p.useEffect)(()=>{i(nt(t))},[t]),(0,p.useEffect)(()=>{if(t!=="system")return;const o=window.matchMedia("(prefers-color-scheme: dark)"),s=u=>i(u.matches);return o.addEventListener("change",s),()=>o.removeEventListener("change",s)},[t]),(0,p.useEffect)(()=>{document.body.classList.toggle("wdo:dark",n)},[n]),(0,p.useEffect)(()=>{const o=s=>{s.key==="wdo_darkmode"&&Yt(s.newValue)&&r(s.newValue)};return window.addEventListener("storage",o),()=>window.removeEventListener("storage",o)},[]),(0,w.jsx)(Ha.Provider,{value:{isDark:n,mode:t,setMode:a},children:e})},Tw=()=>{const e=(0,p.useContext)(Ha);if(e===void 0)throw new Error("useIsDark must be used within a DarkModeProvider");return e},Iw=[{mode:"light",icon:(0,w.jsx)(Kn,{}),title:"Light"},{mode:"system",icon:(0,w.jsx)(Kt,{}),title:"System"},{mode:"dark",icon:(0,w.jsx)(Yn,{}),title:"Dark"}],jw=()=>{const{isDark:e,mode:t,setMode:r}=Tw();return(0,w.jsx)("div",{className:D("wdo:inline-flex wdo:rounded-lg wdo:p-0.5 wdo:gap-0.5",e?"wdo:bg-wp-admin-700":"wdo:bg-wp-admin-200"),children:Iw.map(({mode:n,icon:i,title:a})=>{const o=t===n;return(0,w.jsx)("button",{title:a,onClick:()=>r(n),className:D("wdo:rounded wdo:p-1.5 wdo:border-0 wdo:cursor-pointer","wdo:transition-colors wdo:flex wdo:items-center wdo:justify-center",o?e?"wdo:bg-wp-admin-500 wdo:text-white":"wdo:bg-white wdo:text-wp-admin-700 wdo:shadow-sm":e?"wdo:bg-transparent wdo:text-wp-admin-300":"wdo:bg-transparent wdo:text-wp-admin-500"),children:(0,w.jsx)("span",{className:"wdo:w-[18px] wdo:h-[18px] wdo:flex wdo:items-center wdo:justify-center",children:i})},n)})})};var Rw=()=>{const e=typeof window<"u"&&Array.isArray(window.wpdrmsSharedConflicts)?window.wpdrmsSharedConflicts:[];return e.length===0?null:(0,w.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:gap-2 wdo:mb-4",children:e.map((t,r)=>(0,w.jsx)("div",{role:"alert",className:"wdo:p-3 wdo:rounded wdo:text-sm wdo:bg-red-50 wdo:text-red-800 wdo:dark:bg-red-900/20 wdo:dark:text-red-200",children:t.message},r))})},Dw=({subtitle:e="",logo:t,className:r=""})=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Rw,{}),(0,w.jsxs)("div",{className:"wdo:top-bar",children:[(0,w.jsxs)("div",{className:D("wdo:flex wdo:items-baseline wdo:gap-3",r),children:[t,e?(0,w.jsx)("h2",{children:e}):""]}),(0,w.jsx)(jw,{})]})]}),kw=()=>(0,w.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20",style:{float:"right"},"aria-hidden":"true",focusable:"false",children:(0,w.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"})}),Nw=()=>(0,w.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20",style:{float:"right",transform:"rotate(180deg)"},"aria-hidden":"true",focusable:"false",children:(0,w.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"})});const Ka=(0,p.createContext)(null),Lw=({children:e})=>{const[t,r]=(0,p.useState)(null),[n,i]=(0,p.useState)(()=>window.location.hash.slice(1)||null),[a,o]=(0,p.useState)([]),s=(0,p.useRef)([]),[u,l]=(0,p.useState)(()=>({})),c=m=>{const b=s.current.reduce((_,S)=>(_[S]=!0,_),{});l(_=>({..._,...b,[m]:!0}))},f=m=>{l(b=>({...b,[m]:!1}))},d=m=>{l(b=>({...b,[m]:!(b[m]??!1)}))},h=m=>{o(b=>[...b,n]),i(m),m?window.history.pushState(null,"",`#${m}`):window.history.replaceState(null,"",window.location.pathname+window.location.search)},v=()=>{if(a.length===0)return;const m=a[a.length-1];o(b=>b.slice(0,-1)),i(m),m?window.history.pushState(null,"",`#${m}`):window.history.replaceState(null,"",window.location.pathname+window.location.search)},g=a.length>0;return(0,p.useEffect)(()=>{const m=()=>{i(window.location.hash.slice(1)||null),n&&c(n)};return n&&c(n),window.addEventListener("hashchange",m),()=>window.removeEventListener("hashchange",m)},[]),(0,w.jsx)(Ka.Provider,{value:{activeId:n,setActiveId:i,isOpen:u,toggleOpen:d,open:c,close:f,openedParents:s,confirmBeforeSwap:t,setConfirmBeforeSwap:r,navigate:h,goBack:v,canGoBack:g},children:e})},Fw=({children:e,...t})=>(0,w.jsx)("ul",{style:{listStyleType:"none",padding:0,userSelect:"none"},...t,children:p.Children.map(e,r=>(0,p.cloneElement)(r,{level:0}))}),Su=({label:e,id:t,children:r,iconBefore:n,iconAfter:i,disabled:a,defaultActive:o=!1,level:s=0,parents:u=[],...l})=>{const c=(0,p.useContext)(Ka);if(!c)throw new Error("MenuItem must be used within a MenuProvider");const{activeId:f,isOpen:d,toggleOpen:h,openedParents:v,confirmBeforeSwap:g,setConfirmBeforeSwap:m,navigate:b}=c,_=f!==null?f===t:o,S=p.Children.count(r)>0,P=S?d[t]:!1;_&&(S&&(v.current=[...new Set(v.current.concat([t]))]),u.length&&(v.current=[...new Set(v.current.concat(u))]));const A=["","wdo:pl-4","wdo:pl-6","wdo:pl-8","wdo:pl-10"];return(0,w.jsxs)("li",{...l,children:[(0,w.jsxs)("a",{href:t?`#${t}`:void 0,onClick:O=>{O.preventDefault(),S&&!P&&h(t),!a&&(g===null||confirm(g))&&(m(null),S||b(t))},className:`
					${A[s]??""} 
					${_?"wdo:menu-item-active":""}
				    wdo:menu-item
				 `,children:[n&&(0,w.jsx)("span",{children:n}),(0,w.jsx)("span",{children:e}),i&&(0,w.jsx)("span",{children:i}),S&&(0,w.jsx)("span",{className:"wdo:dark:fill-gray-300",onClick:O=>{O.stopPropagation(),O.preventDefault(),h(t)},children:P?(0,w.jsx)(Nw,{}):(0,w.jsx)(kw,{})})]}),S&&(0,w.jsx)("ul",{style:{listStyleType:"none",padding:0,display:P?"block":"none"},children:p.Children.map(r,O=>(0,p.cloneElement)(O,{level:s+1,parents:u.concat([t]),...l}))})]})};var bd=De(8279);const wd=0,xd=1,_d=2,Sd=3;var Ed=Object.prototype.hasOwnProperty;function Eu(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Eu(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Ed.call(e,r)&&++n&&!Ed.call(t,r)||!(r in t)||!Eu(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}const Ir=new WeakMap,jr=()=>{},Tt=jr(),Ya=Object,Ae=e=>e===Tt,sr=e=>typeof e=="function",Rr=(e,t)=>({...e,...t}),Cd=e=>sr(e.then),Cu={},qa={},Ou="undefined",Di=typeof window!=Ou,Au=typeof document!=Ou,$w=Di&&"Deno"in window,Bw=()=>Di&&typeof window.requestAnimationFrame!=Ou,Od=(e,t)=>{const r=Ir.get(e);return[()=>!Ae(t)&&e.get(t)||Cu,n=>{if(!Ae(t)){const i=e.get(t);t in qa||(qa[t]=i),r[5](t,Rr(i,n),i||Cu)}},r[6],()=>!Ae(t)&&t in qa?qa[t]:!Ae(t)&&e.get(t)||Cu]};let Pu=!0;const Vw=()=>Pu,[Mu,Tu]=Di&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[jr,jr],zw=()=>{const e=Au&&document.visibilityState;return Ae(e)||e!=="hidden"},Uw=e=>(Au&&document.addEventListener("visibilitychange",e),Mu("focus",e),()=>{Au&&document.removeEventListener("visibilitychange",e),Tu("focus",e)}),Ww=e=>{const t=()=>{Pu=!0,e()},r=()=>{Pu=!1};return Mu("online",t),Mu("offline",r),()=>{Tu("online",t),Tu("offline",r)}},Hw={isOnline:Vw,isVisible:zw},Kw={initFocus:Uw,initReconnect:Ww},Ad=!p.useId,qn=!Di||$w,Yw=e=>Bw()?window.requestAnimationFrame(e):setTimeout(e,1),Ga=qn?p.useEffect:p.useLayoutEffect,Iu=typeof navigator<"u"&&navigator.connection,Pd=!qn&&Iu&&(["slow-2g","2g"].includes(Iu.effectiveType)||Iu.saveData),Xa=new WeakMap,qw=e=>Ya.prototype.toString.call(e),ju=(e,t)=>e===`[object ${t}]`;let Gw=0;const Ru=e=>{const t=typeof e,r=qw(e),n=ju(r,"Date"),i=ju(r,"RegExp"),a=ju(r,"Object");let o,s;if(Ya(e)===e&&!n&&!i){if(o=Xa.get(e),o)return o;if(o=++Gw+"~",Xa.set(e,o),Array.isArray(e)){for(o="@",s=0;s<e.length;s++)o+=Ru(e[s])+",";Xa.set(e,o)}if(a){o="#";const u=Ya.keys(e).sort();for(;!Ae(s=u.pop());)Ae(e[s])||(o+=s+":"+Ru(e[s])+",");Xa.set(e,o)}}else o=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},Du=e=>{if(sr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ru(e):"",[e,t]};let Xw=0;const ku=()=>++Xw;async function Md(...e){const[t,r,n,i]=e,a=Rr({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let u=a.optimisticData;const l=d=>typeof s=="function"?s(d):s!==!1,c=a.throwOnError;if(sr(r)){const d=r,h=[],v=t.keys();for(const g of v)!/^\$(inf|sub)\$/.test(g)&&d(t.get(g)._k)&&h.push(g);return Promise.all(h.map(f))}return f(r);async function f(d){const[h]=Du(d);if(!h)return;const[v,g]=Od(t,h),[m,b,_,S]=Ir.get(t),P=()=>{const ve=m[h];return(sr(a.revalidate)?a.revalidate(v().data,d):a.revalidate!==!1)&&(delete _[h],delete S[h],ve&&ve[0])?ve[0](_d).then(()=>v().data):v().data};if(e.length<3)return P();let A=n,O,j=!1;const B=ku();b[h]=[B,0];const ee=!Ae(u),te=v(),G=te.data,ae=te._c,ce=Ae(ae)?G:ae;if(ee&&(u=sr(u)?u(ce,G):u,g({data:u,_c:ce})),sr(A))try{A=A(ce)}catch(ve){O=ve,j=!0}if(A&&Cd(A))if(A=await A.catch(ve=>{O=ve,j=!0}),B!==b[h][0]){if(j)throw O;return A}else j&&ee&&l(O)&&(o=!0,g({data:ce,_c:Tt}));if(o&&!j)if(sr(o)){const ve=o(A,ce);g({data:ve,error:Tt,_c:Tt})}else g({data:A,error:Tt,_c:Tt});if(b[h][1]=ku(),Promise.resolve(P()).then(()=>{g({_c:Tt})}),j){if(c)throw O;return}return A}}const Td=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},Id=(e,t)=>{if(!Ir.has(e)){const r=Rr(Kw,t),n=Object.create(null),i=Md.bind(Tt,e);let a=jr;const o=Object.create(null),s=(c,f)=>{const d=o[c]||[];return o[c]=d,d.push(f),()=>d.splice(d.indexOf(f),1)},u=(c,f,d)=>{e.set(c,f);const h=o[c];if(h)for(const v of h)v(f,d)},l=()=>{if(!Ir.has(e)&&(Ir.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,u,s]),!qn)){const c=r.initFocus(setTimeout.bind(Tt,Td.bind(Tt,n,wd))),f=r.initReconnect(setTimeout.bind(Tt,Td.bind(Tt,n,xd)));a=()=>{c&&c(),f&&f(),Ir.delete(e)}}};return l(),[e,i,l,a]}return[e,Ir.get(e)[4]]},Zw=(e,t,r,n,i)=>{const a=r.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;!Ae(a)&&o>a||setTimeout(n,s,i)},Qw=Eu,[Nu,Jw]=Id(new Map),jd=Rr({onLoadingSlow:jr,onSuccess:jr,onError:jr,onErrorRetry:Zw,onDiscarded:jr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Pd?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Pd?5e3:3e3,compare:Qw,isPaused:()=>!1,cache:Nu,mutate:Jw,fallback:{}},Hw),Rd=(e,t)=>{const r=Rr(e,t);if(t){const{use:n,fallback:i}=e,{use:a,fallback:o}=t;n&&a&&(r.use=n.concat(a)),i&&o&&(r.fallback=Rr(i,o))}return r},Lu=(0,p.createContext)({}),ex=e=>{const{value:t}=e,r=(0,p.useContext)(Lu),n=sr(t),i=(0,p.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,p.useMemo)(()=>n?i:Rd(r,i),[n,r,i]),o=i&&i.provider,s=(0,p.useRef)(Tt);o&&!s.current&&(s.current=Id(o(a.cache||Nu),i));const u=s.current;return u&&(a.cache=u[0],a.mutate=u[1]),Ga(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,p.createElement)(Lu.Provider,Rr(e,{value:a}))},tx="$inf$",Dd=Di&&window.__SWR_DEVTOOLS_USE__,rx=Dd?window.__SWR_DEVTOOLS_USE__:[],nx=()=>{Dd&&(window.__SWR_DEVTOOLS_REACT__=p)},kd=e=>sr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],ix=()=>{const e=(0,p.useContext)(Lu);return(0,p.useMemo)(()=>Rr(jd,e),[e])},aL=(e,t)=>{if(IS_SERVER)return;const[r,n]=serialize(e),[,,,i]=SWRGlobalState.get(cache);if(i[r])return i[r];const a=t(n);return i[r]=a,a},ax=e=>(t,r,n)=>e(t,r&&((...a)=>{const[o]=Du(t),[,,,s]=Ir.get(Nu);if(o.startsWith(tx))return r(...a);const u=s[o];return Ae(u)?r(...a):(delete s[o],u)}),n),ox=rx.concat(ax),sx=e=>function(...r){const n=ix(),[i,a,o]=kd(r),s=Rd(n,o);let u=e;const{use:l}=s,c=(l||[]).concat(ox);for(let f=c.length;f--;)u=c[f](u);return u(i,a||s.fetcher||null,s)},ux=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const i=n.indexOf(r);i>=0&&(n[i]=n[n.length-1],n.pop())}},oL=(e,t)=>(...r)=>{const[n,i,a]=kd(r),o=(a.use||[]).concat(t);return e(n,i,{...a,use:o})};nx();const lx=void 0,Fu=null,Nd=e=>e===lx,cx=e=>typeof e=="function",Za=new WeakMap,fx=e=>Fu.prototype.toString.call(e),$u=(e,t)=>e===`[object ${t}]`;let dx=0;const Bu=e=>{const t=typeof e,r=fx(e),n=$u(r,"Date"),i=$u(r,"RegExp"),a=$u(r,"Object");let o,s;if(Fu(e)===e&&!n&&!i){if(o=Za.get(e),o)return o;if(o=++dx+"~",Za.set(e,o),Array.isArray(e)){for(o="@",s=0;s<e.length;s++)o+=Bu(e[s])+",";Za.set(e,o)}if(a){o="#";const u=Fu.keys(e).sort();for(;!Nd(s=u.pop());)Nd(e[s])||(o+=s+":"+Bu(e[s])+",");Za.set(e,o)}}else o=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},px=e=>{if(cx(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Bu(e):"",[e,t]},uL=e=>px(e)[0],Vu=p.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),zu={dedupe:!0},Ld=Promise.resolve(Tt),hx=()=>jr,vx=(e,t,r)=>{const{cache:n,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:u,refreshInterval:l,refreshWhenHidden:c,refreshWhenOffline:f,keepPreviousData:d,strictServerPrefetchWarning:h}=r,[v,g,m,b]=Ir.get(n),[_,S]=Du(e),P=(0,p.useRef)(!1),A=(0,p.useRef)(!1),O=(0,p.useRef)(_),j=(0,p.useRef)(t),B=(0,p.useRef)(r),ee=()=>B.current,te=()=>ee().isVisible()&&ee().isOnline(),[G,ae,ce,ve]=Od(n,_),me=(0,p.useRef)({}).current,be=Ae(o)?Ae(r.fallback)?Tt:r.fallback[_]:o,_e=(Re,rt)=>{for(const vt in me){const mt=vt;if(mt==="data"){if(!i(Re[mt],rt[mt])&&(!Ae(Re[mt])||!i(et,rt[mt])))return!1}else if(rt[mt]!==Re[mt])return!1}return!0},Se=!P.current,Pe=(0,p.useMemo)(()=>{const Re=G(),rt=ve(),vt=_t=>{const dr=Rr(_t);return delete dr._k,(()=>{if(!_||!t||ee().isPaused())return!1;if(Se&&!Ae(s))return s;const za=Ae(be)?dr.data:be;return Ae(za)||u})()?{isValidating:!0,isLoading:!0,...dr}:dr},mt=vt(Re),Pr=Re===rt?mt:vt(rt);let ar=mt;return[()=>{const _t=vt(G());return _e(_t,ar)?(ar.data=_t.data,ar.isLoading=_t.isLoading,ar.isValidating=_t.isValidating,ar.error=_t.error,ar):(ar=_t,_t)},()=>Pr]},[n,_]),He=(0,bd.useSyncExternalStore)((0,p.useCallback)(Re=>ce(_,(rt,vt)=>{_e(vt,rt)||Re()}),[n,_]),Pe[0],Pe[1]),kt=v[_]&&v[_].length>0,Ee=He.data,je=Ae(Ee)?be&&Cd(be)?Vu(be):be:Ee,ct=He.error,ft=(0,p.useRef)(je),et=d?Ae(Ee)?Ae(ft.current)?je:ft.current:Ee:je,ot=_&&Ae(je),ht=(0,p.useRef)(null);!qn&&(0,bd.useSyncExternalStore)(hx,()=>(ht.current=!1,ht),()=>(ht.current=!0,ht));const le=ht.current;h&&le&&!a&&ot&&console.warn(`Missing pre-initiated data for serialized key "${_}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const ue=!_||!t||ee().isPaused()||kt&&!Ae(ct)?!1:Se&&!Ae(s)?s:a?Ae(je)?!1:u:Ae(je)||u,Ce=Se&&ue,J=Ae(He.isValidating)?Ce:He.isValidating,tt=Ae(He.isLoading)?Ce:He.isLoading,Te=(0,p.useCallback)(async Re=>{const rt=j.current;if(!_||!rt||A.current||ee().isPaused())return!1;let vt,mt,Pr=!0;const ar=Re||{},_t=!m[_]||!ar.dedupe,dr=()=>Ad?!A.current&&_===O.current&&P.current:_===O.current,Va={isValidating:!1,isLoading:!1},za=()=>{ae(Va)},Ow=()=>{const or=m[_];or&&or[1]===mt&&delete m[_]},Aw={isValidating:!0};Ae(G().data)&&(Aw.isLoading=!0);try{if(_t&&(ae(Aw),r.loadingTimeout&&Ae(G().data)&&setTimeout(()=>{Pr&&dr()&&ee().onLoadingSlow(_,r)},r.loadingTimeout),m[_]=[rt(S),ku()]),[vt,mt]=m[_],vt=await vt,_t&&setTimeout(Ow,r.dedupingInterval),!m[_]||m[_][1]!==mt)return _t&&dr()&&ee().onDiscarded(_),!1;Va.error=Tt;const or=g[_];if(!Ae(or)&&(mt<=or[0]||mt<=or[1]||or[1]===0))return za(),_t&&dr()&&ee().onDiscarded(_),!1;const tn=G().data;Va.data=i(tn,vt)?tn:vt,_t&&dr()&&ee().onSuccess(vt,_,r)}catch(or){Ow();const tn=ee(),{shouldRetryOnError:vd}=tn;tn.isPaused()||(Va.error=or,_t&&dr()&&(tn.onError(or,_,tn),(vd===!0||sr(vd)&&vd(or))&&(!ee().revalidateOnFocus||!ee().revalidateOnReconnect||te())&&tn.onErrorRetry(or,_,tn,J6=>{const md=v[_];md&&md[0]&&md[0](Sd,J6)},{retryCount:(ar.retryCount||0)+1,dedupe:!0})))}return Pr=!1,za(),!0},[_,n]),Mt=(0,p.useCallback)((...Re)=>Md(n,O.current,...Re),[]);if(Ga(()=>{j.current=t,B.current=r,Ae(Ee)||(ft.current=Ee)}),Ga(()=>{if(!_)return;const Re=Te.bind(Tt,zu);let rt=0;ee().revalidateOnFocus&&(rt=Date.now()+ee().focusThrottleInterval);const mt=ux(_,v,(Pr,ar={})=>{if(Pr==wd){const _t=Date.now();ee().revalidateOnFocus&&_t>rt&&te()&&(rt=_t+ee().focusThrottleInterval,Re())}else if(Pr==xd)ee().revalidateOnReconnect&&te()&&Re();else{if(Pr==_d)return Te();if(Pr==Sd)return Te(ar)}});return A.current=!1,O.current=_,P.current=!0,ae({_k:S}),ue&&(m[_]||(Ae(je)||qn?Re():Yw(Re))),()=>{A.current=!0,mt()}},[_]),Ga(()=>{let Re;function rt(){const mt=sr(l)?l(G().data):l;mt&&Re!==-1&&(Re=setTimeout(vt,mt))}function vt(){!G().error&&(c||ee().isVisible())&&(f||ee().isOnline())?Te(zu).then(rt):rt()}return rt(),()=>{Re&&(clearTimeout(Re),Re=-1)}},[l,c,f,_]),(0,p.useDebugValue)(et),a){if(!Ad&&qn&&ot)throw new Error("Fallback data is required when using Suspense in SSR.");ot&&(j.current=t,B.current=r,A.current=!1);const Re=b[_],rt=!Ae(Re)&&ot?Mt(Re):Ld;if(Vu(rt),!Ae(ct)&&ot)throw ct;const vt=ot?Te(zu):Ld;!Ae(et)&&ot&&(vt.status="fulfilled",vt.value=!0),Vu(vt)}return{mutate:Mt,get data(){return me.data=!0,et},get error(){return me.error=!0,ct},get isValidating(){return me.isValidating=!0,J},get isLoading(){return me.isLoading=!0,tt}}},lL=Ya.defineProperty(ex,"defaultValue",{value:jd}),Qa=sx(vx);var Uu=window.wp.url,Fd=()=>{const e=(0,Uu.addQueryArgs)("/ajax-search-pro/options/statistics"),t=o=>x()({path:o}),{data:r,isLoading:n,mutate:i,error:a}=Qa(e,t,{revalidateIfStale:!1,revalidateOnFocus:!0,revalidateOnReconnect:!1,revalidateOnMount:!0});return a?{data:void 0,error:a,isLoading:n,mutate:i}:{data:r||{},error:void 0,isLoading:n,mutate:i}};const Wu=({value:e,onChange:t,tabIndex:r=0})=>{const[n,i]=(0,p.useState)(e??!1);(0,p.useEffect)(()=>{e!==void 0&&i(e)},[e]);const a=()=>{const s=!n;i(s),t?.(s)},o=n?"on":"off";return(0,w.jsx)("div",{onClick:a,onKeyDown:s=>(s.key==="Enter"||s.key===" ")&&a(),"data-state":o,className:"wdo:on-off wdo:group",role:"switch","aria-checked":n,tabIndex:r,children:(0,w.jsx)("div",{className:"wdo:group-data-[state=on]:translate-x-[23px] wdo:group-data-[state=off]:translate-x-[3px]"})})},ki=({label:e,className:t,description:r,labelClass:n="wdo:basis-3/5",optionClass:i="",children:a,disabled:o=!1,optionDescription:s,footer:u})=>(0,w.jsxs)("div",{className:D("wdo:option",o&&"wdo:pointer-events-none wdo:select-none wdo:opacity-50",t),...o?{"aria-disabled":"true",tabIndex:-1}:{},children:[(0,w.jsxs)("div",{className:D("wdo:option-label-container wdo:lg:grow-0 wdo:grow",n),children:[(0,w.jsx)("p",{className:"wdo:option-label",children:e}),r&&(0,w.jsx)("p",{className:"wdo:option-description",children:r})]}),(0,w.jsx)("div",{className:i||void 0,children:(0,w.jsxs)("div",{className:"wdo:option-container",children:[(0,w.jsx)("div",{children:a}),s&&(0,w.jsx)("div",{className:"wdo:option-description",children:s})]})}),u&&(0,w.jsx)("div",{className:"wdo:basis-full",children:u})]});function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function mx(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $d(e){var t=mx(e,"string");return xn(t)=="symbol"?t:t+""}function Ni(e,t,r){return(t=$d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bd(Object(r),!0).forEach(function(n){Ni(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gx(e){if(Array.isArray(e))return e}function yx(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Hu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Vd(e,t){if(e){if(typeof e=="string")return Hu(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hu(e,t):void 0}}function bx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dr(e,t){return gx(e)||yx(e,t)||Vd(e,t)||bx()}function wx(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function kr(e,t){if(e==null)return{};var r,n,i=wx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var xx=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _x(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,i=n===void 0?!1:n,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,u=e.menuIsOpen,l=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,h=e.value,v=kr(e,xx),g=(0,p.useState)(s!==void 0?s:r),m=Dr(g,2),b=m[0],_=m[1],S=(0,p.useState)(u!==void 0?u:i),P=Dr(S,2),A=P[0],O=P[1],j=(0,p.useState)(h!==void 0?h:o),B=Dr(j,2),ee=B[0],te=B[1],G=(0,p.useCallback)(function(Se,Pe){typeof l=="function"&&l(Se,Pe),te(Se)},[l]),ae=(0,p.useCallback)(function(Se,Pe){var He;typeof c=="function"&&(He=c(Se,Pe)),_(He!==void 0?He:Se)},[c]),ce=(0,p.useCallback)(function(){typeof d=="function"&&d(),O(!0)},[d]),ve=(0,p.useCallback)(function(){typeof f=="function"&&f(),O(!1)},[f]),me=s!==void 0?s:b,be=u!==void 0?u:A,_e=h!==void 0?h:ee;return ye(ye({},v),{},{inputValue:me,menuIsOpen:be,onChange:G,onInputChange:ae,onMenuClose:ve,onMenuOpen:ce,value:_e})}function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},we.apply(null,arguments)}function Sx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$d(n.key),n)}}function Ex(e,t,r){return t&&zd(e.prototype,t),r&&zd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ku(e,t){return Ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ku(e,t)}function Cx(e,t){if(typeof t!="function"&&t!==null)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&&Ku(e,t)}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ja(e)}function Ud(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ud=function(){return!!e})()}function Ox(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ax(e,t){if(t&&(xn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ox(e)}function Px(e){var t=Ud();return function(){var r,n=Ja(e);if(t){var i=Ja(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ax(this,r)}}function Mx(e){if(Array.isArray(e))return Hu(e)}function Tx(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ix(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yu(e){return Mx(e)||Tx(e)||Vd(e)||Ix()}var jx=!1;function Rx(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Dx(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var kx=(function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!jx:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Dx(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Rx(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Nx=Math.abs,eo=String.fromCharCode,Lx=Object.assign;function Fx(e,t){return It(e,0)^45?(((t<<2^It(e,0))<<2^It(e,1))<<2^It(e,2))<<2^It(e,3):0}function Wd(e){return e.trim()}function $x(e,t){return(e=t.exec(e))?e[0]:e}function $e(e,t,r){return e.replace(t,r)}function qu(e,t){return e.indexOf(t)}function It(e,t){return e.charCodeAt(t)|0}function Li(e,t,r){return e.slice(t,r)}function vr(e){return e.length}function Gu(e){return e.length}function to(e,t){return t.push(e),e}function Bx(e,t){return e.map(t).join("")}var ro=1,Gn=1,Hd=0,$t=0,it=0,Xn="";function no(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:ro,column:Gn,length:o,return:""}}function Fi(e,t){return Lx(no("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vx(){return it}function zx(){return it=$t>0?It(Xn,--$t):0,Gn--,it===10&&(Gn=1,ro--),it}function zt(){return it=$t<Hd?It(Xn,$t++):0,Gn++,it===10&&(Gn=1,ro++),it}function mr(){return It(Xn,$t)}function io(){return $t}function $i(e,t){return Li(Xn,e,t)}function Zn(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 Xu(e){return ro=Gn=1,Hd=vr(Xn=e),$t=0,[]}function Zu(e){return Xn="",e}function Bi(e){return Wd($i($t-1,Qu(e===91?e+2:e===40?e+1:e)))}function fL(e){return Zu(Wx(Xu(e)))}function Ux(e){for(;(it=mr())&&it<33;)zt();return Zn(e)>2||Zn(it)>3?"":" "}function Wx(e){for(;zt();)switch(Zn(it)){case 0:append(Kd($t-1),e);break;case 2:append(Bi(it),e);break;default:append(from(it),e)}return e}function Hx(e,t){for(;--t&&zt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return $i(e,io()+(t<6&&mr()==32&&zt()==32))}function Qu(e){for(;zt();)switch(it){case e:return $t;case 34:case 39:e!==34&&e!==39&&Qu(it);break;case 40:e===41&&Qu(e);break;case 92:zt();break}return $t}function Kx(e,t){for(;zt()&&e+it!==57;)if(e+it===84&&mr()===47)break;return"/*"+$i(t,$t-1)+"*"+eo(e===47?e:zt())}function Kd(e){for(;!Zn(mr());)zt();return $i(e,$t)}var Nt="-ms-",ao="-moz-",Be="-webkit-",Yd="comm",Ju="rule",el="decl",dL="@page",pL="@media",Yx="@import",hL="@charset",vL="@viewport",mL="@supports",gL="@document",yL="@namespace",qd="@keyframes",bL="@font-face",wL="@counter-style",xL="@font-feature-values",qx="@layer";function Qn(e,t){for(var r="",n=Gu(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Gx(e,t,r,n){switch(e.type){case qx:if(e.children.length)break;case Yx:case el:return e.return=e.return||e.value;case Yd:return"";case qd:return e.return=e.value+"{"+Qn(e.children,n)+"}";case Ju:e.value=e.props.join(",")}return vr(r=Qn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Xx(e){var t=Gu(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function Zx(e){return function(t){t.root||(t=t.return)&&e(t)}}function _L(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case DECLARATION:e.return=prefix(e.value,e.length,r);return;case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],n);case RULESET:if(e.length)return combine(e.props,function(i){switch(match(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(e,{props:[replace(i,/:(read-\w+)/,":"+MOZ+"$1")]})],n);case"::placeholder":return serialize([copy(e,{props:[replace(i,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(e,{props:[replace(i,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(e,{props:[replace(i,/:(plac\w+)/,MS+"input-$1")]})],n)}return""})}}function SL(e){switch(e.type){case RULESET:e.props=e.props.map(function(t){return combine(tokenize(t),function(r,n,i){switch(charat(r,0)){case 12:return substr(r,1,strlen(r));case 0:case 40:case 43:case 62:case 126:return r;case 58:i[++n]==="global"&&(i[n]="",i[++n]="\f"+substr(i[n],n=1,-1));case 32:return n===1?"":r;default:switch(n){case 0:return e=r,sizeof(i)>1?"":r;case(n=sizeof(i)-1):case 2:return n===2?r+e+e:r+e;default:return r}}})})}}function Qx(e){return Zu(oo("",null,null,null,[""],e=Xu(e),0,[0],e))}function oo(e,t,r,n,i,a,o,s,u){for(var l=0,c=0,f=o,d=0,h=0,v=0,g=1,m=1,b=1,_=0,S="",P=i,A=a,O=n,j=S;m;)switch(v=_,_=zt()){case 40:if(v!=108&&It(j,f-1)==58){qu(j+=$e(Bi(_),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:j+=Bi(_);break;case 9:case 10:case 13:case 32:j+=Ux(v);break;case 92:j+=Hx(io()-1,7);continue;case 47:switch(mr()){case 42:case 47:to(Jx(Kx(zt(),io()),t,r),u);break;default:j+="/"}break;case 123*g:s[l++]=vr(j)*b;case 125*g:case 59:case 0:switch(_){case 0:case 125:m=0;case 59+c:b==-1&&(j=$e(j,/\f/g,"")),h>0&&vr(j)-f&&to(h>32?Xd(j+";",n,r,f-1):Xd($e(j," ","")+";",n,r,f-2),u);break;case 59:j+=";";default:if(to(O=Gd(j,t,r,l,c,i,s,S,P=[],A=[],f),a),_===123)if(c===0)oo(j,t,O,O,P,a,f,s,A);else switch(d===99&&It(j,3)===110?100:d){case 100:case 108:case 109:case 115:oo(e,O,O,n&&to(Gd(e,O,O,0,0,i,s,S,i,P=[],f),A),i,A,f,s,n?P:A);break;default:oo(j,O,O,O,[""],A,0,s,A)}}l=c=h=0,g=b=1,S=j="",f=o;break;case 58:f=1+vr(j),h=v;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&zx()==125)continue}switch(j+=eo(_),_*g){case 38:b=c>0?1:(j+="\f",-1);break;case 44:s[l++]=(vr(j)-1)*b,b=1;break;case 64:mr()===45&&(j+=Bi(zt())),d=mr(),c=f=vr(S=j+=Kd(io())),_++;break;case 45:v===45&&vr(j)==2&&(g=0)}}return a}function Gd(e,t,r,n,i,a,o,s,u,l,c){for(var f=i-1,d=i===0?a:[""],h=Gu(d),v=0,g=0,m=0;v<n;++v)for(var b=0,_=Li(e,f+1,f=Nx(g=o[v])),S=e;b<h;++b)(S=Wd(g>0?d[b]+" "+_:$e(_,/&\f/g,d[b])))&&(u[m++]=S);return no(e,t,r,i===0?Ju:s,u,l,c)}function Jx(e,t,r){return no(e,t,r,Yd,eo(Vx()),Li(e,2,-2),0)}function Xd(e,t,r,n){return no(e,t,r,el,Li(e,0,n),Li(e,n+1,-1),n)}var e_=function(t,r,n){for(var i=0,a=0;i=a,a=mr(),i===38&&a===12&&(r[n]=1),!Zn(a);)zt();return $i(t,$t)},t_=function(t,r){var n=-1,i=44;do switch(Zn(i)){case 0:i===38&&mr()===12&&(r[n]=1),t[n]+=e_($t-1,r,n);break;case 2:t[n]+=Bi(i);break;case 4:if(i===44){t[++n]=mr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=eo(i)}while(i=zt());return t},r_=function(t,r){return Zu(t_(Xu(t),r))},Zd=new WeakMap,n_=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Zd.get(n))&&!i){Zd.set(t,!0);for(var a=[],o=r_(r,a),s=n.props,u=0,l=0;u<o.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=a[u]?o[u].replace(/&\f/g,s[c]):s[c]+" "+o[u]}}},i_=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Qd(e,t){switch(Fx(e,t)){case 5103:return Be+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+ao+e+Nt+e+e;case 6828:case 4268:return Be+e+Nt+e+e;case 6165:return Be+e+Nt+"flex-"+e+e;case 5187:return Be+e+$e(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+Nt+"flex-$1$2")+e;case 5443:return Be+e+Nt+"flex-item-"+$e(e,/flex-|-self/,"")+e;case 4675:return Be+e+Nt+"flex-line-pack"+$e(e,/align-content|flex-|-self/,"")+e;case 5548:return Be+e+Nt+$e(e,"shrink","negative")+e;case 5292:return Be+e+Nt+$e(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+$e(e,"-grow","")+Be+e+Nt+$e(e,"grow","positive")+e;case 4554:return Be+$e(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return $e($e($e(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return $e(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return $e($e(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+Nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Be+e+e;case 4095:case 3583:case 4068:case 2532:return $e(e,/(.+)-inline(.+)/,Be+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(vr(e)-1-t>6)switch(It(e,t+1)){case 109:if(It(e,t+4)!==45)break;case 102:return $e(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+ao+(It(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qu(e,"stretch")?Qd($e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(It(e,t+1)!==115)break;case 6444:switch(It(e,vr(e)-3-(~qu(e,"!important")&&10))){case 107:return $e(e,":",":"+Be)+e;case 101:return $e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(It(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+Nt+"$2box$3")+e}break;case 5936:switch(It(e,t+11)){case 114:return Be+e+Nt+$e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+Nt+$e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+Nt+$e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+Nt+e+e}return e}var a_=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case el:t.return=Qd(t.value,t.length);break;case qd:return Qn([Fi(t,{value:$e(t.value,"@","@"+Be)})],i);case Ju:if(t.length)return Bx(t.props,function(a){switch($x(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qn([Fi(t,{props:[$e(a,/:(read-\w+)/,":"+ao+"$1")]})],i);case"::placeholder":return Qn([Fi(t,{props:[$e(a,/:(plac\w+)/,":"+Be+"input-$1")]}),Fi(t,{props:[$e(a,/:(plac\w+)/,":"+ao+"$1")]}),Fi(t,{props:[$e(a,/:(plac\w+)/,Nt+"input-$1")]})],i)}return""})}},o_=[a_],s_=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||o_,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),b=1;b<m.length;b++)a[m[b]]=!0;s.push(g)});var u,l=[n_,i_];{var c,f=[Gx,Zx(function(g){c.insert(g)})],d=Xx(l.concat(i,f)),h=function(m){return Qn(Qx(m),d)};u=function(m,b,_,S){c=_,h(m?m+"{"+b.styles+"}":b.styles),S&&(v.inserted[b.name]=!0)}}var v={key:r,sheet:new kx({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return v.sheet.hydrate(s),v},u_=!0;function l_(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var Jd=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||u_===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},c_=function(t,r,n){Jd(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function f_(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var d_={animationIterationCount:1,aspectRatio: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,scale: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};function p_(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var h_=!1,v_=/[A-Z]|^ms/g,m_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ep=function(t){return t.charCodeAt(1)===45},tp=function(t){return t!=null&&typeof t!="boolean"},tl=p_(function(e){return ep(e)?e:e.replace(v_,"-$&").toLowerCase()}),rp=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(m_,function(n,i,a){return gr={name:i,styles:a,next:gr},i})}return d_[t]!==1&&!ep(t)&&typeof r=="number"&&r!==0?r+"px":r},g_="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Vi(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return gr={name:i.name,styles:i.styles,next:gr},i.name;var a=r;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)gr={name:o.name,styles:o.styles,next:gr},o=o.next;var s=a.styles+";";return s}return y_(e,t,r)}case"function":{if(e!==void 0){var u=gr,l=r(e);return gr=u,Vi(e,t,l)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function y_(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Vi(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?n+=a+"{"+t[s]+"}":tp(s)&&(n+=tl(a)+":"+rp(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&h_)throw new Error(g_);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var u=0;u<o.length;u++)tp(o[u])&&(n+=tl(a)+":"+rp(a,o[u])+";");else{var l=Vi(e,t,o);switch(a){case"animation":case"animationName":{n+=tl(a)+":"+l+";";break}default:n+=a+"{"+l+"}"}}}}return n}var np=/label:\s*([^\s;{]+)\s*(;|$)/g,gr;function ip(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";gr=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Vi(r,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=Vi(r,t,e[s]),n){var u=a;i+=u[s]}np.lastIndex=0;for(var l="",c;(c=np.exec(i))!==null;)l+="-"+c[1];var f=f_(i)+l;return{name:f,styles:i,next:gr}}var b_=function(t){return t()},ap=p.useInsertionEffect?p.useInsertionEffect:!1,w_=ap||b_,EL=ap||p.useLayoutEffect,x_=!1,rl=p.createContext(typeof HTMLElement<"u"?s_({key:"css"}):null),CL=rl.Provider,OL=function(){return useContext(rl)},__=function(t){return(0,p.forwardRef)(function(r,n){var i=(0,p.useContext)(rl);return t(r,i,n)})},zi=p.createContext({}),AL=function(){return React.useContext(zi)},PL=function(t,r){if(typeof r=="function"){var n=r(t);return n}return _extends({},t,r)},S_=null,ML=function(t){var r=React.useContext(zi);return t.theme!==r&&(r=S_(r)(t.theme)),React.createElement(zi.Provider,{value:r},t.children)};function TL(e){var t=e.displayName||e.name||"Component",r=React.forwardRef(function(i,a){var o=React.useContext(zi);return React.createElement(e,_extends({theme:o,ref:a},i))});return r.displayName="WithTheme("+t+")",hoistNonReactStatics(r,e)}var nl={}.hasOwnProperty,il="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",E_=function(t,r){var n={};for(var i in r)nl.call(r,i)&&(n[i]=r[i]);return n[il]=t,n},C_=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Jd(r,n,i),w_(function(){return c_(r,n,i)}),null},O_=__(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[il],a=[n],o="";typeof e.className=="string"?o=l_(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=ip(a,void 0,p.useContext(zi));o+=t.key+"-"+s.name;var u={};for(var l in e)nl.call(e,l)&&l!=="css"&&l!==il&&!x_&&(u[l]=e[l]);return u.className=o,r&&(u.ref=r),p.createElement(p.Fragment,null,p.createElement(C_,{cache:t,serialized:s,isStringTag:typeof i=="string"}),p.createElement(i,u))}),A_=O_,IL=De(7621),ge=function(t,r){var n=arguments;if(r==null||!nl.call(r,"css"))return p.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=A_,a[1]=E_(t,r);for(var o=2;o<i;o++)a[o]=n[o];return p.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ge||(ge={}));var jL=null;function al(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ip(t)}function P_(){var e=al.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var RL=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var a=t[n];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{o="";for(var s in a)a[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function DL(e,t,r){var n=[],i=getRegisteredStyles(e,n,r);return n.length<2?r:i+t(n)}var kL=function(t){var r=t.cache,n=t.serializedArr;return useInsertionEffectAlwaysWithSyncFallback(function(){for(var i=0;i<n.length;i++)insertStyles(r,n[i],!1)}),null},NL=null;function M_(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const LL=null,FL=null,$L=null,so=Math.min,_n=Math.max,uo=Math.round,lo=Math.floor,yr=e=>({x:e,y:e}),T_={left:"right",right:"left",bottom:"top",top:"bottom"},I_={start:"end",end:"start"};function BL(e,t,r){return _n(e,so(t,r))}function VL(e,t){return typeof e=="function"?e(t):e}function op(e){return e.split("-")[0]}function sp(e){return e.split("-")[1]}function j_(e){return e==="x"?"y":"x"}function R_(e){return e==="y"?"height":"width"}const D_=new Set(["top","bottom"]);function k_(e){return D_.has(op(e))?"y":"x"}function N_(e){return j_(k_(e))}function zL(e,t,r){r===void 0&&(r=!1);const n=sp(e),i=N_(e),a=R_(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=sl(o)),[o,sl(o)]}function UL(e){const t=sl(e);return[ol(e),t,ol(t)]}function ol(e){return e.replace(/start|end/g,t=>I_[t])}const up=null,lp=null,L_=null,F_=null;function $_(e,t,r){switch(e){case"top":case"bottom":return r?t?lp:up:t?up:lp;case"left":case"right":return t?L_:F_;default:return[]}}function WL(e,t,r,n){const i=sp(e);let a=$_(op(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(ol)))),a}function sl(e){return e.replace(/left|right|bottom|top/g,t=>T_[t])}function B_(e){return{top:0,right:0,bottom:0,left:0,...e}}function HL(e){return typeof e!="number"?B_(e):{top:e,right:e,bottom:e,left:e}}function cp(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function co(){return typeof window<"u"}function Jn(e){return fp(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function br(e){var t;return(t=(fp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fp(e){return co()?e instanceof Node||e instanceof qt(e).Node:!1}function ur(e){return co()?e instanceof Element||e instanceof qt(e).Element:!1}function wr(e){return co()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function dp(e){return!co()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}const V_=new Set(["inline","contents"]);function Ui(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!V_.has(i)}const z_=new Set(["table","td","th"]);function U_(e){return z_.has(Jn(e))}const W_=[":popover-open",":modal"];function fo(e){return W_.some(t=>{try{return e.matches(t)}catch{return!1}})}const H_=["transform","translate","scale","rotate","perspective"],K_=["transform","translate","scale","rotate","perspective","filter"],Y_=["paint","layout","strict","content"];function ul(e){const t=ll(),r=ur(e)?lr(e):e;return H_.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||K_.some(n=>(r.willChange||"").includes(n))||Y_.some(n=>(r.contain||"").includes(n))}function q_(e){let t=rn(e);for(;wr(t)&&!ei(t);){if(ul(t))return t;if(fo(t))return null;t=rn(t)}return null}function ll(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const G_=new Set(["html","body","#document"]);function ei(e){return G_.has(Jn(e))}function lr(e){return qt(e).getComputedStyle(e)}function po(e){return ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rn(e){if(Jn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dp(e)&&e.host||br(e);return dp(t)?t.host:t}function pp(e){const t=rn(e);return ei(t)?e.ownerDocument?e.ownerDocument.body:e.body:wr(t)&&Ui(t)?t:pp(t)}function Wi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=pp(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=qt(i);if(a){const s=cl(o);return t.concat(o,o.visualViewport||[],Ui(i)?i:[],s&&r?Wi(s):[])}return t.concat(i,Wi(i,[],r))}function cl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hp(e){const t=lr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=wr(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=uo(r)!==a||uo(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function fl(e){return ur(e)?e:e.contextElement}function ti(e){const t=fl(e);if(!wr(t))return yr(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=hp(t);let o=(a?uo(r.width):r.width)/n,s=(a?uo(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const X_=yr(0);function vp(e){const t=qt(e);return!ll()||!t.visualViewport?X_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Z_(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==qt(e)?!1:t}function Sn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=fl(e);let o=yr(1);t&&(n?ur(n)&&(o=ti(n)):o=ti(e));const s=Z_(a,r,n)?vp(a):yr(0);let u=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a){const d=qt(a),h=n&&ur(n)?qt(n):n;let v=d,g=cl(v);for(;g&&n&&h!==v;){const m=ti(g),b=g.getBoundingClientRect(),_=lr(g),S=b.left+(g.clientLeft+parseFloat(_.paddingLeft))*m.x,P=b.top+(g.clientTop+parseFloat(_.paddingTop))*m.y;u*=m.x,l*=m.y,c*=m.x,f*=m.y,u+=S,l+=P,v=qt(g),g=cl(v)}}return cp({width:c,height:f,x:u,y:l})}function ho(e,t){const r=po(e).scrollLeft;return t?t.left+r:Sn(br(e)).left+r}function mp(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-ho(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Q_(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=br(n),s=t?fo(t.floating):!1;if(n===o||s&&a)return r;let u={scrollLeft:0,scrollTop:0},l=yr(1);const c=yr(0),f=wr(n);if((f||!f&&!a)&&((Jn(n)!=="body"||Ui(o))&&(u=po(n)),wr(n))){const h=Sn(n);l=ti(n),c.x=h.x+n.clientLeft,c.y=h.y+n.clientTop}const d=o&&!f&&!a?mp(o,u):yr(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+c.x+d.x,y:r.y*l.y-u.scrollTop*l.y+c.y+d.y}}function J_(e){return Array.from(e.getClientRects())}function eS(e){const t=br(e),r=po(e),n=e.ownerDocument.body,i=_n(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=_n(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+ho(e);const s=-r.scrollTop;return lr(n).direction==="rtl"&&(o+=_n(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}const gp=25;function tS(e,t){const r=qt(e),n=br(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=ll();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}const l=ho(n);if(l<=0){const c=n.ownerDocument,f=c.body,d=getComputedStyle(f),h=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,v=Math.abs(n.clientWidth-f.clientWidth-h);v<=gp&&(a-=v)}else l<=gp&&(a+=l);return{width:a,height:o,x:s,y:u}}const rS=new Set(["absolute","fixed"]);function nS(e,t){const r=Sn(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=wr(e)?ti(e):yr(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,l=n*a.y;return{width:o,height:s,x:u,y:l}}function yp(e,t,r){let n;if(t==="viewport")n=tS(e,r);else if(t==="document")n=eS(br(e));else if(ur(t))n=nS(t,r);else{const i=vp(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return cp(n)}function bp(e,t){const r=rn(e);return r===t||!ur(r)||ei(r)?!1:lr(r).position==="fixed"||bp(r,t)}function iS(e,t){const r=t.get(e);if(r)return r;let n=Wi(e,[],!1).filter(s=>ur(s)&&Jn(s)!=="body"),i=null;const a=lr(e).position==="fixed";let o=a?rn(e):e;for(;ur(o)&&!ei(o);){const s=lr(o),u=ul(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&rS.has(i.position)||Ui(o)&&!u&&bp(e,o))?n=n.filter(c=>c!==o):i=s,o=rn(o)}return t.set(e,n),n}function aS(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?fo(t)?[]:iS(t,this._c):[].concat(r),n],s=o[0],u=o.reduce((l,c)=>{const f=yp(t,c,i);return l.top=_n(f.top,l.top),l.right=so(f.right,l.right),l.bottom=so(f.bottom,l.bottom),l.left=_n(f.left,l.left),l},yp(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function oS(e){const{width:t,height:r}=hp(e);return{width:t,height:r}}function sS(e,t,r){const n=wr(t),i=br(t),a=r==="fixed",o=Sn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=yr(0);function l(){u.x=ho(i)}if(n||!n&&!a)if((Jn(t)!=="body"||Ui(i))&&(s=po(t)),n){const h=Sn(t,!0,a,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else i&&l();a&&!n&&i&&l();const c=i&&!n&&!a?mp(i,s):yr(0),f=o.left+s.scrollLeft-u.x-c.x,d=o.top+s.scrollTop-u.y-c.y;return{x:f,y:d,width:o.width,height:o.height}}function dl(e){return lr(e).position==="static"}function wp(e,t){if(!wr(e)||lr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return br(e)===r&&(r=r.ownerDocument.body),r}function xp(e,t){const r=qt(e);if(fo(e))return r;if(!wr(e)){let i=rn(e);for(;i&&!ei(i);){if(ur(i)&&!dl(i))return i;i=rn(i)}return r}let n=wp(e,t);for(;n&&U_(n)&&dl(n);)n=wp(n,t);return n&&ei(n)&&dl(n)&&!ul(n)?r:n||q_(e)||r}const uS=async function(e){const t=this.getOffsetParent||xp,r=this.getDimensions,n=await r(e.floating);return{reference:sS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function lS(e){return lr(e).direction==="rtl"}const cS={convertOffsetParentRelativeRectToViewportRelativeRect:Q_,getDocumentElement:br,getClippingRect:aS,getOffsetParent:xp,getElementRects:uS,getClientRects:J_,getDimensions:oS,getScale:ti,isElement:ur,isRTL:lS};function _p(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fS(e,t){let r=null,n;const i=br(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=l;if(s||t(),!d||!h)return;const v=lo(f),g=lo(i.clientWidth-(c+d)),m=lo(i.clientHeight-(f+h)),b=lo(c),S={rootMargin:-v+"px "+-g+"px "+-m+"px "+-b+"px",threshold:_n(0,so(1,u))||1};let P=!0;function A(O){const j=O[0].intersectionRatio;if(j!==u){if(!P)return o();j?o(!1,j):n=setTimeout(()=>{o(!1,1e-7)},1e3)}j===1&&!_p(l,e.getBoundingClientRect())&&o(),P=!1}try{r=new IntersectionObserver(A,{...S,root:i.ownerDocument})}catch{r=new IntersectionObserver(A,S)}r.observe(e)}return o(!0),a}function dS(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=fl(e),c=i||a?[...l?Wi(l):[],...Wi(t)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const f=l&&s?fS(l,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(b=>{let[_]=b;_&&_.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),r()}),l&&!u&&h.observe(l),h.observe(t));let v,g=u?Sn(e):null;u&&m();function m(){const b=Sn(e);g&&!_p(g,b)&&r(),g=b,v=requestAnimationFrame(m)}return r(),()=>{var b;c.forEach(_=>{i&&_.removeEventListener("scroll",r),a&&_.removeEventListener("resize",r)}),f?.(),(b=h)==null||b.disconnect(),h=null,u&&cancelAnimationFrame(v)}}const KL=null,YL=null,qL=null,GL=null,XL=null,ZL=null,QL=null,JL=null,e9=null,t9=null,r9=(e,t,r)=>{const n=new Map,i={platform:cS,...r},a={...i.platform,_c:n};return computePosition$1(e,t,{...i,platform:a})};var pl=p.useLayoutEffect,pS=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],vo=function(){};function hS(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function vS(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var a=[].concat(n);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(hS(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Sp=function(t){return ES(t)?t.filter(Boolean):xn(t)==="object"&&t!==null?[t]:[]},Ep=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=kr(t,pS);return ye({},r)},st=function(t,r,n){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(r,t),className:i(n??{},o(r,t),s)}};function n9(e,t,r){if(r){var n=r(e,t);if(typeof n=="string")return n}return e}function mo(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function mS(e){return mo(e)?window.innerHeight:e.clientHeight}function Cp(e){return mo(e)?window.pageYOffset:e.scrollTop}function go(e,t){if(mo(e)){window.scrollTo(0,t);return}e.scrollTop=t}function gS(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function yS(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function yo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:vo,i=Cp(e),a=t-i,o=10,s=0;function u(){s+=o;var l=yS(s,i,a,r);go(e,l),s<r?window.requestAnimationFrame(u):n(e)}u()}function Op(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),i=t.offsetHeight/3;n.bottom+i>r.bottom?go(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):n.top-i<r.top&&go(e,Math.max(t.offsetTop-i,0))}function bS(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Ap(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function wS(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Pp=!1,xS={get passive(){return Pp=!0}},bo=typeof window<"u"?window:{};bo.addEventListener&&bo.removeEventListener&&(bo.addEventListener("p",vo,xS),bo.removeEventListener("p",vo,!1));var _S=Pp;function SS(e){return e!=null}function ES(e){return Array.isArray(e)}function wo(e,t,r){return e?t:r}function i9(e){return e}function a9(e){return e}var CS=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var a=Object.entries(t).filter(function(o){var s=Dr(o,1),u=s[0];return!n.includes(u)});return a.reduce(function(o,s){var u=Dr(s,2),l=u[0],c=u[1];return o[l]=c,o},{})},OS=["children","innerProps"],AS=["children","innerProps"];function PS(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,u=gS(r),l={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return l;var c=u.getBoundingClientRect(),f=c.height,d=r.getBoundingClientRect(),h=d.bottom,v=d.height,g=d.top,m=r.offsetParent.getBoundingClientRect(),b=m.top,_=o?window.innerHeight:mS(u),S=Cp(u),P=parseInt(getComputedStyle(r).marginBottom,10),A=parseInt(getComputedStyle(r).marginTop,10),O=b-A,j=_-g,B=O+S,ee=f-S-g,te=h-_+S+P,G=S+g-A,ae=160;switch(i){case"auto":case"bottom":if(j>=v)return{placement:"bottom",maxHeight:t};if(ee>=v&&!o)return a&&yo(u,te,ae),{placement:"bottom",maxHeight:t};if(!o&&ee>=n||o&&j>=n){a&&yo(u,te,ae);var ce=o?j-P:ee-P;return{placement:"bottom",maxHeight:ce}}if(i==="auto"||o){var ve=t,me=o?O:B;return me>=n&&(ve=Math.min(me-P-s,t)),{placement:"top",maxHeight:ve}}if(i==="bottom")return a&&go(u,te),{placement:"bottom",maxHeight:t};break;case"top":if(O>=v)return{placement:"top",maxHeight:t};if(B>=v&&!o)return a&&yo(u,G,ae),{placement:"top",maxHeight:t};if(!o&&B>=n||o&&O>=n){var be=t;return(!o&&B>=n||o&&O>=n)&&(be=o?O-A:B-A),a&&yo(u,G,ae),{placement:"top",maxHeight:be}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function TS(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Mp=function(t){return t==="auto"?"bottom":t},IS=function(t,r){var n,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,u=a.colors;return ye((n={label:"menu"},Ni(n,TS(i),"100%"),Ni(n,"position","absolute"),Ni(n,"width","100%"),Ni(n,"zIndex",1),n),r?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Tp=(0,p.createContext)(null),jS=function(t){var r=t.children,n=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,l=(0,p.useContext)(Tp)||{},c=l.setPortalPlacement,f=(0,p.useRef)(null),d=(0,p.useState)(i),h=Dr(d,2),v=h[0],g=h[1],m=(0,p.useState)(null),b=Dr(m,2),_=b[0],S=b[1],P=u.spacing.controlHeight;return pl(function(){var A=f.current;if(A){var O=o==="fixed",j=s&&!O,B=PS({maxHeight:i,menuEl:A,minHeight:n,placement:a,shouldScroll:j,isFixedPosition:O,controlHeight:P});g(B.maxHeight),S(B.placement),c?.(B.placement)}},[i,a,o,s,n,c,P]),r({ref:f,placerProps:ye(ye({},t),{},{placement:_||Mp(a),maxHeight:v})})},RS=function(t){var r=t.children,n=t.innerRef,i=t.innerProps;return ge("div",we({},st(t,"menu",{menu:!0}),{ref:n},i),r)},DS=RS,kS=function(t,r){var n=t.maxHeight,i=t.theme.spacing.baseUnit;return ye({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:i,paddingTop:i})},NS=function(t){var r=t.children,n=t.innerProps,i=t.innerRef,a=t.isMulti;return ge("div",we({},st(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},n),r)},Ip=function(t,r){var n=t.theme,i=n.spacing.baseUnit,a=n.colors;return ye({textAlign:"center"},r?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},LS=Ip,FS=Ip,$S=function(t){var r=t.children,n=r===void 0?"No options":r,i=t.innerProps,a=kr(t,OS);return ge("div",we({},st(ye(ye({},a),{},{children:n,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),n)},BS=function(t){var r=t.children,n=r===void 0?"Loading...":r,i=t.innerProps,a=kr(t,AS);return ge("div",we({},st(ye(ye({},a),{},{children:n,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),n)},VS=function(t){var r=t.rect,n=t.offset,i=t.position;return{left:r.left,position:i,top:n,width:r.width,zIndex:1}},zS=function(t){var r=t.appendTo,n=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,u=(0,p.useRef)(null),l=(0,p.useRef)(null),c=(0,p.useState)(Mp(o)),f=Dr(c,2),d=f[0],h=f[1],v=(0,p.useMemo)(function(){return{setPortalPlacement:h}},[]),g=(0,p.useState)(null),m=Dr(g,2),b=m[0],_=m[1],S=(0,p.useCallback)(function(){if(i){var j=bS(i),B=s==="fixed"?0:window.pageYOffset,ee=j[d]+B;(ee!==b?.offset||j.left!==b?.rect.left||j.width!==b?.rect.width)&&_({offset:ee,rect:j})}},[i,s,d,b?.offset,b?.rect.left,b?.rect.width]);pl(function(){S()},[S]);var P=(0,p.useCallback)(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&u.current&&(l.current=dS(i,u.current,S,{elementResize:"ResizeObserver"in window}))},[i,S]);pl(function(){P()},[P]);var A=(0,p.useCallback)(function(j){u.current=j,P()},[P]);if(!r&&s!=="fixed"||!b)return null;var O=ge("div",we({ref:A},st(ye(ye({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),a),n);return ge(Tp.Provider,{value:v},r?(0,N.createPortal)(O,r):O)},US=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},WS=function(t){var r=t.children,n=t.innerProps,i=t.isDisabled,a=t.isRtl;return ge("div",we({},st(t,"container",{"--is-disabled":i,"--is-rtl":a}),n),r)},HS=function(t,r){var n=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return ye({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},KS=function(t){var r=t.children,n=t.innerProps,i=t.isMulti,a=t.hasValue;return ge("div",we({},st(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),n),r)},YS=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},qS=function(t){var r=t.children,n=t.innerProps;return ge("div",we({},st(t,"indicatorsContainer",{indicators:!0}),n),r)},jp,GS=["size"],XS=["innerProps","isRtl","size"];function o9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ZS={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Rp=function(t){var r=t.size,n=kr(t,GS);return ge("svg",we({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ZS},n))},hl=function(t){return ge(Rp,we({size:20},t),ge("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Dp=function(t){return ge(Rp,we({size:20},t),ge("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},kp=function(t,r){var n=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ye({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?o.neutral60:o.neutral20,padding:a*2,":hover":{color:n?o.neutral80:o.neutral40}})},QS=kp,JS=function(t){var r=t.children,n=t.innerProps;return ge("div",we({},st(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||ge(Dp,null))},eE=kp,tE=function(t){var r=t.children,n=t.innerProps;return ge("div",we({},st(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||ge(hl,null))},rE=function(t,r){var n=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ye({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},nE=function(t){var r=t.innerProps;return ge("span",we({},r,st(t,"indicatorSeparator",{"indicator-separator":!0})))},iE=P_(jp||(jp=M_([`
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
`]))),aE=function(t,r){var n=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return ye({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?o.neutral60:o.neutral20,padding:s*2})},vl=function(t){var r=t.delay,n=t.offset;return ge("span",{css:al({animation:"".concat(iE," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},oE=function(t){var r=t.innerProps,n=t.isRtl,i=t.size,a=i===void 0?4:i,o=kr(t,XS);return ge("div",we({},st(ye(ye({},o),{},{innerProps:r,isRtl:n,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ge(vl,{delay:0,offset:n}),ge(vl,{delay:160,offset:!0}),ge(vl,{delay:320,offset:!n}))},sE=function(t,r){var n=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,u=a.spacing;return ye({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},uE=function(t){var r=t.children,n=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return ge("div",we({ref:a},st(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":i,"control--menu-is-open":s}),o,{"aria-disabled":n||void 0}),r)},lE=uE,cE=["data"],fE=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},dE=function(t){var r=t.children,n=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,u=t.innerProps,l=t.label,c=t.theme,f=t.selectProps;return ge("div",we({},st(t,"group",{group:!0}),u),ge(o,we({},s,{selectProps:f,theme:c,getStyles:i,getClassNames:a,cx:n}),l),ge("div",null,r))},pE=function(t,r){var n=t.theme,i=n.colors,a=n.spacing;return ye({label:"group",cursor:"default",display:"block"},r?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},hE=function(t){var r=Ep(t);r.data;var n=kr(r,cE);return ge("div",we({},st(t,"groupHeading",{"group-heading":!0}),n))},vE=dE,mE=["innerRef","isDisabled","isHidden","inputClassName"],gE=function(t,r){var n=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return ye(ye({visibility:n?"hidden":"visible",transform:i?"translateZ(0)":""},yE),r?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Np={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},yE={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ye({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Np)},bE=function(t){return ye({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Np)},wE=function(t){var r=t.cx,n=t.value,i=Ep(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,u=i.inputClassName,l=kr(i,mE);return ge("div",we({},st(t,"input",{"input-container":!0}),{"data-value":n||""}),ge("input",we({className:r({input:!0},u),ref:a,style:bE(s),disabled:o},l)))},xE=wE,_E=function(t,r){var n=t.theme,i=n.spacing,a=n.borderRadius,o=n.colors;return ye({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},SE=function(t,r){var n=t.theme,i=n.borderRadius,a=n.colors,o=t.cropWithEllipsis;return ye({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},EE=function(t,r){var n=t.theme,i=n.spacing,a=n.borderRadius,o=n.colors,s=t.isFocused;return ye({alignItems:"center",display:"flex"},r?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Lp=function(t){var r=t.children,n=t.innerProps;return ge("div",n,r)},CE=Lp,OE=Lp;function AE(e){var t=e.children,r=e.innerProps;return ge("div",we({role:"button"},r),t||ge(hl,{size:14}))}var PE=function(t){var r=t.children,n=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,u=t.selectProps,l=n.Container,c=n.Label,f=n.Remove;return ge(l,{data:i,innerProps:ye(ye({},st(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:u},ge(c,{data:i,innerProps:ye({},st(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},r),ge(f,{data:i,innerProps:ye(ye({},st(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:u}))},ME=PE,TE=function(t,r){var n=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,u=o.colors;return ye({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:a?u.primary:i?u.primary25:"transparent",color:n?u.neutral20:a?u.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:a?u.primary:u.primary50}})},IE=function(t){var r=t.children,n=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return ge("div",we({},st(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":n},s),r)},jE=IE,RE=function(t,r){var n=t.theme,i=n.spacing,a=n.colors;return ye({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},DE=function(t){var r=t.children,n=t.innerProps;return ge("div",we({},st(t,"placeholder",{placeholder:!0}),n),r)},kE=DE,NE=function(t,r){var n=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return ye({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},LE=function(t){var r=t.children,n=t.isDisabled,i=t.innerProps;return ge("div",we({},st(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),i),r)},FE=LE,$E={ClearIndicator:tE,Control:lE,DropdownIndicator:JS,DownChevron:Dp,CrossIcon:hl,Group:vE,GroupHeading:hE,IndicatorsContainer:qS,IndicatorSeparator:nE,Input:xE,LoadingIndicator:oE,Menu:DS,MenuList:NS,MenuPortal:zS,LoadingMessage:BS,NoOptionsMessage:$S,MultiValue:ME,MultiValueContainer:CE,MultiValueLabel:OE,MultiValueRemove:AE,Option:jE,Placeholder:kE,SelectContainer:WS,SingleValue:FE,ValueContainer:KS},BE=function(t){return ye(ye({},$E),t.components)},Fp=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function VE(e,t){return!!(e===t||Fp(e)&&Fp(t))}function zE(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!VE(e[r],t[r]))return!1;return!0}function UE(e,t){t===void 0&&(t=zE);var r=null;function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r&&r.lastThis===this&&t(i,r.lastArgs))return r.lastResult;var o=e.apply(this,i);return r={lastResult:o,lastArgs:i,lastThis:this},o}return n.clear=function(){r=null},n}function s9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var WE={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},HE=function(t){return ge("span",we({css:WE},t))},$p=HE,KE={guidance:function(t){var r=t.isSearchable,n=t.isMulti,i=t.tabSelectsValue,a=t.context,o=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,n=t.label,i=n===void 0?"":n,a=t.labels,o=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,i=t.options,a=t.label,o=a===void 0?"":a,s=t.selectValue,u=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,f=function(g,m){return g&&g.length?"".concat(g.indexOf(m)+1," of ").concat(g.length):""};if(r==="value"&&s)return"value ".concat(o," focused, ").concat(f(s,n),".");if(r==="menu"&&c){var d=u?" disabled":"",h="".concat(l?" selected":"").concat(d);return"".concat(o).concat(h,", ").concat(f(i,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},YE=function(t){var r=t.ariaSelection,n=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,u=t.selectProps,l=t.id,c=t.isAppleDevice,f=u.ariaLiveMessages,d=u.getOptionLabel,h=u.inputValue,v=u.isMulti,g=u.isOptionDisabled,m=u.isSearchable,b=u.menuIsOpen,_=u.options,S=u.screenReaderStatus,P=u.tabSelectsValue,A=u.isLoading,O=u["aria-label"],j=u["aria-live"],B=(0,p.useMemo)(function(){return ye(ye({},KE),f||{})},[f]),ee=(0,p.useMemo)(function(){var me="";if(r&&B.onChange){var be=r.option,_e=r.options,Se=r.removedValue,Pe=r.removedValues,He=r.value,kt=function(ht){return Array.isArray(ht)?null:ht},Ee=Se||be||kt(He),je=Ee?d(Ee):"",ct=_e||Pe||void 0,ft=ct?ct.map(d):[],et=ye({isDisabled:Ee&&g(Ee,s),label:je,labels:ft},r);me=B.onChange(et)}return me},[r,B,g,s,d]),te=(0,p.useMemo)(function(){var me="",be=n||i,_e=!!(n&&s&&s.includes(n));if(be&&B.onFocus){var Se={focused:be,label:d(be),isDisabled:g(be,s),isSelected:_e,options:a,context:be===n?"menu":"value",selectValue:s,isAppleDevice:c};me=B.onFocus(Se)}return me},[n,i,d,g,B,a,s,c]),G=(0,p.useMemo)(function(){var me="";if(b&&_.length&&!A&&B.onFilter){var be=S({count:a.length});me=B.onFilter({inputValue:h,resultsMessage:be})}return me},[a,h,b,B,_,S,A]),ae=r?.action==="initial-input-focus",ce=(0,p.useMemo)(function(){var me="";if(B.guidance){var be=i?"value":b?"menu":"input";me=B.guidance({"aria-label":O,context:be,isDisabled:n&&g(n,s),isMulti:v,isSearchable:m,tabSelectsValue:P,isInitialFocus:ae})}return me},[O,n,i,v,g,m,b,B,s,P,ae]),ve=ge(p.Fragment,null,ge("span",{id:"aria-selection"},ee),ge("span",{id:"aria-focused"},te),ge("span",{id:"aria-results"},G),ge("span",{id:"aria-guidance"},ce));return ge(p.Fragment,null,ge($p,{id:l},ae&&ve),ge($p,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!ae&&ve))},qE=YE,ml=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],GE=new RegExp("["+ml.map(function(e){return e.letters}).join("")+"]","g"),Bp={},gl=0;gl<ml.length;gl++)for(var yl=ml[gl],bl=0;bl<yl.letters.length;bl++)Bp[yl.letters[bl]]=yl.base;var Vp=function(t){return t.replace(GE,function(r){return Bp[r]})},XE=UE(Vp),zp=function(t){return t.replace(/^\s+|\s+$/g,"")},ZE=function(t){return"".concat(t.label," ").concat(t.value)},QE=function(t){return function(r,n){if(r.data.__isNew__)return!0;var i=ye({ignoreCase:!0,ignoreAccents:!0,stringify:ZE,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,u=i.trim,l=i.matchFrom,c=u?zp(n):n,f=u?zp(s(r)):s(r);return a&&(c=c.toLowerCase(),f=f.toLowerCase()),o&&(c=XE(c),f=Vp(f)),l==="start"?f.substr(0,c.length)===c:f.indexOf(c)>-1}},JE=["innerRef"];function eC(e){var t=e.innerRef,r=kr(e,JE),n=CS(r,"onExited","in","enter","exit","appear");return ge("input",we({ref:t},n,{css:al({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var tC=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function rC(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=(0,p.useRef)(!1),s=(0,p.useRef)(!1),u=(0,p.useRef)(0),l=(0,p.useRef)(null),c=(0,p.useCallback)(function(m,b){if(l.current!==null){var _=l.current,S=_.scrollTop,P=_.scrollHeight,A=_.clientHeight,O=l.current,j=b>0,B=P-A-S,ee=!1;B>b&&o.current&&(n&&n(m),o.current=!1),j&&s.current&&(a&&a(m),s.current=!1),j&&b>B?(r&&!o.current&&r(m),O.scrollTop=P,ee=!0,o.current=!0):!j&&-b>S&&(i&&!s.current&&i(m),O.scrollTop=0,ee=!0,s.current=!0),ee&&tC(m)}},[r,n,i,a]),f=(0,p.useCallback)(function(m){c(m,m.deltaY)},[c]),d=(0,p.useCallback)(function(m){u.current=m.changedTouches[0].clientY},[]),h=(0,p.useCallback)(function(m){var b=u.current-m.changedTouches[0].clientY;c(m,b)},[c]),v=(0,p.useCallback)(function(m){if(m){var b=_S?{passive:!1}:!1;m.addEventListener("wheel",f,b),m.addEventListener("touchstart",d,b),m.addEventListener("touchmove",h,b)}},[h,d,f]),g=(0,p.useCallback)(function(m){m&&(m.removeEventListener("wheel",f,!1),m.removeEventListener("touchstart",d,!1),m.removeEventListener("touchmove",h,!1))},[h,d,f]);return(0,p.useEffect)(function(){if(t){var m=l.current;return v(m),function(){g(m)}}},[t,v,g]),function(m){l.current=m}}var Up=["boxSizing","height","overflow","paddingRight","position"],Wp={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Hp(e){e.cancelable&&e.preventDefault()}function Kp(e){e.stopPropagation()}function Yp(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function qp(){return"ontouchstart"in window||navigator.maxTouchPoints}var Gp=!!(typeof window<"u"&&window.document&&window.document.createElement),Hi=0,ri={capture:!1,passive:!1};function nC(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,i=(0,p.useRef)({}),a=(0,p.useRef)(null),o=(0,p.useCallback)(function(u){if(Gp){var l=document.body,c=l&&l.style;if(n&&Up.forEach(function(v){var g=c&&c[v];i.current[v]=g}),n&&Hi<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,h=window.innerWidth-d+f||0;Object.keys(Wp).forEach(function(v){var g=Wp[v];c&&(c[v]=g)}),c&&(c.paddingRight="".concat(h,"px"))}l&&qp()&&(l.addEventListener("touchmove",Hp,ri),u&&(u.addEventListener("touchstart",Yp,ri),u.addEventListener("touchmove",Kp,ri))),Hi+=1}},[n]),s=(0,p.useCallback)(function(u){if(Gp){var l=document.body,c=l&&l.style;Hi=Math.max(Hi-1,0),n&&Hi<1&&Up.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),l&&qp()&&(l.removeEventListener("touchmove",Hp,ri),u&&(u.removeEventListener("touchstart",Yp,ri),u.removeEventListener("touchmove",Kp,ri)))}},[n]);return(0,p.useEffect)(function(){if(t){var u=a.current;return o(u),function(){s(u)}}},[t,o,s]),function(u){a.current=u}}function u9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var iC=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},aC={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function oC(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,i=n===void 0?!0:n,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,u=e.onTopLeave,l=rC({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:u}),c=nC({isEnabled:r}),f=function(h){l(h),c(h)};return ge(p.Fragment,null,r&&ge("div",{onClick:iC,css:aC}),t(f))}function l9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sC={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},uC=function(t){var r=t.name,n=t.onFocus;return ge("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:sC,value:"",onChange:function(){}})},lC=uC;function wl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function cC(){return wl(/^iPhone/i)}function Xp(){return wl(/^Mac/i)}function fC(){return wl(/^iPad/i)||Xp()&&navigator.maxTouchPoints>1}function dC(){return cC()||fC()}function pC(){return Xp()||dC()}var hC=function(t){return t.label},vC=function(t){return t.label},mC=function(t){return t.value},gC=function(t){return!!t.isDisabled},yC={clearIndicator:eE,container:US,control:sE,dropdownIndicator:QS,group:fE,groupHeading:pE,indicatorsContainer:YS,indicatorSeparator:rE,input:gE,loadingIndicator:aE,loadingMessage:FS,menu:IS,menuList:kS,menuPortal:VS,multiValue:_E,multiValueLabel:SE,multiValueRemove:EE,noOptionsMessage:LS,option:TE,placeholder:RE,singleValue:NE,valueContainer:HS};function c9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=_objectSpread({},e);return Object.keys(t).forEach(function(n){var i=n;e[i]?r[i]=function(a,o){return t[i](e[i](a,o),o)}:r[i]=t[i]}),r}var bC={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},wC=4,Zp=4,xC=38,_C=Zp*2,SC={baseUnit:Zp,controlHeight:xC,menuGutter:_C},xl={borderRadius:wC,colors:bC,spacing:SC},EC={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ap(),captureMenuScroll:!Ap(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:QE(),formatGroupLabel:hC,getOptionLabel:vC,getOptionValue:mC,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:gC,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!wS(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Qp(e,t,r,n){var i=nh(e,t,r),a=ih(e,t,r),o=rh(e,t),s=_o(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:n}}function xo(e,t){return e.options.map(function(r,n){if("options"in r){var i=r.options.map(function(o,s){return Qp(e,o,t,s)}).filter(function(o){return th(e,o)});return i.length>0?{type:"group",data:r,options:i,index:n}:void 0}var a=Qp(e,r,t,n);return th(e,a)?a:void 0}).filter(SS)}function Jp(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,Yu(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function eh(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,Yu(n.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(n.index,"-").concat(i.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function CC(e,t){return Jp(xo(e,t))}function th(e,t){var r=e.inputValue,n=r===void 0?"":r,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!oh(e)||!a)&&ah(e,{label:o,value:s,data:i},n)}function OC(e,t){var r=e.focusedValue,n=e.selectValue,i=n.indexOf(r);if(i>-1){var a=t.indexOf(r);if(a>-1)return r;if(i<t.length)return t[i]}return null}function AC(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var _l=function(t,r){var n,i=(n=t.find(function(a){return a.data===r}))===null||n===void 0?void 0:n.id;return i||null},rh=function(t,r){return t.getOptionLabel(r)},_o=function(t,r){return t.getOptionValue(r)};function nh(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function ih(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=_o(e,t);return r.some(function(i){return _o(e,i)===n})}function ah(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var oh=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},PC=1,sh=(function(e){Cx(r,e);var t=Px(r);function r(n){var i;if(Sx(this,r),i=t.call(this,n),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(u){i.controlRef=u},i.focusedOptionRef=null,i.getFocusedOptionRef=function(u){i.focusedOptionRef=u},i.menuListRef=null,i.getMenuListRef=function(u){i.menuListRef=u},i.inputRef=null,i.getInputRef=function(u){i.inputRef=u},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(u,l){var c=i.props,f=c.onChange,d=c.name;l.name=d,i.ariaOnChange(u,l),f(u,l)},i.setValue=function(u,l,c){var f=i.props,d=f.closeMenuOnSelect,h=f.isMulti,v=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:v}),d&&(i.setState({inputIsHiddenAfterUpdate:!h}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(u,{action:l,option:c})},i.selectOption=function(u){var l=i.props,c=l.blurInputOnSelect,f=l.isMulti,d=l.name,h=i.state.selectValue,v=f&&i.isOptionSelected(u,h),g=i.isOptionDisabled(u,h);if(v){var m=i.getOptionValue(u);i.setValue(h.filter(function(b){return i.getOptionValue(b)!==m}),"deselect-option",u)}else if(!g)f?i.setValue([].concat(Yu(h),[u]),"select-option",u):i.setValue(u,"select-option");else{i.ariaOnChange(u,{action:"select-option",option:u,name:d});return}c&&i.blurInput()},i.removeValue=function(u){var l=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(u),d=c.filter(function(v){return i.getOptionValue(v)!==f}),h=wo(l,d,d[0]||null);i.onChange(h,{action:"remove-value",removedValue:u}),i.focusInput()},i.clearValue=function(){var u=i.state.selectValue;i.onChange(wo(i.props.isMulti,[],null),{action:"clear",removedValues:u})},i.popValue=function(){var u=i.props.isMulti,l=i.state.selectValue,c=l[l.length-1],f=l.slice(0,l.length-1),d=wo(u,f,f[0]||null);c&&i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(u){return _l(i.state.focusableOptionsWithIds,u)},i.getFocusableOptionsWithIds=function(){return eh(xo(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];return vS.apply(void 0,[i.props.classNamePrefix].concat(l))},i.getOptionLabel=function(u){return rh(i.props,u)},i.getOptionValue=function(u){return _o(i.props,u)},i.getStyles=function(u,l){var c=i.props.unstyled,f=yC[u](l,c);f.boxSizing="border-box";var d=i.props.styles[u];return d?d(f,l):f},i.getClassNames=function(u,l){var c,f;return(c=(f=i.props.classNames)[u])===null||c===void 0?void 0:c.call(f,l)},i.getElementId=function(u){return"".concat(i.state.instancePrefix,"-").concat(u)},i.getComponents=function(){return BE(i.props)},i.buildCategorizedOptions=function(){return xo(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Jp(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(u,l){i.setState({ariaSelection:ye({value:u},l)})},i.onMenuMouseDown=function(u){u.button===0&&(u.stopPropagation(),u.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(u){i.blockOptionHover=!1},i.onControlMouseDown=function(u){if(!u.defaultPrevented){var l=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&i.onMenuClose():l&&i.openMenu("first"):(l&&(i.openAfterFocus=!0),i.focusInput()),u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&u.preventDefault()}},i.onDropdownIndicatorMouseDown=function(u){if(!(u&&u.type==="mousedown"&&u.button!==0)&&!i.props.isDisabled){var l=i.props,c=l.isMulti,f=l.menuIsOpen;i.focusInput(),f?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),u.preventDefault()}},i.onClearIndicatorMouseDown=function(u){u&&u.type==="mousedown"&&u.button!==0||(i.clearValue(),u.preventDefault(),i.openAfterFocus=!1,u.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(u){typeof i.props.closeMenuOnScroll=="boolean"?u.target instanceof HTMLElement&&mo(u.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(u)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(u){var l=u.touches,c=l&&l.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(u){var l=u.touches,c=l&&l.item(0);if(c){var f=Math.abs(c.clientX-i.initialTouchX),d=Math.abs(c.clientY-i.initialTouchY),h=5;i.userIsDragging=f>h||d>h}},i.onTouchEnd=function(u){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(u.target)&&i.menuListRef&&!i.menuListRef.contains(u.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(u){i.userIsDragging||i.onControlMouseDown(u)},i.onClearIndicatorTouchEnd=function(u){i.userIsDragging||i.onClearIndicatorMouseDown(u)},i.onDropdownIndicatorTouchEnd=function(u){i.userIsDragging||i.onDropdownIndicatorMouseDown(u)},i.handleInputChange=function(u){var l=i.props.inputValue,c=u.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(u){i.props.onFocus&&i.props.onFocus(u),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(u){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(u),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(u){if(!(i.blockOptionHover||i.state.focusedOption===u)){var l=i.getFocusableOptions(),c=l.indexOf(u);i.setState({focusedOption:u,focusedOptionId:c>-1?i.getFocusedOptionId(u):null})}},i.shouldHideSelectedOptions=function(){return oh(i.props)},i.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),i.focus()},i.onKeyDown=function(u){var l=i.props,c=l.isMulti,f=l.backspaceRemovesValue,d=l.escapeClearsValue,h=l.inputValue,v=l.isClearable,g=l.isDisabled,m=l.menuIsOpen,b=l.onKeyDown,_=l.tabSelectsValue,S=l.openMenuOnFocus,P=i.state,A=P.focusedOption,O=P.focusedValue,j=P.selectValue;if(!g&&!(typeof b=="function"&&(b(u),u.defaultPrevented))){switch(i.blockOptionHover=!0,u.key){case"ArrowLeft":if(!c||h)return;i.focusValue("previous");break;case"ArrowRight":if(!c||h)return;i.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(O)i.removeValue(O);else{if(!f)return;c?i.popValue():v&&i.clearValue()}break;case"Tab":if(i.isComposing||u.shiftKey||!m||!_||!A||S&&i.isOptionSelected(A,j))return;i.selectOption(A);break;case"Enter":if(u.keyCode===229)break;if(m){if(!A||i.isComposing)return;i.selectOption(A);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):v&&d&&i.clearValue();break;case" ":if(h)return;if(!m){i.openMenu("first");break}if(!A)return;i.selectOption(A);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}u.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++PC),i.state.selectValue=Sp(n.value),n.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=o[s],i.state.focusedOptionId=_l(a,o[s])}return i}return Ex(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Op(this.menuListRef,this.focusedOptionRef),pC()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,u=this.state.isFocused;(u&&!o&&i.isDisabled||u&&s&&!i.menuIsOpen)&&this.focusInput(),u&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Op(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,u=o.isFocused,l=this.buildFocusableOptions(),c=i==="first"?0:l.length-1;if(!this.props.isMulti){var f=l.indexOf(s[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=o.indexOf(s);s||(u=-1);var l=o.length-1,c=-1;if(o.length){switch(i){case"previous":u===0?c=0:u===-1?c=l:c=u-1;break;case"next":u>-1&&u<l&&(c=u+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var u=0,l=s.indexOf(o);o||(l=-1),i==="up"?u=l>0?l-1:s.length-1:i==="down"?u=(l+1)%s.length:i==="pageup"?(u=l-a,u<0&&(u=0)):i==="pagedown"?(u=l+a,u>s.length-1&&(u=s.length-1)):i==="last"&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[u])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(xl):ye(ye({},xl),this.props.theme):xl})},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=this.getStyles,s=this.getClassNames,u=this.getValue,l=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,h=f.isRtl,v=f.options,g=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:u,hasValue:g,isMulti:d,isRtl:h,options:v,selectOption:l,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return nh(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return ih(this.props,i,a)}},{key:"filterOption",value:function(i,a){return ah(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var i=this.props,a=i.isDisabled,o=i.isSearchable,s=i.inputId,u=i.inputValue,l=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,h=this.getComponents(),v=h.Input,g=this.state,m=g.inputIsHidden,b=g.ariaSelection,_=this.commonProps,S=s||this.getElementId("input"),P=ye(ye(ye({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?b?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?p.createElement(v,we({},_,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:S,innerRef:this.getInputRef,isDisabled:a,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:u},P)):p.createElement(eC,we({id:S,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:vo,onFocus:this.onInputFocus,disabled:a,tabIndex:l,inputMode:"none",form:c,value:""},P))})},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,u=a.MultiValueLabel,l=a.MultiValueRemove,c=a.SingleValue,f=a.Placeholder,d=this.commonProps,h=this.props,v=h.controlShouldRenderValue,g=h.isDisabled,m=h.isMulti,b=h.inputValue,_=h.placeholder,S=this.state,P=S.selectValue,A=S.focusedValue,O=S.isFocused;if(!this.hasValue()||!v)return b?null:p.createElement(f,we({},d,{key:"placeholder",isDisabled:g,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),_);if(m)return P.map(function(B,ee){var te=B===A,G="".concat(i.getOptionLabel(B),"-").concat(i.getOptionValue(B));return p.createElement(o,we({},d,{components:{Container:s,Label:u,Remove:l},isFocused:te,isDisabled:g,key:G,index:ee,removeProps:{onClick:function(){return i.removeValue(B)},onTouchEnd:function(){return i.removeValue(B)},onMouseDown:function(ce){ce.preventDefault()}},data:B}),i.formatOptionLabel(B,"value"))});if(b)return null;var j=P[0];return p.createElement(c,we({},d,{data:j,isDisabled:g}),this.formatOptionLabel(j,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,u=s.isDisabled,l=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||u||!this.hasValue()||l)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(a,we({},o,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,u=s.isDisabled,l=s.isLoading,c=this.state.isFocused;if(!a||!l)return null;var f={"aria-hidden":"true"};return p.createElement(a,we({},o,{innerProps:f,isDisabled:u,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,u=this.props.isDisabled,l=this.state.isFocused;return p.createElement(o,we({},s,{isDisabled:u,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(a,we({},o,{innerProps:l,isDisabled:s,isFocused:u}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,u=a.Menu,l=a.MenuList,c=a.MenuPortal,f=a.LoadingMessage,d=a.NoOptionsMessage,h=a.Option,v=this.commonProps,g=this.state.focusedOption,m=this.props,b=m.captureMenuScroll,_=m.inputValue,S=m.isLoading,P=m.loadingMessage,A=m.minMenuHeight,O=m.maxMenuHeight,j=m.menuIsOpen,B=m.menuPlacement,ee=m.menuPosition,te=m.menuPortalTarget,G=m.menuShouldBlockScroll,ae=m.menuShouldScrollIntoView,ce=m.noOptionsMessage,ve=m.onMenuScrollToTop,me=m.onMenuScrollToBottom;if(!j)return null;var be=function(je,ct){var ft=je.type,et=je.data,ot=je.isDisabled,ht=je.isSelected,le=je.label,ue=je.value,Ce=g===et,J=ot?void 0:function(){return i.onOptionHover(et)},tt=ot?void 0:function(){return i.selectOption(et)},Te="".concat(i.getElementId("option"),"-").concat(ct),Mt={id:Te,onClick:tt,onMouseMove:J,onMouseOver:J,tabIndex:-1,role:"option","aria-selected":i.state.isAppleDevice?void 0:ht};return p.createElement(h,we({},v,{innerProps:Mt,data:et,isDisabled:ot,isSelected:ht,key:Te,label:le,type:ft,value:ue,isFocused:Ce,innerRef:Ce?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(je.data,"menu"))},_e;if(this.hasOptions())_e=this.getCategorizedOptions().map(function(Ee){if(Ee.type==="group"){var je=Ee.data,ct=Ee.options,ft=Ee.index,et="".concat(i.getElementId("group"),"-").concat(ft),ot="".concat(et,"-heading");return p.createElement(o,we({},v,{key:et,data:je,options:ct,Heading:s,headingProps:{id:ot,data:Ee.data},label:i.formatGroupLabel(Ee.data)}),Ee.options.map(function(ht){return be(ht,"".concat(ft,"-").concat(ht.index))}))}else if(Ee.type==="option")return be(Ee,"".concat(Ee.index))});else if(S){var Se=P({inputValue:_});if(Se===null)return null;_e=p.createElement(f,v,Se)}else{var Pe=ce({inputValue:_});if(Pe===null)return null;_e=p.createElement(d,v,Pe)}var He={minMenuHeight:A,maxMenuHeight:O,menuPlacement:B,menuPosition:ee,menuShouldScrollIntoView:ae},kt=p.createElement(jS,we({},v,He),function(Ee){var je=Ee.ref,ct=Ee.placerProps,ft=ct.placement,et=ct.maxHeight;return p.createElement(u,we({},v,He,{innerRef:je,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:S,placement:ft}),p.createElement(oC,{captureEnabled:b,onTopArrive:ve,onBottomArrive:me,lockEnabled:G},function(ot){return p.createElement(l,we({},v,{innerRef:function(le){i.getMenuListRef(le),ot(le)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:i.getElementId("listbox")},isLoading:S,maxHeight:et,focusedOption:g}),_e)}))});return te||ee==="fixed"?p.createElement(c,we({},v,{appendTo:te,controlElement:this.controlRef,menuPlacement:B,menuPosition:ee}),kt):kt}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,u=a.isMulti,l=a.name,c=a.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!s)return p.createElement(lC,{name:l,onFocus:this.onValueInputFocus});if(!(!l||s))if(u)if(o){var d=f.map(function(g){return i.getOptionValue(g)}).join(o);return p.createElement("input",{name:l,type:"hidden",value:d})}else{var h=f.length>0?f.map(function(g,m){return p.createElement("input",{key:"i-".concat(m),name:l,type:"hidden",value:i.getOptionValue(g)})}):p.createElement("input",{name:l,type:"hidden",value:""});return p.createElement("div",null,h)}else{var v=f[0]?this.getOptionValue(f[0]):"";return p.createElement("input",{name:l,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,u=a.focusedValue,l=a.isFocused,c=a.selectValue,f=this.getFocusableOptions();return p.createElement(qE,we({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:u,isFocused:l,selectValue:c,focusableOptions:f,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,u=i.ValueContainer,l=this.props,c=l.className,f=l.id,d=l.isDisabled,h=l.menuIsOpen,v=this.state.isFocused,g=this.commonProps=this.getCommonProps();return p.createElement(s,we({},g,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:v}),this.renderLiveRegion(),p.createElement(a,we({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:v,menuIsOpen:h}),p.createElement(u,we({},g,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(o,we({},g,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,u=a.inputIsHiddenAfterUpdate,l=a.ariaSelection,c=a.isFocused,f=a.prevWasFocused,d=a.instancePrefix,h=i.options,v=i.value,g=i.menuIsOpen,m=i.inputValue,b=i.isMulti,_=Sp(v),S={};if(o&&(v!==o.value||h!==o.options||g!==o.menuIsOpen||m!==o.inputValue)){var P=g?CC(i,_):[],A=g?eh(xo(i,_),"".concat(d,"-option")):[],O=s?OC(a,_):null,j=AC(a,P),B=_l(A,j);S={selectValue:_,focusedOption:j,focusedOptionId:B,focusableOptionsWithIds:A,focusedValue:O,clearFocusValueOnUpdate:!1}}var ee=u!=null&&i!==o?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},te=l,G=c&&f;return c&&!G&&(te={value:wo(b,_,_[0]||null),options:_,action:"initial-input-focus"},G=!f),l?.action==="initial-input-focus"&&(te=null),ye(ye(ye({},S),ee),{},{prevProps:i,ariaSelection:te,prevWasFocused:G})}}]),r})(p.Component);sh.defaultProps=EC;var MC=(0,p.forwardRef)(function(e,t){var r=_x(e);return p.createElement(sh,we({ref:t},r))}),uh=MC,f9=(function(e){var t=e.nonce,r=e.children,n=e.cacheKey,i=useMemo(function(){return createCache({key:n,nonce:t})},[n,t]);return React.createElement(CacheProvider,{value:i},r)});let ni={};function d9(e,t=!1,r=!0){const n=JSON.stringify(e);if(!t&&ni[n])return ni[n];r&&(e.path=addQueryArgs(e.path,{timestamp:Date.now()}));const i=apiFetch(e).then(a=>a).catch(a=>{throw delete ni[n],a});return ni[n]=i,i}function Sl(e){if(e===void 0){ni={};return}delete ni[e]}var TC=window.lodash,IC=De.n(TC),jC=(e=>(e.Results="results_cache",e.Image="image_cache",e))(jC||{}),lh=()=>{const e=(0,Uu.addQueryArgs)("/ajax-search-pro/options/cache"),t=o=>x()({path:o}),{data:r,isLoading:n,mutate:i,error:a}=Qa(e,t,{revalidateIfStale:!1,revalidateOnFocus:!0,revalidateOnReconnect:!1,revalidateOnMount:!0});return a?{data:void 0,error:a,isLoading:n,mutate:i}:{data:r||{},error:void 0,isLoading:n,mutate:i}};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RC=Ve("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var DC=({className:e,children:t})=>(0,w.jsxs)("div",{className:`wdo:flex wdo:gap-3 wdo:items-center wdo:p-3 wdo:rounded-sm wdo:border wdo:border-blue-500/30 wdo:bg-blue-500/10 wdo:text-blue-700 wdo:dark:text-blue-400 wdo:text-sm ${e??""}`,children:[(0,w.jsx)(RC,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"}),(0,w.jsx)("div",{children:t})]}),m9=null,g9=null;const kC=({...e})=>(0,w.jsx)(uh,{classNamePrefix:"wdo:select",...e}),y9=({...e})=>jsx(Creatable,{classNamePrefix:"wdo:select",...e});var NC=kC;const LC=(0,p.forwardRef)(({className:e,value:t,defaultValue:r,onChange:n,onFocus:i,onBlur:a,min:o,max:s,...u},l)=>{const[c,f]=(0,p.useState)(!1),[d,h]=(0,p.useState)(""),v=b=>{const _=b.currentTarget.value;if(h(_),_!==""&&!isNaN(parseInt(_))){let S=parseInt(_);o!==void 0&&S<o?S=o:s!==void 0&&S>s&&(S=s),n?.(S,b)}},g=b=>{f(!0),h(b.currentTarget.value),i?.(b)},m=b=>{f(!1);let _;const S=b.currentTarget.value;if(S==="")_=o??0;else{let A=parseInt(S);o!==void 0&&A<o?_=o:s!==void 0&&A>s?_=s:_=A}const P=S===""?NaN:parseInt(S);(_!==P||isNaN(P))&&n?.(_,b),a?.(_,b)};return(0,w.jsx)("input",{type:"number",onChange:v,onFocus:g,onBlur:m,className:"wdo:input wdo:input-number "+e,defaultValue:r,value:c?d:t,min:o,max:s,ref:l,...u})}),xr=[{label:(0,L.__)("Custom","ajax-search-pro"),value:null},{label:(0,L.__)("1 hour","ajax-search-pro"),value:3600},{label:(0,L.__)("2 hours","ajax-search-pro"),value:7200},{label:(0,L.__)("6 hours","ajax-search-pro"),value:21600},{label:(0,L.__)("12 hours","ajax-search-pro"),value:43200},{label:(0,L.__)("1 day","ajax-search-pro"),value:86400},{label:(0,L.__)("2 days","ajax-search-pro"),value:172800},{label:(0,L.__)("7 days","ajax-search-pro"),value:604800},{label:(0,L.__)("14 days","ajax-search-pro"),value:1209600},{label:(0,L.__)("30 days","ajax-search-pro"),value:2592e3},{label:(0,L.__)("Never","ajax-search-pro"),value:2147483647}],FC=({value:e,defaultValue:t,onChange:r,tabIndex:n,...i})=>{const a=(0,p.useMemo)(()=>xr.find(g=>g.value===e)!==void 0,[e,xr]),[o,s]=(0,p.useState)(!a),[u,l]=(0,p.useState)(e??t??1800),c=(0,p.useMemo)(()=>e&&!o?xr.find(g=>g.value===e):xr[0],[e,o,xr]),f=(0,p.useMemo)(()=>t&&!o?xr.find(g=>g.value===t):xr[0],[t,o,xr]),d=g=>{g&&(s(g.value===null),r?.(g.value!==null?g.value:u))},h=g=>{l(g),r?.(g)},v=g=>{xr.find(m=>m.value===g)!==void 0&&s(!1)};return(0,w.jsxs)("div",{className:"wdo:flex wdo:gap-4 wdo:flex-wrap wdo:grow-0 wdo:items-center",children:[(0,w.jsx)(NC,{options:xr,value:c,defaultValue:f,onChange:d,isMulti:!1,tabIndex:n,...i}),(0,w.jsxs)("div",{className:o?"":"wdo:hidden",children:[(0,w.jsx)(LC,{className:"wdo:w-32",value:e,onChange:h,onBlur:v,min:1,max:2147483647,tabIndex:n}),"\xA0",(0,w.jsx)("span",{className:"wdo:option-description",children:(0,L.__)("seconds","ajax-search-pro")})]})]})},$C=()=>{const[e,t]=(0,p.useState)(null),{data:r,isLoading:n,error:i,mutate:a}=lh(),[o,s]=(0,p.useState)(!1),[u,l]=(0,p.useState)(!1),[c,f]=(0,p.useState)(!1),[d,h]=(0,p.useState)(!1),{addSuccess:v,addError:g}=fe(),m=(0,p.useContext)(Ka);(0,p.useEffect)(()=>{r!==void 0&&t(r)},[n]);const b=()=>{s(!0),x()({path:"/ajax-search-pro/options/cache",headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({...e})}).then(O=>{t(O),v((0,L.__)("Options saved successfully!","ajax-search-pro"))}).catch(O=>{console.log(O),g(O)}).finally(()=>{Sl(),a(),s(!1),m?.setConfirmBeforeSwap(null)})},_=()=>{h(!0),x()({path:"/ajax-search-pro/options/cache/reset",headers:{"Content-Type":"application/json"},method:"POST"}).then(O=>{console.log(O),t(O),v((0,L.__)("Options reset successfully!","ajax-search-pro"))}).catch(O=>{console.log(O),g(O)}).finally(()=>{Sl(),a(),h(!1),l(!1),m?.setConfirmBeforeSwap(null)})},S=()=>{h(!0),x()({path:"/ajax-search-pro/cache/purge",headers:{"Content-Type":"application/json"},method:"POST"}).then(O=>{console.log(O),v((0,L.__)("Successfully purged","ajax-search-pro")+" "+O.purged+" "+(0,L.__)("items from the cache.","ajax-search-pro"))}).catch(O=>{console.log(O),g(O)}).finally(()=>{Sl(),a(),h(!1),f(!1),m?.setConfirmBeforeSwap(null)})},P=(O,j)=>{if(e===null)return;const B={...e};B[O]={value:j},t(B),IC().isEqual(B,r)?m?.setConfirmBeforeSwap(null):m?.setConfirmBeforeSwap((0,L.__)("There are unsaved changes, are you sure you want to leave?","ajax-search-pro"))};if(n||e===null||Object.keys(e).length===0)return(0,w.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:card wdo:m-4",children:(0,w.jsx)("p",{className:"wdo:p-6",children:(0,L.__)("Loading...","ajax-search-pro")})});if(i)return console.log(i),(0,w.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:card wdo:m-4",children:(0,w.jsx)("p",{className:"wdo:p-6",children:(0,L.__)("Error loading options, please reload the page.","ajax-search-pro")})});const A=[{label:(0,L.__)("Super File","ajax-search-pro"),value:"super_file"},{label:(0,L.__)("File","ajax-search-pro"),value:"file"},{label:(0,L.__)("Database","ajax-search-pro"),value:"database"}];return(0,w.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:card wdo:m-4",children:[(0,w.jsx)("div",{className:"wdo:p-6",children:(0,w.jsx)("h1",{className:"wdo:text-[1.8em] wdo:dark:text-white",children:"Settings"})}),(0,w.jsxs)("div",{children:[(0,w.jsx)(ki,{label:(0,L.__)("Results cache enabled","ajax-search-pro"),description:(0,L.__)("Greatly improves repeated live search queries by storing the responses in a cache.","ajax-search-pro"),children:(0,w.jsx)(Wu,{value:e?.status.value,onChange:O=>{P("status",O)}})}),(0,w.jsx)(ki,{disabled:!e?.status.value,label:(0,L.__)("Results cache method","ajax-search-pro"),description:(0,L.__)("Super File is recommended for the fastest responses. In case of compatibility issues use File or Database instead.","ajax-search-pro"),optionDescription:(0,L.__)("Default: Super File","ajax-search-pro"),children:(0,w.jsx)(uh,{classNamePrefix:"wdo:select",tabIndex:e?.status.value?0:-1,onChange:O=>{P("cache_type",O?.value??"")},value:A.find(O=>O.value===e?.cache_type.value),options:A})}),(0,w.jsx)(ki,{disabled:!e?.status.value,label:(0,L.__)("Purge the results cache when a post is created/updated?","ajax-search-pro"),description:(0,L.__)("Great when content is not created or updated frequently.","ajax-search-pro"),children:(0,w.jsx)(Wu,{value:e?.clear_on_save.value,tabIndex:e?.status.value?0:-1,onChange:O=>{P("clear_on_save",O)}})}),(0,w.jsx)(ki,{disabled:!e?.status.value,label:(0,L.__)("Results cache expiration","ajax-search-pro"),description:(0,L.__)("Records older than this are considered stale and will be cleared automatically from the cache.","ajax-search-pro"),optionDescription:(0,L.__)("Default: 7 days","ajax-search-pro"),children:(0,w.jsx)(FC,{value:e?.results_max_age.value,tabIndex:e?.status.value?0:-1,onChange:O=>{P("results_max_age",O)}})}),(0,w.jsx)(ki,{label:(0,L.__)("Cache images by cropping them","ajax-search-pro"),description:(0,L.__)("Crops images and stores them in a cache folder for faster access.","ajax-search-pro"),children:(0,w.jsx)(Wu,{value:e?.crop_images.value,tabIndex:e?.status.value?0:-1,onChange:O=>{P("crop_images",O)}})}),(0,w.jsx)("div",{className:"wdo:p-6",children:(0,w.jsx)(DC,{children:(0,L.__)("The results and image cache is automatically purged when the search instance settings or these settings are saved.","ajax-search-pro")})})]}),(0,w.jsxs)("div",{className:"wdo:p-6 wdo:flex wdo:justify-between wdo:gap-6 wdo:flex-wrap",children:[(0,w.jsxs)("div",{className:"wdo:flex wdo:gap-6",children:[(0,w.jsx)(pr,{isLoading:o,disabled:o||d,onClick:O=>{O.preventDefault(),b()},children:"Save!"}),(0,w.jsx)(Xe,{isLoading:d,disabled:o||d,onClick:()=>l(!0),children:(0,L.__)("Reset to defaults","ajax-search-pro")})]}),(0,w.jsx)("div",{className:"wdo:flex wdo:gap-6",children:(0,w.jsx)(Xe,{className:"wdo:border-red-400 wdo:bg-transparent wdo:text-red-400 wdo:hover:bg-transparent",isLoading:d,disabled:o||d,onClick:()=>f(!0),children:(0,L.__)("Purge Cache","ajax-search-pro")})})]}),(0,w.jsxs)(W,{isOpen:c,onOverlayClick:()=>f(!1),children:[(0,w.jsx)("h2",{className:"wdo:mb-2",children:(0,L.__)("Confirm","ajax-search-pro")}),(0,w.jsx)("p",{children:(0,L.__)("Are you sure you want to purge the cache?","ajax-search-pro")}),(0,w.jsx)("p",{children:(0,L.__)("This will clear the cache database and all the cached results and cached images.","ajax-search-pro")}),(0,w.jsxs)("div",{className:"wdo:flex wdo:mt-6 wdo:gap-6",children:[(0,w.jsx)(pr,{isLoading:d,disabled:o||d,onClick:O=>{O.preventDefault(),S()},children:(0,L.__)("Purge","ajax-search-pro")}),(0,w.jsx)(Xe,{disabled:o||d,onClick:O=>{f(!1)},children:(0,L.__)("Cancel","ajax-search-pro")})]})]}),(0,w.jsxs)(W,{isOpen:u,onOverlayClick:()=>l(!1),children:[(0,w.jsx)("h2",{className:"wdo:mb-2",children:(0,L.__)("Confirm","ajax-search-pro")}),(0,w.jsx)("p",{children:(0,L.__)("Are you sure you want to reset the settings to defaults?","ajax-search-pro")}),(0,w.jsxs)("div",{className:"wdo:flex wdo:mt-6 wdo:gap-6",children:[(0,w.jsx)(pr,{isLoading:d,disabled:o||d,onClick:O=>{O.preventDefault(),_()},children:(0,L.__)("Reset","ajax-search-pro")}),(0,w.jsx)(Xe,{disabled:o||d,onClick:O=>{l(!1)},children:(0,L.__)("Cancel","ajax-search-pro")})]})]})]})};var ii=!0;const BC=(e,t)=>e==null?t:t==null?e:Math.max(e,t),El=new WeakMap,b9={onUpdate(e,t,r){if(El.set(r,void 0),!r.computedTrend)return;const n=t.integer.concat(t.fraction).filter(s=>s.type==="integer"||s.type==="fraction"),i=e.integer.concat(e.fraction).filter(s=>s.type==="integer"||s.type==="fraction"),a=n.find(s=>!i.find(u=>u.pos===s.pos&&u.value===s.value)),o=i.find(s=>!n.find(u=>s.pos===u.pos&&s.value===u.value));El.set(r,BC(a?.pos,o?.pos))},getDelta(e,t,r){const n=e-t,i=El.get(r.flow);if(!n&&i!=null&&i>=r.pos)return r.length*r.flow.computedTrend}},nn=(e,t,r)=>{const n=document.createElement(e),[i,a]=Array.isArray(t)?[void 0,t]:[t,r];return i&&Object.assign(n,i),a?.forEach(o=>n.appendChild(o)),n},VC=(e,t)=>{var r;return t==="left"?e.offsetLeft:(((r=e.offsetParent instanceof HTMLElement?e.offsetParent:null)==null?void 0:r.offsetWidth)??0)-e.offsetWidth-e.offsetLeft},zC=e=>e.offsetWidth>0&&e.offsetHeight>0,UC=(e,t)=>{ii&&!customElements.get(e)&&customElements.define(e,t)};function WC(e,t,{reverse:r=!1}={}){const n=e.length;for(let i=r?n-1:0;r?i>=0:i<n;r?i--:i++)t(e[i],i)}function HC(e,t,r,n){const i=t.formatToParts(e);r&&i.unshift({type:"prefix",value:r}),n&&i.push({type:"suffix",value:n});const a=[],o=[],s=[],u=[],l={},c=g=>`${g}:${l[g]=(l[g]??-1)+1}`;let f="",d=!1,h=!1;for(const g of i){f+=g.value;const m=g.type==="minusSign"||g.type==="plusSign"?"sign":g.type;m==="integer"?(d=!0,o.push(...g.value.split("").map(b=>({type:m,value:parseInt(b)})))):m==="group"?o.push({type:m,value:g.value}):m==="decimal"?(h=!0,s.push({type:m,value:g.value,key:c(m)})):m==="fraction"?s.push(...g.value.split("").map(b=>({type:m,value:parseInt(b),key:c(m),pos:-1-l[m]}))):(d||h?u:a).push({type:m,value:g.value,key:c(m)})}const v=[];for(let g=o.length-1;g>=0;g--){const m=o[g];v.unshift(m.type==="integer"?{...m,key:c(m.type),pos:l[m.type]}:{...m,key:c(m.type)})}return{pre:a,integer:v,fraction:s,post:u,valueAsString:f,value:typeof e=="string"?parseFloat(e):e}}const KC=String.raw,ch=String.raw,YC=ii&&(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0})(),qC=ii&&typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),fh=ii&&typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,So="--_number-flow-d-opacity",Cl="--_number-flow-d-width",Eo="--_number-flow-dx",Ol="--_number-flow-d",GC=(()=>{try{return CSS.registerProperty({name:So,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:Eo,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:Cl,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:Ol,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),Al="var(--number-flow-char-height, 1em)",Nr="var(--number-flow-mask-height, 0.25em)",Pl=`calc(${Nr} / 2)`,Ml="var(--number-flow-mask-width, 0.5em)",En=`calc(${Ml} / var(--scale-x))`,Co="#000 0, transparent 71%",dh=ch`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${Al} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${Cl}) / var(--width));transform:translateX(var(${Eo})) scaleX(var(--scale-x));margin:0 calc(-1 * ${Ml});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${En},#000 calc(100% - ${En}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${Nr},#000 calc(100% - ${Nr}),transparent 100% ),radial-gradient(at bottom right,${Co}),radial-gradient(at bottom left,${Co}),radial-gradient(at top left,${Co}),radial-gradient(at top right,${Co});-webkit-mask-size:100% calc(100% - ${Nr} * 2),calc(100% - ${En} * 2) 100%,${En} ${Nr},${En} ${Nr},${En} ${Nr},${En} ${Nr};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${Pl} ${Ml};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${Eo})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${Ol})}.digit__num,.number .section::after{padding:${Pl} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${So}))}`,XC=ii?HTMLElement:class{},ZC=ch`:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:${Al} !important}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:${Pl} 0}.symbol{white-space:pre}`,QC=e=>`<span class="${e.type==="integer"||e.type==="fraction"?"digit":"symbol"}" part="${e.type==="integer"||e.type==="fraction"?`digit ${e.type}-digit`:`symbol ${e.type}`}">${e.value}</span>`,Oo=(e,t)=>`<span part="${t}">${e.reduce((r,n)=>r+QC(n),"")}</span>`,JC=e=>KC`<template shadowroot="open" shadowrootmode="open"
			><style>
				${ZC}</style
			><span role="img" aria-label="${e.valueAsString}"
				>${Oo(e.pre,"left")}<span part="number" class="number"
					>${Oo(e.integer,"integer")}${Oo(e.fraction,"fraction")}</span
				>${Oo(e.post,"right")}</span
			></template
		><span
			style="font-kerning: none; display: inline-block; line-height: ${Al} !important; padding: ${Nr} 0;"
			>${e.valueAsString}</span
		>`,eO=qC&&YC&&GC;let Ao;class ph extends XC{constructor(){super(),this.created=!1,this.batched=!1;const{animated:t,...r}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,r)}get animated(){return this._animated}set animated(t){var r;this.animated!==t&&(this._animated=t,(r=this.shadowRoot)==null||r.getAnimations().forEach(n=>n.finish()))}set data(t){var r;if(t==null)return;const{pre:n,integer:i,fraction:a,post:o,value:s}=t;if(this.created){const u=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(u.value,s):this.trend,this.computedAnimated=eO&&this._animated&&(!this.respectMotionPreference||!(fh!=null&&fh.matches))&&zC(this),(r=this.plugins)==null||r.forEach(l=>{var c;return(c=l.onUpdate)==null?void 0:c.call(l,t,u,this)}),this.batched||this.willUpdate(),this._pre.update(n),this._num.update({integer:i,fraction:a}),this._post.update(o),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}if(typeof CSSStyleSheet<"u"&&this.shadowRoot.adoptedStyleSheets)Ao||(Ao=new CSSStyleSheet,Ao.replaceSync(dh)),this.shadowRoot.adoptedStyleSheets=[Ao];else{const u=document.createElement("style");u.textContent=dh,this.shadowRoot.appendChild(u)}this._pre=new mh(this,n,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new tO(this,i,a),this.shadowRoot.appendChild(this._num.el),this._post=new mh(this,o,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(r=>r.finished)).then(()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=t}}ph.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(e,t)=>Math.sign(t-e),respectMotionPreference:!0,plugins:void 0,digits:void 0};class tO{constructor(t,r,n,{className:i,...a}={}){this.flow=t,this._integer=new vh(t,r,{justify:"right",part:"integer"}),this._fraction=new vh(t,n,{justify:"left",part:"fraction"}),this._inner=nn("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=nn("span",{...a,part:"number",className:`number ${i??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:r}){this._integer.update(t),this._fraction.update(r)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const r=this._prevLeft-t.left,n=this.el.offsetWidth,i=this._prevWidth-n;this.el.style.setProperty("--width",String(n)),this.el.animate({[Eo]:[`${r}px`,"0px"],[Cl]:[i,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class hh{constructor(t,r,{justify:n,className:i,...a},o){this.flow=t,this.children=new Map,this.onCharRemove=u=>()=>{this.children.delete(u)},this.justify=n;const s=r.map(u=>this.addChar(u).el);this.el=nn("span",{...a,className:`section section--justify-${n} ${i??""}`},o?o(s):s)}addChar(t,{startDigitsAtZero:r=!1,...n}={}){const i=t.type==="integer"||t.type==="fraction"?new yh(this,t.type,r?0:t.value,t.pos,{...n,onRemove:this.onCharRemove(t.key)}):new rO(this,t.type,t.value,{...n,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,i),i}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach(r=>{r.el.style.top=`${r.el.offsetTop}px`,r.el.style[this.justify]=`${VC(r.el,this.justify)}px`}),t.forEach(r=>{r.el.setAttribute("inert",""),r.present=!1})}addNewAndUpdateExisting(t){const r=new Map,n=new Map,i=this.justify==="left",a=i?"prepend":"append";if(WC(t,o=>{let s;this.children.has(o.key)?(s=this.children.get(o.key),n.set(o,s),this.unpop(s),s.present=!0):(s=this.addChar(o,{startDigitsAtZero:!0,animateIn:!0}),r.set(o,s)),this.el[a](s.el)},{reverse:i}),this.flow.computedAnimated){const o=this.el.getBoundingClientRect();r.forEach(s=>{s.willUpdate(o)})}r.forEach((o,s)=>{o.update(s.value)}),n.forEach((o,s)=>{o.update(s.value)})}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach(r=>r.willUpdate(t))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach(i=>i.didUpdate(t));const r=t[this.justify],n=this._prevOffset-r;n&&this.children.size&&this.el.animate({transform:[`translateX(${n}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class vh extends hh{update(t){const r=new Map;this.children.forEach((n,i)=>{t.find(a=>a.key===i)||r.set(i,n),this.unpop(n)}),this.addNewAndUpdateExisting(t),r.forEach(n=>{n instanceof yh&&n.update(0)}),this.pop(r)}}class mh extends hh{update(t){const r=new Map;this.children.forEach((n,i)=>{t.find(a=>a.key===i)||r.set(i,n)}),this.pop(r),this.addNewAndUpdateExisting(t)}}class Tl{constructor(t,r,{onRemove:n,animateIn:i=!1}={}){this.flow=t,this.el=r,this._present=!0,this._remove=()=>{var a;this.el.remove(),(a=this._onRemove)==null||a.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&i&&this.el.animate({[So]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=n}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[So]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}}class gh extends Tl{constructor(t,r,n,i){super(t.flow,n,i),this.section=t,this.value=r,this.el=n}}class yh extends gh{constructor(t,r,n,i,a){var o,s;const u=(((s=(o=t.flow.digits)==null?void 0:o[i])==null?void 0:s.max)??9)+1,l=Array.from({length:u}).map((f,d)=>{const h=nn("span",{className:"digit__num"},[document.createTextNode(String(d))]);return d!==n&&h.setAttribute("inert",""),h.style.setProperty("--n",String(d)),h}),c=nn("span",{part:`digit ${r}-digit`,className:"digit"},l);c.style.setProperty("--current",String(n)),c.style.setProperty("--length",String(u)),super(t,n,c,a),this.pos=i,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=l,this.length=u}willUpdate(t){const r=this.el.getBoundingClientRect();this._prevValue=this.value;const n=r[this.section.justify]-t[this.section.justify],i=r.width/2;this._prevCenter=this.section.justify==="left"?n+i:n-i}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach((r,n)=>n===t?r.removeAttribute("inert"):r.setAttribute("inert","")),this.value=t}didUpdate(t){const r=this.el.getBoundingClientRect(),n=r[this.section.justify]-t[this.section.justify],i=r.width/2,a=this.section.justify==="left"?n+i:n-i,o=this._prevCenter-a;o&&this.el.animate({transform:[`translateX(${o}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const s=this.getDelta();s&&(this.el.classList.add("is-spinning"),this.el.animate({[Ol]:[-s,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var t;if(this.flow.plugins)for(const i of this.flow.plugins){const a=(t=i.getDelta)==null?void 0:t.call(i,this.value,this._prevValue,this);if(a!=null)return a}const r=this.value-this._prevValue,n=this.flow.computedTrend||Math.sign(r);return n<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:n>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:r}}class rO extends gh{constructor(t,r,n,i){const a=nn("span",{className:"symbol__value",textContent:n});super(t,n,nn("span",{part:`symbol ${r}`,className:"symbol"},[a]),i),this.type=r,this._children=new Map,this._onChildRemove=o=>()=>{this._children.delete(o)},this._children.set(n,new Tl(this.flow,a,{onRemove:this._onChildRemove(n)}))}willUpdate(t){if(this.type==="decimal")return;const r=this.el.getBoundingClientRect();this._prevOffset=r[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const r=this._children.get(this.value);r&&(r.present=!1);const n=this._children.get(t);if(n)n.present=!0;else{const i=nn("span",{className:"symbol__value",textContent:t});this.el.appendChild(i),this._children.set(t,new Tl(this.flow,i,{animateIn:!0,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const r=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],n=this._prevOffset-r;n&&this.el.animate({transform:[`translateX(${n}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const Il=parseInt(p.version.match(/^(\d+)\./)?.[1])>=19,nO=["data","digits"];class jl extends ph{attributeChangedCallback(t,r,n){this[t]=JSON.parse(n)}}jl.observedAttributes=Il?[]:nO,UC("number-flow-react",jl);const iO={},bh=Il?e=>e:JSON.stringify;function wh(e){const{transformTiming:t,spinTiming:r,opacityTiming:n,animated:i,respectMotionPreference:a,trend:o,plugins:s,...u}=e;return[{transformTiming:t,spinTiming:r,opacityTiming:n,animated:i,respectMotionPreference:a,trend:o,plugins:s},u]}class aO extends p.Component{updateProperties(t){if(!this.el)return;this.el.batched=!this.props.isolate;const[r]=wh(this.props);Object.entries(r).forEach(([n,i])=>{this.el[n]=i??jl.defaultProps[n]}),t?.onAnimationsStart&&this.el.removeEventListener("animationsstart",t.onAnimationsStart),this.props.onAnimationsStart&&this.el.addEventListener("animationsstart",this.props.onAnimationsStart),t?.onAnimationsFinish&&this.el.removeEventListener("animationsfinish",t.onAnimationsFinish),this.props.onAnimationsFinish&&this.el.addEventListener("animationsfinish",this.props.onAnimationsFinish)}componentDidMount(){this.updateProperties(),Il&&this.el&&(this.el.digits=this.props.digits,this.el.data=this.props.data)}getSnapshotBeforeUpdate(t){if(this.updateProperties(t),t.data!==this.props.data){if(this.props.group)return this.props.group.willUpdate(),()=>this.props.group?.didUpdate();if(!this.props.isolate)return this.el?.willUpdate(),()=>this.el?.didUpdate()}return null}componentDidUpdate(t,r,n){n?.()}handleRef(t){this.props.innerRef&&(this.props.innerRef.current=t),this.el=t}render(){const[t,{innerRef:r,className:n,data:i,willChange:a,isolate:o,group:s,digits:u,onAnimationsStart:l,onAnimationsFinish:c,...f}]=wh(this.props);return p.createElement("number-flow-react",{ref:this.handleRef,"data-will-change":a?"":void 0,class:n,...f,dangerouslySetInnerHTML:{__html:ii?"":JC(i)},suppressHydrationWarning:!0,digits:bh(u),data:bh(i)})}constructor(t){super(t),this.handleRef=this.handleRef.bind(this)}}const Po=p.forwardRef(function({value:t,locales:r,format:n,prefix:i,suffix:a,...o},s){p.useImperativeHandle(s,()=>u.current,[]);const u=p.useRef(),l=p.useContext(xh);l?.useRegister(u);const c=p.useMemo(()=>r?JSON.stringify(r):"",[r]),f=p.useMemo(()=>n?JSON.stringify(n):"",[n]),d=p.useMemo(()=>{const h=iO[`${c}:${f}`]??=new Intl.NumberFormat(r,n);return HC(t,h,i,a)},[t,c,f,i,a]);return p.createElement(aO,{...o,group:l,data:d,innerRef:u})}),xh=p.createContext(void 0);function x9({children:e}){const t=React.useRef(new Set),r=React.useRef(!1),n=React.useRef(new WeakMap),i=React.useMemo(()=>({useRegister(a){React.useEffect(()=>(t.current.add(a),()=>{t.current.delete(a)}),[])},willUpdate(){r.current||(r.current=!0,t.current.forEach(a=>{const o=a.current;!o||!o.created||(o.willUpdate(),n.current.set(o,!0))}))},didUpdate(){t.current.forEach(a=>{const o=a.current;!o||!n.current.get(o)||(o.didUpdate(),n.current.delete(o))}),r.current=!1}}),[]);return React.createElement(xh.Provider,{value:i},e)}const oO=()=>React.useSyncExternalStore(()=>()=>{},()=>canAnimate,()=>!1),sO=()=>React.useSyncExternalStore(e=>(prefersReducedMotion?.addEventListener("change",e),()=>prefersReducedMotion?.removeEventListener("change",e)),()=>prefersReducedMotion.matches,()=>!1);function _9({respectMotionPreference:e=!0}={}){const t=oO(),r=sO();return t&&(!e||!r)}var uO=()=>{const e=o=>x()({path:o}).then(s=>s),t="/ajax-search-pro/options/search_instance/list",{data:r,isLoading:n,mutate:i,error:a}=Qa(t,e,{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1});return a?{data:void 0,error:a,isLoading:n,mutate:i}:{data:r||[],error:void 0,isLoading:n,mutate:i}};const _h=({id:e,asUrl:t})=>{const{data:r,error:n,isLoading:i}=uO();if(i)return"";if(n)return n.message;const a=r.find(o=>parseInt(o.id)===parseInt(e))?.name??(0,L.__)("Deleted search instance","ajax-search-pro");return t?(0,w.jsxs)("a",{href:ASP_BACKEND.home_url+"wp-admin/admin.php?page=asp_main_settings&asp_sid="+e,target:"_blank",children:["[",e,"] ",(0,w.jsx)(_h,{id:e??0})]}):a},lO=({size:e="sm"})=>{let t="";switch(e){case"xs":t="wdo:w-6 wdo:h-6";break;case"sm":t="wdo:w-8 wdo:h-8";break;case"md":t="wdo:w-10 wdo:h-10";break;case"lg":t="wdo:w-12 wdo:h-12";break;case"xl":t="wdo:w-16 wdo:h-16";break;case"2xl":t="wdo:w-20 wdo:h-20";break;case"3xl":t="wdo:w-24 wdo:h-24";break}return(0,w.jsxs)("div",{role:"status",children:[(0,w.jsxs)("svg",{"aria-hidden":"true",className:D("wdo:inline wdo:text-wp-admin-200 wdo:animate-spin wdo:dark:text-wp-admin-600 wdo:fill-asp",t),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,w.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,w.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,w.jsx)("span",{className:"wdo:sr-only",children:"Loading..."})]})},cO=()=>(0,w.jsx)("div",{className:"wdo:absolute wdo:inset-0 wdo:bg-wp-admin-50/90 wdo:dark:bg-wp-admin-900/90 wdo:flex wdo:justify-center wdo:items-center",children:(0,w.jsx)("div",{children:(0,w.jsx)(lO,{})})});var fO=(e=5)=>{const t=(0,Uu.addQueryArgs)("/ajax-search-pro/results_cache/realtime"),r=s=>x()({path:s}),{data:n,isLoading:i,mutate:a,error:o}=Qa(t,r,{refreshInterval:e*1e3,refreshWhenHidden:!0});return o?{data:void 0,error:o,isLoading:i,mutate:a}:{data:n,error:void 0,isLoading:i,mutate:a}};function St(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var dO=typeof Symbol=="function"&&Symbol.observable||"@@observable",Sh=dO,Rl=()=>Math.random().toString(36).substring(7).split("").join("."),pO={INIT:`@@redux/INIT${Rl()}`,REPLACE:`@@redux/REPLACE${Rl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Rl()}`},ai=pO;function Mo(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function C9(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(mO(e))return"date";if(vO(e))return"error";const r=hO(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function hO(e){return typeof e.constructor=="function"?e.constructor.name:null}function vO(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function mO(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function gO(e){return typeof e}function Dl(e,t,r){if(typeof e!="function")throw new Error(St(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(St(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(St(1));return r(Dl)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,u=!1;function l(){o===a&&(o=new Map,a.forEach((m,b)=>{o.set(b,m)}))}function c(){if(u)throw new Error(St(3));return i}function f(m){if(typeof m!="function")throw new Error(St(4));if(u)throw new Error(St(5));let b=!0;l();const _=s++;return o.set(_,m),function(){if(b){if(u)throw new Error(St(6));b=!1,l(),o.delete(_),a=null}}}function d(m){if(!Mo(m))throw new Error(St(7));if(typeof m.type>"u")throw new Error(St(8));if(typeof m.type!="string")throw new Error(St(17));if(u)throw new Error(St(9));try{u=!0,i=n(i,m)}finally{u=!1}return(a=o).forEach(_=>{_()}),m}function h(m){if(typeof m!="function")throw new Error(St(10));n=m,d({type:ai.REPLACE})}function v(){const m=f;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(St(11));function _(){const P=b;P.next&&P.next(c())}return _(),{unsubscribe:m(_)}},[Sh](){return this}}}return d({type:ai.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:h,[Sh]:v}}function O9(e,t,r){return Dl(e,t,r)}function A9(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function P9(e,t,r,n){const i=Object.keys(t),a=r&&r.type===ai.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Mo(e))return`The ${a} has unexpected type of "${gO(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(o.forEach(s=>{n[s]=!0}),!(r&&r.type===ai.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function yO(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:ai.INIT})>"u")throw new Error(St(12));if(typeof r(void 0,{type:ai.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(St(13))})}function Eh(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let i,a;try{yO(r)}catch(o){a=o}return function(s={},u){if(a)throw a;let l=!1;const c={};for(let f=0;f<n.length;f++){const d=n[f],h=r[d],v=s[d],g=h(v,u);if(typeof g>"u"){const m=u&&u.type;throw new Error(St(14))}c[d]=g,l=l||g!==v}return l=l||n.length!==Object.keys(s).length,l?c:s}}function Ch(e,t){return function(...r){return t(e.apply(this,r))}}function M9(e,t){if(typeof e=="function")return Ch(e,t);if(typeof e!="object"||e===null)throw new Error(St(16));const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=Ch(i,t))}return r}function To(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function bO(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(St(15))};const o={getState:i.getState,dispatch:(u,...l)=>a(u,...l)},s=e.map(u=>u(o));return a=To(...s)(i.dispatch),{...i,dispatch:a}}}function Oh(e){return Mo(e)&&"type"in e&&typeof e.type=="string"}function Ah(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var wO=Ah(),xO=Ah,kl=Symbol.for("immer-nothing"),Ki=Symbol.for("immer-draftable"),Ne=Symbol.for("immer-state"),T9=[];function Et(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var oi=Object.getPrototypeOf;function Lr(e){return!!e&&!!e[Ne]}function Qt(e){return e?Mh(e)||Array.isArray(e)||!!e[Ki]||!!e.constructor?.[Ki]||ui(e)||qi(e):!1}var _O=Object.prototype.constructor.toString(),Ph=new WeakMap;function Mh(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=Ph.get(r);return n===void 0&&(n=Function.toString.call(r),Ph.set(r,n)),n===_O}function I9(e){return Lr(e)||Et(15,e),e[Ne].base_}function si(e,t,r=!0){Cn(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Cn(e){const t=e[Ne];return t?t.type_:Array.isArray(e)?1:ui(e)?2:qi(e)?3:0}function Yi(e,t){return Cn(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Nl(e,t){return Cn(e)===2?e.get(t):e[t]}function Th(e,t,r){const n=Cn(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function SO(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ui(e){return e instanceof Map}function qi(e){return e instanceof Set}function Ct(e){return e.copy_||e.base_}function Ll(e,t){if(ui(e))return new Map(e);if(qi(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Mh(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Ne];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(oi(e),n)}else{const n=oi(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Fl(e,t=!1){return jo(e)||Lr(e)||!Qt(e)||(Cn(e)>1&&Object.defineProperties(e,{set:Io,add:Io,clear:Io,delete:Io}),Object.freeze(e),t&&Object.values(e).forEach(r=>Fl(r,!0))),e}function EO(){Et(2)}var Io={value:EO};function jo(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var $l={};function On(e){const t=$l[e];return t||Et(0,e),t}function Ih(e,t){$l[e]||($l[e]=t)}var Gi;function Ro(){return Gi}function CO(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jh(e,t){t&&(On("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bl(e){Vl(e),e.drafts_.forEach(OO),e.drafts_=null}function Vl(e){e===Gi&&(Gi=e.parent_)}function Rh(e){return Gi=CO(Gi,e)}function OO(e){const t=e[Ne];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Dh(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Ne].modified_&&(Bl(t),Et(4)),Qt(e)&&(e=Do(t,e),t.parent_||ko(t,e)),t.patches_&&On("Patches").generateReplacementPatches_(r[Ne].base_,e,t.patches_,t.inversePatches_)):e=Do(t,r,[]),Bl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kl?e:void 0}function Do(e,t,r){if(jo(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Ne];if(!i)return si(t,(a,o)=>kh(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return ko(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let o=a,s=!1;i.type_===3&&(o=new Set(a),a.clear(),s=!0),si(o,(u,l)=>kh(e,i,a,u,l,r,s),n),ko(e,a,!1),r&&e.patches_&&On("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function kh(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const s=jo(i);if(!(s&&!o)){if(Lr(i)){const u=a&&t&&t.type_!==3&&!Yi(t.assigned_,n)?a.concat(n):void 0,l=Do(e,i,u);if(Th(r,n,l),Lr(l))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Qt(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&s)return;Do(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(ui(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&ko(e,i)}}}function ko(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Fl(t,r)}function AO(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Ro(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=zl;r&&(i=[n],a=Xi);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var zl={get(e,t){if(t===Ne)return e;const r=Ct(e);if(!Yi(r,t))return PO(e,r,t);const n=r[t];return e.finalized_||!Qt(n)?n:n===Ul(e.base_,t)?(Wl(e),e.copy_[t]=Zi(n,e)):n},has(e,t){return t in Ct(e)},ownKeys(e){return Reflect.ownKeys(Ct(e))},set(e,t,r){const n=Nh(Ct(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Ul(Ct(e),t),a=i?.[Ne];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(SO(r,i)&&(r!==void 0||Yi(e.base_,t)))return!0;Wl(e),Fr(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Ul(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Wl(e),Fr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ct(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Et(11)},getPrototypeOf(e){return oi(e.base_)},setPrototypeOf(){Et(12)}},Xi={};si(zl,(e,t)=>{Xi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Xi.deleteProperty=function(e,t){return Xi.set.call(this,e,t,void 0)},Xi.set=function(e,t,r){return zl.set.call(this,e[0],t,r,e[0])};function Ul(e,t){const r=e[Ne];return(r?Ct(r):e)[t]}function PO(e,t,r){const n=Nh(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Nh(e,t){if(!(t in e))return;let r=oi(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=oi(r)}}function Fr(e){e.modified_||(e.modified_=!0,e.parent_&&Fr(e.parent_))}function Wl(e){e.copy_||(e.copy_=Ll(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var MO=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(u=a,...l){return o.produce(u,c=>r.call(this,c,...l))}}typeof r!="function"&&Et(6),n!==void 0&&typeof n!="function"&&Et(7);let i;if(Qt(t)){const a=Rh(this),o=Zi(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?Bl(a):Vl(a)}return jh(a,n),Dh(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===kl&&(i=void 0),this.autoFreeze_&&Fl(i,!0),n){const a=[],o=[];On("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Et(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,u=>t(u,...s));let n,i;return[this.produce(t,r,(o,s)=>{n=o,i=s}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Qt(e)||Et(8),Lr(e)&&(e=Jt(e));const t=Rh(this),r=Zi(e,void 0);return r[Ne].isManual_=!0,Vl(t),r}finishDraft(e,t){const r=e&&e[Ne];(!r||!r.isManual_)&&Et(9);const{scope_:n}=r;return jh(n,t),Dh(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=On("Patches").applyPatches_;return Lr(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Zi(e,t){const r=ui(e)?On("MapSet").proxyMap_(e,t):qi(e)?On("MapSet").proxySet_(e,t):AO(e,t);return(t?t.scope_:Ro()).drafts_.push(r),r}function Jt(e){return Lr(e)||Et(10,e),Lh(e)}function Lh(e){if(!Qt(e)||jo(e))return e;const t=e[Ne];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ll(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Ll(e,!0);return si(r,(i,a)=>{Th(r,i,Lh(a))},n),t&&(t.finalized_=!1),r}function j9(){const t="replace",r="add",n="remove";function i(d,h,v,g){switch(d.type_){case 0:case 2:return o(d,h,v,g);case 1:return a(d,h,v,g);case 3:return s(d,h,v,g)}}function a(d,h,v,g){let{base_:m,assigned_:b}=d,_=d.copy_;_.length<m.length&&([m,_]=[_,m],[v,g]=[g,v]);for(let S=0;S<m.length;S++)if(b[S]&&_[S]!==m[S]){const P=h.concat([S]);v.push({op:t,path:P,value:f(_[S])}),g.push({op:t,path:P,value:f(m[S])})}for(let S=m.length;S<_.length;S++){const P=h.concat([S]);v.push({op:r,path:P,value:f(_[S])})}for(let S=_.length-1;m.length<=S;--S){const P=h.concat([S]);g.push({op:n,path:P})}}function o(d,h,v,g){const{base_:m,copy_:b}=d;si(d.assigned_,(_,S)=>{const P=Nl(m,_),A=Nl(b,_),O=S?Yi(m,_)?t:r:n;if(P===A&&O===t)return;const j=h.concat(_);v.push(O===n?{op:O,path:j}:{op:O,path:j,value:A}),g.push(O===r?{op:n,path:j}:O===n?{op:r,path:j,value:f(P)}:{op:t,path:j,value:f(P)})})}function s(d,h,v,g){let{base_:m,copy_:b}=d,_=0;m.forEach(S=>{if(!b.has(S)){const P=h.concat([_]);v.push({op:n,path:P,value:S}),g.unshift({op:r,path:P,value:S})}_++}),_=0,b.forEach(S=>{if(!m.has(S)){const P=h.concat([_]);v.push({op:r,path:P,value:S}),g.unshift({op:n,path:P,value:S})}_++})}function u(d,h,v,g){v.push({op:t,path:[],value:h===kl?void 0:h}),g.push({op:t,path:[],value:d})}function l(d,h){return h.forEach(v=>{const{path:g,op:m}=v;let b=d;for(let A=0;A<g.length-1;A++){const O=Cn(b);let j=g[A];typeof j!="string"&&typeof j!="number"&&(j=""+j),(O===0||O===1)&&(j==="__proto__"||j==="constructor")&&Et(19),typeof b=="function"&&j==="prototype"&&Et(19),b=Nl(b,j),typeof b!="object"&&Et(18,g.join("/"))}const _=Cn(b),S=c(v.value),P=g[g.length-1];switch(m){case t:switch(_){case 2:return b.set(P,S);case 3:Et(16);default:return b[P]=S}case r:switch(_){case 1:return P==="-"?b.push(S):b.splice(P,0,S);case 2:return b.set(P,S);case 3:return b.add(S);default:return b[P]=S}case n:switch(_){case 1:return b.splice(P,1);case 2:return b.delete(P);case 3:return b.delete(v.value);default:return delete b[P]}default:Et(17,m)}}),d}function c(d){if(!Qt(d))return d;if(Array.isArray(d))return d.map(c);if(ui(d))return new Map(Array.from(d.entries()).map(([v,g])=>[v,c(g)]));if(qi(d))return new Set(Array.from(d).map(c));const h=Object.create(oi(d));for(const v in d)h[v]=c(d[v]);return Yi(d,Ki)&&(h[Ki]=d[Ki]),h}function f(d){return Lr(d)?c(d):d}Ih("Patches",{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:u})}function R9(){class e extends Map{constructor(u,l){super(),this[Ne]={type_:2,parent_:l,scope_:l?l.scope_:Ro(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:u,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Ct(this[Ne]).size}has(u){return Ct(this[Ne]).has(u)}set(u,l){const c=this[Ne];return o(c),(!Ct(c).has(u)||Ct(c).get(u)!==l)&&(r(c),Fr(c),c.assigned_.set(u,!0),c.copy_.set(u,l),c.assigned_.set(u,!0)),this}delete(u){if(!this.has(u))return!1;const l=this[Ne];return o(l),r(l),Fr(l),l.base_.has(u)?l.assigned_.set(u,!1):l.assigned_.delete(u),l.copy_.delete(u),!0}clear(){const u=this[Ne];o(u),Ct(u).size&&(r(u),Fr(u),u.assigned_=new Map,si(u.base_,l=>{u.assigned_.set(l,!1)}),u.copy_.clear())}forEach(u,l){const c=this[Ne];Ct(c).forEach((f,d,h)=>{u.call(l,this.get(d),d,this)})}get(u){const l=this[Ne];o(l);const c=Ct(l).get(u);if(l.finalized_||!Qt(c)||c!==l.base_.get(u))return c;const f=Zi(c,l);return r(l),l.copy_.set(u,f),f}keys(){return Ct(this[Ne]).keys()}values(){const u=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const l=u.next();return l.done?l:{done:!1,value:this.get(l.value)}}}}entries(){const u=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const l=u.next();if(l.done)return l;const c=this.get(l.value);return{done:!1,value:[l.value,c]}}}}[Symbol.iterator](){return this.entries()}}function t(s,u){return new e(s,u)}function r(s){s.copy_||(s.assigned_=new Map,s.copy_=new Map(s.base_))}class n extends Set{constructor(u,l){super(),this[Ne]={type_:3,parent_:l,scope_:l?l.scope_:Ro(),modified_:!1,finalized_:!1,copy_:void 0,base_:u,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Ct(this[Ne]).size}has(u){const l=this[Ne];return o(l),l.copy_?!!(l.copy_.has(u)||l.drafts_.has(u)&&l.copy_.has(l.drafts_.get(u))):l.base_.has(u)}add(u){const l=this[Ne];return o(l),this.has(u)||(a(l),Fr(l),l.copy_.add(u)),this}delete(u){if(!this.has(u))return!1;const l=this[Ne];return o(l),a(l),Fr(l),l.copy_.delete(u)||(l.drafts_.has(u)?l.copy_.delete(l.drafts_.get(u)):!1)}clear(){const u=this[Ne];o(u),Ct(u).size&&(a(u),Fr(u),u.copy_.clear())}values(){const u=this[Ne];return o(u),a(u),u.copy_.values()}entries(){const u=this[Ne];return o(u),a(u),u.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(u,l){const c=this.values();let f=c.next();for(;!f.done;)u.call(l,f.value,f.value,this),f=c.next()}}function i(s,u){return new n(s,u)}function a(s){s.copy_||(s.copy_=new Set,s.base_.forEach(u=>{if(Qt(u)){const l=Zi(u,s);s.drafts_.set(u,l),s.copy_.add(l)}else s.copy_.add(u)}))}function o(s){s.revoked_&&Et(3,JSON.stringify(Ct(s)))}Ih("MapSet",{proxyMap_:t,proxySet_:i})}var TO=new MO,Fh=TO.produce,D9=null,k9=null,N9=null,L9=null,F9=null,$9=null,B9=null;function V9(e){return e}function z9(e){return e}var U9=(...e)=>{const t=createSelectorCreator(...e),r=Object.assign((...n)=>{const i=t(...n),a=(o,...s)=>i(isDraft(o)?current(o):o,...s);return Object.assign(a,i),a},{withTypes:()=>r});return r},IO=null,jO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?To:To.apply(null,arguments)},W9=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},$h=e=>e&&typeof e.match=="function";function jt(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Bt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Oh(n)&&n.type===e,r}function H9(e){return typeof e=="function"&&"type"in e&&$h(e)}function RO(e){return isAction(e)&&Object.keys(e).every(DO)}function DO(e){return["type","payload","error","meta"].indexOf(e)>-1}function K9(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched. 
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function Y9(e={}){return()=>t=>r=>t(r)}function q9(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const a=Date.now();r+=a-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms. 
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
It is disabled in production builds, so you don't need to worry about that.`)}}}var Bh=class Ua extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ua.prototype)}static get[Symbol.species](){return Ua}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ua(...t[0].concat(this)):new Ua(...t.concat(this))}};function Vh(e){return Qt(e)?Fh(e,()=>{}):e}function An(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function G9(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function X9(e,t,r){const n=zh(e,t,r);return{detectMutations(){return Uh(e,t,n,r)}}}function zh(e,t=[],r,n="",i=new Set){const a={value:r};if(!e(r)&&!i.has(r)){i.add(r),a.children={};for(const o in r){const s=n?n+"."+o:o;t.length&&t.indexOf(s)!==-1||(a.children[o]=zh(e,t,r[o],s))}}return a}function Uh(e,t=[],r,n,i=!1,a=""){const o=r?r.value:void 0,s=o===n;if(i&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};const u={};for(let c in r.children)u[c]=!0;for(let c in n)u[c]=!0;const l=t.length>0;for(let c in u){const f=a?a+"."+c:c;if(l&&t.some(v=>v instanceof RegExp?v.test(f):f===v))continue;const d=Uh(e,t,r.children[c],n[c],s,f);if(d.wasMutated)return d}return{wasMutated:!1}}function Z9(e={}){if(1)return()=>n=>i=>n(i);var t,r}function kO(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||isPlainObject(e)}function NO(e,t="",r=kO,n,i=[],a){let o;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a?.has(e))return!1;const s=n!=null?n(e):Object.entries(e),u=i.length>0;for(const[l,c]of s){const f=t?t+"."+l:l;if(!(u&&i.some(h=>h instanceof RegExp?h.test(f):f===h))){if(!r(c))return{keyPath:f,value:c};if(typeof c=="object"&&(o=NO(c,f,r,n,i,a),o))return o}}return a&&Wh(e)&&a.add(e),!1}function Wh(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Wh(t))return!1;return!0}function Q9(e={}){return()=>t=>r=>t(r)}function LO(e){return typeof e=="boolean"}var FO=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Bh;return r&&(LO(r)?o.push(wO):o.push(xO(r.extraArgument))),o},Hh="RTK_autoBatch",Ge=()=>e=>({payload:e,meta:{[Hh]:!0}}),Kh=e=>t=>{setTimeout(t,e)},Yh=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kh(10):e.type==="callback"?e.queueNotification:Kh(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return s.add(c),()=>{d(),s.delete(c)}},dispatch(c){try{return i=!c?.meta?.[Hh],a=!i,a&&(o||(o=!0,u(l))),n.dispatch(c)}finally{i=!0}}})},$O=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Bh(e);return n&&i.push(Yh(typeof n=="object"?n:void 0)),i};function BO(e){const t=FO(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(Mo(r))u=Eh(r);else throw new Error(Bt(1));let l;typeof n=="function"?l=n(t):l=t();let c=To;i&&(c=jO({trace:!1,...typeof i=="object"&&i}));const f=bO(...l),d=$O(f);let h=typeof s=="function"?s(d):d();const v=c(...h);return Dl(u,o,v)}function qh(e){const t={},r=[];let n;const i={addCase(a,o){const s=typeof a=="string"?a:a.type;if(!s)throw new Error(Bt(28));if(s in t)throw new Error(Bt(29));return t[s]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function VO(e){return typeof e=="function"}function zO(e,t){let[r,n,i]=qh(t),a;if(VO(e))a=()=>Vh(e());else{const s=Vh(e);a=()=>s}function o(s=a(),u){let l=[r[u.type],...n.filter(({matcher:c})=>c(u)).map(({reducer:c})=>c)];return l.filter(c=>!!c).length===0&&(l=[i]),l.reduce((c,f)=>{if(f)if(Lr(c)){const h=f(c,u);return h===void 0?c:h}else{if(Qt(c))return Fh(c,d=>f(d,u));{const d=f(c,u);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},s)}return o.getInitialState=a,o}var Gh=(e,t)=>$h(e)?e.match(t):e(t);function Qi(...e){return t=>e.some(r=>Gh(r,t))}function Hl(...e){return t=>e.every(r=>Gh(r,t))}function No(e,t){if(!e||!e.meta)return!1;const r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Ji(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function UO(...e){return e.length===0?t=>No(t,["pending"]):Ji(e)?Qi(...e.map(t=>t.pending)):UO()(e[0])}function Kl(...e){return e.length===0?t=>No(t,["rejected"]):Ji(e)?Qi(...e.map(t=>t.rejected)):Kl()(e[0])}function WO(...e){const t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?Hl(Kl(...e),t):Ji(e)?Hl(Kl(...e),t):WO()(e[0])}function HO(...e){return e.length===0?t=>No(t,["fulfilled"]):Ji(e)?Qi(...e.map(t=>t.fulfilled)):HO()(e[0])}function KO(...e){return e.length===0?t=>No(t,["pending","fulfilled","rejected"]):Ji(e)?Qi(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):KO()(e[0])}var YO="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Lo=(e=21)=>{let t="",r=e;for(;r--;)t+=YO[Math.random()*64|0];return t},qO=["name","message","stack","code"],Yl=class{constructor(e,t){this.payload=e,this.meta=t}_type},Xh=class{constructor(e,t){this.payload=e,this.meta=t}_type},GO=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of qO)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Zh="External signal was aborted",XO=(()=>{function e(t,r,n){const i=jt(t+"/fulfilled",(u,l,c,f)=>({payload:u,meta:{...f||{},arg:c,requestId:l,requestStatus:"fulfilled"}})),a=jt(t+"/pending",(u,l,c)=>({payload:void 0,meta:{...c||{},arg:l,requestId:u,requestStatus:"pending"}})),o=jt(t+"/rejected",(u,l,c,f,d)=>({payload:f,error:(n&&n.serializeError||GO)(u||"Rejected"),meta:{...d||{},arg:c,requestId:l,rejectedWithValue:!!f,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function s(u,{signal:l}={}){return(c,f,d)=>{const h=n?.idGenerator?n.idGenerator(u):Lo(),v=new AbortController;let g,m;function b(S){m=S,v.abort()}l&&(l.aborted?b(Zh):l.addEventListener("abort",()=>b(Zh),{once:!0}));const _=(async function(){let S;try{let A=n?.condition?.(u,{getState:f,extra:d});if(QO(A)&&(A=await A),A===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((j,B)=>{g=()=>{B({name:"AbortError",message:m||"Aborted"})},v.signal.addEventListener("abort",g)});c(a(h,u,n?.getPendingMeta?.({requestId:h,arg:u},{getState:f,extra:d}))),S=await Promise.race([O,Promise.resolve(r(u,{dispatch:c,getState:f,extra:d,requestId:h,signal:v.signal,abort:b,rejectWithValue:(j,B)=>new Yl(j,B),fulfillWithValue:(j,B)=>new Xh(j,B)})).then(j=>{if(j instanceof Yl)throw j;return j instanceof Xh?i(j.payload,h,u,j.meta):i(j,h,u)})])}catch(A){S=A instanceof Yl?o(null,h,u,A.payload,A.meta):o(A,h,u)}finally{g&&v.signal.removeEventListener("abort",g)}return n&&!n.dispatchConditionRejection&&o.match(S)&&S.meta.condition||c(S),S})();return Object.assign(_,{abort:b,requestId:h,arg:u,unwrap(){return _.then(ZO)}})}}return Object.assign(s,{pending:a,rejected:o,fulfilled:i,settled:Qi(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function ZO(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function QO(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Qh=Symbol.for("rtk-slice-createasyncthunk"),J9={[Qh]:XO},JO=(e=>(e.reducer="reducer",e.reducerWithPrepare="reducerWithPrepare",e.asyncThunk="asyncThunk",e))(JO||{});function eA(e,t){return`${e}/${t}`}function tA({creators:e}={}){const t=e?.asyncThunk?.[Qh];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Bt(11));typeof process<"u";const o=(typeof n.reducers=="function"?n.reducers(nA()):n.reducers)||{},s=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(S,P){const A=typeof S=="string"?S:S.type;if(!A)throw new Error(Bt(12));if(A in u.sliceCaseReducersByType)throw new Error(Bt(13));return u.sliceCaseReducersByType[A]=P,l},addMatcher(S,P){return u.sliceMatchers.push({matcher:S,reducer:P}),l},exposeAction(S,P){return u.actionCreators[S]=P,l},exposeCaseReducer(S,P){return u.sliceCaseReducersByName[S]=P,l}};s.forEach(S=>{const P=o[S],A={reducerName:S,type:eA(i,S),createNotation:typeof n.reducers=="function"};aA(P)?sA(A,P,l,t):iA(A,P,l)});function c(){const[S={},P=[],A=void 0]=typeof n.extraReducers=="function"?qh(n.extraReducers):[n.extraReducers],O={...S,...u.sliceCaseReducersByType};return zO(n.initialState,j=>{for(let B in O)j.addCase(B,O[B]);for(let B of u.sliceMatchers)j.addMatcher(B.matcher,B.reducer);for(let B of P)j.addMatcher(B.matcher,B.reducer);A&&j.addDefaultCase(A)})}const f=S=>S,d=new Map,h=new WeakMap;let v;function g(S,P){return v||(v=c()),v(S,P)}function m(){return v||(v=c()),v.getInitialState()}function b(S,P=!1){function A(j){let B=j[S];return typeof B>"u"&&P&&(B=An(h,A,m)),B}function O(j=f){const B=An(d,P,()=>new WeakMap);return An(B,j,()=>{const ee={};for(const[te,G]of Object.entries(n.selectors??{}))ee[te]=rA(G,j,()=>An(h,j,m),P);return ee})}return{reducerPath:S,getSelectors:O,get selectors(){return O(A)},selectSlice:A}}const _={name:i,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:m,...b(a),injectInto(S,{reducerPath:P,...A}={}){const O=P??a;return S.inject({reducerPath:O,reducer:g},A),{..._,...b(O,!0)}}};return _}}function rA(e,t,r,n){function i(a,...o){let s=t(a);return typeof s>"u"&&n&&(s=r()),e(s,...o)}return i.unwrapped=e,i}var Lt=tA();function nA(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function iA({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!oA(n))throw new Error(Bt(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?jt(e,o):jt(e))}function aA(e){return e._reducerDefinitionType==="asyncThunk"}function oA(e){return e._reducerDefinitionType==="reducerWithPrepare"}function sA({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Bt(18));const{payloadCreator:a,fulfilled:o,pending:s,rejected:u,settled:l,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),u&&n.addCase(f.rejected,u),l&&n.addMatcher(f.settled,l),n.exposeCaseReducer(t,{fulfilled:o||Fo,pending:s||Fo,rejected:u||Fo,settled:l||Fo})}function Fo(){}function uA(){return{ids:[],entities:{}}}function lA(e){function t(r={},n){const i=Object.assign(uA(),r);return n?e.setAll(i,n):i}return{getInitialState:t}}function cA(){function e(t,r={}){const{createSelector:n=IO}=r,i=f=>f.ids,a=f=>f.entities,o=n(i,a,(f,d)=>f.map(h=>d[h])),s=(f,d)=>d,u=(f,d)=>f[d],l=n(i,f=>f.length);if(!t)return{selectIds:i,selectEntities:a,selectAll:o,selectTotal:l,selectById:n(a,s,u)};const c=n(t,a);return{selectIds:n(t,i),selectEntities:c,selectAll:n(t,o),selectTotal:n(t,l),selectById:n(c,s,u)}}return{getSelectors:e}}var fA=null;function dA(e){const t=pt((r,n)=>e(n));return function(n){return t(n,void 0)}}function pt(e){return function(r,n){function i(o){return RO(o)}const a=o=>{i(n)?e(n.payload,o):e(n,o)};return fA(r)?(a(r),r):createNextState3(r,a)}}function li(e,t){return t(e)}function an(e){return Array.isArray(e)||(e=Object.values(e)),e}function $o(e){return isDraft4(e)?current2(e):e}function Jh(e,t,r){e=an(e);const n=$o(r.ids),i=new Set(n),a=[],o=new Set([]),s=[];for(const u of e){const l=li(u,t);i.has(l)||o.has(l)?s.push({id:l,changes:u}):(o.add(l),a.push(u))}return[a,s,n]}function ev(e){function t(v,g){const m=li(v,e);m in g.entities||(g.ids.push(m),g.entities[m]=v)}function r(v,g){v=an(v);for(const m of v)t(m,g)}function n(v,g){const m=li(v,e);m in g.entities||g.ids.push(m),g.entities[m]=v}function i(v,g){v=an(v);for(const m of v)n(m,g)}function a(v,g){v=an(v),g.ids=[],g.entities={},r(v,g)}function o(v,g){return s([v],g)}function s(v,g){let m=!1;v.forEach(b=>{b in g.entities&&(delete g.entities[b],m=!0)}),m&&(g.ids=g.ids.filter(b=>b in g.entities))}function u(v){Object.assign(v,{ids:[],entities:{}})}function l(v,g,m){const b=m.entities[g.id];if(b===void 0)return!1;const _=Object.assign({},b,g.changes),S=li(_,e),P=S!==g.id;return P&&(v[g.id]=S,delete m.entities[g.id]),m.entities[S]=_,P}function c(v,g){return f([v],g)}function f(v,g){const m={},b={};v.forEach(S=>{S.id in g.entities&&(b[S.id]={id:S.id,changes:{...b[S.id]?.changes,...S.changes}})}),v=Object.values(b),v.length>0&&v.filter(P=>l(m,P,g)).length>0&&(g.ids=Object.values(g.entities).map(P=>li(P,e)))}function d(v,g){return h([v],g)}function h(v,g){const[m,b]=Jh(v,e,g);r(m,g),f(b,g)}return{removeAll:dA(u),addOne:pt(t),addMany:pt(r),setOne:pt(n),setMany:pt(i),setAll:pt(a),updateOne:pt(c),updateMany:pt(f),upsertOne:pt(d),upsertMany:pt(h),removeOne:pt(o),removeMany:pt(s)}}function pA(e,t,r){let n=0,i=e.length;for(;n<i;){let a=n+i>>>1;const o=e[a];r(t,o)>=0?n=a+1:i=a}return n}function hA(e,t,r){const n=pA(e,t,r);return e.splice(n,0,t),e}function vA(e,t){const{removeOne:r,removeMany:n,removeAll:i}=ev(e);function a(m,b){return o([m],b)}function o(m,b,_){m=an(m);const S=new Set(_??$o(b.ids)),P=new Set,A=m.filter(O=>{const j=li(O,e),B=!P.has(j);return B&&P.add(j),!S.has(j)&&B});A.length!==0&&g(b,A)}function s(m,b){return u([m],b)}function u(m,b){let _={};if(m=an(m),m.length!==0){for(const S of m){const P=e(S);_[P]=S,delete b.entities[P]}m=an(_),g(b,m)}}function l(m,b){m=an(m),b.entities={},b.ids=[],o(m,b,[])}function c(m,b){return f([m],b)}function f(m,b){let _=!1,S=!1;for(let P of m){const A=b.entities[P.id];if(!A)continue;_=!0,Object.assign(A,P.changes);const O=e(A);if(P.id!==O){S=!0,delete b.entities[P.id];const j=b.ids.indexOf(P.id);b.ids[j]=O,b.entities[O]=A}}_&&g(b,[],_,S)}function d(m,b){return h([m],b)}function h(m,b){const[_,S,P]=Jh(m,e,b);_.length&&o(_,b,P),S.length&&f(S,b)}function v(m,b){if(m.length!==b.length)return!1;for(let _=0;_<m.length;_++)if(m[_]!==b[_])return!1;return!0}const g=(m,b,_,S)=>{const P=$o(m.entities),A=$o(m.ids),O=m.entities;let j=A;S&&(j=new Set(A));let B=[];for(const G of j){const ae=P[G];ae&&B.push(ae)}const ee=B.length===0;for(const G of b)O[e(G)]=G,ee||hA(B,G,t);ee?B=b.slice().sort(t):_&&B.sort(t);const te=B.map(e);v(A,te)||(m.ids=te)};return{removeOne:r,removeMany:n,removeAll:i,addOne:pt(a),updateOne:pt(c),upsertOne:pt(d),setOne:pt(s),setMany:pt(u),setAll:pt(l),addMany:pt(o),updateMany:pt(f),upsertMany:pt(h)}}function e7(e={}){const{selectId:t,sortComparer:r}={sortComparer:!1,selectId:o=>o.id,...e},n=r?vA(t,r):ev(t),i=lA(n),a=cA();return{selectId:t,sortComparer:r,...i,...a,...n}}var mA="task",tv="listener",rv="completed",ql="cancelled",gA=`task-${ql}`,yA=`task-${rv}`,Gl=`${tv}-${ql}`,bA=`${tv}-${rv}`,Bo=class{constructor(e){this.code=e,this.message=`${mA} ${ql} (reason: ${e})`}name="TaskAbortError";message},Xl=(e,t)=>{if(typeof e!="function")throw new TypeError(Bt(32))},Vo=()=>{},nv=(e,t=Vo)=>(e.catch(t),e),iv=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Pn=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Mn=e=>{if(e.aborted){const{reason:t}=e;throw new Bo(t)}};function av(e,t){let r=Vo;return new Promise((n,i)=>{const a=()=>i(new Bo(e.reason));if(e.aborted){a();return}r=iv(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Vo})}var wA=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Bo?"cancelled":"rejected",error:r}}finally{t?.()}},zo=e=>t=>nv(av(e,t).then(r=>(Mn(e),r))),ov=e=>{const t=zo(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:ci}=Object,sv={},Uo="listenerMiddleware",xA=(e,t)=>{const r=n=>iv(e,()=>Pn(n,e.reason));return(n,i)=>{Xl(n,"taskExecutor");const a=new AbortController;r(a);const o=wA(async()=>{Mn(e),Mn(a.signal);const s=await n({pause:zo(a.signal),delay:ov(a.signal),signal:a.signal});return Mn(a.signal),s},()=>Pn(a,yA));return i?.autoJoin&&t.push(o.catch(Vo)),{result:zo(e)(o),cancel(){Pn(a,gA)}}}},_A=(e,t)=>{const r=async(n,i)=>{Mn(t);let a=()=>{};const s=[new Promise((u,l)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),u([f,d.getState(),d.getOriginalState()])}});a=()=>{c(),l()}})];i!=null&&s.push(new Promise(u=>setTimeout(u,i,null)));try{const u=await av(t,Promise.race(s));return Mn(t),u}finally{a()}};return(n,i)=>nv(r(n,i))},uv=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=jt(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Bt(21));return Xl(a,"options.listener"),{predicate:i,type:t,effect:a}},lv=ci(e=>{const{type:t,predicate:r,effect:n}=uv(e);return{id:Lo(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Bt(22))}}},{withTypes:()=>lv}),cv=(e,t)=>{const{type:r,effect:n,predicate:i}=uv(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Zl=e=>{e.pending.forEach(t=>{Pn(t,Gl)})},SA=(e,t)=>()=>{for(const r of t.keys())Zl(r);e.clear()},fv=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},dv=ci(jt(`${Uo}/add`),{withTypes:()=>dv}),EA=jt(`${Uo}/removeAll`),pv=ci(jt(`${Uo}/remove`),{withTypes:()=>pv}),CA=(...e)=>{console.error(`${Uo}/error`,...e)},ea=(e={})=>{const t=new Map,r=new Map,n=h=>{const v=r.get(h)??0;r.set(h,v+1)},i=h=>{const v=r.get(h)??1;v===1?r.delete(h):r.set(h,v-1)},{extra:a,onError:o=CA}=e;Xl(o,"onError");const s=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),v=>{h.unsubscribe(),v?.cancelActive&&Zl(h)}),u=h=>{const v=cv(t,h)??lv(h);return s(v)};ci(u,{withTypes:()=>u});const l=h=>{const v=cv(t,h);return v&&(v.unsubscribe(),h.cancelActive&&Zl(v)),!!v};ci(l,{withTypes:()=>l});const c=async(h,v,g,m)=>{const b=new AbortController,_=_A(u,b.signal),S=[];try{h.pending.add(b),n(h),await Promise.resolve(h.effect(v,ci({},g,{getOriginalState:m,condition:(P,A)=>_(P,A).then(Boolean),take:_,delay:ov(b.signal),pause:zo(b.signal),extra:a,signal:b.signal,fork:xA(b.signal,S),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((P,A,O)=>{P!==b&&(Pn(P,Gl),O.delete(P))})},cancel:()=>{Pn(b,Gl),h.pending.delete(b)},throwIfCancelled:()=>{Mn(b.signal)}})))}catch(P){P instanceof Bo||fv(o,P,{raisedBy:"effect"})}finally{await Promise.all(S),Pn(b,bA),i(h),h.pending.delete(b)}},f=SA(t,r);return{middleware:h=>v=>g=>{if(!Oh(g))return v(g);if(dv.match(g))return u(g.payload);if(EA.match(g)){f();return}if(pv.match(g))return l(g.payload);let m=h.getState();const b=()=>{if(m===sv)throw new Error(Bt(23));return m};let _;try{if(_=v(g),t.size>0){const S=h.getState(),P=Array.from(t.values());for(const A of P){let O=!1;try{O=A.predicate(g,S,m)}catch(j){O=!1,fv(o,j,{raisedBy:"predicate"})}O&&c(A,g,h,b)}}}finally{m=sv}return _},startListening:u,stopListening:l,clearListeners:f}},OA=e=>({middleware:e,applied:new Map}),AA=e=>t=>t?.meta?.instanceId===e,t7=()=>{const e=Lo(),t=new Map,r=Object.assign(jt("dynamicMiddleware/add",(...s)=>({payload:s,meta:{instanceId:e}})),{withTypes:()=>r}),n=Object.assign(function(...u){u.forEach(l=>{An(t,l,OA)})},{withTypes:()=>n}),i=s=>{const u=Array.from(t.values()).map(l=>An(l.applied,s,l.middleware));return compose3(...u)},a=Hl(r,AA(e));return{middleware:s=>u=>l=>a(l)?(n(...l.payload),s.dispatch):i(s)(u)(l),addMiddleware:n,withMiddleware:r,instanceId:e}},PA=e=>"reducerPath"in e&&typeof e.reducerPath=="string",MA=e=>e.flatMap(t=>PA(t)?[[t.reducerPath,t.reducer]]:Object.entries(t)),Ql=Symbol.for("rtk-state-proxy-original"),TA=e=>!!e&&!!e[Ql],IA=new WeakMap,jA=(e,t,r)=>An(IA,e,()=>new Proxy(e,{get:(n,i,a)=>{if(i===Ql)return n;const o=Reflect.get(n,i,a);if(typeof o>"u"){const s=r[i];if(typeof s<"u")return s;const u=t[i];if(u){const l=u(void 0,{type:Lo()});if(typeof l>"u")throw new Error(Bt(24));return r[i]=l,l}}return o}})),RA=e=>{if(!TA(e))throw new Error(Bt(25));return e[Ql]},DA={},kA=(e=DA)=>e;function r7(...e){const t=Object.fromEntries(MA(e)),r=()=>Object.keys(t).length?combineReducers2(t):kA;let n=r();function i(u,l){return n(u,l)}i.withLazyLoadedSlices=()=>i;const a={},o=(u,l={})=>{const{reducerPath:c,reducer:f}=u,d=t[c];return!l.overrideExisting&&d&&d!==f?(typeof process<"u",i):(l.overrideExisting&&d!==f&&delete a[c],t[c]=f,n=r(),i)},s=Object.assign(function(l,c){return function(d,...h){return l(jA(c?c(d,...h):d,t,a),...h)}},{original:RA});return Object.assign(i,{inject:o,selector:s})}function Bt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var NA=De(3424),ta=De.n(NA),LA=4;function on(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:LA,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function ut(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var s=r[o-1];return typeof s=="string"?i+s+a:s!==void 0?i+on(s)+a:i+a},"")}var Ut=e=>e===0?0:e>0?1:-1,$r=e=>typeof e=="number"&&e!=+e,Jl=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ze=e=>(typeof e=="number"||e instanceof Number)&&!$r(e),ra=e=>ze(e)||typeof e=="string",FA=0,na=e=>{var t=++FA;return"".concat(e||"").concat(t)},Gt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ze(t)&&typeof t!="string")return n;var a;if(Jl(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return $r(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},hv=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function cr(e,t,r){return ze(e)&&ze(t)?on(e+r*(t-e)):t}function $A(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):ta()(n,t))===r)}var n7=e=>{for(var t=e.length,r=0,n=0,i=0,a=0,o=1/0,s=-1/0,u=0,l=0,c=0;c<t;c++){var f,d;u=((f=e[c])===null||f===void 0?void 0:f.cx)||0,l=((d=e[c])===null||d===void 0?void 0:d.cy)||0,r+=u,n+=l,i+=u*l,a+=u*u,o=Math.min(o,u),s=Math.max(s,u)}var h=t*a!==r*r?(t*i-r*n)/(t*a-r*r):0;return{xmin:o,xmax:s,a:h,b:(n-h*r)/t}},Xt=e=>e===null||typeof e>"u",ia=e=>Xt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function _r(e){return e!=null}function Wo(){}var BA=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!$r(r))return e[r]}},VA={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},vv=Lt({name:"options",initialState:VA,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),zA=vv.reducer,{createEventEmitter:UA}=vv.actions,i7=De(7179),WA=null,HA=null,KA=null,mv=null,gv=null,yv=null,ec=null,tc=null,rc=Symbol.for("react.forward_ref"),bv=null,wv=null,Ho=Symbol.for("react.memo"),xv=null,YA=null,qA=null,GA=rc,XA=Ho;function a7(e){return typeof e=="string"||typeof e=="function"||e===mv||e===yv||e===gv||e===bv||e===wv||e===YA||typeof e=="object"&&e!==null&&(e.$$typeof===xv||e.$$typeof===Ho||e.$$typeof===tc||e.$$typeof===ec||e.$$typeof===rc||e.$$typeof===qA||e.getModuleId!==void 0)}function nc(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case HA:switch(e=e.type,e){case mv:case yv:case gv:case bv:case wv:return e;default:switch(e=e&&e.$$typeof,e){case tc:case rc:case xv:case Ho:return e;case ec:return e;default:return t}}case KA:return t}}}function o7(e){return WA?nc(e)===ec:nc(e)===tc}function ZA(e){return nc(e)===Ho}function _v(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function ic(e,t){if(e)(t==="mapStateToProps"||t==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||_v(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${t} in connect.`)}function s7(e,t,r){ic(e,"mapStateToProps"),ic(t,"mapDispatchToProps"),ic(r,"mergeProps")}function QA(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,u,l,c,f,d;function h(_,S){return u=_,l=S,c=e(u,l),f=t(n,l),d=r(c,f,l),s=!0,d}function v(){return c=e(u,l),t.dependsOnOwnProps&&(f=t(n,l)),d=r(c,f,l),d}function g(){return e.dependsOnOwnProps&&(c=e(u,l)),t.dependsOnOwnProps&&(f=t(n,l)),d=r(c,f,l),d}function m(){const _=e(u,l),S=!o(_,c);return c=_,S&&(d=r(c,f,l)),d}function b(_,S){const P=!a(S,l),A=!i(_,u,S,l);return u=_,l=S,P&&A?v():P?g():A?m():d}return function(S,P){return s?b(S,P):h(S,P)}}function JA(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const a=t(e,i),o=r(e,i),s=n(e,i);return QA(a,o,s,e,i)}function eP(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...a)=>t(i(...a)))}return r}function tP(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function u7(e,t,r){tP(e)||_v(`${r}() in ${t} must return a plain object. Instead received ${e}.`)}function ac(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function Sv(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Ev(e,t){return function(n,{displayName:i}){const a=function(s,u){return a.dependsOnOwnProps?a.mapToProps(s,u):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,u){a.mapToProps=e,a.dependsOnOwnProps=Sv(e);let l=a(s,u);return typeof l=="function"&&(a.mapToProps=l,a.dependsOnOwnProps=Sv(l),l=a(s,u)),l},a}}function oc(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function rP(e){return e&&typeof e=="object"?ac(t=>eP(e,t)):e?typeof e=="function"?Ev(e,"mapDispatchToProps"):oc(e,"mapDispatchToProps"):ac(t=>({dispatch:t}))}function nP(e){return e?typeof e=="function"?Ev(e,"mapStateToProps"):oc(e,"mapStateToProps"):ac(()=>({}))}function iP(e,t,r){return{...r,...e,...t}}function aP(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(u,l,c){const f=e(u,l,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function oP(e){return e?typeof e=="function"?aP(e):oc(e,"mergeProps"):()=>iP}function sP(e){e()}function uP(){let e=null,t=null;return{clear(){e=null,t=null},notify(){sP(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Cv={notify(){},get:()=>[]};function Ov(e,t){let r,n=Cv,i=0,a=!1;function o(g){c();const m=n.subscribe(g);let b=!1;return()=>{b||(b=!0,m(),f())}}function s(){n.notify()}function u(){v.onStateChange&&v.onStateChange()}function l(){return a}function c(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=uP())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Cv)}function d(){a||(a=!0,c())}function h(){a&&(a=!1,f())}const v={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:l,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return v}var lP=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cP=lP(),fP=()=>typeof navigator<"u"&&navigator.product==="ReactNative",dP=fP(),pP=()=>cP||dP?p.useLayoutEffect:p.useEffect,Ko=pP();function Av(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Yo(e,t){if(Av(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!Av(e[r[i]],t[r[i]]))return!1;return!0}var hP={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vP={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mP={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gP={[GA]:mP,[XA]:Pv};function Mv(e){return ZA(e)?Pv:gP[e.$$typeof]||hP}var yP=Object.defineProperty,bP=Object.getOwnPropertyNames,Tv=Object.getOwnPropertySymbols,wP=Object.getOwnPropertyDescriptor,xP=Object.getPrototypeOf,Iv=Object.prototype;function sc(e,t){if(typeof t!="string"){if(Iv){const a=xP(t);a&&a!==Iv&&sc(e,a)}let r=bP(t);Tv&&(r=r.concat(Tv(t)));const n=Mv(e),i=Mv(t);for(let a=0;a<r.length;++a){const o=r[a];if(!vP[o]&&!(i&&i[o])&&!(n&&n[o])){const s=wP(t,o);try{yP(e,o,s)}catch{}}}}return e}var _P=Symbol.for("react-redux-context"),SP=typeof globalThis<"u"?globalThis:{};function EP(){if(!p.createContext)return{};const e=SP[_P]??=new Map;let t=e.get(p.createContext);return t||(t=p.createContext(null),e.set(p.createContext,t)),t}var Br=EP(),CP=null,l7=e=>{try{return JSON.stringify(e)}catch{return String(e)}};function OP(e,t,r){Ko(()=>e(...t),r)}function AP(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function PP(e,t,r,n,i,a,o,s,u,l,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const g=t.getState();let m,b;try{m=n(g,i.current)}catch(_){b=_,d=_}b||(d=null),m===a.current?o.current||l():(a.current=m,u.current=m,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function MP(e,t){return e===t}var c7=!1;function f7(e,t,r,{pure:n,areStatesEqual:i=MP,areOwnPropsEqual:a=Yo,areStatePropsEqual:o=Yo,areMergedPropsEqual:s=Yo,forwardRef:u=!1,context:l=Br}={}){const c=l,f=nP(e),d=rP(t),h=oP(r),v=!!e;return m=>{const b=m.displayName||m.name||"Component",_=`Connect(${b})`,S={shouldHandleStateChanges:v,displayName:_,wrappedComponentName:b,WrappedComponent:m,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function P(j){const[B,ee,te]=React.useMemo(()=>{const{reactReduxForwardedRef:J,...tt}=j;return[j.context,J,tt]},[j]),G=React.useMemo(()=>{let J=c;return B?.Consumer,J},[B,c]),ae=React.useContext(G),ce=!!j.store&&!!j.store.getState&&!!j.store.dispatch,ve=!!ae&&!!ae.store,me=ce?j.store:ae.store,be=ve?ae.getServerState:me.getState,_e=React.useMemo(()=>JA(me.dispatch,S),[me]),[Se,Pe]=React.useMemo(()=>{if(!v)return CP;const J=Ov(me,ce?void 0:ae.subscription),tt=J.notifyNestedSubs.bind(J);return[J,tt]},[me,ce,ae]),He=React.useMemo(()=>ce?ae:{...ae,subscription:Se},[ce,ae,Se]),kt=React.useRef(void 0),Ee=React.useRef(te),je=React.useRef(void 0),ct=React.useRef(!1),ft=React.useRef(!1),et=React.useRef(void 0);Ko(()=>(ft.current=!0,()=>{ft.current=!1}),[]);const ot=React.useMemo(()=>()=>je.current&&te===Ee.current?je.current:_e(me.getState(),te),[me,te]),ht=React.useMemo(()=>tt=>Se?PP(v,me,Se,_e,Ee,kt,ct,ft,je,Pe,tt):()=>{},[Se]);OP(AP,[Ee,kt,ct,te,je,Pe]);let le;try{le=React.useSyncExternalStore(ht,ot,be?()=>_e(be(),te):ot)}catch(J){throw et.current&&(J.message+=`
The error may be correlated with this previous error:
${et.current.stack}

`),J}Ko(()=>{et.current=void 0,je.current=void 0,kt.current=le});const ue=React.useMemo(()=>React.createElement(m,{...le,ref:ee}),[ee,m,le]);return React.useMemo(()=>v?React.createElement(G.Provider,{value:He},ue):ue,[G,ue,He])}const O=React.memo(P);if(O.WrappedComponent=m,O.displayName=P.displayName=_,u){const B=React.forwardRef(function(te,G){return React.createElement(O,{...te,reactReduxForwardedRef:G})});return B.displayName=_,B.WrappedComponent=m,sc(B,m)}return sc(O,m)}}var d7=null;function TP(e){const{children:t,context:r,serverState:n,store:i}=e,a=p.useMemo(()=>{const u=Ov(i);return{store:i,subscription:u,getServerState:n?()=>n:void 0}},[i,n]),o=p.useMemo(()=>i.getState(),[i]);Ko(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,o]);const s=r||Br;return p.createElement(s.Provider,{value:a},t)}var IP=TP;function jv(e=Br){return function(){return React.useContext(e)}}var Rv=null;function jP(e=Br){const t=e===Br?Rv:jv(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var RP=null;function p7(e=Br){const t=e===Br?RP:jP(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var h7=null,DP=(e,t)=>e===t;function v7(e=Br){const t=e===Br?Rv:jv(e),r=(n,i={})=>{const{equalityFn:a=DP}=typeof i=="function"?{equalityFn:i}:i,o=t(),{store:s,subscription:u,getServerState:l}=o,c=React.useRef(!0),f=React.useCallback({[n.name](h){return n(h)}}[n.name],[n]),d=useSyncExternalStoreWithSelector(u.addNestedSub,s.getState,l||s.getState,f,a);return React.useDebugValue(d),d};return Object.assign(r,{withTypes:()=>r}),r}var m7=null,g7=null,sn={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},kP={itemInteraction:{click:sn,hover:sn},axisInteraction:{click:sn,hover:sn},keyboardInteraction:sn,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Dv=Lt({name:"tooltip",initialState:kP,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ge()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Jt(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:Ge()},removeTooltipEntrySettings:{reducer(e,t){var r=Jt(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ge()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:NP,replaceTooltipEntrySettings:LP,removeTooltipEntrySettings:FP,setTooltipSettingsState:y7,setActiveMouseOverItemIndex:kv,mouseLeaveItem:$P,mouseLeaveChart:Nv,setActiveClickItemIndex:BP,setMouseOverAxisIndex:Lv,setMouseClickAxisIndex:VP,setSyncInteraction:Fv,setKeyboardInteraction:qo}=Dv.actions,zP=Dv.reducer,UP={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},$v=Lt({name:"chartData",initialState:UP,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:Bv,setDataStartEndIndexes:WP,setComputedData:b7}=$v.actions,HP=$v.reducer,KP={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Vv=Lt({name:"chartLayout",initialState:KP,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:YP,setLayout:qP,setChartSize:GP,setScale:XP}=Vv.actions,ZP=Vv.reducer,QP=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const i={};e(i)===i&&(n=!0)}catch{}if(n){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
\`createSelector([state => state.todos], todos => todos)\`
This could lead to inefficient memoization and unnecessary re-renders.
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},JP=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,s=n(()=>({}),...i);if(!(s.apply(null,a)===s.apply(null,o))){let l;try{throw new Error}catch(c){({stack:l}=c)}console.warn(`An input selector returned a different result when passed same arguments.
This means your output selector will likely run more frequently than intended.
Avoid returning a new reference inside your input selector, e.g.
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:a,secondInputs:o,stack:l})}},zv={inputStabilityCheck:"once",identityFunctionCheck:"once"},w7=e=>{Object.assign(zv,e)},Go=null;function Uv(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function e2(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function t2(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Wv=e=>Array.isArray(e)?e:[e];function r2(e){const t=Array.isArray(e[0])?e[0]:e;return t2(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function n2(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var x7=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...zv,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:QP},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:JP}}},Hv=0,aa=null,uc=class{revision=Hv;_value;_lastValue;_isEqual=lc;constructor(e,t=lc){this._value=this._lastValue=e,this._isEqual=t}get value(){return aa?.add(this),this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++Hv)}};function lc(e,t){return e===t}var i2=class{_cachedValue;_cachedRevision=-1;_deps=[];hits=0;fn;constructor(e){this.fn=e}clear(){this._cachedValue=void 0,this._cachedRevision=-1,this._deps=[],this.hits=0}get value(){if(this.revision>this._cachedRevision){const{fn:e}=this,t=new Set,r=aa;aa=t,this._cachedValue=e(),aa=r,this.hits++,this._deps=Array.from(t),this._cachedRevision=this.revision}return aa?.add(this),this._cachedValue}get revision(){return Math.max(...this._deps.map(e=>e.revision),0)}};function cc(e){return e instanceof uc||console.warn("Not a valid cell! ",e),e.value}function a2(e,t){if(!(e instanceof uc))throw new TypeError("setValue must be passed a tracked store created with `createStorage`.");e.value=e._lastValue=t}function o2(e,t=lc){return new uc(e,t)}function s2(e){return Uv(e,"the first parameter to `createCache` must be a function"),new i2(e)}var u2=(e,t)=>!1;function Xo(){return o2(null,u2)}function Zo(e,t){a2(e,t)}var Kv=e=>{let t=e.collectionTag;t===null&&(t=e.collectionTag=Xo()),cc(t)},Qo=e=>{const t=e.collectionTag;t!==null&&Zo(t,null)},_7=Symbol(),Yv=0,l2=Object.getPrototypeOf({}),c2=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,oa);tag=Xo();tags={};children={};collectionTag=null;id=Yv++},oa={get(e,t){function r(){const{value:i}=e,a=Reflect.get(i,t);if(typeof t=="symbol"||t in l2)return a;if(typeof a=="object"&&a!==null){let o=e.children[t];return o===void 0&&(o=e.children[t]=qv(a)),o.tag&&cc(o.tag),o.proxy}else{let o=e.tags[t];return o===void 0&&(o=e.tags[t]=Xo(),o.value=a),cc(o),a}}return r()},ownKeys(e){return Kv(e),Reflect.ownKeys(e.value)},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e.value,t)},has(e,t){return Reflect.has(e.value,t)}},f2=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],d2);tag=Xo();tags={};children={};collectionTag=null;id=Yv++},d2={get([e],t){return t==="length"&&Kv(e),oa.get(e,t)},ownKeys([e]){return oa.ownKeys(e)},getOwnPropertyDescriptor([e],t){return oa.getOwnPropertyDescriptor(e,t)},has([e],t){return oa.has(e,t)}};function qv(e){return Array.isArray(e)?new f2(e):new c2(e)}function Gv(e,t){const{value:r,tags:n,children:i}=e;if(e.value=t,Array.isArray(r)&&Array.isArray(t)&&r.length!==t.length)Qo(e);else if(r!==t){let a=0,o=0,s=!1;for(const l in r)a++;for(const l in t)if(o++,!(l in r)){s=!0;break}(s||a!==o)&&Qo(e)}for(const a in n){const o=r[a],s=t[a];o!==s&&(Qo(e),Zo(n[a],s)),typeof s=="object"&&s!==null&&delete n[a]}for(const a in i){const o=i[a],s=t[a];o.value!==s&&(typeof s=="object"&&s!==null?Gv(o,s):(Xv(o),delete i[a]))}}function Xv(e){e.tag&&Zo(e.tag,null),Qo(e);for(const t in e.tags)Zo(e.tags[t],null);for(const t in e.children)Xv(e.children[t])}function p2(e){let t;return{get(r){return t&&e(t.key,r)?t.value:Go},put(r,n){t={key:r,value:n}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function h2(e,t){let r=[];function n(s){const u=r.findIndex(l=>t(s,l.key));if(u>-1){const l=r[u];return u>0&&(r.splice(u,1),r.unshift(l)),l.value}return Go}function i(s,u){n(s)===Go&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var Zv=(e,t)=>e===t;function Qv(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;const{length:i}=r;for(let a=0;a<i;a++)if(!e(r[a],n[a]))return!1;return!0}}function S7(e,t){const r=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:n=Zv,maxSize:i=1,resultEqualityCheck:a}=r,o=Qv(n);let s=0;const u=i<=1?p2(o):h2(i,o);function l(){let c=u.get(arguments);if(c===Go){if(c=e.apply(null,arguments),s++,a){const d=u.getEntries().find(h=>a(h.value,c));d&&(c=d.value,s!==0&&s--)}u.put(arguments,c)}return c}return l.clearCache=()=>{u.clear(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function E7(e){const t=qv([]);let r=null;const n=Qv(Zv),i=s2(()=>e.apply(null,t.proxy));function a(){return n(r,arguments)||(Gv(t,arguments),r=arguments),i.value}return a.clearCache=()=>i.clear(),a}var v2=class{constructor(e){this.value=e}deref(){return this.value}},m2=typeof WeakRef<"u"?WeakRef:v2,g2=0,Jv=1;function Jo(){return{s:g2,v:void 0,o:null,p:null}}function em(e,t={}){let r=Jo();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let s=r;const{length:u}=arguments;for(let f=0,d=u;f<d;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let v=s.o;v===null&&(s.o=v=new WeakMap);const g=v.get(h);g===void 0?(s=Jo(),v.set(h,s)):s=g}else{let v=s.p;v===null&&(s.p=v=new Map);const g=v.get(h);g===void 0?(s=Jo(),v.set(h,s)):s=g}}const l=s;let c;if(s.s===Jv)c=s.v;else if(c=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,c)&&(c=f,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new m2(c):c}return l.s=Jv,l.v=c,c}return o.clearCache=()=>{r=Jo(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function y2(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,s,u={},l=i.pop();typeof l=="object"&&(u=l,l=i.pop()),Uv(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const c={...r,...u},{memoize:f,memoizeOptions:d=[],argsMemoize:h=em,argsMemoizeOptions:v=[],devModeChecks:g={}}=c,m=Wv(d),b=Wv(v),_=r2(i),S=f(function(){return a++,l.apply(null,arguments)},...m);let P=!0;const A=h(function(){o++;const j=n2(_,arguments);return s=S.apply(null,j),s},...b);return Object.assign(A,{resultFunc:l,memoizedResultFunc:S,dependencies:_,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var V=y2(em),b2=Object.assign((e,t=V)=>{e2(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,s,u)=>(o[r[u]]=s,o),{}))},{withTypes:()=>b2}),w2=De(3013),fc=(0,p.createContext)(null),x2=e=>e,yt=()=>{var e=(0,p.useContext)(fc);return e?e.store.dispatch:x2},es=()=>{},_2=()=>es,S2=(e,t)=>e===t;function Ye(e){var t=(0,p.useContext)(fc),r=(0,p.useMemo)(()=>t?n=>{if(n!=null)return e(n)}:es,[t,e]);return(0,w2.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:_2,t?t.store.getState:es,t?t.store.getState:es,r,S2)}var E2=De(5339),tm=De.n(E2),rm=e=>e.legend.settings,C2=e=>e.legend.size,O2=e=>e.legend.payload,C7=V([O2,rm],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?tm()(n,r):n});function Tn(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function A2(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Tn(e,t)}}function P2(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Tn(e,t)}}function M2(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,u=0,l=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,d=c[n-1][1]||0,h=(f-d)/2,v=0;v<s;++v){var g=e[t[v]],m=g[n][1]||0,b=g[n-1][1]||0;h+=m-b}u+=f,l+=h*f}i[n-1][1]+=i[n-1][0]=r,u&&(r-=l/u)}i[n-1][1]+=i[n-1][0]=r,Tn(e,t)}}var O7=Array.prototype.slice;function dc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function qe(e){return function(){return e}}function pc(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function T2(e,t){return e[t]}function I2(e){const t=[];return t.key=e,t}function j2(){var e=qe([]),t=pc,r=Tn,n=T2;function i(a){var o=Array.from(e.apply(this,arguments),I2),s,u=o.length,l=-1,c;for(const f of a)for(s=0,++l;s<u;++s)(o[s][l]=[0,+n(f,o[s].key,l,a)]).data=f;for(s=0,c=dc(t(o));s<u;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:qe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:qe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?pc:typeof a=="function"?a:qe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Tn,i):r},i}function nm(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function We(e){return Number.isFinite(e)}function ts(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function im(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?im(Object(r),!0).forEach(function(n){R2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):im(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R2(e,t,r){return(t=D2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D2(e){var t=k2(e,"string");return typeof t=="symbol"?t:t+""}function k2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ze(e,t,r){return Xt(e)||Xt(t)?r:ra(t)?ta()(e,t,r):typeof t=="function"?t(e):r}var N2=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:s}=t;if((s==="vertical"||s==="horizontal"&&o==="middle")&&a!=="center"&&ze(e[a]))return fi(fi({},e),{},{[a]:e[a]+(n||0)});if((s==="horizontal"||s==="vertical"&&a==="center")&&o!=="middle"&&ze(e[o]))return fi(fi({},e),{},{[o]:e[o]+(i||0)})}return e},un=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",A7=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var i,a,o=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===r&&(a=!0),s.coordinate));return i||o.push(t),a||o.push(r),o},P7=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:s,isCategorical:u,categoricalDomain:l,tickCount:c,ticks:f,niceTicks:d,axisType:h}=e;if(!o)return null;var v=s==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,g=(t||r)&&i==="category"&&o.bandwidth?o.bandwidth()/v:0;if(g=h==="angleAxis"&&a&&a.length>=2?mathSign(a[0]-a[1])*2*g:g,t&&(f||d)){var m=(f||d||[]).map((b,_)=>{var S=n?n.indexOf(b):b,P=o.map(S);return isWellBehavedNumber(P)?{coordinate:P+g,value:b,offset:g,index:_}:null}).filter(isNotNil);return m}return u&&l?l.map((b,_)=>{var S=o.map(b);return isWellBehavedNumber(S)?{coordinate:S+g,value:b,index:_,offset:g}:null}).filter(isNotNil):o.ticks&&!r&&c!=null?o.ticks(c).map((b,_)=>{var S=o.map(b);return isWellBehavedNumber(S)?{coordinate:S+g,value:b,index:_,offset:g}:null}).filter(isNotNil):o.domain().map((b,_)=>{var S=o.map(b);return isWellBehavedNumber(S)?{coordinate:S+g,value:n?n[b]:b,index:_,offset:g}:null}).filter(isNotNil)},M7=(e,t)=>{if(!t||t.length!==2||!isNumber(t[0])||!isNumber(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!isNumber(e[0])||e[0]<r)&&(i[0]=r),(!isNumber(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},L2=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,s=0;s<r;++s){var u=e[s],l=u?.[i];if(l!=null){var c=l[1],f=l[0],d=$r(c)?f:c;d>=0?(l[0]=a,a+=d,l[1]=a):(l[0]=o,o+=d,l[1]=o)}}}},F2=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var s=e[o],u=s?.[i];if(u!=null){var l=$r(u[1])?u[0]:u[1];l>=0?(u[0]=a,a+=l,u[1]=a):(u[0]=0,u[1]=0)}}}},$2={sign:L2,expand:A2,none:Tn,silhouette:P2,wiggle:M2,positive:F2},B2=(e,t,r)=>{var n,i=(n=$2[r])!==null&&n!==void 0?n:Tn,a=j2().keys(t).value((s,u)=>Number(Ze(s,u,0))).order(pc).offset(i),o=a(e);return o.forEach((s,u)=>{s.forEach((l,c)=>{var f=Ze(e[c],t[u],0);Array.isArray(f)&&f.length===2&&ze(f[0])&&ze(f[1])&&(l[0]=f[0],l[1]=f[1])})}),o};function T7(e){return e==null?void 0:String(e)}function I7(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!isNullish(i[t.dataKey])){var s=findEntryInArray(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var u=Ze(i,isNullish(o)?t.dataKey:o),l=t.scale.map(u);return isNumber(l)?l:null}var j7=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var s=Ze(a,t.dataKey,t.scale.domain()[o]);if(isNullish(s))return null;var u=t.scale.map(s);return isNumber(u)?u-i/2+n:null},R7=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},V2=e=>{var t=e.flat(2).filter(ze);return[Math.min(...t),Math.max(...t)]},z2=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],U2=(e,t,r)=>{if(e!=null)return z2(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,s=o.reduce((u,l)=>{var c=nm(l,t,r),f=V2(c);return!We(f[0])||!We(f[1])?u:[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},am=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,om=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,D7=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=sortBy(t,c=>c.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var u=i[o],l=i[o-1];a=Math.min((u?.coordinate||0)-(l?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function sm(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return fi(fi({},t),{},{dataKey:r,payload:n,value:i,name:a})}function um(e,t){if(e)return String(e);if(typeof t=="string")return t}var W2=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},H2=(e,t)=>t==="centric"?e.angle:e.radius,Vr=e=>e.layout.width,zr=e=>e.layout.height,K2=e=>e.layout.scale,lm=e=>e.layout.margin,rs=V(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),ns=V(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),k7=null,cm="data-recharts-item-index",fm="data-recharts-item-id",sa=60;function dm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function is(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dm(Object(r),!0).forEach(function(n){Y2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y2(e,t,r){return(t=q2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q2(e){var t=G2(e,"string");return typeof t=="symbol"?t:t+""}function G2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X2=e=>e.brush.height;function Z2(e){var t=ns(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:sa;return r+i}return r},0)}function Q2(e){var t=ns(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:sa;return r+i}return r},0)}function J2(e){var t=rs(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function eM(e){var t=rs(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Rt=V([Vr,zr,lm,X2,Z2,Q2,J2,eM,rm,C2],(e,t,r,n,i,a,o,s,u,l)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+s},d=is(is({},f),c),h=d.bottom;d.bottom+=n,d=N2(d,u,l);var v=e-d.left-d.right,g=t-d.top-d.bottom;return is(is({brushBottom:h},d),{},{width:Math.max(v,0),height:Math.max(g,0)})}),tM=V(Rt,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),N7=V(Vr,zr,(e,t)=>({x:0,y:0,width:e,height:t})),pm=(0,p.createContext)(null),ln=()=>(0,p.useContext)(pm)!=null,L7=e=>{var{children:t}=e;return React.createElement(pm.Provider,{value:!0},t)},as=e=>e.brush,os=V([as,Rt,lm],(e,t,r)=>({height:e.height,x:ze(e.x)?e.x:t.left,y:ze(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:ze(e.width)?e.width:t.width})),In={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},F7=(e,t,r)=>{var{width:n=In.width,height:i=In.height,aspect:a,maxHeight:o}=r,s=isPercent(n)?e:Number(n),u=isPercent(i)?t:Number(i);return a&&a>0&&(s?u=s/a:u&&(s=u*a),o&&u!=null&&u>o&&(u=o)),{calculatedWidth:s,calculatedHeight:u}},rM={width:0,height:0,overflow:"visible"},nM={width:0,overflowX:"visible"},iM={height:0,overflowY:"visible"},aM={},$7=e=>{var{width:t,height:r}=e,n=isPercent(t),i=isPercent(r);return n&&i?rM:n?nM:i?iM:aM};function B7(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=In.width,a=In.height):i===void 0?i=n&&n>0?void 0:In.width:a===void 0&&(a=n&&n>0?void 0:In.height),{width:i,height:a}}function hm(){return hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hm.apply(null,arguments)}function vm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function V7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vm(Object(r),!0).forEach(function(n){oM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oM(e,t,r){return(t=sM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sM(e){var t=uM(e,"string");return typeof t=="symbol"?t:t+""}function uM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mm=(0,p.createContext)(In.initialDimension);function lM(e){return isPositiveNumber(e.width)&&isPositiveNumber(e.height)}function z7(e){var{children:t,width:r,height:n}=e,i=useMemo(()=>({width:r,height:n}),[r,n]);return lM(i)?React.createElement(mm.Provider,{value:i},t):null}var gm=()=>(0,p.useContext)(mm),U7=null,W7=null;function hc(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var ym=()=>{var e,t=ln(),r=Ye(tM),n=Ye(os),i=(e=Ye(as))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},cM={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},H7=()=>{var e;return(e=useAppSelector(selectChartOffsetInternal))!==null&&e!==void 0?e:cM},fM=()=>Ye(Vr),dM=()=>Ye(zr),K7=()=>useAppSelector(e=>e.layout.margin),Qe=e=>e.layout.layoutType,ss=()=>Ye(Qe),Y7=()=>{var e=ss();if(e==="horizontal"||e==="vertical")return e},vc=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},q7=()=>useAppSelector(vc),pM=()=>{var e=ss();return e!==void 0},ua=e=>{var t=yt(),r=ln(),{width:n,height:i}=e,a=gm(),o=n,s=i;return a&&(o=a.width>0?a.width:n,s=a.height>0?a.height:i),(0,p.useEffect)(()=>{!r&&ts(o)&&ts(s)&&t(GP({width:o,height:s}))},[t,r,o,s]),null},G7=e=>{var{margin:t}=e,r=useAppDispatch();return useEffect(()=>{r(setMargin(t))},[r,t]),null},hM=De(2625),bm=De.n(hM),Ur=e=>e.chartData,us=V([Ur],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),wm=(e,t,r,n)=>n?us(e):Ur(e),X7=(e,t,r)=>r?us(e):Ur(e);function Sr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(We(t)&&We(r))return!0}return!1}function xm(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function _m(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(We(r))i=r;else if(typeof r=="function")return;if(We(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Sr(o))return o}}function vM(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Sr(n))return xm(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i==="auto")t!=null&&(o=Math.min(...t));else if(ze(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&am.test(i)){var u=am.exec(i);if(u==null||u[1]==null||t==null)o=void 0;else{var l=+u[1];o=t[0]-l}}else o=t?.[0];if(a==="auto")t!=null&&(s=Math.max(...t));else if(ze(a))s=a;else if(typeof a=="function")try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a=="string"&&om.test(a)){var c=om.exec(a);if(c==null||c[1]==null||t==null)s=void 0;else{var f=+c[1];s=t[1]+f}}else s=t?.[1];var d=[o,s];if(Sr(d))return t==null?d:xm(d,t,r)}}}var mM=De(7852),Me=De.n(mM);function Sm(e){var t;return e===0?t=1:t=Math.floor(new(Me())(e).abs().log(10).toNumber())+1,t}function Em(e,t,r){for(var n=new(Me())(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Cm=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},mc=(e,t,r)=>{if(e.lte(0))return new(Me())(0);var n=Sm(e.toNumber()),i=new(Me())(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new(Me())(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?new(Me())(u.toNumber()):new(Me())(Math.ceil(u.toNumber()))},Om=(e,t,r)=>{var n;if(e.lte(0))return new(Me())(0);var i=[1,2,2.5,5],a=e.toNumber(),o=Math.floor(new(Me())(a).abs().log(10).toNumber()),s=new(Me())(10).pow(o),u=e.div(s).toNumber(),l=i.findIndex(h=>h>=u-1e-10);if(l===-1&&(s=s.mul(10),l=0),l+=r,l>=i.length){var c=Math.floor(l/i.length);l%=i.length,s=s.mul(new(Me())(10).pow(c))}var f=(n=i[l])!==null&&n!==void 0?n:1,d=new(Me())(f).mul(s);return t?d:new(Me())(Math.ceil(d.toNumber()))},gM=(e,t,r)=>{var n=new(Me())(1),i=new(Me())(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new(Me())(10).pow(Sm(e)-1),i=new(Me())(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new(Me())(Math.floor(e)))}else e===0?i=new(Me())(Math.floor((t-1)/2)):r||(i=new(Me())(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],u=0;u<t;u++)s.push(i.add(new(Me())(u-o).mul(n)).toNumber());return s},Am=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:mc;if(!Number.isFinite((r-t)/(n-1)))return{step:new(Me())(0),tickMin:new(Me())(0),tickMax:new(Me())(0)};var s=o(new(Me())(r).sub(t).div(n-1),i,a),u;t<=0&&r>=0?u=new(Me())(0):(u=new(Me())(t).add(r).div(2),u=u.sub(new(Me())(u).mod(s)));var l=Math.ceil(u.sub(t).div(s).toNumber()),c=Math.ceil(new(Me())(r).sub(u).div(s).toNumber()),f=l+c+1;return f>n?Am(t,r,n,i,a+1,o):(f<n&&(c=r>0?c+(n-f):c,l=r>0?l:l+(n-f)),{step:s,tickMin:u.sub(new(Me())(l).mul(s)),tickMax:u.add(new(Me())(c).mul(s))})},Pm=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",s=Math.max(i,2),[u,l]=Cm([r,n]);if(u===-1/0||l===1/0){var c=l===1/0?[u,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),l];return r>n?c.reverse():c}if(u===l)return gM(u,i,a);var f=o==="snap125"?Om:mc,{step:d,tickMin:h,tickMax:v}=Am(u,l,s,a,0,f),g=Em(h,v.add(new(Me())(.1).mul(d)),d);return r>n?g.reverse():g},Mm=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[s,u]=Cm([n,i]);if(s===-1/0||u===1/0)return[n,i];if(s===u)return[s];var l=o==="snap125"?Om:mc,c=Math.max(r,2),f=l(new(Me())(u).sub(s).div(c-1),a,0),d=[...Em(new(Me())(s),new(Me())(u),f),u];return a===!1&&(d=d.map(h=>Math.round(h))),n>i?d.reverse():d},Z7=e=>e.rootProps.maxBarSize,Q7=e=>e.rootProps.barGap,yM=e=>e.rootProps.barCategoryGap,J7=e=>e.rootProps.barSize,la=e=>e.rootProps.stackOffset,Tm=e=>e.rootProps.reverseStackOrder,Im=e=>e.options.chartName,jm=e=>e.rootProps.syncId,bM=e=>e.rootProps.syncMethod,Rm=e=>e.options.eventEmitter,eF=e=>e.rootProps.baseValue;function Dm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function km(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dm(Object(r),!0).forEach(function(n){wM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wM(e,t,r){return(t=xM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e){var t=_M(e,"string");return typeof t=="symbol"?t:t+""}function _M(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ls=Math.PI/180,tF=e=>e*Math.PI/180,SM=e=>e*180/Math.PI,Ft=(e,t,r,n)=>({x:e+Math.cos(-ls*n)*r,y:t+Math.sin(-ls*n)*r}),Nm=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},EM=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},CM=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=EM({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(r-i)/o,u=Math.acos(s);return n>a&&(u=2*Math.PI-u),{radius:o,angle:SM(u),angleInRadian:u}},OM=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},AM=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},PM=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:a}=CM({x:r,y:n},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:u,endAngle:l}=OM(t),c=a,f;if(u<=l){for(;c>l;)c-=360;for(;c<u;)c+=360;f=c>=u&&c<=l}else{for(;c>u;)c-=360;for(;c<l;)c+=360;f=c>=l&&c<=u}return f?km(km({},t),{},{radius:i,angle:AM(c,t)}):null},Wr={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},jn={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:Wr.axis},Er={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:Wr.axis},cs=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Lm(e,t,r){if(r!=="auto")return r;if(e!=null)return un(e,t)?"category":"number"}function Fm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fm(Object(r),!0).forEach(function(n){MM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MM(e,t,r){return(t=TM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TM(e){var t=IM(e,"string");return typeof t=="symbol"?t:t+""}function IM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $m={allowDataOverflow:jn.allowDataOverflow,allowDecimals:jn.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:jn.angleAxisId,includeHidden:!1,name:void 0,reversed:jn.reversed,scale:jn.scale,tick:jn.tick,tickCount:void 0,ticks:void 0,type:jn.type,unit:void 0,niceTicks:"auto"},Bm={allowDataOverflow:Er.allowDataOverflow,allowDecimals:Er.allowDecimals,allowDuplicatedCategory:Er.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Er.radiusAxisId,includeHidden:Er.includeHidden,name:void 0,reversed:Er.reversed,scale:Er.scale,tick:Er.tick,tickCount:Er.tickCount,ticks:void 0,type:Er.type,unit:void 0,niceTicks:"auto"},jM=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},gc=V([jM,vc],(e,t)=>{var r;if(e!=null)return e;var n=(r=Lm(t,"angleAxis",$m.type))!==null&&r!==void 0?r:"category";return fs(fs({},$m),{},{type:n})}),RM=(e,t)=>e.polarAxis.radiusAxis[t],yc=V([RM,vc],(e,t)=>{var r;if(e!=null)return e;var n=(r=Lm(t,"radiusAxis",Bm.type))!==null&&r!==void 0?r:"category";return fs(fs({},Bm),{},{type:n})}),ds=e=>e.polarOptions,bc=V([Vr,zr,Rt],Nm),Vm=V([ds,bc],(e,t)=>{if(e!=null)return Gt(e.innerRadius,t,0)}),zm=V([ds,bc],(e,t)=>{if(e!=null)return Gt(e.outerRadius,t,t*.8)}),DM=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},Um=V([ds],DM),rF=V([gc,Um],cs),Wm=V([bc,Vm,zm],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),nF=V([yc,Wm],cs),Hm=V([Qe,ds,Vm,zm,Vr,zr],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:s,startAngle:u,endAngle:l}=t;return{cx:Gt(o,i,i/2),cy:Gt(s,a,a/2),innerRadius:r,outerRadius:n,startAngle:u,endAngle:l,clockWise:!1}}}),at=(e,t)=>t,ca=(e,t,r)=>r;function Km(e){return e?.id}function Ym(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(s=>{var u,l=(u=s.data)!==null&&u!==void 0?u:n;if(!(l==null||l.length===0)){var c=Km(s);l.forEach((f,d)=>{var h=a==null||i?d:String(Ze(f,a,null)),v=Ze(f,s.dataKey,0),g;o.has(h)?g=o.get(h):g={},Object.assign(g,{[c]:v}),o.set(h,g)})}}),Array.from(o.values())}function wc(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var ps=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function hs(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function kM(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var Ot=e=>{var t=Qe(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},di=e=>e.tooltip.settings.axisId;function xc(e){if(e!=null){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:(function(a){function o(){return a.apply(this,arguments)}return o.toString=function(){return a.toString()},o})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var o=i[0],s=i[1];return o<=s?a>=o&&a<=s:a>=s&&a<=o},bandwidth:r?()=>r.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,o)=>{var s=e(a);if(s!=null){if(e.bandwidth&&o!==null&&o!==void 0&&o.position){var u=e.bandwidth();switch(o.position){case"middle":s+=u/2;break;case"end":s+=u;break;default:break}}return s}}}}}var qm=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Sr(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];We(a)&&((r===void 0||a<r)&&(r=a),(n===void 0||a>n)&&(n=a))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function NM(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function er(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Hr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}class Gm extends Map{constructor(t,r=Qm){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(_c(this,t))}has(t){return super.has(_c(this,t))}set(t,r){return super.set(Xm(this,t),r)}delete(t){return super.delete(Zm(this,t))}}class iF extends Set{constructor(t,r=Qm){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const n of t)this.add(n)}has(t){return super.has(_c(this,t))}add(t){return super.add(Xm(this,t))}delete(t){return super.delete(Zm(this,t))}}function _c({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Xm({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Zm({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Qm(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Sc=Symbol("implicit");function Ec(){var e=new Gm,t=[],r=[],n=Sc;function i(a){let o=e.get(a);if(o===void 0){if(n!==Sc)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Gm;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Ec(t,r).unknown(n)},er.apply(i,arguments),i}function Cc(){var e=Ec().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,u=0,l=0,c=.5;delete e.unknown;function f(){var d=t().length,h=i<n,v=h?i:n,g=h?n:i;a=(g-v)/Math.max(1,d-u+l*2),s&&(a=Math.floor(a)),v+=(g-v-a*(d-u))*c,o=a*(1-u),s&&(v=Math.round(v),o=Math.round(o));var m=NM(d).map(function(b){return v+a*b});return r(h?m.reverse():m)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(u=Math.min(1,l=+d),f()):u},e.paddingInner=function(d){return arguments.length?(u=Math.min(1,d),f()):u},e.paddingOuter=function(d){return arguments.length?(l=+d,f()):l},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Cc(t(),[n,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},er.apply(f(),arguments)}function Jm(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Jm(t())},e}function LM(){return Jm(Cc.apply(null,arguments).paddingInner(1))}const FM=Math.sqrt(50),$M=Math.sqrt(10),BM=Math.sqrt(2);function vs(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=FM?10:a>=$M?5:a>=BM?2:1;let s,u,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(e*l),u=Math.round(t*l),s/l<e&&++s,u/l>t&&--u,l=-l):(l=Math.pow(10,i)*o,s=Math.round(e/l),u=Math.round(t/l),s*l<e&&++s,u*l>t&&--u),u<s&&.5<=r&&r<2?vs(e,t,r*2):[s,u,l]}function Oc(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?vs(t,e,r):vs(e,t,r);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(n)if(o<0)for(let l=0;l<s;++l)u[l]=(a-l)/-o;else for(let l=0;l<s;++l)u[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)u[l]=(i+l)/-o;else for(let l=0;l<s;++l)u[l]=(i+l)*o;return u}function Ac(e,t,r){return t=+t,e=+e,r=+r,vs(e,t,r)[2]}function Pc(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Ac(t,e,r):Ac(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function cn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function VM(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Mc(e){let t,r,n;e.length!==2?(t=cn,r=(s,u)=>cn(e(s),u),n=(s,u)=>e(s)-u):(t=e===cn||e===VM?e:zM,r=e,n=e);function i(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;r(s[f],u)<0?l=f+1:c=f}while(l<c)}return l}function a(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;r(s[f],u)<=0?l=f+1:c=f}while(l<c)}return l}function o(s,u,l=0,c=s.length){const f=i(s,u,l,c-1);return f>l&&n(s[f-1],u)>-n(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function zM(){return 0}function e0(e){return e===null?NaN:+e}function*UM(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const t0=Mc(cn),WM=t0.right,aF=t0.left,oF=Mc(e0).center;var fa=WM;function Tc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function da(){}var pa=.7,ms=1/pa,pi="\\s*([+-]?\\d+)\\s*",ha="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HM=/^#([0-9a-f]{3,8})$/,KM=new RegExp(`^rgb\\(${pi},${pi},${pi}\\)$`),YM=new RegExp(`^rgb\\(${Cr},${Cr},${Cr}\\)$`),qM=new RegExp(`^rgba\\(${pi},${pi},${pi},${ha}\\)$`),GM=new RegExp(`^rgba\\(${Cr},${Cr},${Cr},${ha}\\)$`),XM=new RegExp(`^hsl\\(${ha},${Cr},${Cr}\\)$`),ZM=new RegExp(`^hsla\\(${ha},${Cr},${Cr},${ha}\\)$`),n0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Tc(da,va,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:i0,formatHex:i0,formatHex8:QM,formatHsl:JM,formatRgb:a0,toString:a0});function i0(){return this.rgb().formatHex()}function QM(){return this.rgb().formatHex8()}function JM(){return c0(this).formatHsl()}function a0(){return this.rgb().formatRgb()}function va(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=HM.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?o0(t):r===3?new Wt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?gs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?gs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=KM.exec(e))?new Wt(t[1],t[2],t[3],1):(t=YM.exec(e))?new Wt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qM.exec(e))?gs(t[1],t[2],t[3],t[4]):(t=GM.exec(e))?gs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=XM.exec(e))?l0(t[1],t[2]/100,t[3]/100,1):(t=ZM.exec(e))?l0(t[1],t[2]/100,t[3]/100,t[4]):n0.hasOwnProperty(e)?o0(n0[e]):e==="transparent"?new Wt(NaN,NaN,NaN,0):null}function o0(e){return new Wt(e>>16&255,e>>8&255,e&255,1)}function gs(e,t,r,n){return n<=0&&(e=t=r=NaN),new Wt(e,t,r,n)}function eT(e){return e instanceof da||(e=va(e)),e?(e=e.rgb(),new Wt(e.r,e.g,e.b,e.opacity)):new Wt}function ys(e,t,r,n){return arguments.length===1?eT(e):new Wt(e,t,r,n??1)}function Wt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Tc(Wt,ys,r0(da,{brighter(e){return e=e==null?ms:Math.pow(ms,e),new Wt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pa:Math.pow(pa,e),new Wt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wt(Rn(this.r),Rn(this.g),Rn(this.b),bs(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:s0,formatHex:s0,formatHex8:tT,formatRgb:u0,toString:u0}));function s0(){return`#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}`}function tT(){return`#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}${Dn((isNaN(this.opacity)?1:this.opacity)*255)}`}function u0(){const e=bs(this.opacity);return`${e===1?"rgb(":"rgba("}${Rn(this.r)}, ${Rn(this.g)}, ${Rn(this.b)}${e===1?")":`, ${e})`}`}function bs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Rn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Dn(e){return e=Rn(e),(e<16?"0":"")+e.toString(16)}function l0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fr(e,t,r,n)}function c0(e){if(e instanceof fr)return new fr(e.h,e.s,e.l,e.opacity);if(e instanceof da||(e=va(e)),!e)return new fr;if(e instanceof fr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new fr(o,s,u,e.opacity)}function rT(e,t,r,n){return arguments.length===1?c0(e):new fr(e,t,r,n??1)}function fr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Tc(fr,rT,r0(da,{brighter(e){return e=e==null?ms:Math.pow(ms,e),new fr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pa:Math.pow(pa,e),new fr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Wt(Ic(e>=240?e-240:e+120,i,n),Ic(e,i,n),Ic(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new fr(f0(this.h),ws(this.s),ws(this.l),bs(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=bs(this.opacity);return`${e===1?"hsl(":"hsla("}${f0(this.h)}, ${ws(this.s)*100}%, ${ws(this.l)*100}%${e===1?")":`, ${e})`}`}}));function f0(e){return e=(e||0)%360,e<0?e+360:e}function ws(e){return Math.max(0,Math.min(1,e||0))}function Ic(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function d0(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function nT(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n<t-1?e[n+2]:2*a-i;return d0((r-n/t)*t,o,i,a,s)}}function iT(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return d0((r-n/t)*t,i,a,o,s)}}var jc=(e=>()=>e);function p0(e,t){return function(r){return e+r*t}}function aT(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function sF(e,t){var r=t-e;return r?p0(e,r>180||r<-180?r-360*Math.round(r/360):r):constant(isNaN(e)?t:e)}function oT(e){return(e=+e)==1?h0:function(t,r){return r-t?aT(t,r,e):jc(isNaN(t)?r:t)}}function h0(e,t){var r=t-e;return r?p0(e,r):jc(isNaN(e)?t:e)}var v0=(function e(t){var r=oT(t);function n(i,a){var o=r((i=ys(i)).r,(a=ys(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=h0(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return n.gamma=e,n})(1);function m0(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o<r;++o)s=ys(t[o]),n[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return n=e(n),i=e(i),a=e(a),s.opacity=1,function(u){return s.r=n(u),s.g=i(u),s.b=a(u),s+""}}}var uF=m0(nT),lF=m0(iT);function cF(e,t){return(isNumberArray(t)?numberArray:g0)(e,t)}function g0(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=hi(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function sT(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xs(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function uT(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=hi(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Rc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dc=new RegExp(Rc.source,"g");function lT(e){return function(){return e}}function cT(e){return function(t){return e(t)+""}}function fT(e,t){var r=Rc.lastIndex=Dc.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=Rc.exec(e))&&(i=Dc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:xs(n,i)})),r=Dc.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?cT(u[0].x):lT(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function dT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function pT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function hi(e,t){var r=typeof t,n;return t==null||r==="boolean"?jc(t):(r==="number"?xs:r==="string"?(n=va(t))?(t=n,v0):fT:t instanceof va?v0:t instanceof Date?sT:pT(t)?dT:Array.isArray(t)?g0:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?uT:xs)(e,t)}function kc(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function hT(e){return function(){return e}}function _s(e){return+e}var y0=[0,1];function Vt(e){return e}function Nc(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:hT(isNaN(t)?NaN:.5)}function vT(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function mT(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Nc(i,n),a=r(o,a)):(n=Nc(n,i),a=r(a,o)),function(s){return a(n(s))}}function gT(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Nc(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=fa(e,s,1,n)-1;return a[u](i[u](s))}}function ma(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ss(){var e=y0,t=y0,r=hi,n,i,a,o=Vt,s,u,l;function c(){var d=Math.min(e.length,t.length);return o!==Vt&&(o=vT(e[0],e[d-1])),s=d>2?gT:mT,u=l=null,f}function f(d){return d==null||isNaN(d=+d)?a:(u||(u=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((l||(l=s(t,e.map(n),xs)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,_s),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=kc,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Vt,c()):o!==Vt},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,c()}}function Lc(){return Ss()(Vt,Vt)}var yT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ga(e){if(!(t=yT.exec(e)))throw new Error("invalid format: "+e);var t;return new Fc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ga.prototype=Fc.prototype;function Fc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Fc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function bT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Es(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function vi(e){return e=Es(Math.abs(e)),e?e[1]:NaN}function wT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vi(t)/3)))*3-vi(Math.abs(e)))}function xT(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function _T(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}function ST(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var b0;function ET(e,t){var r=Es(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(b0=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Es(e,Math.max(0,t+a-1))[0]}function w0(e,t){var r=Es(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var x0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bT,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>w0(e*100,t),r:w0,s:ET,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function _0(e){return e}var S0=Array.prototype.map,E0=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function CT(e){var t=e.grouping===void 0||e.thousands===void 0?_0:xT(S0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?_0:_T(S0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=ga(f);var d=f.fill,h=f.align,v=f.sign,g=f.symbol,m=f.zero,b=f.width,_=f.comma,S=f.precision,P=f.trim,A=f.type;A==="n"?(_=!0,A="g"):x0[A]||(S===void 0&&(S=12),P=!0,A="g"),(m||d==="0"&&h==="=")&&(m=!0,d="0",h="=");var O=g==="$"?r:g==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",j=g==="$"?n:/[%p]/.test(A)?o:"",B=x0[A],ee=/[defgprs%]/.test(A);S=S===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function te(G){var ae=O,ce=j,ve,me,be;if(A==="c")ce=B(G)+ce,G="";else{G=+G;var _e=G<0||1/G<0;if(G=isNaN(G)?u:B(Math.abs(G),S),P&&(G=ST(G)),_e&&+G==0&&v!=="+"&&(_e=!1),ae=(_e?v==="("?v:s:v==="-"||v==="("?"":v)+ae,ce=(A==="s"?E0[8+b0/3]:"")+ce+(_e&&v==="("?")":""),ee){for(ve=-1,me=G.length;++ve<me;)if(be=G.charCodeAt(ve),48>be||be>57){ce=(be===46?i+G.slice(ve+1):G.slice(ve))+ce,G=G.slice(0,ve);break}}}_&&!m&&(G=t(G,1/0));var Se=ae.length+G.length+ce.length,Pe=Se<b?new Array(b-Se+1).join(d):"";switch(_&&m&&(G=t(Pe+G,Pe.length?b-ce.length:1/0),Pe=""),h){case"<":G=ae+G+ce+Pe;break;case"=":G=ae+Pe+G+ce;break;case"^":G=Pe.slice(0,Se=Pe.length>>1)+ae+G+ce+Pe.slice(Se);break;default:G=Pe+ae+G+ce;break}return a(G)}return te.toString=function(){return f+""},te}function c(f,d){var h=l((f=ga(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(vi(d)/3)))*3,g=Math.pow(10,-v),m=E0[8+v/3];return function(b){return h(g*b)+m}}return{format:l,formatPrefix:c}}var Cs,$c,C0;OT({thousands:",",grouping:[3],currency:["$",""]});function OT(e){return Cs=CT(e),$c=Cs.format,C0=Cs.formatPrefix,Cs}function AT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vi(t)-vi(e))+1}function PT(e){return Math.max(0,-vi(Math.abs(e)))}function O0(e,t,r,n){var i=Pc(e,t,r),a;switch(n=ga(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=wT(i,o))&&(n.precision=a),C0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=AT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=PT(i))&&(n.precision=a-(n.type==="%")*2);break}}return $c(n)}function fn(e){var t=e.domain;return e.ticks=function(r){var n=t();return Oc(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return O0(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],u,l,c=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);c-- >0;){if(l=Ac(o,s,r),l===u)return n[i]=o,n[a]=s,t(n);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function A0(){var e=Lc();return e.copy=function(){return ma(e,A0())},er.apply(e,arguments),fn(e)}function P0(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,_s),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return P0(e).unknown(t)},e=arguments.length?Array.from(e,_s):[0,1],fn(r)}function M0(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function T0(e){return Math.log(e)}function I0(e){return Math.exp(e)}function MT(e){return-Math.log(-e)}function TT(e){return-Math.exp(-e)}function IT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function jT(e){return e===10?IT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function RT(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function j0(e){return(t,r)=>-e(-t,r)}function Bc(e){const t=e(T0,I0),r=t.domain;let n=10,i,a;function o(){return i=RT(n),a=jT(n),r()[0]<0?(i=j0(i),a=j0(a),e(MT,TT)):e(T0,I0),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let l=u[0],c=u[u.length-1];const f=c<l;f&&([l,c]=[c,l]);let d=i(l),h=i(c),v,g;const m=s==null?10:+s;let b=[];if(!(n%1)&&h-d<m){if(d=Math.floor(d),h=Math.ceil(h),l>0){for(;d<=h;++d)for(v=1;v<n;++v)if(g=d<0?v/a(-d):v*a(d),!(g<l)){if(g>c)break;b.push(g)}}else for(;d<=h;++d)for(v=n-1;v>=1;--v)if(g=d>0?v/a(-d):v*a(d),!(g<l)){if(g>c)break;b.push(g)}b.length*2<m&&(b=Oc(l,c,m))}else b=Oc(d,h,Math.min(h-d,m)).map(a);return f?b.reverse():b},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=ga(u)).precision==null&&(u.trim=!0),u=$c(u)),s===1/0)return u;const l=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=l?u(c):""}},t.nice=()=>r(M0(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function R0(){const e=Bc(Ss()).domain([1,10]);return e.copy=()=>ma(e,R0()).base(e.base()),er.apply(e,arguments),e}function D0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function k0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Vc(e){var t=1,r=e(D0(t),k0(t));return r.constant=function(n){return arguments.length?e(D0(t=+n),k0(t)):t},fn(r)}function N0(){var e=Vc(Ss());return e.copy=function(){return ma(e,N0()).constant(e.constant())},er.apply(e,arguments)}function L0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function DT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function kT(e){return e<0?-e*e:e*e}function zc(e){var t=e(Vt,Vt),r=1;function n(){return r===1?e(Vt,Vt):r===.5?e(DT,kT):e(L0(r),L0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},fn(t)}function Uc(){var e=zc(Ss());return e.copy=function(){return ma(e,Uc()).exponent(e.exponent())},er.apply(e,arguments),e}function NT(){return Uc.apply(null,arguments).exponent(.5)}function F0(e){return Math.sign(e)*e*e}function LT(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $0(){var e=Lc(),t=[0,1],r=!1,n;function i(a){var o=LT(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(F0(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,_s)).map(F0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return $0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},er.apply(i,arguments),fn(i)}function B0(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function V0(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function fF(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[r]=t;if(r&&r.length!==2||t.length>1){const n=Uint32Array.from(e,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),n.sort((i,a)=>{for(const o of t){const s=Os(o[i],o[a]);if(s)return s}})):(r=e.map(r),n.sort((i,a)=>Os(r[i],r[a]))),permute(e,n)}return e.sort(z0(r))}function z0(e=cn){if(e===cn)return Os;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Os(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function U0(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Os:z0(i);n>r;){if(n-r>600){const u=n-r+1,l=t-r+1,c=Math.log(u),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1),h=Math.max(r,Math.floor(t-l*f/u+d)),v=Math.min(n,Math.floor(t+(u-l)*f/u+d));U0(e,t,h,v,i)}const a=e[t];let o=r,s=n;for(ya(e,r,t),i(e[n],a)>0&&ya(e,r,n);o<s;){for(ya(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?ya(e,r,s):(++s,ya(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function ya(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function FT(e,t,r){if(e=Float64Array.from(UM(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return V0(e);if(t>=1)return B0(e);var n,i=(n-1)*t,a=Math.floor(i),o=B0(U0(e,a).subarray(0,a+1)),s=V0(e.subarray(a+1));return o+(s-o)*(i-a)}}function $T(e,t,r=e0){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function dF(e,t,r=number){if(!isNaN(t=+t)){if(n=Float64Array.from(e,(s,u)=>number(r(e[u],u,e))),t<=0)return minIndex(n);if(t>=1)return maxIndex(n);var n,i=Uint32Array.from(e,(s,u)=>u),a=n.length-1,o=Math.floor(a*t);return quickselect(i,o,0,a,(s,u)=>ascendingDefined(n[s],n[u])),o=greatest(i.subarray(0,o+1),s=>n[s]),o>=0?o:-1}}function W0(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=$T(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[fa(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(cn),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return W0().domain(e).range(t).unknown(n)},er.apply(a,arguments)}function H0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[fa(n,u,0,r)]:a}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,s()):i.slice()},o.invertExtent=function(u){var l=i.indexOf(u);return l<0?[NaN,NaN]:l<1?[e,n[0]]:l>=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return H0().domain([e,t]).range(i).unknown(a)},er.apply(fn(o),arguments)}function K0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[fa(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return K0().domain(e).range(t).unknown(r)},er.apply(i,arguments)}const Kr=1e3,tr=Kr*60,Yr=tr*60,qr=Yr*24,Wc=qr*7,Y0=qr*30,Hc=qr*365,Kc=new Date,Yc=new Date;function bt(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let l;do u.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return u},i.filter=a=>bt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Kc.setTime(+a),Yc.setTime(+o),e(Kc),e(Yc),Math.floor(r(Kc,Yc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const As=bt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);As.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?bt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):As);const pF=As.range,kn=bt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Kr)},(e,t)=>(t-e)/Kr,e=>e.getUTCSeconds()),hF=kn.range,qc=bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Kr)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getMinutes()),vF=qc.range,Gc=bt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCMinutes()),mF=Gc.range,Xc=bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Kr-e.getMinutes()*tr)},(e,t)=>{e.setTime(+e+t*Yr)},(e,t)=>(t-e)/Yr,e=>e.getHours()),gF=Xc.range,Zc=bt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Yr)},(e,t)=>(t-e)/Yr,e=>e.getUTCHours()),yF=Zc.range,ba=bt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tr)/qr,e=>e.getDate()-1),bF=ba.range,Ps=bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qr,e=>e.getUTCDate()-1),wF=Ps.range,q0=bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qr,e=>Math.floor(e/qr)),xF=q0.range;function Nn(e){return bt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*tr)/Wc)}const Ms=Nn(0),Ts=Nn(1),BT=Nn(2),VT=Nn(3),mi=Nn(4),zT=Nn(5),UT=Nn(6),_F=Ms.range,SF=Ts.range,EF=BT.range,CF=VT.range,OF=mi.range,AF=zT.range,PF=UT.range;function Ln(e){return bt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Wc)}const Is=Ln(0),js=Ln(1),WT=Ln(2),HT=Ln(3),gi=Ln(4),KT=Ln(5),YT=Ln(6),MF=Is.range,TF=js.range,IF=WT.range,jF=HT.range,RF=gi.range,DF=KT.range,kF=YT.range,Qc=bt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),NF=Qc.range,Jc=bt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),LF=Jc.range,Gr=bt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Gr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:bt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});const FF=Gr.range,Xr=bt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:bt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});const $F=Xr.range;function G0(e,t,r,n,i,a){const o=[[kn,1,Kr],[kn,5,5*Kr],[kn,15,15*Kr],[kn,30,30*Kr],[a,1,tr],[a,5,5*tr],[a,15,15*tr],[a,30,30*tr],[i,1,Yr],[i,3,3*Yr],[i,6,6*Yr],[i,12,12*Yr],[n,1,qr],[n,2,2*qr],[r,1,Wc],[t,1,Y0],[t,3,3*Y0],[e,1,Hc]];function s(l,c,f){const d=c<l;d&&([l,c]=[c,l]);const h=f&&typeof f.range=="function"?f:u(l,c,f),v=h?h.range(l,+c+1):[];return d?v.reverse():v}function u(l,c,f){const d=Math.abs(c-l)/f,h=Mc(([,,m])=>m).right(o,d);if(h===o.length)return e.every(Pc(l/Hc,c/Hc,f));if(h===0)return As.every(Math.max(Pc(l,c,f),1));const[v,g]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return v.every(g)}return[s,u]}const[qT,GT]=G0(Xr,Jc,Is,q0,Zc,Gc),[XT,ZT]=G0(Gr,Qc,Ms,ba,Xc,qc);function ef(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function tf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wa(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function QT(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,l=xa(i),c=_a(i),f=xa(a),d=_a(a),h=xa(o),v=_a(o),g=xa(s),m=_a(s),b=xa(u),_=_a(u),S={a:_e,A:Se,b:Pe,B:He,c:null,d:tg,e:tg,f:xI,g:II,G:RI,H:yI,I:bI,j:wI,L:rg,m:_I,M:SI,p:kt,q:Ee,Q:ug,s:lg,S:EI,u:CI,U:OI,V:AI,w:PI,W:MI,x:null,X:null,y:TI,Y:jI,Z:DI,"%":sg},P={a:je,A:ct,b:ft,B:et,c:null,d:ig,e:ig,f:FI,g:qI,G:XI,H:kI,I:NI,j:LI,L:ag,m:$I,M:BI,p:ot,q:ht,Q:ug,s:lg,S:VI,u:zI,U:UI,V:WI,w:HI,W:KI,x:null,X:null,y:YI,Y:GI,Z:ZI,"%":sg},A={a:te,A:G,b:ae,B:ce,c:ve,d:J0,e:J0,f:hI,g:Q0,G:Z0,H:eg,I:eg,j:cI,L:pI,m:lI,M:fI,p:ee,q:uI,Q:mI,s:gI,S:dI,u:nI,U:iI,V:aI,w:rI,W:oI,x:me,X:be,y:Q0,Y:Z0,Z:sI,"%":vI};S.x=O(r,S),S.X=O(n,S),S.c=O(t,S),P.x=O(r,P),P.X=O(n,P),P.c=O(t,P);function O(le,ue){return function(Ce){var J=[],tt=-1,Te=0,Mt=le.length,Ht,Re,rt;for(Ce instanceof Date||(Ce=new Date(+Ce));++tt<Mt;)le.charCodeAt(tt)===37&&(J.push(le.slice(Te,tt)),(Re=X0[Ht=le.charAt(++tt)])!=null?Ht=le.charAt(++tt):Re=Ht==="e"?" ":"0",(rt=ue[Ht])&&(Ht=rt(Ce,Re)),J.push(Ht),Te=tt+1);return J.push(le.slice(Te,tt)),J.join("")}}function j(le,ue){return function(Ce){var J=wa(1900,void 0,1),tt=B(J,le,Ce+="",0),Te,Mt;if(tt!=Ce.length)return null;if("Q"in J)return new Date(J.Q);if("s"in J)return new Date(J.s*1e3+("L"in J?J.L:0));if(ue&&!("Z"in J)&&(J.Z=0),"p"in J&&(J.H=J.H%12+J.p*12),J.m===void 0&&(J.m="q"in J?J.q:0),"V"in J){if(J.V<1||J.V>53)return null;"w"in J||(J.w=1),"Z"in J?(Te=tf(wa(J.y,0,1)),Mt=Te.getUTCDay(),Te=Mt>4||Mt===0?js.ceil(Te):js(Te),Te=Ps.offset(Te,(J.V-1)*7),J.y=Te.getUTCFullYear(),J.m=Te.getUTCMonth(),J.d=Te.getUTCDate()+(J.w+6)%7):(Te=ef(wa(J.y,0,1)),Mt=Te.getDay(),Te=Mt>4||Mt===0?Ts.ceil(Te):Ts(Te),Te=ba.offset(Te,(J.V-1)*7),J.y=Te.getFullYear(),J.m=Te.getMonth(),J.d=Te.getDate()+(J.w+6)%7)}else("W"in J||"U"in J)&&("w"in J||(J.w="u"in J?J.u%7:"W"in J?1:0),Mt="Z"in J?tf(wa(J.y,0,1)).getUTCDay():ef(wa(J.y,0,1)).getDay(),J.m=0,J.d="W"in J?(J.w+6)%7+J.W*7-(Mt+5)%7:J.w+J.U*7-(Mt+6)%7);return"Z"in J?(J.H+=J.Z/100|0,J.M+=J.Z%100,tf(J)):ef(J)}}function B(le,ue,Ce,J){for(var tt=0,Te=ue.length,Mt=Ce.length,Ht,Re;tt<Te;){if(J>=Mt)return-1;if(Ht=ue.charCodeAt(tt++),Ht===37){if(Ht=ue.charAt(tt++),Re=A[Ht in X0?ue.charAt(tt++):Ht],!Re||(J=Re(le,Ce,J))<0)return-1}else if(Ht!=Ce.charCodeAt(J++))return-1}return J}function ee(le,ue,Ce){var J=l.exec(ue.slice(Ce));return J?(le.p=c.get(J[0].toLowerCase()),Ce+J[0].length):-1}function te(le,ue,Ce){var J=h.exec(ue.slice(Ce));return J?(le.w=v.get(J[0].toLowerCase()),Ce+J[0].length):-1}function G(le,ue,Ce){var J=f.exec(ue.slice(Ce));return J?(le.w=d.get(J[0].toLowerCase()),Ce+J[0].length):-1}function ae(le,ue,Ce){var J=b.exec(ue.slice(Ce));return J?(le.m=_.get(J[0].toLowerCase()),Ce+J[0].length):-1}function ce(le,ue,Ce){var J=g.exec(ue.slice(Ce));return J?(le.m=m.get(J[0].toLowerCase()),Ce+J[0].length):-1}function ve(le,ue,Ce){return B(le,t,ue,Ce)}function me(le,ue,Ce){return B(le,r,ue,Ce)}function be(le,ue,Ce){return B(le,n,ue,Ce)}function _e(le){return o[le.getDay()]}function Se(le){return a[le.getDay()]}function Pe(le){return u[le.getMonth()]}function He(le){return s[le.getMonth()]}function kt(le){return i[+(le.getHours()>=12)]}function Ee(le){return 1+~~(le.getMonth()/3)}function je(le){return o[le.getUTCDay()]}function ct(le){return a[le.getUTCDay()]}function ft(le){return u[le.getUTCMonth()]}function et(le){return s[le.getUTCMonth()]}function ot(le){return i[+(le.getUTCHours()>=12)]}function ht(le){return 1+~~(le.getUTCMonth()/3)}return{format:function(le){var ue=O(le+="",S);return ue.toString=function(){return le},ue},parse:function(le){var ue=j(le+="",!1);return ue.toString=function(){return le},ue},utcFormat:function(le){var ue=O(le+="",P);return ue.toString=function(){return le},ue},utcParse:function(le){var ue=j(le+="",!0);return ue.toString=function(){return le},ue}}}var X0={"-":"",_:" ",0:"0"},At=/^\s*\d+/,JT=/^%/,eI=/[\\^$*+?|[\]().{}]/g;function Fe(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function tI(e){return e.replace(eI,"\\$&")}function xa(e){return new RegExp("^(?:"+e.map(tI).join("|")+")","i")}function _a(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function rI(e,t,r){var n=At.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function nI(e,t,r){var n=At.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function iI(e,t,r){var n=At.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function aI(e,t,r){var n=At.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function oI(e,t,r){var n=At.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Z0(e,t,r){var n=At.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Q0(e,t,r){var n=At.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function sI(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function uI(e,t,r){var n=At.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function lI(e,t,r){var n=At.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function J0(e,t,r){var n=At.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function cI(e,t,r){var n=At.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function eg(e,t,r){var n=At.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function fI(e,t,r){var n=At.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function dI(e,t,r){var n=At.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function pI(e,t,r){var n=At.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function hI(e,t,r){var n=At.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function vI(e,t,r){var n=JT.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function mI(e,t,r){var n=At.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function gI(e,t,r){var n=At.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function tg(e,t){return Fe(e.getDate(),t,2)}function yI(e,t){return Fe(e.getHours(),t,2)}function bI(e,t){return Fe(e.getHours()%12||12,t,2)}function wI(e,t){return Fe(1+ba.count(Gr(e),e),t,3)}function rg(e,t){return Fe(e.getMilliseconds(),t,3)}function xI(e,t){return rg(e,t)+"000"}function _I(e,t){return Fe(e.getMonth()+1,t,2)}function SI(e,t){return Fe(e.getMinutes(),t,2)}function EI(e,t){return Fe(e.getSeconds(),t,2)}function CI(e){var t=e.getDay();return t===0?7:t}function OI(e,t){return Fe(Ms.count(Gr(e)-1,e),t,2)}function ng(e){var t=e.getDay();return t>=4||t===0?mi(e):mi.ceil(e)}function AI(e,t){return e=ng(e),Fe(mi.count(Gr(e),e)+(Gr(e).getDay()===4),t,2)}function PI(e){return e.getDay()}function MI(e,t){return Fe(Ts.count(Gr(e)-1,e),t,2)}function TI(e,t){return Fe(e.getFullYear()%100,t,2)}function II(e,t){return e=ng(e),Fe(e.getFullYear()%100,t,2)}function jI(e,t){return Fe(e.getFullYear()%1e4,t,4)}function RI(e,t){var r=e.getDay();return e=r>=4||r===0?mi(e):mi.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function DI(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function ig(e,t){return Fe(e.getUTCDate(),t,2)}function kI(e,t){return Fe(e.getUTCHours(),t,2)}function NI(e,t){return Fe(e.getUTCHours()%12||12,t,2)}function LI(e,t){return Fe(1+Ps.count(Xr(e),e),t,3)}function ag(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function FI(e,t){return ag(e,t)+"000"}function $I(e,t){return Fe(e.getUTCMonth()+1,t,2)}function BI(e,t){return Fe(e.getUTCMinutes(),t,2)}function VI(e,t){return Fe(e.getUTCSeconds(),t,2)}function zI(e){var t=e.getUTCDay();return t===0?7:t}function UI(e,t){return Fe(Is.count(Xr(e)-1,e),t,2)}function og(e){var t=e.getUTCDay();return t>=4||t===0?gi(e):gi.ceil(e)}function WI(e,t){return e=og(e),Fe(gi.count(Xr(e),e)+(Xr(e).getUTCDay()===4),t,2)}function HI(e){return e.getUTCDay()}function KI(e,t){return Fe(js.count(Xr(e)-1,e),t,2)}function YI(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function qI(e,t){return e=og(e),Fe(e.getUTCFullYear()%100,t,2)}function GI(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function XI(e,t){var r=e.getUTCDay();return e=r>=4||r===0?gi(e):gi.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function ZI(){return"+0000"}function sg(){return"%"}function ug(e){return+e}function lg(e){return Math.floor(+e/1e3)}var yi,cg,QI,fg,JI;ej({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ej(e){return yi=QT(e),cg=yi.format,QI=yi.parse,fg=yi.utcFormat,JI=yi.utcParse,yi}function tj(e){return new Date(e)}function rj(e){return e instanceof Date?+e:+new Date(+e)}function rf(e,t,r,n,i,a,o,s,u,l){var c=Lc(),f=c.invert,d=c.domain,h=l(".%L"),v=l(":%S"),g=l("%I:%M"),m=l("%I %p"),b=l("%a %d"),_=l("%b %d"),S=l("%B"),P=l("%Y");function A(O){return(u(O)<O?h:s(O)<O?v:o(O)<O?g:a(O)<O?m:n(O)<O?i(O)<O?b:_:r(O)<O?S:P)(O)}return c.invert=function(O){return new Date(f(O))},c.domain=function(O){return arguments.length?d(Array.from(O,rj)):d().map(tj)},c.ticks=function(O){var j=d();return e(j[0],j[j.length-1],O??10)},c.tickFormat=function(O,j){return j==null?A:l(j)},c.nice=function(O){var j=d();return(!O||typeof O.range!="function")&&(O=t(j[0],j[j.length-1],O??10)),O?d(M0(j,O)):c},c.copy=function(){return ma(c,rf(e,t,r,n,i,a,o,s,u,l))},c}function nj(){return er.apply(rf(XT,ZT,Gr,Qc,Ms,ba,Xc,qc,kn,cg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ij(){return er.apply(rf(qT,GT,Xr,Jc,Is,Ps,Zc,Gc,kn,fg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Rs(){var e=0,t=1,r,n,i,a,o=Vt,s=!1,u;function l(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),l):[e,t]},l.clamp=function(f){return arguments.length?(s=!!f,l):s},l.interpolator=function(f){return arguments.length?(o=f,l):o};function c(f){return function(d){var h,v;return arguments.length?([h,v]=d,o=f(h,v),l):[o(0),o(1)]}}return l.range=c(hi),l.rangeRound=c(kc),l.unknown=function(f){return arguments.length?(u=f,l):u},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),l}}function dn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dg(){var e=fn(Rs()(Vt));return e.copy=function(){return dn(e,dg())},Hr.apply(e,arguments)}function pg(){var e=Bc(Rs()).domain([1,10]);return e.copy=function(){return dn(e,pg()).base(e.base())},Hr.apply(e,arguments)}function hg(){var e=Vc(Rs());return e.copy=function(){return dn(e,hg()).constant(e.constant())},Hr.apply(e,arguments)}function nf(){var e=zc(Rs());return e.copy=function(){return dn(e,nf()).exponent(e.exponent())},Hr.apply(e,arguments)}function aj(){return nf.apply(null,arguments).exponent(.5)}function vg(){var e=[],t=Vt;function r(n){if(n!=null&&!isNaN(n=+n))return t((fa(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(cn),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>FT(e,a/n))},r.copy=function(){return vg(t).domain(e)},Hr.apply(r,arguments)}function oj(e,t){t===void 0&&(t=e,e=hi);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function Ds(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,l=Vt,c,f=!1,d;function h(g){return isNaN(g=+g)?d:(g=.5+((g=+c(g))-a)*(n*g<n*a?s:u),l(f?Math.max(0,Math.min(1,g)):g))}h.domain=function(g){return arguments.length?([e,t,r]=g,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(g){return arguments.length?(f=!!g,h):f},h.interpolator=function(g){return arguments.length?(l=g,h):l};function v(g){return function(m){var b,_,S;return arguments.length?([b,_,S]=m,l=oj(g,[b,_,S]),h):[l(0),l(.5),l(1)]}}return h.range=v(hi),h.rangeRound=v(kc),h.unknown=function(g){return arguments.length?(d=g,h):d},function(g){return c=g,i=g(e),a=g(t),o=g(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function mg(){var e=fn(Ds()(Vt));return e.copy=function(){return dn(e,mg())},Hr.apply(e,arguments)}function gg(){var e=Bc(Ds()).domain([.1,1,10]);return e.copy=function(){return dn(e,gg()).base(e.base())},Hr.apply(e,arguments)}function yg(){var e=Vc(Ds());return e.copy=function(){return dn(e,yg()).constant(e.constant())},Hr.apply(e,arguments)}function af(){var e=zc(Ds());return e.copy=function(){return dn(e,af()).exponent(e.exponent())},Hr.apply(e,arguments)}function sj(){return af.apply(null,arguments).exponent(.5)}function uj(e){if(e in oe)return oe[e]();var t="scale".concat(ia(e));if(t in oe)return oe[t]()}function bg(e,t,r){if(typeof e=="function")return e.copy().domain(t).range(r);if(e!=null){var n=uj(e);if(n!=null)return n.domain(t).range(r),n}}function of(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?bg(e.scale,r,n):bg(t,r,n)}function lj(e){return"scale".concat(ia(e))}function cj(e){return lj(e)in oe}var wg=(e,t,r)=>{if(e!=null){var{scale:n,type:i}=e;if(n==="auto")return i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof n=="string")return cj(n)?n:"point"}};function fj(e,t){for(var r=0,n=e.length,i=e[0]<e[e.length-1];r<n;){var a=Math.floor((r+n)/2);(i?e[a]<t:e[a]>t)?r=a+1:n=a}return r}function xg(e,t){if(e){var r=t??e.domain(),n=r.map(a=>{var o;return(o=e(a))!==null&&o!==void 0?o:0}),i=e.range();if(!(r.length===0||i.length<2))return a=>{var o,s,u=fj(n,a);if(u<=0)return r[0];if(u>=r.length)return r[r.length-1];var l=(o=n[u-1])!==null&&o!==void 0?o:0,c=(s=n[u])!==null&&s!==void 0?s:0;return Math.abs(a-l)<=Math.abs(a-c)?r[u-1]:r[u]}}}function dj(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):xg(e,void 0)}function _g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ks(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(r),!0).forEach(function(n){pj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pj(e,t,r){return(t=hj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hj(e){var t=vj(e,"string");return typeof t=="symbol"?t:t+""}function vj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sf=[0,"auto"],mj={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},gj=(e,t)=>e.cartesianAxis.xAxis[t],pn=(e,t)=>{var r=gj(e,t);return r??mj},yj={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:sf,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:sa},bj=(e,t)=>e.cartesianAxis.yAxis[t],hn=(e,t)=>{var r=bj(e,t);return r??yj},wj={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},uf=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??wj},lt=(e,t,r)=>{switch(t){case"xAxis":return pn(e,r);case"yAxis":return hn(e,r);case"zAxis":return uf(e,r);case"angleAxis":return gc(e,r);case"radiusAxis":return yc(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},xj=(e,t,r)=>{switch(t){case"xAxis":return pn(e,r);case"yAxis":return hn(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},bi=(e,t,r)=>{switch(t){case"xAxis":return pn(e,r);case"yAxis":return hn(e,r);case"angleAxis":return gc(e,r);case"radiusAxis":return yc(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Sg=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function lf(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var _j=e=>e.graphicalItems.cartesianItems,Sj=V([at,ca],lf),cf=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Sa=V([_j,lt,Sj],cf,{memoizeOptions:{resultEqualityCheck:hs}}),Eg=V([Sa],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(wc)),Cg=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Ej=V([Sa],Cg),ff=e=>e.map(t=>t.data).filter(Boolean).flat(1),Cj=V([Sa],ff,{memoizeOptions:{resultEqualityCheck:hs}}),df=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},pf=V([Cj,wm],df),hf=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:Ze(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Ze(i,n)}))):e.map(n=>({value:n})),Ea=V([pf,lt,Sa],hf);function wi(e){if(ra(e)||e instanceof Date){var t=Number(e);if(We(t))return t}}function Og(e){if(Array.isArray(e)){var t=[wi(e[0]),wi(e[1])];return Sr(t)?t:void 0}var r=wi(e);if(r!=null)return[r,r]}function Zr(e){return e.map(wi).filter(_r)}function Oj(e,t){var r=wi(e),n=wi(t);return r==null&&n==null?0:r==null?-1:n==null?1:r-n}var Aj=V([Ea],e=>e?.map(t=>t.value).sort(Oj));function Ag(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Pj(e,t,r){return!r||typeof t!="number"||$r(t)?[]:r.length?Zr(r.flatMap(n=>{var i=Ze(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!We(a)||!We(o)))return[t-a,t+o]})):[]}var Pt=e=>{var t=Ot(e),r=di(e);return bi(e,t,r)},Ca=V([Pt],e=>e?.dataKey),Mj=V([Eg,wm,Pt],Ym),Pg=(e,t,r,n)=>{var i={},a=t.reduce((o,s)=>{if(s.stackId==null)return o;var u=o[s.stackId];return u==null&&(u=[]),u.push(s),o[s.stackId]=u,o},i);return Object.fromEntries(Object.entries(a).map(o=>{var[s,u]=o,l=n?[...u].reverse():u,c=l.map(Km);return[s,{stackedData:B2(e,c,r),graphicalItems:l}]}))},Tj=V([Mj,Eg,la,Tm],Pg),Mg=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=U2(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},Ij=V([lt],e=>e.allowDataOverflow),vf=e=>{var t;if(e==null||!("domain"in e))return sf;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Zr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:sf},mf=V([lt],vf),gf=V([mf,Ij],_m),jj=V([Tj,Ur,at,gf],Mg,{memoizeOptions:{resultEqualityCheck:ps}}),Ns=e=>e.errorBars,Rj=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>Ag(r,n)),Ls=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),s=Math.max(...a);return[o,s]}},yf=(e,t,r,n,i)=>{var a,o;if(r.length>0&&e.forEach(s=>{r.forEach(u=>{var l,c,f=(l=n[u.id])===null||l===void 0?void 0:l.filter(b=>Ag(i,b)),d=Ze(s,(c=t.dataKey)!==null&&c!==void 0?c:u.dataKey),h=Pj(s,d,f);if(h.length>=2){var v=Math.min(...h),g=Math.max(...h);(a==null||v<a)&&(a=v),(o==null||g>o)&&(o=g)}var m=Og(d);m!=null&&(a=a==null?m[0]:Math.min(a,m[0]),o=o==null?m[1]:Math.max(o,m[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var u=Og(Ze(s,t.dataKey));u!=null&&(a=a==null?u[0]:Math.min(a,u[0]),o=o==null?u[1]:Math.max(o,u[1]))}),We(a)&&We(o))return[a,o]},Dj=V([pf,lt,Ej,Ns,at],yf,{memoizeOptions:{resultEqualityCheck:ps}});function kj(e){var{value:t}=e;if(ra(t)||t instanceof Date)return t}var Nj=(e,t,r)=>{var n=e.map(kj).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&hv(n))?bm()(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},Tg=e=>e.referenceElements.dots,xi=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),Lj=V([Tg,at,ca],xi),Ig=e=>e.referenceElements.areas,Fj=V([Ig,at,ca],xi),jg=e=>e.referenceElements.lines,$j=V([jg,at,ca],xi),Rg=(e,t)=>{if(e!=null){var r=Zr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Bj=V(Lj,at,Rg),Dg=(e,t)=>{if(e!=null){var r=Zr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Vj=V([Fj,at],Dg);function zj(e){var t;if(e.x!=null)return Zr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Zr(r)}function Uj(e){var t;if(e.y!=null)return Zr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Zr(r)}var kg=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?zj(n):Uj(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Wj=V([$j,at],kg),Hj=V(Bj,Wj,Vj,(e,t,r)=>Ls(e,r,t)),bf=(e,t,r,n,i,a,o,s)=>{if(r!=null)return r;var u=o==="vertical"&&s==="xAxis"||o==="horizontal"&&s==="yAxis",l=u?Ls(n,a,i):Ls(a,i);return vM(t,l,e.allowDataOverflow)},Kj=V([lt,mf,gf,jj,Dj,Hj,Qe,at],bf,{memoizeOptions:{resultEqualityCheck:ps}}),Yj=[0,1],wf=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:s,type:u}=e,l=un(t,a);if(l&&s==null){var c;return bm()(0,(c=r?.length)!==null&&c!==void 0?c:0)}return u==="category"?Nj(n,e,l):i==="expand"?Yj:o}},xf=V([lt,Qe,pf,Ea,la,at,Kj],wf),vn=V([lt,Sg,Im],wg),_f=(e,t,r)=>{var{niceTicks:n}=t;if(n!=="none"){var i=vf(t),a=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((n==="snap125"||n==="adaptive")&&t!=null&&t.tickCount&&Sr(e)){if(a)return Pm(e,t.tickCount,t.allowDecimals,n);if(t.type==="number")return Mm(e,t.tickCount,t.allowDecimals,n)}if(n==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(a&&Sr(e))return Pm(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&Sr(e))return Mm(e,t.tickCount,t.allowDecimals,"adaptive")}}},Sf=V([xf,bi,vn],_f),Ef=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Sr(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],s=(i=r[0])!==null&&i!==void 0?i:0,u=t[1],l=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(o,s),Math.max(u,l)]}return t},qj=V([lt,xf,Sf,at],Ef),Gj=V(Ea,lt,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Zr(e.map(f=>f.value))).sort((f,d)=>f-d),i=n[0],a=n[n.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var s=0;s<n.length-1;s++){var u=n[s],l=n[s+1];if(!(u==null||l==null)){var c=l-u;r=Math.min(r,c)}}return r/o}}),Ng=V(Gj,Qe,yM,Rt,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!We(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=Gt(r,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),Xj=(e,t,r)=>{var n=pn(e,t);return n==null||typeof n.padding!="string"?0:Ng(e,"xAxis",t,r,n.padding)},Zj=(e,t,r)=>{var n=hn(e,t);return n==null||typeof n.padding!="string"?0:Ng(e,"yAxis",t,r,n.padding)},Qj=V(pn,Xj,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),Jj=V(hn,Zj,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),eR=V([Rt,Qj,os,as,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),tR=V([Rt,Qe,Jj,os,as,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Oa=(e,t,r,n)=>{var i;switch(t){case"xAxis":return eR(e,r,n);case"yAxis":return tR(e,r,n);case"zAxis":return(i=uf(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return Um(e);case"radiusAxis":return Wm(e,r);default:return}},Lg=V([lt,Oa],cs),rR=V([vn,qj],qm),Cf=V([lt,vn,rR,Lg],of),Fg=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=un(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(s=>s.value)}},Of=V([Qe,Ea,bi,at],Fg),Fs=V([Cf],xc),BF=V([Cf],dj),VF=V([Cf,Aj],xg),zF=V([Sa,Ns,at],Rj);function $g(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var $s=(e,t)=>t,Bs=(e,t,r)=>r,nR=V(rs,$s,Bs,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort($g)),iR=V(ns,$s,Bs,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort($g)),Bg=(e,t)=>({width:e.width,height:t.height}),aR=(e,t)=>{var r=typeof t.width=="number"?t.width:sa;return{width:r,height:e.height}},oR=V(Rt,pn,Bg),sR=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},uR=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},lR=V(zr,Rt,nR,$s,Bs,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var u=Bg(t,s);o==null&&(o=sR(t,n,e));var l=n==="top"&&!i||n==="bottom"&&i;a[s.id]=o-Number(l)*u.height,o+=(l?-1:1)*u.height}),a}),cR=V(Vr,Rt,iR,$s,Bs,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var u=aR(t,s);o==null&&(o=uR(t,n,e));var l=n==="left"&&!i||n==="right"&&i;a[s.id]=o-Number(l)*u.width,o+=(l?-1:1)*u.width}),a}),fR=(e,t)=>{var r=pn(e,t);if(r!=null)return lR(e,r.orientation,r.mirror)},UF=V([Rt,pn,fR,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),dR=(e,t)=>{var r=hn(e,t);if(r!=null)return cR(e,r.orientation,r.mirror)},WF=V([Rt,hn,dR,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),pR=V(Rt,hn,(e,t)=>{var r=typeof t.width=="number"?t.width:sa;return{width:r,height:e.height}}),HF=(e,t,r)=>{switch(t){case"xAxis":return oR(e,r).width;case"yAxis":return pR(e,r).height;default:return}},Vg=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,s=un(e,n),u=t.map(l=>l.value);if(o&&s&&a==="category"&&i&&hv(u))return u}},Af=V([Qe,Ea,lt,at],Vg),KF=V([Qe,xj,vn,Fs,Af,Of,Oa,Sf,at],(e,t,r,n,i,a,o,s,u)=>{if(t!=null){var l=un(e,u);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:u,categoricalDomain:a,duplicateDomain:i,isCategorical:l,niceTicks:s,range:o,realScaleType:r,scale:n}}}),hR=(e,t,r,n,i,a,o,s,u)=>{if(!(t==null||n==null)){var l=un(e,u),{type:c,ticks:f,tickCount:d}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,v=c==="category"&&n.bandwidth?n.bandwidth()/h:0;v=u==="angleAxis"&&a!=null&&a.length>=2?Ut(a[0]-a[1])*2*v:v;var g=f||i;return g?g.map((m,b)=>{var _=o?o.indexOf(m):m,S=n.map(_);return We(S)?{index:b,coordinate:S+v,value:m,offset:v}:null}).filter(_r):l&&s?s.map((m,b)=>{var _=n.map(m);return We(_)?{coordinate:_+v,value:m,index:b,offset:v}:null}).filter(_r):n.ticks?n.ticks(d).map((m,b)=>{var _=n.map(m);return We(_)?{coordinate:_+v,value:m,index:b,offset:v}:null}).filter(_r):n.domain().map((m,b)=>{var _=n.map(m);return We(_)?{coordinate:_+v,value:o?o[m]:m,index:b,offset:v}:null}).filter(_r)}},YF=V([Qe,bi,vn,Fs,Sf,Oa,Af,Of,at],hR),vR=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=un(e,o),{tickCount:u}=t,l=0;return l=o==="angleAxis"&&n?.length>=2?Ut(n[0]-n[1])*2*l:l,s&&a?a.map((c,f)=>{var d=r.map(c);return We(d)?{coordinate:d+l,value:c,index:f,offset:l}:null}).filter(_r):r.ticks?r.ticks(u).map((c,f)=>{var d=r.map(c);return We(d)?{coordinate:d+l,value:c,index:f,offset:l}:null}).filter(_r):r.domain().map((c,f)=>{var d=r.map(c);return We(d)?{coordinate:d+l,value:i?i[c]:c,index:f,offset:l}:null}).filter(_r)}},qF=V([Qe,bi,Fs,Oa,Af,Of,at],vR),GF=V(lt,Fs,(e,t)=>{if(!(e==null||t==null))return ks(ks({},e),{},{scale:t})}),mR=V([lt,vn,xf,Lg],of),gR=V([mR],xc),XF=V((e,t,r)=>uf(e,r),gR,(e,t)=>{if(!(e==null||t==null))return ks(ks({},e),{},{scale:t})}),yR=V([Qe,rs,ns],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),bR=(e,t,r)=>{var n;return(n=e.renderedTicks[t])===null||n===void 0?void 0:n[r]},ZF=V([bR],e=>{if(!(!e||e.length===0))return t=>{var r,n=1/0,i=e[0];for(var a of e){var o=Math.abs(a.coordinate-t);o<n&&(n=o,i=a)}return(r=i)===null||r===void 0?void 0:r.value}}),zg=e=>e.options.defaultTooltipEventType,Ug=e=>e.options.validateTooltipEventTypes;function Wg(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Pf(e,t){var r=zg(e),n=Ug(e);return Wg(t,r,n)}function QF(e){return useAppSelector(t=>Pf(t,e))}var Hg=(e,t)=>{var r,n=Number(t);if(!($r(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},wR=e=>e.tooltip.settings;function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){xR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xR(e,t,r){return(t=_R(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _R(e){var t=SR(e,"string");return typeof t=="symbol"?t:t+""}function SR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ER(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function CR(e){return e.index!=null}var Yg=(e,t,r,n)=>{if(t==null)return sn;var i=ER(e,t,r);if(i==null)return sn;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(CR(i)){if(a)return Vs(Vs({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Vs(Vs({},sn),{},{coordinate:i.coordinate})};function OR(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function AR(e,t){var r=OR(e),n=t[0],i=t[1];if(r===void 0)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}function PR(e,t,r){if(r==null||t==null)return!0;var n=Ze(e,t);return n==null||!Sr(r)?!0:AR(n,r)}var Mf=(e,t,r,n)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!We(a))return i;var o=0,s=1/0;t.length>0&&(s=t.length-1);var u=Math.max(o,Math.min(a,s)),l=t[u];return l==null||PR(l,r,n)?String(u):null},qg=(e,t,r,n,i,a,o)=>{if(a!=null){var s=o[0],u=s?.getPosition(a);if(u!=null)return u;var l=i?.[Number(a)];if(l)switch(r){case"horizontal":return{x:l.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:l.coordinate}}}},Gg=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(r==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&n!=null){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(o=>{var s;return((s=o.settings)===null||s===void 0?void 0:s.graphicalItemId)===i})},Xg=e=>e.options.tooltipPayloadSearcher,Aa=e=>e.tooltip;function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){MR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MR(e,t,r){return(t=TR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TR(e){var t=IR(e,"string");return typeof t=="symbol"?t:t+""}function IR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jR(e){if(typeof e=="string"||typeof e=="number")return e}function RR(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function DR(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function Jg(e){if(typeof e=="string")return e}function kR(e){if(!(e==null||typeof e!="object")){var t="name"in e?jR(e.name):void 0,r="unit"in e?RR(e.unit):void 0,n="dataKey"in e?DR(e.dataKey):void 0,i="payload"in e?e.payload:void 0,a="color"in e?Jg(e.color):void 0,o="fill"in e?Jg(e.fill):void 0;return{name:t,unit:r,dataKey:n,payload:i,color:a,fill:o}}}function NR(e,t){return e??t}var ey=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:u,dataStartIndex:l,dataEndIndex:c}=r,f=[];return e.reduce((d,h)=>{var v,{dataDefinedOnItem:g,settings:m}=h,b=NR(g,s),_=Array.isArray(b)?nm(b,l,c):b,S=(v=m?.dataKey)!==null&&v!==void 0?v:n,P=m?.nameKey,A;if(n&&Array.isArray(_)&&!Array.isArray(_[0])&&o==="axis"?A=$A(_,n,i):A=a(_,t,u,P),Array.isArray(A))A.forEach(j=>{var B,ee,te=kR(j),G=te?.name,ae=te?.dataKey,ce=te?.payload,ve=Qg(Qg({},m),{},{name:G,unit:te?.unit,color:(B=te?.color)!==null&&B!==void 0?B:m?.color,fill:(ee=te?.fill)!==null&&ee!==void 0?ee:m?.fill});d.push(sm({tooltipEntrySettings:ve,dataKey:ae,payload:ce,value:Ze(ce,ae),name:G==null?void 0:String(G)}))});else{var O;d.push(sm({tooltipEntrySettings:m,dataKey:S,payload:A,value:Ze(A,S),name:(O=Ze(A,P))!==null&&O!==void 0?O:m?.name}))}return d},f)}},Tf=V([Pt,Sg,Im],wg),LR=V([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),FR=V([Ot,di],lf),_i=V([LR,Pt,FR],cf,{memoizeOptions:{resultEqualityCheck:hs}}),$R=V([_i],e=>e.filter(wc)),BR=V([_i],ff,{memoizeOptions:{resultEqualityCheck:hs}}),Si=V([BR,Ur],df),VR=V([$R,Ur,Pt],Ym),If=V([Si,Pt,_i],hf),ty=V([Pt],vf),zR=V([Pt],e=>e.allowDataOverflow),ry=V([ty,zR],_m),UR=V([_i],e=>e.filter(wc)),WR=V([VR,UR,la,Tm],Pg),HR=V([WR,Ur,Ot,ry],Mg),KR=V([_i],Cg),YR=V([Si,Pt,KR,Ns,Ot],yf,{memoizeOptions:{resultEqualityCheck:ps}}),qR=V([Tg,Ot,di],xi),GR=V([qR,Ot],Rg),XR=V([Ig,Ot,di],xi),ZR=V([XR,Ot],Dg),QR=V([jg,Ot,di],xi),JR=V([QR,Ot],kg),eD=V([GR,JR,ZR],Ls),tD=V([Pt,ty,ry,HR,YR,eD,Qe,Ot],bf),Pa=V([Pt,Qe,Si,If,la,Ot,tD],wf),rD=V([Pa,Pt,Tf],_f),nD=V([Pt,Pa,rD,Ot],Ef),ny=e=>{var t=Ot(e),r=di(e),n=!1;return Oa(e,t,r,n)},iy=V([Pt,ny],cs),iD=V([Pt,Tf,nD,iy],of),aD=V([iD],xc),oD=V([Qe,If,Pt,Ot],Vg),sD=V([Qe,If,Pt,Ot],Fg),uD=(e,t,r,n,i,a,o,s)=>{if(t){var{type:u}=t,l=un(e,s);if(n){var c=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=u==="category"&&n.bandwidth?n.bandwidth()/c:0;return f=s==="angleAxis"&&i!=null&&i?.length>=2?Ut(i[0]-i[1])*2*f:f,l&&o?o.map((d,h)=>{var v=n.map(d);return We(v)?{coordinate:v+f,value:d,index:h,offset:f}:null}).filter(_r):n.domain().map((d,h)=>{var v=n.map(d);return We(v)?{coordinate:v+f,value:a?a[d]:d,index:h,offset:f}:null}).filter(_r)}}},mn=V([Qe,Pt,Tf,aD,ny,oD,sD,Ot],uD),jf=V([zg,Ug,wR],(e,t,r)=>Wg(r.shared,e,t)),ay=e=>e.tooltip.settings.trigger,Rf=e=>e.tooltip.settings.defaultIndex,Ma=V([Aa,jf,ay,Rf],Yg),Ta=V([Ma,Si,Ca,Pa],Mf),oy=V([mn,Ta],Hg),sy=V([Ma],e=>{if(e)return e.dataKey}),lD=V([Ma],e=>{if(e)return e.graphicalItemId}),uy=V([Aa,jf,ay,Rf],Gg),cD=V([Vr,zr,Qe,Rt,mn,Rf,uy],qg),fD=V([Ma,cD],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),dD=V([Ma],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),pD=V([uy,Ta,Ur,Ca,oy,Xg,jf],ey),JF=V([pD],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ei(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ly(Object(r),!0).forEach(function(n){hD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hD(e,t,r){return(t=vD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vD(e){var t=mD(e,"string");return typeof t=="symbol"?t:t+""}function mD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gD=(e,t,r,n)=>{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.relativeY};if(e==="vertical")return{x:n.relativeX,y:i.coordinate}}return{x:0,y:0}},yD=(e,t,r,n)=>{var i=t.find(l=>l&&l.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return Ei(Ei(Ei({},n),Ft(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:u}=n;return Ei(Ei(Ei({},n),Ft(n.cx,n.cy,s,u)),{},{angle:u,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function bD(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var cy=(e,t,r,n,i)=>{var a,o=(a=t?.length)!==null&&a!==void 0?a:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var s=0;s<o;s++){var u,l,c,f,d,h=s>0?(u=r[s-1])===null||u===void 0?void 0:u.coordinate:(l=r[o-1])===null||l===void 0?void 0:l.coordinate,v=(c=r[s])===null||c===void 0?void 0:c.coordinate,g=s>=o-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[s+1])===null||d===void 0?void 0:d.coordinate,m=void 0;if(!(h==null||v==null||g==null))if(Ut(v-h)!==Ut(g-v)){var b=[];if(Ut(g-v)===Ut(i[1]-i[0])){m=g;var _=v+i[1]-i[0];b[0]=Math.min(_,(_+h)/2),b[1]=Math.max(_,(_+h)/2)}else{m=h;var S=g+i[1]-i[0];b[0]=Math.min(v,(S+v)/2),b[1]=Math.max(v,(S+v)/2)}var P=[Math.min(v,(m+v)/2),Math.max(v,(m+v)/2)];if(e>P[0]&&e<=P[1]||e>=b[0]&&e<=b[1]){var A;return(A=r[s])===null||A===void 0?void 0:A.index}}else{var O=Math.min(h,g),j=Math.max(h,g);if(e>(O+v)/2&&e<=(j+v)/2){var B;return(B=r[s])===null||B===void 0?void 0:B.index}}}else if(t)for(var ee=0;ee<o;ee++){var te=t[ee];if(te!=null){var G=t[ee+1],ae=t[ee-1];if(ee===0&&G!=null&&e<=(te.coordinate+G.coordinate)/2||ee===o-1&&ae!=null&&e>(te.coordinate+ae.coordinate)/2||ee>0&&ee<o-1&&ae!=null&&G!=null&&e>(te.coordinate+ae.coordinate)/2&&e<=(te.coordinate+G.coordinate)/2)return te.index}}return-1},e8=()=>useAppSelector(selectChartName),Df=(e,t)=>t,fy=(e,t,r)=>r,kf=(e,t,r,n)=>n,wD=V(mn,e=>tm()(e,t=>t.coordinate)),Nf=V([Aa,Df,fy,kf],Yg),Lf=V([Nf,Si,Ca,Pa],Mf),t8=(e,t,r)=>{if(t!=null){var n=selectTooltipState(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},dy=V([Aa,Df,fy,kf],Gg),zs=V([Vr,zr,Qe,Rt,mn,kf,dy],qg),r8=V([Nf,zs],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),xD=V([mn,Lf],Hg),n8=V([dy,Lf,Ur,Ca,xD,Xg,Df],ey),i8=V([Nf,Lf],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),_D=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&bD(e,o)){var s=W2(e,t),u=cy(s,a,i,r,n),l=gD(t,i,u,e);return{activeIndex:String(u),activeCoordinate:l}}},SD=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var s=PM(e,r);if(s){var u=H2(s,t),l=cy(u,o,a,n,i),c=yD(t,a,l,s);return{activeIndex:String(l),activeCoordinate:c}}}},ED=(e,t,r,n,i,a,o,s)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?_D(e,t,n,i,a,o,s):SD(e,t,r,n,i,a,o)},CD=(e,t)=>t,Ff=V([CD,Qe,Hm,Ot,iy,mn,wD,Rt],ED);function OD(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function $f(e){var t=e.currentTarget.getBoundingClientRect(),r,n;if(OD(e)){var i=e.currentTarget.getBBox();r=i.width>0?t.width/i.width:1,n=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;r=a.offsetWidth>0?t.width/a.offsetWidth:1,n=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(s,u)=>({relativeX:Math.round((s-t.left)/r),relativeY:Math.round((u-t.top)/n)});return"touches"in e?Array.from(e.touches).map(s=>o(s.clientX,s.clientY)):o(e.clientX,e.clientY)}var py=jt("mouseClick"),hy=ea();hy.startListening({actionCreator:py,effect:(e,t)=>{var r=e.payload,n=Ff(t.getState(),$f(r));n?.activeIndex!=null&&t.dispatch(VP({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Bf=jt("mouseMove"),vy=ea(),Ci=null,Fn=null,Vf=null;vy.startListening({actionCreator:Bf,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:i,throttledEvents:a}=n.eventSettings,o=a==="all"||a?.includes("mousemove");Ci!==null&&(cancelAnimationFrame(Ci),Ci=null),Fn!==null&&(typeof i!="number"||!o)&&(clearTimeout(Fn),Fn=null),Vf=$f(r);var s=()=>{var u=t.getState(),l=Pf(u,u.tooltip.settings.shared);if(!Vf){Ci=null,Fn=null;return}if(l==="axis"){var c=Ff(u,Vf);c?.activeIndex!=null?t.dispatch(Lv({activeIndex:c.activeIndex,activeDataKey:void 0,activeCoordinate:c.activeCoordinate})):t.dispatch(Nv())}Ci=null,Fn=null};if(!o){s();return}i==="raf"?Ci=requestAnimationFrame(s):typeof i=="number"&&Fn===null&&(Fn=setTimeout(s,i))}});function AD(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}function my(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?my(Object(r),!0).forEach(function(n){PD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PD(e,t,r){return(t=MD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MD(e){var t=TD(e,"string");return typeof t=="symbol"?t:t+""}function TD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var a8=0,ID={xAxis:{},yAxis:{},zAxis:{}},yy=Lt({name:"cartesianAxis",initialState:ID,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ge()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Ge()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ge()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ge()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Ge()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ge()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ge()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Ge()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ge()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a,o=i.widthHistory||[];if(o.length===3&&o[0]===o[2]&&n===o[1]&&n!==i.width&&Math.abs(n-((a=o[0])!==null&&a!==void 0?a:0))<=1)return;var s=[...o,n].slice(-3);e.yAxis[r]=gy(gy({},i),{},{width:n,widthHistory:s})}}}}),{addXAxis:o8,replaceXAxis:s8,removeXAxis:u8,addYAxis:l8,replaceYAxis:c8,removeYAxis:f8,addZAxis:d8,replaceZAxis:p8,removeZAxis:h8,updateYAxisWidth:v8}=yy.actions,jD=yy.reducer,RD={cartesianItems:[],polarItems:[]},by=Lt({name:"graphicalItems",initialState:RD,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ge()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Jt(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:Ge()},removeCartesianGraphicalItem:{reducer(e,t){var r=Jt(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ge()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ge()},removePolarGraphicalItem:{reducer(e,t){var r=Jt(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ge()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Jt(e).polarItems.indexOf(r);i>-1&&(e.polarItems[i]=n)},prepare:Ge()}}}),{addCartesianGraphicalItem:m8,replaceCartesianGraphicalItem:g8,removeCartesianGraphicalItem:y8,addPolarGraphicalItem:DD,removePolarGraphicalItem:kD,replacePolarGraphicalItem:ND}=by.actions,LD=by.reducer,FD={dots:[],areas:[],lines:[]},wy=Lt({name:"referenceElements",initialState:FD,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Jt(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Jt(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Jt(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:b8,removeDot:w8,addArea:x8,removeArea:_8,addLine:S8,removeLine:E8}=wy.actions,$D=wy.reducer,xy={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},_y=Lt({name:"brush",initialState:xy,reducers:{setBrushSettings(e,t){return t.payload==null?xy:t.payload}}}),{setBrushSettings:C8}=_y.actions,BD=_y.reducer,VD={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Sy=Lt({name:"legend",initialState:VD,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Ge()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Jt(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:Ge()},removeLegendPayload:{reducer(e,t){var r=Jt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ge()}}}),{setLegendSize:O8,setLegendSettings:A8,addLegendPayload:zD,replaceLegendPayload:UD,removeLegendPayload:WD}=Sy.actions,HD=Sy.reducer,Ey={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},Cy=Lt({name:"rootProps",initialState:Ey,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:Ey.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),KD=Cy.reducer,{updateOptions:YD}=Cy.actions,qD={radiusAxis:{},angleAxis:{}},Oy=Lt({name:"polarAxis",initialState:qD,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:P8,removeRadiusAxis:M8,addAngleAxis:T8,removeAngleAxis:I8}=Oy.actions,GD=Oy.reducer,XD=null,ZD={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},Ay=Lt({name:"polarOptions",initialState:XD,reducers:ZD}),{updatePolarOptions:QD}=Ay.actions,JD=Ay.reducer,Py=jt("keyDown"),My=jt("focus"),Ty=jt("blur"),Us=ea(),Oi=null,$n=null,Ws=null;Us.startListening({actionCreator:Py,effect:(e,t)=>{Ws=e.payload,Oi!==null&&(cancelAnimationFrame(Oi),Oi=null);var r=t.getState(),{throttleDelay:n,throttledEvents:i}=r.eventSettings,a=i==="all"||i.includes("keydown");$n!==null&&(typeof n!="number"||!a)&&(clearTimeout($n),$n=null);var o=()=>{try{var s=t.getState(),u=s.rootProps.accessibilityLayer!==!1;if(!u)return;var{keyboardInteraction:l}=s.tooltip,c=Ws;if(c!=="ArrowRight"&&c!=="ArrowLeft"&&c!=="Enter")return;var f=Mf(l,Si(s),Ca(s),Pa(s)),d=f==null?-1:Number(f);if(!Number.isFinite(d)||d<0)return;var h=mn(s);if(c==="Enter"){var v=zs(s,"axis","hover",String(l.index));t.dispatch(qo({active:!l.active,activeIndex:l.index,activeCoordinate:v}));return}var g=yR(s),m=g==="left-to-right"?1:-1,b=c==="ArrowRight"?1:-1,_=d+b*m;if(h==null||_>=h.length||_<0)return;var S=zs(s,"axis","hover",String(_));t.dispatch(qo({active:!0,activeIndex:_.toString(),activeCoordinate:S}))}finally{Oi=null,$n=null}};if(!a){o();return}n==="raf"?Oi=requestAnimationFrame(o):typeof n=="number"&&$n===null&&(o(),Ws=null,$n=setTimeout(()=>{Ws?o():($n=null,Oi=null)},n))}}),Us.startListening({actionCreator:My,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=zs(r,"axis","hover",String(a));t.dispatch(qo({active:!0,activeIndex:a,activeCoordinate:o}))}}}}),Us.startListening({actionCreator:Ty,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;i.active&&t.dispatch(qo({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function Iy(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,n)=>{if(n==="currentTarget")return t;var i=Reflect.get(r,n);return typeof i=="function"?i.bind(r):i}})}var rr=jt("externalEvent"),jy=ea(),Hs=new Map,Ia=new Map,zf=new Map;jy.startListening({actionCreator:rr,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){var i=n.type,a=Iy(n);zf.set(i,{handler:r,reactEvent:a});var o=Hs.get(i);o!==void 0&&(cancelAnimationFrame(o),Hs.delete(i));var s=t.getState(),{throttleDelay:u,throttledEvents:l}=s.eventSettings,c=l,f=c==="all"||c?.includes(i),d=Ia.get(i);d!==void 0&&(typeof u!="number"||!f)&&(clearTimeout(d),Ia.delete(i));var h=()=>{var m=zf.get(i);try{if(!m)return;var{handler:b,reactEvent:_}=m,S=t.getState(),P={activeCoordinate:fD(S),activeDataKey:sy(S),activeIndex:Ta(S),activeLabel:oy(S),activeTooltipIndex:Ta(S),isTooltipActive:dD(S)};b&&b(P,_)}finally{Hs.delete(i),Ia.delete(i),zf.delete(i)}};if(!f){h();return}if(u==="raf"){var v=requestAnimationFrame(h);Hs.set(i,v)}else if(typeof u=="number"){if(!Ia.has(i)){h();var g=setTimeout(h,u);Ia.set(i,g)}}else h()}}});var ek=V([Aa],e=>e.tooltipItemPayloads),tk=V([ek,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(a=>a.settings.graphicalItemId===r);if(n!=null){var{getPosition:i}=n;if(i!=null)return i(t)}}}),Ry=jt("touchMove"),Dy=ea(),Bn=null,gn=null,ky=null,ja=null;Dy.startListening({actionCreator:Ry,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){ja=Iy(r);var n=t.getState(),{throttleDelay:i,throttledEvents:a}=n.eventSettings,o=a==="all"||a.includes("touchmove");Bn!==null&&(cancelAnimationFrame(Bn),Bn=null),gn!==null&&(typeof i!="number"||!o)&&(clearTimeout(gn),gn=null),ky=Array.from(r.touches).map(u=>$f({clientX:u.clientX,clientY:u.clientY,currentTarget:r.currentTarget}));var s=()=>{if(ja!=null){var u=t.getState(),l=Pf(u,u.tooltip.settings.shared);if(l==="axis"){var c,f=(c=ky)===null||c===void 0?void 0:c[0];if(f==null){Bn=null,gn=null;return}var d=Ff(u,f);d?.activeIndex!=null&&t.dispatch(Lv({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(l==="item"){var h,v=ja.touches[0];if(document.elementFromPoint==null||v==null)return;var g=document.elementFromPoint(v.clientX,v.clientY);if(!g||!g.getAttribute)return;var m=g.getAttribute(cm),b=(h=g.getAttribute(fm))!==null&&h!==void 0?h:void 0,_=_i(u).find(A=>A.id===b);if(m==null||_==null||b==null)return;var{dataKey:S}=_,P=tk(u,m,b);t.dispatch(kv({activeDataKey:S,activeIndex:m,activeCoordinate:P,activeGraphicalItemId:b}))}Bn=null,gn=null}};if(!o){s();return}i==="raf"?Bn=requestAnimationFrame(s):typeof i=="number"&&gn===null&&(s(),ja=null,gn=setTimeout(()=>{ja?s():(gn=null,Bn=null)},i))}}});var rk={},Ny=Lt({name:"errorBars",initialState:rk,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:j8,replaceErrorBar:R8,removeErrorBar:D8}=Ny.actions,nk=Ny.reducer,ik=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Ra={devToolsEnabled:!0,isSsr:ik()};function Ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ly(Object(r),!0).forEach(function(n){ak(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ak(e,t,r){return(t=ok(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ok(e){var t=sk(e,"string");return typeof t=="symbol"?t:t+""}function sk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uk={},lk={zIndexMap:Object.values(Wr).reduce((e,t)=>Fy(Fy({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),uk)},ck=new Set(Object.values(Wr));function fk(e){return ck.has(e)}var $y=Lt({name:"zIndex",initialState:lk,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Ge()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!fk(r)&&delete e.zIndexMap[r])},prepare:Ge()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:Ge()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Ge()}}}),{registerZIndexPortal:dk,unregisterZIndexPortal:pk,registerZIndexPortalElement:hk,unregisterZIndexPortalElement:vk}=$y.actions,mk=$y.reducer,By={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},Vy=Lt({name:"eventSettings",initialState:By,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:gk}=Vy.actions,yk=Vy.reducer,bk={xAxis:{},yAxis:{}},zy=Lt({name:"renderedTicks",initialState:bk,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:i}=t.payload;e[r][n]=i},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:k8,removeRenderedTicks:N8}=zy.actions,wk=zy.reducer,xk=Eh({brush:BD,cartesianAxis:jD,chartData:HP,errorBars:nk,eventSettings:yk,graphicalItems:LD,layout:ZP,legend:HD,options:zA,polarAxis:GD,polarOptions:JD,referenceElements:$D,renderedTicks:wk,rootProps:KD,tooltip:zP,zIndex:mk}),_k=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return BO({reducer:xk,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([hy.middleware,vy.middleware,Us.middleware,jy.middleware,Dy.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(Yh({type:"raf"}))},devTools:Ra.devToolsEnabled&&{serialize:{replacer:AD},name:"recharts-".concat(r)}})};function Sk(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=ln(),a=(0,p.useRef)(null);if(i)return r;a.current==null&&(a.current=_k(t,n));var o=fc;return p.createElement(IP,{context:o,store:a.current},r)}var Ek=e=>{var{chartData:t}=e,r=yt(),n=ln();return(0,p.useEffect)(()=>n?()=>{}:(r(Bv(t)),()=>{r(Bv(void 0))}),[t,r,n]),null},L8=e=>{var{computedData:t}=e,r=useAppDispatch();return useEffect(()=>(r(setComputedData(t)),()=>{r(setChartData(void 0))}),[t,r]),null},Ck=e=>e.chartData.chartData,F8=()=>useAppSelector(Ck),Ok=e=>{var{dataStartIndex:t,dataEndIndex:r}=e.chartData;return{startIndex:t,endIndex:r}},$8=()=>useAppSelector(Ok),Ak=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function Pk(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Uy(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(Ak.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Yo(e[n],t[n]))return!1}else if(!Pk(e[n],t[n]))return!1;return!0}function Mk(e){var{layout:t,margin:r}=e,n=yt(),i=ln();return(0,p.useEffect)(()=>{i||(n(qP(t)),n(YP(r)))},[n,i,t,r]),null}var Tk=(0,p.memo)(Mk,Uy);function Ik(e){var t=yt();return(0,p.useEffect)(()=>{t(YD(e))},[t,e]),null}var jk=e=>{var t=yt();return(0,p.useEffect)(()=>{t(gk(e))},[t,e]),null},Rk=(0,p.memo)(jk,Uy);function Dk(e){var t=yt();return(0,p.useEffect)(()=>{t(QD(e))},[t,e]),null}var kk=()=>{var e;return(e=Ye(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0},Nk=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Uf(e){if(typeof e!="string")return!1;var t=Nk;return t.includes(e)}var Lk=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Fk=new Set(Lk);function Wy(e){return typeof e!="string"?!1:Fk.has(e)}function Hy(e){return typeof e=="string"&&e.startsWith("data-")}function Ai(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Wy(r)||Hy(r))&&(t[r]=e[r]);return t}function Ky(e){if(e==null)return null;if((0,p.isValidElement)(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Ai(t)}return typeof e=="object"&&!Array.isArray(e)?Ai(e):null}function Zt(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Wy(r)||Hy(r)||Uf(r))&&(t[r]=e[r]);return t}function B8(e){return e==null?null:isValidElement(e)?Zt(e.props):typeof e=="object"&&!Array.isArray(e)?Zt(e):null}var $k=["children","width","height","viewBox","className","style","title","desc"];function Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wf.apply(null,arguments)}function Bk(e,t){if(e==null)return{};var r,n,i=Vk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Vk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Yy=(0,p.forwardRef)((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:s,title:u,desc:l}=e,c=Bk(e,$k),f=a||{width:n,height:i,x:0,y:0},d=E("recharts-surface",o);return p.createElement("svg",Wf({},Zt(c),{className:d,width:n,height:i,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),p.createElement("title",null,u),p.createElement("desc",null,l),r)}),zk=V(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),Uk=V(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(Wr)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:kM}});function qy(e){var{zIndex:t,isPanorama:r}=e,n=(0,p.useRef)(null),i=yt();return(0,p.useLayoutEffect)(()=>(n.current&&i(hk({zIndex:t,element:n.current,isPanorama:r})),()=>{i(vk({zIndex:t,isPanorama:r}))}),[i,t,r]),p.createElement("g",{tabIndex:-1,ref:n,className:"recharts-zIndex-layer_".concat(t)})}function Gy(e){var{children:t,isPanorama:r}=e,n=Ye(Uk);if(!n||n.length===0)return t;var i=n.filter(o=>o<0),a=n.filter(o=>o>0);return p.createElement(p.Fragment,null,i.map(o=>p.createElement(qy,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>p.createElement(qy,{key:o,zIndex:o,isPanorama:r})))}var Wk=["children"];function Hk(e,t){if(e==null)return{};var r,n,i=Kk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Kk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ks.apply(null,arguments)}var Yk={width:"100%",height:"100%",display:"block"},qk=(0,p.forwardRef)((e,t)=>{var r=fM(),n=dM(),i=kk();if(!ts(r)||!ts(n))return null;var{children:a,otherAttributes:o,title:s,desc:u}=e,l,c;return o!=null&&(typeof o.tabIndex=="number"?l=o.tabIndex:l=i?0:void 0,typeof o.role=="string"?c=o.role:c=i?"application":void 0),p.createElement(Yy,Ks({},o,{title:s,desc:u,role:c,tabIndex:l,width:r,height:n,style:Yk,ref:t}),a)}),Gk=e=>{var{children:t}=e,r=Ye(os);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return p.createElement(Yy,{width:n,height:i,x:o,y:a},t)},Xy=(0,p.forwardRef)((e,t)=>{var{children:r}=e,n=Hk(e,Wk),i=ln();return i?p.createElement(Gk,null,p.createElement(Gy,{isPanorama:!0},r)):p.createElement(qk,Ks({ref:t},n),p.createElement(Gy,{isPanorama:!1},r))}),Xk=De(7385),Zk=Xk,Ys=new Zk,Zy="recharts.syncEvent.tooltip",Qy="recharts.syncEvent.brush",Qk=["x","y"];function Jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jy(Object(r),!0).forEach(function(n){Jk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jk(e,t,r){return(t=e4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e4(e){var t=t4(e,"string");return typeof t=="symbol"?t:t+""}function t4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r4(e,t){if(e==null)return{};var r,n,i=n4(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function n4(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function i4(){var e=Ye(jm),t=Ye(Rm),r=yt(),n=Ye(bM),i=Ye(mn),a=ss(),o=ym(),s=Ye(u=>u.rootProps.className);(0,p.useEffect)(()=>{if(e==null)return Wo;var u=(l,c,f)=>{if(t!==f&&e===l){if(n==="index"){var d;if(o&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var h=c.payload.coordinate,{x:v,y:g}=h,m=r4(h,Qk),{x:b,y:_,width:S,height:P}=c.payload.sourceViewBox,A=Pi(Pi({},m),{},{x:o.x+(S?(v-b)/S:0)*o.width,y:o.y+(P?(g-_)/P:0)*o.height});r(Pi(Pi({},c),{},{payload:Pi(Pi({},c.payload),{},{coordinate:A})}))}else r(c);return}if(i!=null){var O;if(typeof n=="function"){var j={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},B=n(i,j);O=i[B]}else n==="value"&&(O=i.find(be=>String(be.value)===c.payload.label));var{coordinate:ee}=c.payload;if(O==null||c.payload.active===!1||ee==null||o==null){r(Fv({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:te,y:G}=ee,ae=Math.min(te,o.x+o.width),ce=Math.min(G,o.y+o.height),ve={x:a==="horizontal"?O.coordinate:ae,y:a==="horizontal"?ce:O.coordinate},me=Fv({active:c.payload.active,coordinate:ve,dataKey:c.payload.dataKey,index:String(O.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(me)}}};return Ys.on(Zy,u),()=>{Ys.off(Zy,u)}},[s,r,t,e,n,i,a,o])}function a4(){var e=Ye(jm),t=Ye(Rm),r=yt();(0,p.useEffect)(()=>{if(e==null)return Wo;var n=(i,a,o)=>{t!==o&&e===i&&r(WP(a))};return Ys.on(Qy,n),()=>{Ys.off(Qy,n)}},[r,t,e])}function o4(){var e=yt();(0,p.useEffect)(()=>{e(UA())},[e]),i4(),a4()}function V8(e,t,r,n,i,a){var o=useAppSelector(v=>selectTooltipDataKey(v,e,t)),s=useAppSelector(selectActiveTooltipGraphicalItemId),u=useAppSelector(selectEventEmitter),l=useAppSelector(selectSyncId),c=useAppSelector(selectSyncMethod),f=useAppSelector(selectSynchronisedTooltipState),d=f?.active,h=useViewBox();useEffect(()=>{if(!d&&l!=null&&u!=null){var v=setSyncInteraction({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:h,graphicalItemId:s});eventCenter.emit(TOOLTIP_SYNC_EVENT,l,v,u)}},[d,r,o,s,i,n,u,l,c,a,h])}function z8(){var e=useAppSelector(selectSyncId),t=useAppSelector(selectEventEmitter),r=useAppSelector(i=>i.chartData.dataStartIndex),n=useAppSelector(i=>i.chartData.dataEndIndex);useEffect(()=>{if(!(e==null||r==null||n==null||t==null)){var i={startIndex:r,endIndex:n};eventCenter.emit(BRUSH_SYNC_EVENT,e,i,t)}},[n,r,t,e])}function s4(){var e=yt(),[t,r]=(0,p.useState)(null),n=Ye(K2);return(0,p.useEffect)(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;We(a)&&a!==n&&e(XP(a))}},[t,e,n]),r}var eb=(0,p.createContext)(null),U8=()=>useContext(eb),tb=(0,p.createContext)(null),W8=()=>useContext(tb);function rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rb(Object(r),!0).forEach(function(n){l4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l4(e,t,r){return(t=c4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c4(e){var t=f4(e,"string");return typeof t=="symbol"?t:t+""}function f4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yn.apply(null,arguments)}var d4=()=>(o4(),null);function qs(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var p4=(0,p.forwardRef)((e,t)=>{var r,n,i=(0,p.useRef)(null),[a,o]=(0,p.useState)({containerWidth:qs((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:qs((n=e.style)===null||n===void 0?void 0:n.height)}),s=(0,p.useCallback)((l,c)=>{o(f=>{var d=Math.round(l),h=Math.round(c);return f.containerWidth===d&&f.containerHeight===h?f:{containerWidth:d,containerHeight:h}})},[]),u=(0,p.useCallback)(l=>{if(typeof t=="function"&&t(l),l!=null&&typeof ResizeObserver<"u"){var{width:c,height:f}=l.getBoundingClientRect();s(c,f);var d=v=>{var g=v[0];if(g!=null){var{width:m,height:b}=g.contentRect;s(m,b)}},h=new ResizeObserver(d);h.observe(l),i.current=h}},[t,s]);return(0,p.useEffect)(()=>()=>{var l=i.current;l?.disconnect()},[s]),p.createElement(p.Fragment,null,p.createElement(ua,{width:a.containerWidth,height:a.containerHeight}),p.createElement("div",yn({ref:u},e)))}),h4=(0,p.forwardRef)((e,t)=>{var{width:r,height:n}=e,[i,a]=(0,p.useState)({containerWidth:qs(r),containerHeight:qs(n)}),o=(0,p.useCallback)((u,l)=>{a(c=>{var f=Math.round(u),d=Math.round(l);return c.containerWidth===f&&c.containerHeight===d?c:{containerWidth:f,containerHeight:d}})},[]),s=(0,p.useCallback)(u=>{if(typeof t=="function"&&t(u),u!=null){var{width:l,height:c}=u.getBoundingClientRect();o(l,c)}},[t,o]);return p.createElement(p.Fragment,null,p.createElement(ua,{width:i.containerWidth,height:i.containerHeight}),p.createElement("div",yn({ref:s},e)))}),v4=(0,p.forwardRef)((e,t)=>{var{width:r,height:n}=e;return p.createElement(p.Fragment,null,p.createElement(ua,{width:r,height:n}),p.createElement("div",yn({ref:t},e)))}),m4=(0,p.forwardRef)((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?p.createElement(h4,yn({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?p.createElement(v4,yn({},e,{width:r,height:n,ref:t})):p.createElement(p.Fragment,null,p.createElement(ua,{width:r,height:n}),p.createElement("div",yn({ref:t},e)))});function g4(e){return e?p4:m4}var y4=(0,p.forwardRef)((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:u,onMouseEnter:l,onMouseLeave:c,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:v,onTouchStart:g,style:m,width:b,responsive:_,dispatchTouchEvents:S=!0}=e,P=(0,p.useRef)(null),A=yt(),[O,j]=(0,p.useState)(null),[B,ee]=(0,p.useState)(null),te=s4(),G=gm(),ae=G?.width>0?G.width:b,ce=G?.height>0?G.height:i,ve=(0,p.useCallback)(ue=>{te(ue),typeof t=="function"&&t(ue),j(ue),ee(ue),ue!=null&&(P.current=ue)},[te,t,j,ee]),me=(0,p.useCallback)(ue=>{A(py(ue)),A(rr({handler:a,reactEvent:ue}))},[A,a]),be=(0,p.useCallback)(ue=>{A(Bf(ue)),A(rr({handler:l,reactEvent:ue}))},[A,l]),_e=(0,p.useCallback)(ue=>{A(Nv()),A(rr({handler:c,reactEvent:ue}))},[A,c]),Se=(0,p.useCallback)(ue=>{A(Bf(ue)),A(rr({handler:f,reactEvent:ue}))},[A,f]),Pe=(0,p.useCallback)(()=>{A(My())},[A]),He=(0,p.useCallback)(()=>{A(Ty())},[A]),kt=(0,p.useCallback)(ue=>{A(Py(ue.key))},[A]),Ee=(0,p.useCallback)(ue=>{A(rr({handler:o,reactEvent:ue}))},[A,o]),je=(0,p.useCallback)(ue=>{A(rr({handler:s,reactEvent:ue}))},[A,s]),ct=(0,p.useCallback)(ue=>{A(rr({handler:u,reactEvent:ue}))},[A,u]),ft=(0,p.useCallback)(ue=>{A(rr({handler:d,reactEvent:ue}))},[A,d]),et=(0,p.useCallback)(ue=>{A(rr({handler:g,reactEvent:ue}))},[A,g]),ot=(0,p.useCallback)(ue=>{S&&A(Ry(ue)),A(rr({handler:v,reactEvent:ue}))},[A,S,v]),ht=(0,p.useCallback)(ue=>{A(rr({handler:h,reactEvent:ue}))},[A,h]),le=g4(_);return p.createElement(eb.Provider,{value:O},p.createElement(tb.Provider,{value:B},p.createElement(le,{width:ae??m?.width,height:ce??m?.height,className:E("recharts-wrapper",n),style:u4({position:"relative",cursor:"default",width:ae,height:ce},m),onClick:me,onContextMenu:Ee,onDoubleClick:je,onFocus:Pe,onBlur:He,onKeyDown:kt,onMouseDown:ct,onMouseEnter:be,onMouseLeave:_e,onMouseMove:Se,onMouseUp:ft,onTouchEnd:ht,onTouchMove:ot,onTouchStart:et,ref:ve},p.createElement(d4,null),r)))}),b4=V([Rt],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),w4=V([b4,Vr,zr],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),H8=e=>{var t=useIsPanorama();return useAppSelector(r=>selectAxisWithScale(r,"xAxis",e,t))},K8=e=>{var t=useIsPanorama();return useAppSelector(r=>selectAxisWithScale(r,"yAxis",e,t))},x4=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId,r=useIsPanorama(),n=useAppSelector(i=>selectAxisScale(i,"xAxis",t,r));return n?.map},_4=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId,r=useIsPanorama(),n=useAppSelector(i=>selectAxisScale(i,"yAxis",t,r));return n?.map},Y8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId,r=useIsPanorama();return useAppSelector(n=>selectAxisInverseScale(n,"xAxis",t,r))},q8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId,r=useIsPanorama();return useAppSelector(n=>selectAxisInverseDataSnapScale(n,"xAxis",t,r))},G8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId;return useAppSelector(r=>selectAxisInverseTickSnapScale(r,"xAxis",t))},X8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId,r=useIsPanorama();return useAppSelector(n=>selectAxisInverseScale(n,"yAxis",t,r))},Z8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId,r=useIsPanorama();return useAppSelector(n=>selectAxisInverseDataSnapScale(n,"yAxis",t,r))},Q8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId;return useAppSelector(r=>selectAxisInverseTickSnapScale(r,"yAxis",t))},J8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId;return useAppSelector(r=>selectRenderedTicksOfAxis(r,"xAxis",t))},e$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId;return useAppSelector(r=>selectRenderedTicksOfAxis(r,"yAxis",t))},t$=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:defaultAxisId,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:defaultAxisId,i=x4(r),a=_4(n);if(!(i==null||a==null)){var o=i(t.x),s=a(t.y);if(!(o==null||s==null))return{x:o,y:s}}},r$=()=>useAppSelector(selectActiveLabel),n$=()=>useAppSelector(selectChartOffset),S4=()=>Ye(w4),i$=()=>useAppSelector(selectActiveTooltipDataPoints),a$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId,r=useIsPanorama();return useAppSelector(n=>selectAxisDomain(n,"xAxis",t,r))},o$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultAxisId,r=useIsPanorama();return useAppSelector(n=>selectAxisDomain(n,"yAxis",t,r))},s$=()=>{var e;return(e=useAppSelector(selectIsTooltipActive))!==null&&e!==void 0?e:!1},u$=()=>{var e=useAppSelector(selectActiveTooltipCoordinate);if(e!=null)return{x:e.x,y:e.y}},nb=(0,p.createContext)(void 0),E4=e=>{var{children:t}=e,[r]=(0,p.useState)("".concat(na("recharts"),"-clip")),n=S4();if(n==null)return null;var{x:i,y:a,width:o,height:s}=n;return p.createElement(nb.Provider,{value:r},p.createElement("defs",null,p.createElement("clipPath",{id:r},p.createElement("rect",{x:i,y:a,height:s,width:o}))),t)},l$=()=>useContext(nb),C4=["width","height","responsive","children","className","style","compact","title","desc"];function O4(e,t){if(e==null)return{};var r,n,i=A4(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function A4(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var P4=(0,p.forwardRef)((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:o,style:s,compact:u,title:l,desc:c}=e,f=O4(e,C4),d=Ai(f);return u?p.createElement(p.Fragment,null,p.createElement(ua,{width:r,height:n}),p.createElement(Xy,{otherAttributes:d,title:l,desc:c},a)):p.createElement(y4,{className:o,style:s,width:r,height:n,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},p.createElement(Xy,{otherAttributes:d,title:l,desc:c,ref:t},p.createElement(E4,null,a)))});function ib(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ib(Object(r),!0).forEach(function(n){T4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T4(e,t,r){return(t=I4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I4(e){var t=j4(e,"string");return typeof t=="symbol"?t:t+""}function j4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qr(e,t){var r=M4({},e),n=t,i=Object.keys(t),a=i.reduce((o,s)=>(o[s]===void 0&&n[s]!==void 0&&(o[s]=n[s]),o),r);return a}var R4=["layout"];function Hf(){return Hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hf.apply(null,arguments)}function D4(e,t){if(e==null)return{};var r,n,i=k4(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function k4(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ab(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function N4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ab(Object(r),!0).forEach(function(n){L4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L4(e,t,r){return(t=F4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F4(e){var t=$4(e,"string");return typeof t=="symbol"?t:t+""}function $4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var B4={top:5,right:5,bottom:5,left:5},ob=N4({accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:B4,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},By),V4=(0,p.forwardRef)(function(t,r){var n,i=Qr(t.categoricalChartProps,ob),{layout:a}=i,o=D4(i,R4),{chartName:s,defaultTooltipEventType:u,validateTooltipEventTypes:l,tooltipPayloadSearcher:c}=t,f={chartName:s,defaultTooltipEventType:u,validateTooltipEventTypes:l,tooltipPayloadSearcher:c,eventEmitter:void 0};return p.createElement(Sk,{preloadedState:{options:f},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:s},p.createElement(Ek,{chartData:i.data}),p.createElement(Tk,{layout:a,margin:i.margin}),p.createElement(Rk,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),p.createElement(Ik,{baseValue:void 0,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),p.createElement(Dk,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),p.createElement(P4,Hf({},o,{ref:r})))});function sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ub(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(r),!0).forEach(function(n){z4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z4(e,t,r){return(t=U4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U4(e){var t=W4(e,"string");return typeof t=="symbol"?t:t+""}function W4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H4=["item"],K4=ub(ub({},ob),{},{layout:"centric",startAngle:0,endAngle:360}),Y4=(0,p.forwardRef)((e,t)=>{var r=Qr(e,K4);return p.createElement(V4,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:H4,tooltipPayloadSearcher:BA,categoricalChartProps:r,ref:t})}),lb=e=>e.graphicalItems.polarItems,q4=V([at,ca],lf),Gs=V([lb,lt,q4],cf),G4=V([Gs],ff),Xs=V([G4,us],df),X4=V([Xs,lt,Gs],hf),c$=V([Xs,lt,Gs],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,o=Ze(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:Ze(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]}))),cb=()=>{},Z4=V([Xs,lt,Gs,Ns,at],yf),Q4=V([lt,mf,gf,cb,Z4,cb,Qe,at],bf),fb=V([lt,Qe,Xs,X4,la,at,Q4],wf),J4=V([fb,bi,vn],_f),e5=V([lt,fb,J4,at],Ef),f$=V([vn,e5],qm);function db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?db(Object(r),!0).forEach(function(n){t5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t5(e,t,r){return(t=r5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r5(e){var t=n5(e,"string");return typeof t=="symbol"?t:t+""}function n5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i5=(e,t)=>t,Kf=V([lb,i5],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),a5=[],Yf=(e,t,r)=>r?.length===0?a5:r,hb=V([us,Kf,Yf],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>pb(pb({},t.presentationProps),a.props))),i!=null)return i}}),o5=V([hb,Kf,Yf],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,o=Ze(n,t.nameKey,t.name),s;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?s=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:um(o,t.dataKey),color:s,payload:n,type:t.legendType}})}),s5=V([hb,Kf,Yf,Rt],(e,t,r,n)=>{if(!(t==null||e==null))return L6({offset:n,pieSettings:t,displayedData:e,cells:r})}),u5=["children","className"];function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(null,arguments)}function l5(e,t){if(e==null)return{};var r,n,i=c5(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c5(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Jr=p.forwardRef((e,t)=>{var{children:r,className:n}=e,i=l5(e,u5),a=E("recharts-layer",n);return p.createElement("g",qf({className:a},Zt(i),{ref:t}),r)});function Zs(){}function Qs(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function vb(e){this._context=e}vb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Qs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function f5(e){return new vb(e)}function mb(e){this._context=e}mb.prototype={areaStart:Zs,areaEnd:Zs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function d5(e){return new mb(e)}function gb(e){this._context=e}gb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function p5(e){return new gb(e)}class yb{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}class h5{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,r){if(t=+t,r=+r,this._point===0)this._point=1;else{const n=pointRadial(this._x0,this._y0),i=pointRadial(this._x0,this._y0=(this._y0+r)/2),a=pointRadial(t,this._y0),o=pointRadial(t,r);this._context.moveTo(...n),this._context.bezierCurveTo(...i,...a,...o)}this._x0=t,this._y0=r}}function v5(e){return new yb(e,!0)}function m5(e){return new yb(e,!1)}function d$(e){return new h5(e)}function bb(e){this._context=e}bb.prototype={areaStart:Zs,areaEnd:Zs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function g5(e){return new bb(e)}function wb(e){this._context=e}wb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Js(e){return new wb(e)}function xb(e){return e<0?-1:1}function _b(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(xb(a)+xb(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Sb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Gf(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function eu(e){this._context=e}eu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Gf(this,this._t0,Sb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Gf(this,Sb(this,r=_b(this,e,t)),r);break;default:Gf(this,this._t0,r=_b(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Eb(e){this._context=new Cb(e)}(Eb.prototype=Object.create(eu.prototype)).point=function(e,t){eu.prototype.point.call(this,t,e)};function Cb(e){this._context=e}Cb.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function y5(e){return new eu(e)}function b5(e){return new Eb(e)}function Ob(e){this._context=e}Ob.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Ab(e),i=Ab(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ab(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function w5(e){return new Ob(e)}function tu(e,t){this._context=e,this._t=t}tu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function x5(e){return new tu(e,.5)}function _5(e){return new tu(e,0)}function S5(e){return new tu(e,1)}const Xf=Math.PI,Zf=2*Xf,Vn=1e-6,E5=Zf-Vn;function Pb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function C5(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Pb;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class ru{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Pb:C5(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=n-t,l=i-r,c=o-t,f=s-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Vn)if(!(Math.abs(f*u-l*c)>Vn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,v=i-s,g=u*u+l*l,m=h*h+v*v,b=Math.sqrt(g),_=Math.sqrt(d),S=a*Math.tan((Xf-Math.acos((g+d-m)/(2*b*_)))/2),P=S/_,A=S/b;Math.abs(P-1)>Vn&&this._append`L${t+P*c},${r+P*f}`,this._append`A${a},${a},0,0,${+(f*h>c*v)},${this._x1=t+A*u},${this._y1=r+A*l}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),u=n*Math.sin(i),l=t+s,c=r+u,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Vn||Math.abs(this._y1-c)>Vn)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Zf+Zf),d>E5?this._append`A${n},${n},0,1,${f},${t-s},${r-u}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:d>Vn&&this._append`A${n},${n},0,${+(d>=Xf)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function O5(){return new ru}O5.prototype=ru.prototype;function p$(e=3){return new ru(+e)}function Qf(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new ru(t)}function Mb(e){return e[0]}function Tb(e){return e[1]}function Ib(e,t){var r=qe(!0),n=null,i=Js,a=null,o=Qf(s);e=typeof e=="function"?e:e===void 0?Mb:qe(e),t=typeof t=="function"?t:t===void 0?Tb:qe(t);function s(u){var l,c=(u=dc(u)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),l=0;l<=c;++l)!(l<c&&r(f=u[l],l,u))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,l,u),+t(f,l,u));if(h)return a=null,h+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:qe(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:qe(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:qe(!!u),s):r},s.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),s):i},s.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),s):n},s}function nu(e,t,r){var n=null,i=qe(!0),a=null,o=Js,s=null,u=Qf(l);e=typeof e=="function"?e:e===void 0?Mb:qe(+e),t=typeof t=="function"?t:qe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Tb:qe(+r);function l(f){var d,h,v,g=(f=dc(f)).length,m,b=!1,_,S=new Array(g),P=new Array(g);for(a==null&&(s=o(_=u())),d=0;d<=g;++d){if(!(d<g&&i(m=f[d],d,f))===b)if(b=!b)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=d-1;v>=h;--v)s.point(S[v],P[v]);s.lineEnd(),s.areaEnd()}b&&(S[d]=+e(m,d,f),P[d]=+t(m,d,f),s.point(n?+n(m,d,f):S[d],r?+r(m,d,f):P[d]))}if(_)return s=null,_+""||null}function c(){return Ib().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:qe(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:qe(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:qe(+f),l):n},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:qe(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:qe(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:qe(+f),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(n).y(t)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:qe(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}var h$=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,A5=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if((0,p.isValidElement)(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{Uf(i)&&typeof r[i]=="function"&&(n[i]=t||(a=>r[i](r,a)))}),n},P5=(e,t,r)=>n=>(e(t,r,n),null),M5=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];Uf(i)&&typeof a=="function"&&(n||(n={}),n[i]=P5(a,t,r))}),n},v$=e=>Array.isArray(e)&&e.length>0;function Jf(){return Jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jf.apply(null,arguments)}function jb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jb(Object(r),!0).forEach(function(n){T5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T5(e,t,r){return(t=I5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I5(e){var t=j5(e,"string");return typeof t=="symbol"?t:t+""}function j5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Db={curveBasisClosed:d5,curveBasisOpen:p5,curveBasis:f5,curveBumpX:v5,curveBumpY:m5,curveLinearClosed:g5,curveLinear:Js,curveMonotoneX:y5,curveMonotoneY:b5,curveNatural:w5,curveStep:x5,curveStepAfter:S5,curveStepBefore:_5},iu=e=>We(e.x)&&We(e.y),kb=e=>e.base!=null&&iu(e.base)&&iu(e),Da=e=>e.x,ka=e=>e.y,R5=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(ia(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=Db["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return Db[r]||Js},Nb={connectNulls:!1,type:"linear"},D5=e=>{var{type:t=Nb.type,points:r=[],baseLine:n,layout:i,connectNulls:a=Nb.connectNulls}=e,o=R5(t,i),s=a?r.filter(iu):r;if(Array.isArray(n)){var u,l=r.map((v,g)=>Rb(Rb({},v),{},{base:n[g]}));i==="vertical"?u=nu().y(ka).x1(Da).x0(v=>v.base.x):u=nu().x(Da).y1(ka).y0(v=>v.base.y);var c=u.defined(kb).curve(o),f=a?l.filter(kb):l;return c(f)}var d;i==="vertical"&&ze(n)?d=nu().y(ka).x1(Da).x0(n):ze(n)?d=nu().x(Da).y1(ka).y0(n):d=Ib().x(Da).y(ka);var h=d.defined(iu).curve(o);return h(s)},Lb=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=ss();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},s=r&&r.length?D5(o):n;return p.createElement("path",Jf({},Ai(e),A5(e),{className:E("recharts-curve",t),d:s===null?void 0:s,ref:i}))};function k5(e,t,r){return(t=N5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N5(e){var t=L5(e,"string");return typeof t=="symbol"?t:t+""}function L5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class F5{constructor(t){k5(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function Fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function au(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fb(Object(r),!0).forEach(function(n){$5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $5(e,t,r){return(t=B5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B5(e){var t=V5(e,"string");return typeof t=="symbol"?t:t+""}function V5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z5={cacheSize:2e3,enableCache:!0},zn=au({},z5),Na=new F5(zn.cacheSize),U5={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},$b="recharts_measurement_span";function W5(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(s)}var Bb=(e,t)=>{try{var r=document.getElementById($b);r||(r=document.createElement("span"),r.setAttribute("id",$b),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,U5,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Vb=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ra.isSsr)return{width:0,height:0};if(!zn.enableCache)return Bb(t,r);var n=W5(t,r),i=Na.get(n);if(i)return i;var a=Bb(t,r);return Na.set(n,a),a},m$=e=>{var t=au(au({},zn),e);t.cacheSize!==zn.cacheSize&&(Na=new LRUCache(t.cacheSize)),zn=t},g$=()=>au({},zn),y$=()=>{Na.clear()},b$=()=>({size:Na.size(),maxSize:zn.cacheSize}),zb;function H5(e,t,r){return(t=K5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K5(e){var t=Y5(e,"string");return typeof t=="symbol"?t:t+""}function Y5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ub=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Wb=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,q5=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,G5=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,X5={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Z5=["cm","mm","pt","pc","in","Q","px"];function Q5(e){return Z5.includes(e)}var Mi="NaN";function J5(e,t){return e*X5[t]}class Dt{static parse(t){var r,[,n,i]=(r=G5.exec(t))!==null&&r!==void 0?r:[];return n==null?Dt.NaN:new Dt(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,$r(t)&&(this.unit=""),r!==""&&!q5.test(r)&&(this.num=NaN,this.unit=""),Q5(r)&&(this.num=J5(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Dt(NaN,""):new Dt(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Dt(NaN,""):new Dt(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Dt(NaN,""):new Dt(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Dt(NaN,""):new Dt(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return $r(this.num)}}zb=Dt,H5(Dt,"NaN",new zb(NaN,""));function Hb(e){if(e==null||e.includes(Mi))return Mi;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=Ub.exec(t))!==null&&r!==void 0?r:[],o=Dt.parse(n??""),s=Dt.parse(a??""),u=i==="*"?o.multiply(s):o.divide(s);if(u.isNaN())return Mi;t=t.replace(Ub,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,[,c,f,d]=(l=Wb.exec(t))!==null&&l!==void 0?l:[],h=Dt.parse(c??""),v=Dt.parse(d??""),g=f==="+"?h.add(v):h.subtract(v);if(g.isNaN())return Mi;t=t.replace(Wb,g.toString())}return t}var Kb=/\(([^()]*)\)/;function eN(e){for(var t=e,r;(r=Kb.exec(t))!=null;){var[,n]=r;t=t.replace(Kb,Hb(n))}return t}function tN(e){var t=e.replace(/\s+/g,"");return t=eN(t),t=Hb(t),t}function rN(e){try{return tN(e)}catch{return Mi}}function ed(e){var t=rN(e.slice(5,-1));return t===Mi?"":t}var nN=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],iN=["dx","dy","angle","className","breakAll"];function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},td.apply(null,arguments)}function Yb(e,t){if(e==null)return{};var r,n,i=aN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var qb=/[ \f\n\r\t\v\u2028\u2029]+/,Gb=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];Xt(t)||(r?i=t.toString().split(""):i=t.toString().split(qb));var a=i.map(s=>({word:s,width:Vb(s,n).width})),o=r?0:Vb("\xA0",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function oN(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function sN(e){return Xt(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var Xb=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:s}=a,u=i[i.length-1];if(u&&s!=null&&(t==null||n||u.width+s+r<Number(t)))u.words.push(o),u.width+=s+r;else{var l={words:[o],width:s};i.push(l)}return i},[]),Zb=e=>e.reduce((t,r)=>t.width>r.width?t:r),uN="\u2026",Qb=(e,t,r,n,i,a,o,s)=>{var u=e.slice(0,t),l=Gb({breakAll:r,style:n,children:u+uN});if(!l)return[!1,[]];var c=Xb(l.wordsWithComputedWidth,a,o,s),f=c.length>i||Zb(c).width>Number(a);return[f,c]},lN=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:s,breakAll:u}=e,l=ze(a),c=String(o),f=Xb(t,n,r,i);if(!l||i)return f;var d=f.length>a||Zb(f).width>Number(n);if(!d)return f;for(var h=0,v=c.length-1,g=0,m;h<=v&&g<=c.length-1;){var b=Math.floor((h+v)/2),_=b-1,[S,P]=Qb(c,_,u,s,a,n,r,i),[A]=Qb(c,b,u,s,a,n,r,i);if(!S&&!A&&(h=b+1),S&&A&&(v=b-1),!S&&A){m=P;break}g++}return m||f},Jb=e=>{var t=Xt(e)?[]:e.toString().split(qb);return[{words:t,width:void 0}]},cN=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Ra.isSsr){var s,u,l=Gb({breakAll:a,children:n,style:i});if(l){var{wordsWithComputedWidth:c,spaceWidth:f}=l;s=c,u=f}else return Jb(n);return lN({breakAll:a,children:n,maxLines:o,style:i},s,u,t,!!r)}return Jb(n)},e1="#808080",fN={angle:0,breakAll:!1,capHeight:"0.71em",fill:e1,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},rd=(0,p.forwardRef)((e,t)=>{var r=Qr(e,fN),{x:n,y:i,lineHeight:a,capHeight:o,fill:s,scaleToFit:u,textAnchor:l,verticalAnchor:c}=r,f=Yb(r,nN),d=(0,p.useMemo)(()=>cN({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:u,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,u,f.style,f.width]),{dx:h,dy:v,angle:g,className:m,breakAll:b}=f,_=Yb(f,iN);if(!ra(n)||!ra(i)||d.length===0)return null;var S=Number(n)+(ze(h)?h:0),P=Number(i)+(ze(v)?v:0);if(!We(S)||!We(P))return null;var A;switch(c){case"start":A=ed("calc(".concat(o,")"));break;case"middle":A=ed("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:A=ed("calc(".concat(d.length-1," * -").concat(a,")"));break}var O=[],j=d[0];if(u&&j!=null){var B=j.width,{width:ee}=f;O.push("scale(".concat(ze(ee)&&ze(B)?ee/B:1,")"))}return g&&O.push("rotate(".concat(g,", ").concat(S,", ").concat(P,")")),O.length&&(_.transform=O.join(" ")),p.createElement("text",td({},Zt(_),{ref:t,x:S,y:P,className:E("recharts-text",m),textAnchor:l,fill:s.includes("url")?e1:s}),d.map((te,G)=>{var ae=te.words.join(b?"":" ");return p.createElement("tspan",{x:S,dy:G===0?A:a,key:"".concat(ae,"-").concat(G)},ae)}))});rd.displayName="Text";var ou=e=>null;ou.displayName="Cell";var dN=De(8658),w$=null,t1=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",r1=null,nd=null,n1=e=>{if(e===r1&&Array.isArray(nd))return nd;var t=[];return p.Children.forEach(e,r=>{Xt(r)||((0,dN.zv)(r)?t=t.concat(n1(r.props.children)):t.push(r))}),nd=t,r1=e,t};function i1(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>t1(i)):n=[t1(t)],n1(e).forEach(i=>{var a=ta()(i,"type.displayName")||ta()(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var x$=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,pN=De(2327),hN=De.n(pN);function a1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function o1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a1(Object(r),!0).forEach(function(n){vN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vN(e,t,r){return(t=mN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mN(e){var t=gN(e,"string");return typeof t=="symbol"?t:t+""}function gN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yN=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),s1=(e,t,r)=>e.map(n=>"".concat(yN(n)," ").concat(t,"ms ").concat(r)).join(","),bN=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),La=(e,t)=>Object.keys(t).reduce((r,n)=>o1(o1({},r),{},{[n]:e(n,t[n])}),{});function u1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u1(Object(r),!0).forEach(function(n){wN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wN(e,t,r){return(t=xN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xN(e){var t=_N(e,"string");return typeof t=="symbol"?t:t+""}function _N(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var su=(e,t,r)=>e+(t-e)*r,id=e=>{var{from:t,to:r}=e;return t!==r},l1=(e,t,r)=>{var n=La((i,a)=>{if(id(a)){var[o,s]=e(a.from,a.to,a.velocity);return wt(wt({},a),{},{from:o,velocity:s})}return a},t);return r<1?La((i,a)=>id(a)&&n[i]!=null?wt(wt({},a),{},{velocity:su(a.velocity,n[i].velocity,r),from:su(a.from,n[i].from,r)}):a,t):l1(e,n,r-1)};function SN(e,t,r,n,i,a){var o,s=n.reduce((d,h)=>wt(wt({},d),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),u=()=>La((d,h)=>h.from,s),l=()=>!Object.values(s).filter(id).length,c=null,f=d=>{o||(o=d);var h=d-o,v=h/r.dt;s=l1(r,s,v),i(wt(wt(wt({},e),t),u())),o=d,l()||(c=a.setTimeout(f))};return()=>(c=a.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function EN(e,t,r,n,i,a,o){var s=null,u=i.reduce((f,d)=>{var h=e[d],v=t[d];return h==null||v==null?f:wt(wt({},f),{},{[d]:[h,v]})},{}),l,c=f=>{l||(l=f);var d=(f-l)/n,h=La((g,m)=>su(...m,r(d)),u);if(a(wt(wt(wt({},e),t),h)),d<1)s=o.setTimeout(c);else{var v=La((g,m)=>su(...m,r(1)),u);a(wt(wt(wt({},e),t),v))}};return()=>(s=o.setTimeout(c),()=>{var f;(f=s)===null||f===void 0||f()})}var CN=((e,t,r,n,i,a)=>{var o=bN(e,t);return r==null?()=>(i(wt(wt({},e),t)),()=>{}):r.isStepper===!0?SN(e,t,r,o,i,a):EN(e,t,r,n,o,i,a)}),uu=1e-4,c1=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],f1=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),d1=(e,t)=>r=>{var n=c1(e,t);return f1(n,r)},ON=(e,t)=>r=>{var n=c1(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return f1(i,r)},AN=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var i=n.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},PN=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=AN(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},MN=(e,t,r,n)=>{var i=d1(e,r),a=d1(t,n),o=ON(e,r),s=l=>l>1?1:l<0?0:l,u=l=>{for(var c=l>1?1:l,f=c,d=0;d<8;++d){var h=i(f)-c,v=o(f);if(Math.abs(h-c)<uu||v<uu)return a(f);f=s(f-h/v)}return a(f)};return u.isStepper=!1,u},p1=function(){return MN(...PN(...arguments))},TN=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,s,u)=>{var l=-(o-s)*r,c=u*n,f=u+(l-c)*i/1e3,d=u*i/1e3+o;return Math.abs(d-s)<uu&&Math.abs(f)<uu?[s,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},IN=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return p1(e);case"spring":return TN();default:if(e.split("(")[0]==="cubic-bezier")return p1(e)}return typeof e=="function"?e:null};function jN(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,[u,...l]=s;if(typeof u=="number"){i=e.setTimeout(a.bind(null,l),u);return}a(u),i=e.setTimeout(a.bind(null,l));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class RN{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function DN(){return jN(new RN)}var kN=(0,p.createContext)(DN);function NN(e,t){var r=(0,p.useContext)(kN);return(0,p.useMemo)(()=>t??r(e),[e,t,r])}function LN(){var[e,t]=(0,p.useState)(()=>Ra.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return(0,p.useEffect)(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(r.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}},[]),e}var FN={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},h1={t:0},ad={t:1};function od(e){var t=Qr(e,FN),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:u,children:l}=t,c=LN(),f=r==="auto"?!Ra.isSsr&&!c:r,d=NN(t.animationId,t.animationManager),[h,v]=(0,p.useState)(f?h1:ad),g=(0,p.useRef)(null);return(0,p.useEffect)(()=>{f||v(ad)},[f]),(0,p.useEffect)(()=>{if(!f||!n)return Wo;var m=CN(h1,ad,IN(a),i,v,d.getTimeoutController()),b=()=>{g.current=m()};return d.start([u,o,b,i,s]),()=>{d.stop(),g.current&&g.current(),s()}},[f,n,i,a,o,u,s,d]),l(h.t)}function sd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=(0,p.useRef)(na(t)),n=(0,p.useRef)(e);return n.current!==e&&(r.current=na(t),n.current=e),r.current}var $N=["radius"],BN=["radius"],v1,m1,g1,y1,b1,w1,x1,_1,S1,E1;function C1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function O1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(r),!0).forEach(function(n){VN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VN(e,t,r){return(t=zN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zN(e){var t=UN(e,"string");return typeof t=="symbol"?t:t+""}function UN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lu.apply(null,arguments)}function A1(e,t){if(e==null)return{};var r,n,i=WN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function WN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Or(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var P1=(e,t,r,n,i)=>{var a=on(r),o=on(n),s=Math.min(Math.abs(a)/2,Math.abs(o)/2),u=o>=0?1:-1,l=a>=0?1:-1,c=o>=0&&a>=0||o<0&&a<0?1:0,f;if(s>0&&Array.isArray(i)){for(var d=[0,0,0,0],h=0,v=4;h<v;h++){var g,m=(g=i[h])!==null&&g!==void 0?g:0;d[h]=m>s?s:m}f=ut(v1||(v1=Or(["M",",",""])),e,t+u*d[0]),d[0]>0&&(f+=ut(m1||(m1=Or(["A ",",",",0,0,",",",",",""])),d[0],d[0],c,e+l*d[0],t)),f+=ut(g1||(g1=Or(["L ",",",""])),e+r-l*d[1],t),d[1]>0&&(f+=ut(y1||(y1=Or(["A ",",",",0,0,",`,
        `,",",""])),d[1],d[1],c,e+r,t+u*d[1])),f+=ut(b1||(b1=Or(["L ",",",""])),e+r,t+n-u*d[2]),d[2]>0&&(f+=ut(w1||(w1=Or(["A ",",",",0,0,",`,
        `,",",""])),d[2],d[2],c,e+r-l*d[2],t+n)),f+=ut(x1||(x1=Or(["L ",",",""])),e+l*d[3],t+n),d[3]>0&&(f+=ut(_1||(_1=Or(["A ",",",",0,0,",`,
        `,",",""])),d[3],d[3],c,e,t+n-u*d[3])),f+="Z"}else if(s>0&&i===+i&&i>0){var b=Math.min(s,i);f=ut(S1||(S1=Or(["M ",",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",","," Z"])),e,t+u*b,b,b,c,e+l*b,t,e+r-l*b,t,b,b,c,e+r,t+u*b,e+r,t+n-u*b,b,b,c,e+r-l*b,t+n,e+l*b,t+n,b,b,c,e,t+n-u*b)}else f=ut(E1||(E1=Or(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},M1={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},HN=e=>{var t=Qr(e,M1),r=(0,p.useRef)(null),[n,i]=(0,p.useState)(-1);(0,p.useEffect)(()=>{if(r.current&&r.current.getTotalLength)try{var _e=r.current.getTotalLength();_e&&i(_e)}catch{}},[]);var{x:a,y:o,width:s,height:u,radius:l,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:h,isAnimationActive:v,isUpdateAnimationActive:g}=t,m=(0,p.useRef)(s),b=(0,p.useRef)(u),_=(0,p.useRef)(a),S=(0,p.useRef)(o),P=(0,p.useMemo)(()=>({x:a,y:o,width:s,height:u,radius:l}),[a,o,s,u,l]),A=sd(P,"rectangle-");if(a!==+a||o!==+o||s!==+s||u!==+u||s===0||u===0)return null;var O=E("recharts-rectangle",c);if(!g){var j=Zt(t),{radius:B}=j,ee=A1(j,$N);return p.createElement("path",lu({},ee,{x:on(a),y:on(o),width:on(s),height:on(u),radius:typeof l=="number"?l:void 0,className:O,d:P1(a,o,s,u,l)}))}var te=m.current,G=b.current,ae=_.current,ce=S.current,ve="0px ".concat(n===-1?1:n,"px"),me="".concat(n,"px ").concat(n,"px"),be=s1(["strokeDasharray"],d,typeof f=="string"?f:M1.animationEasing);return p.createElement(od,{animationId:A,key:A,canBegin:n>0,duration:d,easing:f,isActive:g,begin:h},_e=>{var Se=cr(te,s,_e),Pe=cr(G,u,_e),He=cr(ae,a,_e),kt=cr(ce,o,_e);r.current&&(m.current=Se,b.current=Pe,_.current=He,S.current=kt);var Ee;v?_e>0?Ee={transition:be,strokeDasharray:me}:Ee={strokeDasharray:ve}:Ee={strokeDasharray:me};var je=Zt(t),{radius:ct}=je,ft=A1(je,BN);return p.createElement("path",lu({},ft,{radius:typeof l=="number"?l:void 0,className:O,d:P1(He,kt,Se,Pe,l),ref:r,style:O1(O1({},Ee),t.style)}))})},T1,I1,j1,R1,D1;function k1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function N1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k1(Object(r),!0).forEach(function(n){KN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KN(e,t,r){return(t=YN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YN(e){var t=qN(e,"string");return typeof t=="symbol"?t:t+""}function qN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cu.apply(null,arguments)}function Fa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var L1=(e,t,r,n,i)=>{var a=r-n,o;return o=ut(T1||(T1=Fa(["M ",",",""])),e,t),o+=ut(I1||(I1=Fa(["L ",",",""])),e+r,t),o+=ut(j1||(j1=Fa(["L ",",",""])),e+r-a/2,t+i),o+=ut(R1||(R1=Fa(["L ",",",""])),e+r-a/2-n,t+i),o+=ut(D1||(D1=Fa(["L ",","," Z"])),e,t),o},GN={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},XN=e=>{var t=Qr(e,GN),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:u,animationDuration:l,animationBegin:c,isUpdateAnimationActive:f}=t,d=(0,p.useRef)(null),[h,v]=(0,p.useState)(-1),g=(0,p.useRef)(i),m=(0,p.useRef)(a),b=(0,p.useRef)(o),_=(0,p.useRef)(r),S=(0,p.useRef)(n),P=sd(e,"trapezoid-");if((0,p.useEffect)(()=>{if(d.current&&d.current.getTotalLength)try{var ve=d.current.getTotalLength();ve&&v(ve)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var A=E("recharts-trapezoid",s);if(!f)return p.createElement("g",null,p.createElement("path",cu({},Zt(t),{className:A,d:L1(r,n,i,a,o)})));var O=g.current,j=m.current,B=b.current,ee=_.current,te=S.current,G="0px ".concat(h===-1?1:h,"px"),ae="".concat(h,"px ").concat(h,"px"),ce=s1(["strokeDasharray"],l,u);return p.createElement(od,{animationId:P,key:P,canBegin:h>0,duration:l,easing:u,isActive:f,begin:c},ve=>{var me=cr(O,i,ve),be=cr(j,a,ve),_e=cr(B,o,ve),Se=cr(ee,r,ve),Pe=cr(te,n,ve);d.current&&(g.current=me,m.current=be,b.current=_e,_.current=Se,S.current=Pe);var He=ve>0?{transition:ce,strokeDasharray:ae}:{strokeDasharray:G};return p.createElement("path",cu({},Zt(t),{className:A,d:L1(Se,Pe,me,be,_e),ref:d,style:N1(N1({},He),t.style)}))})},F1,$1,B1,V1,z1,U1,W1;function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ud.apply(null,arguments)}function Un(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ZN=(e,t)=>{var r=Ut(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},fu=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:u}=e,l=s*(o?1:-1)+n,c=Math.asin(s/l)/ls,f=u?i:i+a*c,d=Ft(t,r,l,f),h=Ft(t,r,n,f),v=u?i-a*c:i,g=Ft(t,r,l*Math.cos(c*ls),v);return{center:d,circleTangency:h,lineTangency:g,theta:c}},H1=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,s=ZN(a,o),u=a+s,l=Ft(t,r,i,a),c=Ft(t,r,i,u),f=ut(F1||(F1=Un(["M ",",",`
    A `,",",`,0,
    `,",",`,
    `,",",`
  `])),l.x,l.y,i,i,+(Math.abs(s)>180),+(a>u),c.x,c.y);if(n>0){var d=Ft(t,r,n,a),h=Ft(t,r,n,u);f+=ut($1||($1=Un(["L ",",",`
            A `,",",`,0,
            `,",",`,
            `,","," Z"])),h.x,h.y,n,n,+(Math.abs(s)>180),+(a<=u),d.x,d.y)}else f+=ut(B1||(B1=Un(["L ",","," Z"])),t,r);return f},QN=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:s,startAngle:u,endAngle:l}=e,c=Ut(l-u),{circleTangency:f,lineTangency:d,theta:h}=fu({cx:t,cy:r,radius:i,angle:u,sign:c,cornerRadius:a,cornerIsExternal:s}),{circleTangency:v,lineTangency:g,theta:m}=fu({cx:t,cy:r,radius:i,angle:l,sign:-c,cornerRadius:a,cornerIsExternal:s}),b=s?Math.abs(u-l):Math.abs(u-l)-h-m;if(b<0)return o?ut(V1||(V1=Un(["M ",",",`
        a`,",",",0,0,1,",`,0
        a`,",",",0,0,1,",`,0
      `])),d.x,d.y,a,a,a*2,a,a,-a*2):H1({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:u,endAngle:l});var _=ut(z1||(z1=Un(["M ",",",`
    A`,",",",0,0,",",",",",`
    A`,",",",0,",",",",",",",`
    A`,",",",0,0,",",",",",`
  `])),d.x,d.y,a,a,+(c<0),f.x,f.y,i,i,+(b>180),+(c<0),v.x,v.y,a,a,+(c<0),g.x,g.y);if(n>0){var{circleTangency:S,lineTangency:P,theta:A}=fu({cx:t,cy:r,radius:n,angle:u,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),{circleTangency:O,lineTangency:j,theta:B}=fu({cx:t,cy:r,radius:n,angle:l,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),ee=s?Math.abs(u-l):Math.abs(u-l)-A-B;if(ee<0&&a===0)return"".concat(_,"L").concat(t,",").concat(r,"Z");_+=ut(U1||(U1=Un(["L",",",`
      A`,",",",0,0,",",",",",`
      A`,",",",0,",",",",",",",`
      A`,",",",0,0,",",",",","Z"])),j.x,j.y,a,a,+(c<0),O.x,O.y,n,n,+(ee>180),+(c>0),S.x,S.y,a,a,+(c<0),P.x,P.y)}else _+=ut(W1||(W1=Un(["L",",","Z"])),t,r);return _},JN={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},e3=e=>{var t=Qr(e,JN),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:u,startAngle:l,endAngle:c,className:f}=t;if(a<i||l===c)return null;var d=E("recharts-sector",f),h=a-i,v=Gt(o,h,0,!0),g;return v>0&&Math.abs(l-c)<360?g=QN({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,h/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:l,endAngle:c}):g=H1({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:c}),p.createElement("path",ud({},Zt(t),{className:d,d:g}))};const _$=Math.abs,S$=Math.atan2,K1=Math.cos,E$=Math.max,ld=Math.min,du=Math.sin,xt=Math.sqrt,C$=1e-12,Ti=Math.PI,Y1=Ti/2,pu=2*Ti;function O$(e){return e>1?0:e<-1?Ti:Math.acos(e)}function A$(e){return e>=1?Y1:e<=-1?-Y1:Math.asin(e)}var $a={draw(e,t){const r=xt(t/Ti);e.moveTo(r,0),e.arc(0,0,r,0,pu)}},q1={draw(e,t){const r=xt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};const G1=xt(1/3),t3=G1*2;var X1={draw(e,t){const r=xt(t/t3),n=r*G1;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Z1={draw(e,t){const r=xt(t),n=-r/2;e.rect(n,n,r,r)}};const r3=.8908130915292852,Q1=du(Ti/10)/du(7*Ti/10),n3=du(pu/10)*Q1,i3=-K1(pu/10)*Q1;var J1={draw(e,t){const r=xt(t*r3),n=n3*r,i=i3*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=pu*a/5,s=K1(o),u=du(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}};const cd=xt(3);var ew={draw(e,t){const r=-xt(t/(cd*3));e.moveTo(0,r*2),e.lineTo(-cd*r,-r),e.lineTo(cd*r,-r),e.closePath()}};const nr=-.5,ir=xt(3)/2,fd=1/xt(12),a3=(fd/2+1)*3;var tw={draw(e,t){const r=xt(t/a3),n=r/2,i=r*fd,a=n,o=r*fd+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(nr*n-ir*i,ir*n+nr*i),e.lineTo(nr*a-ir*o,ir*a+nr*o),e.lineTo(nr*s-ir*u,ir*s+nr*u),e.lineTo(nr*n+ir*i,nr*i-ir*n),e.lineTo(nr*a+ir*o,nr*o-ir*a),e.lineTo(nr*s+ir*u,nr*u-ir*s),e.closePath()}};const o3=xt(3);var s3={draw(e,t){const r=xt(t+ld(t/28,.75))*.59436,n=r/2,i=n*o3;e.moveTo(0,r),e.lineTo(0,-r),e.moveTo(-i,-n),e.lineTo(i,n),e.moveTo(-i,n),e.lineTo(i,-n)}},u3={draw(e,t){const r=xt(t)*.62625;e.moveTo(0,-r),e.lineTo(r,0),e.lineTo(0,r),e.lineTo(-r,0),e.closePath()}},l3={draw(e,t){const r=xt(t-ld(t/7,2))*.87559;e.moveTo(-r,0),e.lineTo(r,0),e.moveTo(0,r),e.lineTo(0,-r)}},c3={draw(e,t){const r=xt(t)*.4431;e.moveTo(r,r),e.lineTo(r,-r),e.lineTo(-r,-r),e.lineTo(-r,r),e.closePath()}};const f3=xt(3);var d3={draw(e,t){const r=xt(t)*.6824,n=r/2,i=r*f3/2;e.moveTo(0,-r),e.lineTo(i,n),e.lineTo(-i,n),e.closePath()}},p3={draw(e,t){const r=xt(t-ld(t/6,1.7))*.6189;e.moveTo(-r,-r),e.lineTo(r,r),e.moveTo(-r,r),e.lineTo(r,-r)}};const P$=[$a,q1,X1,Z1,J1,ew,tw],M$=[$a,l3,p3,d3,s3,c3,u3];function h3(e,t){let r=null,n=Qf(i);e=typeof e=="function"?e:qe(e||$a),t=typeof t=="function"?t:qe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:qe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:qe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}var v3=["type","size","sizeType"];function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dd.apply(null,arguments)}function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){m3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m3(e,t,r){return(t=g3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g3(e){var t=y3(e,"string");return typeof t=="symbol"?t:t+""}function y3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b3(e,t){if(e==null)return{};var r,n,i=w3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function w3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var iw={symbolCircle:$a,symbolCross:q1,symbolDiamond:X1,symbolSquare:Z1,symbolStar:J1,symbolTriangle:ew,symbolWye:tw},x3=Math.PI/180,_3=e=>{var t="symbol".concat(ia(e));return iw[t]||$a},S3=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*x3;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},E3=(e,t)=>{iw["symbol".concat(ia(e))]=t},aw=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=b3(e,v3),a=nw(nw({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var s=()=>{var d=_3(o),h=h3().type(d).size(S3(r,n,o)),v=h();if(v!==null)return v},{className:u,cx:l,cy:c}=a,f=Zt(a);return ze(l)&&ze(c)&&ze(r)?p.createElement("path",dd({},f,{className:E("recharts-symbols",u),transform:"translate(".concat(l,", ").concat(c,")"),d:s()})):null};aw.registerSymbol=E3;var C3=["option","shapeType","activeClassName","inActiveClassName"];function O3(e,t){if(e==null)return{};var r,n,i=A3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function A3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ow(Object(r),!0).forEach(function(n){P3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P3(e,t,r){return(t=M3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M3(e){var t=T3(e,"string");return typeof t=="symbol"?t:t+""}function T3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I3(e,t){return hu(hu({},t),e)}function j3(e,t){return e==="symbols"}function sw(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return p.createElement(HN,r);case"trapezoid":return p.createElement(XN,r);case"sector":return p.createElement(e3,r);case"symbols":if(j3(t,r))return p.createElement(aw,r);break;case"curve":return p.createElement(Lb,r);default:return null}}function R3(e){return(0,p.isValidElement)(e)?e.props:e}function D3(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,a=O3(e,C3),o;if((0,p.isValidElement)(t))o=(0,p.cloneElement)(t,hu(hu({},a),R3(t)));else if(typeof t=="function")o=t(a,a.index);else if(hN()(t)&&typeof t!="boolean"){var s=I3(t,a);o=p.createElement(sw,{shapeType:r,elementProps:s})}else{var u=a;o=p.createElement(sw,{shapeType:r,elementProps:u})}return a.isActive?p.createElement(Jr,{className:n},o):p.createElement(Jr,{className:i},o)}var k3=(e,t,r)=>{var n=yt();return(i,a)=>o=>{e?.(i,a,o),n(kv({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},N3=e=>{var t=yt();return(r,n)=>i=>{e?.(r,n,i),t($P())}},L3=(e,t,r)=>{var n=yt();return(i,a)=>o=>{e?.(i,a,o),n(BP({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function F3(e){var{tooltipEntrySettings:t}=e,r=yt(),n=ln(),i=(0,p.useRef)(null);return(0,p.useLayoutEffect)(()=>{n||(i.current===null?r(NP(t)):i.current!==t&&r(LP({prev:i.current,next:t})),i.current=t)},[t,r,n]),(0,p.useLayoutEffect)(()=>()=>{i.current&&(r(FP(i.current)),i.current=null)},[r]),null}function T$(e){var{legendPayload:t}=e,r=useAppDispatch(),n=useIsPanorama(),i=useRef(null);return useLayoutEffect(()=>{n||(i.current===null?r(addLegendPayload(t)):i.current!==t&&r(replaceLegendPayload({prev:i.current,next:t})),i.current=t)},[r,n,t]),useLayoutEffect(()=>()=>{i.current&&(r(removeLegendPayload(i.current)),i.current=null)},[r]),null}function $3(e){var{legendPayload:t}=e,r=yt(),n=Ye(Qe),i=(0,p.useRef)(null);return(0,p.useLayoutEffect)(()=>{n!=="centric"&&n!=="radial"||(i.current===null?r(zD(t)):i.current!==t&&r(UD({prev:i.current,next:t})),i.current=t)},[r,n,t]),(0,p.useLayoutEffect)(()=>()=>{i.current&&(r(WD(i.current)),i.current=null)},[r]),null}var pd,B3=()=>{var[e]=p.useState(()=>na("uid-"));return e},V3=(pd=p.useId)!==null&&pd!==void 0?pd:B3;function z3(e,t){var r=V3();return t||(e?"".concat(e,"-").concat(r):r)}var uw=(0,p.createContext)(void 0),U3=e=>{var{id:t,type:r,children:n}=e,i=z3("recharts-".concat(r),t);return p.createElement(uw.Provider,{value:i},n(i))};function I$(){return useContext(uw)}var j$=e=>{var t=useAppDispatch(),r=useRef(null);return useLayoutEffect(()=>{r.current===null?t(addCartesianGraphicalItem(e)):r.current!==e&&t(replaceCartesianGraphicalItem({prev:r.current,next:e})),r.current=e},[t,e]),useLayoutEffect(()=>()=>{r.current&&(t(removeCartesianGraphicalItem(r.current)),r.current=null)},[t]),null},R$=null,W3=e=>{var t=yt(),r=(0,p.useRef)(null);return(0,p.useLayoutEffect)(()=>{r.current===null?t(DD(e)):r.current!==e&&t(ND({prev:r.current,next:e})),r.current=e},[t,e]),(0,p.useLayoutEffect)(()=>()=>{r.current&&(t(kD(r.current)),r.current=null)},[t]),null},H3=(0,p.memo)(W3);function vu(e){var{zIndex:t,children:r}=e,n=pM(),i=n&&t!==void 0&&t!==0,a=ln(),o=yt();(0,p.useLayoutEffect)(()=>i?(o(dk({zIndex:t})),()=>{o(pk({zIndex:t}))}):Wo,[o,t,i]);var s=Ye(u=>zk(u,t,a));return i?s?(0,N.createPortal)(r,s):null:r}function lw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lw(Object(r),!0).forEach(function(n){K3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K3(e,t,r){return(t=Y3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y3(e){var t=q3(e,"string");return typeof t=="symbol"?t:t+""}function q3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var G3=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i,clamp:a}=e,{x:o,y:s,height:u,upperWidth:l,lowerWidth:c}=hc(t),f=o,d=o+(l-c)/2,h=(f+d)/2,v=(l+c)/2,g=f+l/2,m=u>=0?1:-1,b=m*n,_=m>0?"end":"start",S=m>0?"start":"end",P=l>=0?1:-1,A=P*n,O=P>0?"end":"start",j=P>0?"start":"end",B=i;if(r==="top"){var ee={x:f+l/2,y:s-b,horizontalAnchor:"middle",verticalAnchor:_};return a&&B&&(ee.height=Math.max(s-B.y,0),ee.width=l),ee}if(r==="bottom"){var te={x:d+c/2,y:s+u+b,horizontalAnchor:"middle",verticalAnchor:S};return a&&B&&(te.height=Math.max(B.y+B.height-(s+u),0),te.width=c),te}if(r==="left"){var G={x:h-A,y:s+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return a&&B&&(G.width=Math.max(G.x-B.x,0),G.height=u),G}if(r==="right"){var ae={x:h+v+A,y:s+u/2,horizontalAnchor:j,verticalAnchor:"middle"};return a&&B&&(ae.width=Math.max(B.x+B.width-ae.x,0),ae.height=u),ae}var ce=a&&B?{width:v,height:u}:{};return r==="insideLeft"?Ar({x:h+A,y:s+u/2,horizontalAnchor:j,verticalAnchor:"middle"},ce):r==="insideRight"?Ar({x:h+v-A,y:s+u/2,horizontalAnchor:O,verticalAnchor:"middle"},ce):r==="insideTop"?Ar({x:f+l/2,y:s+b,horizontalAnchor:"middle",verticalAnchor:S},ce):r==="insideBottom"?Ar({x:d+c/2,y:s+u-b,horizontalAnchor:"middle",verticalAnchor:_},ce):r==="insideTopLeft"?Ar({x:f+A,y:s+b,horizontalAnchor:j,verticalAnchor:S},ce):r==="insideTopRight"?Ar({x:f+l-A,y:s+b,horizontalAnchor:O,verticalAnchor:S},ce):r==="insideBottomLeft"?Ar({x:d+A,y:s+u-b,horizontalAnchor:j,verticalAnchor:_},ce):r==="insideBottomRight"?Ar({x:d+c-A,y:s+u-b,horizontalAnchor:O,verticalAnchor:_},ce):r&&typeof r=="object"&&(ze(r.x)||Jl(r.x))&&(ze(r.y)||Jl(r.y))?Ar({x:o+Gt(r.x,v),y:s+Gt(r.y,u),horizontalAnchor:"end",verticalAnchor:"end"},ce):Ar({x:g,y:s+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},ce)},X3=["labelRef"],Z3=["content"];function cw(e,t){if(e==null)return{};var r,n,i=Q3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Q3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ba(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(n){J3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J3(e,t,r){return(t=e6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e6(e){var t=t6(e,"string");return typeof t=="symbol"?t:t+""}function t6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},en.apply(null,arguments)}var dw=(0,p.createContext)(null),D$=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:s}=e,u=useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return React.createElement(dw.Provider,{value:u},s)},pw=()=>{var e=(0,p.useContext)(dw),t=ym();return e||(t?hc(t):void 0)},hw=(0,p.createContext)(null),k$=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o,clockWise:s,children:u}=e,l=useMemo(()=>({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o,clockWise:s}),[t,r,n,i,a,o,s]);return React.createElement(hw.Provider,{value:l},u)},vw=()=>{var e=(0,p.useContext)(hw),t=Ye(Hm);return e||t},r6=e=>{var{value:t,formatter:r}=e,n=Xt(e.children)?t:e.children;return typeof r=="function"?r(n):n},mw=e=>e!=null&&typeof e=="function",n6=(e,t)=>{var r=Ut(t-e),n=Math.min(Math.abs(t-e),360);return r*n},i6=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:s,cy:u,innerRadius:l,outerRadius:c,startAngle:f,endAngle:d,clockWise:h}=i,v=(l+c)/2,g=n6(f,d),m=g>=0?1:-1,b,_;switch(t){case"insideStart":b=f+m*a,_=h;break;case"insideEnd":b=d-m*a,_=!h;break;case"end":b=d+m*a,_=h;break;default:throw new Error("Unsupported position ".concat(t))}_=g<=0?_:!_;var S=Ft(s,u,v,b),P=Ft(s,u,v,b+(_?1:-1)*359),A="M".concat(S.x,",").concat(S.y,`
    A`).concat(v,",").concat(v,",0,1,").concat(_?0:1,`,
    `).concat(P.x,",").concat(P.y),O=Xt(e.id)?na("recharts-radial-line-"):e.id;return p.createElement("text",en({},n,{dominantBaseline:"central",className:E("recharts-radial-bar-label",o)}),p.createElement("defs",null,p.createElement("path",{id:O,d:A})),p.createElement("textPath",{xlinkHref:"#".concat(O)},r))},a6=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:u}=e,l=(s+u)/2;if(r==="outside"){var{x:c,y:f}=Ft(n,i,o+t,l);return{x:c,y:f,textAnchor:c>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:h,y:v}=Ft(n,i,d,l);return{x:h,y:v,textAnchor:"middle",verticalAnchor:"middle"}},mu=e=>e!=null&&"cx"in e&&ze(e.cx),o6={angle:0,offset:5,zIndex:Wr.label,position:"middle",textBreakAll:!1};function s6(e){if(!mu(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=n*2;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}function bn(e){var t=Qr(e,o6),{viewBox:r,parentViewBox:n,position:i,value:a,children:o,content:s,className:u="",textBreakAll:l,labelRef:c}=t,f=vw(),d=pw(),h=i==="center"?d:f??d,v,g,m;r==null?v=h:mu(r)?v=r:v=hc(r);var b=s6(v);if(!v||Xt(a)&&Xt(o)&&!(0,p.isValidElement)(s)&&typeof s!="function")return null;var _=Ba(Ba({},t),{},{viewBox:v});if((0,p.isValidElement)(s)){var{labelRef:S}=_,P=cw(_,X3);return(0,p.cloneElement)(s,P)}if(typeof s=="function"){var{content:A}=_,O=cw(_,Z3);if(g=(0,p.createElement)(s,O),(0,p.isValidElement)(g))return g}else g=r6(t);var j=Zt(t);if(mu(v)){if(i==="insideStart"||i==="insideEnd"||i==="end")return i6(t,i,g,j,v);m=a6(v,t.offset,t.position)}else{if(!b)return null;var B=G3({viewBox:b,position:i,offset:t.offset,parentViewBox:mu(n)?void 0:n,clamp:!0});m=Ba(Ba({x:B.x,y:B.y,textAnchor:B.horizontalAnchor,verticalAnchor:B.verticalAnchor},B.width!==void 0?{width:B.width}:{}),B.height!==void 0?{height:B.height}:{})}return p.createElement(vu,{zIndex:t.zIndex},p.createElement(rd,en({ref:c,className:E("recharts-label",u)},j,m,{textAnchor:oN(j.textAnchor)?j.textAnchor:m.textAnchor,breakAll:l}),g))}bn.displayName="Label";var gw=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?React.createElement(bn,en({key:"label-implicit"},n)):isNumOrStr(e)?React.createElement(bn,en({key:"label-implicit",value:e},n)):isValidElement(e)?e.type===bn?cloneElement(e,Ba({key:"label-implicit"},n)):React.createElement(bn,en({key:"label-implicit",content:e},n)):mw(e)?React.createElement(bn,en({key:"label-implicit",content:e},n)):e&&typeof e=="object"?React.createElement(bn,en({},e,{key:"label-implicit"},n)):null};function N$(e){var{label:t,labelRef:r}=e,n=pw();return gw(t,n,r)||null}function L$(e){var{label:t}=e,r=vw();return gw(t,r)||null}var u6=["valueAccessor"],l6=["dataKey","clockWise","id","textBreakAll","zIndex"];function gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gu.apply(null,arguments)}function yw(e,t){if(e==null)return{};var r,n,i=c6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c6(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var f6=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(sN(t))return t},bw=(0,p.createContext)(void 0),F$=bw.Provider,ww=(0,p.createContext)(void 0),d6=ww.Provider;function p6(){return(0,p.useContext)(bw)}function h6(){return(0,p.useContext)(ww)}function yu(e){var{valueAccessor:t=f6}=e,r=yw(e,u6),{dataKey:n,clockWise:i,id:a,textBreakAll:o,zIndex:s}=r,u=yw(r,l6),l=p6(),c=h6(),f=l||c;return!f||!f.length?null:p.createElement(vu,{zIndex:s??Wr.label},p.createElement(Jr,{className:"recharts-label-list"},f.map((d,h)=>{var v,g=Xt(n)?t(d,h):Ze(d.payload,n),m=Xt(a)?{}:{id:"".concat(a,"-").concat(h)};return p.createElement(bn,gu({key:"label-".concat(h)},Zt(d),u,m,{fill:(v=r.fill)!==null&&v!==void 0?v:d.fill,parentViewBox:d.parentViewBox,value:g,textBreakAll:o,viewBox:d.viewBox,index:h,zIndex:0}))})))}yu.displayName="LabelList";function v6(e){var{label:t}=e;return t?t===!0?p.createElement(yu,{key:"labelList-implicit"}):p.isValidElement(t)||mw(t)?p.createElement(yu,{key:"labelList-implicit",content:t}):typeof t=="object"?p.createElement(yu,gu({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function m6(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var g6=["key"],y6=["onMouseEnter","onClick","onMouseLeave"],b6=["id"],w6=["id"];function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wn.apply(null,arguments)}function bu(e,t){if(e==null)return{};var r,n,i=x6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function x6(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xw(Object(r),!0).forEach(function(n){_6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _6(e,t,r){return(t=S6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S6(e){var t=E6(e,"string");return typeof t=="symbol"?t:t+""}function E6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C6(e){var t=(0,p.useMemo)(()=>i1(e.children,ou),[e.children]),r=Ye(n=>o5(n,e.id,t));return r==null?null:p.createElement($3,{legendPayload:r})}function O6(e){if(!(e==null||typeof e=="boolean"||typeof e=="function")){if(p.isValidElement(e)){var t,r=(t=e.props)===null||t===void 0?void 0:t.fill;return typeof r=="string"?r:void 0}var{fill:n}=e;return typeof n=="string"?n:void 0}}var A6=p.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:o,name:s,hide:u,tooltipType:l,id:c,activeShape:f}=e,d=O6(f),h=n.map(g=>{var m=g.tooltipPayload;return d==null||m==null?m:m.map(b=>Je(Je({},b),{},{color:d,fill:d}))}),v={dataDefinedOnItem:h,getPosition:g=>{var m;return(m=n[Number(g)])===null||m===void 0?void 0:m.tooltipPosition},settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:r,name:um(s,t),hide:u,type:l,color:o,unit:"",graphicalItemId:c}};return p.createElement(F3,{tooltipEntrySettings:v})}),P6=(e,t)=>e>t?"start":e<t?"end":"middle",M6=(e,t,r)=>Gt(typeof t=="function"?t(e):t,r,r*.8),T6=(e,t,r)=>{var{top:n,left:i,width:a,height:o}=t,s=Nm(a,o),u=i+Gt(e.cx,a,a/2),l=n+Gt(e.cy,o,o/2),c=Gt(e.innerRadius,s,0),f=M6(r,e.outerRadius,s),d=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:u,cy:l,innerRadius:c,outerRadius:f,maxRadius:d}},I6=(e,t)=>{var r=Ut(t-e),n=Math.min(Math.abs(t-e),360);return r*n},j6=(e,t)=>{if(p.isValidElement(e))return p.cloneElement(e,t);if(typeof e=="function")return e(t);var r=E("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,i=bu(t,g6);return p.createElement(Lb,wn({},i,{type:"linear",className:r}))},R6=(e,t,r)=>{if(p.isValidElement(e))return p.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),p.isValidElement(n)))return n;var i=E("recharts-pie-label-text",m6(e));return p.createElement(rd,wn({},t,{alignmentBaseline:"middle",className:i}),n)};function D6(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:o}=r;if(!n||!i||!t)return null;var s=Ai(r),u=Ky(i),l=Ky(a),c=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((d,h)=>{var v=(d.startAngle+d.endAngle)/2,g=Ft(d.cx,d.cy,d.outerRadius+c,v),m=Je(Je(Je(Je({},s),d),{},{stroke:"none"},u),{},{index:h,textAnchor:P6(g.x,d.cx)},g),b=Je(Je(Je(Je({},s),d),{},{fill:"none",stroke:d.fill},l),{},{index:h,points:[Ft(d.cx,d.cy,d.outerRadius,v),g],key:"line"});return p.createElement(vu,{zIndex:Wr.label,key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(h)},p.createElement(Jr,null,a&&j6(a,b),R6(i,m,Ze(d,o))))});return p.createElement(Jr,{className:"recharts-pie-labels"},f)}function k6(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?p.createElement(v6,{label:i}):p.createElement(D6,{sectors:t,props:r,showLabels:n})}function N6(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i,shape:a,id:o}=e,s=Ye(Ta),u=Ye(sy),l=Ye(lD),{onMouseEnter:c,onClick:f,onMouseLeave:d}=i,h=bu(i,y6),v=k3(c,i.dataKey,o),g=N3(d),m=L3(f,i.dataKey,o);return t==null||t.length===0?null:p.createElement(p.Fragment,null,t.map((b,_)=>{if(b?.startAngle===0&&b?.endAngle===0&&t.length!==1)return null;var S=l==null||l===o,P=String(_)===s&&(u==null||i.dataKey===u)&&S,A=s?n:null,O=r&&P?r:A,j=Je(Je({},b),{},{stroke:b.stroke,tabIndex:-1,[cm]:_,[fm]:o});return p.createElement(Jr,wn({key:"sector-".concat(b?.startAngle,"-").concat(b?.endAngle,"-").concat(b.midAngle,"-").concat(_),tabIndex:-1,className:"recharts-pie-sector"},M5(h,b,_),{onMouseEnter:v(b,_),onMouseLeave:g(b,_),onClick:m(b,_)}),p.createElement(D3,wn({option:a??O,index:_,shapeType:"sector",isActive:P},j)))}))}function L6(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:o,startAngle:s,endAngle:u,dataKey:l,nameKey:c,tooltipType:f}=r,d=Math.abs(r.minAngle),h=I6(s,u),v=Math.abs(h),g=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,m=n.filter(O=>Ze(O,l,0)!==0).length,b=(v>=360?m:m-1)*g,_=v-m*d-b,S=n.reduce((O,j)=>{var B=Ze(j,l,0);return O+(ze(B)?B:0)},0),P;if(S>0){var A;P=n.map((O,j)=>{var B=Ze(O,l,0),ee=Ze(O,c,j),te=T6(r,a,O),G=(ze(B)?B:0)/S,ae,ce=Je(Je({},O),i&&i[j]&&i[j].props),ve=ce!=null&&"fill"in ce&&typeof ce.fill=="string"?ce.fill:r.fill;j?ae=A.endAngle+Ut(h)*g*(B!==0?1:0):ae=s;var me=ae+Ut(h)*((B!==0?d:0)+G*_),be=(ae+me)/2,_e=(te.innerRadius+te.outerRadius)/2,Se=[{name:ee,value:B,payload:ce,dataKey:l,type:f,color:ve,fill:ve,graphicalItemId:r.id}],Pe=Ft(te.cx,te.cy,_e,be);return A=Je(Je(Je(Je({},r.presentationProps),{},{percent:G,cornerRadius:typeof o=="string"?parseFloat(o):o,name:ee,tooltipPayload:Se,midAngle:be,middleRadius:_e,tooltipPosition:Pe},ce),te),{},{value:B,dataKey:l,startAngle:ae,endAngle:me,payload:ce,paddingAngle:Ut(h)*g}),A})}return P}function F6(e){var{showLabels:t,sectors:r,children:n}=e,i=(0,p.useMemo)(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return p.createElement(d6,{value:t?i:void 0},n)}function $6(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:u,activeShape:l,inactiveShape:c,onAnimationStart:f,onAnimationEnd:d}=t,h=sd(t,"recharts-pie-"),v=r.current,[g,m]=(0,p.useState)(!1),b=(0,p.useCallback)(()=>{typeof d=="function"&&d(),m(!1)},[d]),_=(0,p.useCallback)(()=>{typeof f=="function"&&f(),m(!0)},[f]);return p.createElement(F6,{showLabels:!g,sectors:i},p.createElement(od,{animationId:h,begin:o,duration:s,isActive:a,easing:u,onAnimationStart:_,onAnimationEnd:b,key:h},S=>{var P,A=[],O=i&&i[0],j=(P=O?.startAngle)!==null&&P!==void 0?P:0;return i?.forEach((B,ee)=>{var te=v&&v[ee],G=ee>0?ta()(B,"paddingAngle",0):0;if(te){var ae=cr(te.endAngle-te.startAngle,B.endAngle-B.startAngle,S),ce=Je(Je({},B),{},{startAngle:j+G,endAngle:j+ae+G});A.push(ce),j=ce.endAngle}else{var{endAngle:ve,startAngle:me}=B,be=cr(0,ve-me,S),_e=Je(Je({},B),{},{startAngle:j+G,endAngle:j+be+G});A.push(_e),j=_e.endAngle}}),r.current=A,p.createElement(Jr,null,p.createElement(N6,{sectors:A,activeShape:l,inactiveShape:c,allOtherPieProps:t,shape:t.shape,id:n}))}),p.createElement(k6,{showLabels:!g,sectors:i,props:t}),t.children)}var B6={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:Wr.area};function V6(e){var{id:t}=e,r=bu(e,b6),{hide:n,className:i,rootTabIndex:a}=e,o=(0,p.useMemo)(()=>i1(e.children,ou),[e.children]),s=Ye(c=>s5(c,t,o)),u=(0,p.useRef)(null),l=E("recharts-pie",i);return n||s==null?(u.current=null,p.createElement(Jr,{tabIndex:a,className:l})):p.createElement(vu,{zIndex:e.zIndex},p.createElement(A6,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),p.createElement(Jr,{tabIndex:a,className:l},p.createElement($6,{props:Je(Je({},r),{},{sectors:s}),previousSectorsRef:u,id:t})))}function z6(e){var t=Qr(e,B6),{id:r}=t,n=bu(t,w6),i=Ai(n);return p.createElement(U3,{id:r,type:"pie"},a=>p.createElement(p.Fragment,null,p.createElement(H3,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),p.createElement(C6,wn({},n,{id:a})),p.createElement(V6,wn({},n,{id:a}))))}var hd=z6;hd.displayName="Pie";const _w=Math.PI/180,U6=({cx:e,cy:t,midAngle:r,innerRadius:n,outerRadius:i,percent:a,payload:o,index:s})=>{const u=n+(i-n)*.6,l=e+u*Math.cos(-(r??0)*_w);let c=t+u*Math.sin(-(r??0)*_w);const f=(parseFloat(String(a??1))*100).toFixed(2);if(f==="0.00")return null;const d=parseFloat(f);let h=c;if(d<5){const v=d<1?25:15,g=r??0;h+=(s%2===0?1:-1)*(g>180?v:-v)}return(0,w.jsx)("text",{x:l,y:h,fill:"white",fontSize:"11px",textAnchor:"middle",dominantBaseline:"central",children:`${f}% ${o.name}`})},Sw=({isAnimationActive:e=!0,data:t={hits:0,misses:0}})=>{const[r,n]=(0,p.useState)(!1),i=300,a=[{name:"Hits",value:t.hits,color:"#0088FE"},{name:"Misses",value:t.misses,color:"#FF8042"}],o=a.reduce((s,u)=>s+u.value,0);return(0,p.useEffect)(()=>{setTimeout(function(){n(!0)},i*5)},[]),(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(Y4,{style:{width:"100%",minWidth:"200px",maxWidth:"320px",maxHeight:"80vh",aspectRatio:1},children:[o>0?(0,w.jsx)(hd,{data:a,labelLine:!1,label:U6,dataKey:"value",isAnimationActive:e&&!r,animationDuration:i,children:a.map((s,u)=>(0,w.jsx)(ou,{fill:s.color},`cell-${s.name}`))}):"",o===0&&(0,w.jsx)(hd,{animationDuration:300,data:[{name:"No searches",value:1}],fill:"#eeeeee"})]})})},W6=({refreshRate:e=5})=>{const{data:t,isLoading:r,error:n}=fO(e);return n?"There was an error.":(0,w.jsxs)("div",{className:"wdo:m-4 wdo:dark:text-wp-admin-100",children:[(0,w.jsxs)("div",{className:"wdo:flex wdo:flex-wrap wdo:xl:flex-nowrap wdo:gap-4",children:[(0,w.jsx)("div",{className:"wdo:p-4 wdo:grow wdo:card",children:(0,w.jsxs)("div",{className:"wdo:flex wdo:md:flex-nowrap wdo:gap-4",children:[(0,w.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:grow",children:[(0,w.jsx)("div",{children:(0,L.__)("Cache hits last 24 hours","ajax-search-pro")}),(0,w.jsxs)("div",{children:[(0,w.jsx)(Po,{className:"wdo:text-[2em] wdo:2xl:text-[3em]",value:t?.last_24_hours.hits??0}),(0,w.jsx)("div",{children:(0,L.__)("of","ajax-search-pro")}),(0,w.jsx)(Po,{className:"wdo:text-[2em] wdo:2xl:text-[3em]",value:(t?.last_24_hours.hits??0)+(t?.last_24_hours.misses??0)}),(0,w.jsx)("div",{children:(0,L.__)("total hits.","ajax-search-pro")})]})]}),(0,w.jsx)(Sw,{data:t?.last_24_hours,isAnimationActive:!0})]})}),(0,w.jsx)("div",{className:"wdo:p-4 wdo:grow wdo:card",children:(0,w.jsxs)("div",{className:"wdo:flex wdo:md:flex-nowrap wdo:gap-4",children:[(0,w.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:grow",children:[(0,w.jsx)("div",{children:(0,L.__)("Cache hits all time","ajax-search-pro")}),(0,w.jsx)(Po,{className:"wdo:text-[2em] wdo:2xl:text-[3em]",value:t?.all_time.hits??0}),(0,w.jsx)("div",{children:(0,L.__)("of","ajax-search-pro")}),(0,w.jsx)(Po,{className:"wdo:text-[2em] wdo:2xl:text-[3em]",value:(t?.all_time.hits??0)+(t?.all_time.misses??0)}),(0,w.jsx)("div",{children:(0,L.__)("total hits.","ajax-search-pro")})]}),(0,w.jsx)(Sw,{data:t?.all_time,isAnimationActive:!0})]})})]}),(0,w.jsx)("div",{className:"wdo:mt-8",children:(0,w.jsxs)("h2",{className:"wdo:text-[1.34em] wdo:dark:text-white",children:[(0,L.__)("Total items in cache:","ajax-search-pro"),"\xA0",t?.cached??0]})}),(0,w.jsxs)("div",{className:"wdo:mb-4 wdo:mt-8 wdo:overflow-auto",children:[(0,w.jsx)("h2",{className:"wdo:text-[1.34em] wdo:dark:text-white wdo:mb-2",children:(0,L.__)("Last 20 Cache Hits","ajax-search-pro")}),(0,w.jsxs)("table",{children:[(0,w.jsx)("thead",{children:(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:(0,L.__)("Phrase","ajax-search-pro")}),(0,w.jsx)("th",{children:(0,L.__)("Type","ajax-search-pro")}),(0,w.jsx)("th",{children:(0,L.__)("Date","ajax-search-pro")}),(0,w.jsx)("th",{children:(0,L.__)("Device","ajax-search-pro")}),(0,w.jsx)("th",{children:(0,L.__)("User","ajax-search-pro")}),(0,w.jsx)("th",{children:(0,L.__)("Referer","ajax-search-pro")}),(0,w.jsx)("th",{children:(0,L.__)("Search ID","ajax-search-pro")}),ASP_BACKEND.is_multisite&&(0,w.jsx)("th",{children:(0,L.__)("Blog ID","ajax-search-pro")}),ASP_BACKEND.is_multilang&&(0,w.jsx)("th",{children:(0,L.__)("Language","ajax-search-pro")}),(0,w.jsx)("th",{children:(0,L.__)("Page","ajax-search-pro")}),(0,w.jsx)("th",{children:(0,L.__)("Results Displayed","ajax-search-pro")}),(0,w.jsx)("th",{children:(0,L.__)("Results Found","ajax-search-pro")})]})}),(0,w.jsxs)("tbody",{className:"wdo:relative",children:[r?(0,w.jsx)("tr",{style:{height:(t?.last_20_searches??[]).length===0?40:0,padding:0,margin:0},children:(0,w.jsx)("td",{style:{height:0,padding:0,margin:0},children:(0,w.jsx)(cO,{})})}):"",(t?.last_20_searches??[]).map((i,a)=>(0,w.jsxs)("tr",{children:[(0,w.jsx)("td",{children:i.phrase}),(0,w.jsx)("td",{children:i.type}),(0,w.jsx)("td",{children:i.date}),(0,w.jsx)("td",{children:i.device_type}),(0,w.jsx)("td",{children:(i.user_id??0)>0?(0,w.jsx)("a",{target:"_blank",href:ASP_BACKEND.admin_url+"/user-edit.php?user_id="+i.user_id,children:i.user_name}):(0,w.jsx)("i",{children:"Guest"})}),(0,w.jsx)("td",{children:(0,w.jsx)("a",{target:"_blank",href:ASP_BACKEND.home_url.replace(/\/$/g,"")+"/"+(i.referer??""),children:i.referer??"Home"})}),(0,w.jsx)("td",{children:(0,w.jsx)(_h,{id:i.asp_id??0,asUrl:!0})}),ASP_BACKEND.is_multisite&&(0,w.jsx)("td",{children:i.blog_id}),ASP_BACKEND.is_multilang&&(0,w.jsx)("td",{children:i.lang}),(0,w.jsx)("td",{children:i.page}),(0,w.jsx)("td",{children:i.results_count}),(0,w.jsx)("td",{children:i.found_results})]},a))]})]})]})]})};var H6=()=>{const{data:e,isLoading:t,error:r}=Fd(),{data:n,isLoading:i,error:a}=lh();return(0,w.jsxs)("div",{children:[!t&&!r&&!e?.status.value?(0,w.jsxs)(Wn,{className:"wdo:m-4",children:[(0,L.__)("Statistics are not recorded! This feature requires search statistics to be enabled!","ajax-search-pro"),"\xA0",(0,w.jsx)("a",{className:"wdo:text-asp",target:"_blank",href:ASP_BACKEND.home_url+"wp-admin/admin.php?page=asp_statistics#settings",children:(0,L.__)("Click here","ajax-search-pro")})," ",(0,L.__)("to enable.","ajax-search-pro")]}):"",!i&&!a&&!n?.status.value?(0,w.jsxs)(Wn,{className:"wdo:m-4",children:[(0,L.__)("Cache is turned off! ","ajax-search-pro"),"\xA0",(0,w.jsx)("a",{className:"wdo:text-asp",href:"#settings",children:(0,L.__)("Click here","ajax-search-pro")})," ",(0,L.__)("to enable.","ajax-search-pro")]}):""]})};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K6=Ve("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y6=Ve("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);var z$=De(8623);const U$=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ew=e=>{let t=!1;return typeof window.$<"u"&&(typeof e>"u"||typeof window.$.fn[e]<"u")&&(t=window.$),t===!1&&typeof window.jQuery<"u"&&(t=window.jQuery,(typeof e>"u"||typeof window.jQuery.fn[e]<"u")&&(t=window.jQuery)),t},W$=function(e,t){let r=e.find("input,textarea,select,button").get();if(arguments.length===1){const n={};return r.forEach(function(i){i.name&&!i.disabled&&(i.checked||/select|textarea/i.test(i.nodeName)||/text/i.test(i.type)||$(i).hasClass("hasDatepicker")||$(i).hasClass("asp_slider_hidden"))&&(n[i.name]===void 0&&(n[i.name]=[]),$(i).hasClass("hasDatepicker")?n[i.name].push($(i).parent().find(".asp_datepicker_hidden").val()):n[i.name].push($(i).val()))}),JSON.stringify(n)}else if(t!==void 0){const n=typeof t!="object"?JSON.parse(t):t;return r.forEach(function(i){if(i.name)if(n[i.name]){let a=n[i.name],o=$(i);if(Object.prototype.toString.call(a)!=="[object Array]"&&(a=[a]),i.type==="checkbox"||i.type==="radio"){let s=o.val(),u=!1;for(let l=0;l<a.length;l++)if(a[l]===s){u=!0;break}o.prop("checked",u)}else o.val(a[0]),$(i).hasClass("asp_gochosen")||$(i).hasClass("asp_goselect2")?intervalUntilExecute(function(s){s(i).trigger("change.asp_select2")},function(){return Ew("asp_select2")},50,3):$(i).hasClass("hasDatepicker")&&intervalUntilExecute(function(s){const u=o.get(0);if(u===void 0)return;let l=a[0],c=s(u).datepicker("option","dateFormat");s(u).datepicker("option","dateFormat","yy-mm-dd"),s(u).datepicker("setDate",l),s(u).datepicker("option","dateFormat",c),s(u).trigger("selectnochange")},function(){return Ew("datepicker")},50,3)}else(i.type==="checkbox"||i.type==="radio")&&$(i).prop("checked",!1)}),e}},H$=function(e,t,r,n="self"){let i;i=$('<form style="display: none;" />'),i.attr("action",e),i.attr("method",t),$("body").append(i),typeof r<"u"&&r!==null&&Object.keys(r).forEach(function(a){let o=r[a],s=$('<input type="hidden" />');s.attr("name",a),s.attr("value",o),i.append(s)}),n=="new"&&i.attr("target","_blank"),i.get(0).submit()},q6=function(e){Object.assign(document.createElement("a"),{target:"_blank",href:e}).click()},K$=function(e,t=0){for(const r of e)if(G6(r))return window.scrollTo({top:r.getBoundingClientRect().top-120+window.pageYOffset+t,behavior:"smooth"}),!0;return!1},G6=function(e){if(typeof e.checkVisibility>"u")return!0;let t=e,r=!0;for(;t!==null;){if(!t.checkVisibility({opacityProperty:!0,visibilityProperty:!0,contentVisibilityAuto:!0})){r=!1;break}t=t.parentElement}return r};var X6=()=>(0,w.jsx)("svg",{width:"200",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 176.64 26.62",children:(0,w.jsxs)("g",{children:[(0,w.jsx)("path",{className:"wdo:fill-black wdo:dark:fill-white",d:"m13.59 20.4-1.32-2.93H5.78L4.46 20.4H.6L8.75 3.6h.55l8.15 16.8h-3.86Zm-6.5-5.81h3.84l-1.92-4.25-1.92 4.25Z"}),(0,w.jsx)("path",{className:"wdo:fill-black wdo:dark:fill-white",d:"M22.03 7.92V21.6c0 1.23-.34 2.16-1.01 2.78-.67.62-1.6.94-2.78.94-.66 0-1.53-.19-2.64-.58v-3.43c.19.05.41.11.66.18.25.07.44.13.58.17.14.04.29.08.46.11.17.03.32.05.47.05.56 0 .84-.45.84-1.34V7.92h3.43Zm0-4.32v3.05H18.6V3.6h3.43ZM29.63 7.78c.89 0 1.65.19 2.27.56.62.38.93.72.95 1.04V7.92h3.43V20.4h-3.43v-1.66c-.02.32-.34.7-.96 1.15-.62.45-1.38.67-2.25.67-.67 0-1.34-.13-2.01-.4s-1.29-.65-1.87-1.15c-.58-.5-1.04-1.18-1.4-2.03-.36-.85-.54-1.8-.54-2.86 0-1.97.6-3.52 1.81-4.66 1.21-1.14 2.54-1.7 4.02-1.7Zm2.56 3.76c-.53-.55-1.19-.83-1.99-.83s-1.49.31-2.09.94c-.59.62-.89 1.46-.89 2.5s.3 1.92.89 2.54c.59.62 1.29.94 2.09.94s1.46-.28 1.99-.85.79-1.44.79-2.63-.26-2.05-.79-2.6ZM46.7 20.4l-2.85-4.06L41 20.4h-3.86l4.79-6.41-4.31-6.07h3.76l2.47 3.72 2.47-3.72h3.76l-4.31 6.07 4.79 6.41H46.7ZM61.63 3.43c1.34 0 2.49.32 3.45.96.96.64 1.68 1.42 2.16 2.33l-3.09 1.06c-.42-.86-1.21-1.3-2.37-1.3-.58 0-1.06.13-1.45.38-.39.26-.59.58-.59.98s.14.78.42 1.09.81.6 1.59.85l.65.22c1.87.64 3.22 1.42 4.04 2.35.82.93 1.23 2.01 1.23 3.24 0 1.09-.34 2.02-1.01 2.81-.67.78-1.45 1.34-2.35 1.67-.9.33-1.81.49-2.76.49-1.53 0-2.85-.35-3.94-1.06-1.09-.7-1.87-1.66-2.31-2.88l2.9-1.3c.24.62.66 1.14 1.27 1.56s1.3.62 2.09.62c.67 0 1.27-.16 1.79-.48.52-.32.78-.8.78-1.44s-.19-1.08-.56-1.4c-.38-.33-1.08-.68-2.12-1.04l-.62-.24c-1.47-.51-2.61-1.16-3.4-1.96-.8-.79-1.2-1.83-1.2-3.11s.54-2.34 1.61-3.17c1.07-.83 2.34-1.25 3.81-1.25ZM74.84 7.78c.69 0 1.39.14 2.1.41s1.38.66 2.01 1.16c.63.5 1.14 1.18 1.53 2.03.39.85.59 1.79.59 2.83 0 .46-.03.88-.1 1.25h-8.92c.19.66.56 1.18 1.11 1.57.55.39 1.14.59 1.76.59.97 0 1.7-.26 2.18-.77l2.83 1.44c-1.33 1.52-3 2.28-5.03 2.28-.67 0-1.37-.13-2.09-.4s-1.41-.64-2.06-1.14c-.66-.5-1.19-1.16-1.61-2s-.62-1.78-.62-2.82.2-1.98.6-2.83.91-1.52 1.55-2.03c.63-.5 1.31-.89 2.03-1.16s1.43-.41 2.13-.41Zm0 2.98c-.62 0-1.19.18-1.69.55-.5.37-.85.89-1.04 1.56h5.49c-.18-.67-.53-1.19-1.06-1.56-.53-.37-1.09-.55-1.7-.55ZM88.1 7.78c.89 0 1.65.19 2.27.56.62.38.93.72.95 1.04V7.92h3.43V20.4h-3.43v-1.66c-.02.32-.34.7-.96 1.15-.62.45-1.38.67-2.25.67-.67 0-1.34-.13-2.01-.4s-1.29-.65-1.87-1.15c-.58-.5-1.04-1.18-1.4-2.03-.36-.85-.54-1.8-.54-2.86 0-1.97.6-3.52 1.81-4.66 1.21-1.14 2.54-1.7 4.02-1.7Zm2.56 3.76c-.53-.55-1.19-.83-1.99-.83s-1.49.31-2.09.94c-.59.62-.89 1.46-.89 2.5s.3 1.92.89 2.54c.59.62 1.29.94 2.09.94s1.46-.28 1.99-.85.79-1.44.79-2.63-.26-2.05-.79-2.6ZM103.94 7.8c.53 0 .92.03 1.17.1v3.19c-.27-.05-.67-.07-1.2-.07-1.07 0-1.98.37-2.72 1.1s-1.17 1.7-1.28 2.88v5.4h-3.4V7.92h3.4v4.01c.14-1.25.54-2.25 1.2-3 .66-.75 1.6-1.13 2.83-1.13ZM112.14 7.78c.96 0 1.92.24 2.88.71s1.74 1.18 2.35 2.12l-3.04 1.1c-.48-.67-1.21-1.01-2.18-1.01-.78 0-1.46.32-2.04.95-.58.63-.86 1.48-.86 2.56s.29 1.85.86 2.47c.58.62 1.25.94 2.04.94.99 0 1.72-.33 2.18-.98l3.07 1.1c-.62.94-1.41 1.65-2.37 2.12-.96.47-1.92.71-2.88.71-.67 0-1.36-.13-2.07-.4-.71-.26-1.39-.64-2.04-1.14-.65-.5-1.18-1.16-1.59-2s-.62-1.78-.62-2.82.21-2.01.62-2.87c.42-.86.95-1.53 1.59-2.03s1.33-.88 2.04-1.14c.71-.26 1.4-.4 2.07-.4ZM126.16 7.8c1.29 0 2.4.45 3.31 1.34.91.9 1.37 2.26 1.37 4.08v7.18h-3.43v-6.96c0-1.81-.67-2.71-2.01-2.71-.64 0-1.22.2-1.75.61s-.9.8-1.13 1.19c-.22.38-.36.69-.41.91v6.96h-3.43V3.6h3.43v6.67c.06-.48.47-1.01 1.22-1.6.75-.58 1.69-.88 2.83-.88ZM142.75 3.6c1.93 0 3.45.5 4.55 1.5 1.1 1 1.65 2.28 1.65 3.83s-.56 2.83-1.67 3.84c-1.11 1.01-2.62 1.51-4.54 1.51h-2.33v6.12h-3.52V3.6h5.85Zm-.1 7.54c.86 0 1.54-.19 2.04-.56.5-.38.74-.92.74-1.64s-.25-1.27-.74-1.64c-.5-.38-1.17-.56-2.04-.56h-2.23v4.42h2.23ZM158.05 7.8c.53 0 .92.03 1.17.1v3.19c-.27-.05-.67-.07-1.2-.07-1.07 0-1.98.37-2.72 1.1s-1.17 1.7-1.28 2.88v5.4h-3.4V7.92h3.4v4.01c.14-1.25.54-2.25 1.2-3 .66-.75 1.6-1.13 2.83-1.13ZM163.71 8.18c.73-.27 1.43-.41 2.1-.41s1.37.14 2.09.41 1.4.66 2.05 1.16c.65.5 1.18 1.18 1.59 2.03.42.85.62 1.79.62 2.83s-.21 1.98-.62 2.82c-.42.84-.95 1.51-1.59 2-.65.5-1.33.88-2.05 1.14s-1.41.4-2.09.4-1.37-.13-2.09-.4-1.41-.64-2.06-1.14c-.66-.5-1.19-1.16-1.61-2s-.62-1.78-.62-2.82.21-1.98.62-2.83.95-1.52 1.59-2.03c.65-.5 1.33-.89 2.06-1.16Zm2.1 2.52c-.78 0-1.47.31-2.06.94-.59.62-.89 1.48-.89 2.57s.3 1.89.89 2.5c.59.61 1.28.91 2.06.91s1.45-.3 2.04-.91.89-1.44.89-2.5-.3-1.94-.89-2.57c-.59-.62-1.27-.94-2.04-.94Z"}),(0,w.jsx)("path",{className:"wdo:fill-black wdo:dark:fill-white",d:"m174.49 24.75-6.88-7.26 1.29-1.39 7.74 6.34-2.15 2.31z"})]})});const Z6=()=>{const e=(0,p.useContext)(Ka),{data:t,isLoading:r,error:n}=Fd();return e?.activeId==="realtime"||!e?.activeId?(0,w.jsxs)("div",{children:[(0,w.jsx)(H6,{}),(0,w.jsx)(W6,{refreshRate:r?5:t?.realtime_refresh_rate.value})]}):e?.activeId==="settings"?(0,w.jsx)($C,{}):""};var Q6=()=>{const{messages:e}=fe();return(0,w.jsxs)(Mw,{children:[(0,w.jsx)(Ii,{messages:e}),(0,w.jsx)(M,{}),(0,w.jsx)(Dw,{subtitle:"Cache",logo:(0,w.jsx)(X6,{}),className:"wdo:items-center!"}),(0,w.jsx)(Lw,{children:(0,w.jsxs)("div",{className:"wdo:panel-container",children:[(0,w.jsx)("nav",{className:"wdo:menu-panel",children:(0,w.jsxs)(Fw,{className:"hello",children:[(0,w.jsx)(Su,{label:(0,L.__)("Cache Statistics","ajax-search-pro"),id:"realtime",defaultActive:!0}),(0,w.jsx)(Su,{label:(0,L.__)("Settings","ajax-search-pro"),id:"settings",iconBefore:(0,w.jsx)(K6,{})}),(0,w.jsx)(Su,{label:(0,L.__)("Documentation","ajax-search-pro"),id:"documentation",onClick:t=>{t.preventDefault(),q6("https://documentation.ajaxsearchpro.com/performance-tuning/cache")},iconAfter:(0,w.jsx)(Y6,{})})]})}),(0,w.jsx)("div",{className:"wdo:content-panel",children:(0,w.jsx)(Z6,{})})]})})]})};const Cw=document.getElementById("asp-root");Cw!==null&&K().render((0,w.jsx)(Q6,{}),Cw)})()})();
