react-luminus-components 1.3.230 → 1.3.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +34 -34
- package/dist/{Loading-fWpRhgnS.cjs → Loading-BsxB9HiJ.cjs} +1 -1
- package/dist/{Loading-BoCQC7SU.js → Loading-Dq6L6VF_.js} +1 -1
- package/dist/{ShortcutLinksContext-BK-LAMmI.cjs → ShortcutLinksContext-BioSMoh3.cjs} +1 -1
- package/dist/{ShortcutLinksContext-VwgvUlRx.js → ShortcutLinksContext-DBXwC8rm.js} +744 -744
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +4 -4
- package/dist/{useGetApiData-B8nOgQqn.js → useGetApiData-BcsKzdKy.js} +1 -1
- package/dist/{useGetApiData-B7vF0Kc7.cjs → useGetApiData-DkfcIgHL.cjs} +1 -1
- package/dist/{usePermissions-BBxDt93r.js → usePermissions-ClB7avYQ.js} +1 -1
- package/dist/{usePermissions-a_hFqfvK.cjs → usePermissions-LFrw906r.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +1 -1
|
@@ -250,7 +250,7 @@ to {
|
|
|
250
250
|
*
|
|
251
251
|
* This source code is licensed under the MIT license found in the
|
|
252
252
|
* LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/var Eg;function F5(){return Eg||(Eg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===v||k.$$typeof===p||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===b||k.$$typeof===x||k.$$typeof===_||k.$$typeof===m)}function T(k){if(typeof k=="object"&&k!==null){var pe=k.$$typeof;switch(pe){case t:var me=k.type;switch(me){case c:case u:case r:case i:case a:case d:return me;default:var de=me&&me.$$typeof;switch(de){case s:case l:case v:case p:case o:return de;default:return pe}}case n:return pe}}}var w=c,C=u,S=s,M=o,D=t,R=l,A=r,N=v,E=p,j=n,P=i,F=a,B=d,L=!1;function W(k){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(k)||T(k)===c}function I(k){return T(k)===u}function U(k){return T(k)===s}function Y(k){return T(k)===o}function te(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function G(k){return T(k)===l}function J(k){return T(k)===r}function Z(k){return T(k)===v}function X(k){return T(k)===p}function re(k){return T(k)===n}function z(k){return T(k)===i}function V(k){return T(k)===a}function oe(k){return T(k)===d}Qe.AsyncMode=w,Qe.ConcurrentMode=C,Qe.ContextConsumer=S,Qe.ContextProvider=M,Qe.Element=D,Qe.ForwardRef=R,Qe.Fragment=A,Qe.Lazy=N,Qe.Memo=E,Qe.Portal=j,Qe.Profiler=P,Qe.StrictMode=F,Qe.Suspense=B,Qe.isAsyncMode=W,Qe.isConcurrentMode=I,Qe.isContextConsumer=U,Qe.isContextProvider=Y,Qe.isElement=te,Qe.isForwardRef=G,Qe.isFragment=J,Qe.isLazy=Z,Qe.isMemo=X,Qe.isPortal=re,Qe.isProfiler=z,Qe.isStrictMode=V,Qe.isSuspense=oe,Qe.isValidElementType=y,Qe.typeOf=T}()),Qe}var $g;function L5(){return $g||($g=1,process.env.NODE_ENV==="production"?$s.exports=N5():$s.exports=F5()),$s.exports}var nd,Mg;function U5(){if(Mg)return nd;Mg=1;var e=L5(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function o(v){return e.isMemo(v)?a:i[v.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(v,m,b){if(typeof m!="string"){if(f){var x=d(m);x&&x!==f&&p(v,x,b)}var _=c(m);u&&(_=_.concat(u(m)));for(var y=o(v),T=o(m),w=0;w<_.length;++w){var C=_[w];if(!n[C]&&!(b&&b[C])&&!(T&&T[C])&&!(y&&y[C])){var S=l(m,C);try{s(v,C,S)}catch{}}}}return v}return nd=p,nd}U5();function B5(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Nh(e,t){const n=h.useContext(I5);if(!n)throw new Error("Missing <CookiesProvider>");const a=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,o]=h.useState(()=>n.getAll(a));B5()&&h.useLayoutEffect(()=>{function l(){const d=n.getAll(a);W5(e||null,d,i)&&o(d)}return n.addChangeListener(l),()=>{n.removeChangeListener(l)}},[n,i]);const s=h.useMemo(()=>n.set.bind(n),[n]),c=h.useMemo(()=>n.remove.bind(n),[n]),u=h.useMemo(()=>n.update.bind(n),[n]);return[i,s,c,u]}function W5(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const z5=()=>{const{axiosOptions:e,cookieDomain:t}=h.useContext(Tt),[,n,r]=Nh(["Authorization"]),a=gt.create(e),i=h.useCallback(()=>{const u=localStorage.getItem("token");return u?{token:u,expiresOn:kb(new Date(Date.now()),1)}:null},[]),o=h.useCallback(()=>{const u=i();return u!==null&&u.token.length>0},[i]),s=h.useCallback(async(u,l)=>a.post("/user/login",{kid:u,password:l}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:_b(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[a,n,t]),c=h.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:s,logout:c,getToken:i}},H5=()=>{const[,,e]=Nh(["Authorization"]),{msalScopes:t,msalExtraScopes:n}=h.useContext(Bh),{instance:r,inProgress:a}=wm.useMsal(),i=wm.useIsAuthenticated(),o=h.useCallback(async()=>{var p;const d=r.getActiveAccount(),f=d??((p=r.getAllAccounts())==null?void 0:p.at(0))??void 0;return f?(d||r.setActiveAccount(f),r.acquireTokenSilent({scopes:t,account:f}).then(v=>({token:v.accessToken,expiresOn:v.expiresOn??new Date(Date.now())})).catch(v=>{if(console.error("Error acquiring token",v),v instanceof xm.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),r.acquireTokenRedirect({scopes:t,extraScopesToConsent:n}),null;throw v})):null},[r,t,n]),s=h.useCallback(()=>i,[i]),c=h.useCallback(()=>!s()&&a!==xm.InteractionStatus.None,[s,a]),u=h.useCallback(async()=>r.loginRedirect({scopes:t,extraScopesToConsent:n}).then(()=>"").catch(()=>null),[r,t,n]),l=h.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:s,isAuthenticating:c,login:u,logout:l,getToken:o}},J1=()=>{const{useMsal:e}=h.useContext(Bh),t=z5(),n=H5();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,getToken:e?n.getToken:t.getToken,login:e?n.login:t.login,logout:e?n.logout:t.logout}},V5="_toast_1s57i_1",Ui={toast:V5},q5=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},bu=()=>({addNotification:h.useCallback((t,n)=>{const r=w1(t),a=q5(n),i=g.jsxs(g.Fragment,{children:[r,g.jsx(c1,{onClick:()=>Ia.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(RS,{size:12}),className:K("luminus-toast-success rounded shadow bg-success",Ui.toast)});break}case"danger":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(xS,{size:12}),className:K("luminus-toast-danger rounded shadow bg-danger",Ui.toast)});break}case"warning":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(gS,{size:12}),className:K("luminus-toast-warning rounded shadow bg-warning",Ui.toast)});break}case"info":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(bS,{size:12}),className:K("luminus-toast-info rounded shadow bg-info",Ui.toast)});break}case"prompt":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(yS,{size:12}),className:K("luminus-toast-prompt rounded shadow bg-light",Ui.toast)});break}}},[])}),Y5=gt.CancelToken,yu=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:a,ignoreDelegation:i,noToastOnStatus:o}={...e},{language:s,axiosOptions:c,texts:{axios:u}}=h.useContext(Tt),{delegation:l}=h.useContext(hx),d=h.useMemo(()=>(l==null?void 0:l.id)??null,[l==null?void 0:l.id]),{addNotification:f}=bu(),{getToken:p}=J1(),v=h.useMemo(()=>gt.create(c),[c]),m=h.useCallback(async x=>{var _,y,T;if(t&&!x.headers.Authorization){const w=a?{token:a,expiresOn:_b(new Date(Date.now()),1)}:await p();if(!w)return Promise.reject(new Error("No bearer token"));if(IT(w.expiresOn))return Promise.reject(new Error("Token expired"));x.headers.Authorization=`Bearer ${w.token}`}return d!==null&&!i&&(x.headers.DelegationId=d.toString()),(_=x.url)!=null&&_.includes("culture=")?x.url=(y=x.url)==null?void 0:y.replace(/culture=[a-z]{2}/,`culture=${s}`):x.url=`${x.url}${(T=x.url)!=null&&T.includes("?")?"&":"?"}culture=${s}`,x},[t,p,s,a,d,i]),b=h.useCallback(x=>{var T,w;if(console.log(x),gt.isCancel(x))return Promise.reject(x);const _=$h(x);if(_.length>0){const C=_.find(S=>S.name.toLowerCase()==="others");return C?(!r&&f(C.errors,"danger"),Promise.reject(x)):(!r&&f(u.validationError,"warning"),Promise.reject(x))}const y=y1(x);return y!==null?(!r&&f(`${u.permissionError}: ${vo(", ",...y)}`,"danger"),Promise.reject(x)):(o??[]).includes((T=x.response)==null?void 0:T.status)?Promise.reject(x):((w=x.response)==null?void 0:w.status)===403?(!r&&f(u.forbiddenError,"danger"),Promise.reject(x)):x.message&&x.message==="Network Error"?(!r&&f(u.networkError,"danger"),Promise.reject(x)):(gt.isCancel(x)||!r&&f(u.unexpectedError,"danger"),Promise.reject(x))},[f,u.forbiddenError,u.networkError,u.permissionError,u.unexpectedError,u.validationError,r,o]);return h.useEffect(()=>{n&&(v.defaults.baseURL=n),v.interceptors.request.clear(),v.interceptors.response.clear();const x=v.interceptors.request.use(m,y=>Promise.reject(y)),_=v.interceptors.response.use(y=>y,b);return()=>{v.interceptors.request.eject(x),v.interceptors.response.eject(_)}},[v.defaults,v.interceptors.request,v.interceptors.response,n,m,b]),v};let rd;const Fh=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r}=h.useContext(l1),a=()=>{r()};return{confirm:async c=>(n(c),new Promise(u=>{rd=u})),onConfirm:()=>{a(),rd(!0)},onCancel:()=>{a(),rd(!1)},show:e,text:t}};var ze;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(ze||(ze={}));var cf;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(cf||(cf={}));const le=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Er=e=>{switch(typeof e){case"undefined":return le.undefined;case"string":return le.string;case"number":return isNaN(e)?le.nan:le.number;case"boolean":return le.boolean;case"function":return le.function;case"bigint":return le.bigint;case"symbol":return le.symbol;case"object":return Array.isArray(e)?le.array:e===null?le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?le.promise:typeof Map<"u"&&e instanceof Map?le.map:typeof Set<"u"&&e instanceof Set?le.set:typeof Date<"u"&&e instanceof Date?le.date:le.object;default:return le.unknown}},ie=ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),G5=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class wn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(o))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}};return a(this),r}static assert(t){if(!(t instanceof wn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}wn.create=e=>new wn(e);const si=(e,t)=>{let n;switch(e.code){case ie.invalid_type:e.received===le.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ie.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ze.jsonStringifyReplacer)}`;break;case ie.unrecognized_keys:n=`Unrecognized key(s) in object: ${ze.joinValues(e.keys,", ")}`;break;case ie.invalid_union:n="Invalid input";break;case ie.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ze.joinValues(e.options)}`;break;case ie.invalid_enum_value:n=`Invalid enum value. Expected ${ze.joinValues(e.options)}, received '${e.received}'`;break;case ie.invalid_arguments:n="Invalid function arguments";break;case ie.invalid_return_type:n="Invalid function return type";break;case ie.invalid_date:n="Invalid date";break;case ie.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ze.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ie.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ie.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ie.custom:n="Invalid input";break;case ie.invalid_intersection_types:n="Intersection results could not be merged";break;case ie.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ie.not_finite:n="Number must be finite";break;default:n=t.defaultError,ze.assertNever(e)}return{message:n}};let ex=si;function Z5(e){ex=e}function xc(){return ex}const wc=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let s="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)s=u(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},K5=[];function ce(e,t){const n=xc(),r=wc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===si?void 0:si].filter(a=>!!a)});e.common.issues.push(r)}class Yt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return Te;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Yt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return Te;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const Te=Object.freeze({status:"aborted"}),za=e=>({status:"dirty",value:e}),en=e=>({status:"valid",value:e}),uf=e=>e.status==="aborted",lf=e=>e.status==="dirty",yo=e=>e.status==="valid",xo=e=>typeof Promise<"u"&&e instanceof Promise;function _c(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function tx(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ve;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ve||(ve={}));var Ji,eo;class Xn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Rg=(e,t)=>{if(yo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new wn(e.common.issues);return this._error=n,this._error}}};function je(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,s)=>{var c,u;const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:(c=l??r)!==null&&c!==void 0?c:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(u=l??n)!==null&&u!==void 0?u:s.defaultError}},description:a}}class Ie{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Er(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Er(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Yt,ctx:{common:t.parent.common,data:t.data,parsedType:Er(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(xo(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Er(t)},i=this._parseSync({data:t,path:a.path,parent:a});return Rg(a,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Er(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(xo(a)?a:Promise.resolve(a));return Rg(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),s=()=>i.addIssue({code:ie.custom,...r(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Un({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Zn.create(this,this._def)}nullable(){return Lr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nn.create(this,this._def)}promise(){return ui.create(this,this._def)}or(t){return Co.create([this,t],this._def)}and(t){return ko.create(this,t,this._def)}transform(t){return new Un({...je(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Mo({...je(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new Lh({typeName:_e.ZodBranded,type:this,...je(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ro({...je(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ss.create(this,t)}readonly(){return Ao.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const X5=/^c[^\s-]{8,}$/i,Q5=/^[0-9a-z]+$/,J5=/^[0-9A-HJKMNP-TV-Z]{26}$/,eE=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,tE=/^[a-z0-9_-]{21}$/i,nE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,rE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,aE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ad;const iE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,oE=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,sE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,nx="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",cE=new RegExp(`^${nx}$`);function rx(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function uE(e){return new RegExp(`^${rx(e)}$`)}function ax(e){let t=`${nx}T${rx(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function lE(e,t){return!!((t==="v4"||!t)&&iE.test(e)||(t==="v6"||!t)&&oE.test(e))}class Dn extends Ie{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==le.string){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_type,expected:le.string,received:i.parsedType}),Te}const r=new Yt;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,s=t.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(t,a),o?ce(a,{code:ie.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&ce(a,{code:ie.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")rE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"email",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")ad||(ad=new RegExp(aE,"u")),ad.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"emoji",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")eE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"uuid",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")tE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"nanoid",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")X5.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")Q5.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid2",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")J5.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ulid",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ce(a,{validation:"url",code:ie.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"regex",code:ie.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?ax(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?cE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?uE(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?nE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"duration",code:ie.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?lE(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ip",code:ie.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?sE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"base64",code:ie.invalid_string,message:i.message}),r.dirty()):ze.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:ie.invalid_string,...ve.errToObj(r)})}_addCheck(t){return new Dn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ve.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ve.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ve.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ve.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ve.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ve.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ve.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ve.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ve.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ve.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ve.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ve.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ve.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ve.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ve.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ve.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ve.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ve.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ve.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ve.errToObj(n)})}nonempty(t){return this.min(1,ve.errToObj(t))}trim(){return new Dn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Dn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Dn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Dn.create=e=>{var t;return new Dn({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...je(e)})};function dE(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class Ir extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==le.number){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_type,expected:le.number,received:i.parsedType}),Te}let r;const a=new Yt;for(const i of this._def.checks)i.kind==="int"?ze.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?dE(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.not_finite,message:i.message}),a.dirty()):ze.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ve.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ve.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ve.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ve.toString(n))}setLimit(t,n,r,a){return new Ir({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ve.toString(a)}]})}_addCheck(t){return new Ir({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ve.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ve.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ve.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ve.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ve.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ve.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ve.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ve.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ve.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ze.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ir.create=e=>new Ir({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...je(e)});class Nr extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==le.bigint){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_type,expected:le.bigint,received:i.parsedType}),Te}let r;const a=new Yt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):ze.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ve.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ve.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ve.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ve.toString(n))}setLimit(t,n,r,a){return new Nr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ve.toString(a)}]})}_addCheck(t){return new Nr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ve.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ve.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ve.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ve.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ve.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Nr.create=e=>{var t;return new Nr({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...je(e)})};class wo extends Ie{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==le.boolean){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.boolean,received:r.parsedType}),Te}return en(t.data)}}wo.create=e=>new wo({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...je(e)});class ma extends Ie{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==le.date){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_type,expected:le.date,received:i.parsedType}),Te}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_date}),Te}const r=new Yt;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ze.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ma({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ve.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ve.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ma.create=e=>new ma({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...je(e)});class Tc extends Ie{_parse(t){if(this._getType(t)!==le.symbol){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.symbol,received:r.parsedType}),Te}return en(t.data)}}Tc.create=e=>new Tc({typeName:_e.ZodSymbol,...je(e)});class _o extends Ie{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.undefined,received:r.parsedType}),Te}return en(t.data)}}_o.create=e=>new _o({typeName:_e.ZodUndefined,...je(e)});class To extends Ie{_parse(t){if(this._getType(t)!==le.null){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.null,received:r.parsedType}),Te}return en(t.data)}}To.create=e=>new To({typeName:_e.ZodNull,...je(e)});class ci extends Ie{constructor(){super(...arguments),this._any=!0}_parse(t){return en(t.data)}}ci.create=e=>new ci({typeName:_e.ZodAny,...je(e)});class ca extends Ie{constructor(){super(...arguments),this._unknown=!0}_parse(t){return en(t.data)}}ca.create=e=>new ca({typeName:_e.ZodUnknown,...je(e)});class gr extends Ie{_parse(t){const n=this._getOrReturnCtx(t);return ce(n,{code:ie.invalid_type,expected:le.never,received:n.parsedType}),Te}}gr.create=e=>new gr({typeName:_e.ZodNever,...je(e)});class Cc extends Ie{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.void,received:r.parsedType}),Te}return en(t.data)}}Cc.create=e=>new Cc({typeName:_e.ZodVoid,...je(e)});class Nn extends Ie{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==le.array)return ce(n,{code:ie.invalid_type,expected:le.array,received:n.parsedType}),Te;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,s=n.data.length<a.exactLength.value;(o||s)&&(ce(n,{code:o?ie.too_big:ie.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ce(n,{code:ie.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ce(n,{code:ie.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>a.type._parseAsync(new Xn(n,o,n.path,s)))).then(o=>Yt.mergeArray(r,o));const i=[...n.data].map((o,s)=>a.type._parseSync(new Xn(n,o,n.path,s)));return Yt.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Nn({...this._def,minLength:{value:t,message:ve.toString(n)}})}max(t,n){return new Nn({...this._def,maxLength:{value:t,message:ve.toString(n)}})}length(t,n){return new Nn({...this._def,exactLength:{value:t,message:ve.toString(n)}})}nonempty(t){return this.min(1,t)}}Nn.create=(e,t)=>new Nn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...je(t)});function Wa(e){if(e instanceof yt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Zn.create(Wa(r))}return new yt({...e._def,shape:()=>t})}else return e instanceof Nn?new Nn({...e._def,type:Wa(e.element)}):e instanceof Zn?Zn.create(Wa(e.unwrap())):e instanceof Lr?Lr.create(Wa(e.unwrap())):e instanceof Qn?Qn.create(e.items.map(t=>Wa(t))):e}class yt extends Ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ze.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==le.object){const u=this._getOrReturnCtx(t);return ce(u,{code:ie.invalid_type,expected:le.object,received:u.parsedType}),Te}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof gr&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||s.push(u);const c=[];for(const u of o){const l=i[u],d=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Xn(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof gr){const u=this._def.unknownKeys;if(u==="passthrough")for(const l of s)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")s.length>0&&(ce(a,{code:ie.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const l of s){const d=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Xn(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const l of c){const d=await l.key,f=await l.value;u.push({key:d,value:f,alwaysSet:l.alwaysSet})}return u}).then(u=>Yt.mergeObjectSync(r,u)):Yt.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return ve.errToObj,new yt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,o,s;const c=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=ve.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new yt({...this._def,unknownKeys:"strip"})}passthrough(){return new yt({...this._def,unknownKeys:"passthrough"})}extend(t){return new yt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new yt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new yt({...this._def,catchall:t})}pick(t){const n={};return ze.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new yt({...this._def,shape:()=>n})}omit(t){const n={};return ze.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new yt({...this._def,shape:()=>n})}deepPartial(){return Wa(this)}partial(t){const n={};return ze.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new yt({...this._def,shape:()=>n})}required(t){const n={};return ze.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Zn;)i=i._def.innerType;n[r]=i}}),new yt({...this._def,shape:()=>n})}keyof(){return ix(ze.objectKeys(this.shape))}}yt.create=(e,t)=>new yt({shape:()=>e,unknownKeys:"strip",catchall:gr.create(),typeName:_e.ZodObject,...je(t)});yt.strictCreate=(e,t)=>new yt({shape:()=>e,unknownKeys:"strict",catchall:gr.create(),typeName:_e.ZodObject,...je(t)});yt.lazycreate=(e,t)=>new yt({shape:e,unknownKeys:"strip",catchall:gr.create(),typeName:_e.ZodObject,...je(t)});class Co extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new wn(s.ctx.common.issues));return ce(n,{code:ie.invalid_union,unionErrors:o}),Te}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},l=c._parseSync({data:n.data,path:n.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(c=>new wn(c));return ce(n,{code:ie.invalid_union,unionErrors:s}),Te}}get options(){return this._def.options}}Co.create=(e,t)=>new Co({options:e,typeName:_e.ZodUnion,...je(t)});const or=e=>e instanceof Oo?or(e.schema):e instanceof Un?or(e.innerType()):e instanceof Eo?[e.value]:e instanceof Fr?e.options:e instanceof $o?ze.objectValues(e.enum):e instanceof Mo?or(e._def.innerType):e instanceof _o?[void 0]:e instanceof To?[null]:e instanceof Zn?[void 0,...or(e.unwrap())]:e instanceof Lr?[null,...or(e.unwrap())]:e instanceof Lh||e instanceof Ao?or(e.unwrap()):e instanceof Ro?or(e._def.innerType):[];class xu extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.object)return ce(n,{code:ie.invalid_type,expected:le.object,received:n.parsedType}),Te;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ce(n,{code:ie.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Te)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=or(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,i)}}return new xu({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...je(r)})}}function df(e,t){const n=Er(e),r=Er(t);if(e===t)return{valid:!0,data:e};if(n===le.object&&r===le.object){const a=ze.objectKeys(t),i=ze.objectKeys(e).filter(s=>a.indexOf(s)!==-1),o={...e,...t};for(const s of i){const c=df(e[s],t[s]);if(!c.valid)return{valid:!1};o[s]=c.data}return{valid:!0,data:o}}else if(n===le.array&&r===le.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],c=df(o,s);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===le.date&&r===le.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ko extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(uf(i)||uf(o))return Te;const s=df(i.value,o.value);return s.valid?((lf(i)||lf(o))&&n.dirty(),{status:n.value,value:s.data}):(ce(r,{code:ie.invalid_intersection_types}),Te)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ko.create=(e,t,n)=>new ko({left:e,right:t,typeName:_e.ZodIntersection,...je(n)});class Qn extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.array)return ce(r,{code:ie.invalid_type,expected:le.array,received:r.parsedType}),Te;if(r.data.length<this._def.items.length)return ce(r,{code:ie.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Te;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:ie.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new Xn(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Yt.mergeArray(n,o)):Yt.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Qn({...this._def,rest:t})}}Qn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Qn({items:e,typeName:_e.ZodTuple,rest:null,...je(t)})};class So extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.object)return ce(r,{code:ie.invalid_type,expected:le.object,received:r.parsedType}),Te;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in r.data)a.push({key:i._parse(new Xn(r,s,r.path,s)),value:o._parse(new Xn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Yt.mergeObjectAsync(n,a):Yt.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Ie?new So({keyType:t,valueType:n,typeName:_e.ZodRecord,...je(r)}):new So({keyType:Dn.create(),valueType:t,typeName:_e.ZodRecord,...je(n)})}}class kc extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.map)return ce(r,{code:ie.invalid_type,expected:le.map,received:r.parsedType}),Te;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([s,c],u)=>({key:a._parse(new Xn(r,s,r.path,[u,"key"])),value:i._parse(new Xn(r,c,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return Te;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of o){const u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return Te;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}}}}kc.create=(e,t,n)=>new kc({valueType:t,keyType:e,typeName:_e.ZodMap,...je(n)});class ga extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.set)return ce(r,{code:ie.invalid_type,expected:le.set,received:r.parsedType}),Te;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ce(r,{code:ie.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ce(r,{code:ie.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const l of c){if(l.status==="aborted")return Te;l.status==="dirty"&&n.dirty(),u.add(l.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((c,u)=>i._parse(new Xn(r,c,r.path,u)));return r.common.async?Promise.all(s).then(c=>o(c)):o(s)}min(t,n){return new ga({...this._def,minSize:{value:t,message:ve.toString(n)}})}max(t,n){return new ga({...this._def,maxSize:{value:t,message:ve.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ga.create=(e,t)=>new ga({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...je(t)});class Ya extends Ie{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.function)return ce(n,{code:ie.invalid_type,expected:le.function,received:n.parsedType}),Te;function r(s,c){return wc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xc(),si].filter(u=>!!u),issueData:{code:ie.invalid_arguments,argumentsError:c}})}function a(s,c){return wc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xc(),si].filter(u=>!!u),issueData:{code:ie.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ui){const s=this;return en(async function(...c){const u=new wn([]),l=await s._def.args.parseAsync(c,i).catch(p=>{throw u.addIssue(r(c,p)),u}),d=await Reflect.apply(o,this,l);return await s._def.returns._def.type.parseAsync(d,i).catch(p=>{throw u.addIssue(a(d,p)),u})})}else{const s=this;return en(function(...c){const u=s._def.args.safeParse(c,i);if(!u.success)throw new wn([r(c,u.error)]);const l=Reflect.apply(o,this,u.data),d=s._def.returns.safeParse(l,i);if(!d.success)throw new wn([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ya({...this._def,args:Qn.create(t).rest(ca.create())})}returns(t){return new Ya({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ya({args:t||Qn.create([]).rest(ca.create()),returns:n||ca.create(),typeName:_e.ZodFunction,...je(r)})}}class Oo extends Ie{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Oo.create=(e,t)=>new Oo({getter:e,typeName:_e.ZodLazy,...je(t)});class Eo extends Ie{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ce(n,{received:n.data,code:ie.invalid_literal,expected:this._def.value}),Te}return{status:"valid",value:t.data}}get value(){return this._def.value}}Eo.create=(e,t)=>new Eo({value:e,typeName:_e.ZodLiteral,...je(t)});function ix(e,t){return new Fr({values:e,typeName:_e.ZodEnum,...je(t)})}class Fr extends Ie{constructor(){super(...arguments),Ji.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{expected:ze.joinValues(r),received:n.parsedType,code:ie.invalid_type}),Te}if(_c(this,Ji)||tx(this,Ji,new Set(this._def.values)),!_c(this,Ji).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{received:n.data,code:ie.invalid_enum_value,options:r}),Te}return en(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Fr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Fr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ji=new WeakMap;Fr.create=ix;class $o extends Ie{constructor(){super(...arguments),eo.set(this,void 0)}_parse(t){const n=ze.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==le.string&&r.parsedType!==le.number){const a=ze.objectValues(n);return ce(r,{expected:ze.joinValues(a),received:r.parsedType,code:ie.invalid_type}),Te}if(_c(this,eo)||tx(this,eo,new Set(ze.getValidEnumValues(this._def.values))),!_c(this,eo).has(t.data)){const a=ze.objectValues(n);return ce(r,{received:r.data,code:ie.invalid_enum_value,options:a}),Te}return en(t.data)}get enum(){return this._def.values}}eo=new WeakMap;$o.create=(e,t)=>new $o({values:e,typeName:_e.ZodNativeEnum,...je(t)});class ui extends Ie{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.promise&&n.common.async===!1)return ce(n,{code:ie.invalid_type,expected:le.promise,received:n.parsedType}),Te;const r=n.parsedType===le.promise?n.data:Promise.resolve(n.data);return en(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ui.create=(e,t)=>new ui({type:e,typeName:_e.ZodPromise,...je(t)});class Un extends Ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{ce(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return Te;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?Te:c.status==="dirty"||n.value==="dirty"?za(c.value):c});{if(n.value==="aborted")return Te;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?Te:s.status==="dirty"||n.value==="dirty"?za(s.value):s}}if(a.type==="refinement"){const o=s=>{const c=a.refinement(s,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Te:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?Te:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!yo(o))return o;const s=a.transform(o.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>yo(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:n.value,value:s})):o);ze.assertNever(a)}}Un.create=(e,t,n)=>new Un({schema:e,typeName:_e.ZodEffects,effect:t,...je(n)});Un.createWithPreprocess=(e,t,n)=>new Un({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...je(n)});class Zn extends Ie{_parse(t){return this._getType(t)===le.undefined?en(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Zn.create=(e,t)=>new Zn({innerType:e,typeName:_e.ZodOptional,...je(t)});class Lr extends Ie{_parse(t){return this._getType(t)===le.null?en(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Lr.create=(e,t)=>new Lr({innerType:e,typeName:_e.ZodNullable,...je(t)});class Mo extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===le.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Mo.create=(e,t)=>new Mo({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...je(t)});class Ro extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return xo(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new wn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new wn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ro.create=(e,t)=>new Ro({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...je(t)});class Sc extends Ie{_parse(t){if(this._getType(t)!==le.nan){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.nan,received:r.parsedType}),Te}return{status:"valid",value:t.data}}}Sc.create=e=>new Sc({typeName:_e.ZodNaN,...je(e)});const fE=Symbol("zod_brand");class Lh extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ss extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Te:i.status==="dirty"?(n.dirty(),za(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Te:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new ss({in:t,out:n,typeName:_e.ZodPipeline})}}class Ao extends Ie{_parse(t){const n=this._def.innerType._parse(t),r=a=>(yo(a)&&(a.value=Object.freeze(a.value)),a);return xo(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}Ao.create=(e,t)=>new Ao({innerType:e,typeName:_e.ZodReadonly,...je(t)});function ox(e,t={},n){return e?ci.create().superRefine((r,a)=>{var i,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,u=typeof s=="string"?{message:s}:s;a.addIssue({code:"custom",...u,fatal:c})}}):ci.create()}const hE={object:yt.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const pE=(e,t={message:`Input not instance of ${e.name}`})=>ox(n=>n instanceof e,t),sx=Dn.create,cx=Ir.create,mE=Sc.create,gE=Nr.create,ux=wo.create,vE=ma.create,bE=Tc.create,yE=_o.create,xE=To.create,wE=ci.create,_E=ca.create,TE=gr.create,CE=Cc.create,kE=Nn.create,SE=yt.create,OE=yt.strictCreate,EE=Co.create,$E=xu.create,ME=ko.create,RE=Qn.create,AE=So.create,jE=kc.create,PE=ga.create,DE=Ya.create,IE=Oo.create,NE=Eo.create,FE=Fr.create,LE=$o.create,UE=ui.create,Ag=Un.create,BE=Zn.create,WE=Lr.create,zE=Un.createWithPreprocess,HE=ss.create,VE=()=>sx().optional(),qE=()=>cx().optional(),YE=()=>ux().optional(),GE={string:e=>Dn.create({...e,coerce:!0}),number:e=>Ir.create({...e,coerce:!0}),boolean:e=>wo.create({...e,coerce:!0}),bigint:e=>Nr.create({...e,coerce:!0}),date:e=>ma.create({...e,coerce:!0})},ZE=Te;var Bt=Object.freeze({__proto__:null,defaultErrorMap:si,setErrorMap:Z5,getErrorMap:xc,makeIssue:wc,EMPTY_PATH:K5,addIssueToContext:ce,ParseStatus:Yt,INVALID:Te,DIRTY:za,OK:en,isAborted:uf,isDirty:lf,isValid:yo,isAsync:xo,get util(){return ze},get objectUtil(){return cf},ZodParsedType:le,getParsedType:Er,ZodType:Ie,datetimeRegex:ax,ZodString:Dn,ZodNumber:Ir,ZodBigInt:Nr,ZodBoolean:wo,ZodDate:ma,ZodSymbol:Tc,ZodUndefined:_o,ZodNull:To,ZodAny:ci,ZodUnknown:ca,ZodNever:gr,ZodVoid:Cc,ZodArray:Nn,ZodObject:yt,ZodUnion:Co,ZodDiscriminatedUnion:xu,ZodIntersection:ko,ZodTuple:Qn,ZodRecord:So,ZodMap:kc,ZodSet:ga,ZodFunction:Ya,ZodLazy:Oo,ZodLiteral:Eo,ZodEnum:Fr,ZodNativeEnum:$o,ZodPromise:ui,ZodEffects:Un,ZodTransformer:Un,ZodOptional:Zn,ZodNullable:Lr,ZodDefault:Mo,ZodCatch:Ro,ZodNaN:Sc,BRAND:fE,ZodBranded:Lh,ZodPipeline:ss,ZodReadonly:Ao,custom:ox,Schema:Ie,ZodSchema:Ie,late:hE,get ZodFirstPartyTypeKind(){return _e},coerce:GE,any:wE,array:kE,bigint:gE,boolean:ux,date:vE,discriminatedUnion:$E,effect:Ag,enum:FE,function:DE,instanceof:pE,intersection:ME,lazy:IE,literal:NE,map:jE,nan:mE,nativeEnum:LE,never:TE,null:xE,nullable:WE,number:cx,object:SE,oboolean:YE,onumber:qE,optional:BE,ostring:VE,pipeline:HE,preprocess:zE,promise:UE,record:AE,set:PE,strictObject:OE,string:sx,symbol:bE,transformer:Ag,tuple:RE,undefined:yE,union:EE,unknown:_E,void:CE,NEVER:ZE,ZodIssueCode:ie,quotelessJson:G5,ZodError:wn});const wu=()=>{const{texts:{formValidation:e}}=h.useContext(Tt),t=h.useCallback(m=>{let b=(m!=null&&m.useCoerce?Bt.coerce:Bt).string({invalid_type_error:e.required,required_error:e.required});return m!=null&&m.email&&(b=b.email(e.invalidEmail)),m!=null&&m.length&&(b=b.min(m.length,e.length(m.length))),m!=null&&m.minLength&&(b=b.min(m.minLength,e.minLength(m.minLength))),m!=null&&m.maxLength&&(b=b.max(m.maxLength,e.maxLength(m.maxLength))),m!=null&&m.numeric&&(b=b.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),m!=null&&m.regex&&(b=b.regex(m.regex,e.invalidFormat)),b.transform(x=>x??null)},[e]),n=h.useCallback(m=>t(m).nullable().optional().transform(b=>b??null),[t]),r=h.useCallback(m=>{const b=(m==null?void 0:m.min)??Number.MIN_SAFE_INTEGER,x=(m==null?void 0:m.max)??Number.MAX_SAFE_INTEGER,_=(m!=null&&m.useCoerce?Bt.coerce:Bt).number({invalid_type_error:e.required,required_error:e.required}).min(b,e.lessThanMin(b)).max(x,e.moreThanMax(x));return _.transform(y=>y??null),_},[e]),a=h.useCallback(m=>r(m).nullable().optional().transform(b=>b??null),[r]),i=h.useCallback(m=>(m!=null&&m.useCoerce?Bt.coerce:Bt).boolean({invalid_type_error:e.required,required_error:e.required}).transform(b=>b??null),[e.required]),o=h.useCallback(m=>(m!=null&&m.useCoerce?Bt.coerce:Bt).string({invalid_type_error:e.required,required_error:e.required}).refine(T1,{message:e.invalidDate}).transform(x=>x??null),[e.invalidDate,e.required]),s=h.useCallback(m=>o(m).nullable().transform(b=>b??null),[o]),c=h.useCallback((m,b)=>Bt.enum(m,{invalid_type_error:e.required,required_error:e.required}).transform(_=>_??null),[e.required]),u=h.useCallback((m,b)=>c(m,b).nullable().transform(x=>x??null),[c]),l=h.useCallback(m=>Bt.object({id:a({useCoerce:!0})}).nullable().transform(x=>x??null),[a]),d=h.useCallback(m=>Bt.object({id:r()}).transform(x=>x??null),[r]),f=h.useCallback(m=>Bt.object({id:n({useCoerce:!0})}).nullable().transform(x=>x??null),[n]),p=h.useCallback(m=>Bt.object({id:t()}).transform(x=>x??null),[t]),v=h.useCallback(({required:m,multiple:b,maxFileSize:x})=>Bt.any().transform(y=>Array.from(y??[])).refine(y=>!m||(y==null?void 0:y.length)>0,"File is required.").refine(y=>b||(y==null?void 0:y.length)<=1,"Multiple files not allowed.").refine(y=>y.every(T=>T.size<=x),`Maximum file size is ${ii(x)}.`).transform(y=>(b?y:y==null?void 0:y[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:a,zNumberRequired:r,zBool:i,zDate:s,zDateRequired:o,zEnum:u,zEnumRequired:c,zObjectIdInt:l,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:p,zFile:v}},lx=(e,t)=>{h.useEffect(()=>{const n=r=>{e.some(a=>a.current&&a.current.contains(r.target))||t()};return document.addEventListener("mouseup",n),()=>{document.removeEventListener("mouseup",n)}},[e,t])},dx=e=>{h.useEffect(()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),[e])},Uh=(e,t,n)=>h.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),fx=()=>{const{addNotification:e}=bu(),{texts:{clipboard:t}}=h.useContext(Tt);return{copyToClipboard:h.useCallback(async r=>{var a;try{await((a=navigator.clipboard)==null?void 0:a.writeText(r)),e(t.copySuccess(r),"prompt")}catch(i){console.error(i),e(t.copyError,"danger")}},[e,t])}},cs=()=>{const[e,t]=h.useState(window.innerWidth),[n,r]=h.useState(window.innerHeight),a=()=>{t(window.innerWidth),r(window.innerHeight)};return h.useEffect(()=>(window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)),[]),{width:e,height:n,isMobile:e<992}},Bh=h.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[]}),hx=h.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),px=h.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),KE="_button_1wjon_1",XE="_filled_1wjon_7",QE="_sm_1wjon_13",JE="_md_1wjon_18",e$="_lg_1wjon_23",Na={button:KE,filled:XE,sm:QE,md:JE,lg:e$},va=({variant:e="filled",color:t="primary",size:n="md",className:r,children:a,...i})=>i.as==="link"?g.jsx(Jo.Link,{to:i.href??"/",className:K(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,Na.button,Na[e],Na[n]),...i,children:a}):i.as==="button"||i.as===void 0?g.jsx("button",{type:"button",className:K(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,Na.button,Na[e],Na[n]),...i,children:a}):null,t$="_button_1r3i0_1",ff={button:t$},_u=({color:e="primary",icon:t,className:n,children:r,...a})=>a.as==="link"?g.jsxs(Jo.Link,{to:a.href??"/",className:K(`luminus-context-button btn text-${e} ${n??""}`,ff.button),...a,children:[t,r]}):a.as==="button"||a.as===void 0?g.jsxs("button",{type:"button",className:K(`luminus-context-button btn text-${e} ${n??""}`,ff.button),...a,children:[t,r]}):null,n$="_icon-button_15e26_1",r$="_sm_15e26_14",a$="_md_15e26_23",i$="_lg_15e26_32",Ms={"icon-button":"_icon-button_15e26_1",iconButton:n$,sm:r$,md:a$,lg:i$},us=({type:e="button",color:t="primary",size:n="md",children:r,className:a,...i})=>i.as==="link"?g.jsx(Jo.Link,{to:i.href??"/",className:K(`luminus-icon-button btn text-${t} ${a??""}`,Ms.iconButton,Ms[n]),...i,children:r}):i.as==="button"||i.as===void 0?g.jsx("button",{type:e,className:K(`luminus-icon-button btn text-${t} ${a??""}`,Ms.iconButton,Ms[n]),...i,children:r}):null,o$="_feedback_esh1j_1",s$="_feedback-spacer_esh1j_8",jg={feedback:o$,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:s$},Tu=({message:e})=>g.jsxs(g.Fragment,{children:[g.jsx("div",{className:K("invalid-feedback luminus-invalid-feedback",jg.feedback),children:e}),g.jsx("div",{className:K("invalid-feedback-spacer",jg.feedbackSpacer),children:e})]}),c$="_item_1dy8x_1",mx={item:c$},Ga=({color:e="primary",icon:t,className:n,children:r,...a})=>{const{as:i,to:o,...s}=a;return g.jsxs(go.Item,{className:K(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,mx.item),as:i==="link"?Jo.Link:void 0,to:o??"",...s,children:[t,r]})},u$="_button_qhwih_1",l$={button:u$},Wh=h.forwardRef(({color:e="primary",icon:t=g.jsx(u1,{size:21}),text:n,onClick:r,className:a,children:i,...o},s)=>g.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:K(`btn luminus-context-button text-${e} ${a??""}`,l$.button),...o,children:[t,n]})),d$="_avatar-icon_1axl6_1",f$={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:d$},gx=({name:e,fontSize:t,size:n})=>{const r=h.useMemo(()=>{const o=e.split(" ");return o.length<2?e:vo(" ",o.at(o.length-2),o.at(o.length-1))},[e]),a=h.useMemo(()=>{const o=r.split(" ");return vo("",...o.map(s=>s.at(0)??void 0))},[r]),i=o=>{let s=0,c;for(c=0;c<o.length;c+=1)s=o.charCodeAt(c)+((s<<5)-s);let u="#";for(c=0;c<3;c+=1){const l=s>>c*8&255;u+=`00${l.toString(16)}`.slice(-2)}return u};return g.jsx(a1,{placement:"bottom",overlay:g.jsx(n1,{children:e}),children:g.jsx("div",{className:K("luminus-avatar-icon",f$.avatarIcon),style:{backgroundColor:i(r),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:g.jsx("div",{children:a})})})},h$=h.forwardRef(({userName:e,onClick:t,children:n},r)=>g.jsxs("button",{type:"button",ref:r,onClick:a=>{a.preventDefault(),t(a)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[g.jsx(gx,{name:e}),n]})),zh=e=>g.jsx(go.Toggle,{...e}),p$="_divider_1e6rk_1",m$={divider:p$},vx=({className:e})=>g.jsx(go.Divider,{className:K("luminus-dropdown-divider",e,m$.divider)}),g$="_dropdown_1lk66_1",v$={dropdown:g$},Hh=({toggle:e,children:t,align:n,...r})=>g.jsxs(go,{...r,align:n,children:[e,g.jsx(go.Menu,{className:K("luminus-dropdown rounded shadow",v$.dropdown),align:n,children:t})]});function b$(e,t,n){var r=this,a=h.useRef(null),i=h.useRef(0),o=h.useRef(null),s=h.useRef([]),c=h.useRef(),u=h.useRef(),l=h.useRef(e),d=h.useRef(!0);l.current=e;var f=typeof window<"u",p=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,b="maxWait"in n,x="debounceOnServer"in n&&!!n.debounceOnServer,_=b?Math.max(+n.maxWait||0,t):null;h.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var y=h.useMemo(function(){var T=function(R){var A=s.current,N=c.current;return s.current=c.current=null,i.current=R,u.current=l.current.apply(N,A)},w=function(R,A){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(R):setTimeout(R,A)},C=function(R){if(!d.current)return!1;var A=R-a.current;return!a.current||A>=t||A<0||b&&R-i.current>=_},S=function(R){return o.current=null,m&&s.current?T(R):(s.current=c.current=null,u.current)},M=function R(){var A=Date.now();if(C(A))return S(A);if(d.current){var N=t-(A-a.current),E=b?Math.min(N,_-(A-i.current)):N;w(R,E)}},D=function(){if(f||x){var R=Date.now(),A=C(R);if(s.current=[].slice.call(arguments),c.current=r,a.current=R,A){if(!o.current&&d.current)return i.current=a.current,w(M,t),v?T(a.current):u.current;if(b)return w(M,t),T(a.current)}return o.current||w(M,t),u.current}};return D.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),i.current=0,s.current=a.current=c.current=o.current=null},D.isPending=function(){return!!o.current},D.flush=function(){return o.current?S(Date.now()):u.current},D},[v,b,t,_,m,p,f,x]);return y}function y$(e,t){return e===t}function bx(e,t,n){var r=y$,a=h.useRef(e),i=h.useState({})[1],o=b$(h.useCallback(function(c){a.current=c,i({})},[i]),t,n),s=h.useRef(e);return r(s.current,e)||(o(e),s.current=e),[a.current,o]}const x$="_wrapper_1mvyk_1",w$="_open_1mvyk_9",_$="_dropdown_1mvyk_13",T$="_search-input-container_1mvyk_19",C$="_search-input_1mvyk_19",k$="_loading-container_1mvyk_25",S$="_items-container_1mvyk_32",O$="_header-row_1mvyk_38",E$="_name_1mvyk_49",$$="_item_1mvyk_32",M$="_column-item_1mvyk_65",R$="_icon_1mvyk_69",A$="_action-buttons-container_1mvyk_89",j$="_reverse_1mvyk_97",P$="_action-button_1mvyk_89",D$="_actions-dropdown_1mvyk_110",Nt={wrapper:x$,open:w$,dropdown:_$,"search-input-container":"_search-input-container_1mvyk_19",searchInputContainer:T$,"search-input":"_search-input_1mvyk_19",searchInput:C$,"loading-container":"_loading-container_1mvyk_25",loadingContainer:k$,"items-container":"_items-container_1mvyk_32",itemsContainer:S$,"header-row":"_header-row_1mvyk_38",headerRow:O$,name:E$,item:$$,"column-item":"_column-item_1mvyk_65",columnItem:M$,icon:R$,"action-buttons-container":"_action-buttons-container_1mvyk_89",actionButtonsContainer:A$,reverse:j$,"action-button":"_action-button_1mvyk_89",actionButton:P$,"actions-dropdown":"_actions-dropdown_1mvyk_110",actionsDropdown:D$},yx=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:a,currentSelection:i,onSelectionChange:o,onSearchQueryChange:s,texts:c,itemsNameWidth:u,additionalColumns:l,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:p,disabled:v,isLoading:m=!1,inputRef:b,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:y})=>{var He;const{texts:{customSelect:T}}=h.useContext(Tt),w=h.useRef(null),C=h.useRef(null),S=h.useRef(null),M=h.useRef(null),D=h.useRef(null),[R,A]=h.useState(""),[N]=bx(R,500),[,E]=h.useState(!1),{copyToClipboard:j}=fx(),P=(He=b.current)==null?void 0:He.getBoundingClientRect(),F=(P==null?void 0:P.x)??0,B=((P==null?void 0:P.x)??0)+((P==null?void 0:P.width)??0),L=(P==null?void 0:P.y)??0,W=((P==null?void 0:P.y)??0)+((P==null?void 0:P.height)??0),I=(P==null?void 0:P.width)??0,U=(P==null?void 0:P.height)??0,Y=5,{isMobile:te}=cs(),G=8,J=h.useMemo(()=>F?F>window.innerWidth/2-G:!1,[F]),Z=h.useMemo(()=>L?L>window.innerHeight/2-G:!1,[L]);h.useEffect(()=>{var ue;e&&((ue=S.current)==null||ue.focus())},[S,e]),h.useEffect(()=>{e||A("")},[e]),h.useEffect(()=>{s&&s(N)},[N,s]);const[X,re]=h.useState(null);h.useEffect(()=>{e&&n.length>0?re(0):re(null)},[n,e]);const z=h.useMemo(()=>X!==null?n.at(X)??null:null,[X,n]),V=h.useCallback((ue,Ce)=>{var xe,Ye;const Ee=document.getElementById(`item-${ue}`);if(Ee){const xt=Ee.clientHeight??0;Ce==="down"?(xe=M.current)==null||xe.scrollBy({left:0,top:xt,behavior:"smooth"}):(Ye=M.current)==null||Ye.scrollBy({left:0,top:-xt,behavior:"smooth"})}},[]),oe=h.useCallback(ue=>{if(X===null||v)return;const Ce=X+ue;Ce<0||Ce>=n.length||re(Ee=>(Ee!==null&&V(Ee,ue>0?"down":"up"),Ce))},[X,n,v,V]),k=h.useCallback(ue=>{if(e)switch(ue.key){case"Escape":ue.stopPropagation(),ue.preventDefault(),t();break;case"Enter":ue.stopPropagation(),ue.preventDefault(),v||o(z);break;case"ArrowUp":ue.stopPropagation(),ue.preventDefault(),oe(-1);break;case"ArrowDown":ue.stopPropagation(),ue.preventDefault(),oe(1);break}},[t,e,oe,z,v,o]),pe=h.useCallback(()=>{E(ue=>!ue)},[]);h.useEffect(()=>(window.addEventListener("scroll",pe),()=>{window.removeEventListener("scroll",pe)}),[pe]),h.useEffect(()=>(window.addEventListener("resize",pe),()=>{window.removeEventListener("resize",pe)}),[pe]),dx(k),lx([w,C,D],t);const me=u??(l&&l.length>0?250:0),de=(l==null?void 0:l.reduce((ue,Ce)=>ue+(Ce.width??100),0))??0,Re=h.useMemo(()=>(i&&e&&!v)??!1,[i,e,v]),Oe=h.useMemo(()=>(i&&e)??!1,[i,e]),lt=h.useMemo(()=>e&&(Oe||_!==void 0||y!==void 0),[e,Oe,_,y]),st=32,Be=te?`calc(100vw - ${st}px)`:`calc(max(${I}px, calc(${me}px + ${de}px)))`,tt=h.useMemo(()=>(R.length<1&&r&&r.length>0?r:n).map(ue=>{var Ce,Ee;return d?((Ce=ue.id)==null?void 0:Ce.toString())??"":((Ee=ue.name)==null?void 0:Ee.toString())??""}).reduce((ue,Ce)=>ue.length>Ce.length?ue:Ce,""),[R,r,n,d]);return g.jsxs(g.Fragment,{children:[g.jsx(xx,{show:e,onClick:t}),g.jsxs("div",{className:K("luminus-dropdown-picker-actions",Nt.actionButtonsContainer,{[Nt.reverse]:J}),style:{top:`calc(${L}px + ${U/2}px - 12px)`,left:J?Re&&Oe?`calc(${F}px - 24px - 8px - 24px - 4px)`:`calc(${F}px - 24px - 8px)`:`calc(${B}px + 8px)`},children:[Re&&g.jsx("button",{ref:C,type:"button",className:K("luminus-dropdown-picker-clear-button",Nt.actionButton),onClick:()=>!v&&o(null),children:g.jsx(Qt,{variant:"caption",className:"text-danger",children:g.jsx(s1,{size:16})})}),lt?g.jsx("div",{ref:D,children:g.jsxs(Hh,{toggle:g.jsx(zh,{as:Wh,className:K("luminus-dropdown-picker-actions-dropdown",Nt.actionsDropdown),icon:g.jsx(Qt,{variant:"caption",className:"text-primary",children:g.jsx(u1,{size:16})})}),children:[Oe?g.jsx(Ga,{icon:g.jsx(TS,{}),onClick:()=>{var ue,Ce;j(d?((ue=i==null?void 0:i.id)==null?void 0:ue.toString())??"":((Ce=i==null?void 0:i.name)==null?void 0:Ce.toString())??"")},children:T.copySelection}):null,Oe&&(_||y)?g.jsx(vx,{}):null,_?g.jsx(Ga,{icon:g.jsx(_S,{}),onClick:()=>{window.open(_,"_blank")},children:T.addNewOption}):null,y?g.jsx(Ga,{icon:g.jsx(PS,{}),onClick:()=>{y()},children:T.refreshOptions}):null]})}):null]}),g.jsx("div",{className:K("luminus-dropdown-picker",Nt.wrapper,{[Nt.open]:e}),style:{top:Z?`calc(${L}px - 50vh - 8px)`:`calc(${W}px + 8px)`,left:te?`${st/2}px`:J?`calc(${B}px - ${Be})`:F,right:te?`${st/2}px`:J?`${B}px`:`calc(${F}px + ${Be})`,width:Be,justifyContent:Z?"flex-end":"flex-start"},children:g.jsx("div",{ref:w,className:K("shadow rounded",Nt.dropdown),children:!v&&g.jsxs(g.Fragment,{children:[!s||f&&(p??n.length)<=Y?null:g.jsx("div",{className:K("search-input-container border-bottom",Nt.searchInputContainer),children:g.jsx(nr.Control,{ref:S,type:"search",size:"sm",className:Nt.searchInput,placeholder:c.searchPlaceholder,value:R,onChange:ue=>{var Ce;return A(((Ce=ue.target)==null?void 0:Ce.value)??"")}})}),R.length<1&&r&&r.length>0?g.jsx(Vh,{variant:"info",size:"sm",children:a??T.suggestedItemsTitle}):null,m?g.jsx("div",{className:Nt.loadingContainer,children:g.jsx(Eh,{animation:"border",variant:"primary"})}):(R.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&g.jsxs("div",{ref:M,className:K("items",Nt.itemsContainer),children:[l&&l.length>0&&g.jsxs("div",{className:K("header-row border-bottom",Nt.headerRow),children:[g.jsx("div",{className:Nt.name,children:g.jsx(Qt,{variant:"body2",children:tt})}),l==null?void 0:l.filter(ue=>ue.key!==x).map(ue=>g.jsx("div",{className:Nt.columnItem,style:{width:`${ue.width??100}px`,minWidth:`${ue.width??100}px`,maxWidth:`${ue.width??100}px`},children:g.jsx(Qt,{variant:"caption",children:ue.name})},ue.key))]}),(R.length<1&&r&&r.length>0?r:n).map((ue,Ce)=>g.jsxs("button",{id:`item-${Ce}`,type:"button",className:K("item cursor-pointer",Nt.item,{[Nt.focused]:X===Ce},{focused:X===Ce},{archive:ue.additionalColumns?ue.additionalColumns[x]:!1}),onClick:()=>!v&&o(ue),onMouseEnter:()=>re(Ce),children:[g.jsx("div",{className:Nt.name,children:g.jsx(Qt,{variant:"body2",children:d?ue.id:ue.name})}),l==null?void 0:l.filter(Ee=>Ee.key!==x).map(Ee=>g.jsx("div",{className:Nt.columnItem,style:{width:`${Ee.width??100}px`,minWidth:`${Ee.width??100}px`,maxWidth:`${Ee.width??100}px`},children:g.jsx(Qt,{variant:"caption",className:K("text-muted"),children:ue.additionalColumns&&ue.additionalColumns[Ee.key]})},Ee.key))]},ue.id))]})]})})})]})};function I$(e){return Le({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function N$(e){return Le({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function F$(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function L$(e){return Le({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const U$="_backdrop_3huvf_1",B$="_show_3huvf_11",Pg={backdrop:U$,show:B$},xx=({show:e,onClick:t})=>g.jsx("div",{className:K("luminus-backdrop",Pg.backdrop,{[Pg.show]:e}),onClick:()=>t&&t()}),Vh=e=>{const{variant:t,children:n,className:r,size:a="md",typographyVariant:i=a==="sm"?"body2":"body",...o}={...e};return g.jsx(FC,{variant:t,className:`text-center ${a==="sm"?"p-1":a==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...o,children:g.jsx(Qt,{variant:i,children:n})})},W$="_floating-label_3xm9u_1",z$="_without-label_3xm9u_21",H$="_floating-label-check_3xm9u_184",id={"floating-label":"_floating-label_3xm9u_1",floatingLabel:W$,"without-label":"_without-label_3xm9u_21",withoutLabel:z$,"floating-label-check":"_floating-label-check_3xm9u_184",floatingLabelCheck:H$},V$=({hint:e,children:t})=>e?g.jsx(Mh,{text:e,placement:"top",children:t}):t,Cu=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,inputContainerClassName:i,isForCheckInput:o,hint:s,required:c,...u},l)=>{const{ProjectIconComponent:d}=h.useContext(Tt),f=u.withoutLabel?"":g.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[u.label,c?g.jsx("span",{className:"text-danger fw-bold",style:{fontSize:"16px"},children:"*"}):null,s?g.jsx("div",{className:"d-flex align-items-center",children:g.jsx(d,{icon:"info"})}):null]});return o?g.jsx("div",{className:K("luminus-floating-label-check",id.floatingLabelCheck),children:t}):g.jsx(V$,{hint:s,children:g.jsx(_h,{ref:l,label:g.jsx("div",{className:"d-flex gap-1 align-items-center",children:f}),hidden:e??!1,className:K(`luminus-floating-label ${n??""}`,id.floatingLabel,{[i??""]:i},{[id.withoutLabel]:u.withoutLabel}),children:t})})});Cu.displayName="FloatingLabelInput";const q$="_row-label-input_mqkkx_1",Y$="_label_mqkkx_4",G$="_input-container_mqkkx_9",Z$="_invalid-feedback_mqkkx_104",K$="_keep-check-label_mqkkx_132",X$="_is-invalid_mqkkx_160",Bi={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:q$,label:Y$,"input-container":"_input-container_mqkkx_9",inputContainer:G$,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:Z$,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:K$,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:X$},ls=h.forwardRef(({hidden:e,children:t,required:n,className:r,isInvalid:a,isForRadioInput:i,isForTextAreaInput:o,inputContainerClassName:s,hint:c,...u},l)=>{const{ProjectIconComponent:d}=h.useContext(Tt),f=u.withoutLabel?g.jsx(g.Fragment,{}):g.jsx("label",{className:K("label col-6",{"col-12":o},Bi.label),children:g.jsxs(Qt,{variant:"form-label",className:K("d-flex gap-1 align-items-center",a?"text-danger":""),children:[u.label,n?g.jsx("span",{className:"text-danger fw-bold",style:{fontSize:"16px"},children:"*"}):null,c?g.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:g.jsx(d,{icon:"info"})}):null]})});return g.jsxs("div",{ref:l,className:K("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[Bi.isInvalid]:a},{[r??""]:r},{"d-none":e},Bi.rowLabelInput),children:[c?g.jsx(Mh,{text:c,placement:"top",children:f}):f,g.jsx("div",{className:K("input-container",Bi.inputContainer,{"col-6":!u.withoutLabel&&!o},{"col-12":u.withoutLabel||o},{[Bi.keepCheckLabel]:i},{[s??""]:s}),children:t})]})});ls.displayName="RowLabelInput";const wx=h.forwardRef(({children:e,className:t,hidden:n},r)=>g.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));wx.displayName="NoInputContainer";const _x=({currentSelection:e,selectedItemNavigateTo:t,children:n})=>{if(!e||!e.id||!t)return g.jsx("div",{className:"luminus-input-container position-relative w-100",children:n});const r=t(e);return g.jsx(Jo.Link,{to:r,className:"luminus-input-container position-relative w-100 text-decoration-none",children:n})},Tx=({InputContainer:e=Cu,type:t,value:n,onChange:r,debounceMs:a,label:i,withoutLabel:o,placeholder:s,size:c,hidden:u,disabled:l,showClearIcon:d,clearValue:f,list:p,className:v,step:m,minLength:b,maxLength:x,noSelectOnFocus:_,hint:y,onConfirm:T})=>{const w=t==="number",C=h.useCallback(()=>{if(!r)return;const F=f??null;r(w?F?Number(F):null:(F==null?void 0:F.toString())??"")},[f,w,r]),S=h.useRef(null),[M,D]=h.useState((n==null?void 0:n.toString())??""),R=h.useCallback(F=>{const B=F;r&&(w&&r(B==null||B===""?null:Number(B)),r(B||null))},[w,r]),A=h.useCallback(F=>{var L;const B=(L=F.target)==null?void 0:L.value;if(!a){R(B);return}D(B),S.current!==null&&window.clearTimeout(S.current),S.current=window.setTimeout(()=>{R(B)},a)},[a,R]),N=h.useMemo(()=>{if(T!==void 0)return F=>{F.key==="Enter"&&T&&T()}},[T]);h.useEffect(()=>{D(n===null?"":n.toString())},[n]);const[E,j]=h.useState(!1),P=Uh(t,n?n.toString()??null:null,E);return g.jsxs(e,{withoutLabel:o,label:i??"",hidden:u,className:v,hint:y,children:[g.jsx(nr.Control,{type:P,placeholder:s??i,size:c,value:a?M:(n==null?void 0:n.toString())??"",onChange:A,className:v??"",hidden:u,disabled:l??!1,list:p,onFocus:F=>{j(!0),!_&&F.target.select()},onBlur:()=>j(!1),onKeyDown:N,step:m,minLength:b,maxLength:x}),d&&n!==null&&r&&!l&&g.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:g.jsx(us,{color:"secondary",size:"sm",onClick:C,children:g.jsx(rs,{})})})]})},Cx=({value:e,MiniDetailComponent:t,children:n,miniDetailPlacement:r})=>!e||!t?n:g.jsx(t,{id:e.toString(),placement:r,children:n}),kx=({InputContainer:e=Cu,value:t,options:n,onChange:r,label:a,withoutLabel:i,isNumber:o,size:s,hidden:c,disabled:u,noSortOptions:l,className:d,suffixIdToName:f,noEmptyOption:p,appendCurrentSelectionWithName:v,dropdownWidth:m,hint:b,addNewOptionPath:x,refreshOptions:_,MiniDetailComponent:y,miniDetailPlacement:T,selectedItemNavigateTo:w})=>{const{texts:{customSelect:C}}=h.useContext(Tt),[S,M]=h.useState(!1),[D,R]=h.useState(""),A=h.useCallback(L=>{R(L)},[]),N=h.useMemo(()=>n.find(L=>L.id===t)??null,[n,t]),E=h.useCallback(L=>{var W;return L===null?"":!L.name||L.name.length===0?((W=L.id)==null?void 0:W.toString())??"":f?`${L.name} (${L.id})`:L.name},[f]),j=h.useMemo(()=>{const L=n?[...n]:[];return v!==void 0&&t!==void 0&&t!==null&&(L.some(W=>W.id===t)||L.push({id:t,name:v})),L.map(W=>({id:W.id,name:E(W)})).filter(W=>Rh(W.name,D)).sort((W,I)=>l?0:(W.name??"").localeCompare(I.name??""))},[n,l,D,E,v,t]),P=h.useCallback(L=>{var W;r&&r((L==null?void 0:L.id)===void 0||(L==null?void 0:L.id)===null?null:o?Number(L.id):(W=L.id)==null?void 0:W.toString())},[r,o]),F=h.useCallback(L=>{M(!1),P(L)},[P]),B=h.useRef(null);return g.jsx(g.Fragment,{children:g.jsxs(e,{withoutLabel:i,label:a??"",hidden:c,inputContainerClassName:K({"luminus-dropdown-select-open":S}),className:d,hint:b,children:[g.jsx(_x,{currentSelection:N,selectedItemNavigateTo:w,children:g.jsx(Cx,{value:t,MiniDetailComponent:y,miniDetailPlacement:T,children:g.jsxs(nr.Select,{ref:B,size:s,value:t??"",onMouseDown:L=>{L.currentTarget.focus(),L.preventDefault()},onClick:()=>{!u&&M(!0)},onChange:()=>{},className:K("w-100",{"luminus-dropdown-picker-disabled":u}),hidden:c,children:[p&&!(t==null||t==="")?void 0:g.jsx("option",{value:""}),t!=null&&g.jsx("option",{value:t,children:E(N)})]})})}),B.current&&g.jsx(yx,{show:S,onCancel:()=>M(!1),items:j,currentSelection:N??null,onSelectionChange:F,onSearchQueryChange:A,texts:C,disabled:u,inputRef:B,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:x,refreshOptions:_})]})})},Q$=h.forwardRef(({onClick:e,text:t},n)=>g.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:g.jsxs("div",{className:"d-flex flex-column align-items-center",children:[g.jsx("div",{className:"mt-",children:"…"}),g.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var qh=fs(),Me=e=>ds(e,qh),Yh=fs();Me.write=e=>ds(e,Yh);var ku=fs();Me.onStart=e=>ds(e,ku);var Gh=fs();Me.onFrame=e=>ds(e,Gh);var Zh=fs();Me.onFinish=e=>ds(e,Zh);var Za=[];Me.setTimeout=(e,t)=>{const n=Me.now()+t,r=()=>{const i=Za.findIndex(o=>o.cancel==r);~i&&Za.splice(i,1),Rr-=~i?1:0},a={time:n,handler:e,cancel:r};return Za.splice(Sx(n),0,a),Rr+=1,Ox(),a};var Sx=e=>~(~Za.findIndex(t=>t.time>e)||~Za.length);Me.cancel=e=>{ku.delete(e),Gh.delete(e),Zh.delete(e),qh.delete(e),Yh.delete(e)};Me.sync=e=>{hf=!0,Me.batchedUpdates(e),hf=!1};Me.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,Me.onStart(n)}return r.handler=e,r.cancel=()=>{ku.delete(n),t=null},r};var Kh=typeof window<"u"?window.requestAnimationFrame:()=>{};Me.use=e=>Kh=e;Me.now=typeof performance<"u"?()=>performance.now():Date.now;Me.batchedUpdates=e=>e();Me.catch=console.error;Me.frameLoop="always";Me.advance=()=>{Me.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):$x()};var Mr=-1,Rr=0,hf=!1;function ds(e,t){hf?(t.delete(e),e(0)):(t.add(e),Ox())}function Ox(){Mr<0&&(Mr=0,Me.frameLoop!=="demand"&&Kh(Ex))}function J$(){Mr=-1}function Ex(){~Mr&&(Kh(Ex),Me.batchedUpdates($x))}function $x(){const e=Mr;Mr=Me.now();const t=Sx(Mr);if(t&&(Mx(Za.splice(0,t),n=>n.handler()),Rr-=t),!Rr){J$();return}ku.flush(),qh.flush(e?Math.min(64,Mr-e):16.667),Gh.flush(),Yh.flush(),Zh.flush()}function fs(){let e=new Set,t=e;return{add(n){Rr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Rr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Rr-=t.size,Mx(t,r=>r(n)&&e.add(r)),Rr+=e.size,t=e)}}}function Mx(e,t){e.forEach(n=>{try{t(n)}catch(r){Me.catch(r)}})}var eM=Object.defineProperty,tM=(e,t)=>{for(var n in t)eM(e,n,{get:t[n],enumerable:!0})},Bn={};tM(Bn,{assign:()=>rM,colors:()=>jr,createStringInterpolator:()=>Qh,skipAnimation:()=>Ax,to:()=>Rx,willAdvance:()=>Jh});function pf(){}var nM=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ae={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function sr(e,t){if(ae.arr(e)){if(!ae.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Se=(e,t)=>e.forEach(t);function Jn(e,t,n){if(ae.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Jt=e=>ae.und(e)?[]:ae.arr(e)?e:[e];function oo(e,t){if(e.size){const n=Array.from(e);e.clear(),Se(n,t)}}var to=(e,...t)=>oo(e,n=>n(...t)),Xh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qh,Rx,jr=null,Ax=!1,Jh=pf,rM=e=>{e.to&&(Rx=e.to),e.now&&(Me.now=e.now),e.colors!==void 0&&(jr=e.colors),e.skipAnimation!=null&&(Ax=e.skipAnimation),e.createStringInterpolator&&(Qh=e.createStringInterpolator),e.requestAnimationFrame&&Me.use(e.requestAnimationFrame),e.batchedUpdates&&(Me.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Jh=e.willAdvance),e.frameLoop&&(Me.frameLoop=e.frameLoop)},so=new Set,Sn=[],od=[],Oc=0,Su={get idle(){return!so.size&&!Sn.length},start(e){Oc>e.priority?(so.add(e),Me.onStart(aM)):(jx(e),Me(mf))},advance:mf,sort(e){if(Oc)Me.onFrame(()=>Su.sort(e));else{const t=Sn.indexOf(e);~t&&(Sn.splice(t,1),Px(e))}},clear(){Sn=[],so.clear()}};function aM(){so.forEach(jx),so.clear(),Me(mf)}function jx(e){Sn.includes(e)||Px(e)}function Px(e){Sn.splice(iM(Sn,t=>t.priority>e.priority),0,e)}function mf(e){const t=od;for(let n=0;n<Sn.length;n++){const r=Sn[n];Oc=r.priority,r.idle||(Jh(r),r.advance(e),r.idle||t.push(r))}return Oc=0,od=Sn,od.length=0,Sn=t,Sn.length>0}function iM(e,t){const n=e.findIndex(t);return n<0?e.length:n}var oM=(e,t,n)=>Math.min(Math.max(n,e),t),sM={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},In="[-+]?\\d*\\.?\\d+",Ec=In+"%";function Ou(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var cM=new RegExp("rgb"+Ou(In,In,In)),uM=new RegExp("rgba"+Ou(In,In,In,In)),lM=new RegExp("hsl"+Ou(In,Ec,Ec)),dM=new RegExp("hsla"+Ou(In,Ec,Ec,In)),fM=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hM=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pM=/^#([0-9a-fA-F]{6})$/,mM=/^#([0-9a-fA-F]{8})$/;function gM(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=pM.exec(e))?parseInt(t[1]+"ff",16)>>>0:jr&&jr[e]!==void 0?jr[e]:(t=cM.exec(e))?(Fa(t[1])<<24|Fa(t[2])<<16|Fa(t[3])<<8|255)>>>0:(t=uM.exec(e))?(Fa(t[1])<<24|Fa(t[2])<<16|Fa(t[3])<<8|Ng(t[4]))>>>0:(t=fM.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=mM.exec(e))?parseInt(t[1],16)>>>0:(t=hM.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=lM.exec(e))?(Dg(Ig(t[1]),Rs(t[2]),Rs(t[3]))|255)>>>0:(t=dM.exec(e))?(Dg(Ig(t[1]),Rs(t[2]),Rs(t[3]))|Ng(t[4]))>>>0:null}function sd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Dg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=sd(a,r,e+1/3),o=sd(a,r,e),s=sd(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Fa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ig(e){return(parseFloat(e)%360+360)%360/360}function Ng(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Rs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Fg(e){let t=gM(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var jo=(e,t,n)=>{if(ae.fun(e))return e;if(ae.arr(e))return jo({range:e,output:t,extrapolate:n});if(ae.str(e.output[0]))return Qh(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(u=>u);return u=>{const l=bM(u,i);return vM(u,i[l],i[l+1],a[l],a[l+1],c,o,s,r.map)}};function vM(e,t,n,r,a,i,o,s,c){let u=c?c(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:a===1/0?u=u+r:u=u*(a-r)+r,u)}function bM(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var yM=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return oM(0,1,a/e)},$c=1.70158,As=$c*1.525,Lg=$c+1,Ug=2*Math.PI/3,Bg=2*Math.PI/4.5,js=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,xM={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Lg*e*e*e-$c*e*e,easeOutBack:e=>1+Lg*Math.pow(e-1,3)+$c*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((As+1)*2*e-As)/2:(Math.pow(2*e-2,2)*((As+1)*(e*2-2)+As)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Ug),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Ug)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Bg))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Bg)/2+1,easeInBounce:e=>1-js(1-e),easeOutBounce:js,easeInOutBounce:e=>e<.5?(1-js(1-2*e))/2:(1+js(2*e-1))/2,steps:yM},Po=Symbol.for("FluidValue.get"),li=Symbol.for("FluidValue.observers"),kn=e=>!!(e&&e[Po]),on=e=>e&&e[Po]?e[Po]():e,Wg=e=>e[li]||null;function wM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Do(e,t){const n=e[li];n&&n.forEach(r=>{wM(r,t)})}var Dx=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");_M(this,e)}},_M=(e,t)=>Ix(e,Po,t);function xi(e,t){if(e[Po]){let n=e[li];n||Ix(e,li,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Io(e,t){const n=e[li];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[li]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ix=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Js=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,TM=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,zg=new RegExp(`(${Js.source})(%|[a-z]+)`,"i"),CM=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Eu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Nx=e=>{const[t,n]=kM(e);if(!t||Xh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&Eu.test(n))return Nx(n);if(n)return n}return e},kM=e=>{const t=Eu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},cd,SM=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Fx=e=>{cd||(cd=jr?new RegExp(`(${Object.keys(jr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>on(i).replace(Eu,Nx).replace(TM,Fg).replace(cd,Fg)),n=t.map(i=>i.match(Js).map(Number)),a=n[0].map((i,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(i=>jo({...e,output:i}));return i=>{var c;const o=!zg.test(t[0])&&((c=t.find(u=>zg.test(u)))==null?void 0:c.replace(Js,""));let s=0;return t[0].replace(Js,()=>`${a[s++](i)}${o||""}`).replace(CM,SM)}},ep="react-spring: ",Lx=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${ep}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},OM=Lx(console.warn);function EM(){OM(`${ep}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $M=Lx(console.warn);function MM(){$M(`${ep}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function $u(e){return ae.str(e)&&(e[0]=="#"||/\d/.test(e)||!Xh()&&Eu.test(e)||e in(jr||{}))}var ta=Xh()?h.useEffect:h.useLayoutEffect,RM=()=>{const e=h.useRef(!1);return ta(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tp(){const e=h.useState()[1],t=RM();return()=>{t.current&&e(Math.random())}}function AM(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&jM(t,i.inputs)||(i={inputs:t,result:e()}):i=n,h.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function jM(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var np=e=>h.useEffect(e,PM),PM=[];function gf(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var No=Symbol.for("Animated:node"),DM=e=>!!e&&e[No]===e,qn=e=>e&&e[No],rp=(e,t)=>nM(e,No,t),Mu=e=>e&&e[No]&&e[No].getPayload(),Ux=class{constructor(){rp(this,this)}getPayload(){return this.payload||[]}},hs=class extends Ux{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ae.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new hs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ae.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ae.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Fo=class extends hs{constructor(e){super(0),this._string=null,this._toString=jo({output:[e,e]})}static create(e){return new Fo(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ae.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=jo({output:[this.getValue(),e]})),this._value=0,super.reset()}},Mc={dependencies:null},Ru=class extends Ux{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Jn(this.source,(n,r)=>{DM(n)?t[r]=n.getValue(e):kn(n)?t[r]=on(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Se(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Jn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Mc.dependencies&&kn(e)&&Mc.dependencies.add(e);const t=Mu(e);t&&Se(t,n=>this.add(n))}},Bx=class extends Ru{constructor(e){super(e)}static create(e){return new Bx(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(IM)),!0)}};function IM(e){return($u(e)?Fo:hs).create(e)}function vf(e){const t=qn(e);return t?t.constructor:ae.arr(e)?Bx:$u(e)?Fo:hs}var Hg=(e,t)=>{const n=!ae.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,a)=>{const i=h.useRef(null),o=n&&h.useCallback(v=>{i.current=LM(a,v)},[a]),[s,c]=FM(r,t),u=tp(),l=()=>{const v=i.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,s.getValue(!0)):!1)===!1&&u()},d=new NM(l,c),f=h.useRef();ta(()=>(f.current=d,Se(c,v=>xi(v,d)),()=>{f.current&&(Se(f.current.deps,v=>Io(v,f.current)),Me.cancel(f.current.update))})),h.useEffect(l,[]),np(()=>()=>{const v=f.current;Se(v.deps,m=>Io(m,v))});const p=t.getComponentProps(s.getValue());return ee.createElement(e,{...p,ref:o})})},NM=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Me.write(this.update)}};function FM(e,t){const n=new Set;return Mc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ru(e),Mc.dependencies=null,[e,n]}function LM(e,t){return e&&(ae.fun(e)?e(t):e.current=t),t}var Vg=Symbol.for("AnimatedComponent"),UM=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new Ru(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const s=qg(o)||"Anonymous";return ae.str(o)?o=i[o]||(i[o]=Hg(o,a)):o=o[Vg]||(o[Vg]=Hg(o,a)),o.displayName=`Animated(${s})`,o};return Jn(e,(o,s)=>{ae.arr(e)&&(s=qg(o)),i[s]=i(o)}),{animated:i}},qg=e=>ae.str(e)?e:e&&ae.str(e.displayName)?e.displayName:ae.fun(e)&&e.name||null;function sn(e,...t){return ae.fun(e)?e(...t):e}var co=(e,t)=>e===!0||!!(t&&e&&(ae.fun(e)?e(t):Jt(e).includes(t))),Wx=(e,t)=>ae.obj(e)?t&&e[t]:e,zx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,BM=e=>e,Au=(e,t=BM)=>{let n=WM;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);ae.und(i)||(r[a]=i)}return r},WM=["config","onProps","onStart","onChange","onPause","onResume","onRest"],zM={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function HM(e){const t={};let n=0;if(Jn(e,(r,a)=>{zM[a]||(t[a]=r,n++)}),n)return t}function ap(e){const t=HM(e);if(t){const n={to:t};return Jn(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Lo(e){return e=on(e),ae.arr(e)?e.map(Lo):$u(e)?Bn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Hx(e){for(const t in e)return!0;return!1}function bf(e){return ae.fun(e)||ae.arr(e)&&ae.obj(e[0])}function yf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Vx(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var ip={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},xf={...ip.default,mass:1,damping:1,easing:xM.linear,clamp:!1},VM=class{constructor(){this.velocity=0,Object.assign(this,xf)}};function qM(e,t,n){n&&(n={...n},Yg(n,t),t={...n,...t}),Yg(e,t),Object.assign(e,t);for(const o in xf)e[o]==null&&(e[o]=xf[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;return ae.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function Yg(e,t){if(!ae.und(t.decay))e.duration=void 0;else{const n=!ae.und(t.tension)||!ae.und(t.friction);(n||!ae.und(t.frequency)||!ae.und(t.damping)||!ae.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Gg=[],YM=class{constructor(){this.changed=!1,this.values=Gg,this.toValues=null,this.fromValues=Gg,this.config=new VM,this.immediate=!1}};function qx(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((o,s)=>{let c,u,l=co(n.cancel??(r==null?void 0:r.cancel),t);if(l)p();else{ae.und(n.pause)||(a.paused=co(n.pause,t));let v=r==null?void 0:r.pause;v!==!0&&(v=a.paused||co(v,t)),c=sn(n.delay||0,t),v?(a.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){a.resumeQueue.add(f),a.timeouts.delete(u),u.cancel(),c=u.time-Me.now()}function f(){c>0&&!Bn.skipAnimation?(a.delayed=!0,u=Me.setTimeout(p,c),a.pauseQueue.add(d),a.timeouts.add(u)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(u),e<=(a.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},o)}catch(v){s(v)}}})}var op=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ka(e.get()):t.every(n=>n.noop)?Yx(e.get()):jn(e.get(),t.every(n=>n.finished)),Yx=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),jn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ka=e=>({value:e,cancelled:!0,finished:!1});function Gx(e,t,n,r){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:c}=n;return!i&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const u=Au(t,(b,x)=>x==="onRest"?void 0:b);let l,d;const f=new Promise((b,x)=>(l=b,d=x)),p=b=>{const x=a<=(n.cancelId||0)&&Ka(r)||a!==n.asyncId&&jn(r,!1);if(x)throw b.result=x,d(b),b},v=(b,x)=>{const _=new Zg,y=new Kg;return(async()=>{if(Bn.skipAnimation)throw Uo(n),y.result=jn(r,!1),d(y),y;p(_);const T=ae.obj(b)?{...b}:{...x,to:b};T.parentId=a,Jn(u,(C,S)=>{ae.und(T[S])&&(T[S]=C)});const w=await r.start(T);return p(_),n.paused&&await new Promise(C=>{n.resumeQueue.add(C)}),w})()};let m;if(Bn.skipAnimation)return Uo(n),jn(r,!1);try{let b;ae.arr(e)?b=(async x=>{for(const _ of x)await v(_)})(e):b=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([b.then(l),f]),m=jn(r.get(),!0,!1)}catch(b){if(b instanceof Zg)m=b.result;else if(b instanceof Kg)m=b.result;else throw b}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?c:void 0)}return ae.fun(o)&&Me.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function Uo(e,t){oo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Zg=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Kg=class extends Error{constructor(){super("SkipAnimationSignal")}},wf=e=>e instanceof sp,GM=1,sp=class extends Dx{constructor(){super(...arguments),this.id=GM++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=qn(this);return e&&e.getValue()}to(...e){return Bn.to(this,e)}interpolate(...e){return EM(),Bn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Do(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Su.sort(this),Do(this,{type:"priority",parent:this,priority:e})}},ba=Symbol.for("SpringPhase"),Zx=1,_f=2,Tf=4,ud=e=>(e[ba]&Zx)>0,Cr=e=>(e[ba]&_f)>0,Wi=e=>(e[ba]&Tf)>0,Xg=(e,t)=>t?e[ba]|=_f|Zx:e[ba]&=~_f,Qg=(e,t)=>t?e[ba]|=Tf:e[ba]&=~Tf,ZM=class extends sp{constructor(e,t){if(super(),this.animation=new YM,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ae.und(e)||!ae.und(t)){const n=ae.obj(e)?{...e}:{...t,from:e};ae.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Cr(this)||this._state.asyncTo)||Wi(this)}get goal(){return on(this.animation.to)}get velocity(){const e=qn(this);return e instanceof hs?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return ud(this)}get isAnimating(){return Cr(this)}get isPaused(){return Wi(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=Mu(r.to);!o&&kn(r.to)&&(a=Jt(on(r.to))),r.values.forEach((u,l)=>{if(u.done)return;const d=u.constructor==Fo?1:o?o[l].lastPosition:a[l];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let v=u.elapsedTime+=e;const m=r.fromValues[l],b=u.v0!=null?u.v0:u.v0=ae.arr(i.velocity)?i.velocity[l]:i.velocity;let x;const _=i.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(ae.und(i.duration))if(i.decay){const y=i.decay===!0?.998:i.decay,T=Math.exp(-(1-y)*v);p=m+b/(1-y)*(1-T),f=Math.abs(u.lastPosition-p)<=_,x=b*T}else{x=u.lastVelocity==null?b:u.lastVelocity;const y=i.restVelocity||_/10,T=i.clamp?0:i.bounce,w=!ae.und(T),C=m==d?u.v0>0:m<d;let S,M=!1;const D=1,R=Math.ceil(e/D);for(let A=0;A<R&&(S=Math.abs(x)>y,!(!S&&(f=Math.abs(d-p)<=_,f)));++A){w&&(M=p==d||p>d==C,M&&(x=-x*T,p=d));const N=-i.tension*1e-6*(p-d),E=-i.friction*.001*x,j=(N+E)/i.mass;x=x+j*D,p=p+x*D}}else{let y=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,v=u.elapsedTime+=e)),y=(i.progress||0)+v/this._memoizedDuration,y=y>1?1:y<0?0:y,u.durationProgress=y),p=m+i.easing(y)*(d-m),x=(p-u.lastPosition)/e,f=y==1}u.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[l].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const s=qn(this),c=s.getValue();if(t){const u=on(r.to);(c!==u||n)&&!i.decay?(s.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return Me.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Cr(this)){const{to:e,config:t}=this.animation;Me.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return ae.und(e)?(n=this.queue||[],this.queue=[]):n=[ae.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>op(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Uo(this._state,e&&this._lastCallId),Me.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=ae.obj(n)?n[t]:n,(n==null||bf(n))&&(n=void 0),r=ae.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return ud(this)||(e.reverse&&([n,r]=[r,n]),r=on(r),ae.und(r)?qn(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Au(e,(o,s)=>/^on/.test(s)?Wx(o,n):o)),e0(this,e,"onProps"),Hi(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return qx(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Wi(this)||(Qg(this,!0),to(i.pauseQueue),Hi(this,"onPause",jn(this,zi(this,this.animation.to)),this))},resume:()=>{Wi(this)&&(Qg(this,!1),Cr(this)&&this._resume(),to(i.resumeQueue),Hi(this,"onResume",jn(this,zi(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=Kx(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ka(this));const r=!ae.und(e.to),a=!ae.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ka(this));const{key:i,defaultProps:o,animation:s}=this,{to:c,from:u}=s;let{to:l=c,from:d=u}=e;a&&!r&&(!t.default||ae.und(l))&&(l=d),t.reverse&&([l,d]=[d,l]);const f=!sr(d,u);f&&(s.from=d),d=on(d);const p=!sr(l,c);p&&this._focus(l);const v=bf(t.to),{config:m}=s,{decay:b,velocity:x}=m;(r||a)&&(m.velocity=0),t.config&&!v&&qM(m,sn(t.config,i),t.config!==o.config?sn(o.config,i):void 0);let _=qn(this);if(!_||ae.und(l))return n(jn(this,!0));const y=ae.und(t.reset)?a&&!t.default:!ae.und(d)&&co(t.reset,i),T=y?d:this.get(),w=Lo(l),C=ae.num(w)||ae.arr(w)||$u(w),S=!v&&(!C||co(o.immediate||t.immediate,i));if(p){const A=vf(l);if(A!==_.constructor)if(S)_=this._set(w);else throw Error(`Cannot animate between ${_.constructor.name} and ${A.name}, as the "to" prop suggests`)}const M=_.constructor;let D=kn(l),R=!1;if(!D){const A=y||!ud(this)&&f;(p||A)&&(R=sr(Lo(T),w),D=!R),(!sr(s.immediate,S)&&!S||!sr(m.decay,b)||!sr(m.velocity,x))&&(D=!0)}if(R&&Cr(this)&&(s.changed&&!y?D=!0:D||this._stop(c)),!v&&((D||kn(c))&&(s.values=_.getPayload(),s.toValues=kn(l)?null:M==Fo?[1]:Jt(w)),s.immediate!=S&&(s.immediate=S,!S&&!y&&this._set(c)),D)){const{onRest:A}=s;Se(XM,E=>e0(this,t,E));const N=jn(this,zi(this,c));to(this._pendingCalls,N),this._pendingCalls.add(n),s.changed&&Me.batchedUpdates(()=>{var E;s.changed=!y,A==null||A(N,this),y?sn(o.onRest,N):(E=s.onStart)==null||E.call(s,N,this)})}y&&this._set(T),v?n(Gx(t.to,t,this._state,this)):D?this._start():Cr(this)&&!p?this._pendingCalls.add(n):n(Yx(T))}_focus(e){const t=this.animation;e!==t.to&&(Wg(this)&&this._detach(),t.to=e,Wg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;kn(t)&&(xi(t,this),wf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;kn(e)&&Io(e,this)}_set(e,t=!0){const n=on(e);if(!ae.und(n)){const r=qn(this);if(!r||!sr(n,r.getValue())){const a=vf(n);!r||r.constructor!=a?rp(this,a.create(n)):r.setValue(n),r&&Me.batchedUpdates(()=>{this._onChange(n,t)})}}return qn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Hi(this,"onStart",jn(this,zi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),sn(this.animation.onChange,e,this)),sn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;qn(this).reset(on(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Cr(this)||(Xg(this,!0),Wi(this)||this._resume())}_resume(){Bn.skipAnimation?this.finish():Su.start(this)}_stop(e,t){if(Cr(this)){Xg(this,!1);const n=this.animation;Se(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Do(this,{type:"idle",parent:this});const r=t?Ka(this.get()):jn(this.get(),zi(this,e??n.to));to(this._pendingCalls,r),n.changed&&(n.changed=!1,Hi(this,"onRest",r,this))}}};function zi(e,t){const n=Lo(t),r=Lo(e.get());return sr(r,n)}function Kx(e,t=e.loop,n=e.to){const r=sn(t);if(r){const a=r!==!0&&ap(r),i=(a||e).reverse,o=!a||a.reset;return Bo({...e,loop:t,default:!1,pause:void 0,to:!i||bf(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function Bo(e){const{to:t,from:n}=e=ap(e),r=new Set;return ae.obj(t)&&Jg(t,r),ae.obj(n)&&Jg(n,r),e.keys=r.size?Array.from(r):null,e}function KM(e){const t=Bo(e);return ae.und(t.default)&&(t.default=Au(t)),t}function Jg(e,t){Jn(e,(n,r)=>n!=null&&t.add(r))}var XM=["onStart","onRest","onChange","onPause","onResume"];function e0(e,t,n){e.animation[n]=t[n]!==zx(t,n)?Wx(t[n],e.key):void 0}function Hi(e,t,...n){var r,a,i,o;(a=(r=e.animation)[t])==null||a.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var QM=["onStart","onChange","onRest"],JM=1,Xx=class{constructor(e,t){this.id=JM++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];ae.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Bo(e)),this}start(e){let{queue:t}=this;return e?t=Jt(e).map(Bo):this.queue=[],this._flush?this._flush(this,t):(n2(this,t),Cf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Se(Jt(t),r=>n[r].stop(!!e))}else Uo(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ae.und(e))this.start({pause:!0});else{const t=this.springs;Se(Jt(e),n=>t[n].pause())}return this}resume(e){if(ae.und(e))this.start({pause:!1});else{const t=this.springs;Se(Jt(e),n=>t[n].resume())}return this}each(e){Jn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,oo(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&oo(t,([s,c])=>{c.value=o,s(c,this,this._item)}),i&&(this._started=!1,oo(n,([s,c])=>{c.value=o,s(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Me.onFrame(this._onFrame)}};function Cf(e,t){return Promise.all(t.map(n=>Qx(e,n))).then(n=>op(e,n))}async function Qx(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:c}=t,u=ae.obj(t.default)&&t.default;o&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const l=ae.arr(a)||ae.fun(a)?a:void 0;l?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Se(QM,m=>{const b=t[m];if(ae.fun(b)){const x=e._events[m];t[m]=({finished:_,cancelled:y})=>{const T=x.get(b);T?(_||(T.finished=!1),y&&(T.cancelled=!0)):x.set(b,{value:null,finished:_||!1,cancelled:y||!1})},u&&(u[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,to(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||zx(t,"cancel")===!0;(l||p&&d.asyncId)&&f.push(qx(++e._lastAsyncId,{props:t,state:d,actions:{pause:pf,resume:pf,start(m,b){p?(Uo(d,e._lastAsyncId),b(Ka(e))):(m.onRest=s,b(Gx(l,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const v=op(e,await Promise.all(f));if(o&&v.finished&&!(n&&v.noop)){const m=Kx(t,o,a);if(m)return n2(e,[m]),Qx(e,m,!0)}return c&&Me.batchedUpdates(()=>c(v,e,e.item)),v}function kf(e,t){const n={...e.springs};return t&&Se(Jt(t),r=>{ae.und(r.keys)&&(r=Bo(r)),ae.obj(r.to)||(r={...r,to:void 0}),t2(n,r,a=>e2(a))}),Jx(e,n),n}function Jx(e,t){Jn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,xi(n,e))})}function e2(e,t){const n=new ZM;return n.key=e,t&&xi(n,t),n}function t2(e,t,n){t.keys&&Se(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function n2(e,t){Se(t,n=>{t2(e.springs,n,r=>e2(r,e))})}var ps=({children:e,...t})=>{const n=h.useContext(Rc),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=AM(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=Rc;return ee.createElement(i,{value:t},e)},Rc=e8(ps,{});ps.Provider=Rc.Provider;ps.Consumer=Rc.Consumer;function e8(e,t){return Object.assign(e,ee.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var r2=()=>{const e=[],t=function(r){MM();const a=[];return Se(e,(i,o)=>{if(ae.und(r))a.push(i.start());else{const s=n(r,i,o);s&&a.push(i.start(s))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return Se(e,r=>r.pause(...arguments)),this},t.resume=function(){return Se(e,r=>r.resume(...arguments)),this},t.set=function(r){Se(e,(a,i)=>{const o=ae.fun(r)?r(i,a):r;o&&a.set(o)})},t.start=function(r){const a=[];return Se(e,(i,o)=>{if(ae.und(r))a.push(i.start());else{const s=this._getProps(r,i,o);s&&a.push(i.start(s))}}),a},t.stop=function(){return Se(e,r=>r.stop(...arguments)),this},t.update=function(r){return Se(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return ae.fun(r)?r(i,a):r};return t._getProps=n,t};function t8(e,t,n){const r=ae.fun(t)&&t;r&&!n&&(n=[]);const a=h.useMemo(()=>r||arguments.length==3?r2():void 0,[]),i=h.useRef(0),o=tp(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const y=kf(x,_);return i.current>0&&!s.queue.length&&!Object.keys(y).some(w=>!x.springs[w])?Cf(x,_):new Promise(w=>{Jx(x,y),s.queue.push(()=>{w(Cf(x,_))}),o()})}}),[]),c=h.useRef([...s.ctrls]),u=[],l=gf(e)||0;h.useMemo(()=>{Se(c.current.slice(e,l),x=>{yf(x,a),x.stop(!0)}),c.current.length=e,d(l,e)},[e]),h.useMemo(()=>{d(0,Math.min(l,e))},n);function d(x,_){for(let y=x;y<_;y++){const T=c.current[y]||(c.current[y]=new Xx(null,s.flush)),w=r?r(y,T):t[y];w&&(u[y]=KM(w))}}const f=c.current.map((x,_)=>kf(x,u[_])),p=h.useContext(ps),v=gf(p),m=p!==v&&Hx(p);ta(()=>{i.current++,s.ctrls=c.current;const{queue:x}=s;x.length&&(s.queue=[],Se(x,_=>_())),Se(c.current,(_,y)=>{a==null||a.add(_),m&&_.start({default:p});const T=u[y];T&&(Vx(_,T.ref),_.ref?_.queue.push(T):_.start(T))})}),np(()=>()=>{Se(s.ctrls,x=>x.stop(!0))});const b=f.map(x=>({...x}));return a?[b,a]:b}function xr(e,t){const n=ae.fun(e),[[r],a]=t8(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}function Sa(e,t,n){const r=ae.fun(t)&&t,{reset:a,sort:i,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:l,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?r2():void 0,[]),p=Jt(e),v=[],m=h.useRef(null),b=a?null:m.current;ta(()=>{m.current=v}),np(()=>(Se(v,j=>{f==null||f.add(j.ctrl),j.ctrl.ref=f}),()=>{Se(m.current,j=>{j.expired&&clearTimeout(j.expirationId),yf(j.ctrl,f),j.ctrl.stop(!0)})}));const x=r8(p,r?r():t,b),_=a&&m.current||[];ta(()=>Se(_,({ctrl:j,item:P,key:F})=>{yf(j,f),sn(u,P,F)}));const y=[];if(b&&Se(b,(j,P)=>{j.expired?(clearTimeout(j.expirationId),_.push(j)):(P=y[P]=x.indexOf(j.key),~P&&(v[P]=j))}),Se(p,(j,P)=>{v[P]||(v[P]={key:x[P],item:j,phase:"mount",ctrl:new Xx},v[P].ctrl.item=j)}),y.length){let j=-1;const{leave:P}=r?r():t;Se(y,(F,B)=>{const L=b[B];~F?(j=v.indexOf(L),v[j]={...L,item:p[F]}):P&&v.splice(++j,0,L)})}ae.fun(i)&&v.sort((j,P)=>i(j.item,P.item));let T=-o;const w=tp(),C=Au(t),S=new Map,M=h.useRef(new Map),D=h.useRef(!1);Se(v,(j,P)=>{const F=j.key,B=j.phase,L=r?r():t;let W,I;const U=sn(L.delay||0,F);if(B=="mount")W=L.enter,I="enter";else{const J=x.indexOf(F)<0;if(B!="leave")if(J)W=L.leave,I="leave";else if(W=L.update)I="update";else return;else if(!J)W=L.enter,I="enter";else return}if(W=sn(W,j.item,P),W=ae.obj(W)?ap(W):{to:W},!W.config){const J=d||C.config;W.config=sn(J,j.item,P,I)}T+=o;const Y={...C,delay:U+T,ref:l,immediate:L.immediate,reset:!1,...W};if(I=="enter"&&ae.und(Y.from)){const J=r?r():t,Z=ae.und(J.initial)||b?J.from:J.initial;Y.from=sn(Z,j.item,P)}const{onResolve:te}=Y;Y.onResolve=J=>{sn(te,J);const Z=m.current,X=Z.find(re=>re.key===F);if(X&&!(J.cancelled&&X.phase!="update")&&X.ctrl.idle){const re=Z.every(z=>z.ctrl.idle);if(X.phase=="leave"){const z=sn(s,X.item);if(z!==!1){const V=z===!0?0:z;if(X.expired=!0,!re&&V>0){V<=2147483647&&(X.expirationId=setTimeout(w,V));return}}}re&&Z.some(z=>z.expired)&&(M.current.delete(X),c&&(D.current=!0),w())}};const G=kf(j.ctrl,Y);I==="leave"&&c?M.current.set(j,{phase:I,springs:G,payload:Y}):S.set(j,{phase:I,springs:G,payload:Y})});const R=h.useContext(ps),A=gf(R),N=R!==A&&Hx(R);ta(()=>{N&&Se(v,j=>{j.ctrl.start({default:R})})},[R]),Se(S,(j,P)=>{if(M.current.size){const F=v.findIndex(B=>B.key===P.key);v.splice(F,1)}}),ta(()=>{Se(M.current.size?M.current:S,({phase:j,payload:P},F)=>{const{ctrl:B}=F;F.phase=j,f==null||f.add(B),N&&j=="enter"&&B.start({default:R}),P&&(Vx(B,P.ref),(B.ref||f)&&!D.current?B.update(P):(B.start(P),D.current&&(D.current=!1)))})},a?void 0:n);const E=j=>ee.createElement(ee.Fragment,null,v.map((P,F)=>{const{springs:B}=S.get(P)||P.ctrl,L=j({...B},P.item,P,F);return L&&L.type?ee.createElement(L.type,{...L.props,key:ae.str(P.key)||ae.num(P.key)?P.key:P.ctrl.id,ref:L.ref}):L}));return f?[E,f]:E}var n8=1;function r8(e,{key:t,keys:n=t},r){if(n===null){const a=new Set;return e.map(i=>{const o=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!a.has(s));return o?(a.add(o),o.key):n8++})}return ae.und(n)?e:ae.fun(n)?e.map(n):Jt(n)}var a2=class extends sp{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=jo(...t);const n=this._get(),r=vf(n);rp(this,r.create(n))}advance(e){const t=this._get(),n=this.get();sr(t,n)||(qn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&t0(this._active)&&ld(this)}_get(){const e=ae.arr(this.source)?this.source.map(on):Jt(on(this.source));return this.calc(...e)}_start(){this.idle&&!t0(this._active)&&(this.idle=!1,Se(Mu(this),e=>{e.done=!1}),Bn.skipAnimation?(Me.batchedUpdates(()=>this.advance()),ld(this)):Su.start(this))}_attach(){let e=1;Se(Jt(this.source),t=>{kn(t)&&xi(t,this),wf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Se(Jt(this.source),e=>{kn(e)&&Io(e,this)}),this._active.clear(),ld(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Jt(this.source).reduce((t,n)=>Math.max(t,(wf(n)?n.priority:0)+1),0))}};function a8(e){return e.idle!==!1}function t0(e){return!e.size||Array.from(e).every(a8)}function ld(e){e.idle||(e.idle=!0,Se(Mu(e),t=>{t.done=!0}),Do(e,{type:"idle",parent:e}))}var Ur=(e,...t)=>new a2(e,t);Bn.assign({createStringInterpolator:Fx,to:(e,t)=>new a2(e,t)});var i2=/^--/;function i8(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!i2.test(e)&&!(uo.hasOwnProperty(e)&&uo[e])?t+"px":(""+t).trim()}var n0={};function o8(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:a,children:i,scrollTop:o,scrollLeft:s,viewBox:c,...u}=t,l=Object.values(u),d=Object.keys(u).map(f=>n||e.hasAttribute(f)?f:n0[f]||(n0[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));i!==void 0&&(e.textContent=i);for(const f in a)if(a.hasOwnProperty(f)){const p=i8(f,a[f]);i2.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,l[p])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),c!==void 0&&e.setAttribute("viewBox",c)}var uo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},s8=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),c8=["Webkit","Ms","Moz","O"];uo=Object.keys(uo).reduce((e,t)=>(c8.forEach(n=>e[s8(n,t)]=e[t]),e),uo);var u8=/^(matrix|translate|scale|rotate|skew)/,l8=/^(translate)/,d8=/^(rotate|skew)/,dd=(e,t)=>ae.num(e)&&e!==0?e+t:e,ec=(e,t)=>ae.arr(e)?e.every(n=>ec(n,t)):ae.num(e)?e===t:parseFloat(e)===t,f8=class extends Ru{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(s=>dd(s,"px")).join(",")})`,ec(o,0)])),Jn(r,(o,s)=>{if(s==="transform")a.push([o||""]),i.push(c=>[c,c===""]);else if(u8.test(s)){if(delete r[s],ae.und(o))return;const c=l8.test(s)?"px":d8.test(s)?"deg":"";a.push(Jt(o)),i.push(s==="rotate3d"?([u,l,d,f])=>[`rotate3d(${u},${l},${d},${dd(f,c)})`,ec(f,0)]:u=>[`${s}(${u.map(l=>dd(l,c)).join(",")})`,ec(u,s.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new h8(a,i)),super(r)}},h8=class extends Dx{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Se(this.inputs,(n,r)=>{const a=on(n[0]),[i,o]=this.transforms[r](ae.arr(a)?a:n.map(on));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Se(this.inputs,t=>Se(t,n=>kn(n)&&xi(n,this)))}observerRemoved(e){e==0&&Se(this.inputs,t=>Se(t,n=>kn(n)&&Io(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Do(this,e)}},p8=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Bn.assign({batchedUpdates:$r.unstable_batchedUpdates,createStringInterpolator:Fx,colors:sM});var m8=UM(p8,{applyAnimatedValues:o8,createAnimatedStyle:e=>new f8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),rt=m8.animated;function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ya.apply(this,arguments)}var g8={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},r0=function(e,t){return"translate("+e+"px, "+t+"px)"},o2=h.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=mt(),o=pn(),s=o.animate,c=o.config,u=u_(),l=u[0],d=u[1],f=h.useRef(!1),p=void 0,v=!1,m=d.width>0&&d.height>0,b=Math.round(n[0]),x=Math.round(n[1]);m&&(r==="top"?(b-=d.width/2,x-=d.height+14):r==="right"?(b+=14,x-=d.height/2):r==="bottom"?(b-=d.width/2,x+=14):r==="left"?(b-=d.width+14,x-=d.height/2):r==="center"&&(b-=d.width/2,x-=d.height/2),p={transform:r0(b,x)},f.current||(v=!0),f.current=[b,x]);var _=xr({to:p,config:c,immediate:!s||v}),y=ya({},g8,i.tooltip.wrapper,{transform:(t=_.transform)!=null?t:r0(b,x),opacity:_.transform?1:0});return g.jsx(rt.div,{ref:l,style:y,children:a})});o2.displayName="TooltipWrapper";var v8=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return g.jsx("span",{style:ya({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),s2=h.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,o=i!==void 0&&i,s=e.color,c=e.renderContent,u=mt(),l=Ml(a);if(typeof c=="function")t=c();else{var d=r;l!==void 0&&d!==void 0&&(d=l(d)),t=g.jsxs("div",{style:u.tooltip.basic,children:[o&&g.jsx(v8,{color:s,style:u.tooltip.chip}),d!==void 0?g.jsxs("span",{children:[n,": ",g.jsx("strong",{children:""+d})]}):n]})}return g.jsx("div",{style:u.tooltip.container,children:t})}),b8={width:"100%",borderCollapse:"collapse"},y8=h.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,o=mt();return a.length?(t=typeof i=="function"?i():g.jsxs("div",{children:[n&&n,g.jsx("table",{style:ya({},b8,o.tooltip.table),children:g.jsx("tbody",{children:a.map(function(s,c){return g.jsx("tr",{children:s.map(function(u,l){return g.jsx("td",{style:o.tooltip.tableCell,children:u},l)})},c)})})})]}),g.jsx("div",{style:o.tooltip.container,children:t})):null});y8.displayName="TableTooltip";var Sf=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=mt(),o=pn(),s=o.animate,c=o.config,u=h.useMemo(function(){return ya({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),l=xr({x1:t,x2:n,y1:r,y2:a,config:c,immediate:!s});return g.jsx(rt.line,ya({},l,{fill:"none",style:u}))});Sf.displayName="CrosshairLine";var x8=h.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,o=e.x,s=e.y;return i==="cross"?(t={x0:o,x1:o,y0:0,y1:a},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):i==="top"?t={x0:o,x1:o,y0:0,y1:s}:i==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):i==="right"?n={x0:o,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:o,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:o,x1:o,y0:s,y1:a}:i==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:0,x1:o,y0:s,y1:s}):i==="left"?n={x0:0,x1:o,y0:s,y1:s}:i==="x"?t={x0:o,x1:o,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),g.jsxs(g.Fragment,{children:[t&&g.jsx(Sf,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&g.jsx(Sf,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});x8.displayName="Crosshair";var c2=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Of={isVisible:!1,position:[null,null],content:null,anchor:null},u2=h.createContext(Of),w8=function(e){var t=h.useState(Of),n=t[0],r=t[1],a=h.useCallback(function(s,c,u){var l=c[0],d=c[1];u===void 0&&(u="top"),r({isVisible:!0,position:[l,d],anchor:u,content:s})},[r]),i=h.useCallback(function(s,c,u){u===void 0&&(u="top");var l=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===l.width?1:d/l.width,p="touches"in c?c.touches[0]:c,v=p.clientX,m=p.clientY,b=(v-l.left)*f,x=(m-l.top)*f;u!=="left"&&u!=="right"||(u=b<l.width/2?"right":"left"),r({isVisible:!0,position:[b,x],anchor:u,content:s})},[e,r]),o=h.useCallback(function(){r(Of)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:o}},[a,i,o]),state:n}},cp=function(){var e=h.useContext(c2);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},_8=function(){var e=h.useContext(u2);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},T8=function(e){return e.isVisible},C8=function(){var e=_8();return T8(e)?g.jsx(o2,{position:e.position,anchor:e.anchor,children:e.content}):null},k8=function(e){var t=e.container,n=e.children,r=w8(t),a=r.actions,i=r.state;return g.jsx(c2.Provider,{value:a,children:g.jsx(u2.Provider,{value:i,children:n})})};function S8(){this.__data__=[],this.size=0}var O8=S8;function E8(e,t){return e===t||e!==e&&t!==t}var ms=E8,$8=ms;function M8(e,t){for(var n=e.length;n--;)if($8(e[n][0],t))return n;return-1}var ju=M8,R8=ju,A8=Array.prototype,j8=A8.splice;function P8(e){var t=this.__data__,n=R8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():j8.call(t,n,1),--this.size,!0}var D8=P8,I8=ju;function N8(e){var t=this.__data__,n=I8(t,e);return n<0?void 0:t[n][1]}var F8=N8,L8=ju;function U8(e){return L8(this.__data__,e)>-1}var B8=U8,W8=ju;function z8(e,t){var n=this.__data__,r=W8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var H8=z8,V8=O8,q8=D8,Y8=F8,G8=B8,Z8=H8;function wi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wi.prototype.clear=V8;wi.prototype.delete=q8;wi.prototype.get=Y8;wi.prototype.has=G8;wi.prototype.set=Z8;var Pu=wi,K8=Pu;function X8(){this.__data__=new K8,this.size=0}var Q8=X8;function J8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var e7=J8;function t7(e){return this.__data__.get(e)}var n7=t7;function r7(e){return this.__data__.has(e)}var a7=r7,i7=typeof ws=="object"&&ws&&ws.Object===Object&&ws,l2=i7,o7=l2,s7=typeof self=="object"&&self&&self.Object===Object&&self,c7=o7||s7||Function("return this")(),rr=c7,u7=rr,l7=u7.Symbol,_i=l7,a0=_i,d2=Object.prototype,d7=d2.hasOwnProperty,f7=d2.toString,Vi=a0?a0.toStringTag:void 0;function h7(e){var t=d7.call(e,Vi),n=e[Vi];try{e[Vi]=void 0;var r=!0}catch{}var a=f7.call(e);return r&&(t?e[Vi]=n:delete e[Vi]),a}var p7=h7,m7=Object.prototype,g7=m7.toString;function v7(e){return g7.call(e)}var b7=v7,i0=_i,y7=p7,x7=b7,w7="[object Null]",_7="[object Undefined]",o0=i0?i0.toStringTag:void 0;function T7(e){return e==null?e===void 0?_7:w7:o0&&o0 in Object(e)?y7(e):x7(e)}var Yr=T7;function C7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ar=C7,k7=Yr,S7=ar,O7="[object AsyncFunction]",E7="[object Function]",$7="[object GeneratorFunction]",M7="[object Proxy]";function R7(e){if(!S7(e))return!1;var t=k7(e);return t==E7||t==$7||t==O7||t==M7}var Du=R7;const f2=St(Du);var A7=rr,j7=A7["__core-js_shared__"],P7=j7,fd=P7,s0=function(){var e=/[^.]+$/.exec(fd&&fd.keys&&fd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function D7(e){return!!s0&&s0 in e}var I7=D7,N7=Function.prototype,F7=N7.toString;function L7(e){if(e!=null){try{return F7.call(e)}catch{}try{return e+""}catch{}}return""}var h2=L7,U7=Du,B7=I7,W7=ar,z7=h2,H7=/[\\^$.*+?()[\]{}|]/g,V7=/^\[object .+?Constructor\]$/,q7=Function.prototype,Y7=Object.prototype,G7=q7.toString,Z7=Y7.hasOwnProperty,K7=RegExp("^"+G7.call(Z7).replace(H7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function X7(e){if(!W7(e)||B7(e))return!1;var t=U7(e)?K7:V7;return t.test(z7(e))}var Q7=X7;function J7(e,t){return e==null?void 0:e[t]}var eR=J7,tR=Q7,nR=eR;function rR(e,t){var n=nR(e,t);return tR(n)?n:void 0}var Oa=rR,aR=Oa,iR=rr,oR=aR(iR,"Map"),up=oR,sR=Oa,cR=sR(Object,"create"),Iu=cR,c0=Iu;function uR(){this.__data__=c0?c0(null):{},this.size=0}var lR=uR;function dR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fR=dR,hR=Iu,pR="__lodash_hash_undefined__",mR=Object.prototype,gR=mR.hasOwnProperty;function vR(e){var t=this.__data__;if(hR){var n=t[e];return n===pR?void 0:n}return gR.call(t,e)?t[e]:void 0}var bR=vR,yR=Iu,xR=Object.prototype,wR=xR.hasOwnProperty;function _R(e){var t=this.__data__;return yR?t[e]!==void 0:wR.call(t,e)}var TR=_R,CR=Iu,kR="__lodash_hash_undefined__";function SR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CR&&t===void 0?kR:t,this}var OR=SR,ER=lR,$R=fR,MR=bR,RR=TR,AR=OR;function Ti(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ti.prototype.clear=ER;Ti.prototype.delete=$R;Ti.prototype.get=MR;Ti.prototype.has=RR;Ti.prototype.set=AR;var jR=Ti,u0=jR,PR=Pu,DR=up;function IR(){this.size=0,this.__data__={hash:new u0,map:new(DR||PR),string:new u0}}var NR=IR;function FR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var LR=FR,UR=LR;function BR(e,t){var n=e.__data__;return UR(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Nu=BR,WR=Nu;function zR(e){var t=WR(this,e).delete(e);return this.size-=t?1:0,t}var HR=zR,VR=Nu;function qR(e){return VR(this,e).get(e)}var YR=qR,GR=Nu;function ZR(e){return GR(this,e).has(e)}var KR=ZR,XR=Nu;function QR(e,t){var n=XR(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var JR=QR,e9=NR,t9=HR,n9=YR,r9=KR,a9=JR;function Ci(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ci.prototype.clear=e9;Ci.prototype.delete=t9;Ci.prototype.get=n9;Ci.prototype.has=r9;Ci.prototype.set=a9;var lp=Ci,i9=Pu,o9=up,s9=lp,c9=200;function u9(e,t){var n=this.__data__;if(n instanceof i9){var r=n.__data__;if(!o9||r.length<c9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new s9(r)}return n.set(e,t),this.size=n.size,this}var l9=u9,d9=Pu,f9=Q8,h9=e7,p9=n7,m9=a7,g9=l9;function ki(e){var t=this.__data__=new d9(e);this.size=t.size}ki.prototype.clear=f9;ki.prototype.delete=h9;ki.prototype.get=p9;ki.prototype.has=m9;ki.prototype.set=g9;var Fu=ki,v9=Oa,b9=function(){try{var e=v9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),p2=b9,l0=p2;function y9(e,t,n){t=="__proto__"&&l0?l0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var dp=y9,x9=dp,w9=ms;function _9(e,t,n){(n!==void 0&&!w9(e[t],n)||n===void 0&&!(t in e))&&x9(e,t,n)}var m2=_9;function T9(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++a];if(n(i[c],c,i)===!1)break}return t}}var C9=T9,k9=C9,S9=k9(),g2=S9,Ac={exports:{}};Ac.exports;(function(e,t){var n=rr,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(u,l){if(l)return u.slice();var d=u.length,f=s?s(d):new u.constructor(d);return u.copy(f),f}e.exports=c})(Ac,Ac.exports);var v2=Ac.exports,O9=rr,E9=O9.Uint8Array,b2=E9,d0=b2;function $9(e){var t=new e.constructor(e.byteLength);return new d0(t).set(new d0(e)),t}var fp=$9,M9=fp;function R9(e,t){var n=t?M9(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var y2=R9;function A9(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var x2=A9,j9=ar,f0=Object.create,P9=function(){function e(){}return function(t){if(!j9(t))return{};if(f0)return f0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),D9=P9;function I9(e,t){return function(n){return e(t(n))}}var w2=I9,N9=w2,F9=N9(Object.getPrototypeOf,Object),hp=F9,L9=Object.prototype;function U9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||L9;return e===n}var pp=U9,B9=D9,W9=hp,z9=pp;function H9(e){return typeof e.constructor=="function"&&!z9(e)?B9(W9(e)):{}}var _2=H9;function V9(e){return e!=null&&typeof e=="object"}var zn=V9,q9=Yr,Y9=zn,G9="[object Arguments]";function Z9(e){return Y9(e)&&q9(e)==G9}var K9=Z9,h0=K9,X9=zn,T2=Object.prototype,Q9=T2.hasOwnProperty,J9=T2.propertyIsEnumerable,eA=h0(function(){return arguments}())?h0:function(e){return X9(e)&&Q9.call(e,"callee")&&!J9.call(e,"callee")},Lu=eA,tA=Array.isArray,hn=tA,nA=9007199254740991;function rA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nA}var mp=rA,aA=Du,iA=mp;function oA(e){return e!=null&&iA(e.length)&&!aA(e)}var Si=oA,sA=Si,cA=zn;function uA(e){return cA(e)&&sA(e)}var C2=uA,jc={exports:{}};function lA(){return!1}var dA=lA;jc.exports;(function(e,t){var n=rr,r=dA,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||r;e.exports=u})(jc,jc.exports);var Uu=jc.exports,fA=Yr,hA=hp,pA=zn,mA="[object Object]",gA=Function.prototype,vA=Object.prototype,k2=gA.toString,bA=vA.hasOwnProperty,yA=k2.call(Object);function xA(e){if(!pA(e)||fA(e)!=mA)return!1;var t=hA(e);if(t===null)return!0;var n=bA.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&k2.call(n)==yA}var gp=xA;const vp=St(gp);var wA=Yr,_A=mp,TA=zn,CA="[object Arguments]",kA="[object Array]",SA="[object Boolean]",OA="[object Date]",EA="[object Error]",$A="[object Function]",MA="[object Map]",RA="[object Number]",AA="[object Object]",jA="[object RegExp]",PA="[object Set]",DA="[object String]",IA="[object WeakMap]",NA="[object ArrayBuffer]",FA="[object DataView]",LA="[object Float32Array]",UA="[object Float64Array]",BA="[object Int8Array]",WA="[object Int16Array]",zA="[object Int32Array]",HA="[object Uint8Array]",VA="[object Uint8ClampedArray]",qA="[object Uint16Array]",YA="[object Uint32Array]",ft={};ft[LA]=ft[UA]=ft[BA]=ft[WA]=ft[zA]=ft[HA]=ft[VA]=ft[qA]=ft[YA]=!0;ft[CA]=ft[kA]=ft[NA]=ft[SA]=ft[FA]=ft[OA]=ft[EA]=ft[$A]=ft[MA]=ft[RA]=ft[AA]=ft[jA]=ft[PA]=ft[DA]=ft[IA]=!1;function GA(e){return TA(e)&&_A(e.length)&&!!ft[wA(e)]}var ZA=GA;function KA(e){return function(t){return e(t)}}var gs=KA,Pc={exports:{}};Pc.exports;(function(e,t){var n=l2,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Pc,Pc.exports);var Bu=Pc.exports,XA=ZA,QA=gs,p0=Bu,m0=p0&&p0.isTypedArray,JA=m0?QA(m0):XA,bp=JA;function ej(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var S2=ej,tj=dp,nj=ms,rj=Object.prototype,aj=rj.hasOwnProperty;function ij(e,t,n){var r=e[t];(!(aj.call(e,t)&&nj(r,n))||n===void 0&&!(t in e))&&tj(e,t,n)}var yp=ij,oj=yp,sj=dp;function cj(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),a?sj(n,s,c):oj(n,s,c)}return n}var Oi=cj;function uj(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var lj=uj,dj=9007199254740991,fj=/^(?:0|[1-9]\d*)$/;function hj(e,t){var n=typeof e;return t=t??dj,!!t&&(n=="number"||n!="symbol"&&fj.test(e))&&e>-1&&e%1==0&&e<t}var Wu=hj,pj=lj,mj=Lu,gj=hn,vj=Uu,bj=Wu,yj=bp,xj=Object.prototype,wj=xj.hasOwnProperty;function _j(e,t){var n=gj(e),r=!n&&mj(e),a=!n&&!r&&vj(e),i=!n&&!r&&!a&&yj(e),o=n||r||a||i,s=o?pj(e.length,String):[],c=s.length;for(var u in e)(t||wj.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||bj(u,c)))&&s.push(u);return s}var O2=_j;function Tj(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Cj=Tj,kj=ar,Sj=pp,Oj=Cj,Ej=Object.prototype,$j=Ej.hasOwnProperty;function Mj(e){if(!kj(e))return Oj(e);var t=Sj(e),n=[];for(var r in e)r=="constructor"&&(t||!$j.call(e,r))||n.push(r);return n}var Rj=Mj,Aj=O2,jj=Rj,Pj=Si;function Dj(e){return Pj(e)?Aj(e,!0):jj(e)}var vs=Dj,Ij=Oi,Nj=vs;function Fj(e){return Ij(e,Nj(e))}var Lj=Fj,g0=m2,Uj=v2,Bj=y2,Wj=x2,zj=_2,v0=Lu,b0=hn,Hj=C2,Vj=Uu,qj=Du,Yj=ar,Gj=gp,Zj=bp,y0=S2,Kj=Lj;function Xj(e,t,n,r,a,i,o){var s=y0(e,n),c=y0(t,n),u=o.get(c);if(u){g0(e,n,u);return}var l=i?i(s,c,n+"",e,t,o):void 0,d=l===void 0;if(d){var f=b0(c),p=!f&&Vj(c),v=!f&&!p&&Zj(c);l=c,f||p||v?b0(s)?l=s:Hj(s)?l=Wj(s):p?(d=!1,l=Uj(c,!0)):v?(d=!1,l=Bj(c,!0)):l=[]:Gj(c)||v0(c)?(l=s,v0(s)?l=Kj(s):(!Yj(s)||qj(s))&&(l=zj(c))):d=!1}d&&(o.set(c,l),a(l,c,r,i,o),o.delete(c)),g0(e,n,l)}var Qj=Xj,Jj=Fu,eP=m2,tP=g2,nP=Qj,rP=ar,aP=vs,iP=S2;function E2(e,t,n,r,a){e!==t&&tP(t,function(i,o){if(a||(a=new Jj),rP(i))nP(e,t,o,n,E2,r,a);else{var s=r?r(iP(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),eP(e,o,s)}},aP)}var oP=E2;function sP(e){return e}var zu=sP;function cP(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var uP=cP,lP=uP,x0=Math.max;function dP(e,t,n){return t=x0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=x0(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),lP(e,this,s)}}var $2=dP;function fP(e){return function(){return e}}var hP=fP,pP=hP,w0=p2,mP=zu,gP=w0?function(e,t){return w0(e,"toString",{configurable:!0,enumerable:!1,value:pP(t),writable:!0})}:mP,vP=gP,bP=800,yP=16,xP=Date.now;function wP(e){var t=0,n=0;return function(){var r=xP(),a=yP-(r-n);if(n=r,a>0){if(++t>=bP)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _P=wP,TP=vP,CP=_P,kP=CP(TP),M2=kP,SP=zu,OP=$2,EP=M2;function $P(e,t){return EP(OP(e,t,SP),e+"")}var xp=$P,MP=ms,RP=Si,AP=Wu,jP=ar;function PP(e,t,n){if(!jP(n))return!1;var r=typeof t;return(r=="number"?RP(n)&&AP(t,n.length):r=="string"&&t in n)?MP(n[t],e):!1}var R2=PP,DP=xp,IP=R2;function NP(e){return DP(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&IP(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var FP=NP,LP=oP,UP=FP,BP=UP(function(e,t,n){LP(e,t,n)}),WP=BP;const zP=St(WP);var HP=Yr,VP=zn,qP="[object Symbol]";function YP(e){return typeof e=="symbol"||VP(e)&&HP(e)==qP}var Hu=YP,GP=hn,ZP=Hu,KP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XP=/^\w*$/;function QP(e,t){if(GP(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ZP(e)?!0:XP.test(e)||!KP.test(e)||t!=null&&e in Object(t)}var wp=QP,A2=lp,JP="Expected a function";function _p(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(JP);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(_p.Cache||A2),n}_p.Cache=A2;var eD=_p,tD=eD,nD=500;function rD(e){var t=tD(e,function(r){return n.size===nD&&n.clear(),r}),n=t.cache;return t}var aD=rD,iD=aD,oD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sD=/\\(\\)?/g,cD=iD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(oD,function(n,r,a,i){t.push(a?i.replace(sD,"$1"):r||n)}),t}),uD=cD;function lD(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Vu=lD,_0=_i,dD=Vu,fD=hn,hD=Hu,pD=1/0,T0=_0?_0.prototype:void 0,C0=T0?T0.toString:void 0;function j2(e){if(typeof e=="string")return e;if(fD(e))return dD(e,j2)+"";if(hD(e))return C0?C0.call(e):"";var t=e+"";return t=="0"&&1/e==-pD?"-0":t}var mD=j2,gD=mD;function vD(e){return e==null?"":gD(e)}var bD=vD,yD=hn,xD=wp,wD=uD,_D=bD;function TD(e,t){return yD(e)?e:xD(e,t)?[e]:wD(_D(e))}var Ei=TD,CD=Hu,kD=1/0;function SD(e){if(typeof e=="string"||CD(e))return e;var t=e+"";return t=="0"&&1/e==-kD?"-0":t}var $i=SD,OD=Ei,ED=$i;function $D(e,t){t=OD(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ED(t[n++])];return n&&n==r?e:void 0}var bs=$D,MD=bs;function RD(e,t,n){var r=e==null?void 0:MD(e,t);return r===void 0?n:r}var P2=RD;const vr=St(P2);var AD=yp,jD=Ei,PD=Wu,k0=ar,DD=$i;function ID(e,t,n,r){if(!k0(e))return e;t=jD(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var c=DD(t[a]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=o){var l=s[c];u=r?r(l,c,s):void 0,u===void 0&&(u=k0(l)?l:PD(t[a+1])?[]:{})}AD(s,c,u),s=s[c]}return e}var D2=ID,ND=D2;function FD(e,t,n){return e==null?e:ND(e,t,n)}var LD=FD;const no=St(LD);function qu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Tp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mi(){}var xa=.7,di=1/xa,Xa="\\s*([+-]?\\d+)\\s*",Wo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",UD=/^#([0-9a-f]{3,8})$/,BD=new RegExp(`^rgb\\(${Xa},${Xa},${Xa}\\)$`),WD=new RegExp(`^rgb\\(${Kn},${Kn},${Kn}\\)$`),zD=new RegExp(`^rgba\\(${Xa},${Xa},${Xa},${Wo}\\)$`),HD=new RegExp(`^rgba\\(${Kn},${Kn},${Kn},${Wo}\\)$`),VD=new RegExp(`^hsl\\(${Wo},${Kn},${Kn}\\)$`),qD=new RegExp(`^hsla\\(${Wo},${Kn},${Kn},${Wo}\\)$`),S0={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};qu(Mi,zo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:O0,formatHex:O0,formatHex8:YD,formatHsl:GD,formatRgb:E0,toString:E0});function O0(){return this.rgb().formatHex()}function YD(){return this.rgb().formatHex8()}function GD(){return N2(this).formatHsl()}function E0(){return this.rgb().formatRgb()}function zo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=UD.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?$0(t):n===3?new qt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ps(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ps(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=BD.exec(e))?new qt(t[1],t[2],t[3],1):(t=WD.exec(e))?new qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zD.exec(e))?Ps(t[1],t[2],t[3],t[4]):(t=HD.exec(e))?Ps(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VD.exec(e))?A0(t[1],t[2]/100,t[3]/100,1):(t=qD.exec(e))?A0(t[1],t[2]/100,t[3]/100,t[4]):S0.hasOwnProperty(e)?$0(S0[e]):e==="transparent"?new qt(NaN,NaN,NaN,0):null}function $0(e){return new qt(e>>16&255,e>>8&255,e&255,1)}function Ps(e,t,n,r){return r<=0&&(e=t=n=NaN),new qt(e,t,n,r)}function I2(e){return e instanceof Mi||(e=zo(e)),e?(e=e.rgb(),new qt(e.r,e.g,e.b,e.opacity)):new qt}function fi(e,t,n,r){return arguments.length===1?I2(e):new qt(e,t,n,r??1)}function qt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}qu(qt,fi,Tp(Mi,{brighter(e){return e=e==null?di:Math.pow(di,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qt(ua(this.r),ua(this.g),ua(this.b),Dc(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:M0,formatHex:M0,formatHex8:ZD,formatRgb:R0,toString:R0}));function M0(){return`#${na(this.r)}${na(this.g)}${na(this.b)}`}function ZD(){return`#${na(this.r)}${na(this.g)}${na(this.b)}${na((isNaN(this.opacity)?1:this.opacity)*255)}`}function R0(){const e=Dc(this.opacity);return`${e===1?"rgb(":"rgba("}${ua(this.r)}, ${ua(this.g)}, ${ua(this.b)}${e===1?")":`, ${e})`}`}function Dc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ua(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function na(e){return e=ua(e),(e<16?"0":"")+e.toString(16)}function A0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pn(e,t,n,r)}function N2(e){if(e instanceof Pn)return new Pn(e.h,e.s,e.l,e.opacity);if(e instanceof Mi||(e=zo(e)),!e)return new Pn;if(e instanceof Pn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,c=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?i+a:2-i-a,o*=60):s=c>0&&c<1?0:o,new Pn(o,s,c,e.opacity)}function KD(e,t,n,r){return arguments.length===1?N2(e):new Pn(e,t,n,r??1)}function Pn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}qu(Pn,KD,Tp(Mi,{brighter(e){return e=e==null?di:Math.pow(di,e),new Pn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Pn(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,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new qt(hd(e>=240?e-240:e+120,a,r),hd(e,a,r),hd(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Pn(j0(this.h),Ds(this.s),Ds(this.l),Dc(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=Dc(this.opacity);return`${e===1?"hsl(":"hsla("}${j0(this.h)}, ${Ds(this.s)*100}%, ${Ds(this.l)*100}%${e===1?")":`, ${e})`}`}}));function j0(e){return e=(e||0)%360,e<0?e+360:e}function Ds(e){return Math.max(0,Math.min(1,e||0))}function hd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const XD=Math.PI/180,QD=180/Math.PI;var F2=-.14861,Cp=1.78277,kp=-.29227,Yu=-.90649,Ho=1.97294,P0=Ho*Yu,D0=Ho*Cp,I0=Cp*kp-Yu*F2;function JD(e){if(e instanceof la)return new la(e.h,e.s,e.l,e.opacity);e instanceof qt||(e=I2(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(I0*r+P0*t-D0*n)/(I0+P0-D0),i=r-a,o=(Ho*(n-a)-kp*i)/Yu,s=Math.sqrt(o*o+i*i)/(Ho*a*(1-a)),c=s?Math.atan2(o,i)*QD-120:NaN;return new la(c<0?c+360:c,s,a,e.opacity)}function er(e,t,n,r){return arguments.length===1?JD(e):new la(e,t,n,r??1)}function la(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}qu(la,er,Tp(Mi,{brighter(e){return e=e==null?di:Math.pow(di,e),new la(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new la(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*XD,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new qt(255*(t+n*(F2*r+Cp*a)),255*(t+n*(kp*r+Yu*a)),255*(t+n*(Ho*r)),this.opacity)}}));function eI(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function tI(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return eI((n-r/t)*t,o,a,i,s)}}const Gu=e=>()=>e;function L2(e,t){return function(n){return e+n*t}}function nI(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function rI(e,t){var n=t-e;return n?L2(e,n>180||n<-180?n-360*Math.round(n/360):n):Gu(isNaN(e)?t:e)}function aI(e){return(e=+e)==1?Qa:function(t,n){return n-t?nI(t,n,e):Gu(isNaN(t)?n:t)}}function Qa(e,t){var n=t-e;return n?L2(e,n):Gu(isNaN(e)?t:e)}const N0=function e(t){var n=aI(t);function r(a,i){var o=n((a=fi(a)).r,(i=fi(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=Qa(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=c(l),a.opacity=u(l),a+""}}return r.gamma=e,r}(1);function iI(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,s;for(o=0;o<n;++o)s=fi(t[o]),r[o]=s.r||0,a[o]=s.g||0,i[o]=s.b||0;return r=e(r),a=e(a),i=e(i),s.opacity=1,function(c){return s.r=r(c),s.g=a(c),s.b=i(c),s+""}}}var oI=iI(tI);function sI(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function cI(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uI(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=Sp(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function lI(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ic(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function dI(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Sp(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Ef=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pd=new RegExp(Ef.source,"g");function fI(e){return function(){return e}}function hI(e){return function(t){return e(t)+""}}function U2(e,t){var n=Ef.lastIndex=pd.lastIndex=0,r,a,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=Ef.exec(e))&&(a=pd.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,c.push({i:o,x:Ic(r,a)})),n=pd.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?hI(c[0].x):fI(t):(t=c.length,function(u){for(var l=0,d;l<t;++l)s[(d=c[l]).i]=d.x(u);return s.join("")})}function Sp(e,t){var n=typeof t,r;return t==null||n==="boolean"?Gu(t):(n==="number"?Ic:n==="string"?(r=zo(t))?(t=r,N0):U2:t instanceof zo?N0:t instanceof Date?lI:cI(t)?sI:Array.isArray(t)?uI:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?dI:Ic)(e,t)}function pI(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function B2(e){return function t(n){n=+n;function r(a,i){var o=e((a=er(a)).h,(i=er(i)).h),s=Qa(a.s,i.s),c=Qa(a.l,i.l),u=Qa(a.opacity,i.opacity);return function(l){return a.h=o(l),a.s=s(l),a.l=c(Math.pow(l,n)),a.opacity=u(l),a+""}}return r.gamma=t,r}(1)}B2(rI);var Op=B2(Qa),mI=Yr,gI=hn,vI=zn,bI="[object String]";function yI(e){return typeof e=="string"||!gI(e)&&vI(e)&&mI(e)==bI}var xI=yI;const wI=St(xI);function _I(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var W2=_I;const ye=St(W2);function tc(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function TI(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ep(e){let t,n,r;e.length!==2?(t=tc,n=(s,c)=>tc(e(s),c),r=(s,c)=>e(s)-c):(t=e===tc||e===TI?e:CI,n=e,r=e);function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<0?u=d+1:l=d}while(u<l)}return u}function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<=0?u=d+1:l=d}while(u<l)}return u}function o(s,c,u=0,l=s.length){const d=a(s,c,u,l-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:a,center:o,right:i}}function CI(){return 0}function kI(e){return e===null?NaN:+e}const SI=Ep(tc),OI=SI.right;Ep(kI).center;class F0 extends Map{constructor(t,n=MI){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(L0(this,t))}has(t){return super.has(L0(this,t))}set(t,n){return super.set(EI(this,t),n)}delete(t){return super.delete($I(this,t))}}function L0({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function EI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function $I({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function MI(e){return e!==null&&typeof e=="object"?e.valueOf():e}const RI=Math.sqrt(50),AI=Math.sqrt(10),jI=Math.sqrt(2);function Nc(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=RI?10:i>=AI?5:i>=jI?2:1;let s,c,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?Nc(e,t,n*2):[s,c,u]}function $f(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?Nc(t,e,n):Nc(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(o<0)for(let u=0;u<s;++u)c[u]=(i-u)/-o;else for(let u=0;u<s;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(a+u)/-o;else for(let u=0;u<s;++u)c[u]=(a+u)*o;return c}function Mf(e,t,n){return t=+t,e=+e,n=+n,Nc(e,t,n)[2]}function Rf(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Mf(t,e,n):Mf(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function PI(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function Ea(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const U0=Symbol("implicit");function ra(){var e=new F0,t=[],n=[],r=U0;function a(i){let o=e.get(i);if(o===void 0){if(r!==U0)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new F0;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return ra(t,n).unknown(r)},Ea.apply(a,arguments),a}function $p(){var e=ra().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function d(){var f=t().length,p=a<r,v=p?a:r,m=p?r:a;i=(m-v)/Math.max(1,f-c+u*2),s&&(i=Math.floor(i)),v+=(m-v-i*(f-c))*l,o=i*(1-c),s&&(v=Math.round(v),o=Math.round(o));var b=PI(f).map(function(x){return v+i*x});return n(p?b.reverse():b)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,u=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},e.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),d()):l},e.copy=function(){return $p(t(),[r,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},Ea.apply(d(),arguments)}function z2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return z2(t())},e}function DI(){return z2($p.apply(null,arguments).paddingInner(1))}function II(e){return function(){return e}}function NI(e){return+e}var B0=[0,1];function Ha(e){return e}function Af(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:II(isNaN(t)?NaN:.5)}function FI(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function LI(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Af(a,r),i=n(o,i)):(r=Af(r,a),i=n(i,o)),function(s){return i(r(s))}}function UI(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=Af(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var c=OI(e,s,1,r)-1;return i[c](a[c](s))}}function Zu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mp(){var e=B0,t=B0,n=Sp,r,a,i,o=Ha,s,c,u;function l(){var f=Math.min(e.length,t.length);return o!==Ha&&(o=FI(e[0],e[f-1])),s=f>2?UI:LI,c=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(c||(c=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(a((u||(u=s(t,e.map(r),Ic)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,NI),l()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),l()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=pI,l()},d.clamp=function(f){return arguments.length?(o=f?!0:Ha,l()):o!==Ha},d.interpolate=function(f){return arguments.length?(n=f,l()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,a=p,l()}}function H2(){return Mp()(Ha,Ha)}function BI(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Fc(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function hi(e){return e=Fc(Math.abs(e)),e?e[1]:NaN}function WI(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function zI(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var HI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vo(e){if(!(t=HI.exec(e)))throw new Error("invalid format: "+e);var t;return new Rp({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]})}Vo.prototype=Rp.prototype;function Rp(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+""}Rp.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 VI(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var V2;function qI(e,t){var n=Fc(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(V2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Fc(e,Math.max(0,t+i-1))[0]}function W0(e,t){var n=Fc(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const z0={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:BI,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return W0(e*100,t)},r:W0,s:qI,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function H0(e){return e}var V0=Array.prototype.map,q0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function YI(e){var t=e.grouping===void 0||e.thousands===void 0?H0:WI(V0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?H0:zI(V0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Vo(d);var f=d.fill,p=d.align,v=d.sign,m=d.symbol,b=d.zero,x=d.width,_=d.comma,y=d.precision,T=d.trim,w=d.type;w==="n"?(_=!0,w="g"):z0[w]||(y===void 0&&(y=12),T=!0,w="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var C=m==="$"?n:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",S=m==="$"?r:/[%p]/.test(w)?o:"",M=z0[w],D=/[defgprs%]/.test(w);y=y===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function R(A){var N=C,E=S,j,P,F;if(w==="c")E=M(A)+E,A="";else{A=+A;var B=A<0||1/A<0;if(A=isNaN(A)?c:M(Math.abs(A),y),T&&(A=VI(A)),B&&+A==0&&v!=="+"&&(B=!1),N=(B?v==="("?v:s:v==="-"||v==="("?"":v)+N,E=(w==="s"?q0[8+V2/3]:"")+E+(B&&v==="("?")":""),D){for(j=-1,P=A.length;++j<P;)if(F=A.charCodeAt(j),48>F||F>57){E=(F===46?a+A.slice(j+1):A.slice(j))+E,A=A.slice(0,j);break}}}_&&!b&&(A=t(A,1/0));var L=N.length+A.length+E.length,W=L<x?new Array(x-L+1).join(f):"";switch(_&&b&&(A=t(W+A,W.length?x-E.length:1/0),W=""),p){case"<":A=N+A+E+W;break;case"=":A=N+W+A+E;break;case"^":A=W.slice(0,L=W.length>>1)+N+A+E+W.slice(L);break;default:A=W+N+A+E;break}return i(A)}return R.toString=function(){return d+""},R}function l(d,f){var p=u((d=Vo(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(hi(f)/3)))*3,m=Math.pow(10,-v),b=q0[8+v/3];return function(x){return p(m*x)+b}}return{format:u,formatPrefix:l}}var Is,ys,q2;GI({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function GI(e){return Is=YI(e),ys=Is.format,q2=Is.formatPrefix,Is}function ZI(e){return Math.max(0,-hi(Math.abs(e)))}function KI(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(hi(t)/3)))*3-hi(Math.abs(e)))}function XI(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,hi(t)-hi(e))+1}function QI(e,t,n,r){var a=Rf(e,t,n),i;switch(r=Vo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=KI(a,o))&&(r.precision=i),q2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=XI(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=ZI(a))&&(r.precision=i-(r.type==="%")*2);break}}return ys(r)}function Y2(e){var t=e.domain;return e.ticks=function(n){var r=t();return $f(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return QI(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],c,u,l=10;for(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);l-- >0;){if(u=Mf(o,s,n),u===c)return r[a]=o,r[i]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function G2(){var e=H2();return e.copy=function(){return Zu(e,G2())},Ea.apply(e,arguments),Y2(e)}function Z2(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function Y0(e){return Math.log(e)}function G0(e){return Math.exp(e)}function JI(e){return-Math.log(-e)}function eN(e){return-Math.exp(-e)}function tN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function nN(e){return e===10?tN:e===Math.E?Math.exp:t=>Math.pow(e,t)}function rN(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 Z0(e){return(t,n)=>-e(-t,n)}function aN(e){const t=e(Y0,G0),n=t.domain;let r=10,a,i;function o(){return a=rN(r),i=nN(r),n()[0]<0?(a=Z0(a),i=Z0(i),e(JI,eN)):e(Y0,G0),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const c=n();let u=c[0],l=c[c.length-1];const d=l<u;d&&([u,l]=[l,u]);let f=a(u),p=a(l),v,m;const b=s==null?10:+s;let x=[];if(!(r%1)&&p-f<b){if(f=Math.floor(f),p=Math.ceil(p),u>0){for(;f<=p;++f)for(v=1;v<r;++v)if(m=f<0?v/i(-f):v*i(f),!(m<u)){if(m>l)break;x.push(m)}}else for(;f<=p;++f)for(v=r-1;v>=1;--v)if(m=f>0?v/i(-f):v*i(f),!(m<u)){if(m>l)break;x.push(m)}x.length*2<b&&(x=$f(u,l,b))}else x=$f(f,p,Math.min(p-f,b)).map(i);return d?x.reverse():x},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Vo(c)).precision==null&&(c.trim=!0),c=ys(c)),s===1/0)return c;const u=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/i(Math.round(a(l)));return d*r<r-.5&&(d*=r),d<=u?c(l):""}},t.nice=()=>n(Z2(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function K2(){const e=aN(Mp()).domain([1,10]);return e.copy=()=>Zu(e,K2()).base(e.base()),Ea.apply(e,arguments),e}function K0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function X0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function iN(e){var t=1,n=e(K0(t),X0(t));return n.constant=function(r){return arguments.length?e(K0(t=+r),X0(t)):t},Y2(n)}function X2(){var e=iN(Mp());return e.copy=function(){return Zu(e,X2()).constant(e.constant())},Ea.apply(e,arguments)}const md=new Date,gd=new Date;function Pt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let u;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=i=>Pt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(md.setTime(+i),gd.setTime(+o),e(md),e(gd),Math.floor(n(md,gd))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Lc=Pt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Lc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Lc);Lc.range;const dr=1e3,On=dr*60,fr=On*60,br=fr*24,Ap=br*7,Q0=br*30,vd=br*365,aa=Pt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getUTCSeconds());aa.range;const jp=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dr)},(e,t)=>{e.setTime(+e+t*On)},(e,t)=>(t-e)/On,e=>e.getMinutes());jp.range;const Pp=Pt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*On)},(e,t)=>(t-e)/On,e=>e.getUTCMinutes());Pp.range;const Dp=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dr-e.getMinutes()*On)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getHours());Dp.range;const Ip=Pt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getUTCHours());Ip.range;const Np=Pt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*On)/br,e=>e.getDate()-1);Np.range;const Q2=Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>e.getUTCDate()-1);Q2.range;const J2=Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>Math.floor(e/br));J2.range;function $a(e){return Pt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*On)/Ap)}const Fp=$a(0),oN=$a(1),sN=$a(2),cN=$a(3),uN=$a(4),lN=$a(5),dN=$a(6);Fp.range;oN.range;sN.range;cN.range;uN.range;lN.range;dN.range;function Ma(e){return Pt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ap)}const Lp=Ma(0),fN=Ma(1),hN=Ma(2),pN=Ma(3),mN=Ma(4),gN=Ma(5),vN=Ma(6);Lp.range;fN.range;hN.range;pN.range;mN.range;gN.range;vN.range;const Up=Pt(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());Up.range;const Bp=Pt(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());Bp.range;const Ku=Pt(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());Ku.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ku.range;const Xu=Pt(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());Xu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Xu.range;function ew(e,t,n,r,a,i){const o=[[aa,1,dr],[aa,5,5*dr],[aa,15,15*dr],[aa,30,30*dr],[i,1,On],[i,5,5*On],[i,15,15*On],[i,30,30*On],[a,1,fr],[a,3,3*fr],[a,6,6*fr],[a,12,12*fr],[r,1,br],[r,2,2*br],[n,1,Ap],[t,1,Q0],[t,3,3*Q0],[e,1,vd]];function s(u,l,d){const f=l<u;f&&([u,l]=[l,u]);const p=d&&typeof d.range=="function"?d:c(u,l,d),v=p?p.range(u,+l+1):[];return f?v.reverse():v}function c(u,l,d){const f=Math.abs(l-u)/d,p=Ep(([,,b])=>b).right(o,f);if(p===o.length)return e.every(Rf(u/vd,l/vd,d));if(p===0)return Lc.every(Math.max(Rf(u,l,d),1));const[v,m]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return v.every(m)}return[s,c]}const[bN,yN]=ew(Xu,Bp,Lp,J2,Ip,Pp),[xN,wN]=ew(Ku,Up,Fp,Np,Dp,jp);var bd=new Date,yd=new Date;function kt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var c=[],u;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=function(i){return kt(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return bd.setTime(+i),yd.setTime(+o),e(bd),e(yd),Math.floor(n(bd,yd))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}var qo=kt(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});qo.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?kt(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):qo};qo.range;var Uc=1e3,wa=6e4,Bc=36e5,tw=864e5,nw=6048e5,jf=kt(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Uc)},function(e,t){return(t-e)/Uc},function(e){return e.getUTCSeconds()});jf.range;var rw=kt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Uc)},function(e,t){e.setTime(+e+t*wa)},function(e,t){return(t-e)/wa},function(e){return e.getMinutes()});rw.range;var aw=kt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Uc-e.getMinutes()*wa)},function(e,t){e.setTime(+e+t*Bc)},function(e,t){return(t-e)/Bc},function(e){return e.getHours()});aw.range;var Wp=kt(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wa)/tw},function(e){return e.getDate()-1});Wp.range;function Ra(e){return kt(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*wa)/nw})}var Wc=Ra(0),Yo=Ra(1),iw=Ra(2),ow=Ra(3),_a=Ra(4),sw=Ra(5),cw=Ra(6);Wc.range;Yo.range;iw.range;ow.range;_a.range;sw.range;cw.range;var uw=kt(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});uw.range;var Br=kt(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Br.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:kt(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Br.range;var lw=kt(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*wa)},function(e,t){return(t-e)/wa},function(e){return e.getUTCMinutes()});lw.range;var dw=kt(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Bc)},function(e,t){return(t-e)/Bc},function(e){return e.getUTCHours()});dw.range;var zp=kt(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/tw},function(e){return e.getUTCDate()-1});zp.range;function Aa(e){return kt(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/nw})}var zc=Aa(0),Go=Aa(1),fw=Aa(2),hw=Aa(3),Ta=Aa(4),pw=Aa(5),mw=Aa(6);zc.range;Go.range;fw.range;hw.range;Ta.range;pw.range;mw.range;var gw=kt(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});gw.range;var Wr=kt(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Wr.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:kt(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Wr.range;function xd(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 wd(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 qi(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _N(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Yi(a),l=Gi(a),d=Yi(i),f=Gi(i),p=Yi(o),v=Gi(o),m=Yi(s),b=Gi(s),x=Yi(c),_=Gi(c),y={a:B,A:L,b:W,B:I,c:null,d:av,e:av,f:VN,g:tF,G:rF,H:WN,I:zN,j:HN,L:vw,m:qN,M:YN,p:U,q:Y,Q:sv,s:cv,S:GN,u:ZN,U:KN,V:XN,w:QN,W:JN,x:null,X:null,y:eF,Y:nF,Z:aF,"%":ov},T={a:te,A:G,b:J,B:Z,c:null,d:iv,e:iv,f:cF,g:bF,G:xF,H:iF,I:oF,j:sF,L:yw,m:uF,M:lF,p:X,q:re,Q:sv,s:cv,S:dF,u:fF,U:hF,V:pF,w:mF,W:gF,x:null,X:null,y:vF,Y:yF,Z:wF,"%":ov},w={a:R,A,b:N,B:E,c:j,d:nv,e:nv,f:FN,g:tv,G:ev,H:rv,I:rv,j:PN,L:NN,m:jN,M:DN,p:D,q:AN,Q:UN,s:BN,S:IN,u:ON,U:EN,V:$N,w:SN,W:MN,x:P,X:F,y:tv,Y:ev,Z:RN,"%":LN};y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),T.x=C(n,T),T.X=C(r,T),T.c=C(t,T);function C(z,V){return function(oe){var k=[],pe=-1,me=0,de=z.length,Re,Oe,lt;for(oe instanceof Date||(oe=new Date(+oe));++pe<de;)z.charCodeAt(pe)===37&&(k.push(z.slice(me,pe)),(Oe=J0[Re=z.charAt(++pe)])!=null?Re=z.charAt(++pe):Oe=Re==="e"?" ":"0",(lt=V[Re])&&(Re=lt(oe,Oe)),k.push(Re),me=pe+1);return k.push(z.slice(me,pe)),k.join("")}}function S(z,V){return function(oe){var k=qi(1900,void 0,1),pe=M(k,z,oe+="",0),me,de;if(pe!=oe.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(me=wd(qi(k.y,0,1)),de=me.getUTCDay(),me=de>4||de===0?Go.ceil(me):Go(me),me=zp.offset(me,(k.V-1)*7),k.y=me.getUTCFullYear(),k.m=me.getUTCMonth(),k.d=me.getUTCDate()+(k.w+6)%7):(me=xd(qi(k.y,0,1)),de=me.getDay(),me=de>4||de===0?Yo.ceil(me):Yo(me),me=Wp.offset(me,(k.V-1)*7),k.y=me.getFullYear(),k.m=me.getMonth(),k.d=me.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),de="Z"in k?wd(qi(k.y,0,1)).getUTCDay():xd(qi(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(de+5)%7:k.w+k.U*7-(de+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,wd(k)):xd(k)}}function M(z,V,oe,k){for(var pe=0,me=V.length,de=oe.length,Re,Oe;pe<me;){if(k>=de)return-1;if(Re=V.charCodeAt(pe++),Re===37){if(Re=V.charAt(pe++),Oe=w[Re in J0?V.charAt(pe++):Re],!Oe||(k=Oe(z,oe,k))<0)return-1}else if(Re!=oe.charCodeAt(k++))return-1}return k}function D(z,V,oe){var k=u.exec(V.slice(oe));return k?(z.p=l.get(k[0].toLowerCase()),oe+k[0].length):-1}function R(z,V,oe){var k=p.exec(V.slice(oe));return k?(z.w=v.get(k[0].toLowerCase()),oe+k[0].length):-1}function A(z,V,oe){var k=d.exec(V.slice(oe));return k?(z.w=f.get(k[0].toLowerCase()),oe+k[0].length):-1}function N(z,V,oe){var k=x.exec(V.slice(oe));return k?(z.m=_.get(k[0].toLowerCase()),oe+k[0].length):-1}function E(z,V,oe){var k=m.exec(V.slice(oe));return k?(z.m=b.get(k[0].toLowerCase()),oe+k[0].length):-1}function j(z,V,oe){return M(z,t,V,oe)}function P(z,V,oe){return M(z,n,V,oe)}function F(z,V,oe){return M(z,r,V,oe)}function B(z){return o[z.getDay()]}function L(z){return i[z.getDay()]}function W(z){return c[z.getMonth()]}function I(z){return s[z.getMonth()]}function U(z){return a[+(z.getHours()>=12)]}function Y(z){return 1+~~(z.getMonth()/3)}function te(z){return o[z.getUTCDay()]}function G(z){return i[z.getUTCDay()]}function J(z){return c[z.getUTCMonth()]}function Z(z){return s[z.getUTCMonth()]}function X(z){return a[+(z.getUTCHours()>=12)]}function re(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var V=C(z+="",y);return V.toString=function(){return z},V},parse:function(z){var V=S(z+="",!1);return V.toString=function(){return z},V},utcFormat:function(z){var V=C(z+="",T);return V.toString=function(){return z},V},utcParse:function(z){var V=S(z+="",!0);return V.toString=function(){return z},V}}}var J0={"-":"",_:" ",0:"0"},Ft=/^\s*\d+/,TN=/^%/,CN=/[\\^$*+?|[\]().{}]/g;function qe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function kN(e){return e.replace(CN,"\\$&")}function Yi(e){return new RegExp("^(?:"+e.map(kN).join("|")+")","i")}function Gi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function SN(e,t,n){var r=Ft.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ON(e,t,n){var r=Ft.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function EN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $N(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function MN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ev(e,t,n){var r=Ft.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tv(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function RN(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AN(e,t,n){var r=Ft.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nv(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function PN(e,t,n){var r=Ft.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function rv(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function DN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function IN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function NN(e,t,n){var r=Ft.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function FN(e,t,n){var r=Ft.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LN(e,t,n){var r=TN.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function UN(e,t,n){var r=Ft.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function BN(e,t,n){var r=Ft.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function av(e,t){return qe(e.getDate(),t,2)}function WN(e,t){return qe(e.getHours(),t,2)}function zN(e,t){return qe(e.getHours()%12||12,t,2)}function HN(e,t){return qe(1+Wp.count(Br(e),e),t,3)}function vw(e,t){return qe(e.getMilliseconds(),t,3)}function VN(e,t){return vw(e,t)+"000"}function qN(e,t){return qe(e.getMonth()+1,t,2)}function YN(e,t){return qe(e.getMinutes(),t,2)}function GN(e,t){return qe(e.getSeconds(),t,2)}function ZN(e){var t=e.getDay();return t===0?7:t}function KN(e,t){return qe(Wc.count(Br(e)-1,e),t,2)}function bw(e){var t=e.getDay();return t>=4||t===0?_a(e):_a.ceil(e)}function XN(e,t){return e=bw(e),qe(_a.count(Br(e),e)+(Br(e).getDay()===4),t,2)}function QN(e){return e.getDay()}function JN(e,t){return qe(Yo.count(Br(e)-1,e),t,2)}function eF(e,t){return qe(e.getFullYear()%100,t,2)}function tF(e,t){return e=bw(e),qe(e.getFullYear()%100,t,2)}function nF(e,t){return qe(e.getFullYear()%1e4,t,4)}function rF(e,t){var n=e.getDay();return e=n>=4||n===0?_a(e):_a.ceil(e),qe(e.getFullYear()%1e4,t,4)}function aF(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qe(t/60|0,"0",2)+qe(t%60,"0",2)}function iv(e,t){return qe(e.getUTCDate(),t,2)}function iF(e,t){return qe(e.getUTCHours(),t,2)}function oF(e,t){return qe(e.getUTCHours()%12||12,t,2)}function sF(e,t){return qe(1+zp.count(Wr(e),e),t,3)}function yw(e,t){return qe(e.getUTCMilliseconds(),t,3)}function cF(e,t){return yw(e,t)+"000"}function uF(e,t){return qe(e.getUTCMonth()+1,t,2)}function lF(e,t){return qe(e.getUTCMinutes(),t,2)}function dF(e,t){return qe(e.getUTCSeconds(),t,2)}function fF(e){var t=e.getUTCDay();return t===0?7:t}function hF(e,t){return qe(zc.count(Wr(e)-1,e),t,2)}function xw(e){var t=e.getUTCDay();return t>=4||t===0?Ta(e):Ta.ceil(e)}function pF(e,t){return e=xw(e),qe(Ta.count(Wr(e),e)+(Wr(e).getUTCDay()===4),t,2)}function mF(e){return e.getUTCDay()}function gF(e,t){return qe(Go.count(Wr(e)-1,e),t,2)}function vF(e,t){return qe(e.getUTCFullYear()%100,t,2)}function bF(e,t){return e=xw(e),qe(e.getUTCFullYear()%100,t,2)}function yF(e,t){return qe(e.getUTCFullYear()%1e4,t,4)}function xF(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ta(e):Ta.ceil(e),qe(e.getUTCFullYear()%1e4,t,4)}function wF(){return"+0000"}function ov(){return"%"}function sv(e){return+e}function cv(e){return Math.floor(+e/1e3)}var La,Qu,ww,_w,Tw;_F({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 _F(e){return La=_N(e),Qu=La.format,ww=La.parse,_w=La.utcFormat,Tw=La.utcParse,La}function TF(e){return new Date(e)}function CF(e){return e instanceof Date?+e:+new Date(+e)}function Hp(e,t,n,r,a,i,o,s,c,u){var l=H2(),d=l.invert,f=l.domain,p=u(".%L"),v=u(":%S"),m=u("%I:%M"),b=u("%I %p"),x=u("%a %d"),_=u("%b %d"),y=u("%B"),T=u("%Y");function w(C){return(c(C)<C?p:s(C)<C?v:o(C)<C?m:i(C)<C?b:r(C)<C?a(C)<C?x:_:n(C)<C?y:T)(C)}return l.invert=function(C){return new Date(d(C))},l.domain=function(C){return arguments.length?f(Array.from(C,CF)):f().map(TF)},l.ticks=function(C){var S=f();return e(S[0],S[S.length-1],C??10)},l.tickFormat=function(C,S){return S==null?w:u(S)},l.nice=function(C){var S=f();return(!C||typeof C.range!="function")&&(C=t(S[0],S[S.length-1],C??10)),C?f(Z2(S,C)):l},l.copy=function(){return Zu(l,Hp(e,t,n,r,a,i,o,s,c,u))},l}function kF(){return Ea.apply(Hp(xN,wN,Ku,Up,Fp,Np,Dp,jp,aa,Qu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function SF(){return Ea.apply(Hp(bN,yN,Xu,Bp,Lp,Q2,Ip,Pp,aa,_w).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pe(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const Cw=Pe("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),kw=Pe("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Sw=Pe("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Ow=Pe("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ew=Pe("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),$w=Pe("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Mw=Pe("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Rw=Pe("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Vp=Pe("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),OF=Pe("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),ot=e=>oI(e[e.length-1]);var Ju=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Pe);const EF=ot(Ju);var el=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Pe);const $F=ot(el);var tl=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Pe);const MF=ot(tl);var nl=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Pe);const RF=ot(nl);var rl=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Pe);const AF=ot(rl);var al=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Pe);const jF=ot(al);var il=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Pe);const PF=ot(il);var ol=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Pe);const DF=ot(ol);var sl=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Pe);const IF=ot(sl);var cl=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Pe);const NF=ot(cl);var ul=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Pe);const FF=ot(ul);var ll=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Pe);const LF=ot(ll);var dl=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Pe);const UF=ot(dl);var fl=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Pe);const BF=ot(fl);var hl=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Pe);const WF=ot(hl);var pl=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Pe);const zF=ot(pl);var ml=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Pe);const HF=ot(ml);var gl=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Pe);const VF=ot(gl);var vl=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Pe);const qF=ot(vl);var bl=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Pe);const YF=ot(bl);var yl=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Pe);const GF=ot(yl);var xl=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Pe);const ZF=ot(xl);var wl=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Pe);const KF=ot(wl);var _l=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Pe);const XF=ot(_l);var Tl=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Pe);const QF=ot(Tl);var Cl=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Pe);const JF=ot(Cl);var kl=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Pe);const eL=ot(kl);function tL(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const nL=Op(er(300,.5,0),er(-240,.5,1));var rL=Op(er(-100,.75,.35),er(80,1.5,.8)),aL=Op(er(260,.75,.35),er(80,1.5,.8)),Ns=er();function iL(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ns.h=360*e-100,Ns.s=1.5-1.5*t,Ns.l=.8-.9*t,Ns+""}var Fs=fi(),oL=Math.PI/3,sL=Math.PI*2/3;function cL(e){var t;return e=(.5-e)*Math.PI,Fs.r=255*(t=Math.sin(e))*t,Fs.g=255*(t=Math.sin(e+oL))*t,Fs.b=255*(t=Math.sin(e+sL))*t,Fs+""}function uL(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Sl(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const lL=Sl(Pe("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var dL=Sl(Pe("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),fL=Sl(Pe("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),hL=Sl(Pe("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),pL="__lodash_hash_undefined__";function mL(e){return this.__data__.set(e,pL),this}var gL=mL;function vL(e){return this.__data__.has(e)}var bL=vL,yL=lp,xL=gL,wL=bL;function Hc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new yL;++t<n;)this.add(e[t])}Hc.prototype.add=Hc.prototype.push=xL;Hc.prototype.has=wL;var qp=Hc;function _L(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var TL=_L;function CL(e){return e!==e}var kL=CL;function SL(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var OL=SL,EL=TL,$L=kL,ML=OL;function RL(e,t,n){return t===t?ML(e,t,n):EL(e,$L,n)}var AL=RL,jL=AL;function PL(e,t){var n=e==null?0:e.length;return!!n&&jL(e,t,0)>-1}var Aw=PL;function DL(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var jw=DL;function IL(e,t){return e.has(t)}var Yp=IL,NL=qp,FL=Aw,LL=jw,UL=Vu,BL=gs,WL=Yp,zL=200;function HL(e,t,n,r){var a=-1,i=FL,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=UL(t,BL(n))),r?(i=LL,o=!1):t.length>=zL&&(i=WL,o=!1,t=new NL(t));e:for(;++a<s;){var l=e[a],d=n==null?l:n(l);if(l=r||l!==0?l:0,o&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(l)}else i(t,d,r)||c.push(l)}return c}var VL=HL,qL=VL,YL=xp,GL=C2,ZL=YL(function(e,t){return GL(e)?qL(e,t):[]}),KL=ZL;const Pw=St(KL);function ht(e){return function(){return e}}const uv=Math.abs,zt=Math.atan2,Gr=Math.cos,XL=Math.max,_d=Math.min,Hn=Math.sin,Va=Math.sqrt,Ht=1e-12,Zo=Math.PI,Vc=Zo/2,nc=2*Zo;function QL(e){return e>1?0:e<-1?Zo:Math.acos(e)}function lv(e){return e>=1?Vc:e<=-1?-Vc:Math.asin(e)}const Pf=Math.PI,Df=2*Pf,Qr=1e-6,JL=Df-Qr;function Dw(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function eU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Dw;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class tU{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Dw:eU(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,c=r-t,u=a-n,l=o-t,d=s-n,f=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Qr)if(!(Math.abs(d*c-u*l)>Qr)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,v=a-s,m=c*c+u*u,b=p*p+v*v,x=Math.sqrt(m),_=Math.sqrt(f),y=i*Math.tan((Pf-Math.acos((m+f-b)/(2*x*_)))/2),T=y/_,w=y/x;Math.abs(T-1)>Qr&&this._append`L${t+T*l},${n+T*d}`,this._append`A${i},${i},0,0,${+(d*p>l*v)},${this._x1=t+w*c},${this._y1=n+w*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),c=r*Math.sin(a),u=t+s,l=n+c,d=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Qr||Math.abs(this._y1-l)>Qr)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Df+Df),f>JL?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=l}`:f>Qr&&this._append`A${r},${r},0,${+(f>=Pf)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Iw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new tU(t)}function nU(e){return e.innerRadius}function rU(e){return e.outerRadius}function aU(e){return e.startAngle}function iU(e){return e.endAngle}function oU(e){return e&&e.padAngle}function sU(e,t,n,r,a,i,o,s){var c=n-e,u=r-t,l=o-a,d=s-i,f=d*c-l*u;if(!(f*f<Ht))return f=(l*(t-i)-d*(e-a))/f,[e+f*c,t+f*u]}function Ls(e,t,n,r,a,i,o){var s=e-n,c=t-r,u=(o?i:-i)/Va(s*s+c*c),l=u*c,d=-u*s,f=e+l,p=t+d,v=n+l,m=r+d,b=(f+v)/2,x=(p+m)/2,_=v-f,y=m-p,T=_*_+y*y,w=a-i,C=f*m-v*p,S=(y<0?-1:1)*Va(XL(0,w*w*T-C*C)),M=(C*y-_*S)/T,D=(-C*_-y*S)/T,R=(C*y+_*S)/T,A=(-C*_+y*S)/T,N=M-b,E=D-x,j=R-b,P=A-x;return N*N+E*E>j*j+P*P&&(M=R,D=A),{cx:M,cy:D,x01:-l,y01:-d,x11:M*(a/w-1),y11:D*(a/w-1)}}function cU(){var e=nU,t=rU,n=ht(0),r=null,a=aU,i=iU,o=oU,s=null,c=Iw(u);function u(){var l,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),v=a.apply(this,arguments)-Vc,m=i.apply(this,arguments)-Vc,b=uv(m-v),x=m>v;if(s||(s=l=c()),p<f&&(d=p,p=f,f=d),!(p>Ht))s.moveTo(0,0);else if(b>nc-Ht)s.moveTo(p*Gr(v),p*Hn(v)),s.arc(0,0,p,v,m,!x),f>Ht&&(s.moveTo(f*Gr(m),f*Hn(m)),s.arc(0,0,f,m,v,x));else{var _=v,y=m,T=v,w=m,C=b,S=b,M=o.apply(this,arguments)/2,D=M>Ht&&(r?+r.apply(this,arguments):Va(f*f+p*p)),R=_d(uv(p-f)/2,+n.apply(this,arguments)),A=R,N=R,E,j;if(D>Ht){var P=lv(D/f*Hn(M)),F=lv(D/p*Hn(M));(C-=P*2)>Ht?(P*=x?1:-1,T+=P,w-=P):(C=0,T=w=(v+m)/2),(S-=F*2)>Ht?(F*=x?1:-1,_+=F,y-=F):(S=0,_=y=(v+m)/2)}var B=p*Gr(_),L=p*Hn(_),W=f*Gr(w),I=f*Hn(w);if(R>Ht){var U=p*Gr(y),Y=p*Hn(y),te=f*Gr(T),G=f*Hn(T),J;if(b<Zo)if(J=sU(B,L,te,G,U,Y,W,I)){var Z=B-J[0],X=L-J[1],re=U-J[0],z=Y-J[1],V=1/Hn(QL((Z*re+X*z)/(Va(Z*Z+X*X)*Va(re*re+z*z)))/2),oe=Va(J[0]*J[0]+J[1]*J[1]);A=_d(R,(f-oe)/(V-1)),N=_d(R,(p-oe)/(V+1))}else A=N=0}S>Ht?N>Ht?(E=Ls(te,G,B,L,p,N,x),j=Ls(U,Y,W,I,p,N,x),s.moveTo(E.cx+E.x01,E.cy+E.y01),N<R?s.arc(E.cx,E.cy,N,zt(E.y01,E.x01),zt(j.y01,j.x01),!x):(s.arc(E.cx,E.cy,N,zt(E.y01,E.x01),zt(E.y11,E.x11),!x),s.arc(0,0,p,zt(E.cy+E.y11,E.cx+E.x11),zt(j.cy+j.y11,j.cx+j.x11),!x),s.arc(j.cx,j.cy,N,zt(j.y11,j.x11),zt(j.y01,j.x01),!x))):(s.moveTo(B,L),s.arc(0,0,p,_,y,!x)):s.moveTo(B,L),!(f>Ht)||!(C>Ht)?s.lineTo(W,I):A>Ht?(E=Ls(W,I,U,Y,f,-A,x),j=Ls(B,L,te,G,f,-A,x),s.lineTo(E.cx+E.x01,E.cy+E.y01),A<R?s.arc(E.cx,E.cy,A,zt(E.y01,E.x01),zt(j.y01,j.x01),!x):(s.arc(E.cx,E.cy,A,zt(E.y01,E.x01),zt(E.y11,E.x11),!x),s.arc(0,0,f,zt(E.cy+E.y11,E.cx+E.x11),zt(j.cy+j.y11,j.cx+j.x11),x),s.arc(j.cx,j.cy,A,zt(j.y11,j.x11),zt(j.y01,j.x01),!x))):s.arc(0,0,f,w,T,x)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Zo/2;return[Gr(d)*l,Hn(d)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ht(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ht(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ht(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ht(+l),u):r},u.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ht(+l),u):a},u.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ht(+l),u):i},u.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ht(+l),u):o},u.context=function(l){return arguments.length?(s=l??null,u):s},u}function Gp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Nw(e){this._context=e}Nw.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 Fw(e){return new Nw(e)}function uU(e){return e[0]}function lU(e){return e[1]}function dU(e,t){var n=ht(!0),r=null,a=Fw,i=null,o=Iw(s);e=typeof e=="function"?e:e===void 0?uU:ht(e),t=typeof t=="function"?t:t===void 0?lU:ht(t);function s(c){var u,l=(c=Gp(c)).length,d,f=!1,p;for(r==null&&(i=a(p=o())),u=0;u<=l;++u)!(u<l&&n(d=c[u],u,c))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,u,c),+t(d,u,c));if(p)return i=null,p+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:ht(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:ht(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:ht(!!c),s):n},s.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),s):a},s.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),s):r},s}function fU(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function hU(e){return e}function pU(){var e=hU,t=fU,n=null,r=ht(0),a=ht(nc),i=ht(0);function o(s){var c,u=(s=Gp(s)).length,l,d,f=0,p=new Array(u),v=new Array(u),m=+r.apply(this,arguments),b=Math.min(nc,Math.max(-nc,a.apply(this,arguments)-m)),x,_=Math.min(Math.abs(b)/u,i.apply(this,arguments)),y=_*(b<0?-1:1),T;for(c=0;c<u;++c)(T=v[p[c]=c]=+e(s[c],c,s))>0&&(f+=T);for(t!=null?p.sort(function(w,C){return t(v[w],v[C])}):n!=null&&p.sort(function(w,C){return n(s[w],s[C])}),c=0,d=f?(b-u*y)/f:0;c<u;++c,m=x)l=p[c],T=v[l],x=m+(T>0?T*d:0)+y,v[l]={data:s[l],index:c,value:T,startAngle:m,endAngle:x,padAngle:_};return v}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:ht(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ht(+s),o):r},o.endAngle=function(s){return arguments.length?(a=typeof s=="function"?s:ht(+s),o):a},o.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ht(+s),o):i},o}function zr(){}function qc(e,t,n){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+n)/6)}function Ol(e){this._context=e}Ol.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:qc(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:qc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mU(e){return new Ol(e)}function Lw(e){this._context=e}Lw.prototype={areaStart:zr,areaEnd:zr,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:qc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gU(e){return new Lw(e)}function Uw(e){this._context=e}Uw.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vU(e){return new Uw(e)}function Bw(e,t){this._basis=new Ol(e),this._beta=t}Bw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*i),this._beta*t[s]+(1-this._beta)*(a+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const bU=function e(t){function n(r){return t===1?new Ol(r):new Bw(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Yc(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Zp(e,t){this._context=e,this._k=(1-t)/6}Zp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Yc(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Yc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const yU=function e(t){function n(r){return new Zp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Kp(e,t){this._context=e,this._k=(1-t)/6}Kp.prototype={areaStart:zr,areaEnd:zr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Yc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xU=function e(t){function n(r){return new Kp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Xp(e,t){this._context=e,this._k=(1-t)/6}Xp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wU=function e(t){function n(r){return new Xp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Qp(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Ht){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Ht){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function Ww(e,t){this._context=e,this._alpha=t}Ww.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:Qp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _U=function e(t){function n(r){return t?new Ww(r,t):new Zp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function zw(e,t){this._context=e,this._alpha=t}zw.prototype={areaStart:zr,areaEnd:zr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Qp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const TU=function e(t){function n(r){return t?new zw(r,t):new Kp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Hw(e,t){this._context=e,this._alpha=t}Hw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Qp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const CU=function e(t){function n(r){return t?new Hw(r,t):new Xp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Vw(e){this._context=e}Vw.prototype={areaStart:zr,areaEnd:zr,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 kU(e){return new Vw(e)}function dv(e){return e<0?-1:1}function fv(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(dv(i)+dv(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function hv(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Td(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function Gc(e){this._context=e}Gc.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:Td(this,this._t0,hv(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 n=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,Td(this,hv(this,n=fv(this,e,t)),n);break;default:Td(this,this._t0,n=fv(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function qw(e){this._context=new Yw(e)}(qw.prototype=Object.create(Gc.prototype)).point=function(e,t){Gc.prototype.point.call(this,t,e)};function Yw(e){this._context=e}Yw.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,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function SU(e){return new Gc(e)}function OU(e){return new qw(e)}function Gw(e){this._context=e}Gw.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=pv(e),a=pv(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===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 pv(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function EU(e){return new Gw(e)}function El(e,t){this._context=e,this._t=t}El.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function $U(e){return new El(e,.5)}function MU(e){return new El(e,0)}function RU(e){return new El(e,1)}function mv(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function gv(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function AU(e,t){return e[t]}function jU(e){const t=[];return t.key=e,t}function PU(){var e=ht([]),t=gv,n=mv,r=AU;function a(i){var o=Array.from(e.apply(this,arguments),jU),s,c=o.length,u=-1,l;for(const d of i)for(s=0,++u;s<c;++s)(o[s][u]=[0,+r(d,o[s].key,u,i)]).data=d;for(s=0,l=Gp(t(o));s<c;++s)o[l[s]].index=s;return n(o,l),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ht(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:ht(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?gv:typeof i=="function"?i:ht(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??mv,a):n},a}function DU(e,t){if((c=e.length)>0)for(var n,r=0,a,i,o,s,c,u=e[t[0]].length;r<u;++r)for(o=s=0,n=0;n<c;++n)(i=(a=e[t[n]][r])[1]-a[0])>0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=s,a[0]=s+=i):(a[0]=0,a[1]=i)}var IU=bs,NU=D2,FU=Ei;function LU(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=IU(e,o);n(s,o)&&NU(i,FU(o,e),s)}return i}var UU=LU;function BU(e,t){return e!=null&&t in Object(e)}var WU=BU,zU=Ei,HU=Lu,VU=hn,qU=Wu,YU=mp,GU=$i;function ZU(e,t,n){t=zU(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=GU(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&YU(a)&&qU(o,a)&&(VU(e)||HU(e)))}var KU=ZU,XU=WU,QU=KU;function JU(e,t){return e!=null&&QU(e,t,XU)}var Zw=JU,eB=UU,tB=Zw;function nB(e,t){return eB(e,t,function(n,r){return tB(e,r)})}var rB=nB;function aB(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Jp=aB,vv=_i,iB=Lu,oB=hn,bv=vv?vv.isConcatSpreadable:void 0;function sB(e){return oB(e)||iB(e)||!!(bv&&e&&e[bv])}var cB=sB,uB=Jp,lB=cB;function Kw(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=lB),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?Kw(s,t-1,n,r,a):uB(a,s):r||(a[a.length]=s)}return a}var Xw=Kw,dB=Xw;function fB(e){var t=e==null?0:e.length;return t?dB(e,1):[]}var hB=fB,pB=hB,mB=$2,gB=M2;function vB(e){return gB(mB(e,void 0,pB),e+"")}var Qw=vB,bB=rB,yB=Qw,xB=yB(function(e,t){return e==null?{}:bB(e,t)}),wB=xB;const _B=St(wB);function TB(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var CB=TB,kB=qp,SB=CB,OB=Yp,EB=1,$B=2;function MB(e,t,n,r,a,i){var o=n&EB,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var d=-1,f=!0,p=n&$B?new kB:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var v=e[d],m=t[d];if(r)var b=o?r(m,v,d,t,e,i):r(v,m,d,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!SB(t,function(x,_){if(!OB(p,_)&&(v===x||a(v,x,n,r,i)))return p.push(_)})){f=!1;break}}else if(!(v===m||a(v,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Jw=MB;function RB(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var AB=RB;function jB(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var em=jB,yv=_i,xv=b2,PB=ms,DB=Jw,IB=AB,NB=em,FB=1,LB=2,UB="[object Boolean]",BB="[object Date]",WB="[object Error]",zB="[object Map]",HB="[object Number]",VB="[object RegExp]",qB="[object Set]",YB="[object String]",GB="[object Symbol]",ZB="[object ArrayBuffer]",KB="[object DataView]",wv=yv?yv.prototype:void 0,Cd=wv?wv.valueOf:void 0;function XB(e,t,n,r,a,i,o){switch(n){case KB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZB:return!(e.byteLength!=t.byteLength||!i(new xv(e),new xv(t)));case UB:case BB:case HB:return PB(+e,+t);case WB:return e.name==t.name&&e.message==t.message;case VB:case YB:return e==t+"";case zB:var s=IB;case qB:var c=r&FB;if(s||(s=NB),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;r|=LB,o.set(e,t);var l=DB(s(e),s(t),r,a,i,o);return o.delete(e),l;case GB:if(Cd)return Cd.call(e)==Cd.call(t)}return!1}var QB=XB,JB=Jp,eW=hn;function tW(e,t,n){var r=t(e);return eW(e)?r:JB(r,n(e))}var e_=tW;function nW(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var t_=nW;function rW(){return[]}var n_=rW,aW=t_,iW=n_,oW=Object.prototype,sW=oW.propertyIsEnumerable,_v=Object.getOwnPropertySymbols,cW=_v?function(e){return e==null?[]:(e=Object(e),aW(_v(e),function(t){return sW.call(e,t)}))}:iW,tm=cW,uW=w2,lW=uW(Object.keys,Object),dW=lW,fW=pp,hW=dW,pW=Object.prototype,mW=pW.hasOwnProperty;function gW(e){if(!fW(e))return hW(e);var t=[];for(var n in Object(e))mW.call(e,n)&&n!="constructor"&&t.push(n);return t}var vW=gW,bW=O2,yW=vW,xW=Si;function wW(e){return xW(e)?bW(e):yW(e)}var xs=wW,_W=e_,TW=tm,CW=xs;function kW(e){return _W(e,CW,TW)}var r_=kW,Tv=r_,SW=1,OW=Object.prototype,EW=OW.hasOwnProperty;function $W(e,t,n,r,a,i){var o=n&SW,s=Tv(e),c=s.length,u=Tv(t),l=u.length;if(c!=l&&!o)return!1;for(var d=c;d--;){var f=s[d];if(!(o?f in t:EW.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=o;++d<c;){f=s[d];var x=e[f],_=t[f];if(r)var y=o?r(_,x,f,t,e,i):r(x,_,f,e,t,i);if(!(y===void 0?x===_||a(x,_,n,r,i):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var T=e.constructor,w=t.constructor;T!=w&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof w=="function"&&w instanceof w)&&(m=!1)}return i.delete(e),i.delete(t),m}var MW=$W,RW=Oa,AW=rr,jW=RW(AW,"DataView"),PW=jW,DW=Oa,IW=rr,NW=DW(IW,"Promise"),FW=NW,LW=Oa,UW=rr,BW=LW(UW,"Set"),a_=BW,WW=Oa,zW=rr,HW=WW(zW,"WeakMap"),VW=HW,If=PW,Nf=up,Ff=FW,Lf=a_,Uf=VW,i_=Yr,Ri=h2,Cv="[object Map]",qW="[object Object]",kv="[object Promise]",Sv="[object Set]",Ov="[object WeakMap]",Ev="[object DataView]",YW=Ri(If),GW=Ri(Nf),ZW=Ri(Ff),KW=Ri(Lf),XW=Ri(Uf),Jr=i_;(If&&Jr(new If(new ArrayBuffer(1)))!=Ev||Nf&&Jr(new Nf)!=Cv||Ff&&Jr(Ff.resolve())!=kv||Lf&&Jr(new Lf)!=Sv||Uf&&Jr(new Uf)!=Ov)&&(Jr=function(e){var t=i_(e),n=t==qW?e.constructor:void 0,r=n?Ri(n):"";if(r)switch(r){case YW:return Ev;case GW:return Cv;case ZW:return kv;case KW:return Sv;case XW:return Ov}return t});var $l=Jr,kd=Fu,QW=Jw,JW=QB,ez=MW,$v=$l,Mv=hn,Rv=Uu,tz=bp,nz=1,Av="[object Arguments]",jv="[object Array]",Us="[object Object]",rz=Object.prototype,Pv=rz.hasOwnProperty;function az(e,t,n,r,a,i){var o=Mv(e),s=Mv(t),c=o?jv:$v(e),u=s?jv:$v(t);c=c==Av?Us:c,u=u==Av?Us:u;var l=c==Us,d=u==Us,f=c==u;if(f&&Rv(e)){if(!Rv(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new kd),o||tz(e)?QW(e,t,n,r,a,i):JW(e,t,c,n,r,a,i);if(!(n&nz)){var p=l&&Pv.call(e,"__wrapped__"),v=d&&Pv.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,b=v?t.value():t;return i||(i=new kd),a(m,b,n,r,i)}}return f?(i||(i=new kd),ez(e,t,n,r,a,i)):!1}var iz=az,oz=iz,Dv=zn;function o_(e,t,n,r,a){return e===t?!0:e==null||t==null||!Dv(e)&&!Dv(t)?e!==e&&t!==t:oz(e,t,n,r,o_,a)}var nm=o_,sz=nm;function cz(e,t){return sz(e,t)}var uz=cz;const lz=St(uz);var dz={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function rm(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var fz=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],hz=function(e,t){return Fn({},t,e)},pz=function(e,t){var n=zP({},e,t);return fz.forEach(function(r){no(n,r,hz(vr(n,r),n.text))}),n},s_=h.createContext(),c_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,o=h.useMemo(function(){var s=wI(i)?ip[i]:i;return{animate:r,config:s}},[r,i]);return g.jsx(s_.Provider,{value:o,children:t})},Iv={animate:$.bool,motionConfig:$.oneOfType([$.oneOf(Object.keys(ip)),$.shape({mass:$.number,tension:$.number,friction:$.number,clamp:$.bool,precision:$.number,velocity:$.number,duration:$.number,easing:$.func})])};c_.propTypes={children:$.node.isRequired,animate:Iv.animate,config:Iv.motionConfig};var pn=function(){return h.useContext(s_)},mz=function(e){var t=pn(),n=t.animate,r=t.config,a=function(s){var c=h.useRef();return h.useEffect(function(){c.current=s},[s]),c.current}(e),i=h.useMemo(function(){return U2(a,e)},[a,e]),o=xr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Ur(o,i)},gz={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ye(Ju),PRGn:ye(el),PiYG:ye(tl),PuOr:ye(nl),RdBu:ye(rl),RdGy:ye(al),RdYlBu:ye(il),RdYlGn:ye(ol),spectral:ye(sl),blues:ye(xl),greens:ye(wl),greys:ye(_l),oranges:ye(kl),purples:ye(Tl),reds:ye(Cl),BuGn:ye(cl),BuPu:ye(ul),GnBu:ye(ll),OrRd:ye(dl),PuBuGn:ye(fl),PuBu:ye(hl),PuRd:ye(pl),RdPu:ye(ml),YlGnBu:ye(gl),YlGn:ye(vl),YlOrBr:ye(bl),YlOrRd:ye(yl)},vz=Object.keys(gz);ye(Ju),ye(el),ye(tl),ye(nl),ye(rl),ye(al),ye(il),ye(ol),ye(sl),ye(xl),ye(wl),ye(_l),ye(kl),ye(Tl),ye(Cl),ye(cl),ye(ul),ye(ll),ye(dl),ye(fl),ye(hl),ye(pl),ye(ml),ye(gl),ye(vl),ye(bl),ye(yl);$.oneOfType([$.oneOf(vz),$.func,$.arrayOf($.string)]);var bz={basis:mU,basisClosed:gU,basisOpen:vU,bundle:bU,cardinal:yU,cardinalClosed:xU,cardinalOpen:wU,catmullRom:_U,catmullRomClosed:TU,catmullRomOpen:CU,linear:Fw,linearClosed:kU,monotoneX:SU,monotoneY:OU,natural:EU,step:$U,stepAfter:RU,stepBefore:MU},am=Object.keys(bz);am.filter(function(e){return e.endsWith("Closed")});Pw(am,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Pw(am,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");$.shape({top:$.number,right:$.number,bottom:$.number,left:$.number}).isRequired;var yz=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];$.oneOf(yz);ra(Vp);var xz={top:0,right:0,bottom:0,left:0},im=function(e,t,n){return n===void 0&&(n={}),h.useMemo(function(){var r=Fn({},xz,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},u_=function(){var e=h.useRef(null),t=h.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=h.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var o=i[0];return r(o.contentRect)})})[0];return h.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},wz=function(e){return h.useMemo(function(){return pz(dz,e)},[e])},_z=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Qu(e.slice("5")):ys(e):function(t){return""+t}},Ml=function(e){return h.useMemo(function(){return _z(e)},[e])},l_=h.createContext(),Tz={},d_=function(e){var t=e.theme,n=t===void 0?Tz:t,r=e.children,a=wz(n);return g.jsx(l_.Provider,{value:a,children:r})};d_.propTypes={children:$.node.isRequired,theme:$.object};var mt=function(){return h.useContext(l_)},Cz=["outlineWidth","outlineColor","outlineOpacity"],om=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,rm(e,Cz)},f_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t};f_.propTypes={children:$.node.isRequired,condition:$.bool.isRequired,wrapper:$.element.isRequired};var kz={position:"relative"},Rl=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,o=i===void 0||i,s=e.animate,c=e.motionConfig,u=h.useRef(null);return g.jsx(d_,{theme:n,children:g.jsx(c_,{animate:s,config:c,children:g.jsx(k8,{container:u,children:g.jsxs(f_,{condition:a,wrapper:g.jsx("div",{style:kz,ref:u}),children:[t,o&&g.jsx(C8,{})]})})})})};Rl.propTypes={children:$.element.isRequired,isInteractive:$.bool,renderWrapper:$.bool,theme:$.object,animate:$.bool,motionConfig:$.string};$.func.isRequired,$.bool,$.bool,$.object.isRequired,$.bool.isRequired,$.string;var Al=function(e){var t=e.children,n=u_(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return g.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};Al.propTypes={children:$.func.isRequired};var Sz=["id","colors"],h_=function(e){var t=e.id,n=e.colors,r=rm(e,Sz);return g.jsx("linearGradient",Fn({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,o=a.color,s=a.opacity;return g.jsx("stop",{offset:i+"%",stopColor:o,stopOpacity:s!==void 0?s:1},i)})}))};h_.propTypes={id:$.string.isRequired,colors:$.arrayOf($.shape({offset:$.number.isRequired,color:$.string.isRequired,opacity:$.number})).isRequired,gradientTransform:$.string};var p_={linearGradient:h_},Zi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Bf=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Zi.background:n,a=e.color,i=a===void 0?Zi.color:a,o=e.size,s=o===void 0?Zi.size:o,c=e.padding,u=c===void 0?Zi.padding:c,l=e.stagger,d=l===void 0?Zi.stagger:l,f=s+u,p=s/2,v=u/2;return d===!0&&(f=2*s+2*u),g.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:f,height:f,fill:r}),g.jsx("circle",{cx:v+p,cy:v+p,r:p,fill:i}),d&&g.jsx("circle",{cx:1.5*u+s+p,cy:1.5*u+s+p,r:p,fill:i})]})});Bf.displayName="PatternDots",Bf.propTypes={id:$.string.isRequired,color:$.string.isRequired,background:$.string.isRequired,size:$.number.isRequired,padding:$.number.isRequired,stagger:$.bool.isRequired};var En=function(e){return e*Math.PI/180},jl=function(e){return 180*e/Math.PI},Oz=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},da=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Ez=function(e){var t=e%360;return t<0&&(t+=360),t},$z={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Ki={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Wf=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Ki.spacing:n,a=e.rotation,i=a===void 0?Ki.rotation:a,o=e.background,s=o===void 0?Ki.background:o,c=e.color,u=c===void 0?Ki.color:c,l=e.lineWidth,d=l===void 0?Ki.lineWidth:l,f=Math.round(i)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var v,m=p,b=p;return f===0?v=`
|
|
253
|
+
*/var Eg;function F5(){return Eg||(Eg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===v||k.$$typeof===p||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===b||k.$$typeof===x||k.$$typeof===_||k.$$typeof===m)}function T(k){if(typeof k=="object"&&k!==null){var pe=k.$$typeof;switch(pe){case t:var me=k.type;switch(me){case c:case u:case r:case i:case a:case d:return me;default:var de=me&&me.$$typeof;switch(de){case s:case l:case v:case p:case o:return de;default:return pe}}case n:return pe}}}var w=c,C=u,S=s,M=o,D=t,R=l,A=r,N=v,E=p,j=n,P=i,F=a,B=d,L=!1;function W(k){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(k)||T(k)===c}function I(k){return T(k)===u}function U(k){return T(k)===s}function Y(k){return T(k)===o}function te(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function G(k){return T(k)===l}function J(k){return T(k)===r}function Z(k){return T(k)===v}function X(k){return T(k)===p}function re(k){return T(k)===n}function z(k){return T(k)===i}function V(k){return T(k)===a}function oe(k){return T(k)===d}Qe.AsyncMode=w,Qe.ConcurrentMode=C,Qe.ContextConsumer=S,Qe.ContextProvider=M,Qe.Element=D,Qe.ForwardRef=R,Qe.Fragment=A,Qe.Lazy=N,Qe.Memo=E,Qe.Portal=j,Qe.Profiler=P,Qe.StrictMode=F,Qe.Suspense=B,Qe.isAsyncMode=W,Qe.isConcurrentMode=I,Qe.isContextConsumer=U,Qe.isContextProvider=Y,Qe.isElement=te,Qe.isForwardRef=G,Qe.isFragment=J,Qe.isLazy=Z,Qe.isMemo=X,Qe.isPortal=re,Qe.isProfiler=z,Qe.isStrictMode=V,Qe.isSuspense=oe,Qe.isValidElementType=y,Qe.typeOf=T}()),Qe}var $g;function L5(){return $g||($g=1,process.env.NODE_ENV==="production"?$s.exports=N5():$s.exports=F5()),$s.exports}var nd,Mg;function U5(){if(Mg)return nd;Mg=1;var e=L5(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function o(v){return e.isMemo(v)?a:i[v.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(v,m,b){if(typeof m!="string"){if(f){var x=d(m);x&&x!==f&&p(v,x,b)}var _=c(m);u&&(_=_.concat(u(m)));for(var y=o(v),T=o(m),w=0;w<_.length;++w){var C=_[w];if(!n[C]&&!(b&&b[C])&&!(T&&T[C])&&!(y&&y[C])){var S=l(m,C);try{s(v,C,S)}catch{}}}}return v}return nd=p,nd}U5();function B5(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Nh(e,t){const n=h.useContext(I5);if(!n)throw new Error("Missing <CookiesProvider>");const a=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,o]=h.useState(()=>n.getAll(a));B5()&&h.useLayoutEffect(()=>{function l(){const d=n.getAll(a);W5(e||null,d,i)&&o(d)}return n.addChangeListener(l),()=>{n.removeChangeListener(l)}},[n,i]);const s=h.useMemo(()=>n.set.bind(n),[n]),c=h.useMemo(()=>n.remove.bind(n),[n]),u=h.useMemo(()=>n.update.bind(n),[n]);return[i,s,c,u]}function W5(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const z5=()=>{const{axiosOptions:e,cookieDomain:t}=h.useContext(Tt),[,n,r]=Nh(["Authorization"]),a=gt.create(e),i=h.useCallback(()=>{const u=localStorage.getItem("token");return u?{token:u,expiresOn:kb(new Date(Date.now()),1)}:null},[]),o=h.useCallback(()=>{const u=i();return u!==null&&u.token.length>0},[i]),s=h.useCallback(async(u,l)=>a.post("/user/login",{kid:u,password:l}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:_b(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[a,n,t]),c=h.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:s,logout:c,getToken:i}},H5=()=>{const[,,e]=Nh(["Authorization"]),{msalScopes:t,msalExtraScopes:n}=h.useContext(Bh),{instance:r,inProgress:a}=wm.useMsal(),i=wm.useIsAuthenticated(),o=h.useCallback(async()=>{var p;const d=r.getActiveAccount(),f=d??((p=r.getAllAccounts())==null?void 0:p.at(0))??void 0;return f?(d||r.setActiveAccount(f),r.acquireTokenSilent({scopes:t,account:f}).then(v=>({token:v.accessToken,expiresOn:v.expiresOn??new Date(Date.now())})).catch(v=>{if(console.error("Error acquiring token",v),v instanceof xm.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),r.acquireTokenRedirect({scopes:t,extraScopesToConsent:n}),null;throw v})):null},[r,t,n]),s=h.useCallback(()=>i,[i]),c=h.useCallback(()=>!s()&&a!==xm.InteractionStatus.None,[s,a]),u=h.useCallback(async()=>r.loginRedirect({scopes:t,extraScopesToConsent:n}).then(()=>"").catch(()=>null),[r,t,n]),l=h.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:s,isAuthenticating:c,login:u,logout:l,getToken:o}},J1=()=>{const{useMsal:e}=h.useContext(Bh),t=z5(),n=H5();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,getToken:e?n.getToken:t.getToken,login:e?n.login:t.login,logout:e?n.logout:t.logout}},V5="_toast_1s57i_1",Ui={toast:V5},q5=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},bu=()=>({addNotification:h.useCallback((t,n)=>{const r=w1(t),a=q5(n),i=g.jsxs(g.Fragment,{children:[r,g.jsx(c1,{onClick:()=>Ia.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(RS,{size:12}),className:K("luminus-toast-success rounded shadow bg-success",Ui.toast)});break}case"danger":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(xS,{size:12}),className:K("luminus-toast-danger rounded shadow bg-danger",Ui.toast)});break}case"warning":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(gS,{size:12}),className:K("luminus-toast-warning rounded shadow bg-warning",Ui.toast)});break}case"info":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(bS,{size:12}),className:K("luminus-toast-info rounded shadow bg-info",Ui.toast)});break}case"prompt":{Ia(i,{id:r,duration:a,position:"top-center",icon:g.jsx(yS,{size:12}),className:K("luminus-toast-prompt rounded shadow bg-light",Ui.toast)});break}}},[])}),Y5=gt.CancelToken,yu=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:a,ignoreDelegation:i,noToastOnStatus:o}={...e},{language:s,axiosOptions:c,texts:{axios:u}}=h.useContext(Tt),{delegation:l}=h.useContext(hx),d=h.useMemo(()=>(l==null?void 0:l.id)??null,[l==null?void 0:l.id]),{addNotification:f}=bu(),{getToken:p}=J1(),v=h.useMemo(()=>gt.create(c),[c]),m=h.useCallback(async x=>{var _,y,T;if(t&&!x.headers.Authorization){const w=a?{token:a,expiresOn:_b(new Date(Date.now()),1)}:await p();if(!w)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(IT(w.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));x.headers.Authorization=`Bearer ${w.token}`}return d!==null&&!i&&(x.headers.DelegationId=d.toString()),(_=x.url)!=null&&_.includes("culture=")?x.url=(y=x.url)==null?void 0:y.replace(/culture=[a-z]{2}/,`culture=${s}`):x.url=`${x.url}${(T=x.url)!=null&&T.includes("?")?"&":"?"}culture=${s}`,x},[t,p,s,a,d,i]),b=h.useCallback(x=>{var T,w;if(console.log(x),gt.isCancel(x))return Promise.reject(x);const _=$h(x);if(_.length>0){const C=_.find(S=>S.name.toLowerCase()==="others");return C?(!r&&f(C.errors,"danger"),Promise.reject(x)):(!r&&f(u.validationError,"warning"),Promise.reject(x))}const y=y1(x);return y!==null?(!r&&f(`${u.permissionError}: ${vo(", ",...y)}`,"danger"),Promise.reject(x)):(o??[]).includes((T=x.response)==null?void 0:T.status)?Promise.reject(x):((w=x.response)==null?void 0:w.status)===403?(!r&&f(u.forbiddenError,"danger"),Promise.reject(x)):x.message&&x.message==="Network Error"?(!r&&f(u.networkError,"danger"),Promise.reject(x)):(gt.isCancel(x)||(console.log("INTERCEPTED ERROR",x),!r&&f(u.unexpectedError,"danger")),Promise.reject(x))},[f,u.forbiddenError,u.networkError,u.permissionError,u.unexpectedError,u.validationError,r,o]);return h.useEffect(()=>{n&&(v.defaults.baseURL=n),v.interceptors.request.clear(),v.interceptors.response.clear();const x=v.interceptors.request.use(m,y=>Promise.reject(y)),_=v.interceptors.response.use(y=>y,b);return()=>{v.interceptors.request.eject(x),v.interceptors.response.eject(_)}},[v.defaults,v.interceptors.request,v.interceptors.response,n,m,b]),v};let rd;const Fh=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r}=h.useContext(l1),a=()=>{r()};return{confirm:async c=>(n(c),new Promise(u=>{rd=u})),onConfirm:()=>{a(),rd(!0)},onCancel:()=>{a(),rd(!1)},show:e,text:t}};var ze;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(ze||(ze={}));var cf;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(cf||(cf={}));const le=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Er=e=>{switch(typeof e){case"undefined":return le.undefined;case"string":return le.string;case"number":return isNaN(e)?le.nan:le.number;case"boolean":return le.boolean;case"function":return le.function;case"bigint":return le.bigint;case"symbol":return le.symbol;case"object":return Array.isArray(e)?le.array:e===null?le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?le.promise:typeof Map<"u"&&e instanceof Map?le.map:typeof Set<"u"&&e instanceof Set?le.set:typeof Date<"u"&&e instanceof Date?le.date:le.object;default:return le.unknown}},ie=ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),G5=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class wn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(o))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}};return a(this),r}static assert(t){if(!(t instanceof wn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}wn.create=e=>new wn(e);const si=(e,t)=>{let n;switch(e.code){case ie.invalid_type:e.received===le.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ie.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ze.jsonStringifyReplacer)}`;break;case ie.unrecognized_keys:n=`Unrecognized key(s) in object: ${ze.joinValues(e.keys,", ")}`;break;case ie.invalid_union:n="Invalid input";break;case ie.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ze.joinValues(e.options)}`;break;case ie.invalid_enum_value:n=`Invalid enum value. Expected ${ze.joinValues(e.options)}, received '${e.received}'`;break;case ie.invalid_arguments:n="Invalid function arguments";break;case ie.invalid_return_type:n="Invalid function return type";break;case ie.invalid_date:n="Invalid date";break;case ie.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ze.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ie.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ie.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ie.custom:n="Invalid input";break;case ie.invalid_intersection_types:n="Intersection results could not be merged";break;case ie.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ie.not_finite:n="Number must be finite";break;default:n=t.defaultError,ze.assertNever(e)}return{message:n}};let ex=si;function Z5(e){ex=e}function xc(){return ex}const wc=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let s="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)s=u(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},K5=[];function ce(e,t){const n=xc(),r=wc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===si?void 0:si].filter(a=>!!a)});e.common.issues.push(r)}class Yt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return Te;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Yt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return Te;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const Te=Object.freeze({status:"aborted"}),za=e=>({status:"dirty",value:e}),en=e=>({status:"valid",value:e}),uf=e=>e.status==="aborted",lf=e=>e.status==="dirty",yo=e=>e.status==="valid",xo=e=>typeof Promise<"u"&&e instanceof Promise;function _c(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function tx(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ve;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ve||(ve={}));var Ji,eo;class Xn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Rg=(e,t)=>{if(yo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new wn(e.common.issues);return this._error=n,this._error}}};function je(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,s)=>{var c,u;const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:(c=l??r)!==null&&c!==void 0?c:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(u=l??n)!==null&&u!==void 0?u:s.defaultError}},description:a}}class Ie{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Er(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Er(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Yt,ctx:{common:t.parent.common,data:t.data,parsedType:Er(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(xo(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Er(t)},i=this._parseSync({data:t,path:a.path,parent:a});return Rg(a,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Er(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(xo(a)?a:Promise.resolve(a));return Rg(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),s=()=>i.addIssue({code:ie.custom,...r(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Un({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Zn.create(this,this._def)}nullable(){return Lr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nn.create(this,this._def)}promise(){return ui.create(this,this._def)}or(t){return Co.create([this,t],this._def)}and(t){return ko.create(this,t,this._def)}transform(t){return new Un({...je(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Mo({...je(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new Lh({typeName:_e.ZodBranded,type:this,...je(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ro({...je(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ss.create(this,t)}readonly(){return Ao.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const X5=/^c[^\s-]{8,}$/i,Q5=/^[0-9a-z]+$/,J5=/^[0-9A-HJKMNP-TV-Z]{26}$/,eE=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,tE=/^[a-z0-9_-]{21}$/i,nE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,rE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,aE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ad;const iE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,oE=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,sE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,nx="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",cE=new RegExp(`^${nx}$`);function rx(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function uE(e){return new RegExp(`^${rx(e)}$`)}function ax(e){let t=`${nx}T${rx(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function lE(e,t){return!!((t==="v4"||!t)&&iE.test(e)||(t==="v6"||!t)&&oE.test(e))}class Dn extends Ie{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==le.string){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_type,expected:le.string,received:i.parsedType}),Te}const r=new Yt;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,s=t.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(t,a),o?ce(a,{code:ie.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&ce(a,{code:ie.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")rE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"email",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")ad||(ad=new RegExp(aE,"u")),ad.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"emoji",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")eE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"uuid",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")tE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"nanoid",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")X5.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")Q5.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid2",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")J5.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ulid",code:ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ce(a,{validation:"url",code:ie.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"regex",code:ie.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?ax(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?cE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?uE(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?nE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"duration",code:ie.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?lE(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ip",code:ie.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?sE.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"base64",code:ie.invalid_string,message:i.message}),r.dirty()):ze.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:ie.invalid_string,...ve.errToObj(r)})}_addCheck(t){return new Dn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ve.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ve.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ve.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ve.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ve.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ve.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ve.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ve.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ve.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ve.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ve.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ve.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ve.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ve.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ve.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ve.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ve.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ve.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ve.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ve.errToObj(n)})}nonempty(t){return this.min(1,ve.errToObj(t))}trim(){return new Dn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Dn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Dn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Dn.create=e=>{var t;return new Dn({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...je(e)})};function dE(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class Ir extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==le.number){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_type,expected:le.number,received:i.parsedType}),Te}let r;const a=new Yt;for(const i of this._def.checks)i.kind==="int"?ze.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?dE(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.not_finite,message:i.message}),a.dirty()):ze.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ve.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ve.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ve.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ve.toString(n))}setLimit(t,n,r,a){return new Ir({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ve.toString(a)}]})}_addCheck(t){return new Ir({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ve.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ve.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ve.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ve.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ve.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ve.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ve.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ve.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ve.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ze.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ir.create=e=>new Ir({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...je(e)});class Nr extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==le.bigint){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_type,expected:le.bigint,received:i.parsedType}),Te}let r;const a=new Yt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:ie.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):ze.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ve.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ve.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ve.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ve.toString(n))}setLimit(t,n,r,a){return new Nr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ve.toString(a)}]})}_addCheck(t){return new Nr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ve.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ve.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ve.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ve.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ve.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Nr.create=e=>{var t;return new Nr({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...je(e)})};class wo extends Ie{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==le.boolean){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.boolean,received:r.parsedType}),Te}return en(t.data)}}wo.create=e=>new wo({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...je(e)});class ma extends Ie{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==le.date){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_type,expected:le.date,received:i.parsedType}),Te}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ce(i,{code:ie.invalid_date}),Te}const r=new Yt;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:ie.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ze.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ma({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ve.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ve.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ma.create=e=>new ma({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...je(e)});class Tc extends Ie{_parse(t){if(this._getType(t)!==le.symbol){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.symbol,received:r.parsedType}),Te}return en(t.data)}}Tc.create=e=>new Tc({typeName:_e.ZodSymbol,...je(e)});class _o extends Ie{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.undefined,received:r.parsedType}),Te}return en(t.data)}}_o.create=e=>new _o({typeName:_e.ZodUndefined,...je(e)});class To extends Ie{_parse(t){if(this._getType(t)!==le.null){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.null,received:r.parsedType}),Te}return en(t.data)}}To.create=e=>new To({typeName:_e.ZodNull,...je(e)});class ci extends Ie{constructor(){super(...arguments),this._any=!0}_parse(t){return en(t.data)}}ci.create=e=>new ci({typeName:_e.ZodAny,...je(e)});class ca extends Ie{constructor(){super(...arguments),this._unknown=!0}_parse(t){return en(t.data)}}ca.create=e=>new ca({typeName:_e.ZodUnknown,...je(e)});class gr extends Ie{_parse(t){const n=this._getOrReturnCtx(t);return ce(n,{code:ie.invalid_type,expected:le.never,received:n.parsedType}),Te}}gr.create=e=>new gr({typeName:_e.ZodNever,...je(e)});class Cc extends Ie{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.void,received:r.parsedType}),Te}return en(t.data)}}Cc.create=e=>new Cc({typeName:_e.ZodVoid,...je(e)});class Nn extends Ie{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==le.array)return ce(n,{code:ie.invalid_type,expected:le.array,received:n.parsedType}),Te;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,s=n.data.length<a.exactLength.value;(o||s)&&(ce(n,{code:o?ie.too_big:ie.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ce(n,{code:ie.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ce(n,{code:ie.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>a.type._parseAsync(new Xn(n,o,n.path,s)))).then(o=>Yt.mergeArray(r,o));const i=[...n.data].map((o,s)=>a.type._parseSync(new Xn(n,o,n.path,s)));return Yt.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Nn({...this._def,minLength:{value:t,message:ve.toString(n)}})}max(t,n){return new Nn({...this._def,maxLength:{value:t,message:ve.toString(n)}})}length(t,n){return new Nn({...this._def,exactLength:{value:t,message:ve.toString(n)}})}nonempty(t){return this.min(1,t)}}Nn.create=(e,t)=>new Nn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...je(t)});function Wa(e){if(e instanceof yt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Zn.create(Wa(r))}return new yt({...e._def,shape:()=>t})}else return e instanceof Nn?new Nn({...e._def,type:Wa(e.element)}):e instanceof Zn?Zn.create(Wa(e.unwrap())):e instanceof Lr?Lr.create(Wa(e.unwrap())):e instanceof Qn?Qn.create(e.items.map(t=>Wa(t))):e}class yt extends Ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ze.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==le.object){const u=this._getOrReturnCtx(t);return ce(u,{code:ie.invalid_type,expected:le.object,received:u.parsedType}),Te}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof gr&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||s.push(u);const c=[];for(const u of o){const l=i[u],d=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Xn(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof gr){const u=this._def.unknownKeys;if(u==="passthrough")for(const l of s)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")s.length>0&&(ce(a,{code:ie.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const l of s){const d=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Xn(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const l of c){const d=await l.key,f=await l.value;u.push({key:d,value:f,alwaysSet:l.alwaysSet})}return u}).then(u=>Yt.mergeObjectSync(r,u)):Yt.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return ve.errToObj,new yt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,o,s;const c=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=ve.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new yt({...this._def,unknownKeys:"strip"})}passthrough(){return new yt({...this._def,unknownKeys:"passthrough"})}extend(t){return new yt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new yt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new yt({...this._def,catchall:t})}pick(t){const n={};return ze.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new yt({...this._def,shape:()=>n})}omit(t){const n={};return ze.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new yt({...this._def,shape:()=>n})}deepPartial(){return Wa(this)}partial(t){const n={};return ze.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new yt({...this._def,shape:()=>n})}required(t){const n={};return ze.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Zn;)i=i._def.innerType;n[r]=i}}),new yt({...this._def,shape:()=>n})}keyof(){return ix(ze.objectKeys(this.shape))}}yt.create=(e,t)=>new yt({shape:()=>e,unknownKeys:"strip",catchall:gr.create(),typeName:_e.ZodObject,...je(t)});yt.strictCreate=(e,t)=>new yt({shape:()=>e,unknownKeys:"strict",catchall:gr.create(),typeName:_e.ZodObject,...je(t)});yt.lazycreate=(e,t)=>new yt({shape:e,unknownKeys:"strip",catchall:gr.create(),typeName:_e.ZodObject,...je(t)});class Co extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new wn(s.ctx.common.issues));return ce(n,{code:ie.invalid_union,unionErrors:o}),Te}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},l=c._parseSync({data:n.data,path:n.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(c=>new wn(c));return ce(n,{code:ie.invalid_union,unionErrors:s}),Te}}get options(){return this._def.options}}Co.create=(e,t)=>new Co({options:e,typeName:_e.ZodUnion,...je(t)});const or=e=>e instanceof Oo?or(e.schema):e instanceof Un?or(e.innerType()):e instanceof Eo?[e.value]:e instanceof Fr?e.options:e instanceof $o?ze.objectValues(e.enum):e instanceof Mo?or(e._def.innerType):e instanceof _o?[void 0]:e instanceof To?[null]:e instanceof Zn?[void 0,...or(e.unwrap())]:e instanceof Lr?[null,...or(e.unwrap())]:e instanceof Lh||e instanceof Ao?or(e.unwrap()):e instanceof Ro?or(e._def.innerType):[];class xu extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.object)return ce(n,{code:ie.invalid_type,expected:le.object,received:n.parsedType}),Te;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ce(n,{code:ie.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Te)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=or(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,i)}}return new xu({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...je(r)})}}function df(e,t){const n=Er(e),r=Er(t);if(e===t)return{valid:!0,data:e};if(n===le.object&&r===le.object){const a=ze.objectKeys(t),i=ze.objectKeys(e).filter(s=>a.indexOf(s)!==-1),o={...e,...t};for(const s of i){const c=df(e[s],t[s]);if(!c.valid)return{valid:!1};o[s]=c.data}return{valid:!0,data:o}}else if(n===le.array&&r===le.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],c=df(o,s);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===le.date&&r===le.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ko extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(uf(i)||uf(o))return Te;const s=df(i.value,o.value);return s.valid?((lf(i)||lf(o))&&n.dirty(),{status:n.value,value:s.data}):(ce(r,{code:ie.invalid_intersection_types}),Te)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ko.create=(e,t,n)=>new ko({left:e,right:t,typeName:_e.ZodIntersection,...je(n)});class Qn extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.array)return ce(r,{code:ie.invalid_type,expected:le.array,received:r.parsedType}),Te;if(r.data.length<this._def.items.length)return ce(r,{code:ie.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Te;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:ie.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new Xn(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Yt.mergeArray(n,o)):Yt.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Qn({...this._def,rest:t})}}Qn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Qn({items:e,typeName:_e.ZodTuple,rest:null,...je(t)})};class So extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.object)return ce(r,{code:ie.invalid_type,expected:le.object,received:r.parsedType}),Te;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in r.data)a.push({key:i._parse(new Xn(r,s,r.path,s)),value:o._parse(new Xn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Yt.mergeObjectAsync(n,a):Yt.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Ie?new So({keyType:t,valueType:n,typeName:_e.ZodRecord,...je(r)}):new So({keyType:Dn.create(),valueType:t,typeName:_e.ZodRecord,...je(n)})}}class kc extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.map)return ce(r,{code:ie.invalid_type,expected:le.map,received:r.parsedType}),Te;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([s,c],u)=>({key:a._parse(new Xn(r,s,r.path,[u,"key"])),value:i._parse(new Xn(r,c,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return Te;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of o){const u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return Te;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}}}}kc.create=(e,t,n)=>new kc({valueType:t,keyType:e,typeName:_e.ZodMap,...je(n)});class ga extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.set)return ce(r,{code:ie.invalid_type,expected:le.set,received:r.parsedType}),Te;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ce(r,{code:ie.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ce(r,{code:ie.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const l of c){if(l.status==="aborted")return Te;l.status==="dirty"&&n.dirty(),u.add(l.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((c,u)=>i._parse(new Xn(r,c,r.path,u)));return r.common.async?Promise.all(s).then(c=>o(c)):o(s)}min(t,n){return new ga({...this._def,minSize:{value:t,message:ve.toString(n)}})}max(t,n){return new ga({...this._def,maxSize:{value:t,message:ve.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ga.create=(e,t)=>new ga({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...je(t)});class Ya extends Ie{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.function)return ce(n,{code:ie.invalid_type,expected:le.function,received:n.parsedType}),Te;function r(s,c){return wc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xc(),si].filter(u=>!!u),issueData:{code:ie.invalid_arguments,argumentsError:c}})}function a(s,c){return wc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xc(),si].filter(u=>!!u),issueData:{code:ie.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ui){const s=this;return en(async function(...c){const u=new wn([]),l=await s._def.args.parseAsync(c,i).catch(p=>{throw u.addIssue(r(c,p)),u}),d=await Reflect.apply(o,this,l);return await s._def.returns._def.type.parseAsync(d,i).catch(p=>{throw u.addIssue(a(d,p)),u})})}else{const s=this;return en(function(...c){const u=s._def.args.safeParse(c,i);if(!u.success)throw new wn([r(c,u.error)]);const l=Reflect.apply(o,this,u.data),d=s._def.returns.safeParse(l,i);if(!d.success)throw new wn([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ya({...this._def,args:Qn.create(t).rest(ca.create())})}returns(t){return new Ya({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ya({args:t||Qn.create([]).rest(ca.create()),returns:n||ca.create(),typeName:_e.ZodFunction,...je(r)})}}class Oo extends Ie{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Oo.create=(e,t)=>new Oo({getter:e,typeName:_e.ZodLazy,...je(t)});class Eo extends Ie{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ce(n,{received:n.data,code:ie.invalid_literal,expected:this._def.value}),Te}return{status:"valid",value:t.data}}get value(){return this._def.value}}Eo.create=(e,t)=>new Eo({value:e,typeName:_e.ZodLiteral,...je(t)});function ix(e,t){return new Fr({values:e,typeName:_e.ZodEnum,...je(t)})}class Fr extends Ie{constructor(){super(...arguments),Ji.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{expected:ze.joinValues(r),received:n.parsedType,code:ie.invalid_type}),Te}if(_c(this,Ji)||tx(this,Ji,new Set(this._def.values)),!_c(this,Ji).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{received:n.data,code:ie.invalid_enum_value,options:r}),Te}return en(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Fr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Fr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ji=new WeakMap;Fr.create=ix;class $o extends Ie{constructor(){super(...arguments),eo.set(this,void 0)}_parse(t){const n=ze.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==le.string&&r.parsedType!==le.number){const a=ze.objectValues(n);return ce(r,{expected:ze.joinValues(a),received:r.parsedType,code:ie.invalid_type}),Te}if(_c(this,eo)||tx(this,eo,new Set(ze.getValidEnumValues(this._def.values))),!_c(this,eo).has(t.data)){const a=ze.objectValues(n);return ce(r,{received:r.data,code:ie.invalid_enum_value,options:a}),Te}return en(t.data)}get enum(){return this._def.values}}eo=new WeakMap;$o.create=(e,t)=>new $o({values:e,typeName:_e.ZodNativeEnum,...je(t)});class ui extends Ie{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.promise&&n.common.async===!1)return ce(n,{code:ie.invalid_type,expected:le.promise,received:n.parsedType}),Te;const r=n.parsedType===le.promise?n.data:Promise.resolve(n.data);return en(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ui.create=(e,t)=>new ui({type:e,typeName:_e.ZodPromise,...je(t)});class Un extends Ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{ce(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return Te;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?Te:c.status==="dirty"||n.value==="dirty"?za(c.value):c});{if(n.value==="aborted")return Te;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?Te:s.status==="dirty"||n.value==="dirty"?za(s.value):s}}if(a.type==="refinement"){const o=s=>{const c=a.refinement(s,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Te:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?Te:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!yo(o))return o;const s=a.transform(o.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>yo(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:n.value,value:s})):o);ze.assertNever(a)}}Un.create=(e,t,n)=>new Un({schema:e,typeName:_e.ZodEffects,effect:t,...je(n)});Un.createWithPreprocess=(e,t,n)=>new Un({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...je(n)});class Zn extends Ie{_parse(t){return this._getType(t)===le.undefined?en(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Zn.create=(e,t)=>new Zn({innerType:e,typeName:_e.ZodOptional,...je(t)});class Lr extends Ie{_parse(t){return this._getType(t)===le.null?en(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Lr.create=(e,t)=>new Lr({innerType:e,typeName:_e.ZodNullable,...je(t)});class Mo extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===le.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Mo.create=(e,t)=>new Mo({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...je(t)});class Ro extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return xo(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new wn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new wn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ro.create=(e,t)=>new Ro({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...je(t)});class Sc extends Ie{_parse(t){if(this._getType(t)!==le.nan){const r=this._getOrReturnCtx(t);return ce(r,{code:ie.invalid_type,expected:le.nan,received:r.parsedType}),Te}return{status:"valid",value:t.data}}}Sc.create=e=>new Sc({typeName:_e.ZodNaN,...je(e)});const fE=Symbol("zod_brand");class Lh extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ss extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Te:i.status==="dirty"?(n.dirty(),za(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Te:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new ss({in:t,out:n,typeName:_e.ZodPipeline})}}class Ao extends Ie{_parse(t){const n=this._def.innerType._parse(t),r=a=>(yo(a)&&(a.value=Object.freeze(a.value)),a);return xo(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}Ao.create=(e,t)=>new Ao({innerType:e,typeName:_e.ZodReadonly,...je(t)});function ox(e,t={},n){return e?ci.create().superRefine((r,a)=>{var i,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,u=typeof s=="string"?{message:s}:s;a.addIssue({code:"custom",...u,fatal:c})}}):ci.create()}const hE={object:yt.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const pE=(e,t={message:`Input not instance of ${e.name}`})=>ox(n=>n instanceof e,t),sx=Dn.create,cx=Ir.create,mE=Sc.create,gE=Nr.create,ux=wo.create,vE=ma.create,bE=Tc.create,yE=_o.create,xE=To.create,wE=ci.create,_E=ca.create,TE=gr.create,CE=Cc.create,kE=Nn.create,SE=yt.create,OE=yt.strictCreate,EE=Co.create,$E=xu.create,ME=ko.create,RE=Qn.create,AE=So.create,jE=kc.create,PE=ga.create,DE=Ya.create,IE=Oo.create,NE=Eo.create,FE=Fr.create,LE=$o.create,UE=ui.create,Ag=Un.create,BE=Zn.create,WE=Lr.create,zE=Un.createWithPreprocess,HE=ss.create,VE=()=>sx().optional(),qE=()=>cx().optional(),YE=()=>ux().optional(),GE={string:e=>Dn.create({...e,coerce:!0}),number:e=>Ir.create({...e,coerce:!0}),boolean:e=>wo.create({...e,coerce:!0}),bigint:e=>Nr.create({...e,coerce:!0}),date:e=>ma.create({...e,coerce:!0})},ZE=Te;var Bt=Object.freeze({__proto__:null,defaultErrorMap:si,setErrorMap:Z5,getErrorMap:xc,makeIssue:wc,EMPTY_PATH:K5,addIssueToContext:ce,ParseStatus:Yt,INVALID:Te,DIRTY:za,OK:en,isAborted:uf,isDirty:lf,isValid:yo,isAsync:xo,get util(){return ze},get objectUtil(){return cf},ZodParsedType:le,getParsedType:Er,ZodType:Ie,datetimeRegex:ax,ZodString:Dn,ZodNumber:Ir,ZodBigInt:Nr,ZodBoolean:wo,ZodDate:ma,ZodSymbol:Tc,ZodUndefined:_o,ZodNull:To,ZodAny:ci,ZodUnknown:ca,ZodNever:gr,ZodVoid:Cc,ZodArray:Nn,ZodObject:yt,ZodUnion:Co,ZodDiscriminatedUnion:xu,ZodIntersection:ko,ZodTuple:Qn,ZodRecord:So,ZodMap:kc,ZodSet:ga,ZodFunction:Ya,ZodLazy:Oo,ZodLiteral:Eo,ZodEnum:Fr,ZodNativeEnum:$o,ZodPromise:ui,ZodEffects:Un,ZodTransformer:Un,ZodOptional:Zn,ZodNullable:Lr,ZodDefault:Mo,ZodCatch:Ro,ZodNaN:Sc,BRAND:fE,ZodBranded:Lh,ZodPipeline:ss,ZodReadonly:Ao,custom:ox,Schema:Ie,ZodSchema:Ie,late:hE,get ZodFirstPartyTypeKind(){return _e},coerce:GE,any:wE,array:kE,bigint:gE,boolean:ux,date:vE,discriminatedUnion:$E,effect:Ag,enum:FE,function:DE,instanceof:pE,intersection:ME,lazy:IE,literal:NE,map:jE,nan:mE,nativeEnum:LE,never:TE,null:xE,nullable:WE,number:cx,object:SE,oboolean:YE,onumber:qE,optional:BE,ostring:VE,pipeline:HE,preprocess:zE,promise:UE,record:AE,set:PE,strictObject:OE,string:sx,symbol:bE,transformer:Ag,tuple:RE,undefined:yE,union:EE,unknown:_E,void:CE,NEVER:ZE,ZodIssueCode:ie,quotelessJson:G5,ZodError:wn});const wu=()=>{const{texts:{formValidation:e}}=h.useContext(Tt),t=h.useCallback(m=>{let b=(m!=null&&m.useCoerce?Bt.coerce:Bt).string({invalid_type_error:e.required,required_error:e.required});return m!=null&&m.email&&(b=b.email(e.invalidEmail)),m!=null&&m.length&&(b=b.min(m.length,e.length(m.length))),m!=null&&m.minLength&&(b=b.min(m.minLength,e.minLength(m.minLength))),m!=null&&m.maxLength&&(b=b.max(m.maxLength,e.maxLength(m.maxLength))),m!=null&&m.numeric&&(b=b.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),m!=null&&m.regex&&(b=b.regex(m.regex,e.invalidFormat)),b.transform(x=>x??null)},[e]),n=h.useCallback(m=>t(m).nullable().optional().transform(b=>b??null),[t]),r=h.useCallback(m=>{const b=(m==null?void 0:m.min)??Number.MIN_SAFE_INTEGER,x=(m==null?void 0:m.max)??Number.MAX_SAFE_INTEGER,_=(m!=null&&m.useCoerce?Bt.coerce:Bt).number({invalid_type_error:e.required,required_error:e.required}).min(b,e.lessThanMin(b)).max(x,e.moreThanMax(x));return _.transform(y=>y??null),_},[e]),a=h.useCallback(m=>r(m).nullable().optional().transform(b=>b??null),[r]),i=h.useCallback(m=>(m!=null&&m.useCoerce?Bt.coerce:Bt).boolean({invalid_type_error:e.required,required_error:e.required}).transform(b=>b??null),[e.required]),o=h.useCallback(m=>(m!=null&&m.useCoerce?Bt.coerce:Bt).string({invalid_type_error:e.required,required_error:e.required}).refine(T1,{message:e.invalidDate}).transform(x=>x??null),[e.invalidDate,e.required]),s=h.useCallback(m=>o(m).nullable().transform(b=>b??null),[o]),c=h.useCallback((m,b)=>Bt.enum(m,{invalid_type_error:e.required,required_error:e.required}).transform(_=>_??null),[e.required]),u=h.useCallback((m,b)=>c(m,b).nullable().transform(x=>x??null),[c]),l=h.useCallback(m=>Bt.object({id:a({useCoerce:!0})}).nullable().transform(x=>x??null),[a]),d=h.useCallback(m=>Bt.object({id:r()}).transform(x=>x??null),[r]),f=h.useCallback(m=>Bt.object({id:n({useCoerce:!0})}).nullable().transform(x=>x??null),[n]),p=h.useCallback(m=>Bt.object({id:t()}).transform(x=>x??null),[t]),v=h.useCallback(({required:m,multiple:b,maxFileSize:x})=>Bt.any().transform(y=>Array.from(y??[])).refine(y=>!m||(y==null?void 0:y.length)>0,"File is required.").refine(y=>b||(y==null?void 0:y.length)<=1,"Multiple files not allowed.").refine(y=>y.every(T=>T.size<=x),`Maximum file size is ${ii(x)}.`).transform(y=>(b?y:y==null?void 0:y[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:a,zNumberRequired:r,zBool:i,zDate:s,zDateRequired:o,zEnum:u,zEnumRequired:c,zObjectIdInt:l,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:p,zFile:v}},lx=(e,t)=>{h.useEffect(()=>{const n=r=>{e.some(a=>a.current&&a.current.contains(r.target))||t()};return document.addEventListener("mouseup",n),()=>{document.removeEventListener("mouseup",n)}},[e,t])},dx=e=>{h.useEffect(()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),[e])},Uh=(e,t,n)=>h.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),fx=()=>{const{addNotification:e}=bu(),{texts:{clipboard:t}}=h.useContext(Tt);return{copyToClipboard:h.useCallback(async r=>{var a;try{await((a=navigator.clipboard)==null?void 0:a.writeText(r)),e(t.copySuccess(r),"prompt")}catch(i){console.error(i),e(t.copyError,"danger")}},[e,t])}},cs=()=>{const[e,t]=h.useState(window.innerWidth),[n,r]=h.useState(window.innerHeight),a=()=>{t(window.innerWidth),r(window.innerHeight)};return h.useEffect(()=>(window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)),[]),{width:e,height:n,isMobile:e<992}},Bh=h.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[]}),hx=h.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),px=h.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),KE="_button_1wjon_1",XE="_filled_1wjon_7",QE="_sm_1wjon_13",JE="_md_1wjon_18",e$="_lg_1wjon_23",Na={button:KE,filled:XE,sm:QE,md:JE,lg:e$},va=({variant:e="filled",color:t="primary",size:n="md",className:r,children:a,...i})=>i.as==="link"?g.jsx(Jo.Link,{to:i.href??"/",className:K(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,Na.button,Na[e],Na[n]),...i,children:a}):i.as==="button"||i.as===void 0?g.jsx("button",{type:"button",className:K(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,Na.button,Na[e],Na[n]),...i,children:a}):null,t$="_button_1r3i0_1",ff={button:t$},_u=({color:e="primary",icon:t,className:n,children:r,...a})=>a.as==="link"?g.jsxs(Jo.Link,{to:a.href??"/",className:K(`luminus-context-button btn text-${e} ${n??""}`,ff.button),...a,children:[t,r]}):a.as==="button"||a.as===void 0?g.jsxs("button",{type:"button",className:K(`luminus-context-button btn text-${e} ${n??""}`,ff.button),...a,children:[t,r]}):null,n$="_icon-button_15e26_1",r$="_sm_15e26_14",a$="_md_15e26_23",i$="_lg_15e26_32",Ms={"icon-button":"_icon-button_15e26_1",iconButton:n$,sm:r$,md:a$,lg:i$},us=({type:e="button",color:t="primary",size:n="md",children:r,className:a,...i})=>i.as==="link"?g.jsx(Jo.Link,{to:i.href??"/",className:K(`luminus-icon-button btn text-${t} ${a??""}`,Ms.iconButton,Ms[n]),...i,children:r}):i.as==="button"||i.as===void 0?g.jsx("button",{type:e,className:K(`luminus-icon-button btn text-${t} ${a??""}`,Ms.iconButton,Ms[n]),...i,children:r}):null,o$="_feedback_esh1j_1",s$="_feedback-spacer_esh1j_8",jg={feedback:o$,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:s$},Tu=({message:e})=>g.jsxs(g.Fragment,{children:[g.jsx("div",{className:K("invalid-feedback luminus-invalid-feedback",jg.feedback),children:e}),g.jsx("div",{className:K("invalid-feedback-spacer",jg.feedbackSpacer),children:e})]}),c$="_item_1dy8x_1",mx={item:c$},Ga=({color:e="primary",icon:t,className:n,children:r,...a})=>{const{as:i,to:o,...s}=a;return g.jsxs(go.Item,{className:K(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,mx.item),as:i==="link"?Jo.Link:void 0,to:o??"",...s,children:[t,r]})},u$="_button_qhwih_1",l$={button:u$},Wh=h.forwardRef(({color:e="primary",icon:t=g.jsx(u1,{size:21}),text:n,onClick:r,className:a,children:i,...o},s)=>g.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:K(`btn luminus-context-button text-${e} ${a??""}`,l$.button),...o,children:[t,n]})),d$="_avatar-icon_1axl6_1",f$={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:d$},gx=({name:e,fontSize:t,size:n})=>{const r=h.useMemo(()=>{const o=e.split(" ");return o.length<2?e:vo(" ",o.at(o.length-2),o.at(o.length-1))},[e]),a=h.useMemo(()=>{const o=r.split(" ");return vo("",...o.map(s=>s.at(0)??void 0))},[r]),i=o=>{let s=0,c;for(c=0;c<o.length;c+=1)s=o.charCodeAt(c)+((s<<5)-s);let u="#";for(c=0;c<3;c+=1){const l=s>>c*8&255;u+=`00${l.toString(16)}`.slice(-2)}return u};return g.jsx(a1,{placement:"bottom",overlay:g.jsx(n1,{children:e}),children:g.jsx("div",{className:K("luminus-avatar-icon",f$.avatarIcon),style:{backgroundColor:i(r),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:g.jsx("div",{children:a})})})},h$=h.forwardRef(({userName:e,onClick:t,children:n},r)=>g.jsxs("button",{type:"button",ref:r,onClick:a=>{a.preventDefault(),t(a)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[g.jsx(gx,{name:e}),n]})),zh=e=>g.jsx(go.Toggle,{...e}),p$="_divider_1e6rk_1",m$={divider:p$},vx=({className:e})=>g.jsx(go.Divider,{className:K("luminus-dropdown-divider",e,m$.divider)}),g$="_dropdown_1lk66_1",v$={dropdown:g$},Hh=({toggle:e,children:t,align:n,...r})=>g.jsxs(go,{...r,align:n,children:[e,g.jsx(go.Menu,{className:K("luminus-dropdown rounded shadow",v$.dropdown),align:n,children:t})]});function b$(e,t,n){var r=this,a=h.useRef(null),i=h.useRef(0),o=h.useRef(null),s=h.useRef([]),c=h.useRef(),u=h.useRef(),l=h.useRef(e),d=h.useRef(!0);l.current=e;var f=typeof window<"u",p=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,b="maxWait"in n,x="debounceOnServer"in n&&!!n.debounceOnServer,_=b?Math.max(+n.maxWait||0,t):null;h.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var y=h.useMemo(function(){var T=function(R){var A=s.current,N=c.current;return s.current=c.current=null,i.current=R,u.current=l.current.apply(N,A)},w=function(R,A){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(R):setTimeout(R,A)},C=function(R){if(!d.current)return!1;var A=R-a.current;return!a.current||A>=t||A<0||b&&R-i.current>=_},S=function(R){return o.current=null,m&&s.current?T(R):(s.current=c.current=null,u.current)},M=function R(){var A=Date.now();if(C(A))return S(A);if(d.current){var N=t-(A-a.current),E=b?Math.min(N,_-(A-i.current)):N;w(R,E)}},D=function(){if(f||x){var R=Date.now(),A=C(R);if(s.current=[].slice.call(arguments),c.current=r,a.current=R,A){if(!o.current&&d.current)return i.current=a.current,w(M,t),v?T(a.current):u.current;if(b)return w(M,t),T(a.current)}return o.current||w(M,t),u.current}};return D.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),i.current=0,s.current=a.current=c.current=o.current=null},D.isPending=function(){return!!o.current},D.flush=function(){return o.current?S(Date.now()):u.current},D},[v,b,t,_,m,p,f,x]);return y}function y$(e,t){return e===t}function bx(e,t,n){var r=y$,a=h.useRef(e),i=h.useState({})[1],o=b$(h.useCallback(function(c){a.current=c,i({})},[i]),t,n),s=h.useRef(e);return r(s.current,e)||(o(e),s.current=e),[a.current,o]}const x$="_wrapper_1mvyk_1",w$="_open_1mvyk_9",_$="_dropdown_1mvyk_13",T$="_search-input-container_1mvyk_19",C$="_search-input_1mvyk_19",k$="_loading-container_1mvyk_25",S$="_items-container_1mvyk_32",O$="_header-row_1mvyk_38",E$="_name_1mvyk_49",$$="_item_1mvyk_32",M$="_column-item_1mvyk_65",R$="_icon_1mvyk_69",A$="_action-buttons-container_1mvyk_89",j$="_reverse_1mvyk_97",P$="_action-button_1mvyk_89",D$="_actions-dropdown_1mvyk_110",Nt={wrapper:x$,open:w$,dropdown:_$,"search-input-container":"_search-input-container_1mvyk_19",searchInputContainer:T$,"search-input":"_search-input_1mvyk_19",searchInput:C$,"loading-container":"_loading-container_1mvyk_25",loadingContainer:k$,"items-container":"_items-container_1mvyk_32",itemsContainer:S$,"header-row":"_header-row_1mvyk_38",headerRow:O$,name:E$,item:$$,"column-item":"_column-item_1mvyk_65",columnItem:M$,icon:R$,"action-buttons-container":"_action-buttons-container_1mvyk_89",actionButtonsContainer:A$,reverse:j$,"action-button":"_action-button_1mvyk_89",actionButton:P$,"actions-dropdown":"_actions-dropdown_1mvyk_110",actionsDropdown:D$},yx=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:a,currentSelection:i,onSelectionChange:o,onSearchQueryChange:s,texts:c,itemsNameWidth:u,additionalColumns:l,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:p,disabled:v,isLoading:m=!1,inputRef:b,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:y})=>{var He;const{texts:{customSelect:T}}=h.useContext(Tt),w=h.useRef(null),C=h.useRef(null),S=h.useRef(null),M=h.useRef(null),D=h.useRef(null),[R,A]=h.useState(""),[N]=bx(R,500),[,E]=h.useState(!1),{copyToClipboard:j}=fx(),P=(He=b.current)==null?void 0:He.getBoundingClientRect(),F=(P==null?void 0:P.x)??0,B=((P==null?void 0:P.x)??0)+((P==null?void 0:P.width)??0),L=(P==null?void 0:P.y)??0,W=((P==null?void 0:P.y)??0)+((P==null?void 0:P.height)??0),I=(P==null?void 0:P.width)??0,U=(P==null?void 0:P.height)??0,Y=5,{isMobile:te}=cs(),G=8,J=h.useMemo(()=>F?F>window.innerWidth/2-G:!1,[F]),Z=h.useMemo(()=>L?L>window.innerHeight/2-G:!1,[L]);h.useEffect(()=>{var ue;e&&((ue=S.current)==null||ue.focus())},[S,e]),h.useEffect(()=>{e||A("")},[e]),h.useEffect(()=>{s&&s(N)},[N,s]);const[X,re]=h.useState(null);h.useEffect(()=>{e&&n.length>0?re(0):re(null)},[n,e]);const z=h.useMemo(()=>X!==null?n.at(X)??null:null,[X,n]),V=h.useCallback((ue,Ce)=>{var xe,Ye;const Ee=document.getElementById(`item-${ue}`);if(Ee){const xt=Ee.clientHeight??0;Ce==="down"?(xe=M.current)==null||xe.scrollBy({left:0,top:xt,behavior:"smooth"}):(Ye=M.current)==null||Ye.scrollBy({left:0,top:-xt,behavior:"smooth"})}},[]),oe=h.useCallback(ue=>{if(X===null||v)return;const Ce=X+ue;Ce<0||Ce>=n.length||re(Ee=>(Ee!==null&&V(Ee,ue>0?"down":"up"),Ce))},[X,n,v,V]),k=h.useCallback(ue=>{if(e)switch(ue.key){case"Escape":ue.stopPropagation(),ue.preventDefault(),t();break;case"Enter":ue.stopPropagation(),ue.preventDefault(),v||o(z);break;case"ArrowUp":ue.stopPropagation(),ue.preventDefault(),oe(-1);break;case"ArrowDown":ue.stopPropagation(),ue.preventDefault(),oe(1);break}},[t,e,oe,z,v,o]),pe=h.useCallback(()=>{E(ue=>!ue)},[]);h.useEffect(()=>(window.addEventListener("scroll",pe),()=>{window.removeEventListener("scroll",pe)}),[pe]),h.useEffect(()=>(window.addEventListener("resize",pe),()=>{window.removeEventListener("resize",pe)}),[pe]),dx(k),lx([w,C,D],t);const me=u??(l&&l.length>0?250:0),de=(l==null?void 0:l.reduce((ue,Ce)=>ue+(Ce.width??100),0))??0,Re=h.useMemo(()=>(i&&e&&!v)??!1,[i,e,v]),Oe=h.useMemo(()=>(i&&e)??!1,[i,e]),lt=h.useMemo(()=>e&&(Oe||_!==void 0||y!==void 0),[e,Oe,_,y]),st=32,Be=te?`calc(100vw - ${st}px)`:`calc(max(${I}px, calc(${me}px + ${de}px)))`,tt=h.useMemo(()=>(R.length<1&&r&&r.length>0?r:n).map(ue=>{var Ce,Ee;return d?((Ce=ue.id)==null?void 0:Ce.toString())??"":((Ee=ue.name)==null?void 0:Ee.toString())??""}).reduce((ue,Ce)=>ue.length>Ce.length?ue:Ce,""),[R,r,n,d]);return g.jsxs(g.Fragment,{children:[g.jsx(xx,{show:e,onClick:t}),g.jsxs("div",{className:K("luminus-dropdown-picker-actions",Nt.actionButtonsContainer,{[Nt.reverse]:J}),style:{top:`calc(${L}px + ${U/2}px - 12px)`,left:J?Re&&Oe?`calc(${F}px - 24px - 8px - 24px - 4px)`:`calc(${F}px - 24px - 8px)`:`calc(${B}px + 8px)`},children:[Re&&g.jsx("button",{ref:C,type:"button",className:K("luminus-dropdown-picker-clear-button",Nt.actionButton),onClick:()=>!v&&o(null),children:g.jsx(Qt,{variant:"caption",className:"text-danger",children:g.jsx(s1,{size:16})})}),lt?g.jsx("div",{ref:D,children:g.jsxs(Hh,{toggle:g.jsx(zh,{as:Wh,className:K("luminus-dropdown-picker-actions-dropdown",Nt.actionsDropdown),icon:g.jsx(Qt,{variant:"caption",className:"text-primary",children:g.jsx(u1,{size:16})})}),children:[Oe?g.jsx(Ga,{icon:g.jsx(TS,{}),onClick:()=>{var ue,Ce;j(d?((ue=i==null?void 0:i.id)==null?void 0:ue.toString())??"":((Ce=i==null?void 0:i.name)==null?void 0:Ce.toString())??"")},children:T.copySelection}):null,Oe&&(_||y)?g.jsx(vx,{}):null,_?g.jsx(Ga,{icon:g.jsx(_S,{}),onClick:()=>{window.open(_,"_blank")},children:T.addNewOption}):null,y?g.jsx(Ga,{icon:g.jsx(PS,{}),onClick:()=>{y()},children:T.refreshOptions}):null]})}):null]}),g.jsx("div",{className:K("luminus-dropdown-picker",Nt.wrapper,{[Nt.open]:e}),style:{top:Z?`calc(${L}px - 50vh - 8px)`:`calc(${W}px + 8px)`,left:te?`${st/2}px`:J?`calc(${B}px - ${Be})`:F,right:te?`${st/2}px`:J?`${B}px`:`calc(${F}px + ${Be})`,width:Be,justifyContent:Z?"flex-end":"flex-start"},children:g.jsx("div",{ref:w,className:K("shadow rounded",Nt.dropdown),children:!v&&g.jsxs(g.Fragment,{children:[!s||f&&(p??n.length)<=Y?null:g.jsx("div",{className:K("search-input-container border-bottom",Nt.searchInputContainer),children:g.jsx(nr.Control,{ref:S,type:"search",size:"sm",className:Nt.searchInput,placeholder:c.searchPlaceholder,value:R,onChange:ue=>{var Ce;return A(((Ce=ue.target)==null?void 0:Ce.value)??"")}})}),R.length<1&&r&&r.length>0?g.jsx(Vh,{variant:"info",size:"sm",children:a??T.suggestedItemsTitle}):null,m?g.jsx("div",{className:Nt.loadingContainer,children:g.jsx(Eh,{animation:"border",variant:"primary"})}):(R.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&g.jsxs("div",{ref:M,className:K("items",Nt.itemsContainer),children:[l&&l.length>0&&g.jsxs("div",{className:K("header-row border-bottom",Nt.headerRow),children:[g.jsx("div",{className:Nt.name,children:g.jsx(Qt,{variant:"body2",children:tt})}),l==null?void 0:l.filter(ue=>ue.key!==x).map(ue=>g.jsx("div",{className:Nt.columnItem,style:{width:`${ue.width??100}px`,minWidth:`${ue.width??100}px`,maxWidth:`${ue.width??100}px`},children:g.jsx(Qt,{variant:"caption",children:ue.name})},ue.key))]}),(R.length<1&&r&&r.length>0?r:n).map((ue,Ce)=>g.jsxs("button",{id:`item-${Ce}`,type:"button",className:K("item cursor-pointer",Nt.item,{[Nt.focused]:X===Ce},{focused:X===Ce},{archive:ue.additionalColumns?ue.additionalColumns[x]:!1}),onClick:()=>!v&&o(ue),onMouseEnter:()=>re(Ce),children:[g.jsx("div",{className:Nt.name,children:g.jsx(Qt,{variant:"body2",children:d?ue.id:ue.name})}),l==null?void 0:l.filter(Ee=>Ee.key!==x).map(Ee=>g.jsx("div",{className:Nt.columnItem,style:{width:`${Ee.width??100}px`,minWidth:`${Ee.width??100}px`,maxWidth:`${Ee.width??100}px`},children:g.jsx(Qt,{variant:"caption",className:K("text-muted"),children:ue.additionalColumns&&ue.additionalColumns[Ee.key]})},Ee.key))]},ue.id))]})]})})})]})};function I$(e){return Le({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function N$(e){return Le({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function F$(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function L$(e){return Le({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const U$="_backdrop_3huvf_1",B$="_show_3huvf_11",Pg={backdrop:U$,show:B$},xx=({show:e,onClick:t})=>g.jsx("div",{className:K("luminus-backdrop",Pg.backdrop,{[Pg.show]:e}),onClick:()=>t&&t()}),Vh=e=>{const{variant:t,children:n,className:r,size:a="md",typographyVariant:i=a==="sm"?"body2":"body",...o}={...e};return g.jsx(FC,{variant:t,className:`text-center ${a==="sm"?"p-1":a==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...o,children:g.jsx(Qt,{variant:i,children:n})})},W$="_floating-label_3xm9u_1",z$="_without-label_3xm9u_21",H$="_floating-label-check_3xm9u_184",id={"floating-label":"_floating-label_3xm9u_1",floatingLabel:W$,"without-label":"_without-label_3xm9u_21",withoutLabel:z$,"floating-label-check":"_floating-label-check_3xm9u_184",floatingLabelCheck:H$},V$=({hint:e,children:t})=>e?g.jsx(Mh,{text:e,placement:"top",children:t}):t,Cu=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,inputContainerClassName:i,isForCheckInput:o,hint:s,required:c,...u},l)=>{const{ProjectIconComponent:d}=h.useContext(Tt),f=u.withoutLabel?"":g.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[u.label,c?g.jsx("span",{className:"text-danger fw-bold",style:{fontSize:"16px"},children:"*"}):null,s?g.jsx("div",{className:"d-flex align-items-center",children:g.jsx(d,{icon:"info"})}):null]});return o?g.jsx("div",{className:K("luminus-floating-label-check",id.floatingLabelCheck),children:t}):g.jsx(V$,{hint:s,children:g.jsx(_h,{ref:l,label:g.jsx("div",{className:"d-flex gap-1 align-items-center",children:f}),hidden:e??!1,className:K(`luminus-floating-label ${n??""}`,id.floatingLabel,{[i??""]:i},{[id.withoutLabel]:u.withoutLabel}),children:t})})});Cu.displayName="FloatingLabelInput";const q$="_row-label-input_mqkkx_1",Y$="_label_mqkkx_4",G$="_input-container_mqkkx_9",Z$="_invalid-feedback_mqkkx_104",K$="_keep-check-label_mqkkx_132",X$="_is-invalid_mqkkx_160",Bi={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:q$,label:Y$,"input-container":"_input-container_mqkkx_9",inputContainer:G$,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:Z$,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:K$,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:X$},ls=h.forwardRef(({hidden:e,children:t,required:n,className:r,isInvalid:a,isForRadioInput:i,isForTextAreaInput:o,inputContainerClassName:s,hint:c,...u},l)=>{const{ProjectIconComponent:d}=h.useContext(Tt),f=u.withoutLabel?g.jsx(g.Fragment,{}):g.jsx("label",{className:K("label col-6",{"col-12":o},Bi.label),children:g.jsxs(Qt,{variant:"form-label",className:K("d-flex gap-1 align-items-center",a?"text-danger":""),children:[u.label,n?g.jsx("span",{className:"text-danger fw-bold",style:{fontSize:"16px"},children:"*"}):null,c?g.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:g.jsx(d,{icon:"info"})}):null]})});return g.jsxs("div",{ref:l,className:K("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[Bi.isInvalid]:a},{[r??""]:r},{"d-none":e},Bi.rowLabelInput),children:[c?g.jsx(Mh,{text:c,placement:"top",children:f}):f,g.jsx("div",{className:K("input-container",Bi.inputContainer,{"col-6":!u.withoutLabel&&!o},{"col-12":u.withoutLabel||o},{[Bi.keepCheckLabel]:i},{[s??""]:s}),children:t})]})});ls.displayName="RowLabelInput";const wx=h.forwardRef(({children:e,className:t,hidden:n},r)=>g.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));wx.displayName="NoInputContainer";const _x=({currentSelection:e,selectedItemNavigateTo:t,children:n})=>{if(!e||!e.id||!t)return g.jsx("div",{className:"luminus-input-container position-relative w-100",children:n});const r=t(e);return g.jsx(Jo.Link,{to:r,className:"luminus-input-container position-relative w-100 text-decoration-none",children:n})},Tx=({InputContainer:e=Cu,type:t,value:n,onChange:r,debounceMs:a,label:i,withoutLabel:o,placeholder:s,size:c,hidden:u,disabled:l,showClearIcon:d,clearValue:f,list:p,className:v,step:m,minLength:b,maxLength:x,noSelectOnFocus:_,hint:y,onConfirm:T})=>{const w=t==="number",C=h.useCallback(()=>{if(!r)return;const F=f??null;r(w?F?Number(F):null:(F==null?void 0:F.toString())??"")},[f,w,r]),S=h.useRef(null),[M,D]=h.useState((n==null?void 0:n.toString())??""),R=h.useCallback(F=>{const B=F;r&&(w&&r(B==null||B===""?null:Number(B)),r(B||null))},[w,r]),A=h.useCallback(F=>{var L;const B=(L=F.target)==null?void 0:L.value;if(!a){R(B);return}D(B),S.current!==null&&window.clearTimeout(S.current),S.current=window.setTimeout(()=>{R(B)},a)},[a,R]),N=h.useMemo(()=>{if(T!==void 0)return F=>{F.key==="Enter"&&T&&T()}},[T]);h.useEffect(()=>{D(n===null?"":n.toString())},[n]);const[E,j]=h.useState(!1),P=Uh(t,n?n.toString()??null:null,E);return g.jsxs(e,{withoutLabel:o,label:i??"",hidden:u,className:v,hint:y,children:[g.jsx(nr.Control,{type:P,placeholder:s??i,size:c,value:a?M:(n==null?void 0:n.toString())??"",onChange:A,className:v??"",hidden:u,disabled:l??!1,list:p,onFocus:F=>{j(!0),!_&&F.target.select()},onBlur:()=>j(!1),onKeyDown:N,step:m,minLength:b,maxLength:x}),d&&n!==null&&r&&!l&&g.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:g.jsx(us,{color:"secondary",size:"sm",onClick:C,children:g.jsx(rs,{})})})]})},Cx=({value:e,MiniDetailComponent:t,children:n,miniDetailPlacement:r})=>!e||!t?n:g.jsx(t,{id:e.toString(),placement:r,children:n}),kx=({InputContainer:e=Cu,value:t,options:n,onChange:r,label:a,withoutLabel:i,isNumber:o,size:s,hidden:c,disabled:u,noSortOptions:l,className:d,suffixIdToName:f,noEmptyOption:p,appendCurrentSelectionWithName:v,dropdownWidth:m,hint:b,addNewOptionPath:x,refreshOptions:_,MiniDetailComponent:y,miniDetailPlacement:T,selectedItemNavigateTo:w})=>{const{texts:{customSelect:C}}=h.useContext(Tt),[S,M]=h.useState(!1),[D,R]=h.useState(""),A=h.useCallback(L=>{R(L)},[]),N=h.useMemo(()=>n.find(L=>L.id===t)??null,[n,t]),E=h.useCallback(L=>{var W;return L===null?"":!L.name||L.name.length===0?((W=L.id)==null?void 0:W.toString())??"":f?`${L.name} (${L.id})`:L.name},[f]),j=h.useMemo(()=>{const L=n?[...n]:[];return v!==void 0&&t!==void 0&&t!==null&&(L.some(W=>W.id===t)||L.push({id:t,name:v})),L.map(W=>({id:W.id,name:E(W)})).filter(W=>Rh(W.name,D)).sort((W,I)=>l?0:(W.name??"").localeCompare(I.name??""))},[n,l,D,E,v,t]),P=h.useCallback(L=>{var W;r&&r((L==null?void 0:L.id)===void 0||(L==null?void 0:L.id)===null?null:o?Number(L.id):(W=L.id)==null?void 0:W.toString())},[r,o]),F=h.useCallback(L=>{M(!1),P(L)},[P]),B=h.useRef(null);return g.jsx(g.Fragment,{children:g.jsxs(e,{withoutLabel:i,label:a??"",hidden:c,inputContainerClassName:K({"luminus-dropdown-select-open":S}),className:d,hint:b,children:[g.jsx(_x,{currentSelection:N,selectedItemNavigateTo:w,children:g.jsx(Cx,{value:t,MiniDetailComponent:y,miniDetailPlacement:T,children:g.jsxs(nr.Select,{ref:B,size:s,value:t??"",onMouseDown:L=>{L.currentTarget.focus(),L.preventDefault()},onClick:()=>{!u&&M(!0)},onChange:()=>{},className:K("w-100",{"luminus-dropdown-picker-disabled":u}),hidden:c,children:[p&&!(t==null||t==="")?void 0:g.jsx("option",{value:""}),t!=null&&g.jsx("option",{value:t,children:E(N)})]})})}),B.current&&g.jsx(yx,{show:S,onCancel:()=>M(!1),items:j,currentSelection:N??null,onSelectionChange:F,onSearchQueryChange:A,texts:C,disabled:u,inputRef:B,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:x,refreshOptions:_})]})})},Q$=h.forwardRef(({onClick:e,text:t},n)=>g.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:g.jsxs("div",{className:"d-flex flex-column align-items-center",children:[g.jsx("div",{className:"mt-",children:"…"}),g.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var qh=fs(),Me=e=>ds(e,qh),Yh=fs();Me.write=e=>ds(e,Yh);var ku=fs();Me.onStart=e=>ds(e,ku);var Gh=fs();Me.onFrame=e=>ds(e,Gh);var Zh=fs();Me.onFinish=e=>ds(e,Zh);var Za=[];Me.setTimeout=(e,t)=>{const n=Me.now()+t,r=()=>{const i=Za.findIndex(o=>o.cancel==r);~i&&Za.splice(i,1),Rr-=~i?1:0},a={time:n,handler:e,cancel:r};return Za.splice(Sx(n),0,a),Rr+=1,Ox(),a};var Sx=e=>~(~Za.findIndex(t=>t.time>e)||~Za.length);Me.cancel=e=>{ku.delete(e),Gh.delete(e),Zh.delete(e),qh.delete(e),Yh.delete(e)};Me.sync=e=>{hf=!0,Me.batchedUpdates(e),hf=!1};Me.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,Me.onStart(n)}return r.handler=e,r.cancel=()=>{ku.delete(n),t=null},r};var Kh=typeof window<"u"?window.requestAnimationFrame:()=>{};Me.use=e=>Kh=e;Me.now=typeof performance<"u"?()=>performance.now():Date.now;Me.batchedUpdates=e=>e();Me.catch=console.error;Me.frameLoop="always";Me.advance=()=>{Me.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):$x()};var Mr=-1,Rr=0,hf=!1;function ds(e,t){hf?(t.delete(e),e(0)):(t.add(e),Ox())}function Ox(){Mr<0&&(Mr=0,Me.frameLoop!=="demand"&&Kh(Ex))}function J$(){Mr=-1}function Ex(){~Mr&&(Kh(Ex),Me.batchedUpdates($x))}function $x(){const e=Mr;Mr=Me.now();const t=Sx(Mr);if(t&&(Mx(Za.splice(0,t),n=>n.handler()),Rr-=t),!Rr){J$();return}ku.flush(),qh.flush(e?Math.min(64,Mr-e):16.667),Gh.flush(),Yh.flush(),Zh.flush()}function fs(){let e=new Set,t=e;return{add(n){Rr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Rr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Rr-=t.size,Mx(t,r=>r(n)&&e.add(r)),Rr+=e.size,t=e)}}}function Mx(e,t){e.forEach(n=>{try{t(n)}catch(r){Me.catch(r)}})}var eM=Object.defineProperty,tM=(e,t)=>{for(var n in t)eM(e,n,{get:t[n],enumerable:!0})},Bn={};tM(Bn,{assign:()=>rM,colors:()=>jr,createStringInterpolator:()=>Qh,skipAnimation:()=>Ax,to:()=>Rx,willAdvance:()=>Jh});function pf(){}var nM=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ae={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function sr(e,t){if(ae.arr(e)){if(!ae.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Se=(e,t)=>e.forEach(t);function Jn(e,t,n){if(ae.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Jt=e=>ae.und(e)?[]:ae.arr(e)?e:[e];function oo(e,t){if(e.size){const n=Array.from(e);e.clear(),Se(n,t)}}var to=(e,...t)=>oo(e,n=>n(...t)),Xh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qh,Rx,jr=null,Ax=!1,Jh=pf,rM=e=>{e.to&&(Rx=e.to),e.now&&(Me.now=e.now),e.colors!==void 0&&(jr=e.colors),e.skipAnimation!=null&&(Ax=e.skipAnimation),e.createStringInterpolator&&(Qh=e.createStringInterpolator),e.requestAnimationFrame&&Me.use(e.requestAnimationFrame),e.batchedUpdates&&(Me.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Jh=e.willAdvance),e.frameLoop&&(Me.frameLoop=e.frameLoop)},so=new Set,Sn=[],od=[],Oc=0,Su={get idle(){return!so.size&&!Sn.length},start(e){Oc>e.priority?(so.add(e),Me.onStart(aM)):(jx(e),Me(mf))},advance:mf,sort(e){if(Oc)Me.onFrame(()=>Su.sort(e));else{const t=Sn.indexOf(e);~t&&(Sn.splice(t,1),Px(e))}},clear(){Sn=[],so.clear()}};function aM(){so.forEach(jx),so.clear(),Me(mf)}function jx(e){Sn.includes(e)||Px(e)}function Px(e){Sn.splice(iM(Sn,t=>t.priority>e.priority),0,e)}function mf(e){const t=od;for(let n=0;n<Sn.length;n++){const r=Sn[n];Oc=r.priority,r.idle||(Jh(r),r.advance(e),r.idle||t.push(r))}return Oc=0,od=Sn,od.length=0,Sn=t,Sn.length>0}function iM(e,t){const n=e.findIndex(t);return n<0?e.length:n}var oM=(e,t,n)=>Math.min(Math.max(n,e),t),sM={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},In="[-+]?\\d*\\.?\\d+",Ec=In+"%";function Ou(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var cM=new RegExp("rgb"+Ou(In,In,In)),uM=new RegExp("rgba"+Ou(In,In,In,In)),lM=new RegExp("hsl"+Ou(In,Ec,Ec)),dM=new RegExp("hsla"+Ou(In,Ec,Ec,In)),fM=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hM=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pM=/^#([0-9a-fA-F]{6})$/,mM=/^#([0-9a-fA-F]{8})$/;function gM(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=pM.exec(e))?parseInt(t[1]+"ff",16)>>>0:jr&&jr[e]!==void 0?jr[e]:(t=cM.exec(e))?(Fa(t[1])<<24|Fa(t[2])<<16|Fa(t[3])<<8|255)>>>0:(t=uM.exec(e))?(Fa(t[1])<<24|Fa(t[2])<<16|Fa(t[3])<<8|Ng(t[4]))>>>0:(t=fM.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=mM.exec(e))?parseInt(t[1],16)>>>0:(t=hM.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=lM.exec(e))?(Dg(Ig(t[1]),Rs(t[2]),Rs(t[3]))|255)>>>0:(t=dM.exec(e))?(Dg(Ig(t[1]),Rs(t[2]),Rs(t[3]))|Ng(t[4]))>>>0:null}function sd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Dg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=sd(a,r,e+1/3),o=sd(a,r,e),s=sd(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Fa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ig(e){return(parseFloat(e)%360+360)%360/360}function Ng(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Rs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Fg(e){let t=gM(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var jo=(e,t,n)=>{if(ae.fun(e))return e;if(ae.arr(e))return jo({range:e,output:t,extrapolate:n});if(ae.str(e.output[0]))return Qh(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(u=>u);return u=>{const l=bM(u,i);return vM(u,i[l],i[l+1],a[l],a[l+1],c,o,s,r.map)}};function vM(e,t,n,r,a,i,o,s,c){let u=c?c(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:a===1/0?u=u+r:u=u*(a-r)+r,u)}function bM(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var yM=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return oM(0,1,a/e)},$c=1.70158,As=$c*1.525,Lg=$c+1,Ug=2*Math.PI/3,Bg=2*Math.PI/4.5,js=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,xM={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Lg*e*e*e-$c*e*e,easeOutBack:e=>1+Lg*Math.pow(e-1,3)+$c*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((As+1)*2*e-As)/2:(Math.pow(2*e-2,2)*((As+1)*(e*2-2)+As)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Ug),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Ug)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Bg))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Bg)/2+1,easeInBounce:e=>1-js(1-e),easeOutBounce:js,easeInOutBounce:e=>e<.5?(1-js(1-2*e))/2:(1+js(2*e-1))/2,steps:yM},Po=Symbol.for("FluidValue.get"),li=Symbol.for("FluidValue.observers"),kn=e=>!!(e&&e[Po]),on=e=>e&&e[Po]?e[Po]():e,Wg=e=>e[li]||null;function wM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Do(e,t){const n=e[li];n&&n.forEach(r=>{wM(r,t)})}var Dx=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");_M(this,e)}},_M=(e,t)=>Ix(e,Po,t);function xi(e,t){if(e[Po]){let n=e[li];n||Ix(e,li,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Io(e,t){const n=e[li];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[li]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ix=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Js=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,TM=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,zg=new RegExp(`(${Js.source})(%|[a-z]+)`,"i"),CM=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Eu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Nx=e=>{const[t,n]=kM(e);if(!t||Xh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&Eu.test(n))return Nx(n);if(n)return n}return e},kM=e=>{const t=Eu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},cd,SM=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Fx=e=>{cd||(cd=jr?new RegExp(`(${Object.keys(jr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>on(i).replace(Eu,Nx).replace(TM,Fg).replace(cd,Fg)),n=t.map(i=>i.match(Js).map(Number)),a=n[0].map((i,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(i=>jo({...e,output:i}));return i=>{var c;const o=!zg.test(t[0])&&((c=t.find(u=>zg.test(u)))==null?void 0:c.replace(Js,""));let s=0;return t[0].replace(Js,()=>`${a[s++](i)}${o||""}`).replace(CM,SM)}},ep="react-spring: ",Lx=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${ep}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},OM=Lx(console.warn);function EM(){OM(`${ep}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $M=Lx(console.warn);function MM(){$M(`${ep}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function $u(e){return ae.str(e)&&(e[0]=="#"||/\d/.test(e)||!Xh()&&Eu.test(e)||e in(jr||{}))}var ta=Xh()?h.useEffect:h.useLayoutEffect,RM=()=>{const e=h.useRef(!1);return ta(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tp(){const e=h.useState()[1],t=RM();return()=>{t.current&&e(Math.random())}}function AM(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&jM(t,i.inputs)||(i={inputs:t,result:e()}):i=n,h.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function jM(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var np=e=>h.useEffect(e,PM),PM=[];function gf(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var No=Symbol.for("Animated:node"),DM=e=>!!e&&e[No]===e,qn=e=>e&&e[No],rp=(e,t)=>nM(e,No,t),Mu=e=>e&&e[No]&&e[No].getPayload(),Ux=class{constructor(){rp(this,this)}getPayload(){return this.payload||[]}},hs=class extends Ux{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ae.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new hs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ae.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ae.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Fo=class extends hs{constructor(e){super(0),this._string=null,this._toString=jo({output:[e,e]})}static create(e){return new Fo(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ae.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=jo({output:[this.getValue(),e]})),this._value=0,super.reset()}},Mc={dependencies:null},Ru=class extends Ux{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Jn(this.source,(n,r)=>{DM(n)?t[r]=n.getValue(e):kn(n)?t[r]=on(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Se(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Jn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Mc.dependencies&&kn(e)&&Mc.dependencies.add(e);const t=Mu(e);t&&Se(t,n=>this.add(n))}},Bx=class extends Ru{constructor(e){super(e)}static create(e){return new Bx(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(IM)),!0)}};function IM(e){return($u(e)?Fo:hs).create(e)}function vf(e){const t=qn(e);return t?t.constructor:ae.arr(e)?Bx:$u(e)?Fo:hs}var Hg=(e,t)=>{const n=!ae.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,a)=>{const i=h.useRef(null),o=n&&h.useCallback(v=>{i.current=LM(a,v)},[a]),[s,c]=FM(r,t),u=tp(),l=()=>{const v=i.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,s.getValue(!0)):!1)===!1&&u()},d=new NM(l,c),f=h.useRef();ta(()=>(f.current=d,Se(c,v=>xi(v,d)),()=>{f.current&&(Se(f.current.deps,v=>Io(v,f.current)),Me.cancel(f.current.update))})),h.useEffect(l,[]),np(()=>()=>{const v=f.current;Se(v.deps,m=>Io(m,v))});const p=t.getComponentProps(s.getValue());return ee.createElement(e,{...p,ref:o})})},NM=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Me.write(this.update)}};function FM(e,t){const n=new Set;return Mc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ru(e),Mc.dependencies=null,[e,n]}function LM(e,t){return e&&(ae.fun(e)?e(t):e.current=t),t}var Vg=Symbol.for("AnimatedComponent"),UM=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new Ru(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const s=qg(o)||"Anonymous";return ae.str(o)?o=i[o]||(i[o]=Hg(o,a)):o=o[Vg]||(o[Vg]=Hg(o,a)),o.displayName=`Animated(${s})`,o};return Jn(e,(o,s)=>{ae.arr(e)&&(s=qg(o)),i[s]=i(o)}),{animated:i}},qg=e=>ae.str(e)?e:e&&ae.str(e.displayName)?e.displayName:ae.fun(e)&&e.name||null;function sn(e,...t){return ae.fun(e)?e(...t):e}var co=(e,t)=>e===!0||!!(t&&e&&(ae.fun(e)?e(t):Jt(e).includes(t))),Wx=(e,t)=>ae.obj(e)?t&&e[t]:e,zx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,BM=e=>e,Au=(e,t=BM)=>{let n=WM;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);ae.und(i)||(r[a]=i)}return r},WM=["config","onProps","onStart","onChange","onPause","onResume","onRest"],zM={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function HM(e){const t={};let n=0;if(Jn(e,(r,a)=>{zM[a]||(t[a]=r,n++)}),n)return t}function ap(e){const t=HM(e);if(t){const n={to:t};return Jn(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Lo(e){return e=on(e),ae.arr(e)?e.map(Lo):$u(e)?Bn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Hx(e){for(const t in e)return!0;return!1}function bf(e){return ae.fun(e)||ae.arr(e)&&ae.obj(e[0])}function yf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Vx(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var ip={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},xf={...ip.default,mass:1,damping:1,easing:xM.linear,clamp:!1},VM=class{constructor(){this.velocity=0,Object.assign(this,xf)}};function qM(e,t,n){n&&(n={...n},Yg(n,t),t={...n,...t}),Yg(e,t),Object.assign(e,t);for(const o in xf)e[o]==null&&(e[o]=xf[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;return ae.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function Yg(e,t){if(!ae.und(t.decay))e.duration=void 0;else{const n=!ae.und(t.tension)||!ae.und(t.friction);(n||!ae.und(t.frequency)||!ae.und(t.damping)||!ae.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Gg=[],YM=class{constructor(){this.changed=!1,this.values=Gg,this.toValues=null,this.fromValues=Gg,this.config=new VM,this.immediate=!1}};function qx(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((o,s)=>{let c,u,l=co(n.cancel??(r==null?void 0:r.cancel),t);if(l)p();else{ae.und(n.pause)||(a.paused=co(n.pause,t));let v=r==null?void 0:r.pause;v!==!0&&(v=a.paused||co(v,t)),c=sn(n.delay||0,t),v?(a.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){a.resumeQueue.add(f),a.timeouts.delete(u),u.cancel(),c=u.time-Me.now()}function f(){c>0&&!Bn.skipAnimation?(a.delayed=!0,u=Me.setTimeout(p,c),a.pauseQueue.add(d),a.timeouts.add(u)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(u),e<=(a.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},o)}catch(v){s(v)}}})}var op=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ka(e.get()):t.every(n=>n.noop)?Yx(e.get()):jn(e.get(),t.every(n=>n.finished)),Yx=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),jn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ka=e=>({value:e,cancelled:!0,finished:!1});function Gx(e,t,n,r){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:c}=n;return!i&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const u=Au(t,(b,x)=>x==="onRest"?void 0:b);let l,d;const f=new Promise((b,x)=>(l=b,d=x)),p=b=>{const x=a<=(n.cancelId||0)&&Ka(r)||a!==n.asyncId&&jn(r,!1);if(x)throw b.result=x,d(b),b},v=(b,x)=>{const _=new Zg,y=new Kg;return(async()=>{if(Bn.skipAnimation)throw Uo(n),y.result=jn(r,!1),d(y),y;p(_);const T=ae.obj(b)?{...b}:{...x,to:b};T.parentId=a,Jn(u,(C,S)=>{ae.und(T[S])&&(T[S]=C)});const w=await r.start(T);return p(_),n.paused&&await new Promise(C=>{n.resumeQueue.add(C)}),w})()};let m;if(Bn.skipAnimation)return Uo(n),jn(r,!1);try{let b;ae.arr(e)?b=(async x=>{for(const _ of x)await v(_)})(e):b=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([b.then(l),f]),m=jn(r.get(),!0,!1)}catch(b){if(b instanceof Zg)m=b.result;else if(b instanceof Kg)m=b.result;else throw b}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?c:void 0)}return ae.fun(o)&&Me.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function Uo(e,t){oo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Zg=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Kg=class extends Error{constructor(){super("SkipAnimationSignal")}},wf=e=>e instanceof sp,GM=1,sp=class extends Dx{constructor(){super(...arguments),this.id=GM++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=qn(this);return e&&e.getValue()}to(...e){return Bn.to(this,e)}interpolate(...e){return EM(),Bn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Do(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Su.sort(this),Do(this,{type:"priority",parent:this,priority:e})}},ba=Symbol.for("SpringPhase"),Zx=1,_f=2,Tf=4,ud=e=>(e[ba]&Zx)>0,Cr=e=>(e[ba]&_f)>0,Wi=e=>(e[ba]&Tf)>0,Xg=(e,t)=>t?e[ba]|=_f|Zx:e[ba]&=~_f,Qg=(e,t)=>t?e[ba]|=Tf:e[ba]&=~Tf,ZM=class extends sp{constructor(e,t){if(super(),this.animation=new YM,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ae.und(e)||!ae.und(t)){const n=ae.obj(e)?{...e}:{...t,from:e};ae.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Cr(this)||this._state.asyncTo)||Wi(this)}get goal(){return on(this.animation.to)}get velocity(){const e=qn(this);return e instanceof hs?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return ud(this)}get isAnimating(){return Cr(this)}get isPaused(){return Wi(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=Mu(r.to);!o&&kn(r.to)&&(a=Jt(on(r.to))),r.values.forEach((u,l)=>{if(u.done)return;const d=u.constructor==Fo?1:o?o[l].lastPosition:a[l];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let v=u.elapsedTime+=e;const m=r.fromValues[l],b=u.v0!=null?u.v0:u.v0=ae.arr(i.velocity)?i.velocity[l]:i.velocity;let x;const _=i.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(ae.und(i.duration))if(i.decay){const y=i.decay===!0?.998:i.decay,T=Math.exp(-(1-y)*v);p=m+b/(1-y)*(1-T),f=Math.abs(u.lastPosition-p)<=_,x=b*T}else{x=u.lastVelocity==null?b:u.lastVelocity;const y=i.restVelocity||_/10,T=i.clamp?0:i.bounce,w=!ae.und(T),C=m==d?u.v0>0:m<d;let S,M=!1;const D=1,R=Math.ceil(e/D);for(let A=0;A<R&&(S=Math.abs(x)>y,!(!S&&(f=Math.abs(d-p)<=_,f)));++A){w&&(M=p==d||p>d==C,M&&(x=-x*T,p=d));const N=-i.tension*1e-6*(p-d),E=-i.friction*.001*x,j=(N+E)/i.mass;x=x+j*D,p=p+x*D}}else{let y=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,v=u.elapsedTime+=e)),y=(i.progress||0)+v/this._memoizedDuration,y=y>1?1:y<0?0:y,u.durationProgress=y),p=m+i.easing(y)*(d-m),x=(p-u.lastPosition)/e,f=y==1}u.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[l].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const s=qn(this),c=s.getValue();if(t){const u=on(r.to);(c!==u||n)&&!i.decay?(s.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return Me.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Cr(this)){const{to:e,config:t}=this.animation;Me.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return ae.und(e)?(n=this.queue||[],this.queue=[]):n=[ae.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>op(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Uo(this._state,e&&this._lastCallId),Me.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=ae.obj(n)?n[t]:n,(n==null||bf(n))&&(n=void 0),r=ae.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return ud(this)||(e.reverse&&([n,r]=[r,n]),r=on(r),ae.und(r)?qn(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Au(e,(o,s)=>/^on/.test(s)?Wx(o,n):o)),e0(this,e,"onProps"),Hi(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return qx(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Wi(this)||(Qg(this,!0),to(i.pauseQueue),Hi(this,"onPause",jn(this,zi(this,this.animation.to)),this))},resume:()=>{Wi(this)&&(Qg(this,!1),Cr(this)&&this._resume(),to(i.resumeQueue),Hi(this,"onResume",jn(this,zi(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=Kx(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ka(this));const r=!ae.und(e.to),a=!ae.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ka(this));const{key:i,defaultProps:o,animation:s}=this,{to:c,from:u}=s;let{to:l=c,from:d=u}=e;a&&!r&&(!t.default||ae.und(l))&&(l=d),t.reverse&&([l,d]=[d,l]);const f=!sr(d,u);f&&(s.from=d),d=on(d);const p=!sr(l,c);p&&this._focus(l);const v=bf(t.to),{config:m}=s,{decay:b,velocity:x}=m;(r||a)&&(m.velocity=0),t.config&&!v&&qM(m,sn(t.config,i),t.config!==o.config?sn(o.config,i):void 0);let _=qn(this);if(!_||ae.und(l))return n(jn(this,!0));const y=ae.und(t.reset)?a&&!t.default:!ae.und(d)&&co(t.reset,i),T=y?d:this.get(),w=Lo(l),C=ae.num(w)||ae.arr(w)||$u(w),S=!v&&(!C||co(o.immediate||t.immediate,i));if(p){const A=vf(l);if(A!==_.constructor)if(S)_=this._set(w);else throw Error(`Cannot animate between ${_.constructor.name} and ${A.name}, as the "to" prop suggests`)}const M=_.constructor;let D=kn(l),R=!1;if(!D){const A=y||!ud(this)&&f;(p||A)&&(R=sr(Lo(T),w),D=!R),(!sr(s.immediate,S)&&!S||!sr(m.decay,b)||!sr(m.velocity,x))&&(D=!0)}if(R&&Cr(this)&&(s.changed&&!y?D=!0:D||this._stop(c)),!v&&((D||kn(c))&&(s.values=_.getPayload(),s.toValues=kn(l)?null:M==Fo?[1]:Jt(w)),s.immediate!=S&&(s.immediate=S,!S&&!y&&this._set(c)),D)){const{onRest:A}=s;Se(XM,E=>e0(this,t,E));const N=jn(this,zi(this,c));to(this._pendingCalls,N),this._pendingCalls.add(n),s.changed&&Me.batchedUpdates(()=>{var E;s.changed=!y,A==null||A(N,this),y?sn(o.onRest,N):(E=s.onStart)==null||E.call(s,N,this)})}y&&this._set(T),v?n(Gx(t.to,t,this._state,this)):D?this._start():Cr(this)&&!p?this._pendingCalls.add(n):n(Yx(T))}_focus(e){const t=this.animation;e!==t.to&&(Wg(this)&&this._detach(),t.to=e,Wg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;kn(t)&&(xi(t,this),wf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;kn(e)&&Io(e,this)}_set(e,t=!0){const n=on(e);if(!ae.und(n)){const r=qn(this);if(!r||!sr(n,r.getValue())){const a=vf(n);!r||r.constructor!=a?rp(this,a.create(n)):r.setValue(n),r&&Me.batchedUpdates(()=>{this._onChange(n,t)})}}return qn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Hi(this,"onStart",jn(this,zi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),sn(this.animation.onChange,e,this)),sn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;qn(this).reset(on(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Cr(this)||(Xg(this,!0),Wi(this)||this._resume())}_resume(){Bn.skipAnimation?this.finish():Su.start(this)}_stop(e,t){if(Cr(this)){Xg(this,!1);const n=this.animation;Se(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Do(this,{type:"idle",parent:this});const r=t?Ka(this.get()):jn(this.get(),zi(this,e??n.to));to(this._pendingCalls,r),n.changed&&(n.changed=!1,Hi(this,"onRest",r,this))}}};function zi(e,t){const n=Lo(t),r=Lo(e.get());return sr(r,n)}function Kx(e,t=e.loop,n=e.to){const r=sn(t);if(r){const a=r!==!0&&ap(r),i=(a||e).reverse,o=!a||a.reset;return Bo({...e,loop:t,default:!1,pause:void 0,to:!i||bf(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function Bo(e){const{to:t,from:n}=e=ap(e),r=new Set;return ae.obj(t)&&Jg(t,r),ae.obj(n)&&Jg(n,r),e.keys=r.size?Array.from(r):null,e}function KM(e){const t=Bo(e);return ae.und(t.default)&&(t.default=Au(t)),t}function Jg(e,t){Jn(e,(n,r)=>n!=null&&t.add(r))}var XM=["onStart","onRest","onChange","onPause","onResume"];function e0(e,t,n){e.animation[n]=t[n]!==zx(t,n)?Wx(t[n],e.key):void 0}function Hi(e,t,...n){var r,a,i,o;(a=(r=e.animation)[t])==null||a.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var QM=["onStart","onChange","onRest"],JM=1,Xx=class{constructor(e,t){this.id=JM++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];ae.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Bo(e)),this}start(e){let{queue:t}=this;return e?t=Jt(e).map(Bo):this.queue=[],this._flush?this._flush(this,t):(n2(this,t),Cf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Se(Jt(t),r=>n[r].stop(!!e))}else Uo(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ae.und(e))this.start({pause:!0});else{const t=this.springs;Se(Jt(e),n=>t[n].pause())}return this}resume(e){if(ae.und(e))this.start({pause:!1});else{const t=this.springs;Se(Jt(e),n=>t[n].resume())}return this}each(e){Jn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,oo(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&oo(t,([s,c])=>{c.value=o,s(c,this,this._item)}),i&&(this._started=!1,oo(n,([s,c])=>{c.value=o,s(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Me.onFrame(this._onFrame)}};function Cf(e,t){return Promise.all(t.map(n=>Qx(e,n))).then(n=>op(e,n))}async function Qx(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:c}=t,u=ae.obj(t.default)&&t.default;o&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const l=ae.arr(a)||ae.fun(a)?a:void 0;l?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Se(QM,m=>{const b=t[m];if(ae.fun(b)){const x=e._events[m];t[m]=({finished:_,cancelled:y})=>{const T=x.get(b);T?(_||(T.finished=!1),y&&(T.cancelled=!0)):x.set(b,{value:null,finished:_||!1,cancelled:y||!1})},u&&(u[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,to(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||zx(t,"cancel")===!0;(l||p&&d.asyncId)&&f.push(qx(++e._lastAsyncId,{props:t,state:d,actions:{pause:pf,resume:pf,start(m,b){p?(Uo(d,e._lastAsyncId),b(Ka(e))):(m.onRest=s,b(Gx(l,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const v=op(e,await Promise.all(f));if(o&&v.finished&&!(n&&v.noop)){const m=Kx(t,o,a);if(m)return n2(e,[m]),Qx(e,m,!0)}return c&&Me.batchedUpdates(()=>c(v,e,e.item)),v}function kf(e,t){const n={...e.springs};return t&&Se(Jt(t),r=>{ae.und(r.keys)&&(r=Bo(r)),ae.obj(r.to)||(r={...r,to:void 0}),t2(n,r,a=>e2(a))}),Jx(e,n),n}function Jx(e,t){Jn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,xi(n,e))})}function e2(e,t){const n=new ZM;return n.key=e,t&&xi(n,t),n}function t2(e,t,n){t.keys&&Se(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function n2(e,t){Se(t,n=>{t2(e.springs,n,r=>e2(r,e))})}var ps=({children:e,...t})=>{const n=h.useContext(Rc),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=AM(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=Rc;return ee.createElement(i,{value:t},e)},Rc=e8(ps,{});ps.Provider=Rc.Provider;ps.Consumer=Rc.Consumer;function e8(e,t){return Object.assign(e,ee.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var r2=()=>{const e=[],t=function(r){MM();const a=[];return Se(e,(i,o)=>{if(ae.und(r))a.push(i.start());else{const s=n(r,i,o);s&&a.push(i.start(s))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return Se(e,r=>r.pause(...arguments)),this},t.resume=function(){return Se(e,r=>r.resume(...arguments)),this},t.set=function(r){Se(e,(a,i)=>{const o=ae.fun(r)?r(i,a):r;o&&a.set(o)})},t.start=function(r){const a=[];return Se(e,(i,o)=>{if(ae.und(r))a.push(i.start());else{const s=this._getProps(r,i,o);s&&a.push(i.start(s))}}),a},t.stop=function(){return Se(e,r=>r.stop(...arguments)),this},t.update=function(r){return Se(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return ae.fun(r)?r(i,a):r};return t._getProps=n,t};function t8(e,t,n){const r=ae.fun(t)&&t;r&&!n&&(n=[]);const a=h.useMemo(()=>r||arguments.length==3?r2():void 0,[]),i=h.useRef(0),o=tp(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const y=kf(x,_);return i.current>0&&!s.queue.length&&!Object.keys(y).some(w=>!x.springs[w])?Cf(x,_):new Promise(w=>{Jx(x,y),s.queue.push(()=>{w(Cf(x,_))}),o()})}}),[]),c=h.useRef([...s.ctrls]),u=[],l=gf(e)||0;h.useMemo(()=>{Se(c.current.slice(e,l),x=>{yf(x,a),x.stop(!0)}),c.current.length=e,d(l,e)},[e]),h.useMemo(()=>{d(0,Math.min(l,e))},n);function d(x,_){for(let y=x;y<_;y++){const T=c.current[y]||(c.current[y]=new Xx(null,s.flush)),w=r?r(y,T):t[y];w&&(u[y]=KM(w))}}const f=c.current.map((x,_)=>kf(x,u[_])),p=h.useContext(ps),v=gf(p),m=p!==v&&Hx(p);ta(()=>{i.current++,s.ctrls=c.current;const{queue:x}=s;x.length&&(s.queue=[],Se(x,_=>_())),Se(c.current,(_,y)=>{a==null||a.add(_),m&&_.start({default:p});const T=u[y];T&&(Vx(_,T.ref),_.ref?_.queue.push(T):_.start(T))})}),np(()=>()=>{Se(s.ctrls,x=>x.stop(!0))});const b=f.map(x=>({...x}));return a?[b,a]:b}function xr(e,t){const n=ae.fun(e),[[r],a]=t8(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}function Sa(e,t,n){const r=ae.fun(t)&&t,{reset:a,sort:i,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:l,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?r2():void 0,[]),p=Jt(e),v=[],m=h.useRef(null),b=a?null:m.current;ta(()=>{m.current=v}),np(()=>(Se(v,j=>{f==null||f.add(j.ctrl),j.ctrl.ref=f}),()=>{Se(m.current,j=>{j.expired&&clearTimeout(j.expirationId),yf(j.ctrl,f),j.ctrl.stop(!0)})}));const x=r8(p,r?r():t,b),_=a&&m.current||[];ta(()=>Se(_,({ctrl:j,item:P,key:F})=>{yf(j,f),sn(u,P,F)}));const y=[];if(b&&Se(b,(j,P)=>{j.expired?(clearTimeout(j.expirationId),_.push(j)):(P=y[P]=x.indexOf(j.key),~P&&(v[P]=j))}),Se(p,(j,P)=>{v[P]||(v[P]={key:x[P],item:j,phase:"mount",ctrl:new Xx},v[P].ctrl.item=j)}),y.length){let j=-1;const{leave:P}=r?r():t;Se(y,(F,B)=>{const L=b[B];~F?(j=v.indexOf(L),v[j]={...L,item:p[F]}):P&&v.splice(++j,0,L)})}ae.fun(i)&&v.sort((j,P)=>i(j.item,P.item));let T=-o;const w=tp(),C=Au(t),S=new Map,M=h.useRef(new Map),D=h.useRef(!1);Se(v,(j,P)=>{const F=j.key,B=j.phase,L=r?r():t;let W,I;const U=sn(L.delay||0,F);if(B=="mount")W=L.enter,I="enter";else{const J=x.indexOf(F)<0;if(B!="leave")if(J)W=L.leave,I="leave";else if(W=L.update)I="update";else return;else if(!J)W=L.enter,I="enter";else return}if(W=sn(W,j.item,P),W=ae.obj(W)?ap(W):{to:W},!W.config){const J=d||C.config;W.config=sn(J,j.item,P,I)}T+=o;const Y={...C,delay:U+T,ref:l,immediate:L.immediate,reset:!1,...W};if(I=="enter"&&ae.und(Y.from)){const J=r?r():t,Z=ae.und(J.initial)||b?J.from:J.initial;Y.from=sn(Z,j.item,P)}const{onResolve:te}=Y;Y.onResolve=J=>{sn(te,J);const Z=m.current,X=Z.find(re=>re.key===F);if(X&&!(J.cancelled&&X.phase!="update")&&X.ctrl.idle){const re=Z.every(z=>z.ctrl.idle);if(X.phase=="leave"){const z=sn(s,X.item);if(z!==!1){const V=z===!0?0:z;if(X.expired=!0,!re&&V>0){V<=2147483647&&(X.expirationId=setTimeout(w,V));return}}}re&&Z.some(z=>z.expired)&&(M.current.delete(X),c&&(D.current=!0),w())}};const G=kf(j.ctrl,Y);I==="leave"&&c?M.current.set(j,{phase:I,springs:G,payload:Y}):S.set(j,{phase:I,springs:G,payload:Y})});const R=h.useContext(ps),A=gf(R),N=R!==A&&Hx(R);ta(()=>{N&&Se(v,j=>{j.ctrl.start({default:R})})},[R]),Se(S,(j,P)=>{if(M.current.size){const F=v.findIndex(B=>B.key===P.key);v.splice(F,1)}}),ta(()=>{Se(M.current.size?M.current:S,({phase:j,payload:P},F)=>{const{ctrl:B}=F;F.phase=j,f==null||f.add(B),N&&j=="enter"&&B.start({default:R}),P&&(Vx(B,P.ref),(B.ref||f)&&!D.current?B.update(P):(B.start(P),D.current&&(D.current=!1)))})},a?void 0:n);const E=j=>ee.createElement(ee.Fragment,null,v.map((P,F)=>{const{springs:B}=S.get(P)||P.ctrl,L=j({...B},P.item,P,F);return L&&L.type?ee.createElement(L.type,{...L.props,key:ae.str(P.key)||ae.num(P.key)?P.key:P.ctrl.id,ref:L.ref}):L}));return f?[E,f]:E}var n8=1;function r8(e,{key:t,keys:n=t},r){if(n===null){const a=new Set;return e.map(i=>{const o=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!a.has(s));return o?(a.add(o),o.key):n8++})}return ae.und(n)?e:ae.fun(n)?e.map(n):Jt(n)}var a2=class extends sp{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=jo(...t);const n=this._get(),r=vf(n);rp(this,r.create(n))}advance(e){const t=this._get(),n=this.get();sr(t,n)||(qn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&t0(this._active)&&ld(this)}_get(){const e=ae.arr(this.source)?this.source.map(on):Jt(on(this.source));return this.calc(...e)}_start(){this.idle&&!t0(this._active)&&(this.idle=!1,Se(Mu(this),e=>{e.done=!1}),Bn.skipAnimation?(Me.batchedUpdates(()=>this.advance()),ld(this)):Su.start(this))}_attach(){let e=1;Se(Jt(this.source),t=>{kn(t)&&xi(t,this),wf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Se(Jt(this.source),e=>{kn(e)&&Io(e,this)}),this._active.clear(),ld(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Jt(this.source).reduce((t,n)=>Math.max(t,(wf(n)?n.priority:0)+1),0))}};function a8(e){return e.idle!==!1}function t0(e){return!e.size||Array.from(e).every(a8)}function ld(e){e.idle||(e.idle=!0,Se(Mu(e),t=>{t.done=!0}),Do(e,{type:"idle",parent:e}))}var Ur=(e,...t)=>new a2(e,t);Bn.assign({createStringInterpolator:Fx,to:(e,t)=>new a2(e,t)});var i2=/^--/;function i8(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!i2.test(e)&&!(uo.hasOwnProperty(e)&&uo[e])?t+"px":(""+t).trim()}var n0={};function o8(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:a,children:i,scrollTop:o,scrollLeft:s,viewBox:c,...u}=t,l=Object.values(u),d=Object.keys(u).map(f=>n||e.hasAttribute(f)?f:n0[f]||(n0[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));i!==void 0&&(e.textContent=i);for(const f in a)if(a.hasOwnProperty(f)){const p=i8(f,a[f]);i2.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,l[p])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),c!==void 0&&e.setAttribute("viewBox",c)}var uo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},s8=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),c8=["Webkit","Ms","Moz","O"];uo=Object.keys(uo).reduce((e,t)=>(c8.forEach(n=>e[s8(n,t)]=e[t]),e),uo);var u8=/^(matrix|translate|scale|rotate|skew)/,l8=/^(translate)/,d8=/^(rotate|skew)/,dd=(e,t)=>ae.num(e)&&e!==0?e+t:e,ec=(e,t)=>ae.arr(e)?e.every(n=>ec(n,t)):ae.num(e)?e===t:parseFloat(e)===t,f8=class extends Ru{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(s=>dd(s,"px")).join(",")})`,ec(o,0)])),Jn(r,(o,s)=>{if(s==="transform")a.push([o||""]),i.push(c=>[c,c===""]);else if(u8.test(s)){if(delete r[s],ae.und(o))return;const c=l8.test(s)?"px":d8.test(s)?"deg":"";a.push(Jt(o)),i.push(s==="rotate3d"?([u,l,d,f])=>[`rotate3d(${u},${l},${d},${dd(f,c)})`,ec(f,0)]:u=>[`${s}(${u.map(l=>dd(l,c)).join(",")})`,ec(u,s.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new h8(a,i)),super(r)}},h8=class extends Dx{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Se(this.inputs,(n,r)=>{const a=on(n[0]),[i,o]=this.transforms[r](ae.arr(a)?a:n.map(on));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Se(this.inputs,t=>Se(t,n=>kn(n)&&xi(n,this)))}observerRemoved(e){e==0&&Se(this.inputs,t=>Se(t,n=>kn(n)&&Io(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Do(this,e)}},p8=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Bn.assign({batchedUpdates:$r.unstable_batchedUpdates,createStringInterpolator:Fx,colors:sM});var m8=UM(p8,{applyAnimatedValues:o8,createAnimatedStyle:e=>new f8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),rt=m8.animated;function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ya.apply(this,arguments)}var g8={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},r0=function(e,t){return"translate("+e+"px, "+t+"px)"},o2=h.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=mt(),o=pn(),s=o.animate,c=o.config,u=u_(),l=u[0],d=u[1],f=h.useRef(!1),p=void 0,v=!1,m=d.width>0&&d.height>0,b=Math.round(n[0]),x=Math.round(n[1]);m&&(r==="top"?(b-=d.width/2,x-=d.height+14):r==="right"?(b+=14,x-=d.height/2):r==="bottom"?(b-=d.width/2,x+=14):r==="left"?(b-=d.width+14,x-=d.height/2):r==="center"&&(b-=d.width/2,x-=d.height/2),p={transform:r0(b,x)},f.current||(v=!0),f.current=[b,x]);var _=xr({to:p,config:c,immediate:!s||v}),y=ya({},g8,i.tooltip.wrapper,{transform:(t=_.transform)!=null?t:r0(b,x),opacity:_.transform?1:0});return g.jsx(rt.div,{ref:l,style:y,children:a})});o2.displayName="TooltipWrapper";var v8=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return g.jsx("span",{style:ya({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),s2=h.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,o=i!==void 0&&i,s=e.color,c=e.renderContent,u=mt(),l=Ml(a);if(typeof c=="function")t=c();else{var d=r;l!==void 0&&d!==void 0&&(d=l(d)),t=g.jsxs("div",{style:u.tooltip.basic,children:[o&&g.jsx(v8,{color:s,style:u.tooltip.chip}),d!==void 0?g.jsxs("span",{children:[n,": ",g.jsx("strong",{children:""+d})]}):n]})}return g.jsx("div",{style:u.tooltip.container,children:t})}),b8={width:"100%",borderCollapse:"collapse"},y8=h.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,o=mt();return a.length?(t=typeof i=="function"?i():g.jsxs("div",{children:[n&&n,g.jsx("table",{style:ya({},b8,o.tooltip.table),children:g.jsx("tbody",{children:a.map(function(s,c){return g.jsx("tr",{children:s.map(function(u,l){return g.jsx("td",{style:o.tooltip.tableCell,children:u},l)})},c)})})})]}),g.jsx("div",{style:o.tooltip.container,children:t})):null});y8.displayName="TableTooltip";var Sf=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=mt(),o=pn(),s=o.animate,c=o.config,u=h.useMemo(function(){return ya({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),l=xr({x1:t,x2:n,y1:r,y2:a,config:c,immediate:!s});return g.jsx(rt.line,ya({},l,{fill:"none",style:u}))});Sf.displayName="CrosshairLine";var x8=h.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,o=e.x,s=e.y;return i==="cross"?(t={x0:o,x1:o,y0:0,y1:a},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):i==="top"?t={x0:o,x1:o,y0:0,y1:s}:i==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):i==="right"?n={x0:o,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:o,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:o,x1:o,y0:s,y1:a}:i==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:0,x1:o,y0:s,y1:s}):i==="left"?n={x0:0,x1:o,y0:s,y1:s}:i==="x"?t={x0:o,x1:o,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),g.jsxs(g.Fragment,{children:[t&&g.jsx(Sf,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&g.jsx(Sf,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});x8.displayName="Crosshair";var c2=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Of={isVisible:!1,position:[null,null],content:null,anchor:null},u2=h.createContext(Of),w8=function(e){var t=h.useState(Of),n=t[0],r=t[1],a=h.useCallback(function(s,c,u){var l=c[0],d=c[1];u===void 0&&(u="top"),r({isVisible:!0,position:[l,d],anchor:u,content:s})},[r]),i=h.useCallback(function(s,c,u){u===void 0&&(u="top");var l=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===l.width?1:d/l.width,p="touches"in c?c.touches[0]:c,v=p.clientX,m=p.clientY,b=(v-l.left)*f,x=(m-l.top)*f;u!=="left"&&u!=="right"||(u=b<l.width/2?"right":"left"),r({isVisible:!0,position:[b,x],anchor:u,content:s})},[e,r]),o=h.useCallback(function(){r(Of)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:o}},[a,i,o]),state:n}},cp=function(){var e=h.useContext(c2);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},_8=function(){var e=h.useContext(u2);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},T8=function(e){return e.isVisible},C8=function(){var e=_8();return T8(e)?g.jsx(o2,{position:e.position,anchor:e.anchor,children:e.content}):null},k8=function(e){var t=e.container,n=e.children,r=w8(t),a=r.actions,i=r.state;return g.jsx(c2.Provider,{value:a,children:g.jsx(u2.Provider,{value:i,children:n})})};function S8(){this.__data__=[],this.size=0}var O8=S8;function E8(e,t){return e===t||e!==e&&t!==t}var ms=E8,$8=ms;function M8(e,t){for(var n=e.length;n--;)if($8(e[n][0],t))return n;return-1}var ju=M8,R8=ju,A8=Array.prototype,j8=A8.splice;function P8(e){var t=this.__data__,n=R8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():j8.call(t,n,1),--this.size,!0}var D8=P8,I8=ju;function N8(e){var t=this.__data__,n=I8(t,e);return n<0?void 0:t[n][1]}var F8=N8,L8=ju;function U8(e){return L8(this.__data__,e)>-1}var B8=U8,W8=ju;function z8(e,t){var n=this.__data__,r=W8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var H8=z8,V8=O8,q8=D8,Y8=F8,G8=B8,Z8=H8;function wi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wi.prototype.clear=V8;wi.prototype.delete=q8;wi.prototype.get=Y8;wi.prototype.has=G8;wi.prototype.set=Z8;var Pu=wi,K8=Pu;function X8(){this.__data__=new K8,this.size=0}var Q8=X8;function J8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var e7=J8;function t7(e){return this.__data__.get(e)}var n7=t7;function r7(e){return this.__data__.has(e)}var a7=r7,i7=typeof ws=="object"&&ws&&ws.Object===Object&&ws,l2=i7,o7=l2,s7=typeof self=="object"&&self&&self.Object===Object&&self,c7=o7||s7||Function("return this")(),rr=c7,u7=rr,l7=u7.Symbol,_i=l7,a0=_i,d2=Object.prototype,d7=d2.hasOwnProperty,f7=d2.toString,Vi=a0?a0.toStringTag:void 0;function h7(e){var t=d7.call(e,Vi),n=e[Vi];try{e[Vi]=void 0;var r=!0}catch{}var a=f7.call(e);return r&&(t?e[Vi]=n:delete e[Vi]),a}var p7=h7,m7=Object.prototype,g7=m7.toString;function v7(e){return g7.call(e)}var b7=v7,i0=_i,y7=p7,x7=b7,w7="[object Null]",_7="[object Undefined]",o0=i0?i0.toStringTag:void 0;function T7(e){return e==null?e===void 0?_7:w7:o0&&o0 in Object(e)?y7(e):x7(e)}var Yr=T7;function C7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ar=C7,k7=Yr,S7=ar,O7="[object AsyncFunction]",E7="[object Function]",$7="[object GeneratorFunction]",M7="[object Proxy]";function R7(e){if(!S7(e))return!1;var t=k7(e);return t==E7||t==$7||t==O7||t==M7}var Du=R7;const f2=St(Du);var A7=rr,j7=A7["__core-js_shared__"],P7=j7,fd=P7,s0=function(){var e=/[^.]+$/.exec(fd&&fd.keys&&fd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function D7(e){return!!s0&&s0 in e}var I7=D7,N7=Function.prototype,F7=N7.toString;function L7(e){if(e!=null){try{return F7.call(e)}catch{}try{return e+""}catch{}}return""}var h2=L7,U7=Du,B7=I7,W7=ar,z7=h2,H7=/[\\^$.*+?()[\]{}|]/g,V7=/^\[object .+?Constructor\]$/,q7=Function.prototype,Y7=Object.prototype,G7=q7.toString,Z7=Y7.hasOwnProperty,K7=RegExp("^"+G7.call(Z7).replace(H7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function X7(e){if(!W7(e)||B7(e))return!1;var t=U7(e)?K7:V7;return t.test(z7(e))}var Q7=X7;function J7(e,t){return e==null?void 0:e[t]}var eR=J7,tR=Q7,nR=eR;function rR(e,t){var n=nR(e,t);return tR(n)?n:void 0}var Oa=rR,aR=Oa,iR=rr,oR=aR(iR,"Map"),up=oR,sR=Oa,cR=sR(Object,"create"),Iu=cR,c0=Iu;function uR(){this.__data__=c0?c0(null):{},this.size=0}var lR=uR;function dR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fR=dR,hR=Iu,pR="__lodash_hash_undefined__",mR=Object.prototype,gR=mR.hasOwnProperty;function vR(e){var t=this.__data__;if(hR){var n=t[e];return n===pR?void 0:n}return gR.call(t,e)?t[e]:void 0}var bR=vR,yR=Iu,xR=Object.prototype,wR=xR.hasOwnProperty;function _R(e){var t=this.__data__;return yR?t[e]!==void 0:wR.call(t,e)}var TR=_R,CR=Iu,kR="__lodash_hash_undefined__";function SR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CR&&t===void 0?kR:t,this}var OR=SR,ER=lR,$R=fR,MR=bR,RR=TR,AR=OR;function Ti(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ti.prototype.clear=ER;Ti.prototype.delete=$R;Ti.prototype.get=MR;Ti.prototype.has=RR;Ti.prototype.set=AR;var jR=Ti,u0=jR,PR=Pu,DR=up;function IR(){this.size=0,this.__data__={hash:new u0,map:new(DR||PR),string:new u0}}var NR=IR;function FR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var LR=FR,UR=LR;function BR(e,t){var n=e.__data__;return UR(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Nu=BR,WR=Nu;function zR(e){var t=WR(this,e).delete(e);return this.size-=t?1:0,t}var HR=zR,VR=Nu;function qR(e){return VR(this,e).get(e)}var YR=qR,GR=Nu;function ZR(e){return GR(this,e).has(e)}var KR=ZR,XR=Nu;function QR(e,t){var n=XR(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var JR=QR,e9=NR,t9=HR,n9=YR,r9=KR,a9=JR;function Ci(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ci.prototype.clear=e9;Ci.prototype.delete=t9;Ci.prototype.get=n9;Ci.prototype.has=r9;Ci.prototype.set=a9;var lp=Ci,i9=Pu,o9=up,s9=lp,c9=200;function u9(e,t){var n=this.__data__;if(n instanceof i9){var r=n.__data__;if(!o9||r.length<c9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new s9(r)}return n.set(e,t),this.size=n.size,this}var l9=u9,d9=Pu,f9=Q8,h9=e7,p9=n7,m9=a7,g9=l9;function ki(e){var t=this.__data__=new d9(e);this.size=t.size}ki.prototype.clear=f9;ki.prototype.delete=h9;ki.prototype.get=p9;ki.prototype.has=m9;ki.prototype.set=g9;var Fu=ki,v9=Oa,b9=function(){try{var e=v9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),p2=b9,l0=p2;function y9(e,t,n){t=="__proto__"&&l0?l0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var dp=y9,x9=dp,w9=ms;function _9(e,t,n){(n!==void 0&&!w9(e[t],n)||n===void 0&&!(t in e))&&x9(e,t,n)}var m2=_9;function T9(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++a];if(n(i[c],c,i)===!1)break}return t}}var C9=T9,k9=C9,S9=k9(),g2=S9,Ac={exports:{}};Ac.exports;(function(e,t){var n=rr,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(u,l){if(l)return u.slice();var d=u.length,f=s?s(d):new u.constructor(d);return u.copy(f),f}e.exports=c})(Ac,Ac.exports);var v2=Ac.exports,O9=rr,E9=O9.Uint8Array,b2=E9,d0=b2;function $9(e){var t=new e.constructor(e.byteLength);return new d0(t).set(new d0(e)),t}var fp=$9,M9=fp;function R9(e,t){var n=t?M9(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var y2=R9;function A9(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var x2=A9,j9=ar,f0=Object.create,P9=function(){function e(){}return function(t){if(!j9(t))return{};if(f0)return f0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),D9=P9;function I9(e,t){return function(n){return e(t(n))}}var w2=I9,N9=w2,F9=N9(Object.getPrototypeOf,Object),hp=F9,L9=Object.prototype;function U9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||L9;return e===n}var pp=U9,B9=D9,W9=hp,z9=pp;function H9(e){return typeof e.constructor=="function"&&!z9(e)?B9(W9(e)):{}}var _2=H9;function V9(e){return e!=null&&typeof e=="object"}var zn=V9,q9=Yr,Y9=zn,G9="[object Arguments]";function Z9(e){return Y9(e)&&q9(e)==G9}var K9=Z9,h0=K9,X9=zn,T2=Object.prototype,Q9=T2.hasOwnProperty,J9=T2.propertyIsEnumerable,eA=h0(function(){return arguments}())?h0:function(e){return X9(e)&&Q9.call(e,"callee")&&!J9.call(e,"callee")},Lu=eA,tA=Array.isArray,hn=tA,nA=9007199254740991;function rA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nA}var mp=rA,aA=Du,iA=mp;function oA(e){return e!=null&&iA(e.length)&&!aA(e)}var Si=oA,sA=Si,cA=zn;function uA(e){return cA(e)&&sA(e)}var C2=uA,jc={exports:{}};function lA(){return!1}var dA=lA;jc.exports;(function(e,t){var n=rr,r=dA,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||r;e.exports=u})(jc,jc.exports);var Uu=jc.exports,fA=Yr,hA=hp,pA=zn,mA="[object Object]",gA=Function.prototype,vA=Object.prototype,k2=gA.toString,bA=vA.hasOwnProperty,yA=k2.call(Object);function xA(e){if(!pA(e)||fA(e)!=mA)return!1;var t=hA(e);if(t===null)return!0;var n=bA.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&k2.call(n)==yA}var gp=xA;const vp=St(gp);var wA=Yr,_A=mp,TA=zn,CA="[object Arguments]",kA="[object Array]",SA="[object Boolean]",OA="[object Date]",EA="[object Error]",$A="[object Function]",MA="[object Map]",RA="[object Number]",AA="[object Object]",jA="[object RegExp]",PA="[object Set]",DA="[object String]",IA="[object WeakMap]",NA="[object ArrayBuffer]",FA="[object DataView]",LA="[object Float32Array]",UA="[object Float64Array]",BA="[object Int8Array]",WA="[object Int16Array]",zA="[object Int32Array]",HA="[object Uint8Array]",VA="[object Uint8ClampedArray]",qA="[object Uint16Array]",YA="[object Uint32Array]",ft={};ft[LA]=ft[UA]=ft[BA]=ft[WA]=ft[zA]=ft[HA]=ft[VA]=ft[qA]=ft[YA]=!0;ft[CA]=ft[kA]=ft[NA]=ft[SA]=ft[FA]=ft[OA]=ft[EA]=ft[$A]=ft[MA]=ft[RA]=ft[AA]=ft[jA]=ft[PA]=ft[DA]=ft[IA]=!1;function GA(e){return TA(e)&&_A(e.length)&&!!ft[wA(e)]}var ZA=GA;function KA(e){return function(t){return e(t)}}var gs=KA,Pc={exports:{}};Pc.exports;(function(e,t){var n=l2,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Pc,Pc.exports);var Bu=Pc.exports,XA=ZA,QA=gs,p0=Bu,m0=p0&&p0.isTypedArray,JA=m0?QA(m0):XA,bp=JA;function ej(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var S2=ej,tj=dp,nj=ms,rj=Object.prototype,aj=rj.hasOwnProperty;function ij(e,t,n){var r=e[t];(!(aj.call(e,t)&&nj(r,n))||n===void 0&&!(t in e))&&tj(e,t,n)}var yp=ij,oj=yp,sj=dp;function cj(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),a?sj(n,s,c):oj(n,s,c)}return n}var Oi=cj;function uj(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var lj=uj,dj=9007199254740991,fj=/^(?:0|[1-9]\d*)$/;function hj(e,t){var n=typeof e;return t=t??dj,!!t&&(n=="number"||n!="symbol"&&fj.test(e))&&e>-1&&e%1==0&&e<t}var Wu=hj,pj=lj,mj=Lu,gj=hn,vj=Uu,bj=Wu,yj=bp,xj=Object.prototype,wj=xj.hasOwnProperty;function _j(e,t){var n=gj(e),r=!n&&mj(e),a=!n&&!r&&vj(e),i=!n&&!r&&!a&&yj(e),o=n||r||a||i,s=o?pj(e.length,String):[],c=s.length;for(var u in e)(t||wj.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||bj(u,c)))&&s.push(u);return s}var O2=_j;function Tj(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Cj=Tj,kj=ar,Sj=pp,Oj=Cj,Ej=Object.prototype,$j=Ej.hasOwnProperty;function Mj(e){if(!kj(e))return Oj(e);var t=Sj(e),n=[];for(var r in e)r=="constructor"&&(t||!$j.call(e,r))||n.push(r);return n}var Rj=Mj,Aj=O2,jj=Rj,Pj=Si;function Dj(e){return Pj(e)?Aj(e,!0):jj(e)}var vs=Dj,Ij=Oi,Nj=vs;function Fj(e){return Ij(e,Nj(e))}var Lj=Fj,g0=m2,Uj=v2,Bj=y2,Wj=x2,zj=_2,v0=Lu,b0=hn,Hj=C2,Vj=Uu,qj=Du,Yj=ar,Gj=gp,Zj=bp,y0=S2,Kj=Lj;function Xj(e,t,n,r,a,i,o){var s=y0(e,n),c=y0(t,n),u=o.get(c);if(u){g0(e,n,u);return}var l=i?i(s,c,n+"",e,t,o):void 0,d=l===void 0;if(d){var f=b0(c),p=!f&&Vj(c),v=!f&&!p&&Zj(c);l=c,f||p||v?b0(s)?l=s:Hj(s)?l=Wj(s):p?(d=!1,l=Uj(c,!0)):v?(d=!1,l=Bj(c,!0)):l=[]:Gj(c)||v0(c)?(l=s,v0(s)?l=Kj(s):(!Yj(s)||qj(s))&&(l=zj(c))):d=!1}d&&(o.set(c,l),a(l,c,r,i,o),o.delete(c)),g0(e,n,l)}var Qj=Xj,Jj=Fu,eP=m2,tP=g2,nP=Qj,rP=ar,aP=vs,iP=S2;function E2(e,t,n,r,a){e!==t&&tP(t,function(i,o){if(a||(a=new Jj),rP(i))nP(e,t,o,n,E2,r,a);else{var s=r?r(iP(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),eP(e,o,s)}},aP)}var oP=E2;function sP(e){return e}var zu=sP;function cP(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var uP=cP,lP=uP,x0=Math.max;function dP(e,t,n){return t=x0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=x0(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),lP(e,this,s)}}var $2=dP;function fP(e){return function(){return e}}var hP=fP,pP=hP,w0=p2,mP=zu,gP=w0?function(e,t){return w0(e,"toString",{configurable:!0,enumerable:!1,value:pP(t),writable:!0})}:mP,vP=gP,bP=800,yP=16,xP=Date.now;function wP(e){var t=0,n=0;return function(){var r=xP(),a=yP-(r-n);if(n=r,a>0){if(++t>=bP)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _P=wP,TP=vP,CP=_P,kP=CP(TP),M2=kP,SP=zu,OP=$2,EP=M2;function $P(e,t){return EP(OP(e,t,SP),e+"")}var xp=$P,MP=ms,RP=Si,AP=Wu,jP=ar;function PP(e,t,n){if(!jP(n))return!1;var r=typeof t;return(r=="number"?RP(n)&&AP(t,n.length):r=="string"&&t in n)?MP(n[t],e):!1}var R2=PP,DP=xp,IP=R2;function NP(e){return DP(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&IP(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var FP=NP,LP=oP,UP=FP,BP=UP(function(e,t,n){LP(e,t,n)}),WP=BP;const zP=St(WP);var HP=Yr,VP=zn,qP="[object Symbol]";function YP(e){return typeof e=="symbol"||VP(e)&&HP(e)==qP}var Hu=YP,GP=hn,ZP=Hu,KP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XP=/^\w*$/;function QP(e,t){if(GP(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ZP(e)?!0:XP.test(e)||!KP.test(e)||t!=null&&e in Object(t)}var wp=QP,A2=lp,JP="Expected a function";function _p(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(JP);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(_p.Cache||A2),n}_p.Cache=A2;var eD=_p,tD=eD,nD=500;function rD(e){var t=tD(e,function(r){return n.size===nD&&n.clear(),r}),n=t.cache;return t}var aD=rD,iD=aD,oD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sD=/\\(\\)?/g,cD=iD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(oD,function(n,r,a,i){t.push(a?i.replace(sD,"$1"):r||n)}),t}),uD=cD;function lD(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Vu=lD,_0=_i,dD=Vu,fD=hn,hD=Hu,pD=1/0,T0=_0?_0.prototype:void 0,C0=T0?T0.toString:void 0;function j2(e){if(typeof e=="string")return e;if(fD(e))return dD(e,j2)+"";if(hD(e))return C0?C0.call(e):"";var t=e+"";return t=="0"&&1/e==-pD?"-0":t}var mD=j2,gD=mD;function vD(e){return e==null?"":gD(e)}var bD=vD,yD=hn,xD=wp,wD=uD,_D=bD;function TD(e,t){return yD(e)?e:xD(e,t)?[e]:wD(_D(e))}var Ei=TD,CD=Hu,kD=1/0;function SD(e){if(typeof e=="string"||CD(e))return e;var t=e+"";return t=="0"&&1/e==-kD?"-0":t}var $i=SD,OD=Ei,ED=$i;function $D(e,t){t=OD(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ED(t[n++])];return n&&n==r?e:void 0}var bs=$D,MD=bs;function RD(e,t,n){var r=e==null?void 0:MD(e,t);return r===void 0?n:r}var P2=RD;const vr=St(P2);var AD=yp,jD=Ei,PD=Wu,k0=ar,DD=$i;function ID(e,t,n,r){if(!k0(e))return e;t=jD(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var c=DD(t[a]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=o){var l=s[c];u=r?r(l,c,s):void 0,u===void 0&&(u=k0(l)?l:PD(t[a+1])?[]:{})}AD(s,c,u),s=s[c]}return e}var D2=ID,ND=D2;function FD(e,t,n){return e==null?e:ND(e,t,n)}var LD=FD;const no=St(LD);function qu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Tp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mi(){}var xa=.7,di=1/xa,Xa="\\s*([+-]?\\d+)\\s*",Wo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",UD=/^#([0-9a-f]{3,8})$/,BD=new RegExp(`^rgb\\(${Xa},${Xa},${Xa}\\)$`),WD=new RegExp(`^rgb\\(${Kn},${Kn},${Kn}\\)$`),zD=new RegExp(`^rgba\\(${Xa},${Xa},${Xa},${Wo}\\)$`),HD=new RegExp(`^rgba\\(${Kn},${Kn},${Kn},${Wo}\\)$`),VD=new RegExp(`^hsl\\(${Wo},${Kn},${Kn}\\)$`),qD=new RegExp(`^hsla\\(${Wo},${Kn},${Kn},${Wo}\\)$`),S0={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};qu(Mi,zo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:O0,formatHex:O0,formatHex8:YD,formatHsl:GD,formatRgb:E0,toString:E0});function O0(){return this.rgb().formatHex()}function YD(){return this.rgb().formatHex8()}function GD(){return N2(this).formatHsl()}function E0(){return this.rgb().formatRgb()}function zo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=UD.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?$0(t):n===3?new qt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ps(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ps(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=BD.exec(e))?new qt(t[1],t[2],t[3],1):(t=WD.exec(e))?new qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zD.exec(e))?Ps(t[1],t[2],t[3],t[4]):(t=HD.exec(e))?Ps(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VD.exec(e))?A0(t[1],t[2]/100,t[3]/100,1):(t=qD.exec(e))?A0(t[1],t[2]/100,t[3]/100,t[4]):S0.hasOwnProperty(e)?$0(S0[e]):e==="transparent"?new qt(NaN,NaN,NaN,0):null}function $0(e){return new qt(e>>16&255,e>>8&255,e&255,1)}function Ps(e,t,n,r){return r<=0&&(e=t=n=NaN),new qt(e,t,n,r)}function I2(e){return e instanceof Mi||(e=zo(e)),e?(e=e.rgb(),new qt(e.r,e.g,e.b,e.opacity)):new qt}function fi(e,t,n,r){return arguments.length===1?I2(e):new qt(e,t,n,r??1)}function qt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}qu(qt,fi,Tp(Mi,{brighter(e){return e=e==null?di:Math.pow(di,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qt(ua(this.r),ua(this.g),ua(this.b),Dc(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:M0,formatHex:M0,formatHex8:ZD,formatRgb:R0,toString:R0}));function M0(){return`#${na(this.r)}${na(this.g)}${na(this.b)}`}function ZD(){return`#${na(this.r)}${na(this.g)}${na(this.b)}${na((isNaN(this.opacity)?1:this.opacity)*255)}`}function R0(){const e=Dc(this.opacity);return`${e===1?"rgb(":"rgba("}${ua(this.r)}, ${ua(this.g)}, ${ua(this.b)}${e===1?")":`, ${e})`}`}function Dc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ua(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function na(e){return e=ua(e),(e<16?"0":"")+e.toString(16)}function A0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pn(e,t,n,r)}function N2(e){if(e instanceof Pn)return new Pn(e.h,e.s,e.l,e.opacity);if(e instanceof Mi||(e=zo(e)),!e)return new Pn;if(e instanceof Pn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,c=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?i+a:2-i-a,o*=60):s=c>0&&c<1?0:o,new Pn(o,s,c,e.opacity)}function KD(e,t,n,r){return arguments.length===1?N2(e):new Pn(e,t,n,r??1)}function Pn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}qu(Pn,KD,Tp(Mi,{brighter(e){return e=e==null?di:Math.pow(di,e),new Pn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Pn(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,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new qt(hd(e>=240?e-240:e+120,a,r),hd(e,a,r),hd(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Pn(j0(this.h),Ds(this.s),Ds(this.l),Dc(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=Dc(this.opacity);return`${e===1?"hsl(":"hsla("}${j0(this.h)}, ${Ds(this.s)*100}%, ${Ds(this.l)*100}%${e===1?")":`, ${e})`}`}}));function j0(e){return e=(e||0)%360,e<0?e+360:e}function Ds(e){return Math.max(0,Math.min(1,e||0))}function hd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const XD=Math.PI/180,QD=180/Math.PI;var F2=-.14861,Cp=1.78277,kp=-.29227,Yu=-.90649,Ho=1.97294,P0=Ho*Yu,D0=Ho*Cp,I0=Cp*kp-Yu*F2;function JD(e){if(e instanceof la)return new la(e.h,e.s,e.l,e.opacity);e instanceof qt||(e=I2(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(I0*r+P0*t-D0*n)/(I0+P0-D0),i=r-a,o=(Ho*(n-a)-kp*i)/Yu,s=Math.sqrt(o*o+i*i)/(Ho*a*(1-a)),c=s?Math.atan2(o,i)*QD-120:NaN;return new la(c<0?c+360:c,s,a,e.opacity)}function er(e,t,n,r){return arguments.length===1?JD(e):new la(e,t,n,r??1)}function la(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}qu(la,er,Tp(Mi,{brighter(e){return e=e==null?di:Math.pow(di,e),new la(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new la(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*XD,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new qt(255*(t+n*(F2*r+Cp*a)),255*(t+n*(kp*r+Yu*a)),255*(t+n*(Ho*r)),this.opacity)}}));function eI(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function tI(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return eI((n-r/t)*t,o,a,i,s)}}const Gu=e=>()=>e;function L2(e,t){return function(n){return e+n*t}}function nI(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function rI(e,t){var n=t-e;return n?L2(e,n>180||n<-180?n-360*Math.round(n/360):n):Gu(isNaN(e)?t:e)}function aI(e){return(e=+e)==1?Qa:function(t,n){return n-t?nI(t,n,e):Gu(isNaN(t)?n:t)}}function Qa(e,t){var n=t-e;return n?L2(e,n):Gu(isNaN(e)?t:e)}const N0=function e(t){var n=aI(t);function r(a,i){var o=n((a=fi(a)).r,(i=fi(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=Qa(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=c(l),a.opacity=u(l),a+""}}return r.gamma=e,r}(1);function iI(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,s;for(o=0;o<n;++o)s=fi(t[o]),r[o]=s.r||0,a[o]=s.g||0,i[o]=s.b||0;return r=e(r),a=e(a),i=e(i),s.opacity=1,function(c){return s.r=r(c),s.g=a(c),s.b=i(c),s+""}}}var oI=iI(tI);function sI(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function cI(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uI(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=Sp(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function lI(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ic(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function dI(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Sp(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Ef=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pd=new RegExp(Ef.source,"g");function fI(e){return function(){return e}}function hI(e){return function(t){return e(t)+""}}function U2(e,t){var n=Ef.lastIndex=pd.lastIndex=0,r,a,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=Ef.exec(e))&&(a=pd.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,c.push({i:o,x:Ic(r,a)})),n=pd.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?hI(c[0].x):fI(t):(t=c.length,function(u){for(var l=0,d;l<t;++l)s[(d=c[l]).i]=d.x(u);return s.join("")})}function Sp(e,t){var n=typeof t,r;return t==null||n==="boolean"?Gu(t):(n==="number"?Ic:n==="string"?(r=zo(t))?(t=r,N0):U2:t instanceof zo?N0:t instanceof Date?lI:cI(t)?sI:Array.isArray(t)?uI:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?dI:Ic)(e,t)}function pI(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function B2(e){return function t(n){n=+n;function r(a,i){var o=e((a=er(a)).h,(i=er(i)).h),s=Qa(a.s,i.s),c=Qa(a.l,i.l),u=Qa(a.opacity,i.opacity);return function(l){return a.h=o(l),a.s=s(l),a.l=c(Math.pow(l,n)),a.opacity=u(l),a+""}}return r.gamma=t,r}(1)}B2(rI);var Op=B2(Qa),mI=Yr,gI=hn,vI=zn,bI="[object String]";function yI(e){return typeof e=="string"||!gI(e)&&vI(e)&&mI(e)==bI}var xI=yI;const wI=St(xI);function _I(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var W2=_I;const ye=St(W2);function tc(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function TI(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ep(e){let t,n,r;e.length!==2?(t=tc,n=(s,c)=>tc(e(s),c),r=(s,c)=>e(s)-c):(t=e===tc||e===TI?e:CI,n=e,r=e);function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<0?u=d+1:l=d}while(u<l)}return u}function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<=0?u=d+1:l=d}while(u<l)}return u}function o(s,c,u=0,l=s.length){const d=a(s,c,u,l-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:a,center:o,right:i}}function CI(){return 0}function kI(e){return e===null?NaN:+e}const SI=Ep(tc),OI=SI.right;Ep(kI).center;class F0 extends Map{constructor(t,n=MI){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(L0(this,t))}has(t){return super.has(L0(this,t))}set(t,n){return super.set(EI(this,t),n)}delete(t){return super.delete($I(this,t))}}function L0({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function EI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function $I({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function MI(e){return e!==null&&typeof e=="object"?e.valueOf():e}const RI=Math.sqrt(50),AI=Math.sqrt(10),jI=Math.sqrt(2);function Nc(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=RI?10:i>=AI?5:i>=jI?2:1;let s,c,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?Nc(e,t,n*2):[s,c,u]}function $f(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?Nc(t,e,n):Nc(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(o<0)for(let u=0;u<s;++u)c[u]=(i-u)/-o;else for(let u=0;u<s;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(a+u)/-o;else for(let u=0;u<s;++u)c[u]=(a+u)*o;return c}function Mf(e,t,n){return t=+t,e=+e,n=+n,Nc(e,t,n)[2]}function Rf(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Mf(t,e,n):Mf(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function PI(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function Ea(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const U0=Symbol("implicit");function ra(){var e=new F0,t=[],n=[],r=U0;function a(i){let o=e.get(i);if(o===void 0){if(r!==U0)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new F0;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return ra(t,n).unknown(r)},Ea.apply(a,arguments),a}function $p(){var e=ra().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function d(){var f=t().length,p=a<r,v=p?a:r,m=p?r:a;i=(m-v)/Math.max(1,f-c+u*2),s&&(i=Math.floor(i)),v+=(m-v-i*(f-c))*l,o=i*(1-c),s&&(v=Math.round(v),o=Math.round(o));var b=PI(f).map(function(x){return v+i*x});return n(p?b.reverse():b)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,u=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},e.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),d()):l},e.copy=function(){return $p(t(),[r,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},Ea.apply(d(),arguments)}function z2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return z2(t())},e}function DI(){return z2($p.apply(null,arguments).paddingInner(1))}function II(e){return function(){return e}}function NI(e){return+e}var B0=[0,1];function Ha(e){return e}function Af(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:II(isNaN(t)?NaN:.5)}function FI(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function LI(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Af(a,r),i=n(o,i)):(r=Af(r,a),i=n(i,o)),function(s){return i(r(s))}}function UI(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=Af(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var c=OI(e,s,1,r)-1;return i[c](a[c](s))}}function Zu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mp(){var e=B0,t=B0,n=Sp,r,a,i,o=Ha,s,c,u;function l(){var f=Math.min(e.length,t.length);return o!==Ha&&(o=FI(e[0],e[f-1])),s=f>2?UI:LI,c=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(c||(c=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(a((u||(u=s(t,e.map(r),Ic)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,NI),l()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),l()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=pI,l()},d.clamp=function(f){return arguments.length?(o=f?!0:Ha,l()):o!==Ha},d.interpolate=function(f){return arguments.length?(n=f,l()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,a=p,l()}}function H2(){return Mp()(Ha,Ha)}function BI(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Fc(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function hi(e){return e=Fc(Math.abs(e)),e?e[1]:NaN}function WI(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function zI(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var HI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vo(e){if(!(t=HI.exec(e)))throw new Error("invalid format: "+e);var t;return new Rp({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]})}Vo.prototype=Rp.prototype;function Rp(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+""}Rp.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 VI(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var V2;function qI(e,t){var n=Fc(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(V2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Fc(e,Math.max(0,t+i-1))[0]}function W0(e,t){var n=Fc(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const z0={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:BI,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return W0(e*100,t)},r:W0,s:qI,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function H0(e){return e}var V0=Array.prototype.map,q0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function YI(e){var t=e.grouping===void 0||e.thousands===void 0?H0:WI(V0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?H0:zI(V0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Vo(d);var f=d.fill,p=d.align,v=d.sign,m=d.symbol,b=d.zero,x=d.width,_=d.comma,y=d.precision,T=d.trim,w=d.type;w==="n"?(_=!0,w="g"):z0[w]||(y===void 0&&(y=12),T=!0,w="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var C=m==="$"?n:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",S=m==="$"?r:/[%p]/.test(w)?o:"",M=z0[w],D=/[defgprs%]/.test(w);y=y===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function R(A){var N=C,E=S,j,P,F;if(w==="c")E=M(A)+E,A="";else{A=+A;var B=A<0||1/A<0;if(A=isNaN(A)?c:M(Math.abs(A),y),T&&(A=VI(A)),B&&+A==0&&v!=="+"&&(B=!1),N=(B?v==="("?v:s:v==="-"||v==="("?"":v)+N,E=(w==="s"?q0[8+V2/3]:"")+E+(B&&v==="("?")":""),D){for(j=-1,P=A.length;++j<P;)if(F=A.charCodeAt(j),48>F||F>57){E=(F===46?a+A.slice(j+1):A.slice(j))+E,A=A.slice(0,j);break}}}_&&!b&&(A=t(A,1/0));var L=N.length+A.length+E.length,W=L<x?new Array(x-L+1).join(f):"";switch(_&&b&&(A=t(W+A,W.length?x-E.length:1/0),W=""),p){case"<":A=N+A+E+W;break;case"=":A=N+W+A+E;break;case"^":A=W.slice(0,L=W.length>>1)+N+A+E+W.slice(L);break;default:A=W+N+A+E;break}return i(A)}return R.toString=function(){return d+""},R}function l(d,f){var p=u((d=Vo(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(hi(f)/3)))*3,m=Math.pow(10,-v),b=q0[8+v/3];return function(x){return p(m*x)+b}}return{format:u,formatPrefix:l}}var Is,ys,q2;GI({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function GI(e){return Is=YI(e),ys=Is.format,q2=Is.formatPrefix,Is}function ZI(e){return Math.max(0,-hi(Math.abs(e)))}function KI(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(hi(t)/3)))*3-hi(Math.abs(e)))}function XI(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,hi(t)-hi(e))+1}function QI(e,t,n,r){var a=Rf(e,t,n),i;switch(r=Vo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=KI(a,o))&&(r.precision=i),q2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=XI(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=ZI(a))&&(r.precision=i-(r.type==="%")*2);break}}return ys(r)}function Y2(e){var t=e.domain;return e.ticks=function(n){var r=t();return $f(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return QI(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],c,u,l=10;for(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);l-- >0;){if(u=Mf(o,s,n),u===c)return r[a]=o,r[i]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function G2(){var e=H2();return e.copy=function(){return Zu(e,G2())},Ea.apply(e,arguments),Y2(e)}function Z2(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function Y0(e){return Math.log(e)}function G0(e){return Math.exp(e)}function JI(e){return-Math.log(-e)}function eN(e){return-Math.exp(-e)}function tN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function nN(e){return e===10?tN:e===Math.E?Math.exp:t=>Math.pow(e,t)}function rN(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 Z0(e){return(t,n)=>-e(-t,n)}function aN(e){const t=e(Y0,G0),n=t.domain;let r=10,a,i;function o(){return a=rN(r),i=nN(r),n()[0]<0?(a=Z0(a),i=Z0(i),e(JI,eN)):e(Y0,G0),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const c=n();let u=c[0],l=c[c.length-1];const d=l<u;d&&([u,l]=[l,u]);let f=a(u),p=a(l),v,m;const b=s==null?10:+s;let x=[];if(!(r%1)&&p-f<b){if(f=Math.floor(f),p=Math.ceil(p),u>0){for(;f<=p;++f)for(v=1;v<r;++v)if(m=f<0?v/i(-f):v*i(f),!(m<u)){if(m>l)break;x.push(m)}}else for(;f<=p;++f)for(v=r-1;v>=1;--v)if(m=f>0?v/i(-f):v*i(f),!(m<u)){if(m>l)break;x.push(m)}x.length*2<b&&(x=$f(u,l,b))}else x=$f(f,p,Math.min(p-f,b)).map(i);return d?x.reverse():x},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Vo(c)).precision==null&&(c.trim=!0),c=ys(c)),s===1/0)return c;const u=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/i(Math.round(a(l)));return d*r<r-.5&&(d*=r),d<=u?c(l):""}},t.nice=()=>n(Z2(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function K2(){const e=aN(Mp()).domain([1,10]);return e.copy=()=>Zu(e,K2()).base(e.base()),Ea.apply(e,arguments),e}function K0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function X0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function iN(e){var t=1,n=e(K0(t),X0(t));return n.constant=function(r){return arguments.length?e(K0(t=+r),X0(t)):t},Y2(n)}function X2(){var e=iN(Mp());return e.copy=function(){return Zu(e,X2()).constant(e.constant())},Ea.apply(e,arguments)}const md=new Date,gd=new Date;function Pt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let u;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=i=>Pt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(md.setTime(+i),gd.setTime(+o),e(md),e(gd),Math.floor(n(md,gd))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Lc=Pt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Lc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Lc);Lc.range;const dr=1e3,On=dr*60,fr=On*60,br=fr*24,Ap=br*7,Q0=br*30,vd=br*365,aa=Pt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getUTCSeconds());aa.range;const jp=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dr)},(e,t)=>{e.setTime(+e+t*On)},(e,t)=>(t-e)/On,e=>e.getMinutes());jp.range;const Pp=Pt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*On)},(e,t)=>(t-e)/On,e=>e.getUTCMinutes());Pp.range;const Dp=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dr-e.getMinutes()*On)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getHours());Dp.range;const Ip=Pt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getUTCHours());Ip.range;const Np=Pt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*On)/br,e=>e.getDate()-1);Np.range;const Q2=Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>e.getUTCDate()-1);Q2.range;const J2=Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>Math.floor(e/br));J2.range;function $a(e){return Pt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*On)/Ap)}const Fp=$a(0),oN=$a(1),sN=$a(2),cN=$a(3),uN=$a(4),lN=$a(5),dN=$a(6);Fp.range;oN.range;sN.range;cN.range;uN.range;lN.range;dN.range;function Ma(e){return Pt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ap)}const Lp=Ma(0),fN=Ma(1),hN=Ma(2),pN=Ma(3),mN=Ma(4),gN=Ma(5),vN=Ma(6);Lp.range;fN.range;hN.range;pN.range;mN.range;gN.range;vN.range;const Up=Pt(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());Up.range;const Bp=Pt(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());Bp.range;const Ku=Pt(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());Ku.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ku.range;const Xu=Pt(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());Xu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Xu.range;function ew(e,t,n,r,a,i){const o=[[aa,1,dr],[aa,5,5*dr],[aa,15,15*dr],[aa,30,30*dr],[i,1,On],[i,5,5*On],[i,15,15*On],[i,30,30*On],[a,1,fr],[a,3,3*fr],[a,6,6*fr],[a,12,12*fr],[r,1,br],[r,2,2*br],[n,1,Ap],[t,1,Q0],[t,3,3*Q0],[e,1,vd]];function s(u,l,d){const f=l<u;f&&([u,l]=[l,u]);const p=d&&typeof d.range=="function"?d:c(u,l,d),v=p?p.range(u,+l+1):[];return f?v.reverse():v}function c(u,l,d){const f=Math.abs(l-u)/d,p=Ep(([,,b])=>b).right(o,f);if(p===o.length)return e.every(Rf(u/vd,l/vd,d));if(p===0)return Lc.every(Math.max(Rf(u,l,d),1));const[v,m]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return v.every(m)}return[s,c]}const[bN,yN]=ew(Xu,Bp,Lp,J2,Ip,Pp),[xN,wN]=ew(Ku,Up,Fp,Np,Dp,jp);var bd=new Date,yd=new Date;function kt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var c=[],u;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=function(i){return kt(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return bd.setTime(+i),yd.setTime(+o),e(bd),e(yd),Math.floor(n(bd,yd))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}var qo=kt(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});qo.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?kt(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):qo};qo.range;var Uc=1e3,wa=6e4,Bc=36e5,tw=864e5,nw=6048e5,jf=kt(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Uc)},function(e,t){return(t-e)/Uc},function(e){return e.getUTCSeconds()});jf.range;var rw=kt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Uc)},function(e,t){e.setTime(+e+t*wa)},function(e,t){return(t-e)/wa},function(e){return e.getMinutes()});rw.range;var aw=kt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Uc-e.getMinutes()*wa)},function(e,t){e.setTime(+e+t*Bc)},function(e,t){return(t-e)/Bc},function(e){return e.getHours()});aw.range;var Wp=kt(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wa)/tw},function(e){return e.getDate()-1});Wp.range;function Ra(e){return kt(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*wa)/nw})}var Wc=Ra(0),Yo=Ra(1),iw=Ra(2),ow=Ra(3),_a=Ra(4),sw=Ra(5),cw=Ra(6);Wc.range;Yo.range;iw.range;ow.range;_a.range;sw.range;cw.range;var uw=kt(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});uw.range;var Br=kt(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Br.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:kt(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Br.range;var lw=kt(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*wa)},function(e,t){return(t-e)/wa},function(e){return e.getUTCMinutes()});lw.range;var dw=kt(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Bc)},function(e,t){return(t-e)/Bc},function(e){return e.getUTCHours()});dw.range;var zp=kt(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/tw},function(e){return e.getUTCDate()-1});zp.range;function Aa(e){return kt(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/nw})}var zc=Aa(0),Go=Aa(1),fw=Aa(2),hw=Aa(3),Ta=Aa(4),pw=Aa(5),mw=Aa(6);zc.range;Go.range;fw.range;hw.range;Ta.range;pw.range;mw.range;var gw=kt(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});gw.range;var Wr=kt(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Wr.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:kt(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Wr.range;function xd(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 wd(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 qi(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _N(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Yi(a),l=Gi(a),d=Yi(i),f=Gi(i),p=Yi(o),v=Gi(o),m=Yi(s),b=Gi(s),x=Yi(c),_=Gi(c),y={a:B,A:L,b:W,B:I,c:null,d:av,e:av,f:VN,g:tF,G:rF,H:WN,I:zN,j:HN,L:vw,m:qN,M:YN,p:U,q:Y,Q:sv,s:cv,S:GN,u:ZN,U:KN,V:XN,w:QN,W:JN,x:null,X:null,y:eF,Y:nF,Z:aF,"%":ov},T={a:te,A:G,b:J,B:Z,c:null,d:iv,e:iv,f:cF,g:bF,G:xF,H:iF,I:oF,j:sF,L:yw,m:uF,M:lF,p:X,q:re,Q:sv,s:cv,S:dF,u:fF,U:hF,V:pF,w:mF,W:gF,x:null,X:null,y:vF,Y:yF,Z:wF,"%":ov},w={a:R,A,b:N,B:E,c:j,d:nv,e:nv,f:FN,g:tv,G:ev,H:rv,I:rv,j:PN,L:NN,m:jN,M:DN,p:D,q:AN,Q:UN,s:BN,S:IN,u:ON,U:EN,V:$N,w:SN,W:MN,x:P,X:F,y:tv,Y:ev,Z:RN,"%":LN};y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),T.x=C(n,T),T.X=C(r,T),T.c=C(t,T);function C(z,V){return function(oe){var k=[],pe=-1,me=0,de=z.length,Re,Oe,lt;for(oe instanceof Date||(oe=new Date(+oe));++pe<de;)z.charCodeAt(pe)===37&&(k.push(z.slice(me,pe)),(Oe=J0[Re=z.charAt(++pe)])!=null?Re=z.charAt(++pe):Oe=Re==="e"?" ":"0",(lt=V[Re])&&(Re=lt(oe,Oe)),k.push(Re),me=pe+1);return k.push(z.slice(me,pe)),k.join("")}}function S(z,V){return function(oe){var k=qi(1900,void 0,1),pe=M(k,z,oe+="",0),me,de;if(pe!=oe.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(me=wd(qi(k.y,0,1)),de=me.getUTCDay(),me=de>4||de===0?Go.ceil(me):Go(me),me=zp.offset(me,(k.V-1)*7),k.y=me.getUTCFullYear(),k.m=me.getUTCMonth(),k.d=me.getUTCDate()+(k.w+6)%7):(me=xd(qi(k.y,0,1)),de=me.getDay(),me=de>4||de===0?Yo.ceil(me):Yo(me),me=Wp.offset(me,(k.V-1)*7),k.y=me.getFullYear(),k.m=me.getMonth(),k.d=me.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),de="Z"in k?wd(qi(k.y,0,1)).getUTCDay():xd(qi(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(de+5)%7:k.w+k.U*7-(de+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,wd(k)):xd(k)}}function M(z,V,oe,k){for(var pe=0,me=V.length,de=oe.length,Re,Oe;pe<me;){if(k>=de)return-1;if(Re=V.charCodeAt(pe++),Re===37){if(Re=V.charAt(pe++),Oe=w[Re in J0?V.charAt(pe++):Re],!Oe||(k=Oe(z,oe,k))<0)return-1}else if(Re!=oe.charCodeAt(k++))return-1}return k}function D(z,V,oe){var k=u.exec(V.slice(oe));return k?(z.p=l.get(k[0].toLowerCase()),oe+k[0].length):-1}function R(z,V,oe){var k=p.exec(V.slice(oe));return k?(z.w=v.get(k[0].toLowerCase()),oe+k[0].length):-1}function A(z,V,oe){var k=d.exec(V.slice(oe));return k?(z.w=f.get(k[0].toLowerCase()),oe+k[0].length):-1}function N(z,V,oe){var k=x.exec(V.slice(oe));return k?(z.m=_.get(k[0].toLowerCase()),oe+k[0].length):-1}function E(z,V,oe){var k=m.exec(V.slice(oe));return k?(z.m=b.get(k[0].toLowerCase()),oe+k[0].length):-1}function j(z,V,oe){return M(z,t,V,oe)}function P(z,V,oe){return M(z,n,V,oe)}function F(z,V,oe){return M(z,r,V,oe)}function B(z){return o[z.getDay()]}function L(z){return i[z.getDay()]}function W(z){return c[z.getMonth()]}function I(z){return s[z.getMonth()]}function U(z){return a[+(z.getHours()>=12)]}function Y(z){return 1+~~(z.getMonth()/3)}function te(z){return o[z.getUTCDay()]}function G(z){return i[z.getUTCDay()]}function J(z){return c[z.getUTCMonth()]}function Z(z){return s[z.getUTCMonth()]}function X(z){return a[+(z.getUTCHours()>=12)]}function re(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var V=C(z+="",y);return V.toString=function(){return z},V},parse:function(z){var V=S(z+="",!1);return V.toString=function(){return z},V},utcFormat:function(z){var V=C(z+="",T);return V.toString=function(){return z},V},utcParse:function(z){var V=S(z+="",!0);return V.toString=function(){return z},V}}}var J0={"-":"",_:" ",0:"0"},Ft=/^\s*\d+/,TN=/^%/,CN=/[\\^$*+?|[\]().{}]/g;function qe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function kN(e){return e.replace(CN,"\\$&")}function Yi(e){return new RegExp("^(?:"+e.map(kN).join("|")+")","i")}function Gi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function SN(e,t,n){var r=Ft.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ON(e,t,n){var r=Ft.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function EN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $N(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function MN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ev(e,t,n){var r=Ft.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tv(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function RN(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AN(e,t,n){var r=Ft.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nv(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function PN(e,t,n){var r=Ft.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function rv(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function DN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function IN(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function NN(e,t,n){var r=Ft.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function FN(e,t,n){var r=Ft.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LN(e,t,n){var r=TN.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function UN(e,t,n){var r=Ft.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function BN(e,t,n){var r=Ft.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function av(e,t){return qe(e.getDate(),t,2)}function WN(e,t){return qe(e.getHours(),t,2)}function zN(e,t){return qe(e.getHours()%12||12,t,2)}function HN(e,t){return qe(1+Wp.count(Br(e),e),t,3)}function vw(e,t){return qe(e.getMilliseconds(),t,3)}function VN(e,t){return vw(e,t)+"000"}function qN(e,t){return qe(e.getMonth()+1,t,2)}function YN(e,t){return qe(e.getMinutes(),t,2)}function GN(e,t){return qe(e.getSeconds(),t,2)}function ZN(e){var t=e.getDay();return t===0?7:t}function KN(e,t){return qe(Wc.count(Br(e)-1,e),t,2)}function bw(e){var t=e.getDay();return t>=4||t===0?_a(e):_a.ceil(e)}function XN(e,t){return e=bw(e),qe(_a.count(Br(e),e)+(Br(e).getDay()===4),t,2)}function QN(e){return e.getDay()}function JN(e,t){return qe(Yo.count(Br(e)-1,e),t,2)}function eF(e,t){return qe(e.getFullYear()%100,t,2)}function tF(e,t){return e=bw(e),qe(e.getFullYear()%100,t,2)}function nF(e,t){return qe(e.getFullYear()%1e4,t,4)}function rF(e,t){var n=e.getDay();return e=n>=4||n===0?_a(e):_a.ceil(e),qe(e.getFullYear()%1e4,t,4)}function aF(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qe(t/60|0,"0",2)+qe(t%60,"0",2)}function iv(e,t){return qe(e.getUTCDate(),t,2)}function iF(e,t){return qe(e.getUTCHours(),t,2)}function oF(e,t){return qe(e.getUTCHours()%12||12,t,2)}function sF(e,t){return qe(1+zp.count(Wr(e),e),t,3)}function yw(e,t){return qe(e.getUTCMilliseconds(),t,3)}function cF(e,t){return yw(e,t)+"000"}function uF(e,t){return qe(e.getUTCMonth()+1,t,2)}function lF(e,t){return qe(e.getUTCMinutes(),t,2)}function dF(e,t){return qe(e.getUTCSeconds(),t,2)}function fF(e){var t=e.getUTCDay();return t===0?7:t}function hF(e,t){return qe(zc.count(Wr(e)-1,e),t,2)}function xw(e){var t=e.getUTCDay();return t>=4||t===0?Ta(e):Ta.ceil(e)}function pF(e,t){return e=xw(e),qe(Ta.count(Wr(e),e)+(Wr(e).getUTCDay()===4),t,2)}function mF(e){return e.getUTCDay()}function gF(e,t){return qe(Go.count(Wr(e)-1,e),t,2)}function vF(e,t){return qe(e.getUTCFullYear()%100,t,2)}function bF(e,t){return e=xw(e),qe(e.getUTCFullYear()%100,t,2)}function yF(e,t){return qe(e.getUTCFullYear()%1e4,t,4)}function xF(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ta(e):Ta.ceil(e),qe(e.getUTCFullYear()%1e4,t,4)}function wF(){return"+0000"}function ov(){return"%"}function sv(e){return+e}function cv(e){return Math.floor(+e/1e3)}var La,Qu,ww,_w,Tw;_F({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 _F(e){return La=_N(e),Qu=La.format,ww=La.parse,_w=La.utcFormat,Tw=La.utcParse,La}function TF(e){return new Date(e)}function CF(e){return e instanceof Date?+e:+new Date(+e)}function Hp(e,t,n,r,a,i,o,s,c,u){var l=H2(),d=l.invert,f=l.domain,p=u(".%L"),v=u(":%S"),m=u("%I:%M"),b=u("%I %p"),x=u("%a %d"),_=u("%b %d"),y=u("%B"),T=u("%Y");function w(C){return(c(C)<C?p:s(C)<C?v:o(C)<C?m:i(C)<C?b:r(C)<C?a(C)<C?x:_:n(C)<C?y:T)(C)}return l.invert=function(C){return new Date(d(C))},l.domain=function(C){return arguments.length?f(Array.from(C,CF)):f().map(TF)},l.ticks=function(C){var S=f();return e(S[0],S[S.length-1],C??10)},l.tickFormat=function(C,S){return S==null?w:u(S)},l.nice=function(C){var S=f();return(!C||typeof C.range!="function")&&(C=t(S[0],S[S.length-1],C??10)),C?f(Z2(S,C)):l},l.copy=function(){return Zu(l,Hp(e,t,n,r,a,i,o,s,c,u))},l}function kF(){return Ea.apply(Hp(xN,wN,Ku,Up,Fp,Np,Dp,jp,aa,Qu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function SF(){return Ea.apply(Hp(bN,yN,Xu,Bp,Lp,Q2,Ip,Pp,aa,_w).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pe(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const Cw=Pe("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),kw=Pe("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Sw=Pe("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Ow=Pe("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ew=Pe("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),$w=Pe("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Mw=Pe("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Rw=Pe("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Vp=Pe("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),OF=Pe("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),ot=e=>oI(e[e.length-1]);var Ju=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Pe);const EF=ot(Ju);var el=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Pe);const $F=ot(el);var tl=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Pe);const MF=ot(tl);var nl=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Pe);const RF=ot(nl);var rl=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Pe);const AF=ot(rl);var al=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Pe);const jF=ot(al);var il=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Pe);const PF=ot(il);var ol=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Pe);const DF=ot(ol);var sl=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Pe);const IF=ot(sl);var cl=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Pe);const NF=ot(cl);var ul=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Pe);const FF=ot(ul);var ll=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Pe);const LF=ot(ll);var dl=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Pe);const UF=ot(dl);var fl=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Pe);const BF=ot(fl);var hl=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Pe);const WF=ot(hl);var pl=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Pe);const zF=ot(pl);var ml=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Pe);const HF=ot(ml);var gl=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Pe);const VF=ot(gl);var vl=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Pe);const qF=ot(vl);var bl=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Pe);const YF=ot(bl);var yl=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Pe);const GF=ot(yl);var xl=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Pe);const ZF=ot(xl);var wl=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Pe);const KF=ot(wl);var _l=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Pe);const XF=ot(_l);var Tl=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Pe);const QF=ot(Tl);var Cl=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Pe);const JF=ot(Cl);var kl=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Pe);const eL=ot(kl);function tL(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const nL=Op(er(300,.5,0),er(-240,.5,1));var rL=Op(er(-100,.75,.35),er(80,1.5,.8)),aL=Op(er(260,.75,.35),er(80,1.5,.8)),Ns=er();function iL(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ns.h=360*e-100,Ns.s=1.5-1.5*t,Ns.l=.8-.9*t,Ns+""}var Fs=fi(),oL=Math.PI/3,sL=Math.PI*2/3;function cL(e){var t;return e=(.5-e)*Math.PI,Fs.r=255*(t=Math.sin(e))*t,Fs.g=255*(t=Math.sin(e+oL))*t,Fs.b=255*(t=Math.sin(e+sL))*t,Fs+""}function uL(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Sl(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const lL=Sl(Pe("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var dL=Sl(Pe("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),fL=Sl(Pe("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),hL=Sl(Pe("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),pL="__lodash_hash_undefined__";function mL(e){return this.__data__.set(e,pL),this}var gL=mL;function vL(e){return this.__data__.has(e)}var bL=vL,yL=lp,xL=gL,wL=bL;function Hc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new yL;++t<n;)this.add(e[t])}Hc.prototype.add=Hc.prototype.push=xL;Hc.prototype.has=wL;var qp=Hc;function _L(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var TL=_L;function CL(e){return e!==e}var kL=CL;function SL(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var OL=SL,EL=TL,$L=kL,ML=OL;function RL(e,t,n){return t===t?ML(e,t,n):EL(e,$L,n)}var AL=RL,jL=AL;function PL(e,t){var n=e==null?0:e.length;return!!n&&jL(e,t,0)>-1}var Aw=PL;function DL(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var jw=DL;function IL(e,t){return e.has(t)}var Yp=IL,NL=qp,FL=Aw,LL=jw,UL=Vu,BL=gs,WL=Yp,zL=200;function HL(e,t,n,r){var a=-1,i=FL,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=UL(t,BL(n))),r?(i=LL,o=!1):t.length>=zL&&(i=WL,o=!1,t=new NL(t));e:for(;++a<s;){var l=e[a],d=n==null?l:n(l);if(l=r||l!==0?l:0,o&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(l)}else i(t,d,r)||c.push(l)}return c}var VL=HL,qL=VL,YL=xp,GL=C2,ZL=YL(function(e,t){return GL(e)?qL(e,t):[]}),KL=ZL;const Pw=St(KL);function ht(e){return function(){return e}}const uv=Math.abs,zt=Math.atan2,Gr=Math.cos,XL=Math.max,_d=Math.min,Hn=Math.sin,Va=Math.sqrt,Ht=1e-12,Zo=Math.PI,Vc=Zo/2,nc=2*Zo;function QL(e){return e>1?0:e<-1?Zo:Math.acos(e)}function lv(e){return e>=1?Vc:e<=-1?-Vc:Math.asin(e)}const Pf=Math.PI,Df=2*Pf,Qr=1e-6,JL=Df-Qr;function Dw(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function eU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Dw;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class tU{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Dw:eU(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,c=r-t,u=a-n,l=o-t,d=s-n,f=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Qr)if(!(Math.abs(d*c-u*l)>Qr)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,v=a-s,m=c*c+u*u,b=p*p+v*v,x=Math.sqrt(m),_=Math.sqrt(f),y=i*Math.tan((Pf-Math.acos((m+f-b)/(2*x*_)))/2),T=y/_,w=y/x;Math.abs(T-1)>Qr&&this._append`L${t+T*l},${n+T*d}`,this._append`A${i},${i},0,0,${+(d*p>l*v)},${this._x1=t+w*c},${this._y1=n+w*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),c=r*Math.sin(a),u=t+s,l=n+c,d=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Qr||Math.abs(this._y1-l)>Qr)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Df+Df),f>JL?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=l}`:f>Qr&&this._append`A${r},${r},0,${+(f>=Pf)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Iw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new tU(t)}function nU(e){return e.innerRadius}function rU(e){return e.outerRadius}function aU(e){return e.startAngle}function iU(e){return e.endAngle}function oU(e){return e&&e.padAngle}function sU(e,t,n,r,a,i,o,s){var c=n-e,u=r-t,l=o-a,d=s-i,f=d*c-l*u;if(!(f*f<Ht))return f=(l*(t-i)-d*(e-a))/f,[e+f*c,t+f*u]}function Ls(e,t,n,r,a,i,o){var s=e-n,c=t-r,u=(o?i:-i)/Va(s*s+c*c),l=u*c,d=-u*s,f=e+l,p=t+d,v=n+l,m=r+d,b=(f+v)/2,x=(p+m)/2,_=v-f,y=m-p,T=_*_+y*y,w=a-i,C=f*m-v*p,S=(y<0?-1:1)*Va(XL(0,w*w*T-C*C)),M=(C*y-_*S)/T,D=(-C*_-y*S)/T,R=(C*y+_*S)/T,A=(-C*_+y*S)/T,N=M-b,E=D-x,j=R-b,P=A-x;return N*N+E*E>j*j+P*P&&(M=R,D=A),{cx:M,cy:D,x01:-l,y01:-d,x11:M*(a/w-1),y11:D*(a/w-1)}}function cU(){var e=nU,t=rU,n=ht(0),r=null,a=aU,i=iU,o=oU,s=null,c=Iw(u);function u(){var l,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),v=a.apply(this,arguments)-Vc,m=i.apply(this,arguments)-Vc,b=uv(m-v),x=m>v;if(s||(s=l=c()),p<f&&(d=p,p=f,f=d),!(p>Ht))s.moveTo(0,0);else if(b>nc-Ht)s.moveTo(p*Gr(v),p*Hn(v)),s.arc(0,0,p,v,m,!x),f>Ht&&(s.moveTo(f*Gr(m),f*Hn(m)),s.arc(0,0,f,m,v,x));else{var _=v,y=m,T=v,w=m,C=b,S=b,M=o.apply(this,arguments)/2,D=M>Ht&&(r?+r.apply(this,arguments):Va(f*f+p*p)),R=_d(uv(p-f)/2,+n.apply(this,arguments)),A=R,N=R,E,j;if(D>Ht){var P=lv(D/f*Hn(M)),F=lv(D/p*Hn(M));(C-=P*2)>Ht?(P*=x?1:-1,T+=P,w-=P):(C=0,T=w=(v+m)/2),(S-=F*2)>Ht?(F*=x?1:-1,_+=F,y-=F):(S=0,_=y=(v+m)/2)}var B=p*Gr(_),L=p*Hn(_),W=f*Gr(w),I=f*Hn(w);if(R>Ht){var U=p*Gr(y),Y=p*Hn(y),te=f*Gr(T),G=f*Hn(T),J;if(b<Zo)if(J=sU(B,L,te,G,U,Y,W,I)){var Z=B-J[0],X=L-J[1],re=U-J[0],z=Y-J[1],V=1/Hn(QL((Z*re+X*z)/(Va(Z*Z+X*X)*Va(re*re+z*z)))/2),oe=Va(J[0]*J[0]+J[1]*J[1]);A=_d(R,(f-oe)/(V-1)),N=_d(R,(p-oe)/(V+1))}else A=N=0}S>Ht?N>Ht?(E=Ls(te,G,B,L,p,N,x),j=Ls(U,Y,W,I,p,N,x),s.moveTo(E.cx+E.x01,E.cy+E.y01),N<R?s.arc(E.cx,E.cy,N,zt(E.y01,E.x01),zt(j.y01,j.x01),!x):(s.arc(E.cx,E.cy,N,zt(E.y01,E.x01),zt(E.y11,E.x11),!x),s.arc(0,0,p,zt(E.cy+E.y11,E.cx+E.x11),zt(j.cy+j.y11,j.cx+j.x11),!x),s.arc(j.cx,j.cy,N,zt(j.y11,j.x11),zt(j.y01,j.x01),!x))):(s.moveTo(B,L),s.arc(0,0,p,_,y,!x)):s.moveTo(B,L),!(f>Ht)||!(C>Ht)?s.lineTo(W,I):A>Ht?(E=Ls(W,I,U,Y,f,-A,x),j=Ls(B,L,te,G,f,-A,x),s.lineTo(E.cx+E.x01,E.cy+E.y01),A<R?s.arc(E.cx,E.cy,A,zt(E.y01,E.x01),zt(j.y01,j.x01),!x):(s.arc(E.cx,E.cy,A,zt(E.y01,E.x01),zt(E.y11,E.x11),!x),s.arc(0,0,f,zt(E.cy+E.y11,E.cx+E.x11),zt(j.cy+j.y11,j.cx+j.x11),x),s.arc(j.cx,j.cy,A,zt(j.y11,j.x11),zt(j.y01,j.x01),!x))):s.arc(0,0,f,w,T,x)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Zo/2;return[Gr(d)*l,Hn(d)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ht(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ht(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ht(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ht(+l),u):r},u.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ht(+l),u):a},u.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ht(+l),u):i},u.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ht(+l),u):o},u.context=function(l){return arguments.length?(s=l??null,u):s},u}function Gp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Nw(e){this._context=e}Nw.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 Fw(e){return new Nw(e)}function uU(e){return e[0]}function lU(e){return e[1]}function dU(e,t){var n=ht(!0),r=null,a=Fw,i=null,o=Iw(s);e=typeof e=="function"?e:e===void 0?uU:ht(e),t=typeof t=="function"?t:t===void 0?lU:ht(t);function s(c){var u,l=(c=Gp(c)).length,d,f=!1,p;for(r==null&&(i=a(p=o())),u=0;u<=l;++u)!(u<l&&n(d=c[u],u,c))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,u,c),+t(d,u,c));if(p)return i=null,p+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:ht(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:ht(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:ht(!!c),s):n},s.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),s):a},s.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),s):r},s}function fU(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function hU(e){return e}function pU(){var e=hU,t=fU,n=null,r=ht(0),a=ht(nc),i=ht(0);function o(s){var c,u=(s=Gp(s)).length,l,d,f=0,p=new Array(u),v=new Array(u),m=+r.apply(this,arguments),b=Math.min(nc,Math.max(-nc,a.apply(this,arguments)-m)),x,_=Math.min(Math.abs(b)/u,i.apply(this,arguments)),y=_*(b<0?-1:1),T;for(c=0;c<u;++c)(T=v[p[c]=c]=+e(s[c],c,s))>0&&(f+=T);for(t!=null?p.sort(function(w,C){return t(v[w],v[C])}):n!=null&&p.sort(function(w,C){return n(s[w],s[C])}),c=0,d=f?(b-u*y)/f:0;c<u;++c,m=x)l=p[c],T=v[l],x=m+(T>0?T*d:0)+y,v[l]={data:s[l],index:c,value:T,startAngle:m,endAngle:x,padAngle:_};return v}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:ht(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ht(+s),o):r},o.endAngle=function(s){return arguments.length?(a=typeof s=="function"?s:ht(+s),o):a},o.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ht(+s),o):i},o}function zr(){}function qc(e,t,n){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+n)/6)}function Ol(e){this._context=e}Ol.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:qc(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:qc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mU(e){return new Ol(e)}function Lw(e){this._context=e}Lw.prototype={areaStart:zr,areaEnd:zr,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:qc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gU(e){return new Lw(e)}function Uw(e){this._context=e}Uw.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vU(e){return new Uw(e)}function Bw(e,t){this._basis=new Ol(e),this._beta=t}Bw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*i),this._beta*t[s]+(1-this._beta)*(a+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const bU=function e(t){function n(r){return t===1?new Ol(r):new Bw(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Yc(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Zp(e,t){this._context=e,this._k=(1-t)/6}Zp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Yc(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Yc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const yU=function e(t){function n(r){return new Zp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Kp(e,t){this._context=e,this._k=(1-t)/6}Kp.prototype={areaStart:zr,areaEnd:zr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Yc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xU=function e(t){function n(r){return new Kp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Xp(e,t){this._context=e,this._k=(1-t)/6}Xp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wU=function e(t){function n(r){return new Xp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Qp(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Ht){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Ht){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function Ww(e,t){this._context=e,this._alpha=t}Ww.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:Qp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _U=function e(t){function n(r){return t?new Ww(r,t):new Zp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function zw(e,t){this._context=e,this._alpha=t}zw.prototype={areaStart:zr,areaEnd:zr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Qp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const TU=function e(t){function n(r){return t?new zw(r,t):new Kp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Hw(e,t){this._context=e,this._alpha=t}Hw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Qp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const CU=function e(t){function n(r){return t?new Hw(r,t):new Xp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Vw(e){this._context=e}Vw.prototype={areaStart:zr,areaEnd:zr,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 kU(e){return new Vw(e)}function dv(e){return e<0?-1:1}function fv(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(dv(i)+dv(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function hv(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Td(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function Gc(e){this._context=e}Gc.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:Td(this,this._t0,hv(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 n=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,Td(this,hv(this,n=fv(this,e,t)),n);break;default:Td(this,this._t0,n=fv(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function qw(e){this._context=new Yw(e)}(qw.prototype=Object.create(Gc.prototype)).point=function(e,t){Gc.prototype.point.call(this,t,e)};function Yw(e){this._context=e}Yw.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,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function SU(e){return new Gc(e)}function OU(e){return new qw(e)}function Gw(e){this._context=e}Gw.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=pv(e),a=pv(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===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 pv(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function EU(e){return new Gw(e)}function El(e,t){this._context=e,this._t=t}El.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function $U(e){return new El(e,.5)}function MU(e){return new El(e,0)}function RU(e){return new El(e,1)}function mv(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function gv(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function AU(e,t){return e[t]}function jU(e){const t=[];return t.key=e,t}function PU(){var e=ht([]),t=gv,n=mv,r=AU;function a(i){var o=Array.from(e.apply(this,arguments),jU),s,c=o.length,u=-1,l;for(const d of i)for(s=0,++u;s<c;++s)(o[s][u]=[0,+r(d,o[s].key,u,i)]).data=d;for(s=0,l=Gp(t(o));s<c;++s)o[l[s]].index=s;return n(o,l),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ht(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:ht(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?gv:typeof i=="function"?i:ht(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??mv,a):n},a}function DU(e,t){if((c=e.length)>0)for(var n,r=0,a,i,o,s,c,u=e[t[0]].length;r<u;++r)for(o=s=0,n=0;n<c;++n)(i=(a=e[t[n]][r])[1]-a[0])>0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=s,a[0]=s+=i):(a[0]=0,a[1]=i)}var IU=bs,NU=D2,FU=Ei;function LU(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=IU(e,o);n(s,o)&&NU(i,FU(o,e),s)}return i}var UU=LU;function BU(e,t){return e!=null&&t in Object(e)}var WU=BU,zU=Ei,HU=Lu,VU=hn,qU=Wu,YU=mp,GU=$i;function ZU(e,t,n){t=zU(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=GU(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&YU(a)&&qU(o,a)&&(VU(e)||HU(e)))}var KU=ZU,XU=WU,QU=KU;function JU(e,t){return e!=null&&QU(e,t,XU)}var Zw=JU,eB=UU,tB=Zw;function nB(e,t){return eB(e,t,function(n,r){return tB(e,r)})}var rB=nB;function aB(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Jp=aB,vv=_i,iB=Lu,oB=hn,bv=vv?vv.isConcatSpreadable:void 0;function sB(e){return oB(e)||iB(e)||!!(bv&&e&&e[bv])}var cB=sB,uB=Jp,lB=cB;function Kw(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=lB),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?Kw(s,t-1,n,r,a):uB(a,s):r||(a[a.length]=s)}return a}var Xw=Kw,dB=Xw;function fB(e){var t=e==null?0:e.length;return t?dB(e,1):[]}var hB=fB,pB=hB,mB=$2,gB=M2;function vB(e){return gB(mB(e,void 0,pB),e+"")}var Qw=vB,bB=rB,yB=Qw,xB=yB(function(e,t){return e==null?{}:bB(e,t)}),wB=xB;const _B=St(wB);function TB(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var CB=TB,kB=qp,SB=CB,OB=Yp,EB=1,$B=2;function MB(e,t,n,r,a,i){var o=n&EB,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var d=-1,f=!0,p=n&$B?new kB:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var v=e[d],m=t[d];if(r)var b=o?r(m,v,d,t,e,i):r(v,m,d,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!SB(t,function(x,_){if(!OB(p,_)&&(v===x||a(v,x,n,r,i)))return p.push(_)})){f=!1;break}}else if(!(v===m||a(v,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Jw=MB;function RB(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var AB=RB;function jB(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var em=jB,yv=_i,xv=b2,PB=ms,DB=Jw,IB=AB,NB=em,FB=1,LB=2,UB="[object Boolean]",BB="[object Date]",WB="[object Error]",zB="[object Map]",HB="[object Number]",VB="[object RegExp]",qB="[object Set]",YB="[object String]",GB="[object Symbol]",ZB="[object ArrayBuffer]",KB="[object DataView]",wv=yv?yv.prototype:void 0,Cd=wv?wv.valueOf:void 0;function XB(e,t,n,r,a,i,o){switch(n){case KB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZB:return!(e.byteLength!=t.byteLength||!i(new xv(e),new xv(t)));case UB:case BB:case HB:return PB(+e,+t);case WB:return e.name==t.name&&e.message==t.message;case VB:case YB:return e==t+"";case zB:var s=IB;case qB:var c=r&FB;if(s||(s=NB),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;r|=LB,o.set(e,t);var l=DB(s(e),s(t),r,a,i,o);return o.delete(e),l;case GB:if(Cd)return Cd.call(e)==Cd.call(t)}return!1}var QB=XB,JB=Jp,eW=hn;function tW(e,t,n){var r=t(e);return eW(e)?r:JB(r,n(e))}var e_=tW;function nW(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var t_=nW;function rW(){return[]}var n_=rW,aW=t_,iW=n_,oW=Object.prototype,sW=oW.propertyIsEnumerable,_v=Object.getOwnPropertySymbols,cW=_v?function(e){return e==null?[]:(e=Object(e),aW(_v(e),function(t){return sW.call(e,t)}))}:iW,tm=cW,uW=w2,lW=uW(Object.keys,Object),dW=lW,fW=pp,hW=dW,pW=Object.prototype,mW=pW.hasOwnProperty;function gW(e){if(!fW(e))return hW(e);var t=[];for(var n in Object(e))mW.call(e,n)&&n!="constructor"&&t.push(n);return t}var vW=gW,bW=O2,yW=vW,xW=Si;function wW(e){return xW(e)?bW(e):yW(e)}var xs=wW,_W=e_,TW=tm,CW=xs;function kW(e){return _W(e,CW,TW)}var r_=kW,Tv=r_,SW=1,OW=Object.prototype,EW=OW.hasOwnProperty;function $W(e,t,n,r,a,i){var o=n&SW,s=Tv(e),c=s.length,u=Tv(t),l=u.length;if(c!=l&&!o)return!1;for(var d=c;d--;){var f=s[d];if(!(o?f in t:EW.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=o;++d<c;){f=s[d];var x=e[f],_=t[f];if(r)var y=o?r(_,x,f,t,e,i):r(x,_,f,e,t,i);if(!(y===void 0?x===_||a(x,_,n,r,i):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var T=e.constructor,w=t.constructor;T!=w&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof w=="function"&&w instanceof w)&&(m=!1)}return i.delete(e),i.delete(t),m}var MW=$W,RW=Oa,AW=rr,jW=RW(AW,"DataView"),PW=jW,DW=Oa,IW=rr,NW=DW(IW,"Promise"),FW=NW,LW=Oa,UW=rr,BW=LW(UW,"Set"),a_=BW,WW=Oa,zW=rr,HW=WW(zW,"WeakMap"),VW=HW,If=PW,Nf=up,Ff=FW,Lf=a_,Uf=VW,i_=Yr,Ri=h2,Cv="[object Map]",qW="[object Object]",kv="[object Promise]",Sv="[object Set]",Ov="[object WeakMap]",Ev="[object DataView]",YW=Ri(If),GW=Ri(Nf),ZW=Ri(Ff),KW=Ri(Lf),XW=Ri(Uf),Jr=i_;(If&&Jr(new If(new ArrayBuffer(1)))!=Ev||Nf&&Jr(new Nf)!=Cv||Ff&&Jr(Ff.resolve())!=kv||Lf&&Jr(new Lf)!=Sv||Uf&&Jr(new Uf)!=Ov)&&(Jr=function(e){var t=i_(e),n=t==qW?e.constructor:void 0,r=n?Ri(n):"";if(r)switch(r){case YW:return Ev;case GW:return Cv;case ZW:return kv;case KW:return Sv;case XW:return Ov}return t});var $l=Jr,kd=Fu,QW=Jw,JW=QB,ez=MW,$v=$l,Mv=hn,Rv=Uu,tz=bp,nz=1,Av="[object Arguments]",jv="[object Array]",Us="[object Object]",rz=Object.prototype,Pv=rz.hasOwnProperty;function az(e,t,n,r,a,i){var o=Mv(e),s=Mv(t),c=o?jv:$v(e),u=s?jv:$v(t);c=c==Av?Us:c,u=u==Av?Us:u;var l=c==Us,d=u==Us,f=c==u;if(f&&Rv(e)){if(!Rv(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new kd),o||tz(e)?QW(e,t,n,r,a,i):JW(e,t,c,n,r,a,i);if(!(n&nz)){var p=l&&Pv.call(e,"__wrapped__"),v=d&&Pv.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,b=v?t.value():t;return i||(i=new kd),a(m,b,n,r,i)}}return f?(i||(i=new kd),ez(e,t,n,r,a,i)):!1}var iz=az,oz=iz,Dv=zn;function o_(e,t,n,r,a){return e===t?!0:e==null||t==null||!Dv(e)&&!Dv(t)?e!==e&&t!==t:oz(e,t,n,r,o_,a)}var nm=o_,sz=nm;function cz(e,t){return sz(e,t)}var uz=cz;const lz=St(uz);var dz={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function rm(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var fz=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],hz=function(e,t){return Fn({},t,e)},pz=function(e,t){var n=zP({},e,t);return fz.forEach(function(r){no(n,r,hz(vr(n,r),n.text))}),n},s_=h.createContext(),c_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,o=h.useMemo(function(){var s=wI(i)?ip[i]:i;return{animate:r,config:s}},[r,i]);return g.jsx(s_.Provider,{value:o,children:t})},Iv={animate:$.bool,motionConfig:$.oneOfType([$.oneOf(Object.keys(ip)),$.shape({mass:$.number,tension:$.number,friction:$.number,clamp:$.bool,precision:$.number,velocity:$.number,duration:$.number,easing:$.func})])};c_.propTypes={children:$.node.isRequired,animate:Iv.animate,config:Iv.motionConfig};var pn=function(){return h.useContext(s_)},mz=function(e){var t=pn(),n=t.animate,r=t.config,a=function(s){var c=h.useRef();return h.useEffect(function(){c.current=s},[s]),c.current}(e),i=h.useMemo(function(){return U2(a,e)},[a,e]),o=xr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Ur(o,i)},gz={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ye(Ju),PRGn:ye(el),PiYG:ye(tl),PuOr:ye(nl),RdBu:ye(rl),RdGy:ye(al),RdYlBu:ye(il),RdYlGn:ye(ol),spectral:ye(sl),blues:ye(xl),greens:ye(wl),greys:ye(_l),oranges:ye(kl),purples:ye(Tl),reds:ye(Cl),BuGn:ye(cl),BuPu:ye(ul),GnBu:ye(ll),OrRd:ye(dl),PuBuGn:ye(fl),PuBu:ye(hl),PuRd:ye(pl),RdPu:ye(ml),YlGnBu:ye(gl),YlGn:ye(vl),YlOrBr:ye(bl),YlOrRd:ye(yl)},vz=Object.keys(gz);ye(Ju),ye(el),ye(tl),ye(nl),ye(rl),ye(al),ye(il),ye(ol),ye(sl),ye(xl),ye(wl),ye(_l),ye(kl),ye(Tl),ye(Cl),ye(cl),ye(ul),ye(ll),ye(dl),ye(fl),ye(hl),ye(pl),ye(ml),ye(gl),ye(vl),ye(bl),ye(yl);$.oneOfType([$.oneOf(vz),$.func,$.arrayOf($.string)]);var bz={basis:mU,basisClosed:gU,basisOpen:vU,bundle:bU,cardinal:yU,cardinalClosed:xU,cardinalOpen:wU,catmullRom:_U,catmullRomClosed:TU,catmullRomOpen:CU,linear:Fw,linearClosed:kU,monotoneX:SU,monotoneY:OU,natural:EU,step:$U,stepAfter:RU,stepBefore:MU},am=Object.keys(bz);am.filter(function(e){return e.endsWith("Closed")});Pw(am,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Pw(am,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");$.shape({top:$.number,right:$.number,bottom:$.number,left:$.number}).isRequired;var yz=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];$.oneOf(yz);ra(Vp);var xz={top:0,right:0,bottom:0,left:0},im=function(e,t,n){return n===void 0&&(n={}),h.useMemo(function(){var r=Fn({},xz,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},u_=function(){var e=h.useRef(null),t=h.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=h.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var o=i[0];return r(o.contentRect)})})[0];return h.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},wz=function(e){return h.useMemo(function(){return pz(dz,e)},[e])},_z=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Qu(e.slice("5")):ys(e):function(t){return""+t}},Ml=function(e){return h.useMemo(function(){return _z(e)},[e])},l_=h.createContext(),Tz={},d_=function(e){var t=e.theme,n=t===void 0?Tz:t,r=e.children,a=wz(n);return g.jsx(l_.Provider,{value:a,children:r})};d_.propTypes={children:$.node.isRequired,theme:$.object};var mt=function(){return h.useContext(l_)},Cz=["outlineWidth","outlineColor","outlineOpacity"],om=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,rm(e,Cz)},f_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t};f_.propTypes={children:$.node.isRequired,condition:$.bool.isRequired,wrapper:$.element.isRequired};var kz={position:"relative"},Rl=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,o=i===void 0||i,s=e.animate,c=e.motionConfig,u=h.useRef(null);return g.jsx(d_,{theme:n,children:g.jsx(c_,{animate:s,config:c,children:g.jsx(k8,{container:u,children:g.jsxs(f_,{condition:a,wrapper:g.jsx("div",{style:kz,ref:u}),children:[t,o&&g.jsx(C8,{})]})})})})};Rl.propTypes={children:$.element.isRequired,isInteractive:$.bool,renderWrapper:$.bool,theme:$.object,animate:$.bool,motionConfig:$.string};$.func.isRequired,$.bool,$.bool,$.object.isRequired,$.bool.isRequired,$.string;var Al=function(e){var t=e.children,n=u_(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return g.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};Al.propTypes={children:$.func.isRequired};var Sz=["id","colors"],h_=function(e){var t=e.id,n=e.colors,r=rm(e,Sz);return g.jsx("linearGradient",Fn({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,o=a.color,s=a.opacity;return g.jsx("stop",{offset:i+"%",stopColor:o,stopOpacity:s!==void 0?s:1},i)})}))};h_.propTypes={id:$.string.isRequired,colors:$.arrayOf($.shape({offset:$.number.isRequired,color:$.string.isRequired,opacity:$.number})).isRequired,gradientTransform:$.string};var p_={linearGradient:h_},Zi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Bf=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Zi.background:n,a=e.color,i=a===void 0?Zi.color:a,o=e.size,s=o===void 0?Zi.size:o,c=e.padding,u=c===void 0?Zi.padding:c,l=e.stagger,d=l===void 0?Zi.stagger:l,f=s+u,p=s/2,v=u/2;return d===!0&&(f=2*s+2*u),g.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:f,height:f,fill:r}),g.jsx("circle",{cx:v+p,cy:v+p,r:p,fill:i}),d&&g.jsx("circle",{cx:1.5*u+s+p,cy:1.5*u+s+p,r:p,fill:i})]})});Bf.displayName="PatternDots",Bf.propTypes={id:$.string.isRequired,color:$.string.isRequired,background:$.string.isRequired,size:$.number.isRequired,padding:$.number.isRequired,stagger:$.bool.isRequired};var En=function(e){return e*Math.PI/180},jl=function(e){return 180*e/Math.PI},Oz=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},da=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Ez=function(e){var t=e%360;return t<0&&(t+=360),t},$z={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Ki={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Wf=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Ki.spacing:n,a=e.rotation,i=a===void 0?Ki.rotation:a,o=e.background,s=o===void 0?Ki.background:o,c=e.color,u=c===void 0?Ki.color:c,l=e.lineWidth,d=l===void 0?Ki.lineWidth:l,f=Math.round(i)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var v,m=p,b=p;return f===0?v=`
|
|
254
254
|
M 0 0 L `+m+` 0
|
|
255
255
|
M 0 `+b+" L "+m+" "+b+`
|
|
256
256
|
`:f===90?v=`
|