var uF=Object.defineProperty;var cF=(e,t,n)=>t in e?uF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var X=(e,t,n)=>cF(e,typeof t!="symbol"?t+"":t,n);function fF(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l0={exports:{}},Oc={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var uC;function dF(){if(uC)return Oc;uC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return Oc.Fragment=t,Oc.jsx=n,Oc.jsxs=n,Oc}var cC;function hF(){return cC||(cC=1,l0.exports=dF()),l0.exports}var A=hF(),u0={exports:{}},Me={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fC;function pF(){if(fC)return Me;fC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function g(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function O(I,Q,ue){this.props=I,this.context=Q,this.refs=S,this.updater=ue||x}O.prototype.isReactComponent={},O.prototype.setState=function(I,Q){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,Q,"setState")},O.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function _(){}_.prototype=O.prototype;function C(I,Q,ue){this.props=I,this.context=Q,this.refs=S,this.updater=ue||x}var k=C.prototype=new _;k.constructor=C,w(k,O.prototype),k.isPureReactComponent=!0;var N=Array.isArray;function M(){}var R={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function V(I,Q,ue){var fe=ue.ref;return{$$typeof:e,type:I,key:Q,ref:fe!==void 0?fe:null,props:ue}}function H(I,Q){return V(I.type,Q,I.props)}function Z(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function F(I){var Q={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ue){return Q[ue]})}var he=/\/+/g;function ne(I,Q){return typeof I=="object"&&I!==null&&I.key!=null?F(""+I.key):Q.toString(36)}function ee(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(M,M):(I.status="pending",I.then(function(Q){I.status==="pending"&&(I.status="fulfilled",I.value=Q)},function(Q){I.status==="pending"&&(I.status="rejected",I.reason=Q)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function D(I,Q,ue,fe,de){var me=typeof I;(me==="undefined"||me==="boolean")&&(I=null);var ke=!1;if(I===null)ke=!0;else switch(me){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(I.$$typeof){case e:case t:ke=!0;break;case p:return ke=I._init,D(ke(I._payload),Q,ue,fe,de)}}if(ke)return de=de(I),ke=fe===""?"."+ne(I,0):fe,N(de)?(ue="",ke!=null&&(ue=ke.replace(he,"$&/")+"/"),D(de,Q,ue,"",function(ye){return ye})):de!=null&&(Z(de)&&(de=H(de,ue+(de.key==null||I&&I.key===de.key?"":(""+de.key).replace(he,"$&/")+"/")+ke)),Q.push(de)),1;ke=0;var Be=fe===""?".":fe+":";if(N(I))for(var se=0;se<I.length;se++)fe=I[se],me=Be+ne(fe,se),ke+=D(fe,Q,ue,me,de);else if(se=g(I),typeof se=="function")for(I=se.call(I),se=0;!(fe=I.next()).done;)fe=fe.value,me=Be+ne(fe,se++),ke+=D(fe,Q,ue,me,de);else if(me==="object"){if(typeof I.then=="function")return D(ee(I),Q,ue,fe,de);throw Q=String(I),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ke}function q(I,Q,ue){if(I==null)return I;var fe=[],de=0;return D(I,fe,"","",function(me){return Q.call(ue,me,de++)}),fe}function B(I){if(I._status===-1){var Q=I._result;Q=Q(),Q.then(function(ue){(I._status===0||I._status===-1)&&(I._status=1,I._result=ue)},function(ue){(I._status===0||I._status===-1)&&(I._status=2,I._result=ue)}),I._status===-1&&(I._status=0,I._result=Q)}if(I._status===1)return I._result.default;throw I._result}var ce=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},Y={map:q,forEach:function(I,Q,ue){q(I,function(){Q.apply(this,arguments)},ue)},count:function(I){var Q=0;return q(I,function(){Q++}),Q},toArray:function(I){return q(I,function(Q){return Q})||[]},only:function(I){if(!Z(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return Me.Activity=m,Me.Children=Y,Me.Component=O,Me.Fragment=n,Me.Profiler=i,Me.PureComponent=C,Me.StrictMode=r,Me.Suspense=f,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Me.__COMPILER_RUNTIME={__proto__:null,c:function(I){return R.H.useMemoCache(I)}},Me.cache=function(I){return function(){return I.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(I,Q,ue){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var fe=w({},I.props),de=I.key;if(Q!=null)for(me in Q.key!==void 0&&(de=""+Q.key),Q)!P.call(Q,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&Q.ref===void 0||(fe[me]=Q[me]);var me=arguments.length-2;if(me===1)fe.children=ue;else if(1<me){for(var ke=Array(me),Be=0;Be<me;Be++)ke[Be]=arguments[Be+2];fe.children=ke}return V(I.type,de,fe)},Me.createContext=function(I){return I={$$typeof:l,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:o,_context:I},I},Me.createElement=function(I,Q,ue){var fe,de={},me=null;if(Q!=null)for(fe in Q.key!==void 0&&(me=""+Q.key),Q)P.call(Q,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(de[fe]=Q[fe]);var ke=arguments.length-2;if(ke===1)de.children=ue;else if(1<ke){for(var Be=Array(ke),se=0;se<ke;se++)Be[se]=arguments[se+2];de.children=Be}if(I&&I.defaultProps)for(fe in ke=I.defaultProps,ke)de[fe]===void 0&&(de[fe]=ke[fe]);return V(I,me,de)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(I){return{$$typeof:u,render:I}},Me.isValidElement=Z,Me.lazy=function(I){return{$$typeof:p,_payload:{_status:-1,_result:I},_init:B}},Me.memo=function(I,Q){return{$$typeof:d,type:I,compare:Q===void 0?null:Q}},Me.startTransition=function(I){var Q=R.T,ue={};R.T=ue;try{var fe=I(),de=R.S;de!==null&&de(ue,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(M,ce)}catch(me){ce(me)}finally{Q!==null&&ue.types!==null&&(Q.types=ue.types),R.T=Q}},Me.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Me.use=function(I){return R.H.use(I)},Me.useActionState=function(I,Q,ue){return R.H.useActionState(I,Q,ue)},Me.useCallback=function(I,Q){return R.H.useCallback(I,Q)},Me.useContext=function(I){return R.H.useContext(I)},Me.useDebugValue=function(){},Me.useDeferredValue=function(I,Q){return R.H.useDeferredValue(I,Q)},Me.useEffect=function(I,Q){return R.H.useEffect(I,Q)},Me.useEffectEvent=function(I){return R.H.useEffectEvent(I)},Me.useId=function(){return R.H.useId()},Me.useImperativeHandle=function(I,Q,ue){return R.H.useImperativeHandle(I,Q,ue)},Me.useInsertionEffect=function(I,Q){return R.H.useInsertionEffect(I,Q)},Me.useLayoutEffect=function(I,Q){return R.H.useLayoutEffect(I,Q)},Me.useMemo=function(I,Q){return R.H.useMemo(I,Q)},Me.useOptimistic=function(I,Q){return R.H.useOptimistic(I,Q)},Me.useReducer=function(I,Q,ue){return R.H.useReducer(I,Q,ue)},Me.useRef=function(I){return R.H.useRef(I)},Me.useState=function(I){return R.H.useState(I)},Me.useSyncExternalStore=function(I,Q,ue){return R.H.useSyncExternalStore(I,Q,ue)},Me.useTransition=function(){return R.H.useTransition()},Me.version="19.2.4",Me}var dC;function pu(){return dC||(dC=1,u0.exports=pF()),u0.exports}var E=pu();const mF=mo(E),ww=fF({__proto__:null,default:mF},[E]),GD=!1;function Xr(e){try{return e()}catch{}}const Mx=Xr(()=>globalThis)||Xr(()=>window)||Xr(()=>self)||Xr(()=>global)||Xr(function(){return Xr.constructor("return this")()}),Sw="4.1.6",hC=new Map;function KD(e){const t=hC.get(e)||1;return hC.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}function yF(e,t=0){const n=KD("stringifyForDisplay");return JSON.stringify(e,(r,i)=>i===void 0?n:i,t).split(JSON.stringify(n)).join("<undefined>")}const pC="Invariant Violation";class Ew extends Error{constructor(t=pC){super(t),this.name=pC,Object.setPrototypeOf(this,Ew.prototype)}}const YD=["debug","log","warn","error","silent"];let vF=YD.indexOf("silent");function ze(e,...t){if(!e)throw Br(...t)}function Rm(e){return function(t,...n){if(YD.indexOf(e)>=vF){const r=console[e]||console.log;if(typeof t=="number"){const i=t;t=WD(i),t||(t=XD(i,n),n=[])}r(t,...n)}}}ze.debug=Rm("debug");ze.log=Rm("log");ze.warn=Rm("warn");ze.error=Rm("error");function Br(e,...t){return new Ew(WD(e,t)||XD(e,t))}const mC=Symbol.for("ApolloErrorMessageHandler_"+Sw);function Px(e){if(typeof e=="string")return e;try{return yF(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function WD(e,t=[]){if(e)return Mx[mC]&&Mx[mC](e,t.map(Px))}function XD(e,t=[]){if(e)return typeof e=="string"?t.reduce((n,r)=>n.replace(/%[sdfo]/,Px(r)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Sw,message:e,args:t.map(Px)}))}`}const yC=Symbol.for("__APOLLO_CONTEXT__");function Ow(){ze("createContext"in ww,37);let e=E.createContext[yC];return e||(Object.defineProperty(E.createContext,yC,{value:e=E.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}const gF=({client:e,children:t})=>{const n=Ow(),r=E.useContext(n),i=E.useMemo(()=>({...r,client:e||r.client}),[r,e]);return ze(i.client,38),E.createElement(n.Provider,{value:i},t)};function Im(e){const t=E.useContext(Ow()),n=e||t.client;return ze(!!n,28),n}const{toString:vC,hasOwnProperty:bF}=Object.prototype,gC=Function.prototype.toString,Dx=new Map;function We(e,t){try{return Rx(e,t)}finally{Dx.clear()}}function Rx(e,t){if(e===t)return!0;const n=vC.call(e),r=vC.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(xC(e,t))return!0;const i=bC(e),o=bC(t),l=i.length;if(l!==o.length)return!1;for(let u=0;u<l;++u)if(!bF.call(t,i[u]))return!1;for(let u=0;u<l;++u){const f=i[u];if(!Rx(e[f],t[f]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(xC(e,t))return!0;const i=e.entries(),o=n==="[object Map]";for(;;){const l=i.next();if(l.done)break;const[u,f]=l.value;if(!t.has(u)||o&&!Rx(f,t.get(u)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let i=e.byteLength;if(i===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=gC.call(e);return i!==gC.call(t)?!1:!SF(i,wF)}}return!1}function bC(e){return Object.keys(e).filter(xF,e)}function xF(e){return this[e]!==void 0}const wF="{ [native code] }";function SF(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function xC(e,t){let n=Dx.get(e);if(n){if(n.has(t))return!0}else Dx.set(e,n=new Set);return n.add(t),!1}function Jh(e,t){if(!!!e)throw new Error(t)}function EF(e){return typeof e=="object"&&e!==null}function OF(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const AF=/\r\n|[\n\r]/g;function Ix(e,t){let n=0,r=1;for(const i of e.body.matchAll(AF)){if(typeof i.index=="number"||OF(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function TF(e){return QD(e.source,Ix(e.source,e.start))}function QD(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,l=t.line+o,u=t.line===1?n:0,f=t.column+u,d=`${e.name}:${l}:${f}
`,p=r.split(/\r\n|[\n\r]/g),m=p[i];if(m.length>120){const y=Math.floor(f/80),g=f%80,x=[];for(let w=0;w<m.length;w+=80)x.push(m.slice(w,w+80));return d+wC([[`${l} |`,x[0]],...x.slice(1,y+1).map(w=>["|",w]),["|","^".padStart(g)],["|",x[y+1]]])}return d+wC([[`${l-1} |`,p[i-1]],[`${l} |`,m],["|","^".padStart(f)],[`${l+1} |`,p[i+1]]])}function wC(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
`)}function _F(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class Aw extends Error{constructor(t,...n){var r,i,o;const{nodes:l,source:u,positions:f,path:d,originalError:p,extensions:m}=_F(n);super(t),this.name="GraphQLError",this.path=d??void 0,this.originalError=p??void 0,this.nodes=SC(Array.isArray(l)?l:l?[l]:void 0);const y=SC((r=this.nodes)===null||r===void 0?void 0:r.map(x=>x.loc).filter(x=>x!=null));this.source=u??(y==null||(i=y[0])===null||i===void 0?void 0:i.source),this.positions=f??(y==null?void 0:y.map(x=>x.start)),this.locations=f&&u?f.map(x=>Ix(u,x)):y==null?void 0:y.map(x=>Ix(x.source,x.start));const g=EF(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(o=m??g)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Aw):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`

`+TF(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`

`+QD(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function SC(e){return e===void 0||e.length===0?void 0:e}function tn(e,t,n){return new Aw(`Syntax Error: ${n}`,{source:e,positions:[t]})}class CF{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class ZD{constructor(t,n,r,i,o,l){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=l,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const JD={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},kF=new Set(Object.keys(JD));function EC(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&kF.has(t)}var ei;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(ei||(ei={}));var Lx;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Lx||(Lx={}));var pe;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(pe||(pe={}));function zx(e){return e===9||e===32}function cf(e){return e>=48&&e<=57}function eR(e){return e>=97&&e<=122||e>=65&&e<=90}function tR(e){return eR(e)||e===95}function jF(e){return eR(e)||cf(e)||e===95}function NF(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let l=0;l<e.length;++l){var o;const u=e[l],f=MF(u);f!==u.length&&(r=(o=r)!==null&&o!==void 0?o:l,i=l,l!==0&&f<n&&(n=f))}return e.map((l,u)=>u===0?l:l.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function MF(e){let t=0;for(;t<e.length&&zx(e.charCodeAt(t));)++t;return t}function PF(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(g=>g.length===0||zx(g.charCodeAt(0))),l=n.endsWith('\\"""'),u=e.endsWith('"')&&!l,f=e.endsWith("\\"),d=u||f,p=!i||e.length>70||d||o||l;let m="";const y=i&&zx(e.charCodeAt(0));return(p&&!y||o)&&(m+=`
`),m+=n,(p||d)&&(m+=`
`),'"""'+m+'"""'}var ie;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(ie||(ie={}));class DF{constructor(t){const n=new ZD(ie.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==ie.EOF)do if(t.next)t=t.next;else{const n=IF(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===ie.COMMENT);return t}}function RF(e){return e===ie.BANG||e===ie.DOLLAR||e===ie.AMP||e===ie.PAREN_L||e===ie.PAREN_R||e===ie.DOT||e===ie.SPREAD||e===ie.COLON||e===ie.EQUALS||e===ie.AT||e===ie.BRACKET_L||e===ie.BRACKET_R||e===ie.BRACE_L||e===ie.PIPE||e===ie.BRACE_R}function mu(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Lm(e,t){return nR(e.charCodeAt(t))&&rR(e.charCodeAt(t+1))}function nR(e){return e>=55296&&e<=56319}function rR(e){return e>=56320&&e<=57343}function gs(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return ie.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Ht(e,t,n,r,i){const o=e.line,l=1+n-e.lineStart;return new ZD(t,n,r,o,l,i)}function IF(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const o=n.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return LF(e,i);case 33:return Ht(e,ie.BANG,i,i+1);case 36:return Ht(e,ie.DOLLAR,i,i+1);case 38:return Ht(e,ie.AMP,i,i+1);case 40:return Ht(e,ie.PAREN_L,i,i+1);case 41:return Ht(e,ie.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return Ht(e,ie.SPREAD,i,i+3);break;case 58:return Ht(e,ie.COLON,i,i+1);case 61:return Ht(e,ie.EQUALS,i,i+1);case 64:return Ht(e,ie.AT,i,i+1);case 91:return Ht(e,ie.BRACKET_L,i,i+1);case 93:return Ht(e,ie.BRACKET_R,i,i+1);case 123:return Ht(e,ie.BRACE_L,i,i+1);case 124:return Ht(e,ie.PIPE,i,i+1);case 125:return Ht(e,ie.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?qF(e,i):BF(e,i)}if(cf(o)||o===45)return zF(e,i,o);if(tR(o))return $F(e,i);throw tn(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:mu(o)||Lm(n,i)?`Unexpected character: ${gs(e,i)}.`:`Invalid character: ${gs(e,i)}.`)}return Ht(e,ie.EOF,r,r)}function LF(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(o===10||o===13)break;if(mu(o))++i;else if(Lm(n,i))i+=2;else break}return Ht(e,ie.COMMENT,t,i,n.slice(t+1,i))}function zF(e,t,n){const r=e.source.body;let i=t,o=n,l=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),cf(o))throw tn(e.source,i,`Invalid number, unexpected digit after 0: ${gs(e,i)}.`)}else i=c0(e,i,o),o=r.charCodeAt(i);if(o===46&&(l=!0,o=r.charCodeAt(++i),i=c0(e,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(l=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=c0(e,i,o),o=r.charCodeAt(i)),o===46||tR(o))throw tn(e.source,i,`Invalid number, expected digit but got: ${gs(e,i)}.`);return Ht(e,l?ie.FLOAT:ie.INT,t,i,r.slice(t,i))}function c0(e,t,n){if(!cf(n))throw tn(e.source,t,`Invalid number, expected digit but got: ${gs(e,t)}.`);const r=e.source.body;let i=t+1;for(;cf(r.charCodeAt(i));)++i;return i}function BF(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,l="";for(;i<r;){const u=n.charCodeAt(i);if(u===34)return l+=n.slice(o,i),Ht(e,ie.STRING,t,i+1,l);if(u===92){l+=n.slice(o,i);const f=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?VF(e,i):UF(e,i):FF(e,i);l+=f.value,i+=f.size,o=i;continue}if(u===10||u===13)break;if(mu(u))++i;else if(Lm(n,i))i+=2;else throw tn(e.source,i,`Invalid character within String: ${gs(e,i)}.`)}throw tn(e.source,i,"Unterminated string.")}function VF(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const o=n.charCodeAt(t+i++);if(o===125){if(i<5||!mu(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|$c(o),r<0)break}throw tn(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function UF(e,t){const n=e.source.body,r=OC(n,t+2);if(mu(r))return{value:String.fromCodePoint(r),size:6};if(nR(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=OC(n,t+8);if(rR(i))return{value:String.fromCodePoint(r,i),size:12}}throw tn(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function OC(e,t){return $c(e.charCodeAt(t))<<12|$c(e.charCodeAt(t+1))<<8|$c(e.charCodeAt(t+2))<<4|$c(e.charCodeAt(t+3))}function $c(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function FF(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw tn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function qF(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,l=o,u="";const f=[];for(;o<r;){const d=n.charCodeAt(o);if(d===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){u+=n.slice(l,o),f.push(u);const p=Ht(e,ie.BLOCK_STRING,t,o+3,NF(f).join(`
`));return e.line+=f.length-1,e.lineStart=i,p}if(d===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){u+=n.slice(l,o),l=o+1,o+=4;continue}if(d===10||d===13){u+=n.slice(l,o),f.push(u),d===13&&n.charCodeAt(o+1)===10?o+=2:++o,u="",l=o,i=o;continue}if(mu(d))++o;else if(Lm(n,o))o+=2;else throw tn(e.source,o,`Invalid character within String: ${gs(e,o)}.`)}throw tn(e.source,o,"Unterminated string.")}function $F(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(jF(o))++i;else break}return Ht(e,ie.NAME,t,i,n.slice(t,i))}const HF=10,iR=2;function Tw(e){return zm(e,[])}function zm(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return GF(e,t);default:return String(e)}}function GF(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(KF(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:zm(r,n)}else if(Array.isArray(e))return WF(e,n);return YF(e,n)}function KF(e){return typeof e.toJSON=="function"}function YF(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>iR?"["+XF(e)+"]":"{ "+n.map(([i,o])=>i+": "+zm(o,t)).join(", ")+" }"}function WF(e,t){if(e.length===0)return"[]";if(t.length>iR)return"[Array]";const n=Math.min(HF,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(zm(e[o],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function XF(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const QF=globalThis.process&&!0,ZF=QF?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){const l=Tw(t);throw new Error(`Cannot use ${i} "${l}" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1};class aR{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Jh(!1,`Body must be a string. Received: ${Tw(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Jh(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Jh(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function JF(e){return ZF(e,aR)}function e8(e,t){const n=new t8(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}class t8{constructor(t,n={}){const{lexer:r,...i}=n;if(r)this._lexer=r;else{const o=JF(t)?t:new aR(t);this._lexer=new DF(o)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(ie.NAME);return this.node(t,{kind:pe.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:pe.DOCUMENT,definitions:this.many(ie.SOF,this.parseDefinition,ie.EOF)})}parseDefinition(){if(this.peek(ie.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===ie.BRACE_L)throw tn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===ie.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw tn(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");switch(n.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(ie.BRACE_L))return this.node(t,{kind:pe.OPERATION_DEFINITION,operation:ei.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseDescription(),r=this.parseOperationType();let i;return this.peek(ie.NAME)&&(i=this.parseName()),this.node(t,{kind:pe.OPERATION_DEFINITION,operation:r,description:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(ie.NAME);switch(t.value){case"query":return ei.QUERY;case"mutation":return ei.MUTATION;case"subscription":return ei.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(ie.PAREN_L,this.parseVariableDefinition,ie.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:pe.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(ie.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ie.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(ie.DOLLAR),this.node(t,{kind:pe.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:pe.SELECTION_SET,selections:this.many(ie.BRACE_L,this.parseSelection,ie.BRACE_R)})}parseSelection(){return this.peek(ie.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(ie.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:pe.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ie.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(ie.PAREN_L,n,ie.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(ie.COLON),this.node(n,{kind:pe.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(ie.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(ie.NAME)?this.node(t,{kind:pe.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:pe.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,n=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:pe.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:pe.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case ie.BRACKET_L:return this.parseList(t);case ie.BRACE_L:return this.parseObject(t);case ie.INT:return this.advanceLexer(),this.node(n,{kind:pe.INT,value:n.value});case ie.FLOAT:return this.advanceLexer(),this.node(n,{kind:pe.FLOAT,value:n.value});case ie.STRING:case ie.BLOCK_STRING:return this.parseStringLiteral();case ie.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:pe.BOOLEAN,value:!0});case"false":return this.node(n,{kind:pe.BOOLEAN,value:!1});case"null":return this.node(n,{kind:pe.NULL});default:return this.node(n,{kind:pe.ENUM,value:n.value})}case ie.DOLLAR:if(t)if(this.expectToken(ie.DOLLAR),this._lexer.token.kind===ie.NAME){const r=this._lexer.token.value;throw tn(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:pe.STRING,value:t.value,block:t.kind===ie.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:pe.LIST,values:this.any(ie.BRACKET_L,n,ie.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:pe.OBJECT,fields:this.any(ie.BRACE_L,n,ie.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(ie.COLON),this.node(n,{kind:pe.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(ie.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(ie.AT),this.node(n,{kind:pe.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(ie.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(ie.BRACKET_R),n=this.node(t,{kind:pe.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(ie.BANG)?this.node(t,{kind:pe.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:pe.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ie.STRING)||this.peek(ie.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(ie.BRACE_L,this.parseOperationTypeDefinition,ie.BRACE_R);return this.node(t,{kind:pe.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(ie.COLON);const r=this.parseNamedType();return this.node(t,{kind:pe.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:pe.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:pe.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ie.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ie.BRACE_L,this.parseFieldDefinition,ie.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(ie.COLON);const o=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(t,{kind:pe.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:l})}parseArgumentDefs(){return this.optionalMany(ie.PAREN_L,this.parseInputValueDef,ie.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(ie.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(ie.EQUALS)&&(o=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(t,{kind:pe.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:l})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:pe.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:l})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:pe.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(ie.EQUALS)?this.delimitedMany(ie.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:pe.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(ie.BRACE_L,this.parseEnumValueDefinition,ie.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:pe.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw tn(this._lexer.source,this._lexer.token.start,`${_h(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:pe.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(ie.BRACE_L,this.parseInputValueDef,ie.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===ie.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(ie.BRACE_L,this.parseOperationTypeDefinition,ie.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:pe.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:pe.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:pe.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:pe.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:pe.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:pe.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:pe.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ie.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const l=this.parseDirectiveLocations();return this.node(t,{kind:pe.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:l})}parseDirectiveLocations(){return this.delimitedMany(ie.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Lx,n.value))return n;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,n=this.expectOptionalToken(ie.AT),r=this.parseName();let i;!n&&this.expectOptionalToken(ie.DOT)&&(i=this.parseName());let o;return(n||i)&&this.expectOptionalToken(ie.PAREN_L)&&(o=this.parseName(),this.expectToken(ie.COLON),this.expectToken(ie.PAREN_R)),n?o?this.node(t,{kind:pe.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:o}):this.node(t,{kind:pe.DIRECTIVE_COORDINATE,name:r}):i?o?this.node(t,{kind:pe.ARGUMENT_COORDINATE,name:r,fieldName:i,argumentName:o}):this.node(t,{kind:pe.MEMBER_COORDINATE,name:r,memberName:i}):this.node(t,{kind:pe.TYPE_COORDINATE,name:r})}node(t,n){return this._options.noLocation!==!0&&(n.loc=new CF(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw tn(this._lexer.source,n.start,`Expected ${oR(t)}, found ${_h(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===ie.NAME&&n.value===t)this.advanceLexer();else throw tn(this._lexer.source,n.start,`Expected "${t}", found ${_h(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===ie.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return tn(this._lexer.source,n.start,`Unexpected ${_h(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==ie.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw tn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function _h(e){const t=e.value;return oR(e.kind)+(t!=null?` "${t}"`:"")}function oR(e){return RF(e)?`"${e}"`:e}function n8(e){return`"${e.replace(r8,i8)}"`}const r8=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i8(e){return a8[e.charCodeAt(0)]}const a8=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],_w=Object.freeze({});function Si(e,t,n=JD){const r=new Map;for(const O of Object.values(pe))r.set(O,o8(t,O));let i,o=Array.isArray(e),l=[e],u=-1,f=[],d=e,p,m;const y=[],g=[];do{u++;const O=u===l.length,_=O&&f.length!==0;if(O){if(p=g.length===0?void 0:y[y.length-1],d=m,m=g.pop(),_)if(o){d=d.slice();let k=0;for(const[N,M]of f){const R=N-k;M===null?(d.splice(R,1),k++):d[R]=M}}else{d={...d};for(const[k,N]of f)d[k]=N}u=i.index,l=i.keys,f=i.edits,o=i.inArray,i=i.prev}else if(m){if(p=o?u:l[u],d=m[p],d==null)continue;y.push(p)}let C;if(!Array.isArray(d)){var x,w;EC(d)||Jh(!1,`Invalid AST Node: ${Tw(d)}.`);const k=O?(x=r.get(d.kind))===null||x===void 0?void 0:x.leave:(w=r.get(d.kind))===null||w===void 0?void 0:w.enter;if(C=k==null?void 0:k.call(t,d,p,m,y,g),C===_w)break;if(C===!1){if(!O){y.pop();continue}}else if(C!==void 0&&(f.push([p,C]),!O))if(EC(C))d=C;else{y.pop();continue}}if(C===void 0&&_&&f.push([p,d]),O)y.pop();else{var S;i={inArray:o,index:u,keys:l,edits:f,prev:i},o=Array.isArray(d),l=o?d:(S=n[d.kind])!==null&&S!==void 0?S:[],u=-1,f=[],m&&g.push(m),m=d}}while(i!==void 0);return f.length!==0?f[f.length-1][1]:e}function o8(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function s8(e){return Si(e,u8)}const l8=80,u8={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ve(e.definitions,`

`)},OperationDefinition:{leave(e){const t=f0(e.variableDefinitions)?Pe(`(
`,ve(e.variableDefinitions,`
`),`
)`):Pe("(",ve(e.variableDefinitions,", "),")"),n=Pe("",e.description,`
`)+ve([e.operation,ve([e.name,t]),ve(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>Pe("",i,`
`)+e+": "+t+Pe(" = ",n)+Pe(" ",ve(r," "))},SelectionSet:{leave:({selections:e})=>Kr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Pe("",e,": ")+t;let l=o+Pe("(",ve(n,", "),")");return l.length>l8&&(l=o+Pe(`(
`,ep(ve(n,`
`)),`
)`)),ve([l,ve(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Pe(" ",ve(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ve(["...",Pe("on ",e),ve(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>Pe("",o,`
`)+`fragment ${e}${Pe("(",ve(n,", "),")")} on ${t} ${Pe("",ve(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?PF(e):n8(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ve(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ve(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Pe("(",ve(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Pe("",e,`
`)+ve(["schema",ve(t," "),Kr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Pe("",e,`
`)+ve(["scalar",t,ve(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Pe("",e,`
`)+ve(["type",t,Pe("implements ",ve(n," & ")),ve(r," "),Kr(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Pe("",e,`
`)+t+(f0(n)?Pe(`(
`,ep(ve(n,`
`)),`
)`):Pe("(",ve(n,", "),")"))+": "+r+Pe(" ",ve(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Pe("",e,`
`)+ve([t+": "+n,Pe("= ",r),ve(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Pe("",e,`
`)+ve(["interface",t,Pe("implements ",ve(n," & ")),ve(r," "),Kr(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Pe("",e,`
`)+ve(["union",t,ve(n," "),Pe("= ",ve(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Pe("",e,`
`)+ve(["enum",t,ve(n," "),Kr(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Pe("",e,`
`)+ve([t,ve(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Pe("",e,`
`)+ve(["input",t,ve(n," "),Kr(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Pe("",e,`
`)+"directive @"+t+(f0(n)?Pe(`(
`,ep(ve(n,`
`)),`
)`):Pe("(",ve(n,", "),")"))+(r?" repeatable":"")+" on "+ve(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ve(["extend schema",ve(e," "),Kr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ve(["extend scalar",e,ve(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ve(["extend type",e,Pe("implements ",ve(t," & ")),ve(n," "),Kr(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ve(["extend interface",e,Pe("implements ",ve(t," & ")),ve(n," "),Kr(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ve(["extend union",e,ve(t," "),Pe("= ",ve(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ve(["extend enum",e,ve(t," "),Kr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ve(["extend input",e,ve(t," "),Kr(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>ve([e,Pe(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>ve([e,Pe(".",t),Pe("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>ve(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>ve(["@",e,Pe("(",t,":)")])}};function ve(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function Kr(e){return Pe(`{
`,ep(ve(e,`
`)),`
}`)}function Pe(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function ep(e){return Pe("  ",e.replace(/\n/g,`
  `))}function f0(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
`)))!==null&&t!==void 0?t:!1}var Bx=function(e,t){return Bx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Bx(e,t)};function Ur(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bx(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Sp=function(){return Sp=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Sp.apply(this,arguments)};function c8(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function u(p){try{d(r.next(p))}catch(m){l(m)}}function f(p){try{d(r.throw(p))}catch(m){l(m)}}function d(p){p.done?o(p.value):i(p.value).then(u,f)}d((r=r.apply(e,t||[])).next())})}function sR(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=u(0),l.throw=u(1),l.return=u(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function u(d){return function(p){return f([d,p])}}function f(d){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(p){d=[6,p],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Ql(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zl(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],l;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(u){l={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o}function Jl(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function $l(e){return this instanceof $l?(this.v=e,this):new $l(e)}function f8(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",l),i[Symbol.asyncIterator]=function(){return this},i;function l(g){return function(x){return Promise.resolve(x).then(g,m)}}function u(g,x){r[g]&&(i[g]=function(w){return new Promise(function(S,O){o.push([g,w,S,O])>1||f(g,w)})},x&&(i[g]=x(i[g])))}function f(g,x){try{d(r[g](x))}catch(w){y(o[0][3],w)}}function d(g){g.value instanceof $l?Promise.resolve(g.value.v).then(p,m):y(o[0][2],g)}function p(g){f("next",g)}function m(g){f("throw",g)}function y(g,x){g(x),o.shift(),o.length&&f(o[0][0],o[0][1])}}function d8(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ql=="function"?Ql(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(l){return new Promise(function(u,f){l=e[o](l),i(u,f,l.done,l.value)})}}function i(o,l,u,f){Promise.resolve(f).then(function(d){o({value:d,done:u})},l)}}function It(e){return typeof e=="function"}function Cw(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var d0=Cw(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
`+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
  `):"",this.name="UnsubscriptionError",this.errors=n}});function Ep(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var If=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=Ql(l),f=u.next();!f.done;f=u.next()){var d=f.value;d.remove(this)}}catch(w){t={error:w}}finally{try{f&&!f.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}else l.remove(this);var p=this.initialTeardown;if(It(p))try{p()}catch(w){o=w instanceof d0?w.errors:[w]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var y=Ql(m),g=y.next();!g.done;g=y.next()){var x=g.value;try{AC(x)}catch(w){o=o??[],w instanceof d0?o=Jl(Jl([],Zl(o)),Zl(w.errors)):o.push(w)}}}catch(w){r={error:w}}finally{try{g&&!g.done&&(i=y.return)&&i.call(y)}finally{if(r)throw r.error}}}if(o)throw new d0(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)AC(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Ep(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Ep(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),lR=If.EMPTY;function uR(e){return e instanceof If||e&&"closed"in e&&It(e.remove)&&It(e.add)&&It(e.unsubscribe)}function AC(e){It(e)?e():e.unsubscribe()}var h8={Promise:void 0},p8={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Jl([e,t],Zl(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function cR(e){p8.setTimeout(function(){throw e})}function TC(){}function tp(e){e()}var kw=(function(e){Ur(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,uR(n)&&n.add(r)):r.destination=v8,r}return t.create=function(n,r,i){return new ff(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(If),m8=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Ch(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Ch(r)}else Ch(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Ch(n)}},e})(),ff=(function(e){Ur(t,e);function t(n,r,i){var o=e.call(this)||this,l;return It(n)||!n?l={next:n??void 0,error:r??void 0,complete:i??void 0}:l=n,o.destination=new m8(l),o}return t})(kw);function Ch(e){cR(e)}function y8(e){throw e}var v8={closed:!0,next:TC,error:y8,complete:TC},jw=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Bm(e){return e}function g8(e){return e.length===0?Bm:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var _t=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=x8(t)?t:new ff(t,n,r);return tp(function(){var l=i,u=l.operator,f=l.source;o.add(u?u.call(o,f):f?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=_C(n),new n(function(i,o){var l=new ff({next:function(u){try{t(u)}catch(f){o(f),l.unsubscribe()}},error:o,complete:i});r.subscribe(l)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[jw]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return g8(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=_C(t),new t(function(r,i){var o;n.subscribe(function(l){return o=l},function(l){return i(l)},function(){return r(o)})})},e.create=function(t){return new e(t)},e})();function _C(e){var t;return(t=e??h8.Promise)!==null&&t!==void 0?t:Promise}function b8(e){return e&&It(e.next)&&It(e.error)&&It(e.complete)}function x8(e){return e&&e instanceof kw||b8(e)&&uR(e)}function w8(e){return It(e==null?void 0:e.lift)}function ri(e){return function(t){if(w8(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function oa(e,t,n,r,i){return new S8(e,t,n,r,i)}var S8=(function(e){Ur(t,e);function t(n,r,i,o,l,u){var f=e.call(this,n)||this;return f.onFinalize=l,f.shouldUnsubscribe=u,f._next=r?function(d){try{r(d)}catch(p){n.error(p)}}:e.prototype._next,f._error=o?function(d){try{o(d)}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._error,f._complete=i?function(){try{i()}catch(d){n.error(d)}finally{this.unsubscribe()}}:e.prototype._complete,f}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(kw),E8=Cw(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),yu=(function(e){Ur(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new CC(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new E8},t.prototype.next=function(n){var r=this;tp(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var l=Ql(r.currentObservers),u=l.next();!u.done;u=l.next()){var f=u.value;f.next(n)}}catch(d){i={error:d}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;tp(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;tp(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,l=i.isStopped,u=i.observers;return o||l?lR:(this.currentObservers=null,u.push(n),new If(function(){r.currentObservers=null,Ep(u,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,l=r.isStopped;i?n.error(o):l&&n.complete()},t.prototype.asObservable=function(){var n=new _t;return n.source=this,n},t.create=function(n,r){return new CC(n,r)},t})(_t),CC=(function(e){Ur(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:lR},t})(yu),O8=(function(e){Ur(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,o=n._value;if(r)throw i;return this._throwIfClosed(),o},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t})(yu),Nw={now:function(){return(Nw.delegate||Date).now()},delegate:void 0},fR=(function(e){Ur(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=Nw);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,l=r._infiniteTimeWindow,u=r._timestampProvider,f=r._windowTime;i||(o.push(n),!l&&o.push(u.now()+f)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,l=i._buffer,u=l.slice(),f=0;f<u.length&&!n.closed;f+=o?1:2)n.next(u[f]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,l=n._infiniteTimeWindow,u=(l?1:2)*r;if(r<1/0&&u<o.length&&o.splice(0,o.length-u),!l){for(var f=i.now(),d=0,p=1;p<o.length&&o[p]<=f;p+=2)d=p;d&&o.splice(0,d+1)}},t})(yu),A8=(function(e){Ur(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t})(If),kC={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,Jl([e,t],Zl(n)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},dR=(function(e){Ur(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return t.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var o=this.id,l=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(l,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(l,this.id,r),this},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),kC.setInterval(n.flush.bind(n,this),i)},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&kC.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var i=!1,o;try{this.work(n)}catch(l){i=!0,o=l||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ep(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(A8),T8=1,h0,Vx={};function jC(e){return e in Vx?(delete Vx[e],!0):!1}var hR={setImmediate:function(e){var t=T8++;return Vx[t]=!0,h0||(h0=Promise.resolve()),h0.then(function(){return jC(t)&&e()}),t},clearImmediate:function(e){jC(e)}},_8=hR.setImmediate,C8=hR.clearImmediate,NC={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _8.apply(void 0,Jl([],Zl(e)))},clearImmediate:function(e){return C8(e)},delegate:void 0},k8=(function(e){Ur(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=NC.setImmediate(n.flush.bind(n,void 0))))},t.prototype.recycleAsyncId=function(n,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,i);var l=n.actions;r!=null&&((o=l[l.length-1])===null||o===void 0?void 0:o.id)!==r&&(NC.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},t})(dR),MC=(function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=Nw.now,e})(),pR=(function(e){Ur(t,e);function t(n,r){r===void 0&&(r=MC.now);var i=e.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},t})(MC),j8=(function(e){Ur(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;n=n||i.shift();do if(o=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw o}},t})(pR),N8=new j8(k8),M8=new pR(dR),P8=M8,df=new _t(function(e){return e.complete()});function D8(e){return e&&It(e.schedule)}function R8(e){return e[e.length-1]}function mR(e){return D8(R8(e))?e.pop():void 0}var yR=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function vR(e){return It(e==null?void 0:e.then)}function gR(e){return It(e[jw])}function bR(e){return Symbol.asyncIterator&&It(e==null?void 0:e[Symbol.asyncIterator])}function xR(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function I8(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var wR=I8();function SR(e){return It(e==null?void 0:e[wR])}function ER(e){return f8(this,arguments,function(){var n,r,i,o;return sR(this,function(l){switch(l.label){case 0:n=e.getReader(),l.label=1;case 1:l.trys.push([1,,9,10]),l.label=2;case 2:return[4,$l(n.read())];case 3:return r=l.sent(),i=r.value,o=r.done,o?[4,$l(void 0)]:[3,5];case 4:return[2,l.sent()];case 5:return[4,$l(i)];case 6:return[4,l.sent()];case 7:return l.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function OR(e){return It(e==null?void 0:e.getReader)}function yo(e){if(e instanceof _t)return e;if(e!=null){if(gR(e))return L8(e);if(yR(e))return z8(e);if(vR(e))return B8(e);if(bR(e))return AR(e);if(SR(e))return V8(e);if(OR(e))return U8(e)}throw xR(e)}function L8(e){return new _t(function(t){var n=e[jw]();if(It(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function z8(e){return new _t(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function B8(e){return new _t(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,cR)})}function V8(e){return new _t(function(t){var n,r;try{for(var i=Ql(e),o=i.next();!o.done;o=i.next()){var l=o.value;if(t.next(l),t.closed)return}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function AR(e){return new _t(function(t){F8(e,t).catch(function(n){return t.error(n)})})}function U8(e){return AR(ER(e))}function F8(e,t){var n,r,i,o;return c8(this,void 0,void 0,function(){var l,u;return sR(this,function(f){switch(f.label){case 0:f.trys.push([0,5,6,11]),n=d8(e),f.label=1;case 1:return[4,n.next()];case 2:if(r=f.sent(),!!r.done)return[3,4];if(l=r.value,t.next(l),t.closed)return[2];f.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=f.sent(),i={error:u},[3,11];case 6:return f.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:f.sent(),f.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function ls(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Mw(e,t){return t===void 0&&(t=0),ri(function(n,r){n.subscribe(oa(r,function(i){return ls(r,e,function(){return r.next(i)},t)},function(){return ls(r,e,function(){return r.complete()},t)},function(i){return ls(r,e,function(){return r.error(i)},t)}))})}function TR(e,t){return t===void 0&&(t=0),ri(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function q8(e,t){return yo(e).pipe(TR(t),Mw(t))}function $8(e,t){return yo(e).pipe(TR(t),Mw(t))}function H8(e,t){return new _t(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function G8(e,t){return new _t(function(n){var r;return ls(n,t,function(){r=e[wR](),ls(n,t,function(){var i,o,l;try{i=r.next(),o=i.value,l=i.done}catch(u){n.error(u);return}l?n.complete():n.next(o)},0,!0)}),function(){return It(r==null?void 0:r.return)&&r.return()}})}function _R(e,t){if(!e)throw new Error("Iterable cannot be null");return new _t(function(n){ls(n,t,function(){var r=e[Symbol.asyncIterator]();ls(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function K8(e,t){return _R(ER(e),t)}function Y8(e,t){if(e!=null){if(gR(e))return q8(e,t);if(yR(e))return H8(e,t);if(vR(e))return $8(e,t);if(bR(e))return _R(e,t);if(SR(e))return G8(e,t);if(OR(e))return K8(e,t)}throw xR(e)}function es(e,t){return t?Y8(e,t):yo(e)}function Yo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=mR(e);return es(e,n)}function CR(e,t){var n=It(e)?e:function(){return e},r=function(i){return i.error(n())};return new _t(r)}var PC;(function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"})(PC||(PC={}));var p0=(function(){function e(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}return e.prototype.observe=function(t){return W8(this,t)},e.prototype.do=function(t,n,r){var i=this,o=i.kind,l=i.value,u=i.error;return o==="N"?t==null?void 0:t(l):o==="E"?n==null?void 0:n(u):r==null?void 0:r()},e.prototype.accept=function(t,n,r){var i;return It((i=t)===null||i===void 0?void 0:i.next)?this.observe(t):this.do(t,n,r)},e.prototype.toObservable=function(){var t=this,n=t.kind,r=t.value,i=t.error,o=n==="N"?Yo(r):n==="E"?CR(function(){return i}):n==="C"?df:0;if(!o)throw new TypeError("Unexpected notification kind "+n);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e})();function W8(e,t){var n,r,i,o=e,l=o.kind,u=o.value,f=o.error;if(typeof l!="string")throw new TypeError('Invalid notification, missing "kind"');l==="N"?(n=t.next)===null||n===void 0||n.call(t,u):l==="E"?(r=t.error)===null||r===void 0||r.call(t,f):(i=t.complete)===null||i===void 0||i.call(t)}var X8=Cw(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Q8(e,t){var n=typeof t=="object";return new Promise(function(r,i){var o=!1,l;e.subscribe({next:function(u){l=u,o=!0},error:i,complete:function(){o?r(l):n?r(t.defaultValue):i(new X8)}})})}function Z8(e){return e instanceof Date&&!isNaN(e)}function ro(e,t){return ri(function(n,r){var i=0;n.subscribe(oa(r,function(o){r.next(e.call(t,o,i++))}))})}function J8(e,t,n,r,i,o,l,u){var f=[],d=0,p=0,m=!1,y=function(){m&&!f.length&&!d&&t.complete()},g=function(w){return d<r?x(w):f.push(w)},x=function(w){d++;var S=!1;yo(n(w,p++)).subscribe(oa(t,function(O){t.next(O)},function(){S=!0},void 0,function(){if(S)try{d--;for(var O=function(){var _=f.shift();l||x(_)};f.length&&d<r;)O();y()}catch(_){t.error(_)}}))};return e.subscribe(oa(t,g,function(){m=!0,y()})),function(){}}function Ml(e,t,n){return n===void 0&&(n=1/0),It(t)?Ml(function(r,i){return ro(function(o,l){return t(r,o,i,l)})(yo(e(r,i)))},n):(typeof t=="number"&&(n=t),ri(function(r,i){return J8(r,i,e,n)}))}function eq(e){return Ml(Bm,e)}function tq(){return eq(1)}function m0(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tq()(es(e,mR(e)))}function nq(e,t,n){return n===void 0&&(n=P8),new _t(function(r){var i=Z8(e)?+e-n.now():e;i<0&&(i=0);var o=0;return n.schedule(function(){r.closed||(r.next(o++),r.complete())},i)})}function kR(e,t){return ri(function(n,r){var i=0;n.subscribe(oa(r,function(o){return e.call(t,o,i++)&&r.next(o)}))})}function np(e){return ri(function(t,n){var r=null,i=!1,o;r=t.subscribe(oa(n,void 0,void 0,function(l){o=yo(e(l,np(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function rq(e,t){return t===void 0&&(t=Bm),e=e??iq,ri(function(n,r){var i,o=!0;n.subscribe(oa(r,function(l){var u=t(l);(o||!e(i,u))&&(o=!1,i=u,r.next(l))}))})}function iq(e,t){return e===t}function aq(e){return ri(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function oq(){return ri(function(e,t){e.subscribe(oa(t,function(n){t.next(p0.createNext(n))},function(){t.next(p0.createComplete()),t.complete()},function(n){t.next(p0.createError(n)),t.complete()}))})}function hf(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new yu}:t,r=e.resetOnError,i=r===void 0?!0:r,o=e.resetOnComplete,l=o===void 0?!0:o,u=e.resetOnRefCountZero,f=u===void 0?!0:u;return function(d){var p,m,y,g=0,x=!1,w=!1,S=function(){m==null||m.unsubscribe(),m=void 0},O=function(){S(),p=y=void 0,x=w=!1},_=function(){var C=p;O(),C==null||C.unsubscribe()};return ri(function(C,k){g++,!w&&!x&&S();var N=y=y??n();k.add(function(){g--,g===0&&!w&&!x&&(m=y0(_,f))}),N.subscribe(k),!p&&g>0&&(p=new ff({next:function(M){return N.next(M)},error:function(M){w=!0,S(),m=y0(O,i,M),N.error(M)},complete:function(){x=!0,S(),m=y0(O,l),N.complete()}}),yo(C).subscribe(p))})(d)}}function y0(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var i=new ff({next:function(){i.unsubscribe(),e()}});return yo(t.apply(void 0,Jl([],Zl(n)))).subscribe(i)}}function Pw(e,t,n){var r,i,o,l,u=!1;return e&&typeof e=="object"?(r=e.bufferSize,l=r===void 0?1/0:r,i=e.windowTime,t=i===void 0?1/0:i,o=e.refCount,u=o===void 0?!1:o,n=e.scheduler):l=e??1/0,hf({connector:function(){return new fR(l,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}function pf(e,t,n){var r=It(e)||t||n?{next:e,error:t,complete:n}:e;return r?ri(function(i,o){var l;(l=r.subscribe)===null||l===void 0||l.call(r);var u=!0;i.subscribe(oa(o,function(f){var d;(d=r.next)===null||d===void 0||d.call(r,f),o.next(f)},function(){var f;u=!1,(f=r.complete)===null||f===void 0||f.call(r),o.complete()},function(f){var d;u=!1,(d=r.error)===null||d===void 0||d.call(r,f),o.error(f)},function(){var f,d;u&&((f=r.unsubscribe)===null||f===void 0||f.call(r)),(d=r.finalize)===null||d===void 0||d.call(r)}))}):Bm}function eu(e,t,n,r){if(n.kind===pe.INT||n.kind===pe.FLOAT)e[t.value]=Number(n.value);else if(n.kind===pe.BOOLEAN||n.kind===pe.STRING)e[t.value]=n.value;else if(n.kind===pe.OBJECT){const i={};n.fields.map(o=>eu(i,o.name,o.value,r)),e[t.value]=i}else if(n.kind===pe.VARIABLE){const i=(r||{})[n.name.value];e[t.value]=i}else if(n.kind===pe.LIST)e[t.value]=n.values.map(i=>{const o={};return eu(o,t,i,r),o[t.value]});else if(n.kind===pe.ENUM)e[t.value]=n.value;else if(n.kind===pe.NULL)e[t.value]=null;else throw Br(19,t.value,n.kind)}function Dw(e,t){if(e.arguments&&e.arguments.length){const n={};return e.arguments.forEach(({name:r,value:i})=>eu(n,r,i,t)),n}return null}const jR=typeof Xr(()=>window.document.createElement)=="function",sq=Symbol.for("apollo.cacheSize"),sa={...Mx[sq]};function tu(e,t){var n;return((n=e.definitions.find(r=>r.kind==="OperationDefinition"&&!!r.name))==null?void 0:n.name.value)??t}const lq=()=>Object.create(null),{forEach:uq,slice:DC}=Array.prototype,{hasOwnProperty:cq}=Object.prototype;class Ci{constructor(t=!0,n=lq){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return uq.call(t,r=>n=n.getChildTrie(r)),cq.call(n,"data")?n.data:n.data=this.makeData(DC.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r<i;++r){const o=n.mapFor(t[r],!1);n=o&&o.get(t[r])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(t){let n;if(t.length){const r=t[0],i=this.mapFor(r,!1),o=i&&i.get(r);o&&(n=o.removeArray(DC.call(t,1)),!o.data&&!o.weak&&!(o.strong&&o.strong.size)&&i.delete(r))}else n=this.data,delete this.data;return n}getChildTrie(t){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new Ci(this.weakness,this.makeData)),r}mapFor(t,n){return this.weakness&&fq(t)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}function fq(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}function dq(){}class Ux{constructor(t=1/0,n=dq){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function Fx(){}const hq=Fx,pq=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},mq=typeof WeakMap<"u"?WeakMap:Map,yq=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Fx,unregister:Fx}},vq=10024;class Op{constructor(t=1/0,n=hq){this.max=t,this.dispose=n,this.map=new mq,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let i=0;i<vq;i++){const o=r.next().value;if(!o)break;this.unfinalizedNodes.delete(o);const l=o.key;delete o.key,o.keyRef=new pq(l),this.registry.register(l,o,o)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new yq(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}const v0=new WeakSet;function NR(e){e.size<=(e.max||-1)||v0.has(e)||(v0.add(e),setTimeout(()=>{e.clean(),v0.delete(e)},100))}const Rw=function(e,t){const n=new Op(e,t);return n.set=function(r,i){const o=Op.prototype.set.call(this,r,i);return NR(this),o},n},gq=function(e,t){const n=new Ux(e,t);return n.set=function(r,i){const o=Ux.prototype.set.call(this,r,i);return NR(this),o},n};function MR(e,{max:t,makeCacheKey:n=r=>r}){const r=new Ci(!0),i=new Rw(t);return(...o)=>{const l=r.lookupArray(n(o)),u=i.get(l);if(u){if(u.error)throw u.error;return u.result}const f=i.set(l,{});try{return f.result=e(...o)}catch(d){throw f.error=d,d}}}const oo=MR((e,t)=>{ze(e&&e.kind==="Document",1);const n=e.definitions.filter(r=>r.kind==="OperationDefinition");t&&ze(n.length==1&&n[0].operation===t,4,t,t,n[0].operation),Si(e,{Field(r,i,o,l){var u;if(r.alias&&(r.alias.value==="__typename"||r.alias.value.startsWith("__ac_"))&&r.alias.value!==r.name.value){let f=e,d=[];for(const p of l)f=f[p],f.kind===pe.FIELD&&d.push(((u=f.alias)==null?void 0:u.value)||f.name.value);throw d.splice(-1,1,r.name.value),Br(5,r.alias.value,d.join("."),n[0].operation,tu(e,"(anonymous)"))}}})},{max:sa.checkDocument||2e3});function bq(e){return e.length===0?df:new _t(t=>{const{length:n}=e,r=new Array(n),i=new Map;e.forEach((f,d)=>{i.has(f)||i.set(f,new Set),i.get(f).add(d)});let o=i.size,l=i.size,u;i.forEach((f,d)=>{let p=!1;const m=d.subscribe({next:y=>{f.forEach(g=>r[g]=y),p||(p=!0,l--),l||(u||(u=new Set(e.filter(g=>g.dirty))),u.delete(d),u.size||(t.next(r.slice()),u=void 0))},complete:()=>{o--,o||t.complete()},error:t.error.bind(t)});t.add(m)})})}function cr(...e){const t={};return e.forEach(n=>{n&&Reflect.ownKeys(n).forEach(r=>{const i=n[r];i!==void 0&&(t[r]=i)})}),t}function Lf(e=[]){const t={};return e.forEach(n=>{t[n.name.value]=n}),t}function Nn(e){return e!==null&&typeof e=="object"}const{hasOwnProperty:xq}=Object.prototype,wq=function(e,t,n){return this.merge(e[n],t[n])},RC=e=>isNaN(+e)?{}:[];class nu{constructor(t={}){X(this,"options");X(this,"reconciler");X(this,"isObject",Nn);X(this,"pastCopies",new Set);this.options=t,this.reconciler=t.reconciler||wq}merge(t,n,r={}){const i=r.atPath;if(i!=null&&i.length){const[o,...l]=i;t===void 0&&(t=RC(o));let u=t[o];u===void 0&&l.length&&(u=RC(l[0]));const f=this.merge(u,n,{...r,atPath:l});return u!==f&&(t=this.shallowCopyForMerge(t),t[o]=f),t}return Array.isArray(t)&&Array.isArray(n)&&this.options.arrayMerge==="truncate"&&t.length>n.length&&(t=t.slice(0,n.length),this.pastCopies.add(t)),Nn(n)&&Nn(t)?(Object.keys(n).forEach(o=>{if(xq.call(t,o)){const l=t[o];if(n[o]!==l){const u=this.reconciler(t,n,o);u!==l&&(t=this.shallowCopyForMerge(t),t[o]=u)}}else t=this.shallowCopyForMerge(t),t[o]=n[o]}),t):n}shallowCopyForMerge(t){return Nn(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t={__proto__:Object.getPrototypeOf(t),...t},this.pastCopies.add(t))),t}}function Iw(e){const t={},n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(r=>{r.defaultValue&&eu(t,r.variable.name,r.defaultValue)}),t}function Vm(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{const n=e.name.value;if(typeof t=="function")return t(n);const r=t&&t[n];return ze(r,9,n),r||null}default:return null}}function Sq(e,t){let n=t;const r=[];return e.definitions.forEach(o=>{if(o.kind==="OperationDefinition")throw Br(10,o.operation,o.name?` named '${o.name.value}'`:"");o.kind==="FragmentDefinition"&&r.push(o)}),typeof n>"u"&&(ze(r.length===1,11,r.length),n=r[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}},...e.definitions]}}function Eq(e){ze(e.kind==="Document",6),ze(e.definitions.length<=1,7);const t=e.definitions[0];return ze(t.kind==="FragmentDefinition",8),t}function zf(e){return e.definitions.filter(t=>t.kind==="FragmentDefinition")}function Lw(e){oo(e);let t;for(let n of e.definitions){if(n.kind==="OperationDefinition")return n;n.kind==="FragmentDefinition"&&!t&&(t=n)}if(t)return t;throw Br(12)}function la(e){return oo(e),e.definitions.filter(t=>t.kind==="OperationDefinition")[0]}function Oq(e){const t=la(e);return ze(t&&t.operation==="query",13),t}const ra=Object.assign(function(t){return JSON.stringify(t,Aq)},{reset(){Hc=new gq(sa.canonicalStringify||1e3)}});let Hc;ra.reset();function Aq(e,t){if(t&&typeof t=="object"){const n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){const r=Object.keys(t);if(r.every(Tq))return t;const i=JSON.stringify(r);let o=Hc.get(i);if(!o){r.sort();const u=JSON.stringify(r);o=Hc.get(u)||r,Hc.set(i,o),Hc.set(u,o)}const l=Object.create(n);return o.forEach(u=>{l[u]=t[u]}),l}}return t}function Tq(e,t,n){return t===0||n[t-1]<=e}const _q=["connection","include","skip","client","rest","export","nonreactive","stream"];let Ac=ra;const PR=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){const i=n.connection.filter?n.connection.filter:[];i.sort();const o={};i.forEach(u=>{o[u]=t[u]});const l=Ac(o);if(l!=="{}")return`${n.connection.key}(${l})`}return n.connection.key}let r=e;if(t){const i=Ac(t);i!=="{}"&&(r+=`(${i})`)}return n&&Object.keys(n).forEach(i=>{_q.indexOf(i)===-1&&(n[i]&&Object.keys(n[i]).length?r+=`@${i}(${Ac(n[i])})`:r+=`@${i}`)}),r},{setStringify(e){const t=Ac;return Ac=e,t}});function Pl(e){var t;return!!((t=e.errors)!=null&&t.length)}function Dl(e,t,n){const r=new Set(e),i=r.size;return Si(t,{Directive(o){if(r.delete(o.name.value)&&(!n||!r.size))return _w}}),n?!r.size:r.size<i}function Cq(e){let t=!1;return Si(e,{Directive:{enter(n){if(n.name.value==="client"&&n.arguments&&(t=n.arguments.some(r=>r.name.value==="always"&&r.value.kind==="BooleanValue"&&r.value.value===!0),t))return _w}}}),t}const rn=Array.isArray;function kq(e){return Nn(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function Bf(e){return e.kind==="Field"}function zw(e){return Array.isArray(e)&&e.length>0}function Hl(e){return{__ref:String(e)}}function jq(e){let t=e[0]||{};const n=e.length;if(n>1){const r=new nu;for(let i=1;i<n;++i)t=r.merge(t,e[i])}return t}function us(e,t){return cr(e,t,t.variables&&{variables:cr({...e&&e.variables,...t.variables})})}function qx(e){return e.catch(()=>{}),e}function Nq(e,t){oo(t);const n=IC(""),r=IC(""),i=S=>{for(let O=0,_;O<S.length&&(_=S[O]);++O)if(!rn(_)){if(_.kind===pe.OPERATION_DEFINITION)return n(_.name&&_.name.value);if(_.kind===pe.FRAGMENT_DEFINITION)return r(_.name.value)}return ze.error(14),null};let o=0;for(let S=t.definitions.length-1;S>=0;--S)t.definitions[S].kind===pe.OPERATION_DEFINITION&&++o;const l=Mq(e),u=S=>zw(S)&&S.map(l).some(O=>O&&O.remove),f=new Map;let d=!1;const p={enter(S){if(u(S.directives))return d=!0,null}},m=Si(t,{Field:p,InlineFragment:p,VariableDefinition:{enter(){return!1}},Variable:{enter(S,O,_,C,k){const N=i(k);N&&N.variables.add(S.name.value)}},FragmentSpread:{enter(S,O,_,C,k){if(u(S.directives))return d=!0,null;const N=i(k);N&&N.fragmentSpreads.add(S.name.value)}},FragmentDefinition:{enter(S,O,_,C){f.set(JSON.stringify(C),S)},leave(S,O,_,C){const k=f.get(JSON.stringify(C));if(S===k)return S;if(o>0&&S.selectionSet.selections.every(N=>N.kind===pe.FIELD&&N.name.value==="__typename"))return r(S.name.value).removed=!0,d=!0,null}},Directive:{leave(S){if(l(S))return d=!0,null}}});if(!d)return t;const y=S=>(S.transitiveVars||(S.transitiveVars=new Set(S.variables),S.removed||S.fragmentSpreads.forEach(O=>{y(r(O)).transitiveVars.forEach(_=>{S.transitiveVars.add(_)})})),S),g=new Set;m.definitions.forEach(S=>{S.kind===pe.OPERATION_DEFINITION?y(n(S.name&&S.name.value)).fragmentSpreads.forEach(O=>{g.add(O)}):S.kind===pe.FRAGMENT_DEFINITION&&o===0&&!r(S.name.value).removed&&g.add(S.name.value)}),g.forEach(S=>{y(r(S)).fragmentSpreads.forEach(O=>{g.add(O)})});const x=S=>!!(!g.has(S)||r(S).removed),w={enter(S){if(x(S.name.value))return null}};return Pq(Si(m,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave(S){if(S.variableDefinitions){const O=y(n(S.name&&S.name.value)).transitiveVars;if(O.size<S.variableDefinitions.length)return{...S,variableDefinitions:S.variableDefinitions.filter(_=>O.has(_.variable.name.value))}}}}}))}function IC(e){const t=new Map;return function(r=e){let i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function Mq(e){const t=new Map,n=new Map;return e.forEach(r=>{r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),r=>{let i=t.get(r.name.value);return!i&&n.size&&n.forEach((o,l)=>{l(r)&&(i=o)}),i}}function DR(e,t){return!e||e.selectionSet.selections.every(n=>n.kind===pe.FRAGMENT_SPREAD&&DR(t[n.name.value],t))}function Pq(e){return DR(la(e)||Eq(e),Lf(zf(e)))?null:e}function Dq(e){return Si(e,{FragmentSpread(t){var n;if(!((n=t.directives)!=null&&n.some(({name:r})=>r.value==="unmask")))return null}})}function vu(e){return e.alias?e.alias.value:e.name.value}function Um({directives:e},t){return!e||!e.length?!0:Iq(e).every(({directive:n,ifArgument:r})=>{let i=!1;return r.value.kind==="Variable"?(i=t&&t[r.value.name.value],ze(i!==void 0,15,n.name.value)):i=r.value.value,n.name.value==="skip"?!i:i})}function Rq({name:{value:e}}){return e==="skip"||e==="include"}function Iq(e){const t=[];return e&&e.length&&e.forEach(n=>{if(!Rq(n))return;const r=n.arguments,i=n.name.value;ze(r&&r.length===1,16,i);const o=r[0];ze(o.name&&o.name.value==="if",17,i);const l=o.value;ze(l&&(l.kind==="Variable"||l.kind==="BooleanValue"),18,i),t.push({directive:n,ifArgument:o})}),t}function Lq(e,t){let n=null;e.directives&&(n={},e.directives.forEach(i=>{n[i.name.value]={},i.arguments&&i.arguments.forEach(({name:o,value:l})=>eu(n[i.name.value],o,l,t))}));let r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(({name:i,value:o})=>eu(r,i,o,t))),PR(e.name.value,r,n)}function Gc(e){const t={data:e.data};return e.error&&(t.error=e.error),t}function $x(e,t=()=>{}){return n=>new _t(r=>{let i=t();return n.subscribe({next(o){let l;try{l=e(o,i)}catch(u){r.error(u)}l!==void 0&&r.next(l)},error(o){r.error(o)},complete(){r.complete()}})})}function RR(e,{data:t,...n},{data:r,...i},o){return We(n,i)&&rp(Lw(e).selectionSet,t,r,{fragmentMap:Lf(zf(e)),variables:o})}function rp(e,t,n,r){if(t===n)return!0;const i=new Set;return e.selections.every(o=>{if(i.has(o)||(i.add(o),!Um(o,r.variables))||LC(o))return!0;if(Bf(o)){const l=vu(o),u=t&&t[l],f=n&&n[l],d=o.selectionSet;if(!d)return We(u,f);const p=Array.isArray(u),m=Array.isArray(f);if(p!==m)return!1;if(p&&m){const y=u.length;if(f.length!==y)return!1;for(let g=0;g<y;++g)if(!rp(d,u[g],f[g],r))return!1;return!0}return rp(d,u,f,r)}else{const l=Vm(o,r.fragmentMap);if(l)return LC(l)?!0:rp(l.selectionSet,t,n,r)}})}function LC(e){return!!e.directives&&e.directives.some(zq)}function zq(e){return e.name.value==="nonreactive"}function Bq(e,t){let n,r;function i(o){return o!==n&&(n=o,r=t(n)),r}return Object.assign(e.pipe(ro(i),Pw({bufferSize:1,refCount:!0})),{getCurrentResult:()=>i(e.getCurrentResult())})}const Vq=MR(function(t,n,r){return Bq(t,r)},{max:1,makeCacheKey:e=>e.slice(0,2)}),IR=Symbol.for("apollo.result.extensions"),uo=Symbol.for("apollo.result.streamInfo"),LR=Symbol.for("apollo.observableQuery.variablesUnknown");let wn=null;const zC={};let Uq=1;const Fq=()=>class{constructor(){this.id=["slot",Uq++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=wn;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===zC)break;return t!==wn&&(wn.slots[this.id]=n),!0}return wn&&(wn.slots[this.id]=zC),!1}getValue(){if(this.hasValue())return wn.slots[this.id]}withValue(t,n,r,i){const o={__proto__:null,[this.id]:t},l=wn;wn={parent:l,slots:o};try{return n.apply(i,r)}finally{wn=l}}static bind(t){const n=wn;return function(){const r=wn;try{return wn=n,t.apply(this,arguments)}finally{wn=r}}}static noContext(t,n,r){if(wn){const i=wn;try{return wn=null,t.apply(r,n)}finally{wn=i}}else return t.apply(r,n)}};function BC(e){try{return e()}catch{}}const g0="@wry/context:Slot",qq=BC(()=>globalThis)||BC(()=>global)||Object.create(null),VC=qq,Fm=VC[g0]||Array[g0]||(function(e){try{Object.defineProperty(VC,g0,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}})(Fq()),{bind:tye,noContext:nye}=Fm,qm=new Fm,{hasOwnProperty:$q}=Object.prototype,Bw=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Vw(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const mf=[],Hq=100;function ru(e,t){if(!e)throw new Error(t||"assertion failure")}function zR(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function BR(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function VR(e){return e.slice(0)}class $m{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++$m.count}peek(){if(this.value.length===1&&!co(this))return UC(this),this.value[0]}recompute(t){return ru(!this.recomputing,"already recomputing"),UC(this),co(this)?Gq(this,t):BR(this.value)}setDirty(){this.dirty||(this.dirty=!0,UR(this),Vw(this))}dispose(){this.setDirty(),GR(this),Uw(this,(t,n)=>{t.setDirty(),KR(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=mf.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(Bw(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),mf.push(this.deps),this.deps=null)}}$m.count=0;function UC(e){const t=qm.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),co(e)?qR(t,e):$R(t,e),t}function Gq(e,t){return GR(e),qm.withValue(e,Kq,[e,t]),Wq(e,t)&&Yq(e),BR(e.value)}function Kq(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&e.value.length===1&&(r=VR(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!zR(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(i){e.value[1]=i}e.recomputing=!1}function co(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function Yq(e){e.dirty=!1,!co(e)&&FR(e)}function UR(e){Uw(e,qR)}function FR(e){Uw(e,$R)}function Uw(e,t){const n=e.parents.size;if(n){const r=Bw(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function qR(e,t){ru(e.childValues.has(t)),ru(co(t));const n=!co(e);if(!e.dirtyChildren)e.dirtyChildren=mf.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&UR(e)}function $R(e,t){ru(e.childValues.has(t)),ru(!co(t));const n=e.childValues.get(t);n.length===0?e.childValues.set(t,VR(t.value)):zR(n,t.value)||e.setDirty(),HR(e,t),!co(e)&&FR(e)}function HR(e,t){const n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&(mf.length<Hq&&mf.push(n),e.dirtyChildren=null))}function GR(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{KR(e,n)}),e.forgetDeps(),ru(e.dirtyChildren===null)}function KR(e,t){t.parents.delete(e),e.childValues.delete(t),HR(e,t)}function Wq(e,t){if(typeof e.subscribe=="function")try{Vw(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const Xq={setDirty:!0,dispose:!0,forget:!0};function YR(e){const t=new Map;function n(r){const i=qm.getValue();if(i){let o=t.get(r);o||t.set(r,o=new Set),i.dependOn(o)}}return n.dirty=function(i,o){const l=t.get(i);if(l){const u=o&&$q.call(Xq,o)?o:"setDirty";Bw(l).forEach(f=>f[u]()),t.delete(i),Vw(l)}},n}let FC;function WR(...e){return(FC||(FC=new Ci(typeof WeakMap=="function"))).lookupArray(e)}const b0=new Set;function yf(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=WR,normalizeResult:i,subscribe:o,cache:l=Ux}=Object.create(null)){const u=typeof l=="function"?new l(t,y=>y.dispose()):l,f=function(){const y=r.apply(null,n?n.apply(null,arguments):arguments);if(y===void 0)return e.apply(null,arguments);let g=u.get(y);g||(u.set(y,g=new $m(e)),g.normalizeResult=i,g.subscribe=o,g.forget=()=>u.delete(y));const x=g.recompute(Array.prototype.slice.call(arguments));return u.set(y,g),b0.add(u),qm.hasValue()||(b0.forEach(w=>w.clean()),b0.clear()),x};Object.defineProperty(f,"size",{get:()=>u.size,configurable:!1,enumerable:!1}),Object.freeze(f.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:u});function d(y){const g=y&&u.get(y);g&&g.setDirty()}f.dirtyKey=d,f.dirty=function(){d(r.apply(null,arguments))};function p(y){const g=y&&u.get(y);if(g)return g.peek()}f.peekKey=p,f.peek=function(){return p(r.apply(null,arguments))};function m(y){return y?u.delete(y):!1}return f.forgetKey=m,f.forget=function(){return m(r.apply(null,arguments))},f.makeCacheKey=r,f.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(f)}function Qq(...e){return WR.bind(null,...e)}class Zq{constructor(){X(this,"startRequest")}isIncrementalResult(t){return!1}prepareRequest(t){return ze(!Dl(["defer","stream"],t.query),67),t}extractErrors(){}}function Jq(e,{client:t}){const n={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:tu(e.query),operationType:la(e.query).operation};let r={...e.context};const i=l=>{typeof l=="function"?r={...r,...l(o())}:r={...r,...l}},o=()=>Object.freeze({...r});return Object.defineProperty(n,"setContext",{enumerable:!1,value:i}),Object.defineProperty(n,"getContext",{enumerable:!1,value:o}),Object.defineProperty(n,"client",{enumerable:!1,value:t}),n}function e$(e,t){const n={...e},r=new Set(Object.keys(e));return Si(t,{Variable(i,o,l){l&&l.kind!=="VariableDefinition"&&r.delete(i.name.value)}}),r.forEach(i=>{delete n[i]}),n}class zn{constructor(t){X(this,"left");X(this,"right");t&&(this.request=t)}static empty(){return new zn(()=>df)}static from(t){if(t.length===0)return zn.empty();const[n,...r]=t;return n.concat(...r)}static split(t,n,r=new zn((i,o)=>o(i))){const i=new zn((o,l)=>t(o)?n.request(o,l):r.request(o,l));return Object.assign(i,{left:n,right:r})}static execute(t,n,r){return t.request(Jq(n,r),()=>df)}static concat(...t){return zn.from(t)}split(t,n,r){return this.concat(zn.split(t,n,r))}concat(...t){return t.length===0?this:t.reduce(this.combine.bind(this),this)}combine(t,n){const r=new zn((i,o)=>t.request(i,l=>n.request(l,o)));return Object.assign(r,{left:t,right:n})}request(t,n){throw Br(65)}}const t$=zn.split,Hx=zn.execute;function n$(e){return e}class Ji{constructor(t,n={}){X(this,"transform");X(this,"cached");X(this,"resultCache",new WeakSet);X(this,"left");X(this,"right");this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}getCacheKey(t){return[t]}static identity(){return new Ji(n$,{cache:!1})}static split(t,n,r=Ji.identity()){return Object.assign(new Ji(i=>(t(i)?n:r).transformDocument(i),{cache:!1}),{left:n,right:r})}resetCache(){if(this.cached){const t=new Ci;this.performWork=yf(Ji.prototype.performWork.bind(this),{makeCacheKey:n=>{const r=this.getCacheKey(n);if(r)return ze(Array.isArray(r),20),t.lookupArray(r)},max:sa["documentTransform.cache"],cache:Op})}}performWork(t){return oo(t),this.transform(t)}transformDocument(t){if(this.resultCache.has(t))return t;const n=this.performWork(t);return this.resultCache.add(n),n}concat(t){return Object.assign(new Ji(n=>t.transformDocument(this.transformDocument(n)),{cache:!1}),{left:this,right:t})}}let x0;const cs=Object.assign(e=>{let t=x0.get(e);return t||(t=s8(e),x0.set(e,t)),t},{reset(){x0=new Rw(sa.print||2e3)}});cs.reset();function xt(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}const qC={kind:pe.FIELD,name:{kind:pe.NAME,value:"__typename"}},XR=Object.assign(function(e){return Si(e,{SelectionSet:{enter(t,n,r){if(r&&r.kind===pe.OPERATION_DEFINITION)return;const{selections:i}=t;if(!i||i.some(u=>u.kind===pe.FIELD&&(u.name.value==="__typename"||u.name.value.lastIndexOf("__",0)===0)))return;const l=r;if(!(l.kind===pe.FIELD&&l.directives&&l.directives.some(u=>u.name.value==="export")))return{...t,selections:[...i,qC]}}}})},{added(e){return e===qC}});function QR(e,t){var n;return((n=la(e))==null?void 0:n.operation)===t}function r$(e){return QR(e,"mutation")}function i$(e){return QR(e,"subscription")}function ZR(e){return e===7||e===8}function ip(e){return!ZR(e)}class a${constructor(){X(this,"assumeImmutableResults",!1);X(this,"fragmentWatches",new Ci(!0));X(this,"onAfterBroadcast",t=>t());X(this,"getFragmentDoc",yf(Sq,{max:sa["cache.fragmentQueryDocuments"]||1e3,cache:Op,makeCacheKey:Qq(this)}))}lookupFragment(t){return null}batch(t){const n=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0;let r;return this.performTransaction(()=>r=t.update(this),n),r}recordOptimisticTransaction(t,n){this.performTransaction(t,n)}transformDocument(t){return t}transformForLink(t){return t}identify(t){}gc(){return[]}modify(t){return!1}readQuery(t,n=!!t.optimistic){return this.read({...t,rootId:t.id||"ROOT_QUERY",optimistic:n})}watchFragment(t){const{fragment:n,fragmentName:r,from:i}=t,o=this.getFragmentDoc(n,r),u=(Array.isArray(i)?i:[i]).map(g=>g==null?g:this.toCacheId(g));if(!Array.isArray(i)){const g=this.watchSingleFragment(u[0],o,t);return i===null?g:Vq(g,Symbol.for("apollo.transform.individualResult"),x=>({...x,data:x.data??{}}))}let f;function d(g){const x=g.reduce((w,S,O)=>(w.data.push(S.data),w.complete&&(w.complete=S.complete),w.dataState=w.complete?"complete":"partial",S.missing&&(w.missing||(w.missing={}),w.missing[O]=S.missing),w),{data:[],dataState:"complete",complete:!0});return We(f,x)||(f=x),f}if(u.length===0)return s$;let p=!1;const m=u.map(g=>this.watchSingleFragment(g,o,t)),y=bq(m).pipe(ro(d),pf({subscribe:()=>p=!0,unsubscribe:()=>p=!1}),Pw({bufferSize:1,refCount:!0}));return Object.assign(y,{getCurrentResult:()=>{if(p&&f)return f;const g=m.map(x=>x.getCurrentResult());return d(g)}})}watchSingleFragment(t,n,r){if(t===null)return o$;const{optimistic:i=!0,variables:o}=r,l=[n,ra({id:t,optimistic:i,variables:o})],u=this.fragmentWatches.lookupArray(l);if(!u.observable){let m=function(g){const x=g.result;return(!p||!RR(n,{data:p.data},{data:x},r.variables))&&(p={data:x,dataState:g.complete?"complete":"partial",complete:g.complete},g.missing&&(p.missing=g.missing.missing)),p};var f=m;let d=!1,p;const y=new _t(g=>{d=!0;const x=this.watch({variables:o,returnPartialData:!0,id:t,query:n,optimistic:i,immediate:!0,callback:w=>{y.dirty=!0,this.onAfterBroadcast(()=>{g.next(m(w)),y.dirty=!1})}});return()=>{d=!1,x(),this.fragmentWatches.removeArray(l)}}).pipe(rq(),hf({connector:()=>new fR(1),resetOnRefCountZero:()=>nq(0)}));u.observable=Object.assign(y,{dirty:!1,getCurrentResult:()=>d&&p?p:m(this.diff({id:t,query:n,returnPartialData:!0,optimistic:i,variables:o}))})}return u.observable}readFragment(t,n=!!t.optimistic){const r=t.from!==void 0?this.toCacheId(t.from):t.id;return this.read({...t,query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:r,optimistic:n})}writeQuery({id:t,data:n,...r}){return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))}writeFragment({data:t,fragment:n,fragmentName:r,...i}){const o=i.from!==void 0?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(n,r),dataId:o,result:t}))}updateQuery(t,n){return this.batch({update(r){const i=r.readQuery(t),o=n(i);return o==null?i:(r.writeQuery({...t,data:o}),o)}})}updateFragment(t,n){return this.batch({update(r){const i=r.readFragment(t),o=n(i);return o==null?i:(r.writeFragment({...t,data:o}),o)}})}toCacheId(t){return typeof t=="string"?t:this.identify(t)}}const $C=Object.freeze({data:null,dataState:"complete",complete:!0}),o$=Object.assign(new _t(e=>{e.next($C)}),{dirty:!1,getCurrentResult:()=>$C}),HC=Object.freeze({data:[],dataState:"complete",complete:!0}),s$=Object.assign(new _t(e=>{e.next(HC)}),{getCurrentResult:()=>HC});class Fw extends Error{constructor(n,r,i,o){super(n);X(this,"message");X(this,"path");X(this,"query");X(this,"variables");X(this,"missing");if(this.message=n,this.path=r,this.query=i,this.variables=o,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let l=this.path.length-1;l>=0;--l)this.missing={[this.path[l]]:this.missing}}else this.missing=this.path;this.__proto__=Fw.prototype}}const{hasOwnProperty:un}=Object.prototype;function JR({__typename:e,id:t,_id:n},r){if(typeof e=="string"&&(r&&(r.keyObject=t!=null?{id:t}:n!=null?{_id:n}:void 0),t==null&&n!=null&&(t=n),t!=null))return`${e}:${typeof t=="number"||typeof t=="string"?t:JSON.stringify(t)}`}const l$={dataIdFromObject:JR,resultCaching:!0};function u$(e){return cr(l$,e)}const eI=/^[_a-z][_0-9a-z]*/i;function iu(e){const t=e.match(eI);return t?t[0]:e}function Gx(e,t,n){return Nn(t)?rn(t)?t.every(r=>Gx(e,r,n)):e.selections.every(r=>{if(Bf(r)&&Um(r,n)){const i=vu(r);return un.call(t,i)&&(!r.selectionSet||Gx(r.selectionSet,t[i],n))}return!0}):!1}function Rl(e){return Nn(e)&&!xt(e)&&!rn(e)}function c$(){return new nu}function tI(e,t){const n=Lf(zf(e));return{fragmentMap:n,lookupFragment(r){let i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}const ap={},w0=()=>ap,GC={};class Hm{constructor(t,n){X(this,"policies");X(this,"group");X(this,"data",{});X(this,"rootIds",{});X(this,"refs",{});X(this,"getFieldValue",(t,n)=>xt(t)?this.get(t.__ref,n):t&&t[n]);X(this,"canRead",t=>xt(t)?this.has(t.__ref):typeof t=="object");X(this,"toReference",(t,n)=>{if(typeof t=="string")return Hl(t);if(xt(t))return t;const[r]=this.policies.identify(t);if(r){const i=Hl(r);return n&&this.merge(r,t),i}});this.policies=t,this.group=n}toObject(){return{...this.data}}has(t){return this.lookup(t,!0)!==void 0}get(t,n){if(this.group.depend(t,n),un.call(this.data,t)){const r=this.data[t];if(r&&un.call(r,n))return r[n]}if(n==="__typename"&&un.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof Xa)return this.parent.get(t,n)}lookup(t,n){if(n&&this.group.depend(t,"__exists"),un.call(this.data,t))return this.data[t];if(this instanceof Xa)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return{}}merge(t,n){let r;xt(t)&&(t=t.__ref),xt(n)&&(n=n.__ref);const i=typeof t=="string"?this.lookup(r=t):t,o=typeof n=="string"?this.lookup(r=n):n;if(!o)return;ze(typeof r=="string",99);const l=new nu({reconciler:h$}).merge(i,o);if(this.data[r]=l,l!==i&&(delete this.refs[r],this.group.caching)){const u={};i||(u.__exists=1),Object.keys(o).forEach(f=>{if(!i||i[f]!==l[f]){u[f]=1;const d=iu(f);d!==f&&!this.policies.hasKeyArgs(l.__typename,d)&&(u[d]=1),l[f]===void 0&&!(this instanceof Xa)&&delete l[f]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===l.__typename&&delete u.__typename,Object.keys(u).forEach(f=>this.group.dirty(r,f))}}modify(t,n,r){const i=this.lookup(t);if(i){const o={};let l=!1,u=!0;const f={DELETE:ap,INVALIDATE:GC,isReference:xt,toReference:this.toReference,canRead:this.canRead,readField:(d,p)=>this.policies.readField(typeof d=="string"?{fieldName:d,from:p||Hl(t)}:d,{store:this})};if(Object.keys(i).forEach(d=>{const p=iu(d);let m=i[d];if(m===void 0)return;const y=typeof n=="function"?n:n[d]||(r?void 0:n[p]);if(y){let g=y===w0?ap:y(m,{...f,fieldName:p,storeFieldName:d,storage:this.getStorage(t,d)});g===GC?this.group.dirty(t,d):(g===ap&&(g=void 0),g!==m&&(o[d]=g,l=!0,m=g))}m!==void 0&&(u=!1)}),l)return this.merge(t,o),u&&(this instanceof Xa?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1}delete(t,n,r){const i=this.lookup(t);if(i){const o=this.getFieldValue(i,"__typename"),l=n&&r?this.policies.getStoreFieldName({typename:o,fieldName:n,args:r}):n;return this.modify(t,l?{[l]:w0}:w0,!!r)}return!1}evict(t,n){let r=!1;return t.id&&(un.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof Xa&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){const t=this.toObject(),n=[];return this.getRootIdSet().forEach(r=>{un.call(this.policies.rootTypenamesById,r)||n.push(r)}),n.length&&(t.__META={extraRootIds:n.sort()}),t}replace(t){if(Object.keys(this.data).forEach(n=>{t&&un.call(t,n)||this.delete(n)}),t){const{__META:n,...r}=t;Object.keys(r).forEach(i=>{this.merge(i,r[i])}),n&&n.extraRootIds.forEach(this.retain,this)}}retain(t){return this.rootIds[t]=(this.rootIds[t]||0)+1}release(t){if(this.rootIds[t]>0){const n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0}getRootIdSet(t=new Set){return Object.keys(this.rootIds).forEach(t.add,t),this instanceof Xa?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t}gc(){const t=this.getRootIdSet(),n=this.toObject();t.forEach(i=>{un.call(n,i)&&(Object.keys(this.findChildRefIds(i)).forEach(t.add,t),delete n[i])});const r=Object.keys(n);if(r.length){let i=this;for(;i instanceof Xa;)i=i.parent;r.forEach(o=>i.delete(o))}return r}findChildRefIds(t){if(!un.call(this.refs,t)){const n=this.refs[t]={},r=this.data[t];if(!r)return n;const i=new Set([r]);i.forEach(o=>{xt(o)&&(n[o.__ref]=!0),Nn(o)&&Object.keys(o).forEach(l=>{const u=o[l];Nn(u)&&i.add(u)})})}return this.refs[t]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}get supportsResultCaching(){return this.group.caching}}class nI{constructor(t,n=null){X(this,"caching");X(this,"parent");X(this,"d",null);X(this,"keyMaker");this.caching=t,this.parent=n,this.resetCaching()}resetCaching(){this.d=this.caching?YR():null,this.keyMaker=new Ci}depend(t,n){if(this.d){this.d(S0(t,n));const r=iu(n);r!==n&&this.d(S0(t,r)),this.parent&&this.parent.depend(t,n)}}dirty(t,n){this.d&&this.d.dirty(S0(t,n),n==="__exists"?"forget":"setDirty")}}function S0(e,t){return t+"#"+e}function KC(e,t){Jc(e)&&e.group.depend(t,"__exists")}class f$ extends Hm{constructor({policies:n,resultCaching:r=!0,seed:i}){super(n,new nI(r));X(this,"stump",new d$(this));X(this,"storageTrie",new Ci);i&&this.replace(i)}addLayer(n,r){return this.stump.addLayer(n,r)}removeLayer(){return this}getStorage(){return this.storageTrie.lookupArray(arguments)}}Hm.Root=f$;let Xa=class rI extends Hm{constructor(n,r,i,o){super(r.policies,o);X(this,"id");X(this,"parent");X(this,"replay");X(this,"group");this.id=n,this.parent=r,this.replay=i,this.group=o,i(this)}addLayer(n,r){return new rI(n,this,r,this.group)}removeLayer(n){const r=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(i=>{const o=this.data[i],l=r.lookup(i);l?o?o!==l&&Object.keys(o).forEach(u=>{We(o[u],l[u])||this.group.dirty(i,u)}):(this.group.dirty(i,"__exists"),Object.keys(l).forEach(u=>{this.group.dirty(i,u)})):this.delete(i)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(n){const r=this.parent.findChildRefIds(n);return un.call(this.data,n)?{...r,...super.findChildRefIds(n)}:r}getStorage(...n){let r=this.parent;for(;r.parent;)r=r.parent;return r.getStorage(...n)}};class d$ extends Xa{constructor(t){super("EntityStore.Stump",t,()=>{},new nI(t.group.caching,t.group))}removeLayer(){return this}merge(t,n){return this.parent.merge(t,n)}}function h$(e,t,n){const r=e[n],i=t[n];return We(r,i)?r:i}function Jc(e){return!!(e&&e.supportsResultCaching)}const iI=new Fm;function p$(e){var r,i;const t=(r=e.directives)==null?void 0:r.find(({name:o})=>o.value==="unmask");if(!t)return"mask";const n=(i=t.arguments)==null?void 0:i.find(({name:o})=>o.value==="mode");return n&&"value"in n.value&&n.value.value==="migrate"?"migrate":"unmask"}function aI(e,t,n){return iI.withValue(!0,()=>Kc(e,t,n,!1))}function m$(e,t){if(t.has(e))return t.get(e);const n=Array.isArray(e)?[]:{};return t.set(e,n),n}function Kc(e,t,n,r,i){const{knownChanged:o}=n,l=m$(e,n.mutableTargets);if(Array.isArray(e)){for(const[u,f]of Array.from(e.entries())){if(f===null){l[u]=null;continue}const d=Kc(f,t,n,r);o.has(d)&&o.add(l),l[u]=d}return o.has(l)?l:e}for(const u of t.selections){let f;if(r&&o.add(l),u.kind===pe.FIELD){const d=vu(u),p=u.selectionSet;if(f=l[d]||e[d],f===void 0)continue;if(p&&f!==null){const m=Kc(e[d],p,n,r);o.has(m)&&(f=m)}l[d]=f}if(u.kind===pe.INLINE_FRAGMENT&&(!u.typeCondition||n.cache.fragmentMatches(u,e.__typename))&&(f=Kc(e,u.selectionSet,n,r)),u.kind===pe.FRAGMENT_SPREAD){const d=u.name.value,p=n.fragmentMap[d]||(n.fragmentMap[d]=n.cache.lookupFragment(d));ze(p,39,d);const m=p$(u);m!=="mask"&&(f=Kc(e,p.selectionSet,n,m==="migrate"))}o.has(f)&&o.add(l)}return"__typename"in e&&!("__typename"in l)&&(l.__typename=e.__typename),Object.keys(l).length!==Object.keys(e).length&&o.add(l),o.has(l)?l:e}function y$(e,t,n,r){const i=t.definitions.filter(l=>l.kind===pe.FRAGMENT_DEFINITION);typeof r>"u"&&(ze(i.length===1,41,i.length),r=i[0].name.value);const o=i.find(l=>l.name.value===r);return ze(!!o,42,r),e==null||We(e,{})?e:aI(e,o.selectionSet,{operationName:o.name.value,fragmentMap:Lf(zf(t)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function v$(e,t,n){var i;const r=la(t);return ze(r,43),e==null?e:aI(e,r.selectionSet,{operationType:r.operation,operationName:(i=r.name)==null?void 0:i.value,fragmentMap:Lf(zf(t)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}const YC={};function qw(e){const t=JSON.stringify(e);return YC[t]||(YC[t]={})}function WC(e){const t=qw(e);return t.keyFieldsFn||(t.keyFieldsFn=(n,r)=>{const i=(l,u)=>r.readField(u,l),o=r.keyObject=$w(e,l=>{let u=Gl(r.storeObject,l,i);return u===void 0&&n!==r.storeObject&&un.call(n,l[0])&&(u=Gl(n,l,sI)),ze(u!==void 0,102,l.join("."),n),u});return`${r.typename}:${JSON.stringify(o)}`})}function XC(e){const t=qw(e);return t.keyArgsFn||(t.keyArgsFn=(n,{field:r,variables:i,fieldName:o})=>{const l=$w(e,f=>{const d=f[0],p=d.charAt(0);if(p==="@"){if(r&&zw(r.directives)){const m=d.slice(1),y=r.directives.find(x=>x.name.value===m),g=y&&Dw(y,i);return g&&Gl(g,f.slice(1))}return}if(p==="$"){const m=d.slice(1);if(i&&un.call(i,m)){const y=f.slice(0);return y[0]=m,Gl(i,y)}return}if(n)return Gl(n,f)}),u=JSON.stringify(l);return(n||u!=="{}")&&(o+=":"+u),o})}function $w(e,t){const n=new nu;return oI(e).reduce((r,i)=>{let o=t(i);if(o!==void 0){for(let l=i.length-1;l>=0;--l)o={[i[l]]:o};r=n.merge(r,o)}return r},{})}function oI(e){const t=qw(e);if(!t.paths){const n=t.paths=[],r=[];e.forEach((i,o)=>{rn(i)?(oI(i).forEach(l=>n.push(r.concat(l))),r.length=0):(r.push(i),rn(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function sI(e,t){return e[t]}function Gl(e,t,n){return n=n||sI,lI(t.reduce(function r(i,o){return rn(i)?i.map(l=>r(l,o)):i&&n(i,o)},e))}function lI(e){return Nn(e)?rn(e)?e.map(lI):$w(Object.keys(e).sort(),t=>Gl(e,t)):e}const uI=new Fm,QC=new WeakMap;function ef(e){let t=QC.get(e);return t||QC.set(e,t={vars:new Set,dep:YR()}),t}function ZC(e){ef(e).vars.forEach(t=>t.forgetCache(e))}function g$(e){ef(e).vars.forEach(t=>t.attachCache(e))}function b$(e){const t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(u=>{ef(u).dep.dirty(r),x$(u)});const l=Array.from(n);n.clear(),l.forEach(u=>u(e))}}else{const l=uI.getValue();l&&(i(l),ef(l).dep(r))}return e};r.onNextChange=o=>(n.add(o),()=>{n.delete(o)});const i=r.attachCache=o=>(t.add(o),ef(o).vars.add(r),r);return r.forgetCache=o=>t.delete(o),r}function x$(e){e.broadcastWatches&&e.broadcastWatches()}function Kx(e){return e.args!==void 0?e.args:e.field?Dw(e.field,e.variables):null}const w$=()=>{},JC=(e,t)=>t.fieldName,ek=(e,t,{mergeObjects:n})=>n(e,t),tk=(e,t)=>t,S$=(e,t,{streamFieldInfo:n,existingData:r})=>{if(!e&&!r)return t;const i=[],o=e??r,l=n!=null&&n.isLastChunk?t.length:Math.max(o.length,t.length);for(let u=0;u<l;u++)i[u]=t[u]===void 0?o[u]:t[u];return i};class E${constructor(t){X(this,"config");X(this,"typePolicies",{});X(this,"toBeAdded",{});X(this,"supertypeMap",new Map);X(this,"fuzzySubtypes",new Map);X(this,"cache");X(this,"rootIdsByTypename",{});X(this,"rootTypenamesById",{});X(this,"usingPossibleTypes",!1);this.config=t,this.config={dataIdFromObject:JR,...t},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}identify(t,n){var p;const r=this,i=n&&(n.typename||((p=n.storeObject)==null?void 0:p.__typename))||t.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];const o=n&&n.storeObject||t,l={...n,typename:i,storeObject:o,readField:n&&n.readField||((...m)=>{const y=Hw(m,o);return r.readField(y,{store:r.cache.data,variables:y.variables})})};let u;const f=i&&this.getTypePolicy(i);let d=f&&f.keyFn||this.config.dataIdFromObject;return iI.withValue(!0,()=>{for(;d;){const m=d({...t,...o},l);if(rn(m))d=WC(m);else{u=m;break}}}),u=u?String(u):void 0,l.keyObject?[u,l.keyObject]:[u]}addTypePolicies(t){Object.keys(t).forEach(n=>{const{queryType:r,mutationType:i,subscriptionType:o,...l}=t[n];r&&this.setRootTypename("Query",n),i&&this.setRootTypename("Mutation",n),o&&this.setRootTypename("Subscription",n),un.call(this.toBeAdded,n)?this.toBeAdded[n].push(l):this.toBeAdded[n]=[l]})}updateTypePolicy(t,n,r){const i=this.getTypePolicy(t),{keyFields:o,fields:l}=n;function u(f,d){f.merge=typeof d=="function"?d:d===!0?ek:d===!1?tk:f.merge}u(i,n.merge),i.keyFn=o===!1?w$:rn(o)?WC(o):typeof o=="function"?o:i.keyFn,l&&Object.keys(l).forEach(f=>{let d=r[f];(!d||(d==null?void 0:d.typename)!==t)&&(d=r[f]={typename:t});const p=l[f];if(typeof p=="function")d.read=p;else{const{keyArgs:m,read:y,merge:g}=p;d.keyFn=m===!1?JC:rn(m)?XC(m):typeof m=="function"?m:d.keyFn,typeof y=="function"&&(d.read=y),u(d,g)}d.read&&d.merge&&(d.keyFn=d.keyFn||JC)})}setRootTypename(t,n=t){const r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(ze(!i||i===t,103,t),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)}addPossibleTypes(t){this.usingPossibleTypes=!0,Object.keys(t).forEach(n=>{this.getSupertypeSet(n,!0),t[n].forEach(r=>{this.getSupertypeSet(r,!0).add(n);const i=r.match(eI);(!i||i[0]!==r)&&this.fuzzySubtypes.set(r,new RegExp(r))})})}getTypePolicy(t){if(!un.call(this.typePolicies,t)){const r=this.typePolicies[t]={};r.fields={};let i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach((o,l)=>{if(o.test(t)){const u=this.supertypeMap.get(l);u&&u.forEach(f=>i.add(f))}})),i&&i.size&&i.forEach(o=>{const{fields:l,...u}=this.getTypePolicy(o);Object.assign(r,u),Object.assign(r.fields,l)})}const n=this.toBeAdded[t];return n&&n.length&&n.splice(0).forEach(r=>{this.updateTypePolicy(t,r,this.typePolicies[t].fields)}),this.typePolicies[t]}getFieldPolicy(t,n){if(t)return this.getTypePolicy(t).fields[n]}getSupertypeSet(t,n){let r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r}fragmentMatches(t,n,r,i){if(!t.typeCondition)return!0;if(!n)return!1;const o=t.typeCondition.name.value;if(n===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){const l=this.getSupertypeSet(n,!0),u=[l],f=p=>{const m=this.getSupertypeSet(p,!1);m&&m.size&&u.indexOf(m)<0&&u.push(m)};let d=!!(r&&this.fuzzySubtypes.size);for(let p=0;p<u.length;++p){const m=u[p];if(m.has(o))return l.has(o)||l.add(o),!0;m.forEach(f),d&&p===u.length-1&&Gx(t.selectionSet,r,i)&&(d=!1,this.fuzzySubtypes.forEach((y,g)=>{const x=n.match(y);x&&x[0]===n&&f(g)}))}}return!1}hasKeyArgs(t,n){const r=this.getFieldPolicy(t,n);return!!(r&&r.keyFn)}getStoreFieldName(t){const{typename:n,fieldName:r}=t,i=this.getFieldPolicy(n,r);let o,l=i&&i.keyFn;if(l&&n){const u={typename:n,fieldName:r,field:t.field||null,variables:t.variables},f=Kx(t);for(;l;){const d=l(f,u);if(rn(d))l=XC(d);else{o=d||r;break}}}return o===void 0&&(o=t.field?Lq(t.field,t.variables):PR(r,Kx(t))),o===!1?r:r===iu(o)?o:r+":"+o}readField(t,n){const r=t.from;if(!r||!(t.field||t.fieldName))return;if(t.typename===void 0){const p=n.store.getFieldValue(r,"__typename");p&&(t.typename=p)}const o=this.getStoreFieldName(t),l=iu(o),u=n.store.getFieldValue(r,o),f=this.getFieldPolicy(t.typename,l),d=f&&f.read;if(d){const p=cI(this,r,t,n,n.store.getStorage(xt(r)?r.__ref:r,o));return uI.withValue(this.cache,d,[u,p])}return u}getReadFunction(t,n){const r=this.getFieldPolicy(t,n);return r&&r.read}getMergeFunction(t,n,r){let i=this.getFieldPolicy(t,n),o=i&&i.merge;return!o&&r&&(i=this.getTypePolicy(r),o=i&&i.merge),o}runMergeFunction(t,n,{field:r,typename:i,merge:o,path:l},u,f){var y,g,x;const d=t;if(o===ek)return fI(u.store)(t,n);if(o===tk)return n;u.overwrite&&(t=void 0);const p=(x=(g=(y=u.extensions)==null?void 0:y[uo])==null?void 0:g.deref())==null?void 0:x.peekArray(l);if(p){const{current:w,previous:S}=p;if(S&&We(S.incoming,n)&&We(S.streamFieldInfo,w))return S.result}const m=o(t,n,O$(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:u.variables,path:l},u,f||{},d));return p&&(p.previous={incoming:n,streamFieldInfo:p.current,result:m}),m}}function cI(e,t,n,r,i){const o=e.getStoreFieldName(n),l=iu(o),u=n.variables||r.variables,{toReference:f,canRead:d}=r.store;return{args:Kx(n),field:n.field||null,fieldName:l,storeFieldName:o,variables:u,isReference:xt,toReference:f,storage:i,cache:e.cache,canRead:d,readField(...p){return e.readField(Hw(p,t,u),r)},mergeObjects:fI(r.store)}}function O$(e,t,n,r,i,o){var f;const l={...cI(e,t,n,r,i),extensions:r.extensions,existingData:o},u=r.extensions;if(u&&uo in u){const{[uo]:d,...p}=u,m=(f=d==null?void 0:d.deref())==null?void 0:f.peekArray(n.path);m&&(l.streamFieldInfo=m.current),l.extensions=Object.keys(p).length===0?void 0:p}return l}function Hw(e,t,n){const{0:r,1:i,length:o}=e;let l;return typeof r=="string"?l={fieldName:r,from:o>1?i:t}:(l={...r},un.call(l,"from")||(l.from=t)),l.variables===void 0&&(l.variables=n),l}function fI(e){return function(n,r){if(rn(n)||rn(r))throw Br(106);if(Nn(n)&&Nn(r)){const i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(xt(n)&&Rl(r))return e.merge(n.__ref,r),n;if(Rl(n)&&xt(r))return e.merge(n,r.__ref),r;if(Rl(n)&&Rl(r))return{...n,...r}}return r}}function nk(e){return[e.selectionSet,e.objectOrReference,e.context]}class A${constructor(t){X(this,"executeSelectionSet");X(this,"executeSubSelectedArray");X(this,"config");X(this,"knownResults",new WeakMap);this.config=t,this.executeSelectionSet=yf(n=>{const r=nk(n),i=this.executeSelectionSet.peek(...r);return i||(KC(n.context.store,n.enclosingRef.__ref),this.execSelectionSetImpl(n))},{max:sa["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:nk,makeCacheKey(n,r,i){if(Jc(i.store))return i.store.makeCacheKey(n,xt(r)?r.__ref:r,i.varString)}}),this.executeSubSelectedArray=yf(n=>(KC(n.context.store,n.enclosingRef.__ref),this.execSubSelectedArrayImpl(n)),{max:sa["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:n,array:r,context:i}){if(Jc(i.store))return i.store.makeCacheKey(n,r,i.varString)}})}diffQueryAgainstStore({store:t,query:n,rootId:r="ROOT_QUERY",variables:i,returnPartialData:o=!0}){const l=this.config.cache.policies;i={...Iw(Oq(n)),...i};const u=Hl(r),f=this.executeSelectionSet({selectionSet:Lw(n).selectionSet,objectOrReference:u,enclosingRef:u,context:{store:t,query:n,policies:l,variables:i,varString:ra(i),...tI(n,this.config.fragments)}});let d;f.missing&&(d=new Fw(T$(f.missing),f.missing,n,i));const p=!d,{result:m}=f;return{result:p?m:o?Object.keys(m).length===0?null:m:null,complete:p,missing:d}}isFresh(t,n,r,i){if(Jc(i.store)&&this.knownResults.get(t)===r){const o=this.executeSelectionSet.peek(r,n,i);if(o&&t===o.result)return!0}return!1}execSelectionSetImpl({selectionSet:t,objectOrReference:n,enclosingRef:r,context:i}){if(xt(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:`Dangling reference to missing ${n.__ref} object`};const{variables:o,policies:l,store:u}=i,f=u.getFieldValue(n,"__typename"),d=[];let p;const m=new nu;typeof f=="string"&&!l.rootIdsByTypename[f]&&d.push({__typename:f});function y(O,_){return O.missing&&(p=m.merge(p,{[_]:O.missing})),O.result}const g=new Set(t.selections);g.forEach(O=>{if(Um(O,o))if(Bf(O)){let _=l.readField({fieldName:O.name.value,field:O,variables:i.variables,from:n},i);const C=vu(O);_===void 0?XR.added(O)||(p=m.merge(p,{[C]:`Can't find field '${O.name.value}' on ${xt(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)}`})):rn(_)?_.length>0&&(_=y(this.executeSubSelectedArray({field:O,array:_,enclosingRef:r,context:i}),C)):O.selectionSet&&_!=null&&(_=y(this.executeSelectionSet({selectionSet:O.selectionSet,objectOrReference:_,enclosingRef:xt(_)?_:r,context:i}),C)),_!==void 0&&d.push({[C]:_})}else{const _=Vm(O,i.lookupFragment);if(!_&&O.kind===pe.FRAGMENT_SPREAD)throw Br(107,O.name.value);_&&l.fragmentMatches(_,f)&&_.selectionSet.selections.forEach(g.add,g)}});const w={result:jq(d),missing:p},S=w;return S.result&&this.knownResults.set(S.result,t),S}execSubSelectedArrayImpl({field:t,array:n,enclosingRef:r,context:i}){let o,l=new nu;function u(f,d){return f.missing&&(o=l.merge(o,{[d]:f.missing})),f.result}return t.selectionSet&&(n=n.filter(f=>f===void 0||i.store.canRead(f))),n=n.map((f,d)=>f===null?null:rn(f)?u(this.executeSubSelectedArray({field:t,array:f,enclosingRef:r,context:i}),d):t.selectionSet?u(this.executeSelectionSet({selectionSet:t.selectionSet,objectOrReference:f,enclosingRef:xt(f)?f:r,context:i}),d):f),{result:n,missing:o}}}function T$(e){try{JSON.stringify(e,(t,n)=>{if(typeof n=="string")throw n;return n})}catch(t){return t}}function E0(e,t,n){const r=`${t}${n}`;let i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:{...e,clientOnly:t,deferred:n}),i}class _${constructor(t,n,r){X(this,"cache");X(this,"reader");X(this,"fragments");this.cache=t,this.reader=n,this.fragments=r}writeToStore(t,{query:n,result:r,dataId:i,variables:o,overwrite:l,extensions:u}){const f=la(n),d=c$();o={...Iw(f),...o};const p={store:t,written:{},merge(y,g){return d.merge(y,g)},variables:o,varString:ra(o),...tI(n,this.fragments),overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:u},m=this.processSelectionSet({result:r||{},dataId:i,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:p,path:[]});if(!xt(m))throw Br(109,r);return p.incomingById.forEach(({storeObject:y,mergeTree:g,fieldNodeSet:x},w)=>{const S=Hl(w);if(g&&g.map.size){const O=this.applyMerges(g,S,y,p);if(xt(O))return;y=O}t.merge(w,y)}),t.retain(m.__ref),m}processSelectionSet({dataId:t,result:n,selectionSet:r,context:i,mergeTree:o,path:l}){const{policies:u}=this.cache;let f={};const d=t&&u.rootTypenamesById[t]||Wx(n,r,i.fragmentMap)||t&&i.store.get(t,"__typename");typeof d=="string"&&(f.__typename=d);const p=(...y)=>{const g=Hw(y,f,i.variables);if(xt(g.from)){const x=i.incomingById.get(g.from.__ref);if(x){const w=u.readField({...g,from:x.storeObject},i);if(w!==void 0)return w}}return u.readField(g,i)},m=new Set;this.flattenFields(r,n,i,d).forEach((y,g)=>{var O;const x=vu(g),w=n[x],S=[...l,g.name.value];if(m.add(g),w!==void 0){const _=u.getStoreFieldName({typename:d,fieldName:g.name.value,field:g,variables:y.variables}),C=rk(o,_);let k=this.processFieldValue(w,g,g.selectionSet?E0(y,!1,!1):y,C,S),N;g.selectionSet&&(xt(k)||Rl(k))&&(N=p("__typename",k));const M=u.getMergeFunction(d,g.name.value,N);M?C.info={field:g,typename:d,merge:M,path:S}:Dl(["stream"],g)&&Array.isArray(k)&&((O=y.extensions)!=null&&O[uo])?C.info={field:g,typename:d,merge:S$,path:S}:ik(o,_),f=y.merge(f,{[_]:k})}});try{const[y,g]=u.identify(n,{typename:d,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:f,readField:p});t=t||y,g&&(f=i.merge(f,g))}catch(y){if(!t)throw y}if(typeof t=="string"){const y=Hl(t),g=i.written[t]||(i.written[t]=[]);if(g.indexOf(r)>=0||(g.push(r),this.reader&&this.reader.isFresh(n,y,r,i)))return y;const x=i.incomingById.get(t);return x?(x.storeObject=i.merge(x.storeObject,f),x.mergeTree=Yx(x.mergeTree,o),m.forEach(w=>x.fieldNodeSet.add(w))):i.incomingById.set(t,{storeObject:f,mergeTree:Ap(o)?void 0:o,fieldNodeSet:m}),y}return f}processFieldValue(t,n,r,i,o){return!n.selectionSet||t===null?t:rn(t)?t.map((l,u)=>{const f=this.processFieldValue(l,n,r,rk(i,u),[...o,u]);return ik(i,u),f}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i,path:o})}flattenFields(t,n,r,i=Wx(n,t,r.fragmentMap)){const o=new Map,{policies:l}=this.cache,u=new Ci(!1);return(function f(d,p){const m=u.lookup(d,p.clientOnly,p.deferred);m.visited||(m.visited=!0,d.selections.forEach(y=>{if(!Um(y,r.variables))return;let{clientOnly:g,deferred:x}=p;if(!(g&&x)&&zw(y.directives)&&y.directives.forEach(w=>{const S=w.name.value;if(S==="client"&&(g=!0),S==="defer"){const O=Dw(w,r.variables);(!O||O.if!==!1)&&(x=!0)}}),Bf(y)){const w=o.get(y);w&&(g=g&&w.clientOnly,x=x&&w.deferred),o.set(y,E0(r,g,x))}else{const w=Vm(y,r.lookupFragment);if(!w&&y.kind===pe.FRAGMENT_SPREAD)throw Br(111,y.name.value);w&&l.fragmentMatches(w,i,n,r.variables)&&f(w.selectionSet,E0(r,g,x))}}))})(t,r),o}applyMerges(t,n,r,i,o){if(t.map.size&&!xt(r)){const l=!rn(r)&&(xt(n)||Rl(n))?n:void 0,u=r;l&&!o&&(o=[xt(l)?l.__ref:l]);let f;const d=(p,m)=>rn(p)?typeof m=="number"?p[m]:void 0:i.store.getFieldValue(p,String(m));t.map.forEach((p,m)=>{const y=d(l,m),g=d(u,m);if(g===void 0)return;o&&o.push(m);const x=this.applyMerges(p,y,g,i,o);x!==g&&(f=f||new Map,f.set(m,x)),o&&ze(o.pop()===m)}),f&&(r=rn(u)?u.slice(0):{...u},f.forEach((p,m)=>{r[m]=p}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,o&&i.store.getStorage(...o)):r}}const dI=[];function rk({map:e},t){return e.has(t)||e.set(t,dI.pop()||{map:new Map}),e.get(t)}function Yx(e,t){if(e===t||!t||Ap(t))return e;if(!e||Ap(e))return t;const n=e.info&&t.info?{...e.info,...t.info}:e.info||t.info,r=e.map.size&&t.map.size,i=r?new Map:e.map.size?e.map:t.map,o={info:n,map:i};if(r){const l=new Set(t.map.keys());e.map.forEach((u,f)=>{o.map.set(f,Yx(u,t.map.get(f))),l.delete(f)}),l.forEach(u=>{o.map.set(u,Yx(t.map.get(u),e.map.get(u)))})}return o}function Ap(e){return!e||!(e.info||e.map.size)}function ik({map:e},t){const n=e.get(t);n&&Ap(n)&&(dI.push(n),e.delete(t))}function Wx(e,t,n){let r;for(const i of t.selections)if(Bf(i)){if(i.name.value==="__typename")return e[vu(i)]}else r?r.push(i):r=[i];if(typeof e.__typename=="string")return e.__typename;if(r)for(const i of r){const o=Wx(e,Vm(i,n).selectionSet,n);if(typeof o=="string")return o}}class C$ extends a${constructor(n={}){super();X(this,"data");X(this,"optimisticData");X(this,"config");X(this,"watches",new Set);X(this,"storeReader");X(this,"storeWriter");X(this,"addTypenameTransform",new Ji(XR));X(this,"maybeBroadcastWatch");X(this,"assumeImmutableResults",!0);X(this,"policies");X(this,"makeVar",b$);X(this,"txCount",0);this.config=u$(n),this.policies=new E$({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const n=this.data=new Hm.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()}resetResultCache(){const{fragments:n}=this.config;this.addTypenameTransform.resetCache(),n==null||n.resetCaches(),this.storeWriter=new _$(this,this.storeReader=new A$({cache:this,fragments:n}),n),this.maybeBroadcastWatch=yf((r,i)=>this.broadcastWatch(r,i),{max:sa["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:r=>{const i=r.optimistic?this.optimisticData:this.data;if(Jc(i)){const{optimistic:o,id:l,variables:u}=r;return i.makeCacheKey(r.query,r.callback,ra({optimistic:o,id:l,variables:u}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(r=>r.resetCaching())}restore(n){return this.init(),n&&this.data.replace(n),this}extract(n=!1){return(n?this.optimisticData:this.data).extract()}read(n){const{returnPartialData:r=!1}=n;return this.storeReader.diffQueryAgainstStore({...n,store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r}).result}write(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}modify(n){if(un.call(n,"id")&&!n.id)return!1;const r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields,!1)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}diff(n){return this.storeReader.diffQueryAgainstStore({...n,store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config})}watch(n){return this.watches.size||g$(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),()=>{this.watches.delete(n)&&!this.watches.size&&ZC(this),this.maybeBroadcastWatch.forget(n)}}gc(n){ra.reset(),cs.reset();const r=this.optimisticData.gc();return n&&!this.txCount&&n.resetResultCache&&this.resetResultCache(),r}retain(n,r){return(r?this.optimisticData:this.data).retain(n)}release(n,r){return(r?this.optimisticData:this.data).release(n)}identify(n){if(xt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch{}}evict(n){if(!n.id){if(un.call(n,"id"))return!1;n={...n,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}reset(n){return this.init(),ra.reset(),n&&n.discardWatches?(this.watches.forEach(r=>this.maybeBroadcastWatch.forget(r)),this.watches.clear(),ZC(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(n){const r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())}batch(n){const{update:r,optimistic:i=!0,removeOptimistic:o,onWatchUpdated:l}=n;let u;const f=p=>{const{data:m,optimisticData:y}=this;++this.txCount,p&&(this.data=this.optimisticData=p);try{return u=r(this)}finally{--this.txCount,this.data=m,this.optimisticData=y}},d=new Set;return l&&!this.txCount&&this.broadcastWatches({...n,onWatchUpdated(p){return d.add(p),!1}}),typeof i=="string"?this.optimisticData=this.optimisticData.addLayer(i,f):i===!1?f(this.data):f(),typeof o=="string"&&(this.optimisticData=this.optimisticData.removeLayer(o)),l&&d.size?(this.broadcastWatches({...n,onWatchUpdated(p,m){const y=l.call(this,p,m);return y!==!1&&d.delete(p),y}}),d.size&&d.forEach(p=>this.maybeBroadcastWatch.dirty(p))):this.broadcastWatches(n),u}performTransaction(n,r){return this.batch({update:n,optimistic:r||r!==null})}transformDocument(n){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(n))}fragmentMatches(n,r){return this.policies.fragmentMatches(n,r)}lookupFragment(n){var r;return((r=this.config.fragments)==null?void 0:r.lookup(n))||null}resolvesClientField(n,r){return!!this.policies.getReadFunction(n,r)}broadcastWatches(n){if(!this.txCount){const r=this.onAfterBroadcast,i=new Set;this.onAfterBroadcast=o=>{i.add(o)};try{this.watches.forEach(o=>this.maybeBroadcastWatch(o,n)),i.forEach(o=>o())}finally{this.onAfterBroadcast=r}}}addFragmentsToDocument(n){const{fragments:r}=this.config;return r?r.transform(n):n}broadcastWatch(n,r){const{lastDiff:i}=n,o=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,o,i)===!1)||(!i||!We(i.result,o.result))&&n.callback(n.lastDiff=o,i)}}function Vf(e,t){return typeof e=="object"&&e!==null&&e[Symbol.for("apollo.error")]===t}function Uf(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function ak(e){return e.map(t=>t.message||"Error message not found.").join(`
`)}const lf=class lf extends Error{constructor(n){super(lf.formatMessage(n,{defaultFormatMessage:ak}));X(this,"errors");this.name="CombinedProtocolErrors",this.errors=n,Uf(this),Object.setPrototypeOf(this,lf.prototype)}static is(n){return Vf(n,"CombinedProtocolErrors")}};X(lf,"formatMessage",ak);let Tp=lf;function k$(e){return e!==null&&typeof e=="object"&&typeof e.message=="string"&&typeof e.name=="string"&&(typeof e.stack=="string"||typeof e.stack>"u")}class Gw extends Error{static is(t){return Vf(t,"UnconventionalError")}constructor(t){super("An error of unexpected shape occurred.",{cause:t}),this.name="UnconventionalError",Uf(this),Object.setPrototypeOf(this,Gw.prototype)}}function ok(e){return e.filter(t=>t).map(t=>t.message||"Error message not found.").join(`
`)}const uf=class uf extends Error{constructor(n,r=n.errors||[]){super(uf.formatMessage(r,{result:n,defaultFormatMessage:ok}));X(this,"errors");X(this,"data");X(this,"extensions");this.errors=r,this.data=n.data,this.extensions=n.extensions,this.name="CombinedGraphQLErrors",Uf(this),Object.setPrototypeOf(this,uf.prototype)}static is(n){return Vf(n,"CombinedGraphQLErrors")}};X(uf,"formatMessage",ok);let to=uf;const j$=new WeakSet;function N$(e){j$.add(e)}class Gm extends Error{constructor(n,r){super(n);X(this,"response");X(this,"statusCode");X(this,"bodyText");this.name="ServerError",this.response=r.response,this.statusCode=r.response.status,this.bodyText=r.bodyText,Uf(this),Object.setPrototypeOf(this,Gm.prototype)}static is(n){return Vf(n,"ServerError")}}class Km extends Error{constructor(n,r){super(n instanceof Error?n.message:"Could not parse server response",{cause:n});X(this,"response");X(this,"statusCode");X(this,"bodyText");this.name="ServerParseError",this.response=r.response,this.statusCode=r.response.status,this.bodyText=r.bodyText,Uf(this),Object.setPrototypeOf(this,Km.prototype)}static is(n){return Vf(n,"ServerParseError")}}const _p=Symbol();function M$(e){return"extensions"in e?Tp.is(e.extensions[_p]):!1}function P$(e){return k$(e)?e:typeof e=="string"?new Error(e,{cause:e}):new Gw(e)}var je;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"})(je||(je={}));const{assign:sk}=Object,wl={loading:!0,networkStatus:je.loading,data:void 0,dataState:"empty",partial:!0},O0={loading:!1,networkStatus:je.ready,data:void 0,dataState:"empty",partial:!0};var HD;HD=Symbol.observable;class A0{constructor({queryManager:t,options:n,transformedQuery:r=t.transform(n.query)}){X(this,"options");X(this,"queryName");X(this,"variablesUnknown",!1);X(this,"_lastWrite");X(this,"unsubscribeFromCache");X(this,"input");X(this,"subject");X(this,"isTornDown");X(this,"queryManager");X(this,"subscriptions",new Set);X(this,"waitForNetworkResult");X(this,"lastQuery");X(this,"linkSubscription");X(this,"pollingInfo");X(this,"subscribe");X(this,"pipe");X(this,HD);X(this,"@@observable");X(this,"stableLastResult");X(this,"didWarnCacheOnlyPolling",!1);X(this,"dirty",!1);X(this,"notifyTimeout");X(this,"activeOperations",new Set);X(this,"operator",$x(t=>{const{query:n,variables:r,meta:i}=t;if(t.source==="setResult")return{query:n,variables:r,result:t.value,meta:i};if(t.kind==="C"||!Tc(t,this))return;let o;const l=this.subject.getValue();if(t.source==="cache"){if(o=t.value,o.networkStatus===je.ready&&o.partial&&(!this.options.returnPartialData||l.result.networkStatus===je.error)&&this.options.fetchPolicy!=="cache-only")return}else if(t.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),o=t.kind==="E"?{...Tc(l,t)?l.result:{data:void 0,dataState:"empty",partial:!0},error:t.error,networkStatus:je.error,loading:!1}:t.value,t.kind==="E"&&o.dataState==="streaming"&&(o.dataState="complete"),o.error&&(i.shouldEmit=1);else if(t.source==="newNetworkStatus"){const u=Tc(l,t)?l.result:this.getInitialResult(i.fetchPolicy),{resetError:f}=t.value,d=f?void 0:u.error,p=d?je.error:je.ready;o={...u,error:d,networkStatus:p}}return ze(o),o.error||delete o.error,o.networkStatus=this.calculateNetworkStatus(o.networkStatus),o.loading=ip(o.networkStatus),o=this.maskResult(o),{query:n,variables:r,result:o,meta:i}}));this.queryManager=t,this.waitForNetworkResult=n.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:i="cache-first"}={}}=t.defaultOptions,{fetchPolicy:o=i,initialFetchPolicy:l=o==="standby"?i:o}=n;n[LR]&&(ze(o==="standby",80),this.variablesUnknown=!0),this.lastQuery=r,this.options={...n,initialFetchPolicy:l,fetchPolicy:o,variables:this.getVariablesWithDefaults(n.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const u=la(this.query);this.queryName=u&&u.name&&u.name.value}get query(){return this.lastQuery}get variables(){return this.options.variables}get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}initializeObservablesQueue(){this.subject=new O8({query:this.query,variables:this.variables,result:wl,meta:{}});const t=this.subject.pipe(pf({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),$x(({query:n,variables:r,result:i,meta:o},l)=>{const{shouldEmit:u}=o;if(i===wl&&(l.previous=void 0,l.previousVariables=void 0),this.options.fetchPolicy==="standby"||u===2)return;if(u===1)return p();const{previous:f,previousVariables:d}=l;if(f){const m=this.queryManager.getDocumentInfo(n),y=this.queryManager.dataMasking,g=y?m.nonReactiveQuery:n;if((y||m.hasNonreactiveDirective?RR(g,f,i,r):We(f,i))&&We(d,r))return}if(u===3&&(!this.options.notifyOnNetworkStatusChange||We(f,i)))return;return p();function p(){return l.previous=i,l.previousVariables=r,i}},()=>({})));this.pipe=t.pipe.bind(t),this.subscribe=t.subscribe.bind(t),this.input=new yu,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}getCacheDiff({optimistic:t=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:t})}getInitialResult(t){let n=t||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(n==="network-only"||n==="cache-and-network")&&(n="cache-first");const r=()=>{const i=this.getCacheDiff(),o=this.options.returnPartialData||i.complete?i.result??void 0:void 0;return this.maskResult({data:o,dataState:i.complete?"complete":o===void 0?"empty":"partial",loading:!i.complete,networkStatus:i.complete?je.ready:je.loading,partial:!i.complete})};switch(n){case"cache-only":return{...r(),loading:!1,networkStatus:je.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:je.loading};case"standby":return O0;default:return wl}}resubscribeCache(){var f;const{variables:t,fetchPolicy:n}=this.options,r=this.query,i=n==="standby"||n==="no-cache"||this.waitForNetworkResult,o=!Tc({query:r,variables:t},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||o)&&((f=this.unsubscribeFromCache)==null||f.call(this)),i||!o)return;const l={query:r,variables:t,optimistic:!0,watcher:this,callback:d=>{const p=this.queryManager.getDocumentInfo(r);if((p.hasClientExports||p.hasForcedResolvers)&&(l.lastDiff=void 0),l.lastOwnDiff===d)return;const{result:m}=this.subject.getValue();!d.complete&&(m.error||m===wl||m===O0)||We(m.data,d.result)||this.scheduleNotify()}},u=this.cache.watch(l);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,u()},{query:r,variables:t})}getCurrentResult(){const{result:t}=this.subject.getValue();let n=t.networkStatus===je.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?t:this.getInitialResult();return n===wl&&(n=this.getInitialResult()),We(this.stableLastResult,n)||(this.stableLastResult=n),this.stableLastResult}refetch(t){const{fetchPolicy:n}=this.options,r={pollInterval:0};return n==="no-cache"?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",t&&!We(this.variables,t)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...t})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:je.refetch})}fetchMore({query:t,variables:n,context:r,errorPolicy:i,updateQuery:o}){ze(this.options.fetchPolicy!=="cache-only",82,tu(this.query,"(anonymous)"));const l={...cr(this.options,{errorPolicy:"none"},{query:t,context:r,errorPolicy:i}),variables:t?n:{...this.variables,...n},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};l.query=this.transformDocument(l.query),this.lastQuery=t?this.transformDocument(this.options.query):l.query;let u=!1;const f=this.options.fetchPolicy!=="no-cache";f||ze(o,83);const{finalize:d,pushNotification:p}=this.pushOperation(je.fetchMore);p({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});const{promise:m,operator:y}=lk(),{observable:g}=this.queryManager.fetchObservableWithInfo(l,{networkStatus:je.fetchMore,exposeExtensions:!0}),x=g.pipe(y,kR(w=>w.kind==="N"&&w.source==="network")).subscribe({next:w=>{u=!1;const S=w.value,O=S[IR];if(ZR(w.value.networkStatus)&&d(),f){const _=this.getCacheDiff();this.cache.batch({update:C=>{o?C.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:O},k=>o(k,{fetchMoreResult:S.data,variables:l.variables})):C.writeQuery({query:l.query,variables:l.variables,data:S.data,extensions:O})},onWatchUpdated:(C,k)=>{if(C.watcher===this&&!We(k.result,_.result)){u=!0;const N=this.getCurrentResult();ip(S.networkStatus)&&p({kind:"N",source:"network",value:{...N,networkStatus:S.networkStatus===je.error?je.ready:S.networkStatus,loading:!1,data:k.result,dataState:S.dataState==="streaming"?"streaming":"complete"}})}}})}else{const _=this.getCurrentResult(),C=o(_.data,{fetchMoreResult:S.data,variables:l.variables});p({kind:"N",value:{..._,networkStatus:je.ready,loading:!1,data:C,dataState:_.dataState==="streaming"?"streaming":"complete"},source:"network"})}}});return qx(m.then(w=>Gc(this.maskResult(w))).finally(()=>{if(x.unsubscribe(),d(),f&&!u){const w=this.getCurrentResult();w.dataState==="streaming"?p({kind:"N",source:"network",value:{...w,dataState:"complete",networkStatus:je.ready}}):p({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(t){const n=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:r=>{const{updateQuery:i,onError:o}=t,{error:l}=r;if(l){o?o(l):ze.error(84,l);return}i&&this.updateQuery((u,f)=>i(u,{subscriptionData:r,...f}))}});return this.subscriptions.add(n),()=>{this.subscriptions.delete(n)&&n.unsubscribe()}}applyOptions(t){const n=cr(this.options,t||{});sk(this.options,n),this.updatePolling()}async setVariables(t){return t=this.getVariablesWithDefaults(t),We(this.variables,t)?Gc(this.getCurrentResult()):(this.options.variables=t,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:t},{newNetworkStatus:je.setVariables}):Gc(this.getCurrentResult()))}updateQuery(t){const{queryManager:n}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),o=t(r,{variables:this.variables,complete:!!i,previousData:r});o&&(this.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),n.broadcastQueries())}startPolling(t){this.options.pollInterval=t,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(t,n){if(n.nextFetchPolicy){const{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=n;r==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy.call(n,r,{reason:t,options:n,observable:this,initialFetchPolicy:i}):t==="variables-changed"?n.fetchPolicy=i:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy}fetch(t,n,r,i){const o=this.options.fetchPolicy;t.context??(t.context={});let l=!1;const u=()=>{l=!0},f=S=>new _t(O=>{try{return S.subscribe({next(_){l=!0,O.next(_)},error:_=>O.error(_),complete:()=>O.complete()})}finally{l||(g.override=n,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:m,variables:y,meta:{shouldEmit:3,fetchPolicy:o}}))}});let{observable:d,fromLink:p}=this.queryManager.fetchObservableWithInfo(t,{networkStatus:n,query:r,onCacheHit:u,fetchQueryOperator:f,observableQuery:this});const{query:m,variables:y}=this,g={abort:()=>{w.unsubscribe()},query:m,variables:y};this.activeOperations.add(g);let x=n==je.refetch||n==je.setVariables;d=d.pipe(i,hf());const w=d.pipe(pf({next:S=>{S.source==="newNetworkStatus"||S.kind==="N"&&S.value.loading?g.override=n:delete g.override},finalize:()=>this.activeOperations.delete(g)})).subscribe({next:S=>{const O={};x&&S.kind==="N"&&"loading"in S.value&&!S.value.loading&&(x=!1,O.shouldEmit=1),this.input.next({...S,query:m,variables:y,meta:O})}});return{fromLink:p,subscription:w,observable:d}}updatePolling(){if(this.queryManager.ssrMode)return;const{pollingInfo:t,options:{fetchPolicy:n,pollInterval:r}}=this,i=()=>{const{options:f}=this;return!f.pollInterval||!this.hasObservers()||f.fetchPolicy==="cache-only"||f.fetchPolicy==="standby"};if(i()){this.cancelPolling();return}if((t==null?void 0:t.interval)===r)return;const o=t||(this.pollingInfo={});o.interval=r;const l=()=>{var f,d;if(i())return this.cancelPolling();this.pollingInfo&&(!ip(this.networkStatus)&&!((d=(f=this.options).skipPollAttempt)!=null&&d.call(f))?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:je.poll}).then(u,u):u())},u=()=>{const f=this.pollingInfo;f&&(clearTimeout(f.timeout),f.timeout=setTimeout(l,f.interval))};u()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(t){return this._reobserve(t)}_reobserve(t,n){this.isTornDown=!1;let{newNetworkStatus:r}=n||{};this.queryManager.obsQueries.add(this);const i=r===je.refetch||r===je.poll,o=this.variables,l=this.options.fetchPolicy,u=cr(this.options,t||{});this.variablesUnknown&&(this.variablesUnknown=u.fetchPolicy==="standby");const f=i?u:sk(this.options,u),d=this.transformDocument(f.query);this.lastQuery=d,t&&"variables"in t&&(f.variables=this.getVariablesWithDefaults(t.variables)),i||(this.updatePolling(),t&&t.variables&&!We(t.variables,o)&&f.fetchPolicy!=="standby"&&(f.fetchPolicy===l||typeof f.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",f),r===void 0&&(r=je.setVariables)));const p=this.networkStatus;r||(r=je.loading,p!==je.loading&&(t!=null&&t.variables)&&!We(t.variables,o)&&(r=je.setVariables),f.fetchPolicy==="standby"&&(r=je.ready)),f.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();const{promise:m,operator:y}=lk(f.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:g,observable:x,fromLink:w}=this.fetch(f,r,d,y);!i&&(w||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=g);const S=Object.assign(qx(m.then(O=>Gc(this.maskResult(O))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{const O=x.subscribe({}),_=()=>O.unsubscribe();return m.then(_,_),S}});return S}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){var t;this.isTornDown||(this.resetNotifications(),(t=this.unsubscribeFromCache)==null||t.call(this),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(t){return this.queryManager.transform(t)}maskResult(t){const n=this.queryManager.maskOperation({document:this.query,data:t.data,fetchPolicy:this.options.fetchPolicy,cause:this});return n===t.data?t:{...t,data:n}}resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(t=!1){if(!t){const r=this.queryManager.getDocumentInfo(this.query);if(r.hasClientExports||r.hasForcedResolvers)return}const{dirty:n}=this;if(this.resetNotifications(),n&&(this.options.fetchPolicy==="cache-only"||this.options.fetchPolicy==="cache-and-network"||!this.activeOperations.size)){const r=this.getCacheDiff();We(r.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:r.result,dataState:r.complete?"complete":r.result?"partial":"empty",networkStatus:je.ready,loading:!1,error:void 0,partial:!r.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}pushOperation(t){let n=!1;const{query:r,variables:i}=this,o=()=>{this.activeOperations.delete(l)},l={override:t,abort:()=>{n=!0,o()},query:r,variables:i};return this.activeOperations.add(l),{finalize:o,pushNotification:(u,f)=>{n||this.input.next({...u,query:r,variables:i,meta:{...f}})}}}calculateNetworkStatus(t){if(t===je.streaming)return t;const n=Array.from(this.activeOperations.values()).reverse().find(r=>Tc(r,this)&&r.override!==void 0);return(n==null?void 0:n.override)??t}abortActiveOperations(){this.activeOperations.forEach(t=>t.abort())}reset(){const t=this.options.fetchPolicy==="cache-only";this.setResult(t?O0:wl,{shouldEmit:t?1:2}),this.abortActiveOperations()}setResult(t,n){this.input.next({source:"setResult",kind:"N",value:t,query:this.query,variables:this.variables,meta:{...n}})}reobserveCacheFirst(){const{fetchPolicy:t,nextFetchPolicy:n}=this.options;t==="cache-and-network"||t==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(r,i):t}}):this.reobserve()}getVariablesWithDefaults(t){return this.queryManager.getVariables(this.query,t)}}function Tc(e,t){return!!(e&&t&&e.query===t.query&&We(e.variables,t.variables))}function lk(e){let t=e,n,r;const i=new Promise((l,u)=>{n=l,r=u}),o=pf({next(l){if(l.kind==="E")return r(l.error);l.kind==="N"&&l.source!=="newNetworkStatus"&&!l.value.loading&&(t=l.value)},finalize:()=>{if(t)n(t);else{const l="The operation was aborted.",u="AbortError";r(typeof DOMException<"u"?new DOMException(l,u):Object.assign(new Error(l),{name:u}))}}});return{promise:i,operator:o}}const uk={},Il=new WeakMap;function T0(e,t){const n=e[t];typeof n=="function"&&(e[t]=function(){return Il.set(e,(Il.get(e)+1)%1e15),n.apply(this,arguments)})}const ck=new WeakMap;class _0{constructor(t,n){X(this,"lastRequestId",1);X(this,"cache");X(this,"queryManager");X(this,"id");X(this,"observableQuery");X(this,"incremental");X(this,"_lastWrite");const r=this.cache=t.cache,i=(ck.get(t)||0)+1;ck.set(t,i),this.id=i+"",this.observableQuery=n,this.queryManager=t,Il.has(r)||(Il.set(r,0),T0(r,"evict"),T0(r,"modify"),T0(r,"reset"))}get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(t){(this.observableQuery||this)._lastWrite=t}resetLastWrite(){this.lastWrite=void 0}shouldWrite(t,n){var i,o;const{lastWrite:r}=this;return!(r&&r.dmCount===Il.get(this.cache)&&We(n,r.variables)&&We(t.data,r.result.data)&&((i=t.extensions)==null?void 0:i[uo])===((o=r.result.extensions)==null?void 0:o[uo]))}get hasNext(){return this.incremental?this.incremental.hasNext:!1}maybeHandleIncrementalResult(t,n,r){const{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(n)?(this.incremental||(this.incremental=i.startRequest({query:r})),this.incremental.handle(t,n)):n}markQueryResult(t,{document:n,variables:r,errorPolicy:i,cacheWriteBehavior:o}){var p;const l={query:n,variables:r,returnPartialData:!0,optimistic:!0};(p=this.observableQuery)==null||p.resetNotifications();const u=o===0,f=u?void 0:this.cache.diff(l);let d=this.maybeHandleIncrementalResult(f==null?void 0:f.result,t,n);return u||(C0(d,i)?this.cache.batch({onWatchUpdated:(m,y)=>{m.watcher===this.observableQuery&&(m.lastOwnDiff=y)},update:m=>{if(this.shouldWrite(d,r))m.writeQuery({query:n,data:d.data,variables:r,overwrite:o===1,extensions:d.extensions}),this.lastWrite={result:d,variables:r,dmCount:Il.get(this.cache)};else if(f&&f.complete){d={...d,data:f.result};return}const y=m.diff(l);y.complete&&(d={...d,data:y.result})}}):this.lastWrite=void 0),d}markMutationResult(t,n,r=this.cache){const i=[],o=n.cacheWriteBehavior===0;let l=this.maybeHandleIncrementalResult(o?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0}).result,t,n.document);if(n.errorPolicy==="ignore"&&(l={...l,errors:[]}),Pl(l)&&n.errorPolicy==="none")return Promise.resolve(l);const u=()=>({...l,dataState:this.hasNext?"streaming":"complete"});if(!o&&C0(l,n.errorPolicy)){i.push({result:l.data,dataId:"ROOT_MUTATION",query:n.document,variables:n.variables,extensions:l.extensions});const{updateQueries:d}=n;d&&this.queryManager.getObservableQueries("all").forEach(p=>{const m=p&&p.queryName;if(!m||!Object.hasOwnProperty.call(d,m))return;const y=d[m],{query:g,variables:x}=p,{result:w,complete:S}=p.getCacheDiff({optimistic:!1});if(S&&w){const O=y(w,{mutationResult:u(),queryName:g&&tu(g)||void 0,queryVariables:x});O&&i.push({result:O,dataId:"ROOT_QUERY",query:g,variables:x})}})}let f=n.refetchQueries;if(typeof f=="function"&&(f=f(u())),i.length>0||(f||"").length>0||n.update||n.onQueryUpdated||n.removeOptimistic){const d=[];if(this.queryManager.refetchQueries({updateCache:p=>{o||i.forEach(y=>p.write(y));const{update:m}=n;if(m){if(!o){const y=p.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0});y.complete&&(l={...l,data:y.result})}this.hasNext||m(p,l,{context:n.context,variables:n.variables})}!o&&!n.keepRootFields&&!this.hasNext&&p.modify({id:"ROOT_MUTATION",fields(y,{fieldName:g,DELETE:x}){return g==="__typename"?y:x}})},include:f,optimistic:!1,removeOptimistic:n.removeOptimistic,onQueryUpdated:n.onQueryUpdated||null}).forEach(p=>d.push(p)),n.awaitRefetchQueries||n.onQueryUpdated)return Promise.all(d).then(()=>l)}return Promise.resolve(l)}markMutationOptimistic(t,n){const r=typeof t=="function"?t(n.variables,{IGNORE:uk}):t;return r===uk?!1:(this.cache.recordOptimisticTransaction(i=>{try{this.markMutationResult({data:r},n,i)}catch(o){ze.error(o)}},this.id),!0)}markSubscriptionResult(t,{document:n,variables:r,errorPolicy:i,cacheWriteBehavior:o}){o!==0&&(C0(t,i)&&this.cache.write({query:n,result:t.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:t.extensions}),this.queryManager.broadcastQueries())}}function C0(e,t="none"){const n=t==="ignore"||t==="all";let r=!Pl(e);return!r&&n&&e.data&&(r=!0),r}class D${constructor(t){X(this,"defaultOptions");X(this,"client");X(this,"clientOptions");X(this,"assumeImmutableResults");X(this,"documentTransform");X(this,"ssrMode");X(this,"defaultContext");X(this,"dataMasking");X(this,"incrementalHandler");X(this,"localState");X(this,"queryDeduplication");X(this,"prioritizeCacheValues",!1);X(this,"onBroadcast");X(this,"mutationStore");X(this,"obsQueries",new Set);X(this,"fetchCancelFns",new Map);X(this,"transformCache",new Rw(sa["queryManager.getDocumentInfo"]||2e3));X(this,"requestIdCounter",1);X(this,"inFlightLinkObservables",new Ci(!1));X(this,"noCacheWarningsByCause",new WeakSet);const n=new Ji(i=>this.cache.transformDocument(i),{cache:!1});this.client=t.client,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientOptions=t.clientOptions,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking,this.localState=t.localState,this.incrementalHandler=t.incrementalHandler;const r=t.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=t.defaultContext||{},(this.onBroadcast=t.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(t=>t.stop()),this.cancelPendingFetches(Br(87))}cancelPendingFetches(t){this.fetchCancelFns.forEach(n=>n(t)),this.fetchCancelFns.clear()}async mutate({mutation:t,variables:n,optimisticResponse:r,updateQueries:i,refetchQueries:o=[],awaitRefetchQueries:l=!1,update:u,onQueryUpdated:f,fetchPolicy:d,errorPolicy:p,keepRootFields:m,context:y}){const g=new _0(this);t=this.cache.transformForLink(this.transform(t));const{hasClientExports:x}=this.getDocumentInfo(t);n=this.getVariables(t,n),x&&(n=await this.localState.getExportedVariables({client:this.client,document:t,variables:n,context:y}));const w=this.mutationStore&&(this.mutationStore[g.id]={mutation:t,variables:n,loading:!0,error:null}),S=r&&g.markMutationOptimistic(r,{document:t,variables:n,cacheWriteBehavior:d==="no-cache"?0:2,errorPolicy:p,context:y,updateQueries:i,update:u,keepRootFields:m});return this.broadcastQueries(),new Promise((O,_)=>{const C={};return this.getObservableFromLink(t,{...y,optimisticResponse:S?r:void 0},n,d,{},!1).observable.pipe(fk(),Ml(k=>{const N={...k};return es(g.markMutationResult(N,{document:t,variables:n,cacheWriteBehavior:d==="no-cache"?0:2,errorPolicy:p,context:y,update:u,updateQueries:i,awaitRefetchQueries:l,refetchQueries:o,removeOptimistic:S?g.id:void 0,onQueryUpdated:f,keepRootFields:m}))})).pipe(ro(k=>{if(Pl(k)&&p==="none")throw new to(k0(k));return w&&(w.loading=!1,w.error=null),k})).subscribe({next:k=>{if(this.broadcastQueries(),!g.hasNext){const N={data:this.maskOperation({document:t,data:k.data,fetchPolicy:d,cause:C})};Pl(k)&&(N.error=new to(k)),Object.keys(k.extensions||{}).length&&(N.extensions=k.extensions),O(N)}},error:k=>{if(w&&(w.loading=!1,w.error=k),S&&this.cache.removeOptimistic(g.id),this.broadcastQueries(),p==="ignore")return O({data:void 0});if(p==="all")return O({data:void 0,error:k});_(k)}})})}fetchQuery(t,n){return oo(t.query,ei.QUERY),(async()=>Q8(this.fetchObservableWithInfo(t,{networkStatus:n}).observable.pipe($x(r=>{switch(r.kind){case"E":throw r.error;case"N":if(r.source!=="newNetworkStatus")return Gc(r.value)}})),{defaultValue:{data:void 0}}))()}transform(t){return this.documentTransform.transformDocument(t)}getDocumentInfo(t){const{transformCache:n}=this;if(!n.has(t)){const i=la(t),o={hasClientExports:Dl(["client","export"],t,!0),hasForcedResolvers:Cq(t),hasNonreactiveDirective:Dl(["nonreactive"],t),hasIncrementalDirective:Dl(["defer"],t),nonReactiveQuery:R$(t),clientQuery:Dl(["client"],t)?t:null,serverQuery:Nq([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),operationType:i==null?void 0:i.operation,defaultVars:Iw(i),asQuery:{...t,definitions:t.definitions.map(l=>l.kind==="OperationDefinition"&&l.operation!=="query"?{...l,operation:"query"}:l)}};n.set(t,o)}const r=n.get(t);if(r.violation)throw r.violation;return r}getVariables(t,n){const r=this.getDocumentInfo(t).defaultVars,i=Object.entries(n??{}).map(([o,l])=>[o,l===void 0?r[o]:l]);return{...r,...Object.fromEntries(i)}}watchQuery(t){oo(t.query,ei.QUERY);const n=this.transform(t.query);return t={...t,variables:this.getVariables(n,t.variables)},typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!0),new A0({queryManager:this,options:t,transformedQuery:n})}query(t){const n=this.transform(t.query);return this.fetchQuery({...t,query:n}).then(r=>({...r,data:this.maskOperation({document:n,data:r==null?void 0:r.data,fetchPolicy:t.fetchPolicy})}))}generateRequestId(){return this.requestIdCounter++}clearStore(t={discardWatches:!0}){return this.cancelPendingFetches(Br(89)),this.obsQueries.forEach(n=>{n.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(t)}getObservableQueries(t="active"){const n=new Set,r=new Map,i=new Map,o=new Set;return Array.isArray(t)&&t.forEach(l=>{if(typeof l=="string")r.set(l,l),i.set(l,!1);else if(kq(l)){const u=cs(this.transform(l));r.set(u,tu(l)),i.set(u,!1)}else Nn(l)&&l.query&&o.add(l)}),this.obsQueries.forEach(l=>{const u=cs(this.transform(l.options.query));if(t==="all"){n.add(l);return}const{queryName:f,options:{fetchPolicy:d}}=l;t==="active"&&d==="standby"||(t==="active"||f&&i.has(f)||u&&i.has(u))&&(n.add(l),f&&i.set(f,!0),u&&i.set(u,!0))}),o.size&&o.forEach(l=>{const u=new A0({queryManager:this,options:{...us(this.defaultOptions.watchQuery,l),fetchPolicy:"network-only"}});n.add(u)}),n}refetchObservableQueries(t=!1){const n=[];return this.getObservableQueries(t?"all":"active").forEach(r=>{const{fetchPolicy:i}=r.options;(t||i!=="standby")&&i!=="cache-only"&&n.push(r.refetch())}),this.broadcastQueries(),Promise.all(n)}startGraphQLSubscription(t){let{query:n,variables:r}=t;const{fetchPolicy:i="cache-first",errorPolicy:o="none",context:l={},extensions:u={}}=t;oo(n,ei.SUBSCRIPTION),n=this.transform(n),r=this.getVariables(n,r);let f;const d=(this.getDocumentInfo(n).hasClientExports?es(this.localState.getExportedVariables({client:this.client,document:n,variables:r,context:l})):Yo(r)).pipe(Ml(p=>{const{observable:m,restart:y}=this.getObservableFromLink(n,l,p,i,u),g=new _0(this);return f=y,m.pipe(ro(x=>{g.markSubscriptionResult(x,{document:n,variables:p,errorPolicy:o,cacheWriteBehavior:i==="no-cache"?0:2});const w={data:x.data??void 0};return Pl(x)?w.error=new to(x):M$(x)&&(w.error=x.extensions[_p],delete x.extensions[_p]),x.extensions&&Object.keys(x.extensions).length&&(w.extensions=x.extensions),w.error&&o==="none"&&(w.data=void 0),o==="ignore"&&delete w.error,w}),np(x=>Yo(o==="ignore"?{data:void 0}:{data:void 0,error:x})),kR(x=>!!(x.data||x.error)))}));return Object.assign(d,{restart:()=>f==null?void 0:f()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(t=>t.notify())}getObservableFromLink(t,n,r,i,o,l=(n==null?void 0:n.queryDeduplication)??this.queryDeduplication){let u={};const{serverQuery:f,clientQuery:d,operationType:p,hasIncrementalDirective:m}=this.getDocumentInfo(t),y=tu(t),g={client:this.client};if(f){const{inFlightLinkObservables:w,link:S}=this;try{let _=function(C){return new _t(k=>{function N(){return C.subscribe({next:k.next.bind(k),complete:k.complete.bind(k),error:k.error.bind(k)})}let M=N();return u.restart||(u.restart=()=>{M.unsubscribe(),M=N()}),()=>{M.unsubscribe(),u.restart=void 0}})};var x=_;const O=this.incrementalHandler.prepareRequest({query:f,variables:r,context:{...this.defaultContext,...n,queryDeduplication:l},extensions:o});if(n=O.context,l){const C=cs(f),k=ra(r);u=w.lookup(C,k),u.observable||(u.observable=Hx(S,O,g).pipe(_,aq(()=>{w.peek(C,k)===u&&w.remove(C,k)}),p===ei.SUBSCRIPTION?hf():Pw({refCount:!0})))}else u.observable=Hx(S,O,g).pipe(_)}catch(O){u.observable=CR(()=>O)}}else u.observable=Yo({data:{}});if(d){const{operation:w}=la(t);ze(!m,94,w[0].toUpperCase()+w.slice(1),y??"(anonymous)"),u.observable=u.observable.pipe(Ml(S=>es(this.localState.execute({client:this.client,document:d,remoteResult:S,context:n,variables:r,fetchPolicy:i}))))}return{restart:()=>{var w;return(w=u.restart)==null?void 0:w.call(u)},observable:u.observable.pipe(np(w=>{throw w=P$(w),N$(w),w}))}}getResultsFromLink(t,{queryInfo:n,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:o}){const l=n.lastRequestId=this.generateRequestId(),{errorPolicy:u}=t,f=this.cache.transformForLink(t.query);return this.getObservableFromLink(f,t.context,t.variables,t.fetchPolicy).observable.pipe(ro(d=>{const p=n.markQueryResult(d,{...t,document:f,cacheWriteBehavior:r}),m=Pl(p);if(m&&u==="none")throw n.resetLastWrite(),i==null||i.resetNotifications(),new to(k0(p));const y={data:p.data,...n.hasNext?{loading:!0,networkStatus:je.streaming,dataState:"streaming",partial:!0}:{dataState:p.data?"complete":"empty",loading:!1,networkStatus:je.ready,partial:!p.data}};return o&&"extensions"in p&&(y[IR]=p.extensions),m&&(u==="none"&&(y.data=void 0,y.dataState="empty"),u!=="ignore"&&(y.error=new to(k0(p)),y.dataState!=="streaming"&&(y.networkStatus=je.error))),y}),np(d=>{if(l>=n.lastRequestId&&u==="none")throw n.resetLastWrite(),i==null||i.resetNotifications(),d;const p={data:void 0,dataState:"empty",loading:!1,networkStatus:je.ready,partial:!0};return u!=="ignore"&&(p.error=d,p.networkStatus=je.error),Yo(p)}))}fetchObservableWithInfo(t,{networkStatus:n=je.loading,query:r=t.query,fetchQueryOperator:i=f=>f,onCacheHit:o=()=>{},observableQuery:l,exposeExtensions:u}){const f=this.getVariables(r,t.variables);let{fetchPolicy:d="cache-first",errorPolicy:p="none",returnPartialData:m=!1,notifyOnNetworkStatusChange:y=!0,context:g={}}=t;this.prioritizeCacheValues&&(d==="network-only"||d==="cache-and-network")&&(d="cache-first");const x=Object.assign({},t,{query:r,variables:f,fetchPolicy:d,errorPolicy:p,returnPartialData:m,notifyOnNetworkStatusChange:y,context:g}),w=new _0(this,l),S=N=>{x.variables=N;const M=d==="no-cache"?0:n===je.refetch&&x.refetchWritePolicy!=="merge"?1:2,R=this.fetchQueryByPolicy(x,{queryInfo:w,cacheWriteBehavior:M,onCacheHit:o,observableQuery:l,exposeExtensions:u});return R.observable=R.observable.pipe(i),x.fetchPolicy!=="standby"&&(l==null||l.applyNextFetchPolicy("after-fetch",t)),R},O=()=>{this.fetchCancelFns.delete(w.id)};this.fetchCancelFns.set(w.id,N=>{_.next({kind:"E",error:N,source:"network"})});const _=new yu;let C,k;if(this.getDocumentInfo(x.query).hasClientExports)C=es(this.localState.getExportedVariables({client:this.client,document:x.query,variables:x.variables,context:x.context})).pipe(Ml(N=>S(N).observable)),k=!0;else{const N=S(x.variables);k=N.fromLink,C=N.observable}return{observable:new _t(N=>{N.add(O),C.subscribe(N),_.subscribe(N)}).pipe(hf()),fromLink:k}}refetchQueries({updateCache:t,include:n,optimistic:r=!1,removeOptimistic:i=r?KD("refetchQueries"):void 0,onQueryUpdated:o}){const l=new Map;n&&this.getObservableQueries(n).forEach(f=>{if(f.options.fetchPolicy==="cache-only"||f.variablesUnknown)return;const d=f.getCurrentResult();l.set(f,{oq:f,lastDiff:{result:d==null?void 0:d.data,complete:!(d!=null&&d.partial)}})});const u=new Map;if(t){const f=new Set;this.cache.batch({update:t,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(d,p,m){const y=d.watcher;if(y instanceof A0&&!f.has(y)){if(f.add(y),o){l.delete(y);let g=o(y,p,m);return g===!0&&(g=y.refetch().retain()),g!==!1&&u.set(y,g),g}o!==null&&y.options.fetchPolicy!=="cache-only"&&l.set(y,{oq:y,lastDiff:m,diff:p})}}})}return l.size&&l.forEach(({oq:f,lastDiff:d,diff:p})=>{let m;o&&(p||(p=f.getCacheDiff()),m=o(f,p,d)),(!o||m===!0)&&(m=f.refetch().retain()),m!==!1&&u.set(f,m)}),i&&this.cache.removeOptimistic(i),u}maskOperation(t){const{document:n,data:r}=t;return this.dataMasking?v$(r,n,this.cache):r}maskFragment(t){const{data:n,fragment:r,fragmentName:i}=t;return this.dataMasking?y$(n,r,this.cache,i):n}fetchQueryByPolicy({query:t,variables:n,fetchPolicy:r,errorPolicy:i,returnPartialData:o,context:l},{cacheWriteBehavior:u,onCacheHit:f,queryInfo:d,observableQuery:p,exposeExtensions:m}){const y=()=>this.cache.diff({query:t,variables:n,returnPartialData:!0,optimistic:!0}),g=(w,S)=>{const O=w.result,_=k=>(!w.complete&&!o&&(k=void 0),{data:k,dataState:w.complete?"complete":k?"partial":"empty",loading:ip(S),networkStatus:S,partial:!w.complete}),C=k=>Yo({kind:"N",value:_(k),source:"cache"});return(w.complete||o)&&this.getDocumentInfo(t).hasForcedResolvers?(f(),es(this.localState.execute({client:this.client,document:t,remoteResult:O?{data:O}:void 0,context:l,variables:n,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(k=>({kind:"N",value:_(k.data||void 0),source:"cache"})))):i==="none"&&S===je.refetch&&w.missing?C(void 0):C(O||void 0)},x=()=>this.getResultsFromLink({query:t,variables:n,context:l,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:u,queryInfo:d,observableQuery:p,exposeExtensions:m}).pipe(fk(),oq(),ro(w=>({...w,source:"network"})));switch(r){default:case"cache-first":{const w=y();return w.complete?{fromLink:!1,observable:g(w,je.ready)}:o?{fromLink:!0,observable:m0(g(w,je.loading),x())}:{fromLink:!0,observable:x()}}case"cache-and-network":{const w=y();return w.complete||o?{fromLink:!0,observable:m0(g(w,je.loading),x())}:{fromLink:!0,observable:x()}}case"cache-only":return{fromLink:!1,observable:m0(g(y(),je.ready))};case"network-only":return{fromLink:!0,observable:x()};case"no-cache":return{fromLink:!0,observable:x()};case"standby":return{fromLink:!1,observable:df}}}}function fk(){let e=!1;return pf({next(){e=!0},complete(){ze(e,98)}})}function R$(e){return Si(e,{FragmentSpread:t=>{var n;if(!((n=t.directives)!=null&&n.some(r=>r.name.value==="unmask")))return{...t,directives:[...t.directives||[],{kind:pe.DIRECTIVE,name:{kind:pe.NAME,value:"nonreactive"}}]}}})}function k0(e){var i;if(((i=e.extensions)==null?void 0:i[uo])==null)return e;const{extensions:{[uo]:t,...n},...r}=e;return Object.keys(n).length>0&&(r.extensions=n),r}class I${constructor(t){X(this,"link");X(this,"cache");X(this,"disableNetworkFetches");X(this,"version");X(this,"queryDeduplication");X(this,"defaultOptions");X(this,"devtoolsConfig");X(this,"queryManager");X(this,"devToolsHookCb");X(this,"resetStoreCallbacks",[]);X(this,"clearStoreCallbacks",[]);X(this,"reFetchObservableQueries");X(this,"maskedFragmentTransform",new Ji(Dq));const{cache:n,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:o=0,queryDeduplication:l=!0,defaultOptions:u,defaultContext:f,assumeImmutableResults:d=n.assumeImmutableResults,localState:p,devtools:m,dataMasking:y,link:g,incrementalHandler:x=new Zq,experiments:w=[]}=t;this.link=g,this.cache=n,this.queryDeduplication=l,this.defaultOptions=u||{},this.devtoolsConfig={...m,enabled:(m==null?void 0:m.enabled)??GD},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=Sw,this.queryManager=new D$({client:this,defaultOptions:this.defaultOptions,defaultContext:f,documentTransform:r,queryDeduplication:l,ssrMode:i,dataMasking:!!y,clientOptions:t,incrementalHandler:x,assumeImmutableResults:d,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:p}),this.prioritizeCacheValues=i||o>0,o&&setTimeout(()=>{this.prioritizeCacheValues=!1},o),this.devtoolsConfig.enabled&&this.connectToDevTools(),w.forEach(S=>S.call(this,t))}set prioritizeCacheValues(t){this.queryManager.prioritizeCacheValues=t}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}connectToDevTools(){if(typeof window>"u")return;const t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(t){this.queryManager.localState=t}stop(){this.queryManager.stop()}watchQuery(t){return this.defaultOptions.watchQuery&&(t=us(this.defaultOptions.watchQuery,t)),this.queryManager.watchQuery(t)}query(t){return this.defaultOptions.query&&(t=us(this.defaultOptions.query,t)),this.queryManager.query(t)}mutate(t){const n=us(cr({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),t);return oo(n.mutation,ei.MUTATION),this.queryManager.mutate(n)}subscribe(t){const n={},r=this.queryManager.startGraphQLSubscription(t),i=r.pipe(ro(o=>({...o,data:this.queryManager.maskOperation({document:t.query,data:o.data,fetchPolicy:t.fetchPolicy,cause:n})})));return Object.assign(i,{restart:r.restart})}readQuery(t,n=!1){return this.cache.readQuery({...t,query:this.transform(t.query)},n)}watchFragment(t){const n=this.queryManager.dataMasking;return this.cache.watchFragment({...t,fragment:this.transform(t.fragment,n)})}readFragment(t,n=!1){return this.cache.readFragment({...t,fragment:this.transform(t.fragment)},n)}writeQuery(t){const n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n}writeFragment(t){const n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n}__actionHookForDevTools(t){this.devToolsHookCb=t}__requestRaw(t){return Hx(this.link,t,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(t=>t()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(t=>t())))}onResetStore(t){return this.resetStoreCallbacks.push(t),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(n=>n!==t)}}onClearStore(t){return this.clearStoreCallbacks.push(t),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(n=>n!==t)}}refetchObservableQueries(t){return this.queryManager.refetchObservableQueries(t)}refetchQueries(t){const n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach((l,u)=>{r.push(u),i.push(l)});const o=Promise.all(i);return o.queries=r,o.results=i,o.catch(l=>{}),o}getObservableQueries(t="active"){return this.queryManager.getObservableQueries(t)}extract(t){return this.cache.extract(t)}restore(t){return this.cache.restore(t)}setLink(t){this.link=t}get defaultContext(){return this.queryManager.defaultContext}transform(t,n=!1){const r=this.queryManager.transform(t);return n?this.maskedFragmentTransform.transformDocument(r):r}}const{hasOwnProperty:dk}=Object.prototype;function L$(e){return Nn(e)&&"payload"in e}async function*z$(e){var y;const t=new TextDecoder("utf-8"),n=(y=e.headers)==null?void 0:y.get("content-type"),r=n==null?void 0:n.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),i=`\r
--`+(r?r[1]??r[2]??r[3]??"-":"-");let o="";ze(e.body&&typeof e.body.getReader=="function",62);const u=e.body.getReader();let f=!1,d=!1,p;const m=()=>d&&o[0]=="-"&&o[1]=="-";try{for(;!f;){({value:p,done:f}=await u.read());const g=typeof p=="string"?p:t.decode(p),x=o.length-i.length+1;o+=g;let w=o.indexOf(i,x);for(;w>-1&&!m();){d=!0;let S;[S,o]=[o.slice(0,w),o.slice(w+i.length)];const O=S.indexOf(`\r
\r
`),C=V$(S.slice(0,O))["content-type"];if(C&&C.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");const k=S.slice(O);k&&(yield k),w=o.indexOf(i)}if(m())return}throw new Error("premature end of multipart body")}finally{u.cancel()}}async function B$(e,t){for await(const n of z$(e)){const r=hI(e,n);if(Object.keys(r).length!=0)if(L$(r)){if(Object.keys(r).length===1&&r.payload===null)return;let i={...r.payload};"errors"in r&&(i.extensions={...i.extensions,[_p]:new Tp(r.errors??[])}),t(i)}else t(r)}}function V$(e){const t={};return e.split(`
`).forEach(n=>{const r=n.indexOf(":");if(r>-1){const i=n.slice(0,r).trim().toLowerCase(),o=n.slice(r+1).trim();t[i]=o}}),t}function hI(e,t){if(e.status>=300)throw new Gm(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(n){throw new Km(n,{response:e,bodyText:t})}}function U$(e,t){try{return JSON.parse(t)}catch(n){throw new Km(n,{response:e,bodyText:t})}}function F$(e,t){const n=e.headers.get("content-type");return n!=null&&n.includes("application/graphql-response+json")?U$(e,t):hI(e,t)}function q$(e){return t=>t.text().then(n=>{const r=F$(t,n);if(!Array.isArray(r)&&!dk.call(r,"data")&&!dk.call(r,"errors"))throw new Gm(`Server response was malformed for query '${Array.isArray(e)?e.map(i=>i.operationName):e.operationName}'.`,{response:t,bodyText:n});return r})}const $$={includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},H$={accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},G$={method:"POST"},K$={http:$$,headers:H$,options:G$},Y$=(e,t)=>t(e);function W$(e,t,...n){let r={},i={};n.forEach(p=>{var m;r={...r,...p.options,headers:{...r.headers,...p.headers}},p.credentials&&(r.credentials=p.credentials),r.headers.accept=(((m=p.http)==null?void 0:m.accept)||[]).concat(r.headers.accept).join(","),i={...i,...p.http}}),r.headers=X$(r.headers,i.preserveHeaderCase);const{operationName:o,extensions:l,variables:u,query:f}=e,d={operationName:o,variables:u};return i.includeExtensions&&Object.keys(l||{}).length&&(d.extensions=l),i.includeQuery&&(d.query=t(f,cs)),{options:r,body:d}}function X$(e,t){if(!t){const i={};return Object.keys(Object(e)).forEach(o=>{i[o.toLowerCase()]=e[o]}),i}const n={};Object.keys(Object(e)).forEach(i=>{n[i.toLowerCase()]={originalName:i,value:e[i]}});const r={};return Object.keys(n).forEach(i=>{r[n[i].originalName]=n[i].value}),r}const Q$=(e,t)=>{const r=e.getContext().uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function Z$(e,t){const n=[],r=(d,p)=>{n.push(`${d}=${encodeURIComponent(p)}`)};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){let d;try{d=JSON.stringify(t.variables)}catch(p){return{parseError:p}}r("variables",d)}if(t.extensions){let d;try{d=JSON.stringify(t.extensions)}catch(p){return{parseError:p}}r("extensions",d)}let i="",o=e;const l=e.indexOf("#");l!==-1&&(i=e.substr(l),o=e.substr(0,l));const u=o.indexOf("?")===-1?"?":"&";return{newURI:o+u+n.join("&")+i}}const J$=Xr(()=>fetch);function e9(){}class t9 extends zn{constructor(t={}){let{uri:n="/graphql",fetch:r,print:i=Y$,includeExtensions:o,preserveHeaderCase:l,useGETForQueries:u,includeUnusedVariables:f=!1,...d}=t;const p={http:cr({includeExtensions:o,preserveHeaderCase:l}),options:d.fetchOptions,credentials:d.credentials,headers:d.headers};super(m=>{let y=Q$(m,n);const g=m.getContext(),x={...g.http};i$(m.query)&&(x.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...x.accept||[]]);const w={http:x,options:g.fetchOptions,credentials:g.credentials,headers:g.headers},{options:S,body:O}=W$(m,i,K$,p,w);O.variables&&!f&&(O.variables=e$(O.variables,m.query));let _=new AbortController,C=()=>{_=void 0};if(S.signal){const k=S.signal,N=()=>{_==null||_.abort(k.reason)};k.addEventListener("abort",N,{once:!0}),C=()=>{_==null||_.signal.removeEventListener("abort",C),_=void 0,k.removeEventListener("abort",N),C=e9},_.signal.addEventListener("abort",C,{once:!0})}return S.signal=_.signal,u&&!r$(m.query)&&(S.method="GET"),new _t(k=>{if(S.method==="GET"){const{newURI:R,parseError:P}=Z$(y,O);if(P)throw P;y=R}else S.body=JSON.stringify(O);const N=r||Xr(()=>fetch)||J$,M=k.next.bind(k);return N(y,S).then(R=>{var V;m.setContext({response:R});const P=(V=R.headers)==null?void 0:V.get("content-type");return P!==null&&/^multipart\/mixed/i.test(P)?B$(R,M):q$(m)(R).then(M)}).then(()=>{C(),k.complete()}).catch(R=>{C(),k.error(R)}),()=>{_&&_.abort()}})})}}class n9 extends zn{constructor(t={}){super((n,r)=>{const i=n.client,o=i.queryManager.clientOptions,l=n.getContext();{const{name:u,version:f,transport:d="headers"}=cr({},o.clientAwareness,t.clientAwareness,l.clientAwareness);d==="headers"&&n.setContext(({headers:p})=>({headers:cr({"apollographql-client-name":u,"apollographql-client-version":f},p)}))}{const{transport:u="extensions"}=cr({},o.enhancedClientAwareness,t.enhancedClientAwareness);u==="extensions"&&(n.extensions=cr({clientLibrary:{name:"@apollo/client",version:i.version}},n.extensions)),u==="headers"&&n.setContext(({headers:f})=>({headers:cr({"apollographql-library-name":"@apollo/client","apollographql-library-version":i.version},f)}))}return r(n)})}}class r9 extends zn{constructor(t={}){const{left:n,right:r,request:i}=zn.from([new n9(t),new t9(t)]);super(i),Object.assign(this,{left:n,right:r})}}const i9=(e={})=>new r9(e);var op=new Map,Xx=new Map,pI=!0,Cp=!1;function mI(e){return e.replace(/[\s,]+/g," ").trim()}function a9(e){return mI(e.source.body.substring(e.start,e.end))}function o9(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var i=r.name.value,o=a9(r.loc),l=Xx.get(i);l&&!l.has(o)?pI&&console.warn("Warning: fragment with name "+i+` already exists.
graphql-tag enforces all fragment names across your application to be unique; read more about
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):l||Xx.set(i,l=new Set),l.add(o),t.has(o)||(t.add(o),n.push(r))}else n.push(r)}),Sp(Sp({},e),{definitions:n})}function s9(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var o=r[i];o&&typeof o=="object"&&t.add(o)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function l9(e){var t=mI(e);if(!op.has(t)){var n=e8(e,{experimentalFragmentVariables:Cp,allowLegacyFragmentVariables:Cp});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");op.set(t,s9(o9(n)))}return op.get(t)}function Ze(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];typeof e=="string"&&(e=[e]);var r=e[0];return t.forEach(function(i,o){i&&i.kind==="Document"?r+=i.loc.source.body:r+=i,r+=e[o+1]}),l9(r)}function u9(){op.clear(),Xx.clear()}function c9(){pI=!1}function f9(){Cp=!0}function d9(){Cp=!1}var _c={gql:Ze,resetCaches:u9,disableFragmentWarnings:c9,enableExperimentalFragmentVariables:f9,disableExperimentalFragmentVariables:d9};(function(e){e.gql=_c.gql,e.resetCaches=_c.resetCaches,e.disableFragmentWarnings=_c.disableFragmentWarnings,e.enableExperimentalFragmentVariables=_c.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=_c.disableExperimentalFragmentVariables})(Ze||(Ze={}));Ze.default=Ze;function yI(e,t){const n=E.useRef(void 0);return(!n.current||!We(n.current.deps,t))&&(n.current={value:e(),deps:t}),n.current.value}const h9=Symbol.for("apollo.skipToken"),p9=Symbol.for("apollo.hook.wrappers");function m9(e,t,n){var o;const r=[n.queryManager,e.startsWith("use")?E.useContext(Ow()):void 0];let i=t;for(const l of r){const u=(o=l==null?void 0:l[p9])==null?void 0:o[e];u&&(i=u(i))}return i}const Qx=jR?E.useLayoutEffect:E.useEffect,y9="useSyncExternalStore",v9=ww[y9],g9=Xr(()=>navigator.product)=="ReactNative",b9=Xr(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,x9=(jR||g9)&&!b9,vI=v9||((e,t,n)=>{const r=t(),[{inst:i},o]=E.useState({inst:{value:r,getSnapshot:t}});return x9?E.useLayoutEffect(()=>{Object.assign(i,{value:r,getSnapshot:t}),j0(i)&&o({inst:i})},[e,r,t]):Object.assign(i,{value:r,getSnapshot:t}),E.useEffect(()=>(j0(i)&&o({inst:i}),e(function(){j0(i)&&o({inst:i})})),[e]),r});function j0({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}function ts(e,t){const n=Im(t==null?void 0:t.client),[r,i]=E.useState(()=>hk(n)),o=E.useRef({result:r,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Qx(()=>{Object.assign(o.current,{client:n,options:t,mutation:e})});const l=E.useCallback((f={})=>{const{options:d,mutation:p}=o.current,m={...d,mutation:p},y=f.client||o.current.client,g=typeof f.context=="function"?f.context(d==null?void 0:d.context):f.context;!o.current.result.loading&&o.current.isMounted&&i(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:y});const x=++o.current.mutationId,w=us(m,{...f,context:g});return qx(y.mutate(w).then(S=>{var N,M;const{data:O,error:_}=S,C=f.onError||((N=o.current.options)==null?void 0:N.onError);if(_&&C&&C(_,w),x===o.current.mutationId){const R={called:!0,loading:!1,data:O,error:_,client:y};o.current.isMounted&&!We(o.current.result,R)&&i(o.current.result=R)}const k=f.onCompleted||((M=o.current.options)==null?void 0:M.onCompleted);return _||k==null||k(S.data,w),S},S=>{var _;if(x===o.current.mutationId&&o.current.isMounted){const C={loading:!1,error:S,data:void 0,called:!0,client:y};We(o.current.result,C)||i(o.current.result=C)}const O=f.onError||((_=o.current.options)==null?void 0:_.onError);throw O&&O(S,w),S}))},[]),u=E.useCallback(()=>{if(o.current.isMounted){const f=hk(o.current.client);Object.assign(o.current,{mutationId:0,result:f}),i(f)}},[]);return E.useEffect(()=>{const f=o.current;return f.isMounted=!0,()=>{f.isMounted=!1}},[]),[l,{reset:u,...r}]}function hk(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}const Cc=Symbol();function er(e,...[t]){"use no memo";return m9("useQuery",w9,Im(typeof t=="object"?t.client:void 0))(e,t)}function w9(e,t={}){const n=Im(typeof t=="object"?t.client:void 0),{ssr:r}=typeof t=="object"?t:{},i=S9(e,t,n.defaultOptions.watchQuery);function o(g){const x=n.watchQuery(i);return{client:n,query:e,observable:x,resultData:{current:x.getCurrentResult(),previousData:g==null?void 0:g.resultData.current.data,variables:x.variables}}}let[l,u]=E.useState(o);(n!==l.client||e!==l.query)&&u(l=o(l));const{observable:f,resultData:d}=l;E9(i,f),A9(d,f,i);const p=O9(f,d,r),m=E.useMemo(()=>({refetch:f.refetch.bind(f),fetchMore:f.fetchMore.bind(f),updateQuery:f.updateQuery.bind(f),startPolling:f.startPolling.bind(f),stopPolling:f.stopPolling.bind(f),subscribeToMore:f.subscribeToMore.bind(f)}),[f]),y=d.previousData;return E.useMemo(()=>{const{partial:g,...x}=p;return{...x,client:n,observable:f,variables:f.variables,previousData:y,...m}},[p,n,f,y,m])}const gI=Symbol();function S9(e,t,n){return yI(()=>{if(t===h9){const i={...us(n,{query:e,fetchPolicy:"standby"}),[LR]:!0};return i[gI]=!0,i}const r=us(n,{...t,query:e});return t.skip&&(r.initialFetchPolicy=t.initialFetchPolicy||t.fetchPolicy,r.fetchPolicy="standby"),r},[e,t,n])}function E9(e,t){"use no memo";e.fetchPolicy||(e.fetchPolicy=t.options.initialFetchPolicy)}function O9(e,t,n){"use no memo";const r=e.options.fetchPolicy;return vI(E.useCallback(i=>{const o=e.pipe(Mw(N8)).subscribe(l=>{const u=t.current;We(u,l)&&We(t.variables,e.variables)||(t.variables=e.variables,u.data&&!We(u.data,l.data)&&(t.previousData=u.data),t.current=l,i())});return()=>{setTimeout(()=>o.unsubscribe())}},[e,t]),()=>t.current,()=>r!=="standby"&&n===!1||r==="no-cache"?er.ssrDisabledResult:t.current)}function A9(e,t,n){"use no memo";if(t[Cc]&&!We(t[Cc],n)){t[Cc][gI]&&!n.initialFetchPolicy&&(n.initialFetchPolicy=n.fetchPolicy),T9(t[Cc],n)?t.reobserve(n):t.applyOptions(n);const r=t.getCurrentResult();We(r.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=r,e.variables=t.variables}t[Cc]=n}function T9(e,t){return e.query!==t.query||!We(e.variables,t.variables)||e.fetchPolicy!==t.fetchPolicy&&(t.fetchPolicy==="standby"||e.fetchPolicy==="standby")}er.ssrDisabledResult={loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:je.loading,partial:!0};function Kw(e,...[t={}]){const n=Im(t.client),{skip:r,fetchPolicy:i,errorPolicy:o,shouldResubscribe:l,context:u,extensions:f,ignoreResults:d}=t,p=yI(()=>t.variables,[t.variables]),m=()=>_9(n,e,p,i,o,u,f);let[y,g]=E.useState(t.skip?null:m);const x=E.useRef(m);Qx(()=>{x.current=m}),r?y&&g(y=null):(!y||(n!==y.__.client||e!==y.__.query||i!==y.__.fetchPolicy||o!==y.__.errorPolicy||!We(p,y.__.variables))&&(typeof l=="function"?!!l(t):l)!==!1)&&g(y=m());const w=E.useRef(t);E.useEffect(()=>{w.current=t});const S=!r&&!d,O=E.useMemo(()=>({loading:S,error:void 0,data:void 0}),[S]),_=E.useRef(d);Qx(()=>{_.current=d});const C=vI(E.useCallback(N=>{if(!y)return()=>{};let M=!1;const R=y.__.client,P=y.subscribe({next(V){var Z,F;if(M)return;const H={loading:!1,data:V.data,error:V.error};y.__.setResult(H),_.current||N(),H.error?(F=(Z=w.current).onError)==null||F.call(Z,H.error):w.current.onData&&w.current.onData({client:R,data:H})},complete(){y.__.completed=!0,!M&&w.current.onComplete&&w.current.onComplete()}});return()=>{M=!0,setTimeout(()=>P.unsubscribe())}},[y]),()=>y&&!r&&!d?y.__.result:O,()=>O),k=E.useCallback(()=>{ze(!w.current.skip,33),y!=null&&y.__.completed?g(x.current()):y==null||y.restart()},[y,g,w,x]);return E.useMemo(()=>({...C,restart:k}),[C,k])}function _9(e,t,n,r,i,o,l){const u={query:t,variables:n,fetchPolicy:r,errorPolicy:i,context:o,extensions:l},f={...u,client:e,completed:!1,result:{loading:!0,data:void 0,error:void 0},setResult(d){f.result=d}};return Object.assign(e.subscribe(u),{__:f})}var N0={exports:{}},kc={},M0={exports:{}},P0={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var pk;function C9(){return pk||(pk=1,(function(e){function t(D,q){var B=D.length;D.push(q);e:for(;0<B;){var ce=B-1>>>1,Y=D[ce];if(0<i(Y,q))D[ce]=q,D[B]=Y,B=ce;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var q=D[0],B=D.pop();if(B!==q){D[0]=B;e:for(var ce=0,Y=D.length,I=Y>>>1;ce<I;){var Q=2*(ce+1)-1,ue=D[Q],fe=Q+1,de=D[fe];if(0>i(ue,B))fe<Y&&0>i(de,ue)?(D[ce]=de,D[fe]=B,ce=fe):(D[ce]=ue,D[Q]=B,ce=Q);else if(fe<Y&&0>i(de,B))D[ce]=de,D[fe]=B,ce=fe;else break e}}return q}function i(D,q){var B=D.sortIndex-q.sortIndex;return B!==0?B:D.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],d=[],p=1,m=null,y=3,g=!1,x=!1,w=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function k(D){for(var q=n(d);q!==null;){if(q.callback===null)r(d);else if(q.startTime<=D)r(d),q.sortIndex=q.expirationTime,t(f,q);else break;q=n(d)}}function N(D){if(w=!1,k(D),!x)if(n(f)!==null)x=!0,M||(M=!0,F());else{var q=n(d);q!==null&&ee(N,q.startTime-D)}}var M=!1,R=-1,P=5,V=-1;function H(){return S?!0:!(e.unstable_now()-V<P)}function Z(){if(S=!1,M){var D=e.unstable_now();V=D;var q=!0;try{e:{x=!1,w&&(w=!1,_(R),R=-1),g=!0;var B=y;try{t:{for(k(D),m=n(f);m!==null&&!(m.expirationTime>D&&H());){var ce=m.callback;if(typeof ce=="function"){m.callback=null,y=m.priorityLevel;var Y=ce(m.expirationTime<=D);if(D=e.unstable_now(),typeof Y=="function"){m.callback=Y,k(D),q=!0;break t}m===n(f)&&r(f),k(D)}else r(f);m=n(f)}if(m!==null)q=!0;else{var I=n(d);I!==null&&ee(N,I.startTime-D),q=!1}}break e}finally{m=null,y=B,g=!1}q=void 0}}finally{q?F():M=!1}}}var F;if(typeof C=="function")F=function(){C(Z)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ne=he.port2;he.port1.onmessage=Z,F=function(){ne.postMessage(null)}}else F=function(){O(Z,0)};function ee(D,q){R=O(function(){D(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(D){switch(y){case 1:case 2:case 3:var q=3;break;default:q=y}var B=y;y=q;try{return D()}finally{y=B}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(D,q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var B=y;y=D;try{return q()}finally{y=B}},e.unstable_scheduleCallback=function(D,q,B){var ce=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?ce+B:ce):B=ce,D){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=B+Y,D={id:p++,callback:q,priorityLevel:D,startTime:B,expirationTime:Y,sortIndex:-1},B>ce?(D.sortIndex=B,t(d,D),n(f)===null&&D===n(d)&&(w?(_(R),R=-1):w=!0,ee(N,B-ce))):(D.sortIndex=Y,t(f,D),x||g||(x=!0,M||(M=!0,F()))),D},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(D){var q=y;return function(){var B=y;y=q;try{return D.apply(this,arguments)}finally{y=B}}}})(P0)),P0}var mk;function k9(){return mk||(mk=1,M0.exports=C9()),M0.exports}var D0={exports:{}},Cn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var yk;function j9(){if(yk)return Cn;yk=1;var e=pu();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function o(f,d,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:f,containerInfo:d,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Cn.createPortal=function(f,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(f,d,null,p)},Cn.flushSync=function(f){var d=l.T,p=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=p,r.d.f()}},Cn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},Cn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Cn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var p=d.as,m=u(p,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,g=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:g}):p==="script"&&r.d.X(f,{crossOrigin:m,integrity:y,fetchPriority:g,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Cn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=u(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},Cn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,m=u(p,d.crossOrigin);r.d.L(f,p,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Cn.preloadModule=function(f,d){if(typeof f=="string")if(d){var p=u(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},Cn.requestFormReset=function(f){r.d.r(f)},Cn.unstable_batchedUpdates=function(f,d){return f(d)},Cn.useFormState=function(f,d,p){return l.H.useFormState(f,d,p)},Cn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Cn.version="19.2.4",Cn}var vk;function bI(){if(vk)return D0.exports;vk=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),D0.exports=j9(),D0.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gk;function N9(){if(gk)return kc;gk=1;var e=k9(),t=pu(),n=bI();function r(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function o(a){var s=a,c=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(c=s.return),a=s.return;while(a)}return s.tag===3?c:null}function l(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function u(a){if(a.tag===31){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function f(a){if(o(a)!==a)throw Error(r(188))}function d(a){var s=a.alternate;if(!s){if(s=o(a),s===null)throw Error(r(188));return s!==a?null:a}for(var c=a,h=s;;){var v=c.return;if(v===null)break;var b=v.alternate;if(b===null){if(h=v.return,h!==null){c=h;continue}break}if(v.child===b.child){for(b=v.child;b;){if(b===c)return f(v),a;if(b===h)return f(v),s;b=b.sibling}throw Error(r(188))}if(c.return!==h.return)c=v,h=b;else{for(var T=!1,j=v.child;j;){if(j===c){T=!0,c=v,h=b;break}if(j===h){T=!0,h=v,c=b;break}j=j.sibling}if(!T){for(j=b.child;j;){if(j===c){T=!0,c=b,h=v;break}if(j===h){T=!0,h=b,c=v;break}j=j.sibling}if(!T)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:s}function p(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=p(a),s!==null)return s;a=a.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),C=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function F(a){return a===null||typeof a!="object"?null:(a=Z&&a[Z]||a["@@iterator"],typeof a=="function"?a:null)}var he=Symbol.for("react.client.reference");function ne(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===he?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case w:return"Fragment";case O:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case M:return"SuspenseList";case V:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case x:return"Portal";case C:return a.displayName||"Context";case _:return(a._context.displayName||"Context")+".Consumer";case k:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case R:return s=a.displayName||null,s!==null?s:ne(a.type)||"Memo";case P:s=a._payload,a=a._init;try{return ne(a(s))}catch{}}return null}var ee=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},ce=[],Y=-1;function I(a){return{current:a}}function Q(a){0>Y||(a.current=ce[Y],ce[Y]=null,Y--)}function ue(a,s){Y++,ce[Y]=a.current,a.current=s}var fe=I(null),de=I(null),me=I(null),ke=I(null);function Be(a,s){switch(ue(me,s),ue(de,a),ue(fe,null),s.nodeType){case 9:case 11:a=(a=s.documentElement)&&(a=a.namespaceURI)?M_(a):0;break;default:if(a=s.tagName,s=s.namespaceURI)s=M_(s),a=P_(s,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}Q(fe),ue(fe,a)}function se(){Q(fe),Q(de),Q(me)}function ye(a){a.memoizedState!==null&&ue(ke,a);var s=fe.current,c=P_(s,a.type);s!==c&&(ue(de,a),ue(fe,c))}function Ne(a){de.current===a&&(Q(fe),Q(de)),ke.current===a&&(Q(ke),xc._currentValue=B)}var le,Ct;function Re(a){if(le===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);le=s&&s[1]||"",Ct=-1<c.stack.indexOf(`
    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
`+le+a+Ct}var jt=!1;function lt(a,s){if(!a||jt)return"";jt=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(J){var W=J}Reflect.construct(a,[],ae)}else{try{ae.call()}catch(J){W=J}a.call(ae.prototype)}}else{try{throw Error()}catch(J){W=J}(ae=a())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(J){if(J&&W&&typeof J.stack=="string")return[J.stack,W.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),T=b[0],j=b[1];if(T&&j){var L=T.split(`
`),K=j.split(`
`);for(v=h=0;h<L.length&&!L[h].includes("DetermineComponentFrameRoot");)h++;for(;v<K.length&&!K[v].includes("DetermineComponentFrameRoot");)v++;if(h===L.length||v===K.length)for(h=L.length-1,v=K.length-1;1<=h&&0<=v&&L[h]!==K[v];)v--;for(;1<=h&&0<=v;h--,v--)if(L[h]!==K[v]){if(h!==1||v!==1)do if(h--,v--,0>v||L[h]!==K[v]){var te=`
`+L[h].replace(" at new "," at ");return a.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",a.displayName)),te}while(1<=h&&0<=v);break}}}finally{jt=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?Re(c):""}function Wt(a,s){switch(a.tag){case 26:case 27:case 5:return Re(a.type);case 16:return Re("Lazy");case 13:return a.child!==s&&s!==null?Re("Suspense Fallback"):Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return lt(a.type,!1);case 11:return lt(a.type.render,!1);case 1:return lt(a.type,!0);case 31:return Re("Activity");default:return""}}function qr(a){try{var s="",c=null;do s+=Wt(a,c),c=a,a=a.return;while(a);return s}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}var Nu=Object.prototype.hasOwnProperty,ji=e.unstable_scheduleCallback,Mu=e.unstable_cancelCallback,nr=e.unstable_shouldYield,Gy=e.unstable_requestPaint,Le=e.unstable_now,dd=e.unstable_getCurrentPriorityLevel,Ns=e.unstable_ImmediatePriority,hd=e.unstable_UserBlockingPriority,So=e.unstable_NormalPriority,Ky=e.unstable_LowPriority,Pu=e.unstable_IdlePriority,Ms=e.log,Yy=e.unstable_setDisableYieldValue,Eo=null,Rn=null;function oi(a){if(typeof Ms=="function"&&Yy(a),Rn&&typeof Rn.setStrictMode=="function")try{Rn.setStrictMode(Eo,a)}catch{}}var In=Math.clz32?Math.clz32:Qy,Wy=Math.log,Xy=Math.LN2;function Qy(a){return a>>>=0,a===0?32:31-(Wy(a)/Xy|0)|0}var Ps=256,Oo=262144,Ds=4194304;function Ni(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Rs(a,s,c){var h=a.pendingLanes;if(h===0)return 0;var v=0,b=a.suspendedLanes,T=a.pingedLanes;a=a.warmLanes;var j=h&134217727;return j!==0?(h=j&~b,h!==0?v=Ni(h):(T&=j,T!==0?v=Ni(T):c||(c=j&~a,c!==0&&(v=Ni(c))))):(j=h&~b,j!==0?v=Ni(j):T!==0?v=Ni(T):c||(c=h&~a,c!==0&&(v=Ni(c)))),v===0?0:s!==0&&s!==v&&(s&b)===0&&(b=v&-v,c=s&-s,b>=c||b===32&&(c&4194048)!==0)?s:v}function wa(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function pd(a,s){switch(a){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Du(){var a=Ds;return Ds<<=1,(Ds&62914560)===0&&(Ds=4194304),a}function Is(a){for(var s=[],c=0;31>c;c++)s.push(a);return s}function Sa(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function oe(a,s,c,h,v,b){var T=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var j=a.entanglements,L=a.expirationTimes,K=a.hiddenUpdates;for(c=T&~c;0<c;){var te=31-In(c),ae=1<<te;j[te]=0,L[te]=-1;var W=K[te];if(W!==null)for(K[te]=null,te=0;te<W.length;te++){var J=W[te];J!==null&&(J.lane&=-536870913)}c&=~ae}h!==0&&_e(a,h,0),b!==0&&v===0&&a.tag!==0&&(a.suspendedLanes|=b&~(T&~s))}function _e(a,s,c){a.pendingLanes|=s,a.suspendedLanes&=~s;var h=31-In(s);a.entangledLanes|=s,a.entanglements[h]=a.entanglements[h]|1073741824|c&261930}function Et(a,s){var c=a.entangledLanes|=s;for(a=a.entanglements;c;){var h=31-In(c),v=1<<h;v&s|a[h]&s&&(a[h]|=s),c&=~v}}function Vt(a,s){var c=s&-s;return c=(c&42)!==0?1:Mi(c),(c&(a.suspendedLanes|s))!==0?0:c}function Mi(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Zy(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function vO(){var a=q.p;return a!==0?a:(a=window.event,a===void 0?32:nC(a.type))}function gO(a,s){var c=q.p;try{return q.p=a,s()}finally{q.p=c}}var Ea=Math.random().toString(36).slice(2),yn="__reactFiber$"+Ea,$n="__reactProps$"+Ea,Ls="__reactContainer$"+Ea,Jy="__reactEvents$"+Ea,ZV="__reactListeners$"+Ea,JV="__reactHandles$"+Ea,bO="__reactResources$"+Ea,Ru="__reactMarker$"+Ea;function ev(a){delete a[yn],delete a[$n],delete a[Jy],delete a[ZV],delete a[JV]}function zs(a){var s=a[yn];if(s)return s;for(var c=a.parentNode;c;){if(s=c[Ls]||c[yn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(a=V_(a);a!==null;){if(c=a[yn])return c;a=V_(a)}return s}a=c,c=a.parentNode}return null}function Bs(a){if(a=a[yn]||a[Ls]){var s=a.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return a}return null}function Iu(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a.stateNode;throw Error(r(33))}function Vs(a){var s=a[bO];return s||(s=a[bO]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function sn(a){a[Ru]=!0}var xO=new Set,wO={};function Ao(a,s){Us(a,s),Us(a+"Capture",s)}function Us(a,s){for(wO[a]=s,a=0;a<s.length;a++)xO.add(s[a])}var eU=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),SO={},EO={};function tU(a){return Nu.call(EO,a)?!0:Nu.call(SO,a)?!1:eU.test(a)?EO[a]=!0:(SO[a]=!0,!1)}function md(a,s,c){if(tU(s))if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+c)}}function yd(a,s,c){if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+c)}}function Pi(a,s,c,h){if(h===null)a.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(s,c,""+h)}}function br(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function OO(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function nU(a,s,c){var h=Object.getOwnPropertyDescriptor(a.constructor.prototype,s);if(!a.hasOwnProperty(s)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,b=h.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return v.call(this)},set:function(T){c=""+T,b.call(this,T)}}),Object.defineProperty(a,s,{enumerable:h.enumerable}),{getValue:function(){return c},setValue:function(T){c=""+T},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function tv(a){if(!a._valueTracker){var s=OO(a)?"checked":"value";a._valueTracker=nU(a,s,""+a[s])}}function AO(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var c=s.getValue(),h="";return a&&(h=OO(a)?a.checked?"true":"false":a.value),a=h,a!==c?(s.setValue(a),!0):!1}function vd(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var rU=/[\n"\\]/g;function xr(a){return a.replace(rU,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function nv(a,s,c,h,v,b,T,j){a.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?a.type=T:a.removeAttribute("type"),s!=null?T==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+br(s)):a.value!==""+br(s)&&(a.value=""+br(s)):T!=="submit"&&T!=="reset"||a.removeAttribute("value"),s!=null?rv(a,T,br(s)):c!=null?rv(a,T,br(c)):h!=null&&a.removeAttribute("value"),v==null&&b!=null&&(a.defaultChecked=!!b),v!=null&&(a.checked=v&&typeof v!="function"&&typeof v!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?a.name=""+br(j):a.removeAttribute("name")}function TO(a,s,c,h,v,b,T,j){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(a.type=b),s!=null||c!=null){if(!(b!=="submit"&&b!=="reset"||s!=null)){tv(a);return}c=c!=null?""+br(c):"",s=s!=null?""+br(s):c,j||s===a.value||(a.value=s),a.defaultValue=s}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,a.checked=j?a.checked:!!h,a.defaultChecked=!!h,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(a.name=T),tv(a)}function rv(a,s,c){s==="number"&&vd(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function Fs(a,s,c,h){if(a=a.options,s){s={};for(var v=0;v<c.length;v++)s["$"+c[v]]=!0;for(c=0;c<a.length;c++)v=s.hasOwnProperty("$"+a[c].value),a[c].selected!==v&&(a[c].selected=v),v&&h&&(a[c].defaultSelected=!0)}else{for(c=""+br(c),s=null,v=0;v<a.length;v++){if(a[v].value===c){a[v].selected=!0,h&&(a[v].defaultSelected=!0);return}s!==null||a[v].disabled||(s=a[v])}s!==null&&(s.selected=!0)}}function _O(a,s,c){if(s!=null&&(s=""+br(s),s!==a.value&&(a.value=s),c==null)){a.defaultValue!==s&&(a.defaultValue=s);return}a.defaultValue=c!=null?""+br(c):""}function CO(a,s,c,h){if(s==null){if(h!=null){if(c!=null)throw Error(r(92));if(ee(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),s=c}c=br(s),a.defaultValue=c,h=a.textContent,h===c&&h!==""&&h!==null&&(a.value=h),tv(a)}function qs(a,s){if(s){var c=a.firstChild;if(c&&c===a.lastChild&&c.nodeType===3){c.nodeValue=s;return}}a.textContent=s}var iU=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function kO(a,s,c){var h=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?a.setProperty(s,""):s==="float"?a.cssFloat="":a[s]="":h?a.setProperty(s,c):typeof c!="number"||c===0||iU.has(s)?s==="float"?a.cssFloat=c:a[s]=(""+c).trim():a[s]=c+"px"}function jO(a,s,c){if(s!=null&&typeof s!="object")throw Error(r(62));if(a=a.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?a.setProperty(h,""):h==="float"?a.cssFloat="":a[h]="");for(var v in s)h=s[v],s.hasOwnProperty(v)&&c[v]!==h&&kO(a,v,h)}else for(var b in s)s.hasOwnProperty(b)&&kO(a,b,s[b])}function iv(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var aU=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),oU=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function gd(a){return oU.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Di(){}var av=null;function ov(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var $s=null,Hs=null;function NO(a){var s=Bs(a);if(s&&(a=s.stateNode)){var c=a[$n]||null;e:switch(a=s.stateNode,s.type){case"input":if(nv(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+xr(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var h=c[s];if(h!==a&&h.form===a.form){var v=h[$n]||null;if(!v)throw Error(r(90));nv(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<c.length;s++)h=c[s],h.form===a.form&&AO(h)}break e;case"textarea":_O(a,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&Fs(a,!!c.multiple,s,!1)}}}var sv=!1;function MO(a,s,c){if(sv)return a(s,c);sv=!0;try{var h=a(s);return h}finally{if(sv=!1,($s!==null||Hs!==null)&&(ah(),$s&&(s=$s,a=Hs,Hs=$s=null,NO(s),a)))for(s=0;s<a.length;s++)NO(a[s])}}function Lu(a,s){var c=a.stateNode;if(c===null)return null;var h=c[$n]||null;if(h===null)return null;c=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(a=a.type,h=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!h;break e;default:a=!1}if(a)return null;if(c&&typeof c!="function")throw Error(r(231,s,typeof c));return c}var Ri=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lv=!1;if(Ri)try{var zu={};Object.defineProperty(zu,"passive",{get:function(){lv=!0}}),window.addEventListener("test",zu,zu),window.removeEventListener("test",zu,zu)}catch{lv=!1}var Oa=null,uv=null,bd=null;function PO(){if(bd)return bd;var a,s=uv,c=s.length,h,v="value"in Oa?Oa.value:Oa.textContent,b=v.length;for(a=0;a<c&&s[a]===v[a];a++);var T=c-a;for(h=1;h<=T&&s[c-h]===v[b-h];h++);return bd=v.slice(a,1<h?1-h:void 0)}function xd(a){var s=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function wd(){return!0}function DO(){return!1}function Hn(a){function s(c,h,v,b,T){this._reactName=c,this._targetInst=v,this.type=h,this.nativeEvent=b,this.target=T,this.currentTarget=null;for(var j in a)a.hasOwnProperty(j)&&(c=a[j],this[j]=c?c(b):b[j]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?wd:DO,this.isPropagationStopped=DO,this}return m(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=wd)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=wd)},persist:function(){},isPersistent:wd}),s}var To={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sd=Hn(To),Bu=m({},To,{view:0,detail:0}),sU=Hn(Bu),cv,fv,Vu,Ed=m({},Bu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hv,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Vu&&(Vu&&a.type==="mousemove"?(cv=a.screenX-Vu.screenX,fv=a.screenY-Vu.screenY):fv=cv=0,Vu=a),cv)},movementY:function(a){return"movementY"in a?a.movementY:fv}}),RO=Hn(Ed),lU=m({},Ed,{dataTransfer:0}),uU=Hn(lU),cU=m({},Bu,{relatedTarget:0}),dv=Hn(cU),fU=m({},To,{animationName:0,elapsedTime:0,pseudoElement:0}),dU=Hn(fU),hU=m({},To,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),pU=Hn(hU),mU=m({},To,{data:0}),IO=Hn(mU),yU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vU={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bU(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=gU[a])?!!s[a]:!1}function hv(){return bU}var xU=m({},Bu,{key:function(a){if(a.key){var s=yU[a.key]||a.key;if(s!=="Unidentified")return s}return a.type==="keypress"?(a=xd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?vU[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hv,charCode:function(a){return a.type==="keypress"?xd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?xd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),wU=Hn(xU),SU=m({},Ed,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),LO=Hn(SU),EU=m({},Bu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hv}),OU=Hn(EU),AU=m({},To,{propertyName:0,elapsedTime:0,pseudoElement:0}),TU=Hn(AU),_U=m({},Ed,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),CU=Hn(_U),kU=m({},To,{newState:0,oldState:0}),jU=Hn(kU),NU=[9,13,27,32],pv=Ri&&"CompositionEvent"in window,Uu=null;Ri&&"documentMode"in document&&(Uu=document.documentMode);var MU=Ri&&"TextEvent"in window&&!Uu,zO=Ri&&(!pv||Uu&&8<Uu&&11>=Uu),BO=" ",VO=!1;function UO(a,s){switch(a){case"keyup":return NU.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FO(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Gs=!1;function PU(a,s){switch(a){case"compositionend":return FO(s);case"keypress":return s.which!==32?null:(VO=!0,BO);case"textInput":return a=s.data,a===BO&&VO?null:a;default:return null}}function DU(a,s){if(Gs)return a==="compositionend"||!pv&&UO(a,s)?(a=PO(),bd=uv=Oa=null,Gs=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return zO&&s.locale!=="ko"?null:s.data;default:return null}}var RU={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qO(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!RU[a.type]:s==="textarea"}function $O(a,s,c,h){$s?Hs?Hs.push(h):Hs=[h]:$s=h,s=dh(s,"onChange"),0<s.length&&(c=new Sd("onChange","change",null,c,h),a.push({event:c,listeners:s}))}var Fu=null,qu=null;function IU(a){T_(a,0)}function Od(a){var s=Iu(a);if(AO(s))return a}function HO(a,s){if(a==="change")return s}var GO=!1;if(Ri){var mv;if(Ri){var yv="oninput"in document;if(!yv){var KO=document.createElement("div");KO.setAttribute("oninput","return;"),yv=typeof KO.oninput=="function"}mv=yv}else mv=!1;GO=mv&&(!document.documentMode||9<document.documentMode)}function YO(){Fu&&(Fu.detachEvent("onpropertychange",WO),qu=Fu=null)}function WO(a){if(a.propertyName==="value"&&Od(qu)){var s=[];$O(s,qu,a,ov(a)),MO(IU,s)}}function LU(a,s,c){a==="focusin"?(YO(),Fu=s,qu=c,Fu.attachEvent("onpropertychange",WO)):a==="focusout"&&YO()}function zU(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Od(qu)}function BU(a,s){if(a==="click")return Od(s)}function VU(a,s){if(a==="input"||a==="change")return Od(s)}function UU(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var rr=typeof Object.is=="function"?Object.is:UU;function $u(a,s){if(rr(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var c=Object.keys(a),h=Object.keys(s);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var v=c[h];if(!Nu.call(s,v)||!rr(a[v],s[v]))return!1}return!0}function XO(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function QO(a,s){var c=XO(a);a=0;for(var h;c;){if(c.nodeType===3){if(h=a+c.textContent.length,a<=s&&h>=s)return{node:c,offset:s-a};a=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=XO(c)}}function ZO(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?ZO(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function JO(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=vd(a.document);s instanceof a.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)a=s.contentWindow;else break;s=vd(a.document)}return s}function vv(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}var FU=Ri&&"documentMode"in document&&11>=document.documentMode,Ks=null,gv=null,Hu=null,bv=!1;function eA(a,s,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;bv||Ks==null||Ks!==vd(h)||(h=Ks,"selectionStart"in h&&vv(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Hu&&$u(Hu,h)||(Hu=h,h=dh(gv,"onSelect"),0<h.length&&(s=new Sd("onSelect","select",null,s,c),a.push({event:s,listeners:h}),s.target=Ks)))}function _o(a,s){var c={};return c[a.toLowerCase()]=s.toLowerCase(),c["Webkit"+a]="webkit"+s,c["Moz"+a]="moz"+s,c}var Ys={animationend:_o("Animation","AnimationEnd"),animationiteration:_o("Animation","AnimationIteration"),animationstart:_o("Animation","AnimationStart"),transitionrun:_o("Transition","TransitionRun"),transitionstart:_o("Transition","TransitionStart"),transitioncancel:_o("Transition","TransitionCancel"),transitionend:_o("Transition","TransitionEnd")},xv={},tA={};Ri&&(tA=document.createElement("div").style,"AnimationEvent"in window||(delete Ys.animationend.animation,delete Ys.animationiteration.animation,delete Ys.animationstart.animation),"TransitionEvent"in window||delete Ys.transitionend.transition);function Co(a){if(xv[a])return xv[a];if(!Ys[a])return a;var s=Ys[a],c;for(c in s)if(s.hasOwnProperty(c)&&c in tA)return xv[a]=s[c];return a}var nA=Co("animationend"),rA=Co("animationiteration"),iA=Co("animationstart"),qU=Co("transitionrun"),$U=Co("transitionstart"),HU=Co("transitioncancel"),aA=Co("transitionend"),oA=new Map,wv="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");wv.push("scrollEnd");function $r(a,s){oA.set(a,s),Ao(s,[a])}var Ad=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},wr=[],Ws=0,Sv=0;function Td(){for(var a=Ws,s=Sv=Ws=0;s<a;){var c=wr[s];wr[s++]=null;var h=wr[s];wr[s++]=null;var v=wr[s];wr[s++]=null;var b=wr[s];if(wr[s++]=null,h!==null&&v!==null){var T=h.pending;T===null?v.next=v:(v.next=T.next,T.next=v),h.pending=v}b!==0&&sA(c,v,b)}}function _d(a,s,c,h){wr[Ws++]=a,wr[Ws++]=s,wr[Ws++]=c,wr[Ws++]=h,Sv|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function Ev(a,s,c,h){return _d(a,s,c,h),Cd(a)}function ko(a,s){return _d(a,null,null,s),Cd(a)}function sA(a,s,c){a.lanes|=c;var h=a.alternate;h!==null&&(h.lanes|=c);for(var v=!1,b=a.return;b!==null;)b.childLanes|=c,h=b.alternate,h!==null&&(h.childLanes|=c),b.tag===22&&(a=b.stateNode,a===null||a._visibility&1||(v=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,v&&s!==null&&(v=31-In(c),a=b.hiddenUpdates,h=a[v],h===null?a[v]=[s]:h.push(s),s.lane=c|536870912),b):null}function Cd(a){if(50<hc)throw hc=0,Mg=null,Error(r(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}var Xs={};function GU(a,s,c,h){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ir(a,s,c,h){return new GU(a,s,c,h)}function Ov(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ii(a,s){var c=a.alternate;return c===null?(c=ir(a.tag,s,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=s,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&65011712,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,s=a.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c.refCleanup=a.refCleanup,c}function lA(a,s){a.flags&=65011714;var c=a.alternate;return c===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,s=c.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}function kd(a,s,c,h,v,b){var T=0;if(h=a,typeof a=="function")Ov(a)&&(T=1);else if(typeof a=="string")T=Q6(a,c,fe.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case V:return a=ir(31,c,s,v),a.elementType=V,a.lanes=b,a;case w:return jo(c.children,v,b,s);case S:T=8,v|=24;break;case O:return a=ir(12,c,s,v|2),a.elementType=O,a.lanes=b,a;case N:return a=ir(13,c,s,v),a.elementType=N,a.lanes=b,a;case M:return a=ir(19,c,s,v),a.elementType=M,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case C:T=10;break e;case _:T=9;break e;case k:T=11;break e;case R:T=14;break e;case P:T=16,h=null;break e}T=29,c=Error(r(130,a===null?"null":typeof a,"")),h=null}return s=ir(T,c,s,v),s.elementType=a,s.type=h,s.lanes=b,s}function jo(a,s,c,h){return a=ir(7,a,h,s),a.lanes=c,a}function Av(a,s,c){return a=ir(6,a,null,s),a.lanes=c,a}function uA(a){var s=ir(18,null,null,0);return s.stateNode=a,s}function Tv(a,s,c){return s=ir(4,a.children!==null?a.children:[],a.key,s),s.lanes=c,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}var cA=new WeakMap;function Sr(a,s){if(typeof a=="object"&&a!==null){var c=cA.get(a);return c!==void 0?c:(s={value:a,source:s,stack:qr(s)},cA.set(a,s),s)}return{value:a,source:s,stack:qr(s)}}var Qs=[],Zs=0,jd=null,Gu=0,Er=[],Or=0,Aa=null,si=1,li="";function Li(a,s){Qs[Zs++]=Gu,Qs[Zs++]=jd,jd=a,Gu=s}function fA(a,s,c){Er[Or++]=si,Er[Or++]=li,Er[Or++]=Aa,Aa=a;var h=si;a=li;var v=32-In(h)-1;h&=~(1<<v),c+=1;var b=32-In(s)+v;if(30<b){var T=v-v%5;b=(h&(1<<T)-1).toString(32),h>>=T,v-=T,si=1<<32-In(s)+v|c<<v|h,li=b+a}else si=1<<b|c<<v|h,li=a}function _v(a){a.return!==null&&(Li(a,1),fA(a,1,0))}function Cv(a){for(;a===jd;)jd=Qs[--Zs],Qs[Zs]=null,Gu=Qs[--Zs],Qs[Zs]=null;for(;a===Aa;)Aa=Er[--Or],Er[Or]=null,li=Er[--Or],Er[Or]=null,si=Er[--Or],Er[Or]=null}function dA(a,s){Er[Or++]=si,Er[Or++]=li,Er[Or++]=Aa,si=s.id,li=s.overflow,Aa=a}var vn=null,yt=null,Ge=!1,Ta=null,Ar=!1,kv=Error(r(519));function _a(a){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ku(Sr(s,a)),kv}function hA(a){var s=a.stateNode,c=a.type,h=a.memoizedProps;switch(s[yn]=a,s[$n]=h,c){case"dialog":Fe("cancel",s),Fe("close",s);break;case"iframe":case"object":case"embed":Fe("load",s);break;case"video":case"audio":for(c=0;c<mc.length;c++)Fe(mc[c],s);break;case"source":Fe("error",s);break;case"img":case"image":case"link":Fe("error",s),Fe("load",s);break;case"details":Fe("toggle",s);break;case"input":Fe("invalid",s),TO(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Fe("invalid",s);break;case"textarea":Fe("invalid",s),CO(s,h.value,h.defaultValue,h.children)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||h.suppressHydrationWarning===!0||j_(s.textContent,c)?(h.popover!=null&&(Fe("beforetoggle",s),Fe("toggle",s)),h.onScroll!=null&&Fe("scroll",s),h.onScrollEnd!=null&&Fe("scrollend",s),h.onClick!=null&&(s.onclick=Di),s=!0):s=!1,s||_a(a,!0)}function pA(a){for(vn=a.return;vn;)switch(vn.tag){case 5:case 31:case 13:Ar=!1;return;case 27:case 3:Ar=!0;return;default:vn=vn.return}}function Js(a){if(a!==vn)return!1;if(!Ge)return pA(a),Ge=!0,!1;var s=a.tag,c;if((c=s!==3&&s!==27)&&((c=s===5)&&(c=a.type,c=!(c!=="form"&&c!=="button")||Kg(a.type,a.memoizedProps)),c=!c),c&&yt&&_a(a),pA(a),s===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));yt=B_(a)}else if(s===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));yt=B_(a)}else s===27?(s=yt,Ua(a.type)?(a=Zg,Zg=null,yt=a):yt=s):yt=vn?_r(a.stateNode.nextSibling):null;return!0}function No(){yt=vn=null,Ge=!1}function jv(){var a=Ta;return a!==null&&(Wn===null?Wn=a:Wn.push.apply(Wn,a),Ta=null),a}function Ku(a){Ta===null?Ta=[a]:Ta.push(a)}var Nv=I(null),Mo=null,zi=null;function Ca(a,s,c){ue(Nv,s._currentValue),s._currentValue=c}function Bi(a){a._currentValue=Nv.current,Q(Nv)}function Mv(a,s,c){for(;a!==null;){var h=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),a===c)break;a=a.return}}function Pv(a,s,c,h){var v=a.child;for(v!==null&&(v.return=a);v!==null;){var b=v.dependencies;if(b!==null){var T=v.child;b=b.firstContext;e:for(;b!==null;){var j=b;b=v;for(var L=0;L<s.length;L++)if(j.context===s[L]){b.lanes|=c,j=b.alternate,j!==null&&(j.lanes|=c),Mv(b.return,c,a),h||(T=null);break e}b=j.next}}else if(v.tag===18){if(T=v.return,T===null)throw Error(r(341));T.lanes|=c,b=T.alternate,b!==null&&(b.lanes|=c),Mv(T,c,a),T=null}else T=v.child;if(T!==null)T.return=v;else for(T=v;T!==null;){if(T===a){T=null;break}if(v=T.sibling,v!==null){v.return=T.return,T=v;break}T=T.return}v=T}}function el(a,s,c,h){a=null;for(var v=s,b=!1;v!==null;){if(!b){if((v.flags&524288)!==0)b=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var T=v.alternate;if(T===null)throw Error(r(387));if(T=T.memoizedProps,T!==null){var j=v.type;rr(v.pendingProps.value,T.value)||(a!==null?a.push(j):a=[j])}}else if(v===ke.current){if(T=v.alternate,T===null)throw Error(r(387));T.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(a!==null?a.push(xc):a=[xc])}v=v.return}a!==null&&Pv(s,a,c,h),s.flags|=262144}function Nd(a){for(a=a.firstContext;a!==null;){if(!rr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Po(a){Mo=a,zi=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function gn(a){return mA(Mo,a)}function Md(a,s){return Mo===null&&Po(a),mA(a,s)}function mA(a,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},zi===null){if(a===null)throw Error(r(308));zi=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else zi=zi.next=s;return c}var KU=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(c,h){a.push(h)}};this.abort=function(){s.aborted=!0,a.forEach(function(c){return c()})}},YU=e.unstable_scheduleCallback,WU=e.unstable_NormalPriority,Ut={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dv(){return{controller:new KU,data:new Map,refCount:0}}function Yu(a){a.refCount--,a.refCount===0&&YU(WU,function(){a.controller.abort()})}var Wu=null,Rv=0,tl=0,nl=null;function XU(a,s){if(Wu===null){var c=Wu=[];Rv=0,tl=zg(),nl={status:"pending",value:void 0,then:function(h){c.push(h)}}}return Rv++,s.then(yA,yA),s}function yA(){if(--Rv===0&&Wu!==null){nl!==null&&(nl.status="fulfilled");var a=Wu;Wu=null,tl=0,nl=null;for(var s=0;s<a.length;s++)(0,a[s])()}}function QU(a,s){var c=[],h={status:"pending",value:null,reason:null,then:function(v){c.push(v)}};return a.then(function(){h.status="fulfilled",h.value=s;for(var v=0;v<c.length;v++)(0,c[v])(s)},function(v){for(h.status="rejected",h.reason=v,v=0;v<c.length;v++)(0,c[v])(void 0)}),h}var vA=D.S;D.S=function(a,s){e_=Le(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&XU(a,s),vA!==null&&vA(a,s)};var Do=I(null);function Iv(){var a=Do.current;return a!==null?a:ut.pooledCache}function Pd(a,s){s===null?ue(Do,Do.current):ue(Do,s.pool)}function gA(){var a=Iv();return a===null?null:{parent:Ut._currentValue,pool:a}}var rl=Error(r(460)),Lv=Error(r(474)),Dd=Error(r(542)),Rd={then:function(){}};function bA(a){return a=a.status,a==="fulfilled"||a==="rejected"}function xA(a,s,c){switch(c=a[c],c===void 0?a.push(s):c!==s&&(s.then(Di,Di),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,SA(a),a;default:if(typeof s.status=="string")s.then(Di,Di);else{if(a=ut,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=s,a.status="pending",a.then(function(h){if(s.status==="pending"){var v=s;v.status="fulfilled",v.value=h}},function(h){if(s.status==="pending"){var v=s;v.status="rejected",v.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,SA(a),a}throw Io=s,rl}}function Ro(a){try{var s=a._init;return s(a._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(Io=c,rl):c}}var Io=null;function wA(){if(Io===null)throw Error(r(459));var a=Io;return Io=null,a}function SA(a){if(a===rl||a===Dd)throw Error(r(483))}var il=null,Xu=0;function Id(a){var s=Xu;return Xu+=1,il===null&&(il=[]),xA(il,a,s)}function Qu(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}function Ld(a,s){throw s.$$typeof===y?Error(r(525)):(a=Object.prototype.toString.call(s),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}function EA(a){function s(U,z){if(a){var G=U.deletions;G===null?(U.deletions=[z],U.flags|=16):G.push(z)}}function c(U,z){if(!a)return null;for(;z!==null;)s(U,z),z=z.sibling;return null}function h(U){for(var z=new Map;U!==null;)U.key!==null?z.set(U.key,U):z.set(U.index,U),U=U.sibling;return z}function v(U,z){return U=Ii(U,z),U.index=0,U.sibling=null,U}function b(U,z,G){return U.index=G,a?(G=U.alternate,G!==null?(G=G.index,G<z?(U.flags|=67108866,z):G):(U.flags|=67108866,z)):(U.flags|=1048576,z)}function T(U){return a&&U.alternate===null&&(U.flags|=67108866),U}function j(U,z,G,re){return z===null||z.tag!==6?(z=Av(G,U.mode,re),z.return=U,z):(z=v(z,G),z.return=U,z)}function L(U,z,G,re){var Te=G.type;return Te===w?te(U,z,G.props.children,re,G.key):z!==null&&(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===P&&Ro(Te)===z.type)?(z=v(z,G.props),Qu(z,G),z.return=U,z):(z=kd(G.type,G.key,G.props,null,U.mode,re),Qu(z,G),z.return=U,z)}function K(U,z,G,re){return z===null||z.tag!==4||z.stateNode.containerInfo!==G.containerInfo||z.stateNode.implementation!==G.implementation?(z=Tv(G,U.mode,re),z.return=U,z):(z=v(z,G.children||[]),z.return=U,z)}function te(U,z,G,re,Te){return z===null||z.tag!==7?(z=jo(G,U.mode,re,Te),z.return=U,z):(z=v(z,G),z.return=U,z)}function ae(U,z,G){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Av(""+z,U.mode,G),z.return=U,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case g:return G=kd(z.type,z.key,z.props,null,U.mode,G),Qu(G,z),G.return=U,G;case x:return z=Tv(z,U.mode,G),z.return=U,z;case P:return z=Ro(z),ae(U,z,G)}if(ee(z)||F(z))return z=jo(z,U.mode,G,null),z.return=U,z;if(typeof z.then=="function")return ae(U,Id(z),G);if(z.$$typeof===C)return ae(U,Md(U,z),G);Ld(U,z)}return null}function W(U,z,G,re){var Te=z!==null?z.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Te!==null?null:j(U,z,""+G,re);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case g:return G.key===Te?L(U,z,G,re):null;case x:return G.key===Te?K(U,z,G,re):null;case P:return G=Ro(G),W(U,z,G,re)}if(ee(G)||F(G))return Te!==null?null:te(U,z,G,re,null);if(typeof G.then=="function")return W(U,z,Id(G),re);if(G.$$typeof===C)return W(U,z,Md(U,G),re);Ld(U,G)}return null}function J(U,z,G,re,Te){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return U=U.get(G)||null,j(z,U,""+re,Te);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case g:return U=U.get(re.key===null?G:re.key)||null,L(z,U,re,Te);case x:return U=U.get(re.key===null?G:re.key)||null,K(z,U,re,Te);case P:return re=Ro(re),J(U,z,G,re,Te)}if(ee(re)||F(re))return U=U.get(G)||null,te(z,U,re,Te,null);if(typeof re.then=="function")return J(U,z,G,Id(re),Te);if(re.$$typeof===C)return J(U,z,G,Md(z,re),Te);Ld(z,re)}return null}function be(U,z,G,re){for(var Te=null,Xe=null,Oe=z,Ie=z=0,$e=null;Oe!==null&&Ie<G.length;Ie++){Oe.index>Ie?($e=Oe,Oe=null):$e=Oe.sibling;var Qe=W(U,Oe,G[Ie],re);if(Qe===null){Oe===null&&(Oe=$e);break}a&&Oe&&Qe.alternate===null&&s(U,Oe),z=b(Qe,z,Ie),Xe===null?Te=Qe:Xe.sibling=Qe,Xe=Qe,Oe=$e}if(Ie===G.length)return c(U,Oe),Ge&&Li(U,Ie),Te;if(Oe===null){for(;Ie<G.length;Ie++)Oe=ae(U,G[Ie],re),Oe!==null&&(z=b(Oe,z,Ie),Xe===null?Te=Oe:Xe.sibling=Oe,Xe=Oe);return Ge&&Li(U,Ie),Te}for(Oe=h(Oe);Ie<G.length;Ie++)$e=J(Oe,U,Ie,G[Ie],re),$e!==null&&(a&&$e.alternate!==null&&Oe.delete($e.key===null?Ie:$e.key),z=b($e,z,Ie),Xe===null?Te=$e:Xe.sibling=$e,Xe=$e);return a&&Oe.forEach(function(Ga){return s(U,Ga)}),Ge&&Li(U,Ie),Te}function Ce(U,z,G,re){if(G==null)throw Error(r(151));for(var Te=null,Xe=null,Oe=z,Ie=z=0,$e=null,Qe=G.next();Oe!==null&&!Qe.done;Ie++,Qe=G.next()){Oe.index>Ie?($e=Oe,Oe=null):$e=Oe.sibling;var Ga=W(U,Oe,Qe.value,re);if(Ga===null){Oe===null&&(Oe=$e);break}a&&Oe&&Ga.alternate===null&&s(U,Oe),z=b(Ga,z,Ie),Xe===null?Te=Ga:Xe.sibling=Ga,Xe=Ga,Oe=$e}if(Qe.done)return c(U,Oe),Ge&&Li(U,Ie),Te;if(Oe===null){for(;!Qe.done;Ie++,Qe=G.next())Qe=ae(U,Qe.value,re),Qe!==null&&(z=b(Qe,z,Ie),Xe===null?Te=Qe:Xe.sibling=Qe,Xe=Qe);return Ge&&Li(U,Ie),Te}for(Oe=h(Oe);!Qe.done;Ie++,Qe=G.next())Qe=J(Oe,U,Ie,Qe.value,re),Qe!==null&&(a&&Qe.alternate!==null&&Oe.delete(Qe.key===null?Ie:Qe.key),z=b(Qe,z,Ie),Xe===null?Te=Qe:Xe.sibling=Qe,Xe=Qe);return a&&Oe.forEach(function(lF){return s(U,lF)}),Ge&&Li(U,Ie),Te}function ot(U,z,G,re){if(typeof G=="object"&&G!==null&&G.type===w&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case g:e:{for(var Te=G.key;z!==null;){if(z.key===Te){if(Te=G.type,Te===w){if(z.tag===7){c(U,z.sibling),re=v(z,G.props.children),re.return=U,U=re;break e}}else if(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===P&&Ro(Te)===z.type){c(U,z.sibling),re=v(z,G.props),Qu(re,G),re.return=U,U=re;break e}c(U,z);break}else s(U,z);z=z.sibling}G.type===w?(re=jo(G.props.children,U.mode,re,G.key),re.return=U,U=re):(re=kd(G.type,G.key,G.props,null,U.mode,re),Qu(re,G),re.return=U,U=re)}return T(U);case x:e:{for(Te=G.key;z!==null;){if(z.key===Te)if(z.tag===4&&z.stateNode.containerInfo===G.containerInfo&&z.stateNode.implementation===G.implementation){c(U,z.sibling),re=v(z,G.children||[]),re.return=U,U=re;break e}else{c(U,z);break}else s(U,z);z=z.sibling}re=Tv(G,U.mode,re),re.return=U,U=re}return T(U);case P:return G=Ro(G),ot(U,z,G,re)}if(ee(G))return be(U,z,G,re);if(F(G)){if(Te=F(G),typeof Te!="function")throw Error(r(150));return G=Te.call(G),Ce(U,z,G,re)}if(typeof G.then=="function")return ot(U,z,Id(G),re);if(G.$$typeof===C)return ot(U,z,Md(U,G),re);Ld(U,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,z!==null&&z.tag===6?(c(U,z.sibling),re=v(z,G),re.return=U,U=re):(c(U,z),re=Av(G,U.mode,re),re.return=U,U=re),T(U)):c(U,z)}return function(U,z,G,re){try{Xu=0;var Te=ot(U,z,G,re);return il=null,Te}catch(Oe){if(Oe===rl||Oe===Dd)throw Oe;var Xe=ir(29,Oe,null,U.mode);return Xe.lanes=re,Xe.return=U,Xe}finally{}}}var Lo=EA(!0),OA=EA(!1),ka=!1;function zv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bv(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function ja(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Na(a,s,c){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(et&2)!==0){var v=h.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,s=Cd(a),sA(a,null,c),s}return _d(a,h,s,c),Cd(a)}function Zu(a,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194048)!==0)){var h=s.lanes;h&=a.pendingLanes,c|=h,s.lanes=c,Et(a,c)}}function Vv(a,s){var c=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var v=null,b=null;if(c=c.firstBaseUpdate,c!==null){do{var T={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};b===null?v=b=T:b=b.next=T,c=c.next}while(c!==null);b===null?v=b=s:b=b.next=s}else v=b=s;c={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:b,shared:h.shared,callbacks:h.callbacks},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=s:a.next=s,c.lastBaseUpdate=s}var Uv=!1;function Ju(){if(Uv){var a=nl;if(a!==null)throw a}}function ec(a,s,c,h){Uv=!1;var v=a.updateQueue;ka=!1;var b=v.firstBaseUpdate,T=v.lastBaseUpdate,j=v.shared.pending;if(j!==null){v.shared.pending=null;var L=j,K=L.next;L.next=null,T===null?b=K:T.next=K,T=L;var te=a.alternate;te!==null&&(te=te.updateQueue,j=te.lastBaseUpdate,j!==T&&(j===null?te.firstBaseUpdate=K:j.next=K,te.lastBaseUpdate=L))}if(b!==null){var ae=v.baseState;T=0,te=K=L=null,j=b;do{var W=j.lane&-536870913,J=W!==j.lane;if(J?(qe&W)===W:(h&W)===W){W!==0&&W===tl&&(Uv=!0),te!==null&&(te=te.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var be=a,Ce=j;W=s;var ot=c;switch(Ce.tag){case 1:if(be=Ce.payload,typeof be=="function"){ae=be.call(ot,ae,W);break e}ae=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Ce.payload,W=typeof be=="function"?be.call(ot,ae,W):be,W==null)break e;ae=m({},ae,W);break e;case 2:ka=!0}}W=j.callback,W!==null&&(a.flags|=64,J&&(a.flags|=8192),J=v.callbacks,J===null?v.callbacks=[W]:J.push(W))}else J={lane:W,tag:j.tag,payload:j.payload,callback:j.callback,next:null},te===null?(K=te=J,L=ae):te=te.next=J,T|=W;if(j=j.next,j===null){if(j=v.shared.pending,j===null)break;J=j,j=J.next,J.next=null,v.lastBaseUpdate=J,v.shared.pending=null}}while(!0);te===null&&(L=ae),v.baseState=L,v.firstBaseUpdate=K,v.lastBaseUpdate=te,b===null&&(v.shared.lanes=0),Ia|=T,a.lanes=T,a.memoizedState=ae}}function AA(a,s){if(typeof a!="function")throw Error(r(191,a));a.call(s)}function TA(a,s){var c=a.callbacks;if(c!==null)for(a.callbacks=null,a=0;a<c.length;a++)AA(c[a],s)}var al=I(null),zd=I(0);function _A(a,s){a=Yi,ue(zd,a),ue(al,s),Yi=a|s.baseLanes}function Fv(){ue(zd,Yi),ue(al,al.current)}function qv(){Yi=zd.current,Q(al),Q(zd)}var ar=I(null),Tr=null;function Ma(a){var s=a.alternate;ue(zt,zt.current&1),ue(ar,a),Tr===null&&(s===null||al.current!==null||s.memoizedState!==null)&&(Tr=a)}function $v(a){ue(zt,zt.current),ue(ar,a),Tr===null&&(Tr=a)}function CA(a){a.tag===22?(ue(zt,zt.current),ue(ar,a),Tr===null&&(Tr=a)):Pa()}function Pa(){ue(zt,zt.current),ue(ar,ar.current)}function or(a){Q(ar),Tr===a&&(Tr=null),Q(zt)}var zt=I(0);function Bd(a){for(var s=a;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||Xg(c)||Qg(c)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Vi=0,De=null,it=null,Ft=null,Vd=!1,ol=!1,zo=!1,Ud=0,tc=0,sl=null,ZU=0;function Nt(){throw Error(r(321))}function Hv(a,s){if(s===null)return!1;for(var c=0;c<s.length&&c<a.length;c++)if(!rr(a[c],s[c]))return!1;return!0}function Gv(a,s,c,h,v,b){return Vi=b,De=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,D.H=a===null||a.memoizedState===null?fT:sg,zo=!1,b=c(h,v),zo=!1,ol&&(b=jA(s,c,h,v)),kA(a),b}function kA(a){D.H=ic;var s=it!==null&&it.next!==null;if(Vi=0,Ft=it=De=null,Vd=!1,tc=0,sl=null,s)throw Error(r(300));a===null||qt||(a=a.dependencies,a!==null&&Nd(a)&&(qt=!0))}function jA(a,s,c,h){De=a;var v=0;do{if(ol&&(sl=null),tc=0,ol=!1,25<=v)throw Error(r(301));if(v+=1,Ft=it=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}D.H=dT,b=s(c,h)}while(ol);return b}function JU(){var a=D.H,s=a.useState()[0];return s=typeof s.then=="function"?nc(s):s,a=a.useState()[0],(it!==null?it.memoizedState:null)!==a&&(De.flags|=1024),s}function Kv(){var a=Ud!==0;return Ud=0,a}function Yv(a,s,c){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~c}function Wv(a){if(Vd){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}Vd=!1}Vi=0,Ft=it=De=null,ol=!1,tc=Ud=0,sl=null}function Ln(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?De.memoizedState=Ft=a:Ft=Ft.next=a,Ft}function Bt(){if(it===null){var a=De.alternate;a=a!==null?a.memoizedState:null}else a=it.next;var s=Ft===null?De.memoizedState:Ft.next;if(s!==null)Ft=s,it=a;else{if(a===null)throw De.alternate===null?Error(r(467)):Error(r(310));it=a,a={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},Ft===null?De.memoizedState=Ft=a:Ft=Ft.next=a}return Ft}function Fd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nc(a){var s=tc;return tc+=1,sl===null&&(sl=[]),a=xA(sl,a,s),s=De,(Ft===null?s.memoizedState:Ft.next)===null&&(s=s.alternate,D.H=s===null||s.memoizedState===null?fT:sg),a}function qd(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return nc(a);if(a.$$typeof===C)return gn(a)}throw Error(r(438,String(a)))}function Xv(a){var s=null,c=De.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var h=De.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=Fd(),De.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(a),h=0;h<a;h++)c[h]=H;return s.index++,c}function Ui(a,s){return typeof s=="function"?s(a):s}function $d(a){var s=Bt();return Qv(s,it,a)}function Qv(a,s,c){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var v=a.baseQueue,b=h.pending;if(b!==null){if(v!==null){var T=v.next;v.next=b.next,b.next=T}s.baseQueue=v=b,h.pending=null}if(b=a.baseState,v===null)a.memoizedState=b;else{s=v.next;var j=T=null,L=null,K=s,te=!1;do{var ae=K.lane&-536870913;if(ae!==K.lane?(qe&ae)===ae:(Vi&ae)===ae){var W=K.revertLane;if(W===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ae===tl&&(te=!0);else if((Vi&W)===W){K=K.next,W===tl&&(te=!0);continue}else ae={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},L===null?(j=L=ae,T=b):L=L.next=ae,De.lanes|=W,Ia|=W;ae=K.action,zo&&c(b,ae),b=K.hasEagerState?K.eagerState:c(b,ae)}else W={lane:ae,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},L===null?(j=L=W,T=b):L=L.next=W,De.lanes|=ae,Ia|=ae;K=K.next}while(K!==null&&K!==s);if(L===null?T=b:L.next=j,!rr(b,a.memoizedState)&&(qt=!0,te&&(c=nl,c!==null)))throw c;a.memoizedState=b,a.baseState=T,a.baseQueue=L,h.lastRenderedState=b}return v===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function Zv(a){var s=Bt(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=a;var h=c.dispatch,v=c.pending,b=s.memoizedState;if(v!==null){c.pending=null;var T=v=v.next;do b=a(b,T.action),T=T.next;while(T!==v);rr(b,s.memoizedState)||(qt=!0),s.memoizedState=b,s.baseQueue===null&&(s.baseState=b),c.lastRenderedState=b}return[b,h]}function NA(a,s,c){var h=De,v=Bt(),b=Ge;if(b){if(c===void 0)throw Error(r(407));c=c()}else c=s();var T=!rr((it||v).memoizedState,c);if(T&&(v.memoizedState=c,qt=!0),v=v.queue,tg(DA.bind(null,h,v,a),[a]),v.getSnapshot!==s||T||Ft!==null&&Ft.memoizedState.tag&1){if(h.flags|=2048,ll(9,{destroy:void 0},PA.bind(null,h,v,c,s),null),ut===null)throw Error(r(349));b||(Vi&127)!==0||MA(h,s,c)}return c}function MA(a,s,c){a.flags|=16384,a={getSnapshot:s,value:c},s=De.updateQueue,s===null?(s=Fd(),De.updateQueue=s,s.stores=[a]):(c=s.stores,c===null?s.stores=[a]:c.push(a))}function PA(a,s,c,h){s.value=c,s.getSnapshot=h,RA(s)&&IA(a)}function DA(a,s,c){return c(function(){RA(s)&&IA(a)})}function RA(a){var s=a.getSnapshot;a=a.value;try{var c=s();return!rr(a,c)}catch{return!0}}function IA(a){var s=ko(a,2);s!==null&&Xn(s,a,2)}function Jv(a){var s=Ln();if(typeof a=="function"){var c=a;if(a=c(),zo){oi(!0);try{c()}finally{oi(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ui,lastRenderedState:a},s}function LA(a,s,c,h){return a.baseState=c,Qv(a,it,typeof h=="function"?h:Ui)}function e6(a,s,c,h,v){if(Kd(a))throw Error(r(485));if(a=s.action,a!==null){var b={payload:v,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){b.listeners.push(T)}};D.T!==null?c(!0):b.isTransition=!1,h(b),c=s.pending,c===null?(b.next=s.pending=b,zA(s,b)):(b.next=c.next,s.pending=c.next=b)}}function zA(a,s){var c=s.action,h=s.payload,v=a.state;if(s.isTransition){var b=D.T,T={};D.T=T;try{var j=c(v,h),L=D.S;L!==null&&L(T,j),BA(a,s,j)}catch(K){eg(a,s,K)}finally{b!==null&&T.types!==null&&(b.types=T.types),D.T=b}}else try{b=c(v,h),BA(a,s,b)}catch(K){eg(a,s,K)}}function BA(a,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){VA(a,s,h)},function(h){return eg(a,s,h)}):VA(a,s,c)}function VA(a,s,c){s.status="fulfilled",s.value=c,UA(s),a.state=c,s=a.pending,s!==null&&(c=s.next,c===s?a.pending=null:(c=c.next,s.next=c,zA(a,c)))}function eg(a,s,c){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=c,UA(s),s=s.next;while(s!==h)}a.action=null}function UA(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}function FA(a,s){return s}function qA(a,s){if(Ge){var c=ut.formState;if(c!==null){e:{var h=De;if(Ge){if(yt){t:{for(var v=yt,b=Ar;v.nodeType!==8;){if(!b){v=null;break t}if(v=_r(v.nextSibling),v===null){v=null;break t}}b=v.data,v=b==="F!"||b==="F"?v:null}if(v){yt=_r(v.nextSibling),h=v.data==="F!";break e}}_a(h)}h=!1}h&&(s=c[0])}}return c=Ln(),c.memoizedState=c.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:FA,lastRenderedState:s},c.queue=h,c=lT.bind(null,De,h),h.dispatch=c,h=Jv(!1),b=og.bind(null,De,!1,h.queue),h=Ln(),v={state:s,dispatch:null,action:a,pending:null},h.queue=v,c=e6.bind(null,De,v,b,c),v.dispatch=c,h.memoizedState=a,[s,c,!1]}function $A(a){var s=Bt();return HA(s,it,a)}function HA(a,s,c){if(s=Qv(a,s,FA)[0],a=$d(Ui)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=nc(s)}catch(T){throw T===rl?Dd:T}else h=s;s=Bt();var v=s.queue,b=v.dispatch;return c!==s.memoizedState&&(De.flags|=2048,ll(9,{destroy:void 0},t6.bind(null,v,c),null)),[h,b,a]}function t6(a,s){a.action=s}function GA(a){var s=Bt(),c=it;if(c!==null)return HA(s,c,a);Bt(),s=s.memoizedState,c=Bt();var h=c.queue.dispatch;return c.memoizedState=a,[s,h,!1]}function ll(a,s,c,h){return a={tag:a,create:c,deps:h,inst:s,next:null},s=De.updateQueue,s===null&&(s=Fd(),De.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=a.next=a:(h=c.next,c.next=a,a.next=h,s.lastEffect=a),a}function KA(){return Bt().memoizedState}function Hd(a,s,c,h){var v=Ln();De.flags|=a,v.memoizedState=ll(1|s,{destroy:void 0},c,h===void 0?null:h)}function Gd(a,s,c,h){var v=Bt();h=h===void 0?null:h;var b=v.memoizedState.inst;it!==null&&h!==null&&Hv(h,it.memoizedState.deps)?v.memoizedState=ll(s,b,c,h):(De.flags|=a,v.memoizedState=ll(1|s,b,c,h))}function YA(a,s){Hd(8390656,8,a,s)}function tg(a,s){Gd(2048,8,a,s)}function n6(a){De.flags|=4;var s=De.updateQueue;if(s===null)s=Fd(),De.updateQueue=s,s.events=[a];else{var c=s.events;c===null?s.events=[a]:c.push(a)}}function WA(a){var s=Bt().memoizedState;return n6({ref:s,nextImpl:a}),function(){if((et&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function XA(a,s){return Gd(4,2,a,s)}function QA(a,s){return Gd(4,4,a,s)}function ZA(a,s){if(typeof s=="function"){a=a();var c=s(a);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function JA(a,s,c){c=c!=null?c.concat([a]):null,Gd(4,4,ZA.bind(null,s,a),c)}function ng(){}function eT(a,s){var c=Bt();s=s===void 0?null:s;var h=c.memoizedState;return s!==null&&Hv(s,h[1])?h[0]:(c.memoizedState=[a,s],a)}function tT(a,s){var c=Bt();s=s===void 0?null:s;var h=c.memoizedState;if(s!==null&&Hv(s,h[1]))return h[0];if(h=a(),zo){oi(!0);try{a()}finally{oi(!1)}}return c.memoizedState=[h,s],h}function rg(a,s,c){return c===void 0||(Vi&1073741824)!==0&&(qe&261930)===0?a.memoizedState=s:(a.memoizedState=c,a=n_(),De.lanes|=a,Ia|=a,c)}function nT(a,s,c,h){return rr(c,s)?c:al.current!==null?(a=rg(a,c,h),rr(a,s)||(qt=!0),a):(Vi&42)===0||(Vi&1073741824)!==0&&(qe&261930)===0?(qt=!0,a.memoizedState=c):(a=n_(),De.lanes|=a,Ia|=a,s)}function rT(a,s,c,h,v){var b=q.p;q.p=b!==0&&8>b?b:8;var T=D.T,j={};D.T=j,og(a,!1,s,c);try{var L=v(),K=D.S;if(K!==null&&K(j,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var te=QU(L,h);rc(a,s,te,ur(a))}else rc(a,s,h,ur(a))}catch(ae){rc(a,s,{then:function(){},status:"rejected",reason:ae},ur())}finally{q.p=b,T!==null&&j.types!==null&&(T.types=j.types),D.T=T}}function r6(){}function ig(a,s,c,h){if(a.tag!==5)throw Error(r(476));var v=iT(a).queue;rT(a,v,s,B,c===null?r6:function(){return aT(a),c(h)})}function iT(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ui,lastRenderedState:B},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ui,lastRenderedState:c},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function aT(a){var s=iT(a);s.next===null&&(s=a.alternate.memoizedState),rc(a,s.next.queue,{},ur())}function ag(){return gn(xc)}function oT(){return Bt().memoizedState}function sT(){return Bt().memoizedState}function i6(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var c=ur();a=ja(c);var h=Na(s,a,c);h!==null&&(Xn(h,s,c),Zu(h,s,c)),s={cache:Dv()},a.payload=s;return}s=s.return}}function a6(a,s,c){var h=ur();c={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Kd(a)?uT(s,c):(c=Ev(a,s,c,h),c!==null&&(Xn(c,a,h),cT(c,s,h)))}function lT(a,s,c){var h=ur();rc(a,s,c,h)}function rc(a,s,c,h){var v={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(Kd(a))uT(s,v);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=s.lastRenderedReducer,b!==null))try{var T=s.lastRenderedState,j=b(T,c);if(v.hasEagerState=!0,v.eagerState=j,rr(j,T))return _d(a,s,v,0),ut===null&&Td(),!1}catch{}finally{}if(c=Ev(a,s,v,h),c!==null)return Xn(c,a,h),cT(c,s,h),!0}return!1}function og(a,s,c,h){if(h={lane:2,revertLane:zg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Kd(a)){if(s)throw Error(r(479))}else s=Ev(a,c,h,2),s!==null&&Xn(s,a,2)}function Kd(a){var s=a.alternate;return a===De||s!==null&&s===De}function uT(a,s){ol=Vd=!0;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}function cT(a,s,c){if((c&4194048)!==0){var h=s.lanes;h&=a.pendingLanes,c|=h,s.lanes=c,Et(a,c)}}var ic={readContext:gn,use:qd,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};ic.useEffectEvent=Nt;var fT={readContext:gn,use:qd,useCallback:function(a,s){return Ln().memoizedState=[a,s===void 0?null:s],a},useContext:gn,useEffect:YA,useImperativeHandle:function(a,s,c){c=c!=null?c.concat([a]):null,Hd(4194308,4,ZA.bind(null,s,a),c)},useLayoutEffect:function(a,s){return Hd(4194308,4,a,s)},useInsertionEffect:function(a,s){Hd(4,2,a,s)},useMemo:function(a,s){var c=Ln();s=s===void 0?null:s;var h=a();if(zo){oi(!0);try{a()}finally{oi(!1)}}return c.memoizedState=[h,s],h},useReducer:function(a,s,c){var h=Ln();if(c!==void 0){var v=c(s);if(zo){oi(!0);try{c(s)}finally{oi(!1)}}}else v=s;return h.memoizedState=h.baseState=v,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:v},h.queue=a,a=a.dispatch=a6.bind(null,De,a),[h.memoizedState,a]},useRef:function(a){var s=Ln();return a={current:a},s.memoizedState=a},useState:function(a){a=Jv(a);var s=a.queue,c=lT.bind(null,De,s);return s.dispatch=c,[a.memoizedState,c]},useDebugValue:ng,useDeferredValue:function(a,s){var c=Ln();return rg(c,a,s)},useTransition:function(){var a=Jv(!1);return a=rT.bind(null,De,a.queue,!0,!1),Ln().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,c){var h=De,v=Ln();if(Ge){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),ut===null)throw Error(r(349));(qe&127)!==0||MA(h,s,c)}v.memoizedState=c;var b={value:c,getSnapshot:s};return v.queue=b,YA(DA.bind(null,h,b,a),[a]),h.flags|=2048,ll(9,{destroy:void 0},PA.bind(null,h,b,c,s),null),c},useId:function(){var a=Ln(),s=ut.identifierPrefix;if(Ge){var c=li,h=si;c=(h&~(1<<32-In(h)-1)).toString(32)+c,s="_"+s+"R_"+c,c=Ud++,0<c&&(s+="H"+c.toString(32)),s+="_"}else c=ZU++,s="_"+s+"r_"+c.toString(32)+"_";return a.memoizedState=s},useHostTransitionStatus:ag,useFormState:qA,useActionState:qA,useOptimistic:function(a){var s=Ln();s.memoizedState=s.baseState=a;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=og.bind(null,De,!0,c),c.dispatch=s,[a,s]},useMemoCache:Xv,useCacheRefresh:function(){return Ln().memoizedState=i6.bind(null,De)},useEffectEvent:function(a){var s=Ln(),c={impl:a};return s.memoizedState=c,function(){if((et&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}},sg={readContext:gn,use:qd,useCallback:eT,useContext:gn,useEffect:tg,useImperativeHandle:JA,useInsertionEffect:XA,useLayoutEffect:QA,useMemo:tT,useReducer:$d,useRef:KA,useState:function(){return $d(Ui)},useDebugValue:ng,useDeferredValue:function(a,s){var c=Bt();return nT(c,it.memoizedState,a,s)},useTransition:function(){var a=$d(Ui)[0],s=Bt().memoizedState;return[typeof a=="boolean"?a:nc(a),s]},useSyncExternalStore:NA,useId:oT,useHostTransitionStatus:ag,useFormState:$A,useActionState:$A,useOptimistic:function(a,s){var c=Bt();return LA(c,it,a,s)},useMemoCache:Xv,useCacheRefresh:sT};sg.useEffectEvent=WA;var dT={readContext:gn,use:qd,useCallback:eT,useContext:gn,useEffect:tg,useImperativeHandle:JA,useInsertionEffect:XA,useLayoutEffect:QA,useMemo:tT,useReducer:Zv,useRef:KA,useState:function(){return Zv(Ui)},useDebugValue:ng,useDeferredValue:function(a,s){var c=Bt();return it===null?rg(c,a,s):nT(c,it.memoizedState,a,s)},useTransition:function(){var a=Zv(Ui)[0],s=Bt().memoizedState;return[typeof a=="boolean"?a:nc(a),s]},useSyncExternalStore:NA,useId:oT,useHostTransitionStatus:ag,useFormState:GA,useActionState:GA,useOptimistic:function(a,s){var c=Bt();return it!==null?LA(c,it,a,s):(c.baseState=a,[a,c.queue.dispatch])},useMemoCache:Xv,useCacheRefresh:sT};dT.useEffectEvent=WA;function lg(a,s,c,h){s=a.memoizedState,c=c(h,s),c=c==null?s:m({},s,c),a.memoizedState=c,a.lanes===0&&(a.updateQueue.baseState=c)}var ug={enqueueSetState:function(a,s,c){a=a._reactInternals;var h=ur(),v=ja(h);v.payload=s,c!=null&&(v.callback=c),s=Na(a,v,h),s!==null&&(Xn(s,a,h),Zu(s,a,h))},enqueueReplaceState:function(a,s,c){a=a._reactInternals;var h=ur(),v=ja(h);v.tag=1,v.payload=s,c!=null&&(v.callback=c),s=Na(a,v,h),s!==null&&(Xn(s,a,h),Zu(s,a,h))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var c=ur(),h=ja(c);h.tag=2,s!=null&&(h.callback=s),s=Na(a,h,c),s!==null&&(Xn(s,a,c),Zu(s,a,c))}};function hT(a,s,c,h,v,b,T){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,b,T):s.prototype&&s.prototype.isPureReactComponent?!$u(c,h)||!$u(v,b):!0}function pT(a,s,c,h){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,h),s.state!==a&&ug.enqueueReplaceState(s,s.state,null)}function Bo(a,s){var c=s;if("ref"in s){c={};for(var h in s)h!=="ref"&&(c[h]=s[h])}if(a=a.defaultProps){c===s&&(c=m({},c));for(var v in a)c[v]===void 0&&(c[v]=a[v])}return c}function mT(a){Ad(a)}function yT(a){console.error(a)}function vT(a){Ad(a)}function Yd(a,s){try{var c=a.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function gT(a,s,c){try{var h=a.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function cg(a,s,c){return c=ja(c),c.tag=3,c.payload={element:null},c.callback=function(){Yd(a,s)},c}function bT(a){return a=ja(a),a.tag=3,a}function xT(a,s,c,h){var v=c.type.getDerivedStateFromError;if(typeof v=="function"){var b=h.value;a.payload=function(){return v(b)},a.callback=function(){gT(s,c,h)}}var T=c.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(a.callback=function(){gT(s,c,h),typeof v!="function"&&(La===null?La=new Set([this]):La.add(this));var j=h.stack;this.componentDidCatch(h.value,{componentStack:j!==null?j:""})})}function o6(a,s,c,h,v){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=c.alternate,s!==null&&el(s,c,v,!0),c=ar.current,c!==null){switch(c.tag){case 31:case 13:return Tr===null?oh():c.alternate===null&&Mt===0&&(Mt=3),c.flags&=-257,c.flags|=65536,c.lanes=v,h===Rd?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([h]):s.add(h),Rg(a,h,v)),!1;case 22:return c.flags|=65536,h===Rd?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([h]):c.add(h)),Rg(a,h,v)),!1}throw Error(r(435,c.tag))}return Rg(a,h,v),oh(),!1}if(Ge)return s=ar.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,h!==kv&&(a=Error(r(422),{cause:h}),Ku(Sr(a,c)))):(h!==kv&&(s=Error(r(423),{cause:h}),Ku(Sr(s,c))),a=a.current.alternate,a.flags|=65536,v&=-v,a.lanes|=v,h=Sr(h,c),v=cg(a.stateNode,h,v),Vv(a,v),Mt!==4&&(Mt=2)),!1;var b=Error(r(520),{cause:h});if(b=Sr(b,c),dc===null?dc=[b]:dc.push(b),Mt!==4&&(Mt=2),s===null)return!0;h=Sr(h,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,a=v&-v,c.lanes|=a,a=cg(c.stateNode,h,a),Vv(c,a),!1;case 1:if(s=c.type,b=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(La===null||!La.has(b))))return c.flags|=65536,v&=-v,c.lanes|=v,v=bT(v),xT(v,a,c,h),Vv(c,v),!1}c=c.return}while(c!==null);return!1}var fg=Error(r(461)),qt=!1;function bn(a,s,c,h){s.child=a===null?OA(s,null,c,h):Lo(s,a.child,c,h)}function wT(a,s,c,h,v){c=c.render;var b=s.ref;if("ref"in h){var T={};for(var j in h)j!=="ref"&&(T[j]=h[j])}else T=h;return Po(s),h=Gv(a,s,c,T,b,v),j=Kv(),a!==null&&!qt?(Yv(a,s,v),Fi(a,s,v)):(Ge&&j&&_v(s),s.flags|=1,bn(a,s,h,v),s.child)}function ST(a,s,c,h,v){if(a===null){var b=c.type;return typeof b=="function"&&!Ov(b)&&b.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=b,ET(a,s,b,h,v)):(a=kd(c.type,null,h,s,s.mode,v),a.ref=s.ref,a.return=s,s.child=a)}if(b=a.child,!bg(a,v)){var T=b.memoizedProps;if(c=c.compare,c=c!==null?c:$u,c(T,h)&&a.ref===s.ref)return Fi(a,s,v)}return s.flags|=1,a=Ii(b,h),a.ref=s.ref,a.return=s,s.child=a}function ET(a,s,c,h,v){if(a!==null){var b=a.memoizedProps;if($u(b,h)&&a.ref===s.ref)if(qt=!1,s.pendingProps=h=b,bg(a,v))(a.flags&131072)!==0&&(qt=!0);else return s.lanes=a.lanes,Fi(a,s,v)}return dg(a,s,c,h,v)}function OT(a,s,c,h){var v=h.children,b=a!==null?a.memoizedState:null;if(a===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((s.flags&128)!==0){if(b=b!==null?b.baseLanes|c:c,a!==null){for(h=s.child=a.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~b}else h=0,s.child=null;return AT(a,s,b,c,h)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&Pd(s,b!==null?b.cachePool:null),b!==null?_A(s,b):Fv(),CA(s);else return h=s.lanes=536870912,AT(a,s,b!==null?b.baseLanes|c:c,c,h)}else b!==null?(Pd(s,b.cachePool),_A(s,b),Pa(),s.memoizedState=null):(a!==null&&Pd(s,null),Fv(),Pa());return bn(a,s,v,c),s.child}function ac(a,s){return a!==null&&a.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function AT(a,s,c,h,v){var b=Iv();return b=b===null?null:{parent:Ut._currentValue,pool:b},s.memoizedState={baseLanes:c,cachePool:b},a!==null&&Pd(s,null),Fv(),CA(s),a!==null&&el(a,s,h,!0),s.childLanes=v,null}function Wd(a,s){return s=Qd({mode:s.mode,children:s.children},a.mode),s.ref=a.ref,a.child=s,s.return=a,s}function TT(a,s,c){return Lo(s,a.child,null,c),a=Wd(s,s.pendingProps),a.flags|=2,or(s),s.memoizedState=null,a}function s6(a,s,c){var h=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,a===null){if(Ge){if(h.mode==="hidden")return a=Wd(s,h),s.lanes=536870912,ac(null,a);if($v(s),(a=yt)?(a=z_(a,Ar),a=a!==null&&a.data==="&"?a:null,a!==null&&(s.memoizedState={dehydrated:a,treeContext:Aa!==null?{id:si,overflow:li}:null,retryLane:536870912,hydrationErrors:null},c=uA(a),c.return=s,s.child=c,vn=s,yt=null)):a=null,a===null)throw _a(s);return s.lanes=536870912,null}return Wd(s,h)}var b=a.memoizedState;if(b!==null){var T=b.dehydrated;if($v(s),v)if(s.flags&256)s.flags&=-257,s=TT(a,s,c);else if(s.memoizedState!==null)s.child=a.child,s.flags|=128,s=null;else throw Error(r(558));else if(qt||el(a,s,c,!1),v=(c&a.childLanes)!==0,qt||v){if(h=ut,h!==null&&(T=Vt(h,c),T!==0&&T!==b.retryLane))throw b.retryLane=T,ko(a,T),Xn(h,a,T),fg;oh(),s=TT(a,s,c)}else a=b.treeContext,yt=_r(T.nextSibling),vn=s,Ge=!0,Ta=null,Ar=!1,a!==null&&dA(s,a),s=Wd(s,h),s.flags|=4096;return s}return a=Ii(a.child,{mode:h.mode,children:h.children}),a.ref=s.ref,s.child=a,a.return=s,a}function Xd(a,s){var c=s.ref;if(c===null)a!==null&&a.ref!==null&&(s.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(a===null||a.ref!==c)&&(s.flags|=4194816)}}function dg(a,s,c,h,v){return Po(s),c=Gv(a,s,c,h,void 0,v),h=Kv(),a!==null&&!qt?(Yv(a,s,v),Fi(a,s,v)):(Ge&&h&&_v(s),s.flags|=1,bn(a,s,c,v),s.child)}function _T(a,s,c,h,v,b){return Po(s),s.updateQueue=null,c=jA(s,h,c,v),kA(a),h=Kv(),a!==null&&!qt?(Yv(a,s,b),Fi(a,s,b)):(Ge&&h&&_v(s),s.flags|=1,bn(a,s,c,b),s.child)}function CT(a,s,c,h,v){if(Po(s),s.stateNode===null){var b=Xs,T=c.contextType;typeof T=="object"&&T!==null&&(b=gn(T)),b=new c(h,b),s.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=ug,s.stateNode=b,b._reactInternals=s,b=s.stateNode,b.props=h,b.state=s.memoizedState,b.refs={},zv(s),T=c.contextType,b.context=typeof T=="object"&&T!==null?gn(T):Xs,b.state=s.memoizedState,T=c.getDerivedStateFromProps,typeof T=="function"&&(lg(s,c,T,h),b.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(T=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),T!==b.state&&ug.enqueueReplaceState(b,b.state,null),ec(s,h,b,v),Ju(),b.state=s.memoizedState),typeof b.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(a===null){b=s.stateNode;var j=s.memoizedProps,L=Bo(c,j);b.props=L;var K=b.context,te=c.contextType;T=Xs,typeof te=="object"&&te!==null&&(T=gn(te));var ae=c.getDerivedStateFromProps;te=typeof ae=="function"||typeof b.getSnapshotBeforeUpdate=="function",j=s.pendingProps!==j,te||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(j||K!==T)&&pT(s,b,h,T),ka=!1;var W=s.memoizedState;b.state=W,ec(s,h,b,v),Ju(),K=s.memoizedState,j||W!==K||ka?(typeof ae=="function"&&(lg(s,c,ae,h),K=s.memoizedState),(L=ka||hT(s,c,L,h,W,K,T))?(te||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(s.flags|=4194308)):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=K),b.props=h,b.state=K,b.context=T,h=L):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{b=s.stateNode,Bv(a,s),T=s.memoizedProps,te=Bo(c,T),b.props=te,ae=s.pendingProps,W=b.context,K=c.contextType,L=Xs,typeof K=="object"&&K!==null&&(L=gn(K)),j=c.getDerivedStateFromProps,(K=typeof j=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(T!==ae||W!==L)&&pT(s,b,h,L),ka=!1,W=s.memoizedState,b.state=W,ec(s,h,b,v),Ju();var J=s.memoizedState;T!==ae||W!==J||ka||a!==null&&a.dependencies!==null&&Nd(a.dependencies)?(typeof j=="function"&&(lg(s,c,j,h),J=s.memoizedState),(te=ka||hT(s,c,te,h,W,J,L)||a!==null&&a.dependencies!==null&&Nd(a.dependencies))?(K||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,J,L),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,J,L)),typeof b.componentDidUpdate=="function"&&(s.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof b.componentDidUpdate!="function"||T===a.memoizedProps&&W===a.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&W===a.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=J),b.props=h,b.state=J,b.context=L,h=te):(typeof b.componentDidUpdate!="function"||T===a.memoizedProps&&W===a.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&W===a.memoizedState||(s.flags|=1024),h=!1)}return b=h,Xd(a,s),h=(s.flags&128)!==0,b||h?(b=s.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:b.render(),s.flags|=1,a!==null&&h?(s.child=Lo(s,a.child,null,v),s.child=Lo(s,null,c,v)):bn(a,s,c,v),s.memoizedState=b.state,a=s.child):a=Fi(a,s,v),a}function kT(a,s,c,h){return No(),s.flags|=256,bn(a,s,c,h),s.child}var hg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pg(a){return{baseLanes:a,cachePool:gA()}}function mg(a,s,c){return a=a!==null?a.childLanes&~c:0,s&&(a|=lr),a}function jT(a,s,c){var h=s.pendingProps,v=!1,b=(s.flags&128)!==0,T;if((T=b)||(T=a!==null&&a.memoizedState===null?!1:(zt.current&2)!==0),T&&(v=!0,s.flags&=-129),T=(s.flags&32)!==0,s.flags&=-33,a===null){if(Ge){if(v?Ma(s):Pa(),(a=yt)?(a=z_(a,Ar),a=a!==null&&a.data!=="&"?a:null,a!==null&&(s.memoizedState={dehydrated:a,treeContext:Aa!==null?{id:si,overflow:li}:null,retryLane:536870912,hydrationErrors:null},c=uA(a),c.return=s,s.child=c,vn=s,yt=null)):a=null,a===null)throw _a(s);return Qg(a)?s.lanes=32:s.lanes=536870912,null}var j=h.children;return h=h.fallback,v?(Pa(),v=s.mode,j=Qd({mode:"hidden",children:j},v),h=jo(h,v,c,null),j.return=s,h.return=s,j.sibling=h,s.child=j,h=s.child,h.memoizedState=pg(c),h.childLanes=mg(a,T,c),s.memoizedState=hg,ac(null,h)):(Ma(s),yg(s,j))}var L=a.memoizedState;if(L!==null&&(j=L.dehydrated,j!==null)){if(b)s.flags&256?(Ma(s),s.flags&=-257,s=vg(a,s,c)):s.memoizedState!==null?(Pa(),s.child=a.child,s.flags|=128,s=null):(Pa(),j=h.fallback,v=s.mode,h=Qd({mode:"visible",children:h.children},v),j=jo(j,v,c,null),j.flags|=2,h.return=s,j.return=s,h.sibling=j,s.child=h,Lo(s,a.child,null,c),h=s.child,h.memoizedState=pg(c),h.childLanes=mg(a,T,c),s.memoizedState=hg,s=ac(null,h));else if(Ma(s),Qg(j)){if(T=j.nextSibling&&j.nextSibling.dataset,T)var K=T.dgst;T=K,h=Error(r(419)),h.stack="",h.digest=T,Ku({value:h,source:null,stack:null}),s=vg(a,s,c)}else if(qt||el(a,s,c,!1),T=(c&a.childLanes)!==0,qt||T){if(T=ut,T!==null&&(h=Vt(T,c),h!==0&&h!==L.retryLane))throw L.retryLane=h,ko(a,h),Xn(T,a,h),fg;Xg(j)||oh(),s=vg(a,s,c)}else Xg(j)?(s.flags|=192,s.child=a.child,s=null):(a=L.treeContext,yt=_r(j.nextSibling),vn=s,Ge=!0,Ta=null,Ar=!1,a!==null&&dA(s,a),s=yg(s,h.children),s.flags|=4096);return s}return v?(Pa(),j=h.fallback,v=s.mode,L=a.child,K=L.sibling,h=Ii(L,{mode:"hidden",children:h.children}),h.subtreeFlags=L.subtreeFlags&65011712,K!==null?j=Ii(K,j):(j=jo(j,v,c,null),j.flags|=2),j.return=s,h.return=s,h.sibling=j,s.child=h,ac(null,h),h=s.child,j=a.child.memoizedState,j===null?j=pg(c):(v=j.cachePool,v!==null?(L=Ut._currentValue,v=v.parent!==L?{parent:L,pool:L}:v):v=gA(),j={baseLanes:j.baseLanes|c,cachePool:v}),h.memoizedState=j,h.childLanes=mg(a,T,c),s.memoizedState=hg,ac(a.child,h)):(Ma(s),c=a.child,a=c.sibling,c=Ii(c,{mode:"visible",children:h.children}),c.return=s,c.sibling=null,a!==null&&(T=s.deletions,T===null?(s.deletions=[a],s.flags|=16):T.push(a)),s.child=c,s.memoizedState=null,c)}function yg(a,s){return s=Qd({mode:"visible",children:s},a.mode),s.return=a,a.child=s}function Qd(a,s){return a=ir(22,a,null,s),a.lanes=0,a}function vg(a,s,c){return Lo(s,a.child,null,c),a=yg(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function NT(a,s,c){a.lanes|=s;var h=a.alternate;h!==null&&(h.lanes|=s),Mv(a.return,s,c)}function gg(a,s,c,h,v,b){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:v,treeForkCount:b}:(T.isBackwards=s,T.rendering=null,T.renderingStartTime=0,T.last=h,T.tail=c,T.tailMode=v,T.treeForkCount=b)}function MT(a,s,c){var h=s.pendingProps,v=h.revealOrder,b=h.tail;h=h.children;var T=zt.current,j=(T&2)!==0;if(j?(T=T&1|2,s.flags|=128):T&=1,ue(zt,T),bn(a,s,h,c),h=Ge?Gu:0,!j&&a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&NT(a,c,s);else if(a.tag===19)NT(a,c,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(v){case"forwards":for(c=s.child,v=null;c!==null;)a=c.alternate,a!==null&&Bd(a)===null&&(v=c),c=c.sibling;c=v,c===null?(v=s.child,s.child=null):(v=c.sibling,c.sibling=null),gg(s,!1,v,c,b,h);break;case"backwards":case"unstable_legacy-backwards":for(c=null,v=s.child,s.child=null;v!==null;){if(a=v.alternate,a!==null&&Bd(a)===null){s.child=v;break}a=v.sibling,v.sibling=c,c=v,v=a}gg(s,!0,c,null,b,h);break;case"together":gg(s,!1,null,null,void 0,h);break;default:s.memoizedState=null}return s.child}function Fi(a,s,c){if(a!==null&&(s.dependencies=a.dependencies),Ia|=s.lanes,(c&s.childLanes)===0)if(a!==null){if(el(a,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(r(153));if(s.child!==null){for(a=s.child,c=Ii(a,a.pendingProps),s.child=c,c.return=s;a.sibling!==null;)a=a.sibling,c=c.sibling=Ii(a,a.pendingProps),c.return=s;c.sibling=null}return s.child}function bg(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&Nd(a)))}function l6(a,s,c){switch(s.tag){case 3:Be(s,s.stateNode.containerInfo),Ca(s,Ut,a.memoizedState.cache),No();break;case 27:case 5:ye(s);break;case 4:Be(s,s.stateNode.containerInfo);break;case 10:Ca(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,$v(s),null;break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Ma(s),s.flags|=128,null):(c&s.child.childLanes)!==0?jT(a,s,c):(Ma(s),a=Fi(a,s,c),a!==null?a.sibling:null);Ma(s);break;case 19:var v=(a.flags&128)!==0;if(h=(c&s.childLanes)!==0,h||(el(a,s,c,!1),h=(c&s.childLanes)!==0),v){if(h)return MT(a,s,c);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),ue(zt,zt.current),h)break;return null;case 22:return s.lanes=0,OT(a,s,c,s.pendingProps);case 24:Ca(s,Ut,a.memoizedState.cache)}return Fi(a,s,c)}function PT(a,s,c){if(a!==null)if(a.memoizedProps!==s.pendingProps)qt=!0;else{if(!bg(a,c)&&(s.flags&128)===0)return qt=!1,l6(a,s,c);qt=(a.flags&131072)!==0}else qt=!1,Ge&&(s.flags&1048576)!==0&&fA(s,Gu,s.index);switch(s.lanes=0,s.tag){case 16:e:{var h=s.pendingProps;if(a=Ro(s.elementType),s.type=a,typeof a=="function")Ov(a)?(h=Bo(a,h),s.tag=1,s=CT(null,s,a,h,c)):(s.tag=0,s=dg(null,s,a,h,c));else{if(a!=null){var v=a.$$typeof;if(v===k){s.tag=11,s=wT(null,s,a,h,c);break e}else if(v===R){s.tag=14,s=ST(null,s,a,h,c);break e}}throw s=ne(a)||a,Error(r(306,s,""))}}return s;case 0:return dg(a,s,s.type,s.pendingProps,c);case 1:return h=s.type,v=Bo(h,s.pendingProps),CT(a,s,h,v,c);case 3:e:{if(Be(s,s.stateNode.containerInfo),a===null)throw Error(r(387));h=s.pendingProps;var b=s.memoizedState;v=b.element,Bv(a,s),ec(s,h,null,c);var T=s.memoizedState;if(h=T.cache,Ca(s,Ut,h),h!==b.cache&&Pv(s,[Ut],c,!0),Ju(),h=T.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:T.cache},s.updateQueue.baseState=b,s.memoizedState=b,s.flags&256){s=kT(a,s,h,c);break e}else if(h!==v){v=Sr(Error(r(424)),s),Ku(v),s=kT(a,s,h,c);break e}else{switch(a=s.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(yt=_r(a.firstChild),vn=s,Ge=!0,Ta=null,Ar=!0,c=OA(s,null,h,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(No(),h===v){s=Fi(a,s,c);break e}bn(a,s,h,c)}s=s.child}return s;case 26:return Xd(a,s),a===null?(c=$_(s.type,null,s.pendingProps,null))?s.memoizedState=c:Ge||(c=s.type,a=s.pendingProps,h=hh(me.current).createElement(c),h[yn]=s,h[$n]=a,xn(h,c,a),sn(h),s.stateNode=h):s.memoizedState=$_(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:return ye(s),a===null&&Ge&&(h=s.stateNode=U_(s.type,s.pendingProps,me.current),vn=s,Ar=!0,v=yt,Ua(s.type)?(Zg=v,yt=_r(h.firstChild)):yt=v),bn(a,s,s.pendingProps.children,c),Xd(a,s),a===null&&(s.flags|=4194304),s.child;case 5:return a===null&&Ge&&((v=h=yt)&&(h=z6(h,s.type,s.pendingProps,Ar),h!==null?(s.stateNode=h,vn=s,yt=_r(h.firstChild),Ar=!1,v=!0):v=!1),v||_a(s)),ye(s),v=s.type,b=s.pendingProps,T=a!==null?a.memoizedProps:null,h=b.children,Kg(v,b)?h=null:T!==null&&Kg(v,T)&&(s.flags|=32),s.memoizedState!==null&&(v=Gv(a,s,JU,null,null,c),xc._currentValue=v),Xd(a,s),bn(a,s,h,c),s.child;case 6:return a===null&&Ge&&((a=c=yt)&&(c=B6(c,s.pendingProps,Ar),c!==null?(s.stateNode=c,vn=s,yt=null,a=!0):a=!1),a||_a(s)),null;case 13:return jT(a,s,c);case 4:return Be(s,s.stateNode.containerInfo),h=s.pendingProps,a===null?s.child=Lo(s,null,h,c):bn(a,s,h,c),s.child;case 11:return wT(a,s,s.type,s.pendingProps,c);case 7:return bn(a,s,s.pendingProps,c),s.child;case 8:return bn(a,s,s.pendingProps.children,c),s.child;case 12:return bn(a,s,s.pendingProps.children,c),s.child;case 10:return h=s.pendingProps,Ca(s,s.type,h.value),bn(a,s,h.children,c),s.child;case 9:return v=s.type._context,h=s.pendingProps.children,Po(s),v=gn(v),h=h(v),s.flags|=1,bn(a,s,h,c),s.child;case 14:return ST(a,s,s.type,s.pendingProps,c);case 15:return ET(a,s,s.type,s.pendingProps,c);case 19:return MT(a,s,c);case 31:return s6(a,s,c);case 22:return OT(a,s,c,s.pendingProps);case 24:return Po(s),h=gn(Ut),a===null?(v=Iv(),v===null&&(v=ut,b=Dv(),v.pooledCache=b,b.refCount++,b!==null&&(v.pooledCacheLanes|=c),v=b),s.memoizedState={parent:h,cache:v},zv(s),Ca(s,Ut,v)):((a.lanes&c)!==0&&(Bv(a,s),ec(s,null,null,c),Ju()),v=a.memoizedState,b=s.memoizedState,v.parent!==h?(v={parent:h,cache:h},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),Ca(s,Ut,h)):(h=b.cache,Ca(s,Ut,h),h!==v.cache&&Pv(s,[Ut],c,!0))),bn(a,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function qi(a){a.flags|=4}function xg(a,s,c,h,v){if((s=(a.mode&32)!==0)&&(s=!1),s){if(a.flags|=16777216,(v&335544128)===v)if(a.stateNode.complete)a.flags|=8192;else if(o_())a.flags|=8192;else throw Io=Rd,Lv}else a.flags&=-16777217}function DT(a,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!W_(s))if(o_())a.flags|=8192;else throw Io=Rd,Lv}function Zd(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?Du():536870912,a.lanes|=s,dl|=s)}function oc(a,s){if(!Ge)switch(a.tailMode){case"hidden":s=a.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:h.sibling=null}}function vt(a){var s=a.alternate!==null&&a.alternate.child===a.child,c=0,h=0;if(s)for(var v=a.child;v!==null;)c|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=a,v=v.sibling;else for(v=a.child;v!==null;)c|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=a,v=v.sibling;return a.subtreeFlags|=h,a.childLanes=c,s}function u6(a,s,c){var h=s.pendingProps;switch(Cv(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(s),null;case 1:return vt(s),null;case 3:return c=s.stateNode,h=null,a!==null&&(h=a.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),Bi(Ut),se(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(a===null||a.child===null)&&(Js(s)?qi(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,jv())),vt(s),null;case 26:var v=s.type,b=s.memoizedState;return a===null?(qi(s),b!==null?(vt(s),DT(s,b)):(vt(s),xg(s,v,null,h,c))):b?b!==a.memoizedState?(qi(s),vt(s),DT(s,b)):(vt(s),s.flags&=-16777217):(a=a.memoizedProps,a!==h&&qi(s),vt(s),xg(s,v,a,h,c)),null;case 27:if(Ne(s),c=me.current,v=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==h&&qi(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return vt(s),null}a=fe.current,Js(s)?hA(s):(a=U_(v,h,c),s.stateNode=a,qi(s))}return vt(s),null;case 5:if(Ne(s),v=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==h&&qi(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return vt(s),null}if(b=fe.current,Js(s))hA(s);else{var T=hh(me.current);switch(b){case 1:b=T.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:b=T.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":b=T.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":b=T.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":b=T.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof h.is=="string"?T.createElement("select",{is:h.is}):T.createElement("select"),h.multiple?b.multiple=!0:h.size&&(b.size=h.size);break;default:b=typeof h.is=="string"?T.createElement(v,{is:h.is}):T.createElement(v)}}b[yn]=s,b[$n]=h;e:for(T=s.child;T!==null;){if(T.tag===5||T.tag===6)b.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===s)break e;for(;T.sibling===null;){if(T.return===null||T.return===s)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}s.stateNode=b;e:switch(xn(b,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&qi(s)}}return vt(s),xg(s,s.type,a===null?null:a.memoizedProps,s.pendingProps,c),null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==h&&qi(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(a=me.current,Js(s)){if(a=s.stateNode,c=s.memoizedProps,h=null,v=vn,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}a[yn]=s,a=!!(a.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||j_(a.nodeValue,c)),a||_a(s,!0)}else a=hh(a).createTextNode(h),a[yn]=s,s.stateNode=a}return vt(s),null;case 31:if(c=s.memoizedState,a===null||a.memoizedState!==null){if(h=Js(s),c!==null){if(a===null){if(!h)throw Error(r(318));if(a=s.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[yn]=s}else No(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;vt(s),a=!1}else c=jv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=c),a=!0;if(!a)return s.flags&256?(or(s),s):(or(s),null);if((s.flags&128)!==0)throw Error(r(558))}return vt(s),null;case 13:if(h=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(v=Js(s),h!==null&&h.dehydrated!==null){if(a===null){if(!v)throw Error(r(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[yn]=s}else No(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;vt(s),v=!1}else v=jv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?(or(s),s):(or(s),null)}return or(s),(s.flags&128)!==0?(s.lanes=c,s):(c=h!==null,a=a!==null&&a.memoizedState!==null,c&&(h=s.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==v&&(h.flags|=2048)),c!==a&&c&&(s.child.flags|=8192),Zd(s,s.updateQueue),vt(s),null);case 4:return se(),a===null&&Fg(s.stateNode.containerInfo),vt(s),null;case 10:return Bi(s.type),vt(s),null;case 19:if(Q(zt),h=s.memoizedState,h===null)return vt(s),null;if(v=(s.flags&128)!==0,b=h.rendering,b===null)if(v)oc(h,!1);else{if(Mt!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(b=Bd(a),b!==null){for(s.flags|=128,oc(h,!1),a=b.updateQueue,s.updateQueue=a,Zd(s,a),s.subtreeFlags=0,a=c,c=s.child;c!==null;)lA(c,a),c=c.sibling;return ue(zt,zt.current&1|2),Ge&&Li(s,h.treeForkCount),s.child}a=a.sibling}h.tail!==null&&Le()>rh&&(s.flags|=128,v=!0,oc(h,!1),s.lanes=4194304)}else{if(!v)if(a=Bd(b),a!==null){if(s.flags|=128,v=!0,a=a.updateQueue,s.updateQueue=a,Zd(s,a),oc(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Ge)return vt(s),null}else 2*Le()-h.renderingStartTime>rh&&c!==536870912&&(s.flags|=128,v=!0,oc(h,!1),s.lanes=4194304);h.isBackwards?(b.sibling=s.child,s.child=b):(a=h.last,a!==null?a.sibling=b:s.child=b,h.last=b)}return h.tail!==null?(a=h.tail,h.rendering=a,h.tail=a.sibling,h.renderingStartTime=Le(),a.sibling=null,c=zt.current,ue(zt,v?c&1|2:c&1),Ge&&Li(s,h.treeForkCount),a):(vt(s),null);case 22:case 23:return or(s),qv(),h=s.memoizedState!==null,a!==null?a.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(c&536870912)!==0&&(s.flags&128)===0&&(vt(s),s.subtreeFlags&6&&(s.flags|=8192)):vt(s),c=s.updateQueue,c!==null&&Zd(s,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==c&&(s.flags|=2048),a!==null&&Q(Do),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),Bi(Ut),vt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function c6(a,s){switch(Cv(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return Bi(Ut),se(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return Ne(s),null;case 31:if(s.memoizedState!==null){if(or(s),s.alternate===null)throw Error(r(340));No()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 13:if(or(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));No()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Q(zt),null;case 4:return se(),null;case 10:return Bi(s.type),null;case 22:case 23:return or(s),qv(),a!==null&&Q(Do),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return Bi(Ut),null;case 25:return null;default:return null}}function RT(a,s){switch(Cv(s),s.tag){case 3:Bi(Ut),se();break;case 26:case 27:case 5:Ne(s);break;case 4:se();break;case 31:s.memoizedState!==null&&or(s);break;case 13:or(s);break;case 19:Q(zt);break;case 10:Bi(s.type);break;case 22:case 23:or(s),qv(),a!==null&&Q(Do);break;case 24:Bi(Ut)}}function sc(a,s){try{var c=s.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var v=h.next;c=v;do{if((c.tag&a)===a){h=void 0;var b=c.create,T=c.inst;h=b(),T.destroy=h}c=c.next}while(c!==v)}}catch(j){rt(s,s.return,j)}}function Da(a,s,c){try{var h=s.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var b=v.next;h=b;do{if((h.tag&a)===a){var T=h.inst,j=T.destroy;if(j!==void 0){T.destroy=void 0,v=s;var L=c,K=j;try{K()}catch(te){rt(v,L,te)}}}h=h.next}while(h!==b)}}catch(te){rt(s,s.return,te)}}function IT(a){var s=a.updateQueue;if(s!==null){var c=a.stateNode;try{TA(s,c)}catch(h){rt(a,a.return,h)}}}function LT(a,s,c){c.props=Bo(a.type,a.memoizedProps),c.state=a.memoizedState;try{c.componentWillUnmount()}catch(h){rt(a,s,h)}}function lc(a,s){try{var c=a.ref;if(c!==null){switch(a.tag){case 26:case 27:case 5:var h=a.stateNode;break;case 30:h=a.stateNode;break;default:h=a.stateNode}typeof c=="function"?a.refCleanup=c(h):c.current=h}}catch(v){rt(a,s,v)}}function ui(a,s){var c=a.ref,h=a.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(v){rt(a,s,v)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(v){rt(a,s,v)}else c.current=null}function zT(a){var s=a.type,c=a.memoizedProps,h=a.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(v){rt(a,a.return,v)}}function wg(a,s,c){try{var h=a.stateNode;M6(h,a.type,c,s),h[$n]=s}catch(v){rt(a,a.return,v)}}function BT(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ua(a.type)||a.tag===4}function Sg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||BT(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Ua(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Eg(a,s,c){var h=a.tag;if(h===5||h===6)a=a.stateNode,s?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(a,s):(s=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,s.appendChild(a),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=Di));else if(h!==4&&(h===27&&Ua(a.type)&&(c=a.stateNode,s=null),a=a.child,a!==null))for(Eg(a,s,c),a=a.sibling;a!==null;)Eg(a,s,c),a=a.sibling}function Jd(a,s,c){var h=a.tag;if(h===5||h===6)a=a.stateNode,s?c.insertBefore(a,s):c.appendChild(a);else if(h!==4&&(h===27&&Ua(a.type)&&(c=a.stateNode),a=a.child,a!==null))for(Jd(a,s,c),a=a.sibling;a!==null;)Jd(a,s,c),a=a.sibling}function VT(a){var s=a.stateNode,c=a.memoizedProps;try{for(var h=a.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);xn(s,h,c),s[yn]=a,s[$n]=c}catch(b){rt(a,a.return,b)}}var $i=!1,$t=!1,Og=!1,UT=typeof WeakSet=="function"?WeakSet:Set,ln=null;function f6(a,s){if(a=a.containerInfo,Hg=xh,a=JO(a),vv(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{c=(c=a.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var v=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{c.nodeType,b.nodeType}catch{c=null;break e}var T=0,j=-1,L=-1,K=0,te=0,ae=a,W=null;t:for(;;){for(var J;ae!==c||v!==0&&ae.nodeType!==3||(j=T+v),ae!==b||h!==0&&ae.nodeType!==3||(L=T+h),ae.nodeType===3&&(T+=ae.nodeValue.length),(J=ae.firstChild)!==null;)W=ae,ae=J;for(;;){if(ae===a)break t;if(W===c&&++K===v&&(j=T),W===b&&++te===h&&(L=T),(J=ae.nextSibling)!==null)break;ae=W,W=ae.parentNode}ae=J}c=j===-1||L===-1?null:{start:j,end:L}}else c=null}c=c||{start:0,end:0}}else c=null;for(Gg={focusedElem:a,selectionRange:c},xh=!1,ln=s;ln!==null;)if(s=ln,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,ln=a;else for(;ln!==null;){switch(s=ln,b=s.alternate,a=s.flags,s.tag){case 0:if((a&4)!==0&&(a=s.updateQueue,a=a!==null?a.events:null,a!==null))for(c=0;c<a.length;c++)v=a[c],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,c=s,v=b.memoizedProps,b=b.memoizedState,h=c.stateNode;try{var be=Bo(c.type,v);a=h.getSnapshotBeforeUpdate(be,b),h.__reactInternalSnapshotBeforeUpdate=a}catch(Ce){rt(c,c.return,Ce)}}break;case 3:if((a&1024)!==0){if(a=s.stateNode.containerInfo,c=a.nodeType,c===9)Wg(a);else if(c===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Wg(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=s.sibling,a!==null){a.return=s.return,ln=a;break}ln=s.return}}function FT(a,s,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:Gi(a,c),h&4&&sc(5,c);break;case 1:if(Gi(a,c),h&4)if(a=c.stateNode,s===null)try{a.componentDidMount()}catch(T){rt(c,c.return,T)}else{var v=Bo(c.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(v,s,a.__reactInternalSnapshotBeforeUpdate)}catch(T){rt(c,c.return,T)}}h&64&&IT(c),h&512&&lc(c,c.return);break;case 3:if(Gi(a,c),h&64&&(a=c.updateQueue,a!==null)){if(s=null,c.child!==null)switch(c.child.tag){case 27:case 5:s=c.child.stateNode;break;case 1:s=c.child.stateNode}try{TA(a,s)}catch(T){rt(c,c.return,T)}}break;case 27:s===null&&h&4&&VT(c);case 26:case 5:Gi(a,c),s===null&&h&4&&zT(c),h&512&&lc(c,c.return);break;case 12:Gi(a,c);break;case 31:Gi(a,c),h&4&&HT(a,c);break;case 13:Gi(a,c),h&4&&GT(a,c),h&64&&(a=c.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(c=x6.bind(null,c),V6(a,c))));break;case 22:if(h=c.memoizedState!==null||$i,!h){s=s!==null&&s.memoizedState!==null||$t,v=$i;var b=$t;$i=h,($t=s)&&!b?Ki(a,c,(c.subtreeFlags&8772)!==0):Gi(a,c),$i=v,$t=b}break;case 30:break;default:Gi(a,c)}}function qT(a){var s=a.alternate;s!==null&&(a.alternate=null,qT(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&ev(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var Ot=null,Gn=!1;function Hi(a,s,c){for(c=c.child;c!==null;)$T(a,s,c),c=c.sibling}function $T(a,s,c){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(Eo,c)}catch{}switch(c.tag){case 26:$t||ui(c,s),Hi(a,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:$t||ui(c,s);var h=Ot,v=Gn;Ua(c.type)&&(Ot=c.stateNode,Gn=!1),Hi(a,s,c),vc(c.stateNode),Ot=h,Gn=v;break;case 5:$t||ui(c,s);case 6:if(h=Ot,v=Gn,Ot=null,Hi(a,s,c),Ot=h,Gn=v,Ot!==null)if(Gn)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(c.stateNode)}catch(b){rt(c,s,b)}else try{Ot.removeChild(c.stateNode)}catch(b){rt(c,s,b)}break;case 18:Ot!==null&&(Gn?(a=Ot,I_(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,c.stateNode),xl(a)):I_(Ot,c.stateNode));break;case 4:h=Ot,v=Gn,Ot=c.stateNode.containerInfo,Gn=!0,Hi(a,s,c),Ot=h,Gn=v;break;case 0:case 11:case 14:case 15:Da(2,c,s),$t||Da(4,c,s),Hi(a,s,c);break;case 1:$t||(ui(c,s),h=c.stateNode,typeof h.componentWillUnmount=="function"&&LT(c,s,h)),Hi(a,s,c);break;case 21:Hi(a,s,c);break;case 22:$t=(h=$t)||c.memoizedState!==null,Hi(a,s,c),$t=h;break;default:Hi(a,s,c)}}function HT(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{xl(a)}catch(c){rt(s,s.return,c)}}}function GT(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{xl(a)}catch(c){rt(s,s.return,c)}}function d6(a){switch(a.tag){case 31:case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new UT),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new UT),s;default:throw Error(r(435,a.tag))}}function eh(a,s){var c=d6(a);s.forEach(function(h){if(!c.has(h)){c.add(h);var v=w6.bind(null,a,h);h.then(v,v)}})}function Kn(a,s){var c=s.deletions;if(c!==null)for(var h=0;h<c.length;h++){var v=c[h],b=a,T=s,j=T;e:for(;j!==null;){switch(j.tag){case 27:if(Ua(j.type)){Ot=j.stateNode,Gn=!1;break e}break;case 5:Ot=j.stateNode,Gn=!1;break e;case 3:case 4:Ot=j.stateNode.containerInfo,Gn=!0;break e}j=j.return}if(Ot===null)throw Error(r(160));$T(b,T,v),Ot=null,Gn=!1,b=v.alternate,b!==null&&(b.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)KT(s,a),s=s.sibling}var Hr=null;function KT(a,s){var c=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Kn(s,a),Yn(a),h&4&&(Da(3,a,a.return),sc(3,a),Da(5,a,a.return));break;case 1:Kn(s,a),Yn(a),h&512&&($t||c===null||ui(c,c.return)),h&64&&$i&&(a=a.updateQueue,a!==null&&(h=a.callbacks,h!==null&&(c=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var v=Hr;if(Kn(s,a),Yn(a),h&512&&($t||c===null||ui(c,c.return)),h&4){var b=c!==null?c.memoizedState:null;if(h=a.memoizedState,c===null)if(h===null)if(a.stateNode===null){e:{h=a.type,c=a.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":b=v.getElementsByTagName("title")[0],(!b||b[Ru]||b[yn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=v.createElement(h),v.head.insertBefore(b,v.querySelector("head > title"))),xn(b,h,c),b[yn]=a,sn(b),h=b;break e;case"link":var T=K_("link","href",v).get(h+(c.href||""));if(T){for(var j=0;j<T.length;j++)if(b=T[j],b.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&b.getAttribute("rel")===(c.rel==null?null:c.rel)&&b.getAttribute("title")===(c.title==null?null:c.title)&&b.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){T.splice(j,1);break t}}b=v.createElement(h),xn(b,h,c),v.head.appendChild(b);break;case"meta":if(T=K_("meta","content",v).get(h+(c.content||""))){for(j=0;j<T.length;j++)if(b=T[j],b.getAttribute("content")===(c.content==null?null:""+c.content)&&b.getAttribute("name")===(c.name==null?null:c.name)&&b.getAttribute("property")===(c.property==null?null:c.property)&&b.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&b.getAttribute("charset")===(c.charSet==null?null:c.charSet)){T.splice(j,1);break t}}b=v.createElement(h),xn(b,h,c),v.head.appendChild(b);break;default:throw Error(r(468,h))}b[yn]=a,sn(b),h=b}a.stateNode=h}else Y_(v,a.type,a.stateNode);else a.stateNode=G_(v,h,a.memoizedProps);else b!==h?(b===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):b.count--,h===null?Y_(v,a.type,a.stateNode):G_(v,h,a.memoizedProps)):h===null&&a.stateNode!==null&&wg(a,a.memoizedProps,c.memoizedProps)}break;case 27:Kn(s,a),Yn(a),h&512&&($t||c===null||ui(c,c.return)),c!==null&&h&4&&wg(a,a.memoizedProps,c.memoizedProps);break;case 5:if(Kn(s,a),Yn(a),h&512&&($t||c===null||ui(c,c.return)),a.flags&32){v=a.stateNode;try{qs(v,"")}catch(be){rt(a,a.return,be)}}h&4&&a.stateNode!=null&&(v=a.memoizedProps,wg(a,v,c!==null?c.memoizedProps:v)),h&1024&&(Og=!0);break;case 6:if(Kn(s,a),Yn(a),h&4){if(a.stateNode===null)throw Error(r(162));h=a.memoizedProps,c=a.stateNode;try{c.nodeValue=h}catch(be){rt(a,a.return,be)}}break;case 3:if(yh=null,v=Hr,Hr=ph(s.containerInfo),Kn(s,a),Hr=v,Yn(a),h&4&&c!==null&&c.memoizedState.isDehydrated)try{xl(s.containerInfo)}catch(be){rt(a,a.return,be)}Og&&(Og=!1,YT(a));break;case 4:h=Hr,Hr=ph(a.stateNode.containerInfo),Kn(s,a),Yn(a),Hr=h;break;case 12:Kn(s,a),Yn(a);break;case 31:Kn(s,a),Yn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,eh(a,h)));break;case 13:Kn(s,a),Yn(a),a.child.flags&8192&&a.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(nh=Le()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,eh(a,h)));break;case 22:v=a.memoizedState!==null;var L=c!==null&&c.memoizedState!==null,K=$i,te=$t;if($i=K||v,$t=te||L,Kn(s,a),$t=te,$i=K,Yn(a),h&8192)e:for(s=a.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(c===null||L||$i||$t||Vo(a)),c=null,s=a;;){if(s.tag===5||s.tag===26){if(c===null){L=c=s;try{if(b=L.stateNode,v)T=b.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{j=L.stateNode;var ae=L.memoizedProps.style,W=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;j.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(be){rt(L,L.return,be)}}}else if(s.tag===6){if(c===null){L=s;try{L.stateNode.nodeValue=v?"":L.memoizedProps}catch(be){rt(L,L.return,be)}}}else if(s.tag===18){if(c===null){L=s;try{var J=L.stateNode;v?L_(J,!0):L_(L.stateNode,!1)}catch(be){rt(L,L.return,be)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=a.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,eh(a,c))));break;case 19:Kn(s,a),Yn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,eh(a,h)));break;case 30:break;case 21:break;default:Kn(s,a),Yn(a)}}function Yn(a){var s=a.flags;if(s&2){try{for(var c,h=a.return;h!==null;){if(BT(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var v=c.stateNode,b=Sg(a);Jd(a,b,v);break;case 5:var T=c.stateNode;c.flags&32&&(qs(T,""),c.flags&=-33);var j=Sg(a);Jd(a,j,T);break;case 3:case 4:var L=c.stateNode.containerInfo,K=Sg(a);Eg(a,K,L);break;default:throw Error(r(161))}}catch(te){rt(a,a.return,te)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function YT(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;YT(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),a=a.sibling}}function Gi(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)FT(a,s.alternate,s),s=s.sibling}function Vo(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:Da(4,s,s.return),Vo(s);break;case 1:ui(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&LT(s,s.return,c),Vo(s);break;case 27:vc(s.stateNode);case 26:case 5:ui(s,s.return),Vo(s);break;case 22:s.memoizedState===null&&Vo(s);break;case 30:Vo(s);break;default:Vo(s)}a=a.sibling}}function Ki(a,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,v=a,b=s,T=b.flags;switch(b.tag){case 0:case 11:case 15:Ki(v,b,c),sc(4,b);break;case 1:if(Ki(v,b,c),h=b,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(K){rt(h,h.return,K)}if(h=b,v=h.updateQueue,v!==null){var j=h.stateNode;try{var L=v.shared.hiddenCallbacks;if(L!==null)for(v.shared.hiddenCallbacks=null,v=0;v<L.length;v++)AA(L[v],j)}catch(K){rt(h,h.return,K)}}c&&T&64&&IT(b),lc(b,b.return);break;case 27:VT(b);case 26:case 5:Ki(v,b,c),c&&h===null&&T&4&&zT(b),lc(b,b.return);break;case 12:Ki(v,b,c);break;case 31:Ki(v,b,c),c&&T&4&&HT(v,b);break;case 13:Ki(v,b,c),c&&T&4&&GT(v,b);break;case 22:b.memoizedState===null&&Ki(v,b,c),lc(b,b.return);break;case 30:break;default:Ki(v,b,c)}s=s.sibling}}function Ag(a,s){var c=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==c&&(a!=null&&a.refCount++,c!=null&&Yu(c))}function Tg(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Yu(a))}function Gr(a,s,c,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)WT(a,s,c,h),s=s.sibling}function WT(a,s,c,h){var v=s.flags;switch(s.tag){case 0:case 11:case 15:Gr(a,s,c,h),v&2048&&sc(9,s);break;case 1:Gr(a,s,c,h);break;case 3:Gr(a,s,c,h),v&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Yu(a)));break;case 12:if(v&2048){Gr(a,s,c,h),a=s.stateNode;try{var b=s.memoizedProps,T=b.id,j=b.onPostCommit;typeof j=="function"&&j(T,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(L){rt(s,s.return,L)}}else Gr(a,s,c,h);break;case 31:Gr(a,s,c,h);break;case 13:Gr(a,s,c,h);break;case 23:break;case 22:b=s.stateNode,T=s.alternate,s.memoizedState!==null?b._visibility&2?Gr(a,s,c,h):uc(a,s):b._visibility&2?Gr(a,s,c,h):(b._visibility|=2,ul(a,s,c,h,(s.subtreeFlags&10256)!==0||!1)),v&2048&&Ag(T,s);break;case 24:Gr(a,s,c,h),v&2048&&Tg(s.alternate,s);break;default:Gr(a,s,c,h)}}function ul(a,s,c,h,v){for(v=v&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var b=a,T=s,j=c,L=h,K=T.flags;switch(T.tag){case 0:case 11:case 15:ul(b,T,j,L,v),sc(8,T);break;case 23:break;case 22:var te=T.stateNode;T.memoizedState!==null?te._visibility&2?ul(b,T,j,L,v):uc(b,T):(te._visibility|=2,ul(b,T,j,L,v)),v&&K&2048&&Ag(T.alternate,T);break;case 24:ul(b,T,j,L,v),v&&K&2048&&Tg(T.alternate,T);break;default:ul(b,T,j,L,v)}s=s.sibling}}function uc(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=a,h=s,v=h.flags;switch(h.tag){case 22:uc(c,h),v&2048&&Ag(h.alternate,h);break;case 24:uc(c,h),v&2048&&Tg(h.alternate,h);break;default:uc(c,h)}s=s.sibling}}var cc=8192;function cl(a,s,c){if(a.subtreeFlags&cc)for(a=a.child;a!==null;)XT(a,s,c),a=a.sibling}function XT(a,s,c){switch(a.tag){case 26:cl(a,s,c),a.flags&cc&&a.memoizedState!==null&&Z6(c,Hr,a.memoizedState,a.memoizedProps);break;case 5:cl(a,s,c);break;case 3:case 4:var h=Hr;Hr=ph(a.stateNode.containerInfo),cl(a,s,c),Hr=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=cc,cc=16777216,cl(a,s,c),cc=h):cl(a,s,c));break;default:cl(a,s,c)}}function QT(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}function fc(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];ln=h,JT(h,a)}QT(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ZT(a),a=a.sibling}function ZT(a){switch(a.tag){case 0:case 11:case 15:fc(a),a.flags&2048&&Da(9,a,a.return);break;case 3:fc(a);break;case 12:fc(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&2&&(a.return===null||a.return.tag!==13)?(s._visibility&=-3,th(a)):fc(a);break;default:fc(a)}}function th(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];ln=h,JT(h,a)}QT(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:Da(8,s,s.return),th(s);break;case 22:c=s.stateNode,c._visibility&2&&(c._visibility&=-3,th(s));break;default:th(s)}a=a.sibling}}function JT(a,s){for(;ln!==null;){var c=ln;switch(c.tag){case 0:case 11:case 15:Da(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Yu(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,ln=h;else e:for(c=a;ln!==null;){h=ln;var v=h.sibling,b=h.return;if(qT(h),h===c){ln=null;break e}if(v!==null){v.return=b,ln=v;break e}ln=b}}}var h6={getCacheForType:function(a){var s=gn(Ut),c=s.data.get(a);return c===void 0&&(c=a(),s.data.set(a,c)),c},cacheSignal:function(){return gn(Ut).controller.signal}},p6=typeof WeakMap=="function"?WeakMap:Map,et=0,ut=null,Ue=null,qe=0,nt=0,sr=null,Ra=!1,fl=!1,_g=!1,Yi=0,Mt=0,Ia=0,Uo=0,Cg=0,lr=0,dl=0,dc=null,Wn=null,kg=!1,nh=0,e_=0,rh=1/0,ih=null,La=null,Xt=0,za=null,hl=null,Wi=0,jg=0,Ng=null,t_=null,hc=0,Mg=null;function ur(){return(et&2)!==0&&qe!==0?qe&-qe:D.T!==null?zg():vO()}function n_(){if(lr===0)if((qe&536870912)===0||Ge){var a=Oo;Oo<<=1,(Oo&3932160)===0&&(Oo=262144),lr=a}else lr=536870912;return a=ar.current,a!==null&&(a.flags|=32),lr}function Xn(a,s,c){(a===ut&&(nt===2||nt===9)||a.cancelPendingCommit!==null)&&(pl(a,0),Ba(a,qe,lr,!1)),Sa(a,c),((et&2)===0||a!==ut)&&(a===ut&&((et&2)===0&&(Uo|=c),Mt===4&&Ba(a,qe,lr,!1)),ci(a))}function r_(a,s,c){if((et&6)!==0)throw Error(r(327));var h=!c&&(s&127)===0&&(s&a.expiredLanes)===0||wa(a,s),v=h?v6(a,s):Dg(a,s,!0),b=h;do{if(v===0){fl&&!h&&Ba(a,s,0,!1);break}else{if(c=a.current.alternate,b&&!m6(c)){v=Dg(a,s,!1),b=!1;continue}if(v===2){if(b=s,a.errorRecoveryDisabledLanes&b)var T=0;else T=a.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){s=T;e:{var j=a;v=dc;var L=j.current.memoizedState.isDehydrated;if(L&&(pl(j,T).flags|=256),T=Dg(j,T,!1),T!==2){if(_g&&!L){j.errorRecoveryDisabledLanes|=b,Uo|=b,v=4;break e}b=Wn,Wn=v,b!==null&&(Wn===null?Wn=b:Wn.push.apply(Wn,b))}v=T}if(b=!1,v!==2)continue}}if(v===1){pl(a,0),Ba(a,s,0,!0);break}e:{switch(h=a,b=v,b){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Ba(h,s,lr,!Ra);break e;case 2:Wn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(v=nh+300-Le(),10<v)){if(Ba(h,s,lr,!Ra),Rs(h,0,!0)!==0)break e;Wi=s,h.timeoutHandle=D_(i_.bind(null,h,c,Wn,ih,kg,s,lr,Uo,dl,Ra,b,"Throttled",-0,0),v);break e}i_(h,c,Wn,ih,kg,s,lr,Uo,dl,Ra,b,null,-0,0)}}break}while(!0);ci(a)}function i_(a,s,c,h,v,b,T,j,L,K,te,ae,W,J){if(a.timeoutHandle=-1,ae=s.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Di},XT(s,b,ae);var be=(b&62914560)===b?nh-Le():(b&4194048)===b?e_-Le():0;if(be=J6(ae,be),be!==null){Wi=b,a.cancelPendingCommit=be(d_.bind(null,a,s,b,c,h,v,T,j,L,te,ae,null,W,J)),Ba(a,b,T,!K);return}}d_(a,s,b,c,h,v,T,j,L)}function m6(a){for(var s=a;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var v=c[h],b=v.getSnapshot;v=v.value;try{if(!rr(b(),v))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ba(a,s,c,h){s&=~Cg,s&=~Uo,a.suspendedLanes|=s,a.pingedLanes&=~s,h&&(a.warmLanes|=s),h=a.expirationTimes;for(var v=s;0<v;){var b=31-In(v),T=1<<b;h[b]=-1,v&=~T}c!==0&&_e(a,c,s)}function ah(){return(et&6)===0?(pc(0),!1):!0}function Pg(){if(Ue!==null){if(nt===0)var a=Ue.return;else a=Ue,zi=Mo=null,Wv(a),il=null,Xu=0,a=Ue;for(;a!==null;)RT(a.alternate,a),a=a.return;Ue=null}}function pl(a,s){var c=a.timeoutHandle;c!==-1&&(a.timeoutHandle=-1,R6(c)),c=a.cancelPendingCommit,c!==null&&(a.cancelPendingCommit=null,c()),Wi=0,Pg(),ut=a,Ue=c=Ii(a.current,null),qe=s,nt=0,sr=null,Ra=!1,fl=wa(a,s),_g=!1,dl=lr=Cg=Uo=Ia=Mt=0,Wn=dc=null,kg=!1,(s&8)!==0&&(s|=s&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=s;0<h;){var v=31-In(h),b=1<<v;s|=a[v],h&=~b}return Yi=s,Td(),c}function a_(a,s){De=null,D.H=ic,s===rl||s===Dd?(s=wA(),nt=3):s===Lv?(s=wA(),nt=4):nt=s===fg?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,sr=s,Ue===null&&(Mt=1,Yd(a,Sr(s,a.current)))}function o_(){var a=ar.current;return a===null?!0:(qe&4194048)===qe?Tr===null:(qe&62914560)===qe||(qe&536870912)!==0?a===Tr:!1}function s_(){var a=D.H;return D.H=ic,a===null?ic:a}function l_(){var a=D.A;return D.A=h6,a}function oh(){Mt=4,Ra||(qe&4194048)!==qe&&ar.current!==null||(fl=!0),(Ia&134217727)===0&&(Uo&134217727)===0||ut===null||Ba(ut,qe,lr,!1)}function Dg(a,s,c){var h=et;et|=2;var v=s_(),b=l_();(ut!==a||qe!==s)&&(ih=null,pl(a,s)),s=!1;var T=Mt;e:do try{if(nt!==0&&Ue!==null){var j=Ue,L=sr;switch(nt){case 8:Pg(),T=6;break e;case 3:case 2:case 9:case 6:ar.current===null&&(s=!0);var K=nt;if(nt=0,sr=null,ml(a,j,L,K),c&&fl){T=0;break e}break;default:K=nt,nt=0,sr=null,ml(a,j,L,K)}}y6(),T=Mt;break}catch(te){a_(a,te)}while(!0);return s&&a.shellSuspendCounter++,zi=Mo=null,et=h,D.H=v,D.A=b,Ue===null&&(ut=null,qe=0,Td()),T}function y6(){for(;Ue!==null;)u_(Ue)}function v6(a,s){var c=et;et|=2;var h=s_(),v=l_();ut!==a||qe!==s?(ih=null,rh=Le()+500,pl(a,s)):fl=wa(a,s);e:do try{if(nt!==0&&Ue!==null){s=Ue;var b=sr;t:switch(nt){case 1:nt=0,sr=null,ml(a,s,b,1);break;case 2:case 9:if(bA(b)){nt=0,sr=null,c_(s);break}s=function(){nt!==2&&nt!==9||ut!==a||(nt=7),ci(a)},b.then(s,s);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:bA(b)?(nt=0,sr=null,c_(s)):(nt=0,sr=null,ml(a,s,b,7));break;case 5:var T=null;switch(Ue.tag){case 26:T=Ue.memoizedState;case 5:case 27:var j=Ue;if(T?W_(T):j.stateNode.complete){nt=0,sr=null;var L=j.sibling;if(L!==null)Ue=L;else{var K=j.return;K!==null?(Ue=K,sh(K)):Ue=null}break t}}nt=0,sr=null,ml(a,s,b,5);break;case 6:nt=0,sr=null,ml(a,s,b,6);break;case 8:Pg(),Mt=6;break e;default:throw Error(r(462))}}g6();break}catch(te){a_(a,te)}while(!0);return zi=Mo=null,D.H=h,D.A=v,et=c,Ue!==null?0:(ut=null,qe=0,Td(),Mt)}function g6(){for(;Ue!==null&&!nr();)u_(Ue)}function u_(a){var s=PT(a.alternate,a,Yi);a.memoizedProps=a.pendingProps,s===null?sh(a):Ue=s}function c_(a){var s=a,c=s.alternate;switch(s.tag){case 15:case 0:s=_T(c,s,s.pendingProps,s.type,void 0,qe);break;case 11:s=_T(c,s,s.pendingProps,s.type.render,s.ref,qe);break;case 5:Wv(s);default:RT(c,s),s=Ue=lA(s,Yi),s=PT(c,s,Yi)}a.memoizedProps=a.pendingProps,s===null?sh(a):Ue=s}function ml(a,s,c,h){zi=Mo=null,Wv(s),il=null,Xu=0;var v=s.return;try{if(o6(a,v,s,c,qe)){Mt=1,Yd(a,Sr(c,a.current)),Ue=null;return}}catch(b){if(v!==null)throw Ue=v,b;Mt=1,Yd(a,Sr(c,a.current)),Ue=null;return}s.flags&32768?(Ge||h===1?a=!0:fl||(qe&536870912)!==0?a=!1:(Ra=a=!0,(h===2||h===9||h===3||h===6)&&(h=ar.current,h!==null&&h.tag===13&&(h.flags|=16384))),f_(s,a)):sh(s)}function sh(a){var s=a;do{if((s.flags&32768)!==0){f_(s,Ra);return}a=s.return;var c=u6(s.alternate,s,Yi);if(c!==null){Ue=c;return}if(s=s.sibling,s!==null){Ue=s;return}Ue=s=a}while(s!==null);Mt===0&&(Mt=5)}function f_(a,s){do{var c=c6(a.alternate,a);if(c!==null){c.flags&=32767,Ue=c;return}if(c=a.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(a=a.sibling,a!==null)){Ue=a;return}Ue=a=c}while(a!==null);Mt=6,Ue=null}function d_(a,s,c,h,v,b,T,j,L){a.cancelPendingCommit=null;do lh();while(Xt!==0);if((et&6)!==0)throw Error(r(327));if(s!==null){if(s===a.current)throw Error(r(177));if(b=s.lanes|s.childLanes,b|=Sv,oe(a,c,b,T,j,L),a===ut&&(Ue=ut=null,qe=0),hl=s,za=a,Wi=c,jg=b,Ng=v,t_=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,S6(So,function(){return v_(),null})):(a.callbackNode=null,a.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=D.T,D.T=null,v=q.p,q.p=2,T=et,et|=4;try{f6(a,s,c)}finally{et=T,q.p=v,D.T=h}}Xt=1,h_(),p_(),m_()}}function h_(){if(Xt===1){Xt=0;var a=za,s=hl,c=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||c){c=D.T,D.T=null;var h=q.p;q.p=2;var v=et;et|=4;try{KT(s,a);var b=Gg,T=JO(a.containerInfo),j=b.focusedElem,L=b.selectionRange;if(T!==j&&j&&j.ownerDocument&&ZO(j.ownerDocument.documentElement,j)){if(L!==null&&vv(j)){var K=L.start,te=L.end;if(te===void 0&&(te=K),"selectionStart"in j)j.selectionStart=K,j.selectionEnd=Math.min(te,j.value.length);else{var ae=j.ownerDocument||document,W=ae&&ae.defaultView||window;if(W.getSelection){var J=W.getSelection(),be=j.textContent.length,Ce=Math.min(L.start,be),ot=L.end===void 0?Ce:Math.min(L.end,be);!J.extend&&Ce>ot&&(T=ot,ot=Ce,Ce=T);var U=QO(j,Ce),z=QO(j,ot);if(U&&z&&(J.rangeCount!==1||J.anchorNode!==U.node||J.anchorOffset!==U.offset||J.focusNode!==z.node||J.focusOffset!==z.offset)){var G=ae.createRange();G.setStart(U.node,U.offset),J.removeAllRanges(),Ce>ot?(J.addRange(G),J.extend(z.node,z.offset)):(G.setEnd(z.node,z.offset),J.addRange(G))}}}}for(ae=[],J=j;J=J.parentNode;)J.nodeType===1&&ae.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<ae.length;j++){var re=ae[j];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}xh=!!Hg,Gg=Hg=null}finally{et=v,q.p=h,D.T=c}}a.current=s,Xt=2}}function p_(){if(Xt===2){Xt=0;var a=za,s=hl,c=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||c){c=D.T,D.T=null;var h=q.p;q.p=2;var v=et;et|=4;try{FT(a,s.alternate,s)}finally{et=v,q.p=h,D.T=c}}Xt=3}}function m_(){if(Xt===4||Xt===3){Xt=0,Gy();var a=za,s=hl,c=Wi,h=t_;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Xt=5:(Xt=0,hl=za=null,y_(a,a.pendingLanes));var v=a.pendingLanes;if(v===0&&(La=null),Zy(c),s=s.stateNode,Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(Eo,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=D.T,v=q.p,q.p=2,D.T=null;try{for(var b=a.onRecoverableError,T=0;T<h.length;T++){var j=h[T];b(j.value,{componentStack:j.stack})}}finally{D.T=s,q.p=v}}(Wi&3)!==0&&lh(),ci(a),v=a.pendingLanes,(c&261930)!==0&&(v&42)!==0?a===Mg?hc++:(hc=0,Mg=a):hc=0,pc(0)}}function y_(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,Yu(s)))}function lh(){return h_(),p_(),m_(),v_()}function v_(){if(Xt!==5)return!1;var a=za,s=jg;jg=0;var c=Zy(Wi),h=D.T,v=q.p;try{q.p=32>c?32:c,D.T=null,c=Ng,Ng=null;var b=za,T=Wi;if(Xt=0,hl=za=null,Wi=0,(et&6)!==0)throw Error(r(331));var j=et;if(et|=4,ZT(b.current),WT(b,b.current,T,c),et=j,pc(0,!1),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(Eo,b)}catch{}return!0}finally{q.p=v,D.T=h,y_(a,s)}}function g_(a,s,c){s=Sr(c,s),s=cg(a.stateNode,s,2),a=Na(a,s,2),a!==null&&(Sa(a,2),ci(a))}function rt(a,s,c){if(a.tag===3)g_(a,a,c);else for(;s!==null;){if(s.tag===3){g_(s,a,c);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(La===null||!La.has(h))){a=Sr(c,a),c=bT(2),h=Na(s,c,2),h!==null&&(xT(c,h,s,a),Sa(h,2),ci(h));break}}s=s.return}}function Rg(a,s,c){var h=a.pingCache;if(h===null){h=a.pingCache=new p6;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(c)||(_g=!0,v.add(c),a=b6.bind(null,a,s,c),s.then(a,a))}function b6(a,s,c){var h=a.pingCache;h!==null&&h.delete(s),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,ut===a&&(qe&c)===c&&(Mt===4||Mt===3&&(qe&62914560)===qe&&300>Le()-nh?(et&2)===0&&pl(a,0):Cg|=c,dl===qe&&(dl=0)),ci(a)}function b_(a,s){s===0&&(s=Du()),a=ko(a,s),a!==null&&(Sa(a,s),ci(a))}function x6(a){var s=a.memoizedState,c=0;s!==null&&(c=s.retryLane),b_(a,c)}function w6(a,s){var c=0;switch(a.tag){case 31:case 13:var h=a.stateNode,v=a.memoizedState;v!==null&&(c=v.retryLane);break;case 19:h=a.stateNode;break;case 22:h=a.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),b_(a,c)}function S6(a,s){return ji(a,s)}var uh=null,yl=null,Ig=!1,ch=!1,Lg=!1,Va=0;function ci(a){a!==yl&&a.next===null&&(yl===null?uh=yl=a:yl=yl.next=a),ch=!0,Ig||(Ig=!0,O6())}function pc(a,s){if(!Lg&&ch){Lg=!0;do for(var c=!1,h=uh;h!==null;){if(a!==0){var v=h.pendingLanes;if(v===0)var b=0;else{var T=h.suspendedLanes,j=h.pingedLanes;b=(1<<31-In(42|a)+1)-1,b&=v&~(T&~j),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(c=!0,E_(h,b))}else b=qe,b=Rs(h,h===ut?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||wa(h,b)||(c=!0,E_(h,b));h=h.next}while(c);Lg=!1}}function E6(){x_()}function x_(){ch=Ig=!1;var a=0;Va!==0&&D6()&&(a=Va);for(var s=Le(),c=null,h=uh;h!==null;){var v=h.next,b=w_(h,s);b===0?(h.next=null,c===null?uh=v:c.next=v,v===null&&(yl=c)):(c=h,(a!==0||(b&3)!==0)&&(ch=!0)),h=v}Xt!==0&&Xt!==5||pc(a),Va!==0&&(Va=0)}function w_(a,s){for(var c=a.suspendedLanes,h=a.pingedLanes,v=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var T=31-In(b),j=1<<T,L=v[T];L===-1?((j&c)===0||(j&h)!==0)&&(v[T]=pd(j,s)):L<=s&&(a.expiredLanes|=j),b&=~j}if(s=ut,c=qe,c=Rs(a,a===s?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h=a.callbackNode,c===0||a===s&&(nt===2||nt===9)||a.cancelPendingCommit!==null)return h!==null&&h!==null&&Mu(h),a.callbackNode=null,a.callbackPriority=0;if((c&3)===0||wa(a,c)){if(s=c&-c,s===a.callbackPriority)return s;switch(h!==null&&Mu(h),Zy(c)){case 2:case 8:c=hd;break;case 32:c=So;break;case 268435456:c=Pu;break;default:c=So}return h=S_.bind(null,a),c=ji(c,h),a.callbackPriority=s,a.callbackNode=c,s}return h!==null&&h!==null&&Mu(h),a.callbackPriority=2,a.callbackNode=null,2}function S_(a,s){if(Xt!==0&&Xt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var c=a.callbackNode;if(lh()&&a.callbackNode!==c)return null;var h=qe;return h=Rs(a,a===ut?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h===0?null:(r_(a,h,s),w_(a,Le()),a.callbackNode!=null&&a.callbackNode===c?S_.bind(null,a):null)}function E_(a,s){if(lh())return null;r_(a,s,!0)}function O6(){I6(function(){(et&6)!==0?ji(Ns,E6):x_()})}function zg(){if(Va===0){var a=tl;a===0&&(a=Ps,Ps<<=1,(Ps&261888)===0&&(Ps=256)),Va=a}return Va}function O_(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:gd(""+a)}function A_(a,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,a.id&&c.setAttribute("form",a.id),s.parentNode.insertBefore(c,s),a=new FormData(a),c.parentNode.removeChild(c),a}function A6(a,s,c,h,v){if(s==="submit"&&c&&c.stateNode===v){var b=O_((v[$n]||null).action),T=h.submitter;T&&(s=(s=T[$n]||null)?O_(s.formAction):T.getAttribute("formAction"),s!==null&&(b=s,T=null));var j=new Sd("action","action",null,h,v);a.push({event:j,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Va!==0){var L=T?A_(v,T):new FormData(v);ig(c,{pending:!0,data:L,method:v.method,action:b},null,L)}}else typeof b=="function"&&(j.preventDefault(),L=T?A_(v,T):new FormData(v),ig(c,{pending:!0,data:L,method:v.method,action:b},b,L))},currentTarget:v}]})}}for(var Bg=0;Bg<wv.length;Bg++){var Vg=wv[Bg],T6=Vg.toLowerCase(),_6=Vg[0].toUpperCase()+Vg.slice(1);$r(T6,"on"+_6)}$r(nA,"onAnimationEnd"),$r(rA,"onAnimationIteration"),$r(iA,"onAnimationStart"),$r("dblclick","onDoubleClick"),$r("focusin","onFocus"),$r("focusout","onBlur"),$r(qU,"onTransitionRun"),$r($U,"onTransitionStart"),$r(HU,"onTransitionCancel"),$r(aA,"onTransitionEnd"),Us("onMouseEnter",["mouseout","mouseover"]),Us("onMouseLeave",["mouseout","mouseover"]),Us("onPointerEnter",["pointerout","pointerover"]),Us("onPointerLeave",["pointerout","pointerover"]),Ao("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ao("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ao("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ao("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ao("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ao("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),C6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mc));function T_(a,s){s=(s&4)!==0;for(var c=0;c<a.length;c++){var h=a[c],v=h.event;h=h.listeners;e:{var b=void 0;if(s)for(var T=h.length-1;0<=T;T--){var j=h[T],L=j.instance,K=j.currentTarget;if(j=j.listener,L!==b&&v.isPropagationStopped())break e;b=j,v.currentTarget=K;try{b(v)}catch(te){Ad(te)}v.currentTarget=null,b=L}else for(T=0;T<h.length;T++){if(j=h[T],L=j.instance,K=j.currentTarget,j=j.listener,L!==b&&v.isPropagationStopped())break e;b=j,v.currentTarget=K;try{b(v)}catch(te){Ad(te)}v.currentTarget=null,b=L}}}}function Fe(a,s){var c=s[Jy];c===void 0&&(c=s[Jy]=new Set);var h=a+"__bubble";c.has(h)||(__(s,a,2,!1),c.add(h))}function Ug(a,s,c){var h=0;s&&(h|=4),__(c,a,h,s)}var fh="_reactListening"+Math.random().toString(36).slice(2);function Fg(a){if(!a[fh]){a[fh]=!0,xO.forEach(function(c){c!=="selectionchange"&&(C6.has(c)||Ug(c,!1,a),Ug(c,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[fh]||(s[fh]=!0,Ug("selectionchange",!1,s))}}function __(a,s,c,h){switch(nC(s)){case 2:var v=nF;break;case 8:v=rF;break;default:v=r0}c=v.bind(null,s,c,a),v=void 0,!lv||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),h?v!==void 0?a.addEventListener(s,c,{capture:!0,passive:v}):a.addEventListener(s,c,!0):v!==void 0?a.addEventListener(s,c,{passive:v}):a.addEventListener(s,c,!1)}function qg(a,s,c,h,v){var b=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var T=h.tag;if(T===3||T===4){var j=h.stateNode.containerInfo;if(j===v)break;if(T===4)for(T=h.return;T!==null;){var L=T.tag;if((L===3||L===4)&&T.stateNode.containerInfo===v)return;T=T.return}for(;j!==null;){if(T=zs(j),T===null)return;if(L=T.tag,L===5||L===6||L===26||L===27){h=b=T;continue e}j=j.parentNode}}h=h.return}MO(function(){var K=b,te=ov(c),ae=[];e:{var W=oA.get(a);if(W!==void 0){var J=Sd,be=a;switch(a){case"keypress":if(xd(c)===0)break e;case"keydown":case"keyup":J=wU;break;case"focusin":be="focus",J=dv;break;case"focusout":be="blur",J=dv;break;case"beforeblur":case"afterblur":J=dv;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=RO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=uU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=OU;break;case nA:case rA:case iA:J=dU;break;case aA:J=TU;break;case"scroll":case"scrollend":J=sU;break;case"wheel":J=CU;break;case"copy":case"cut":case"paste":J=pU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=LO;break;case"toggle":case"beforetoggle":J=jU}var Ce=(s&4)!==0,ot=!Ce&&(a==="scroll"||a==="scrollend"),U=Ce?W!==null?W+"Capture":null:W;Ce=[];for(var z=K,G;z!==null;){var re=z;if(G=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||G===null||U===null||(re=Lu(z,U),re!=null&&Ce.push(yc(z,re,G))),ot)break;z=z.return}0<Ce.length&&(W=new J(W,be,null,c,te),ae.push({event:W,listeners:Ce}))}}if((s&7)===0){e:{if(W=a==="mouseover"||a==="pointerover",J=a==="mouseout"||a==="pointerout",W&&c!==av&&(be=c.relatedTarget||c.fromElement)&&(zs(be)||be[Ls]))break e;if((J||W)&&(W=te.window===te?te:(W=te.ownerDocument)?W.defaultView||W.parentWindow:window,J?(be=c.relatedTarget||c.toElement,J=K,be=be?zs(be):null,be!==null&&(ot=o(be),Ce=be.tag,be!==ot||Ce!==5&&Ce!==27&&Ce!==6)&&(be=null)):(J=null,be=K),J!==be)){if(Ce=RO,re="onMouseLeave",U="onMouseEnter",z="mouse",(a==="pointerout"||a==="pointerover")&&(Ce=LO,re="onPointerLeave",U="onPointerEnter",z="pointer"),ot=J==null?W:Iu(J),G=be==null?W:Iu(be),W=new Ce(re,z+"leave",J,c,te),W.target=ot,W.relatedTarget=G,re=null,zs(te)===K&&(Ce=new Ce(U,z+"enter",be,c,te),Ce.target=G,Ce.relatedTarget=ot,re=Ce),ot=re,J&&be)t:{for(Ce=k6,U=J,z=be,G=0,re=U;re;re=Ce(re))G++;re=0;for(var Te=z;Te;Te=Ce(Te))re++;for(;0<G-re;)U=Ce(U),G--;for(;0<re-G;)z=Ce(z),re--;for(;G--;){if(U===z||z!==null&&U===z.alternate){Ce=U;break t}U=Ce(U),z=Ce(z)}Ce=null}else Ce=null;J!==null&&C_(ae,W,J,Ce,!1),be!==null&&ot!==null&&C_(ae,ot,be,Ce,!0)}}e:{if(W=K?Iu(K):window,J=W.nodeName&&W.nodeName.toLowerCase(),J==="select"||J==="input"&&W.type==="file")var Xe=HO;else if(qO(W))if(GO)Xe=VU;else{Xe=zU;var Oe=LU}else J=W.nodeName,!J||J.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?K&&iv(K.elementType)&&(Xe=HO):Xe=BU;if(Xe&&(Xe=Xe(a,K))){$O(ae,Xe,c,te);break e}Oe&&Oe(a,W,K),a==="focusout"&&K&&W.type==="number"&&K.memoizedProps.value!=null&&rv(W,"number",W.value)}switch(Oe=K?Iu(K):window,a){case"focusin":(qO(Oe)||Oe.contentEditable==="true")&&(Ks=Oe,gv=K,Hu=null);break;case"focusout":Hu=gv=Ks=null;break;case"mousedown":bv=!0;break;case"contextmenu":case"mouseup":case"dragend":bv=!1,eA(ae,c,te);break;case"selectionchange":if(FU)break;case"keydown":case"keyup":eA(ae,c,te)}var Ie;if(pv)e:{switch(a){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Gs?UO(a,c)&&($e="onCompositionEnd"):a==="keydown"&&c.keyCode===229&&($e="onCompositionStart");$e&&(zO&&c.locale!=="ko"&&(Gs||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Gs&&(Ie=PO()):(Oa=te,uv="value"in Oa?Oa.value:Oa.textContent,Gs=!0)),Oe=dh(K,$e),0<Oe.length&&($e=new IO($e,a,null,c,te),ae.push({event:$e,listeners:Oe}),Ie?$e.data=Ie:(Ie=FO(c),Ie!==null&&($e.data=Ie)))),(Ie=MU?PU(a,c):DU(a,c))&&($e=dh(K,"onBeforeInput"),0<$e.length&&(Oe=new IO("onBeforeInput","beforeinput",null,c,te),ae.push({event:Oe,listeners:$e}),Oe.data=Ie)),A6(ae,a,K,c,te)}T_(ae,s)})}function yc(a,s,c){return{instance:a,listener:s,currentTarget:c}}function dh(a,s){for(var c=s+"Capture",h=[];a!==null;){var v=a,b=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||b===null||(v=Lu(a,c),v!=null&&h.unshift(yc(a,v,b)),v=Lu(a,s),v!=null&&h.push(yc(a,v,b))),a.tag===3)return h;a=a.return}return[]}function k6(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function C_(a,s,c,h,v){for(var b=s._reactName,T=[];c!==null&&c!==h;){var j=c,L=j.alternate,K=j.stateNode;if(j=j.tag,L!==null&&L===h)break;j!==5&&j!==26&&j!==27||K===null||(L=K,v?(K=Lu(c,b),K!=null&&T.unshift(yc(c,K,L))):v||(K=Lu(c,b),K!=null&&T.push(yc(c,K,L)))),c=c.return}T.length!==0&&a.push({event:s,listeners:T})}var j6=/\r\n?/g,N6=/\u0000|\uFFFD/g;function k_(a){return(typeof a=="string"?a:""+a).replace(j6,`
`).replace(N6,"")}function j_(a,s){return s=k_(s),k_(a)===s}function at(a,s,c,h,v,b){switch(c){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||qs(a,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&qs(a,""+h);break;case"className":yd(a,"class",h);break;case"tabIndex":yd(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":yd(a,c,h);break;case"style":jO(a,h,b);break;case"data":if(s!=="object"){yd(a,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||c!=="href")){a.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(c);break}h=gd(""+h),a.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){a.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(c==="formAction"?(s!=="input"&&at(a,s,"name",v.name,v,null),at(a,s,"formEncType",v.formEncType,v,null),at(a,s,"formMethod",v.formMethod,v,null),at(a,s,"formTarget",v.formTarget,v,null)):(at(a,s,"encType",v.encType,v,null),at(a,s,"method",v.method,v,null),at(a,s,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(c);break}h=gd(""+h),a.setAttribute(c,h);break;case"onClick":h!=null&&(a.onclick=Di);break;case"onScroll":h!=null&&Fe("scroll",a);break;case"onScrollEnd":h!=null&&Fe("scrollend",a);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"multiple":a.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":a.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){a.removeAttribute("xlink:href");break}c=gd(""+h),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(c,""+h):a.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(c,""):a.removeAttribute(c);break;case"capture":case"download":h===!0?a.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(c,h):a.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?a.setAttribute(c,h):a.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?a.removeAttribute(c):a.setAttribute(c,h);break;case"popover":Fe("beforetoggle",a),Fe("toggle",a),md(a,"popover",h);break;case"xlinkActuate":Pi(a,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Pi(a,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Pi(a,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Pi(a,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Pi(a,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Pi(a,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Pi(a,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Pi(a,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Pi(a,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":md(a,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=aU.get(c)||c,md(a,c,h))}}function $g(a,s,c,h,v,b){switch(c){case"style":jO(a,h,b);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"children":typeof h=="string"?qs(a,h):(typeof h=="number"||typeof h=="bigint")&&qs(a,""+h);break;case"onScroll":h!=null&&Fe("scroll",a);break;case"onScrollEnd":h!=null&&Fe("scrollend",a);break;case"onClick":h!=null&&(a.onclick=Di);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wO.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(v=c.endsWith("Capture"),s=c.slice(2,v?c.length-7:void 0),b=a[$n]||null,b=b!=null?b[c]:null,typeof b=="function"&&a.removeEventListener(s,b,v),typeof h=="function")){typeof b!="function"&&b!==null&&(c in a?a[c]=null:a.hasAttribute(c)&&a.removeAttribute(c)),a.addEventListener(s,h,v);break e}c in a?a[c]=h:h===!0?a.setAttribute(c,""):md(a,c,h)}}}function xn(a,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",a),Fe("load",a);var h=!1,v=!1,b;for(b in c)if(c.hasOwnProperty(b)){var T=c[b];if(T!=null)switch(b){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:at(a,s,b,T,c,null)}}v&&at(a,s,"srcSet",c.srcSet,c,null),h&&at(a,s,"src",c.src,c,null);return;case"input":Fe("invalid",a);var j=b=T=v=null,L=null,K=null;for(h in c)if(c.hasOwnProperty(h)){var te=c[h];if(te!=null)switch(h){case"name":v=te;break;case"type":T=te;break;case"checked":L=te;break;case"defaultChecked":K=te;break;case"value":b=te;break;case"defaultValue":j=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,s));break;default:at(a,s,h,te,c,null)}}TO(a,b,j,L,K,T,v,!1);return;case"select":Fe("invalid",a),h=T=b=null;for(v in c)if(c.hasOwnProperty(v)&&(j=c[v],j!=null))switch(v){case"value":b=j;break;case"defaultValue":T=j;break;case"multiple":h=j;default:at(a,s,v,j,c,null)}s=b,c=T,a.multiple=!!h,s!=null?Fs(a,!!h,s,!1):c!=null&&Fs(a,!!h,c,!0);return;case"textarea":Fe("invalid",a),b=v=h=null;for(T in c)if(c.hasOwnProperty(T)&&(j=c[T],j!=null))switch(T){case"value":h=j;break;case"defaultValue":v=j;break;case"children":b=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(91));break;default:at(a,s,T,j,c,null)}CO(a,h,v,b);return;case"option":for(L in c)if(c.hasOwnProperty(L)&&(h=c[L],h!=null))switch(L){case"selected":a.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:at(a,s,L,h,c,null)}return;case"dialog":Fe("beforetoggle",a),Fe("toggle",a),Fe("cancel",a),Fe("close",a);break;case"iframe":case"object":Fe("load",a);break;case"video":case"audio":for(h=0;h<mc.length;h++)Fe(mc[h],a);break;case"image":Fe("error",a),Fe("load",a);break;case"details":Fe("toggle",a);break;case"embed":case"source":case"link":Fe("error",a),Fe("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in c)if(c.hasOwnProperty(K)&&(h=c[K],h!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:at(a,s,K,h,c,null)}return;default:if(iv(s)){for(te in c)c.hasOwnProperty(te)&&(h=c[te],h!==void 0&&$g(a,s,te,h,c,void 0));return}}for(j in c)c.hasOwnProperty(j)&&(h=c[j],h!=null&&at(a,s,j,h,c,null))}function M6(a,s,c,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,b=null,T=null,j=null,L=null,K=null,te=null;for(J in c){var ae=c[J];if(c.hasOwnProperty(J)&&ae!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":L=ae;default:h.hasOwnProperty(J)||at(a,s,J,null,h,ae)}}for(var W in h){var J=h[W];if(ae=c[W],h.hasOwnProperty(W)&&(J!=null||ae!=null))switch(W){case"type":b=J;break;case"name":v=J;break;case"checked":K=J;break;case"defaultChecked":te=J;break;case"value":T=J;break;case"defaultValue":j=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,s));break;default:J!==ae&&at(a,s,W,J,h,ae)}}nv(a,T,j,L,K,te,b,v);return;case"select":J=T=j=W=null;for(b in c)if(L=c[b],c.hasOwnProperty(b)&&L!=null)switch(b){case"value":break;case"multiple":J=L;default:h.hasOwnProperty(b)||at(a,s,b,null,h,L)}for(v in h)if(b=h[v],L=c[v],h.hasOwnProperty(v)&&(b!=null||L!=null))switch(v){case"value":W=b;break;case"defaultValue":j=b;break;case"multiple":T=b;default:b!==L&&at(a,s,v,b,h,L)}s=j,c=T,h=J,W!=null?Fs(a,!!c,W,!1):!!h!=!!c&&(s!=null?Fs(a,!!c,s,!0):Fs(a,!!c,c?[]:"",!1));return;case"textarea":J=W=null;for(j in c)if(v=c[j],c.hasOwnProperty(j)&&v!=null&&!h.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:at(a,s,j,null,h,v)}for(T in h)if(v=h[T],b=c[T],h.hasOwnProperty(T)&&(v!=null||b!=null))switch(T){case"value":W=v;break;case"defaultValue":J=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==b&&at(a,s,T,v,h,b)}_O(a,W,J);return;case"option":for(var be in c)if(W=c[be],c.hasOwnProperty(be)&&W!=null&&!h.hasOwnProperty(be))switch(be){case"selected":a.selected=!1;break;default:at(a,s,be,null,h,W)}for(L in h)if(W=h[L],J=c[L],h.hasOwnProperty(L)&&W!==J&&(W!=null||J!=null))switch(L){case"selected":a.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:at(a,s,L,W,h,J)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ce in c)W=c[Ce],c.hasOwnProperty(Ce)&&W!=null&&!h.hasOwnProperty(Ce)&&at(a,s,Ce,null,h,W);for(K in h)if(W=h[K],J=c[K],h.hasOwnProperty(K)&&W!==J&&(W!=null||J!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,s));break;default:at(a,s,K,W,h,J)}return;default:if(iv(s)){for(var ot in c)W=c[ot],c.hasOwnProperty(ot)&&W!==void 0&&!h.hasOwnProperty(ot)&&$g(a,s,ot,void 0,h,W);for(te in h)W=h[te],J=c[te],!h.hasOwnProperty(te)||W===J||W===void 0&&J===void 0||$g(a,s,te,W,h,J);return}}for(var U in c)W=c[U],c.hasOwnProperty(U)&&W!=null&&!h.hasOwnProperty(U)&&at(a,s,U,null,h,W);for(ae in h)W=h[ae],J=c[ae],!h.hasOwnProperty(ae)||W===J||W==null&&J==null||at(a,s,ae,W,h,J)}function N_(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function P6(){if(typeof performance.getEntriesByType=="function"){for(var a=0,s=0,c=performance.getEntriesByType("resource"),h=0;h<c.length;h++){var v=c[h],b=v.transferSize,T=v.initiatorType,j=v.duration;if(b&&j&&N_(T)){for(T=0,j=v.responseEnd,h+=1;h<c.length;h++){var L=c[h],K=L.startTime;if(K>j)break;var te=L.transferSize,ae=L.initiatorType;te&&N_(ae)&&(L=L.responseEnd,T+=te*(L<j?1:(j-K)/(L-K)))}if(--h,s+=8*(b+T)/(v.duration/1e3),a++,10<a)break}}if(0<a)return s/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var Hg=null,Gg=null;function hh(a){return a.nodeType===9?a:a.ownerDocument}function M_(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function P_(a,s){if(a===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&s==="foreignObject"?0:a}function Kg(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Yg=null;function D6(){var a=window.event;return a&&a.type==="popstate"?a===Yg?!1:(Yg=a,!0):(Yg=null,!1)}var D_=typeof setTimeout=="function"?setTimeout:void 0,R6=typeof clearTimeout=="function"?clearTimeout:void 0,R_=typeof Promise=="function"?Promise:void 0,I6=typeof queueMicrotask=="function"?queueMicrotask:typeof R_<"u"?function(a){return R_.resolve(null).then(a).catch(L6)}:D_;function L6(a){setTimeout(function(){throw a})}function Ua(a){return a==="head"}function I_(a,s){var c=s,h=0;do{var v=c.nextSibling;if(a.removeChild(c),v&&v.nodeType===8)if(c=v.data,c==="/$"||c==="/&"){if(h===0){a.removeChild(v),xl(s);return}h--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")h++;else if(c==="html")vc(a.ownerDocument.documentElement);else if(c==="head"){c=a.ownerDocument.head,vc(c);for(var b=c.firstChild;b;){var T=b.nextSibling,j=b.nodeName;b[Ru]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&b.rel.toLowerCase()==="stylesheet"||c.removeChild(b),b=T}}else c==="body"&&vc(a.ownerDocument.body);c=v}while(c);xl(s)}function L_(a,s){var c=a;a=0;do{var h=c.nextSibling;if(c.nodeType===1?s?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(s?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),h&&h.nodeType===8)if(c=h.data,c==="/$"){if(a===0)break;a--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||a++;c=h}while(c)}function Wg(a){var s=a.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Wg(c),ev(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}a.removeChild(c)}}function z6(a,s,c,h){for(;a.nodeType===1;){var v=c;if(a.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[Ru])switch(s){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(b=a.getAttribute("rel"),b==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(b!==v.rel||a.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||a.getAttribute("title")!==(v.title==null?null:v.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(v.src==null?null:v.src)||a.getAttribute("type")!==(v.type==null?null:v.type)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(s==="input"&&a.type==="hidden"){var b=v.name==null?null:""+v.name;if(v.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=_r(a.nextSibling),a===null)break}return null}function B6(a,s,c){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=_r(a.nextSibling),a===null))return null;return a}function z_(a,s){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!s||(a=_r(a.nextSibling),a===null))return null;return a}function Xg(a){return a.data==="$?"||a.data==="$~"}function Qg(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function V6(a,s){var c=a.ownerDocument;if(a.data==="$~")a._reactRetry=s;else if(a.data!=="$?"||c.readyState!=="loading")s();else{var h=function(){s(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),a._reactRetry=h}}function _r(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return a}var Zg=null;function B_(a){a=a.nextSibling;for(var s=0;a;){if(a.nodeType===8){var c=a.data;if(c==="/$"||c==="/&"){if(s===0)return _r(a.nextSibling);s--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||s++}a=a.nextSibling}return null}function V_(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var c=a.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(s===0)return a;s--}else c!=="/$"&&c!=="/&"||s++}a=a.previousSibling}return null}function U_(a,s,c){switch(s=hh(c),a){case"html":if(a=s.documentElement,!a)throw Error(r(452));return a;case"head":if(a=s.head,!a)throw Error(r(453));return a;case"body":if(a=s.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function vc(a){for(var s=a.attributes;s.length;)a.removeAttributeNode(s[0]);ev(a)}var Cr=new Map,F_=new Set;function ph(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Xi=q.d;q.d={f:U6,r:F6,D:q6,C:$6,L:H6,m:G6,X:Y6,S:K6,M:W6};function U6(){var a=Xi.f(),s=ah();return a||s}function F6(a){var s=Bs(a);s!==null&&s.tag===5&&s.type==="form"?aT(s):Xi.r(a)}var vl=typeof document>"u"?null:document;function q_(a,s,c){var h=vl;if(h&&typeof s=="string"&&s){var v=xr(s);v='link[rel="'+a+'"][href="'+v+'"]',typeof c=="string"&&(v+='[crossorigin="'+c+'"]'),F_.has(v)||(F_.add(v),a={rel:a,crossOrigin:c,href:s},h.querySelector(v)===null&&(s=h.createElement("link"),xn(s,"link",a),sn(s),h.head.appendChild(s)))}}function q6(a){Xi.D(a),q_("dns-prefetch",a,null)}function $6(a,s){Xi.C(a,s),q_("preconnect",a,s)}function H6(a,s,c){Xi.L(a,s,c);var h=vl;if(h&&a&&s){var v='link[rel="preload"][as="'+xr(s)+'"]';s==="image"&&c&&c.imageSrcSet?(v+='[imagesrcset="'+xr(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(v+='[imagesizes="'+xr(c.imageSizes)+'"]')):v+='[href="'+xr(a)+'"]';var b=v;switch(s){case"style":b=gl(a);break;case"script":b=bl(a)}Cr.has(b)||(a=m({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:a,as:s},c),Cr.set(b,a),h.querySelector(v)!==null||s==="style"&&h.querySelector(gc(b))||s==="script"&&h.querySelector(bc(b))||(s=h.createElement("link"),xn(s,"link",a),sn(s),h.head.appendChild(s)))}}function G6(a,s){Xi.m(a,s);var c=vl;if(c&&a){var h=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+xr(h)+'"][href="'+xr(a)+'"]',b=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=bl(a)}if(!Cr.has(b)&&(a=m({rel:"modulepreload",href:a},s),Cr.set(b,a),c.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(bc(b)))return}h=c.createElement("link"),xn(h,"link",a),sn(h),c.head.appendChild(h)}}}function K6(a,s,c){Xi.S(a,s,c);var h=vl;if(h&&a){var v=Vs(h).hoistableStyles,b=gl(a);s=s||"default";var T=v.get(b);if(!T){var j={loading:0,preload:null};if(T=h.querySelector(gc(b)))j.loading=5;else{a=m({rel:"stylesheet",href:a,"data-precedence":s},c),(c=Cr.get(b))&&Jg(a,c);var L=T=h.createElement("link");sn(L),xn(L,"link",a),L._p=new Promise(function(K,te){L.onload=K,L.onerror=te}),L.addEventListener("load",function(){j.loading|=1}),L.addEventListener("error",function(){j.loading|=2}),j.loading|=4,mh(T,s,h)}T={type:"stylesheet",instance:T,count:1,state:j},v.set(b,T)}}}function Y6(a,s){Xi.X(a,s);var c=vl;if(c&&a){var h=Vs(c).hoistableScripts,v=bl(a),b=h.get(v);b||(b=c.querySelector(bc(v)),b||(a=m({src:a,async:!0},s),(s=Cr.get(v))&&e0(a,s),b=c.createElement("script"),sn(b),xn(b,"link",a),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(v,b))}}function W6(a,s){Xi.M(a,s);var c=vl;if(c&&a){var h=Vs(c).hoistableScripts,v=bl(a),b=h.get(v);b||(b=c.querySelector(bc(v)),b||(a=m({src:a,async:!0,type:"module"},s),(s=Cr.get(v))&&e0(a,s),b=c.createElement("script"),sn(b),xn(b,"link",a),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(v,b))}}function $_(a,s,c,h){var v=(v=me.current)?ph(v):null;if(!v)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=gl(c.href),c=Vs(v).hoistableStyles,h=c.get(s),h||(h={type:"style",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=gl(c.href);var b=Vs(v).hoistableStyles,T=b.get(a);if(T||(v=v.ownerDocument||v,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,T),(b=v.querySelector(gc(a)))&&!b._p&&(T.instance=b,T.state.loading=5),Cr.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Cr.set(a,c),b||X6(v,a,c,T.state))),s&&h===null)throw Error(r(528,""));return T}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=bl(c),c=Vs(v).hoistableScripts,h=c.get(s),h||(h={type:"script",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function gl(a){return'href="'+xr(a)+'"'}function gc(a){return'link[rel="stylesheet"]['+a+"]"}function H_(a){return m({},a,{"data-precedence":a.precedence,precedence:null})}function X6(a,s,c,h){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=a.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),xn(s,"link",c),sn(s),a.head.appendChild(s))}function bl(a){return'[src="'+xr(a)+'"]'}function bc(a){return"script[async]"+a}function G_(a,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var h=a.querySelector('style[data-href~="'+xr(c.href)+'"]');if(h)return s.instance=h,sn(h),h;var v=m({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),sn(h),xn(h,"style",v),mh(h,c.precedence,a),s.instance=h;case"stylesheet":v=gl(c.href);var b=a.querySelector(gc(v));if(b)return s.state.loading|=4,s.instance=b,sn(b),b;h=H_(c),(v=Cr.get(v))&&Jg(h,v),b=(a.ownerDocument||a).createElement("link"),sn(b);var T=b;return T._p=new Promise(function(j,L){T.onload=j,T.onerror=L}),xn(b,"link",h),s.state.loading|=4,mh(b,c.precedence,a),s.instance=b;case"script":return b=bl(c.src),(v=a.querySelector(bc(b)))?(s.instance=v,sn(v),v):(h=c,(v=Cr.get(b))&&(h=m({},c),e0(h,v)),a=a.ownerDocument||a,v=a.createElement("script"),sn(v),xn(v,"link",h),a.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,mh(h,c.precedence,a));return s.instance}function mh(a,s,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,b=v,T=0;T<h.length;T++){var j=h[T];if(j.dataset.precedence===s)b=j;else if(b!==v)break}b?b.parentNode.insertBefore(a,b.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(a,s.firstChild))}function Jg(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.title==null&&(a.title=s.title)}function e0(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.integrity==null&&(a.integrity=s.integrity)}var yh=null;function K_(a,s,c){if(yh===null){var h=new Map,v=yh=new Map;v.set(c,h)}else v=yh,h=v.get(c),h||(h=new Map,v.set(c,h));if(h.has(a))return h;for(h.set(a,null),c=c.getElementsByTagName(a),v=0;v<c.length;v++){var b=c[v];if(!(b[Ru]||b[yn]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var T=b.getAttribute(s)||"";T=a+T;var j=h.get(T);j?j.push(b):h.set(T,[b])}}return h}function Y_(a,s,c){a=a.ownerDocument||a,a.head.insertBefore(c,s==="title"?a.querySelector("head > title"):null)}function Q6(a,s,c){if(c===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function W_(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function Z6(a,s,c,h){if(c.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var v=gl(h.href),b=s.querySelector(gc(v));if(b){s=b._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(a.count++,a=vh.bind(a),s.then(a,a)),c.state.loading|=4,c.instance=b,sn(b);return}b=s.ownerDocument||s,h=H_(h),(v=Cr.get(v))&&Jg(h,v),b=b.createElement("link"),sn(b);var T=b;T._p=new Promise(function(j,L){T.onload=j,T.onerror=L}),xn(b,"link",h),c.instance=b}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(a.count++,c=vh.bind(a),s.addEventListener("load",c),s.addEventListener("error",c))}}var t0=0;function J6(a,s){return a.stylesheets&&a.count===0&&bh(a,a.stylesheets),0<a.count||0<a.imgCount?function(c){var h=setTimeout(function(){if(a.stylesheets&&bh(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+s);0<a.imgBytes&&t0===0&&(t0=62500*P6());var v=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&bh(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>t0?50:800)+s);return a.unsuspend=c,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function vh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bh(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var gh=null;function bh(a,s){a.stylesheets=null,a.unsuspend!==null&&(a.count++,gh=new Map,s.forEach(eF,a),gh=null,vh.call(a))}function eF(a,s){if(!(s.state.loading&4)){var c=gh.get(a);if(c)var h=c.get(null);else{c=new Map,gh.set(a,c);for(var v=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<v.length;b++){var T=v[b];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(c.set(T.dataset.precedence,T),h=T)}h&&c.set(null,h)}v=s.instance,T=v.getAttribute("data-precedence"),b=c.get(T)||h,b===h&&c.set(null,v),c.set(T,v),this.count++,h=vh.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),b?b.parentNode.insertBefore(v,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(v,a.firstChild)),s.state.loading|=4}}var xc={$$typeof:C,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function tF(a,s,c,h,v,b,T,j,L){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Is(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Is(0),this.hiddenUpdates=Is(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=b,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function X_(a,s,c,h,v,b,T,j,L,K,te,ae){return a=new tF(a,s,c,T,L,K,te,ae,j),s=1,b===!0&&(s|=24),b=ir(3,null,null,s),a.current=b,b.stateNode=a,s=Dv(),s.refCount++,a.pooledCache=s,s.refCount++,b.memoizedState={element:h,isDehydrated:c,cache:s},zv(b),a}function Q_(a){return a?(a=Xs,a):Xs}function Z_(a,s,c,h,v,b){v=Q_(v),h.context===null?h.context=v:h.pendingContext=v,h=ja(s),h.payload={element:c},b=b===void 0?null:b,b!==null&&(h.callback=b),c=Na(a,h,s),c!==null&&(Xn(c,a,s),Zu(c,a,s))}function J_(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var c=a.retryLane;a.retryLane=c!==0&&c<s?c:s}}function n0(a,s){J_(a,s),(a=a.alternate)&&J_(a,s)}function eC(a){if(a.tag===13||a.tag===31){var s=ko(a,67108864);s!==null&&Xn(s,a,67108864),n0(a,67108864)}}function tC(a){if(a.tag===13||a.tag===31){var s=ur();s=Mi(s);var c=ko(a,s);c!==null&&Xn(c,a,s),n0(a,s)}}var xh=!0;function nF(a,s,c,h){var v=D.T;D.T=null;var b=q.p;try{q.p=2,r0(a,s,c,h)}finally{q.p=b,D.T=v}}function rF(a,s,c,h){var v=D.T;D.T=null;var b=q.p;try{q.p=8,r0(a,s,c,h)}finally{q.p=b,D.T=v}}function r0(a,s,c,h){if(xh){var v=i0(h);if(v===null)qg(a,s,h,wh,c),rC(a,h);else if(aF(v,a,s,c,h))h.stopPropagation();else if(rC(a,h),s&4&&-1<iF.indexOf(a)){for(;v!==null;){var b=Bs(v);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var T=Ni(b.pendingLanes);if(T!==0){var j=b;for(j.pendingLanes|=2,j.entangledLanes|=2;T;){var L=1<<31-In(T);j.entanglements[1]|=L,T&=~L}ci(b),(et&6)===0&&(rh=Le()+500,pc(0))}}break;case 31:case 13:j=ko(b,2),j!==null&&Xn(j,b,2),ah(),n0(b,2)}if(b=i0(h),b===null&&qg(a,s,h,wh,c),b===v)break;v=b}v!==null&&h.stopPropagation()}else qg(a,s,h,null,c)}}function i0(a){return a=ov(a),a0(a)}var wh=null;function a0(a){if(wh=null,a=zs(a),a!==null){var s=o(a);if(s===null)a=null;else{var c=s.tag;if(c===13){if(a=l(s),a!==null)return a;a=null}else if(c===31){if(a=u(s),a!==null)return a;a=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null)}}return wh=a,null}function nC(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dd()){case Ns:return 2;case hd:return 8;case So:case Ky:return 32;case Pu:return 268435456;default:return 32}default:return 32}}var o0=!1,Fa=null,qa=null,$a=null,wc=new Map,Sc=new Map,Ha=[],iF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function rC(a,s){switch(a){case"focusin":case"focusout":Fa=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":$a=null;break;case"pointerover":case"pointerout":wc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sc.delete(s.pointerId)}}function Ec(a,s,c,h,v,b){return a===null||a.nativeEvent!==b?(a={blockedOn:s,domEventName:c,eventSystemFlags:h,nativeEvent:b,targetContainers:[v]},s!==null&&(s=Bs(s),s!==null&&eC(s)),a):(a.eventSystemFlags|=h,s=a.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),a)}function aF(a,s,c,h,v){switch(s){case"focusin":return Fa=Ec(Fa,a,s,c,h,v),!0;case"dragenter":return qa=Ec(qa,a,s,c,h,v),!0;case"mouseover":return $a=Ec($a,a,s,c,h,v),!0;case"pointerover":var b=v.pointerId;return wc.set(b,Ec(wc.get(b)||null,a,s,c,h,v)),!0;case"gotpointercapture":return b=v.pointerId,Sc.set(b,Ec(Sc.get(b)||null,a,s,c,h,v)),!0}return!1}function iC(a){var s=zs(a.target);if(s!==null){var c=o(s);if(c!==null){if(s=c.tag,s===13){if(s=l(c),s!==null){a.blockedOn=s,gO(a.priority,function(){tC(c)});return}}else if(s===31){if(s=u(c),s!==null){a.blockedOn=s,gO(a.priority,function(){tC(c)});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Sh(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var c=i0(a.nativeEvent);if(c===null){c=a.nativeEvent;var h=new c.constructor(c.type,c);av=h,c.target.dispatchEvent(h),av=null}else return s=Bs(c),s!==null&&eC(s),a.blockedOn=c,!1;s.shift()}return!0}function aC(a,s,c){Sh(a)&&c.delete(s)}function oF(){o0=!1,Fa!==null&&Sh(Fa)&&(Fa=null),qa!==null&&Sh(qa)&&(qa=null),$a!==null&&Sh($a)&&($a=null),wc.forEach(aC),Sc.forEach(aC)}function Eh(a,s){a.blockedOn===s&&(a.blockedOn=null,o0||(o0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,oF)))}var Oh=null;function oC(a){Oh!==a&&(Oh=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Oh===a&&(Oh=null);for(var s=0;s<a.length;s+=3){var c=a[s],h=a[s+1],v=a[s+2];if(typeof h!="function"){if(a0(h||c)===null)continue;break}var b=Bs(c);b!==null&&(a.splice(s,3),s-=3,ig(b,{pending:!0,data:v,method:c.method,action:h},h,v))}}))}function xl(a){function s(L){return Eh(L,a)}Fa!==null&&Eh(Fa,a),qa!==null&&Eh(qa,a),$a!==null&&Eh($a,a),wc.forEach(s),Sc.forEach(s);for(var c=0;c<Ha.length;c++){var h=Ha[c];h.blockedOn===a&&(h.blockedOn=null)}for(;0<Ha.length&&(c=Ha[0],c.blockedOn===null);)iC(c),c.blockedOn===null&&Ha.shift();if(c=(a.ownerDocument||a).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var v=c[h],b=c[h+1],T=v[$n]||null;if(typeof b=="function")T||oC(c);else if(T){var j=null;if(b&&b.hasAttribute("formAction")){if(v=b,T=b[$n]||null)j=T.formAction;else if(a0(v)!==null)continue}else j=T.action;typeof j=="function"?c[h+1]=j:(c.splice(h,3),h-=3),oC(c)}}}function sC(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(T){return v=T})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),h||setTimeout(c,20)}function c(){if(!h&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(c,100),function(){h=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),v!==null&&(v(),v=null)}}}function s0(a){this._internalRoot=a}Ah.prototype.render=s0.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,h=ur();Z_(c,h,a,s,null,null)},Ah.prototype.unmount=s0.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;Z_(a.current,2,null,a,null,null),ah(),s[Ls]=null}};function Ah(a){this._internalRoot=a}Ah.prototype.unstable_scheduleHydration=function(a){if(a){var s=vO();a={blockedOn:null,target:a,priority:s};for(var c=0;c<Ha.length&&s!==0&&s<Ha[c].priority;c++);Ha.splice(c,0,a),c===0&&iC(a)}};var lC=t.version;if(lC!=="19.2.4")throw Error(r(527,lC,"19.2.4"));q.findDOMNode=function(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=d(s),a=a!==null?p(a):null,a=a===null?null:a.stateNode,a};var sF={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Th=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Th.isDisabled&&Th.supportsFiber)try{Eo=Th.inject(sF),Rn=Th}catch{}}return kc.createRoot=function(a,s){if(!i(a))throw Error(r(299));var c=!1,h="",v=mT,b=yT,T=vT;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(b=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError)),s=X_(a,1,!1,null,null,c,h,null,v,b,T,sC),a[Ls]=s.current,Fg(a),new s0(s)},kc.hydrateRoot=function(a,s,c){if(!i(a))throw Error(r(299));var h=!1,v="",b=mT,T=yT,j=vT,L=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(b=c.onUncaughtError),c.onCaughtError!==void 0&&(T=c.onCaughtError),c.onRecoverableError!==void 0&&(j=c.onRecoverableError),c.formState!==void 0&&(L=c.formState)),s=X_(a,1,!0,s,c??null,h,v,L,b,T,j,sC),s.context=Q_(null),c=s.current,h=ur(),h=Mi(h),v=ja(h),v.callback=null,Na(c,v,h),c=h,s.current.lanes=c,Sa(s,c),ci(s),a[Ls]=s.current,Fg(a),new Ah(s)},kc.version="19.2.4",kc}var bk;function M9(){if(bk)return N0.exports;bk=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),N0.exports=N9(),N0.exports}var P9=M9();/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R9=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),xk=e=>{const t=R9(e);return t.charAt(0).toUpperCase()+t.slice(1)},xI=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),I9=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var L9={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z9=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:l,...u},f)=>E.createElement("svg",{ref:f,...L9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xI("lucide",i),...!o&&!I9(u)&&{"aria-hidden":"true"},...u},[...l.map(([d,p])=>E.createElement(d,p)),...Array.isArray(o)?o:[o]]));/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ye=(e,t)=>{const n=E.forwardRef(({className:r,...i},o)=>E.createElement(z9,{ref:o,iconNode:t,className:xI(`lucide-${D9(xk(e))}`,`lucide-${e}`,r),...i}));return n.displayName=xk(e),n};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B9=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],V9=Ye("activity",B9);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U9=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],F9=Ye("bot",U9);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q9=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],$9=Ye("brain-circuit",q9);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H9=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],wI=Ye("chart-column",H9);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G9=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],K9=Ye("check",G9);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y9=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],W9=Ye("chevron-down",Y9);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X9=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wk=Ye("chevron-right",X9);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q9=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Z9=Ye("circle-check",Q9);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J9=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],eH=Ye("circle-question-mark",J9);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tH=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],nH=Ye("clock",tH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rH=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],SI=Ye("command",rH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iH=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Sk=Ye("cpu",iH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aH=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],oH=Ye("database",aH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sH=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Zx=Ye("download",sH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lH=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],uH=Ye("external-link",lH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cH=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],fH=Ye("eye",cH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dH=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],EI=Ye("file-down",dH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hH=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],tf=Ye("file-text",hH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pH=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],mH=Ye("history",pH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yH=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],OI=Ye("image",yH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vH=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ek=Ye("info",vH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gH=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Ok=Ye("layout-dashboard",gH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bH=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Yw=Ye("list",bH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xH=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kp=Ye("loader-circle",xH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wH=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],SH=Ye("lock",wH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const EH=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],OH=Ye("play",EH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AH=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sp=Ye("settings",AH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TH=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Yc=Ye("shield",TH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _H=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],kh=Ye("square",_H);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CH=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],fs=Ye("terminal",CH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kH=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],jH=Ye("trash-2",kH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const NH=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],lp=Ye("triangle-alert",NH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MH=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],PH=Ye("upload",MH);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DH=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],RH=Ye("zap",DH),Ww=E.createContext({});function Xw(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const IH=typeof window<"u",AI=IH?E.useLayoutEffect:E.useEffect,Ym=E.createContext(null);function Qw(e,t){e.indexOf(t)===-1&&e.push(t)}function jp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ei=(e,t,n)=>n>t?t:n<e?e:n;let Zw=()=>{};const fo={},TI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function _I(e){return typeof e=="object"&&e!==null}const CI=e=>/^0[^.\s]+$/u.test(e);function kI(e){let t;return()=>(t===void 0&&(t=e()),t)}const zr=e=>e,LH=(e,t)=>n=>t(e(n)),Ff=(...e)=>e.reduce(LH),vf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Jw{constructor(){this.subscriptions=[]}add(t){return Qw(this.subscriptions,t),()=>jp(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hr=e=>e*1e3,Rr=e=>e/1e3;function jI(e,t){return t?e*(1e3/t):0}const NI=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zH=1e-7,BH=12;function VH(e,t,n,r,i){let o,l,u=0;do l=t+(n-t)/2,o=NI(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>zH&&++u<BH);return l}function qf(e,t,n,r){if(e===t&&n===r)return zr;const i=o=>VH(o,0,1,e,n);return o=>o===0||o===1?o:NI(i(o),t,r)}const MI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PI=e=>t=>1-e(1-t),DI=qf(.33,1.53,.69,.99),eS=PI(DI),RI=MI(eS),II=e=>e>=1?1:(e*=2)<1?.5*eS(e):.5*(2-Math.pow(2,-10*(e-1))),tS=e=>1-Math.sin(Math.acos(e)),LI=PI(tS),zI=MI(tS),UH=qf(.42,0,1,1),FH=qf(0,0,.58,1),BI=qf(.42,0,.58,1),qH=e=>Array.isArray(e)&&typeof e[0]!="number",VI=e=>Array.isArray(e)&&typeof e[0]=="number",$H={linear:zr,easeIn:UH,easeInOut:BI,easeOut:FH,circIn:tS,circInOut:zI,circOut:LI,backIn:eS,backInOut:RI,backOut:DI,anticipate:II},HH=e=>typeof e=="string",Ak=e=>{if(VI(e)){Zw(e.length===4);const[t,n,r,i]=e;return qf(t,n,r,i)}else if(HH(e))return $H[e];return e},jh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function GH(e,t){let n=new Set,r=new Set,i=!1,o=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(p){l.has(p)&&(d.schedule(p),e()),p(u)}const d={schedule:(p,m=!1,y=!1)=>{const x=y&&i?n:r;return m&&l.add(p),x.add(p),p},cancel:p=>{r.delete(p),l.delete(p)},process:p=>{if(u=p,i){o=!0;return}i=!0;const m=n;n=r,r=m,n.forEach(f),n.clear(),i=!1,o&&(o=!1,d.process(p))}};return d}const KH=40;function UI(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=jh.reduce((C,k)=>(C[k]=GH(o),C),{}),{setup:u,read:f,resolveKeyframes:d,preUpdate:p,update:m,preRender:y,render:g,postRender:x}=l,w=()=>{const C=fo.useManualTiming,k=C?i.timestamp:performance.now();n=!1,C||(i.delta=r?1e3/60:Math.max(Math.min(k-i.timestamp,KH),1)),i.timestamp=k,i.isProcessing=!0,u.process(i),f.process(i),d.process(i),p.process(i),m.process(i),y.process(i),g.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(w))},S=()=>{n=!0,r=!0,i.isProcessing||e(w)};return{schedule:jh.reduce((C,k)=>{const N=l[k];return C[k]=(M,R=!1,P=!1)=>(n||S(),N.schedule(M,R,P)),C},{}),cancel:C=>{for(let k=0;k<jh.length;k++)l[jh[k]].cancel(C)},state:i,steps:l}}const{schedule:ct,cancel:ho,state:En,steps:R0}=UI(typeof requestAnimationFrame<"u"?requestAnimationFrame:zr,!0);let up;function YH(){up=void 0}const Bn={now:()=>(up===void 0&&Bn.set(En.isProcessing||fo.useManualTiming?En.timestamp:performance.now()),up),set:e=>{up=e,queueMicrotask(YH)}},FI=e=>t=>typeof t=="string"&&t.startsWith(e),qI=FI("--"),WH=FI("var(--"),nS=e=>WH(e)?XH.test(e.split("/*")[0].trim()):!1,XH=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Tk(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const gu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gf={...gu,transform:e=>Ei(0,1,e)},Nh={...gu,default:1},nf=e=>Math.round(e*1e5)/1e5,rS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function QH(e){return e==null}const ZH=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iS=(e,t)=>n=>!!(typeof n=="string"&&ZH.test(n)&&n.startsWith(e)||t&&!QH(n)&&Object.prototype.hasOwnProperty.call(n,t)),$I=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,l,u]=r.match(rS);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},JH=e=>Ei(0,255,e),I0={...gu,transform:e=>Math.round(JH(e))},ns={test:iS("rgb","red"),parse:$I("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+I0.transform(e)+", "+I0.transform(t)+", "+I0.transform(n)+", "+nf(gf.transform(r))+")"};function e7(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jx={test:iS("#"),parse:e7,transform:ns.transform},$f=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qa=$f("deg"),bi=$f("%"),Se=$f("px"),t7=$f("vh"),n7=$f("vw"),_k={...bi,parse:e=>bi.parse(e)/100,transform:e=>bi.transform(e*100)},Ll={test:iS("hsl","hue"),parse:$I("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+bi.transform(nf(t))+", "+bi.transform(nf(n))+", "+nf(gf.transform(r))+")"},Gt={test:e=>ns.test(e)||Jx.test(e)||Ll.test(e),parse:e=>ns.test(e)?ns.parse(e):Ll.test(e)?Ll.parse(e):Jx.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ns.transform(e):Ll.transform(e),getAnimatableNone:e=>{const t=Gt.parse(e);return t.alpha=0,Gt.transform(t)}},r7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i7(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(rS))==null?void 0:t.length)||0)+(((n=e.match(r7))==null?void 0:n.length)||0)>0}const HI="number",GI="color",a7="var",o7="var(",Ck="${}",s7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function au(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(s7,f=>(Gt.test(f)?(r.color.push(o),i.push(GI),n.push(Gt.parse(f))):f.startsWith(o7)?(r.var.push(o),i.push(a7),n.push(f)):(r.number.push(o),i.push(HI),n.push(parseFloat(f))),++o,Ck)).split(Ck);return{values:n,split:u,indexes:r,types:i}}function l7(e){return au(e).values}function KI({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],r[o]!==void 0){const l=t[o];l===HI?i+=nf(r[o]):l===GI?i+=Gt.transform(r[o]):i+=r[o]}return i}}function u7(e){return KI(au(e))}const c7=e=>typeof e=="number"?0:Gt.test(e)?Gt.getAnimatableNone(e):e,f7=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:c7(e);function d7(e){const t=au(e);return KI(t)(t.values.map((r,i)=>f7(r,t.split[i])))}const ti={test:i7,parse:l7,createTransformer:u7,getAnimatableNone:d7};function L0(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 h7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=L0(f,u,e+1/3),o=L0(f,u,e),l=L0(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function Np(e,t){return n=>n>0?t:e}const wt=(e,t,n)=>e+(t-e)*n,z0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},p7=[Jx,ns,Ll],m7=e=>p7.find(t=>t.test(e));function kk(e){const t=m7(e);if(!t)return!1;let n=t.parse(e);return t===Ll&&(n=h7(n)),n}const jk=(e,t)=>{const n=kk(e),r=kk(t);if(!n||!r)return Np(e,t);const i={...n};return o=>(i.red=z0(n.red,r.red,o),i.green=z0(n.green,r.green,o),i.blue=z0(n.blue,r.blue,o),i.alpha=wt(n.alpha,r.alpha,o),ns.transform(i))},e1=new Set(["none","hidden"]);function y7(e,t){return e1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function v7(e,t){return n=>wt(e,t,n)}function aS(e){return typeof e=="number"?v7:typeof e=="string"?nS(e)?Np:Gt.test(e)?jk:x7:Array.isArray(e)?YI:typeof e=="object"?Gt.test(e)?jk:g7:Np}function YI(e,t){const n=[...e],r=n.length,i=e.map((o,l)=>aS(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}}function g7(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=aS(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function b7(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],l=e.indexes[o][r[o]],u=e.values[l]??0;n[i]=u,r[o]++}return n}const x7=(e,t)=>{const n=ti.createTransformer(t),r=au(e),i=au(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?e1.has(e)&&!i.values.length||e1.has(t)&&!r.values.length?y7(e,t):Ff(YI(b7(r,i),i.values),n):Np(e,t)};function WI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?wt(e,t,n):aS(e)(e,t)}const w7=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ct.update(t,n),stop:()=>ho(t),now:()=>En.isProcessing?En.timestamp:Bn.now()}},XI=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Mp=2e4;function oS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Mp;)t+=n,r=e.next(t);return t>=Mp?1/0:t}function S7(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(oS(r),Mp);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Rr(i)}}const Dt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function t1(e,t){return e*Math.sqrt(1-t*t)}const E7=12;function O7(e,t,n){let r=n;for(let i=1;i<E7;i++)r=r-e(r)/t(r);return r}const B0=.001;function A7({duration:e=Dt.duration,bounce:t=Dt.bounce,velocity:n=Dt.velocity,mass:r=Dt.mass}){let i,o,l=1-t;l=Ei(Dt.minDamping,Dt.maxDamping,l),e=Ei(Dt.minDuration,Dt.maxDuration,Rr(e)),l<1?(i=d=>{const p=d*l,m=p*e,y=p-n,g=t1(d,l),x=Math.exp(-m);return B0-y/g*x},o=d=>{const m=d*l*e,y=m*n+n,g=Math.pow(l,2)*Math.pow(d,2)*e,x=Math.exp(-m),w=t1(Math.pow(d,2),l);return(-i(d)+B0>0?-1:1)*((y-g)*x)/w}):(i=d=>{const p=Math.exp(-d*e),m=(d-n)*e+1;return-B0+p*m},o=d=>{const p=Math.exp(-d*e),m=(n-d)*(e*e);return p*m});const u=5/e,f=O7(i,o,u);if(e=hr(e),isNaN(f))return{stiffness:Dt.stiffness,damping:Dt.damping,duration:e};{const d=Math.pow(f,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const T7=["duration","bounce"],_7=["stiffness","damping","mass"];function Nk(e,t){return t.some(n=>e[n]!==void 0)}function C7(e){let t={velocity:Dt.velocity,stiffness:Dt.stiffness,damping:Dt.damping,mass:Dt.mass,isResolvedFromDuration:!1,...e};if(!Nk(e,_7)&&Nk(e,T7))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ei(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Dt.mass,stiffness:i,damping:o}}else{const n=A7({...e,velocity:0});t={...t,...n,mass:Dt.mass},t.isResolvedFromDuration=!0}return t}function Pp(e=Dt.visualDuration,t=Dt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:f,damping:d,mass:p,duration:m,velocity:y,isResolvedFromDuration:g}=C7({...n,velocity:-Rr(n.velocity||0)}),x=y||0,w=d/(2*Math.sqrt(f*p)),S=l-o,O=Rr(Math.sqrt(f/p)),_=Math.abs(S)<5;r||(r=_?Dt.restSpeed.granular:Dt.restSpeed.default),i||(i=_?Dt.restDelta.granular:Dt.restDelta.default);let C,k,N,M,R,P;if(w<1)N=t1(O,w),M=(x+w*O*S)/N,C=H=>{const Z=Math.exp(-w*O*H);return l-Z*(M*Math.sin(N*H)+S*Math.cos(N*H))},R=w*O*M+S*N,P=w*O*S-M*N,k=H=>Math.exp(-w*O*H)*(R*Math.sin(N*H)+P*Math.cos(N*H));else if(w===1){C=Z=>l-Math.exp(-O*Z)*(S+(x+O*S)*Z);const H=x+O*S;k=Z=>Math.exp(-O*Z)*(O*H*Z-x)}else{const H=O*Math.sqrt(w*w-1);C=ne=>{const ee=Math.exp(-w*O*ne),D=Math.min(H*ne,300);return l-ee*((x+w*O*S)*Math.sinh(D)+H*S*Math.cosh(D))/H};const Z=(x+w*O*S)/H,F=w*O*Z-S*H,he=w*O*S-Z*H;k=ne=>{const ee=Math.exp(-w*O*ne),D=Math.min(H*ne,300);return ee*(F*Math.sinh(D)+he*Math.cosh(D))}}const V={calculatedDuration:g&&m||null,velocity:H=>hr(k(H)),next:H=>{if(!g&&w<1){const F=Math.exp(-w*O*H),he=Math.sin(N*H),ne=Math.cos(N*H),ee=l-F*(M*he+S*ne),D=hr(F*(R*he+P*ne));return u.done=Math.abs(D)<=r&&Math.abs(l-ee)<=i,u.value=u.done?l:ee,u}const Z=C(H);if(g)u.done=H>=m;else{const F=hr(k(H));u.done=Math.abs(F)<=r&&Math.abs(l-Z)<=i}return u.value=u.done?l:Z,u},toString:()=>{const H=Math.min(oS(V),Mp),Z=XI(F=>V.next(H*F).value,H,30);return H+"ms "+Z},toTransition:()=>{}};return V}Pp.applyToOptions=e=>{const t=S7(e,100,Pp);return e.ease=t.ease,e.duration=hr(t.duration),e.type="keyframes",e};const k7=5;function QI(e,t,n){const r=Math.max(t-k7,0);return jI(n-e(r),t-r)}function n1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:l,min:u,max:f,restDelta:d=.5,restSpeed:p}){const m=e[0],y={done:!1,value:m},g=P=>u!==void 0&&P<u||f!==void 0&&P>f,x=P=>u===void 0?f:f===void 0||Math.abs(u-P)<Math.abs(f-P)?u:f;let w=n*t;const S=m+w,O=l===void 0?S:l(S);O!==S&&(w=O-m);const _=P=>-w*Math.exp(-P/r),C=P=>O+_(P),k=P=>{const V=_(P),H=C(P);y.done=Math.abs(V)<=d,y.value=y.done?O:H};let N,M;const R=P=>{g(y.value)&&(N=P,M=Pp({keyframes:[y.value,x(y.value)],velocity:QI(C,P,y.value),damping:i,stiffness:o,restDelta:d,restSpeed:p}))};return R(0),{calculatedDuration:null,next:P=>{let V=!1;return!M&&N===void 0&&(V=!0,k(P),R(P)),N!==void 0&&P>=N?M.next(P-N):(!V&&k(P),y)}}}function j7(e,t,n){const r=[],i=n||fo.mix||WI,o=e.length-1;for(let l=0;l<o;l++){let u=i(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||zr:t;u=Ff(f,u)}r.push(u)}return r}function N7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Zw(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=j7(t,r,i),f=u.length,d=p=>{if(l&&p<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const y=vf(e[m],e[m+1],p);return u[m](y)};return n?p=>d(Ei(e[0],e[o-1],p)):d}function M7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=vf(0,t,r);e.push(wt(n,1,i))}}function P7(e){const t=[0];return M7(t,e.length-1),t}function D7(e,t){return e.map(n=>n*t)}function R7(e,t){return e.map(()=>t||BI).splice(0,e.length-1)}function rf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=qH(r)?r.map(Ak):Ak(r),o={done:!1,value:t[0]},l=D7(n&&n.length===t.length?n:P7(t),e),u=N7(l,t,{ease:Array.isArray(i)?i:R7(t,i)});return{calculatedDuration:e,next:f=>(o.value=u(f),o.done=f>=e,o)}}const I7=e=>e!==null;function Wm(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(I7),u=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!u||r===void 0?o[u]:r}const L7={decay:n1,inertia:n1,tween:rf,keyframes:rf,spring:Pp};function ZI(e){typeof e.type=="string"&&(e.type=L7[e.type])}class sS{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const z7=e=>e/100;class Dp extends sS{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Bn.now()&&this.tick(Bn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ZI(t);const{type:n=rf,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:l=0}=t;let{keyframes:u}=t;const f=n||rf;f!==rf&&typeof u[0]!="number"&&(this.mixKeyframes=Ff(z7,WI(u[0],u[1])),u=[0,100]);const d=f({...t,keyframes:u});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...u].reverse(),velocity:-l})),d.calculatedDuration===null&&(d.calculatedDuration=oS(d));const{calculatedDuration:p}=d;this.calculatedDuration=p,this.resolvedDuration=p+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:p,repeat:m,repeatType:y,repeatDelay:g,type:x,onUpdate:w,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const O=this.currentTime-d*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?O<0:O>i;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let C=this.currentTime,k=r;if(m){const P=Math.min(this.currentTime,i)/u;let V=Math.floor(P),H=P%1;!H&&P>=1&&(H=1),H===1&&V--,V=Math.min(V,m+1),!!(V%2)&&(y==="reverse"?(H=1-H,g&&(H-=g/u)):y==="mirror"&&(k=l)),C=Ei(0,1,H)*u}let N;_?(this.delayState.value=p[0],N=this.delayState):N=k.next(C),o&&!_&&(N.value=o(N.value));let{done:M}=N;!_&&f!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return R&&x!==n1&&(N.value=Wm(p,this.options,S,this.speed)),w&&w(N.value),R&&this.finish(),N}then(t,n){return this.finished.then(t,n)}get duration(){return Rr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Rr(t)}get time(){return Rr(this.currentTime)}set time(t){t=hr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return QI(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Bn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Rr(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=w7,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Bn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function B7(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const rs=e=>e*180/Math.PI,r1=e=>{const t=rs(Math.atan2(e[1],e[0]));return i1(t)},V7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:r1,rotateZ:r1,skewX:e=>rs(Math.atan(e[1])),skewY:e=>rs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},i1=e=>(e=e%360,e<0&&(e+=360),e),Mk=r1,Pk=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Dk=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pk,scaleY:Dk,scale:e=>(Pk(e)+Dk(e))/2,rotateX:e=>i1(rs(Math.atan2(e[6],e[5]))),rotateY:e=>i1(rs(Math.atan2(-e[2],e[0]))),rotateZ:Mk,rotate:Mk,skewX:e=>rs(Math.atan(e[4])),skewY:e=>rs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function a1(e){return e.includes("scale")?1:0}function o1(e,t){if(!e||e==="none")return a1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=U7,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=V7,i=u}if(!i)return a1(t);const o=r[t],l=i[1].split(",").map(q7);return typeof o=="function"?o(l):l[o]}const F7=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return o1(n,t)};function q7(e){return parseFloat(e.trim())}const bu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xu=new Set(bu),Rk=e=>e===gu||e===Se,$7=new Set(["x","y","z"]),H7=bu.filter(e=>!$7.has(e));function G7(e){const t=[];return H7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const io={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>o1(t,"x"),y:(e,{transform:t})=>o1(t,"y")};io.translateX=io.x;io.translateY=io.y;const ds=new Set;let s1=!1,l1=!1,u1=!1;function JI(){if(l1){const e=Array.from(ds).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=G7(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,l])=>{var u;(u=r.getValue(o))==null||u.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}l1=!1,s1=!1,ds.forEach(e=>e.complete(u1)),ds.clear()}function eL(){ds.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(l1=!0)})}function K7(){u1=!0,eL(),JI(),u1=!1}class lS{constructor(t,n,r,i,o,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(ds.add(this),s1||(s1=!0,ct.read(eL),ct.resolveKeyframes(JI))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),i&&o===void 0&&i.set(t[0])}B7(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ds.delete(this)}cancel(){this.state==="scheduled"&&(ds.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Y7=e=>e.startsWith("--");function tL(e,t,n){Y7(t)?e.style.setProperty(t,n):e.style[t]=n}const W7={};function nL(e,t){const n=kI(e);return()=>W7[t]??n()}const X7=nL(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),rL=nL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Wc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ik={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wc([0,.65,.55,1]),circOut:Wc([.55,0,1,.45]),backIn:Wc([.31,.01,.66,-.59]),backOut:Wc([.33,1.53,.69,.99])};function iL(e,t){if(e)return typeof e=="function"?rL()?XI(e,t):"ease-out":VI(e)?Wc(e):Array.isArray(e)?e.map(n=>iL(n,t)||Ik.easeOut):Ik[e]}function Q7(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:l="loop",ease:u="easeOut",times:f}={},d=void 0){const p={[t]:n};f&&(p.offset=f);const m=iL(u,i);Array.isArray(m)&&(p.easing=m);const y={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"};return d&&(y.pseudoElement=d),e.animate(p,y)}function aL(e){return typeof e=="function"&&"applyToOptions"in e}function Z7({type:e,...t}){return aL(e)&&rL()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class oL extends sS{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:l=!1,finalKeyframe:u,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=l,this.options=t,Zw(typeof t.type!="string");const d=Z7(t);this.animation=Q7(n,r,i,d,o),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const p=Wm(i,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(p),tL(n,r,p),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Rr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Rr(t)}get time(){return Rr(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=hr(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&X7()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),zr):i(this)}}const sL={anticipate:II,backInOut:RI,circInOut:zI};function J7(e){return e in sL}function eG(e){typeof e.ease=="string"&&J7(e.ease)&&(e.ease=sL[e.ease])}const V0=10;class tG extends oL{constructor(t){eG(t),ZI(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new Dp({...l,autoplay:!1}),f=Math.max(V0,Bn.now()-this.startTime),d=Ei(0,V0,f-V0),p=u.sample(f).value,{name:m}=this.options;o&&m&&tL(o,m,p),n.setWithVelocity(u.sample(Math.max(0,f-d)).value,p,d),u.stop()}}const Lk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ti.test(e)||e==="0")&&!e.startsWith("url("));function nG(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function rG(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=Lk(i,t),u=Lk(o,t);return!l||!u?!1:nG(e)||(n==="spring"||aL(n))&&r}function c1(e){e.duration=0,e.type="keyframes"}const lL=new Set(["opacity","clipPath","filter","transform"]),iG=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function aG(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&iG.test(e[t]))return!0;return!1}const oG=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sG=kI(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function lG(e){var m;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:l,keyframes:u}=e;if(!(((m=t==null?void 0:t.owner)==null?void 0:m.current)instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:p}=t.owner.getProps();return sG()&&n&&(lL.has(n)||oG.has(n)&&aG(u))&&(n!=="transform"||!p)&&!d&&!r&&i!=="mirror"&&o!==0&&l!=="inertia"}const uG=40;class cG extends sS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",keyframes:u,name:f,motionValue:d,element:p,...m}){var x;super(),this.stop=()=>{var w,S;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(S=this.keyframeResolver)==null||S.cancel()},this.createdAt=Bn.now();const y={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:l,name:f,motionValue:d,element:p,...m},g=(p==null?void 0:p.KeyframeResolver)||lS;this.keyframeResolver=new g(u,(w,S,O)=>this.onKeyframesResolved(w,S,y,!O),f,d,p),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){var O,_;this.keyframeResolver=void 0;const{name:o,type:l,velocity:u,delay:f,isHandoff:d,onUpdate:p}=r;this.resolvedAt=Bn.now();let m=!0;rG(t,o,l,u)||(m=!1,(fo.instantAnimations||!f)&&(p==null||p(Wm(t,r,n))),t[0]=t[t.length-1],c1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>uG?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=m&&!d&&lG(g),w=(_=(O=g.motionValue)==null?void 0:O.owner)==null?void 0:_.current;let S;if(x)try{S=new tG({...g,element:w})}catch{S=new Dp(g)}else S=new Dp(g);S.finished.then(()=>{this.notifyFinished()}).catch(zr),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),K7()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function uL(e,t,n,r=0,i=1){const o=Array.from(e).sort((d,p)=>d.sortNodePosition(p)).indexOf(t),l=e.size,u=(l-1)*r;return typeof n=="function"?n(o,l):i===1?o*r:u-o*r}const fG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dG(e){const t=fG.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function cL(e,t,n=1){const[r,i]=dG(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return TI(l)?parseFloat(l):l}return nS(i)?cL(i,t,n+1):i}const hG={type:"spring",stiffness:500,damping:25,restSpeed:10},pG=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mG={type:"keyframes",duration:.8},yG={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vG=(e,{keyframes:t})=>t.length>2?mG:xu.has(e)?e.startsWith("scale")?pG(t[1]):hG:yG;function fL(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function uS(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?fL(n,e):n}const gG=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function bG(e){for(const t in e)if(!gG.has(t))return!0;return!1}const cS=(e,t,n,r={},i,o)=>l=>{const u=uS(r,e)||{},f=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-hr(f);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:y=>{t.set(y),u.onUpdate&&u.onUpdate(y)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};bG(u)||Object.assign(p,vG(e,p)),p.duration&&(p.duration=hr(p.duration)),p.repeatDelay&&(p.repeatDelay=hr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(c1(p),p.delay===0&&(m=!0)),(fo.instantAnimations||fo.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(m=!0,c1(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,m&&!o&&t.get()!==void 0){const y=Wm(p.keyframes,u);if(y!==void 0){ct.update(()=>{p.onUpdate(y),p.onComplete()});return}}return u.isSync?new Dp(p):new cG(p)};function zk(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function fS(e,t,n,r){if(typeof t=="function"){const[i,o]=zk(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=zk(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function hs(e,t,n){const r=e.getProps();return fS(r,t,n!==void 0?n:r.custom,e)}const dL=new Set(["width","height","top","left","right","bottom",...bu]),Bk=30,xG=e=>!isNaN(parseFloat(e));class wG{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=Bn.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Bn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jw);const r=this.events[t].add(n);return t==="change"?()=>{r(),ct.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Bn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Bk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Bk);return jI(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ou(e,t){return new wG(e,t)}const f1=e=>Array.isArray(e);function SG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ou(n))}function EG(e){return f1(e)?e[e.length-1]||0:e}function OG(e,t){const n=hs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const l in o){const u=EG(o[l]);SG(e,l,u)}}const Tn=e=>!!(e&&e.getVelocity);function AG(e){return!!(Tn(e)&&e.add)}function d1(e,t){const n=e.getValue("willChange");if(AG(n))return n.add(t);if(!n&&fo.WillChange){const r=new fo.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function dS(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const TG="framerAppearId",hL="data-"+dS(TG);function pL(e){return e.props[hL]}function _G({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function mL(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:l,...u}=t;const f=e.getDefaultTransition();o=o?fL(o,f):f;const d=o==null?void 0:o.reduceMotion;r&&(o=r);const p=[],m=i&&e.animationState&&e.animationState.getState()[i];for(const y in u){const g=e.getValue(y,e.latestValues[y]??null),x=u[y];if(x===void 0||m&&_G(m,y))continue;const w={delay:n,...uS(o||{},y)},S=g.get();if(S!==void 0&&!g.isAnimating()&&!Array.isArray(x)&&x===S&&!w.velocity){ct.update(()=>g.set(x));continue}let O=!1;if(window.MotionHandoffAnimation){const k=pL(e);if(k){const N=window.MotionHandoffAnimation(k,y,ct);N!==null&&(w.startTime=N,O=!0)}}d1(e,y);const _=d??e.shouldReduceMotion;g.start(cS(y,g,x,_&&dL.has(y)?{type:!1}:w,e,O));const C=g.animation;C&&p.push(C)}if(l){const y=()=>ct.update(()=>{l&&OG(e,l)});p.length?Promise.all(p).then(y):y()}return p}function h1(e,t,n={}){var f;const r=hs(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(mL(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:m,staggerDirection:y}=i;return CG(e,t,d,p,m,y,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[d,p]=u==="beforeChildren"?[o,l]:[l,o];return d().then(()=>p())}else return Promise.all([o(),l(n.delay)])}function CG(e,t,n=0,r=0,i=0,o=1,l){const u=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),u.push(h1(f,t,{...l,delay:n+(typeof r=="function"?0:r)+uL(e.variantChildren,f,r,i,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(u)}function kG(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>h1(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=h1(e,t,n);else{const i=typeof t=="function"?hs(e,t,n.custom):t;r=Promise.all(mL(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const jG={test:e=>e==="auto",parse:e=>e},yL=e=>t=>t.test(e),vL=[gu,Se,bi,Qa,n7,t7,jG],Vk=e=>vL.find(yL(e));function NG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||CI(e):!0}const MG=new Set(["brightness","contrast","saturate","opacity"]);function PG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(rS)||[];if(!r)return e;const i=n.replace(r,"");let o=MG.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const DG=/\b([a-z-]*)\(.*?\)/gu,p1={...ti,getAnimatableNone:e=>{const t=e.match(DG);return t?t.map(PG).join(" "):e}},m1={...ti,getAnimatableNone:e=>{const t=ti.parse(e);return ti.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Uk={...gu,transform:Math.round},RG={rotate:Qa,rotateX:Qa,rotateY:Qa,rotateZ:Qa,scale:Nh,scaleX:Nh,scaleY:Nh,scaleZ:Nh,skew:Qa,skewX:Qa,skewY:Qa,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:gf,originX:_k,originY:_k,originZ:Se},hS={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,inset:Se,insetBlock:Se,insetBlockStart:Se,insetBlockEnd:Se,insetInline:Se,insetInlineStart:Se,insetInlineEnd:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,paddingBlock:Se,paddingBlockStart:Se,paddingBlockEnd:Se,paddingInline:Se,paddingInlineStart:Se,paddingInlineEnd:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,marginBlock:Se,marginBlockStart:Se,marginBlockEnd:Se,marginInline:Se,marginInlineStart:Se,marginInlineEnd:Se,fontSize:Se,backgroundPositionX:Se,backgroundPositionY:Se,...RG,zIndex:Uk,fillOpacity:gf,strokeOpacity:gf,numOctaves:Uk},IG={...hS,color:Gt,backgroundColor:Gt,outlineColor:Gt,fill:Gt,stroke:Gt,borderColor:Gt,borderTopColor:Gt,borderRightColor:Gt,borderBottomColor:Gt,borderLeftColor:Gt,filter:p1,WebkitFilter:p1,mask:m1,WebkitMask:m1},gL=e=>IG[e],LG=new Set([p1,m1]);function bL(e,t){let n=gL(e);return LG.has(n)||(n=ti),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const zG=new Set(["auto","none","0"]);function BG(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!zG.has(o)&&au(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=bL(n,i)}class VG extends lS{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let p=0;p<t.length;p++){let m=t[p];if(typeof m=="string"&&(m=m.trim(),nS(m))){const y=cL(m,n.current);y!==void 0&&(t[p]=y),p===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!dL.has(r)||t.length!==2)return;const[i,o]=t,l=Vk(i),u=Vk(o),f=Tk(i),d=Tk(o);if(f!==d&&io[r]){this.needsMeasurement=!0;return}if(l!==u)if(Rk(l)&&Rk(u))for(let p=0;p<t.length;p++){const m=t[p];typeof m=="string"&&(t[p]=parseFloat(m))}else io[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||NG(t[i]))&&r.push(i);r.length&&BG(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=io[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var u;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,l=r[o];r[o]=io[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(u=this.removedTransforms)!=null&&u.length&&this.removedTransforms.forEach(([f,d])=>{t.getValue(f).set(d)}),this.resolveNoneKeyframes()}}function xL(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const wL=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function cp(e){return _I(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:pS}=UI(queueMicrotask,!1),Wr={x:!1,y:!1};function SL(){return Wr.x||Wr.y}function UG(e){return e==="x"||e==="y"?Wr[e]?null:(Wr[e]=!0,()=>{Wr[e]=!1}):Wr.x||Wr.y?null:(Wr.x=Wr.y=!0,()=>{Wr.x=Wr.y=!1})}function EL(e,t){const n=xL(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function FG(e){return!(e.pointerType==="touch"||SL())}function qG(e,t,n={}){const[r,i,o]=EL(e,n);return r.forEach(l=>{let u=!1,f=!1,d;const p=()=>{l.removeEventListener("pointerleave",x)},m=S=>{d&&(d(S),d=void 0),p()},y=S=>{u=!1,window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),f&&(f=!1,m(S))},g=()=>{u=!0,window.addEventListener("pointerup",y,i),window.addEventListener("pointercancel",y,i)},x=S=>{if(S.pointerType!=="touch"){if(u){f=!0;return}m(S)}},w=S=>{if(!FG(S))return;f=!1;const O=t(l,S);typeof O=="function"&&(d=O,l.addEventListener("pointerleave",x,i))};l.addEventListener("pointerenter",w,i),l.addEventListener("pointerdown",g,i)}),o}const OL=(e,t)=>t?e===t?!0:OL(e,t.parentElement):!1,mS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,$G=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function HG(e){return $G.has(e.tagName)||e.isContentEditable===!0}const GG=new Set(["INPUT","SELECT","TEXTAREA"]);function KG(e){return GG.has(e.tagName)||e.isContentEditable===!0}const fp=new WeakSet;function Fk(e){return t=>{t.key==="Enter"&&e(t)}}function U0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const YG=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Fk(()=>{if(fp.has(n))return;U0(n,"down");const i=Fk(()=>{U0(n,"up")}),o=()=>U0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function qk(e){return mS(e)&&!SL()}const $k=new WeakSet;function WG(e,t,n={}){const[r,i,o]=EL(e,n),l=u=>{const f=u.currentTarget;if(!qk(u)||$k.has(u))return;fp.add(f),n.stopPropagation&&$k.add(u);const d=t(f,u),p=(g,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",y),fp.has(f)&&fp.delete(f),qk(g)&&typeof d=="function"&&d(g,{success:x})},m=g=>{p(g,f===window||f===document||n.useGlobalTarget||OL(f,g.target))},y=g=>{p(g,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",y,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,i),cp(u)&&(u.addEventListener("focus",d=>YG(d,i)),!HG(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),o}function yS(e){return _I(e)&&"ownerSVGElement"in e}const dp=new WeakMap;let Za;const AL=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:yS(r)&&"getBBox"in r?r.getBBox()[t]:r[n],XG=AL("inline","width","offsetWidth"),QG=AL("block","height","offsetHeight");function ZG({target:e,borderBoxSize:t}){var n;(n=dp.get(e))==null||n.forEach(r=>{r(e,{get width(){return XG(e,t)},get height(){return QG(e,t)}})})}function JG(e){e.forEach(ZG)}function eK(){typeof ResizeObserver>"u"||(Za=new ResizeObserver(JG))}function tK(e,t){Za||eK();const n=xL(e);return n.forEach(r=>{let i=dp.get(r);i||(i=new Set,dp.set(r,i)),i.add(t),Za==null||Za.observe(r)}),()=>{n.forEach(r=>{const i=dp.get(r);i==null||i.delete(t),i!=null&&i.size||Za==null||Za.unobserve(r)})}}const hp=new Set;let zl;function nK(){zl=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};hp.forEach(t=>t(e))},window.addEventListener("resize",zl)}function rK(e){return hp.add(e),zl||nK(),()=>{hp.delete(e),!hp.size&&typeof zl=="function"&&(window.removeEventListener("resize",zl),zl=void 0)}}function Hk(e,t){return typeof e=="function"?rK(e):tK(e,t)}function iK(e){return yS(e)&&e.tagName==="svg"}const aK=[...vL,Gt,ti],oK=e=>aK.find(yL(e)),Gk=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bl=()=>({x:Gk(),y:Gk()}),Kk=()=>({min:0,max:0}),en=()=>({x:Kk(),y:Kk()}),sK=new WeakMap;function Xm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function bf(e){return typeof e=="string"||Array.isArray(e)}const vS=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gS=["initial",...vS];function Qm(e){return Xm(e.animate)||gS.some(t=>bf(e[t]))}function TL(e){return!!(Qm(e)||e.variants)}function lK(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Tn(i))e.addValue(r,i);else if(Tn(o))e.addValue(r,ou(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,ou(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const y1={current:null},_L={current:!1},uK=typeof window<"u";function cK(){if(_L.current=!0,!!uK)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>y1.current=e.matches;e.addEventListener("change",t),t()}else y1.current=!1}const Yk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Rp={};function CL(e){Rp=e}function fK(){return Rp}class dK{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:l,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=lS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Bn.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,ct.render(this.render,!1,!0))};const{latestValues:d,renderState:p}=u;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=Qm(n),this.isVariantNode=TL(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...y}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in y){const x=y[g];d[g]!==void 0&&Tn(x)&&x.set(d[g])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,sK.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(_L.current||cK(),this.shouldReduceMotion=y1.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ho(this.notifyUpdate),ho(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&lL.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:u,times:f,ease:d,duration:p}=n.accelerate,m=new oL({element:this.current,name:t,keyframes:u,times:f,ease:d,duration:hr(p)}),y=l(m);this.valueSubscriptions.set(t,()=>{y(),m.cancel()});return}const r=xu.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ct.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Rp){const n=Rp[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):en()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Yk.length;r++){const i=Yk[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,l=t[o];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=lK(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ou(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(TI(r)||CI(r))?r=parseFloat(r):!oK(r)&&ti.test(n)&&(r=bL(t,n)),this.setBaseTarget(t,Tn(r)?r.get():r)),Tn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=fS(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Tn(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Jw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){pS.render(this.render)}}class kL extends dK{constructor(){super(...arguments),this.KeyframeResolver=VG}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Tn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class vo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function jL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hK({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pK(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function F0(e){return e===void 0||e===1}function v1({scale:e,scaleX:t,scaleY:n}){return!F0(e)||!F0(t)||!F0(n)}function Wo(e){return v1(e)||NL(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function NL(e){return Wk(e.x)||Wk(e.y)}function Wk(e){return e&&e!=="0%"}function Ip(e,t,n){const r=e-n,i=t*r;return n+i}function Xk(e,t,n,r,i){return i!==void 0&&(e=Ip(e,i,r)),Ip(e,n,r)+t}function g1(e,t=0,n=1,r,i){e.min=Xk(e.min,t,n,r,i),e.max=Xk(e.max,t,n,r,i)}function ML(e,{x:t,y:n}){g1(e.x,t.translate,t.scale,t.originPoint),g1(e.y,n.translate,n.scale,n.originPoint)}const Qk=.999999999999,Zk=1.0000000000001;function mK(e,t,n,r=!1){var u;const i=n.length;if(!i)return;t.x=t.y=1;let o,l;for(let f=0;f<i;f++){o=n[f],l=o.projectionDelta;const{visualElement:d}=o.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(mi(e.x,-o.scroll.offset.x),mi(e.y,-o.scroll.offset.y)),l&&(t.x*=l.x.scale,t.y*=l.y.scale,ML(e,l)),r&&Wo(o.latestValues)&&pp(e,o.latestValues,(u=o.layout)==null?void 0:u.layoutBox))}t.x<Zk&&t.x>Qk&&(t.x=1),t.y<Zk&&t.y>Qk&&(t.y=1)}function mi(e,t){e.min+=t,e.max+=t}function Jk(e,t,n,r,i=.5){const o=wt(e.min,e.max,i);g1(e,t,n,o,r)}function ej(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function pp(e,t,n){const r=n??e;Jk(e.x,ej(t.x,r.x),t.scaleX,t.scale,t.originX),Jk(e.y,ej(t.y,r.y),t.scaleY,t.scale,t.originY)}function PL(e,t){return jL(pK(e.getBoundingClientRect(),t))}function yK(e,t,n){const r=PL(e,n),{scroll:i}=t;return i&&(mi(r.x,i.offset.x),mi(r.y,i.offset.y)),r}const vK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gK=bu.length;function bK(e,t,n){let r="",i=!0;for(let o=0;o<gK;o++){const l=bu[o],u=e[l];if(u===void 0)continue;let f=!0;if(typeof u=="number")f=u===(l.startsWith("scale")?1:0);else{const d=parseFloat(u);f=l.startsWith("scale")?d===1:d===0}if(!f||n){const d=wL(u,hS[l]);if(!f){i=!1;const p=vK[l]||l;r+=`${p}(${d}) `}n&&(t[l]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function bS(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let l=!1,u=!1;for(const f in t){const d=t[f];if(xu.has(f)){l=!0;continue}else if(qI(f)){i[f]=d;continue}else{const p=wL(d,hS[f]);f.startsWith("origin")?(u=!0,o[f]=p):r[f]=p}}if(t.transform||(l||n?r.transform=bK(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:p=0}=o;r.transformOrigin=`${f} ${d} ${p}`}}function DL(e,{style:t,vars:n},r,i){const o=e.style;let l;for(l in t)o[l]=t[l];i==null||i.applyProjectionStyles(o,r);for(l in n)o.setProperty(l,n[l])}function tj(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const jc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=tj(e,t.target.x),r=tj(e,t.target.y);return`${n}% ${r}%`}},xK={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ti.parse(e);if(i.length>5)return r;const o=ti.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=f;const d=wt(u,f,.5);return typeof i[2+l]=="number"&&(i[2+l]/=d),typeof i[3+l]=="number"&&(i[3+l]/=d),o(i)}},b1={borderRadius:{...jc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jc,borderTopRightRadius:jc,borderBottomLeftRadius:jc,borderBottomRightRadius:jc,boxShadow:xK};function RL(e,{layout:t,layoutId:n}){return xu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!b1[e]||e==="opacity")}function xS(e,t,n){var l;const r=e.style,i=t==null?void 0:t.style,o={};if(!r)return o;for(const u in r)(Tn(r[u])||i&&Tn(i[u])||RL(u,e)||((l=n==null?void 0:n.getValue(u))==null?void 0:l.liveStyle)!==void 0)&&(o[u]=r[u]);return o}function wK(e){return window.getComputedStyle(e)}class SK extends kL{constructor(){super(...arguments),this.type="html",this.renderInstance=DL}readValueFromInstance(t,n){var r;if(xu.has(n))return(r=this.projection)!=null&&r.isProjecting?a1(n):F7(t,n);{const i=wK(t),o=(qI(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return PL(t,n)}build(t,n,r){bS(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return xS(t,n,r)}}const EK={offset:"stroke-dashoffset",array:"stroke-dasharray"},OK={offset:"strokeDashoffset",array:"strokeDasharray"};function AK(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?EK:OK;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const TK=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function IL(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:l=0,...u},f,d,p){if(bS(e,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y}=e;m.transform&&(y.transform=m.transform,delete m.transform),(y.transform||m.transformOrigin)&&(y.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),y.transform&&(y.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete m.transformBox);for(const g of TK)m[g]!==void 0&&(y[g]=m[g],delete m[g]);t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&AK(m,i,o,l,!1)}const LL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),zL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _K(e,t,n,r){DL(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(LL.has(i)?i:dS(i),t.attrs[i])}function BL(e,t,n){const r=xS(e,t,n);for(const i in e)if(Tn(e[i])||Tn(t[i])){const o=bu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}class CK extends kL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=en}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xu.has(n)){const r=gL(n);return r&&r.default||0}return n=LL.has(n)?n:dS(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return BL(t,n,r)}build(t,n,r){IL(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){_K(t,n,r,i)}mount(t){this.isSVGTag=zL(t.tagName),super.mount(t)}}const kK=gS.length;function VL(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?VL(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<kK;n++){const r=gS[n],i=e.props[r];(bf(i)||i===!1)&&(t[r]=i)}return t}function UL(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const jK=[...vS].reverse(),NK=vS.length;function MK(e){return t=>Promise.all(t.map(({animation:n,options:r})=>kG(e,n,r)))}function PK(e){let t=MK(e),n=nj(),r=!0,i=!1;const o=d=>(p,m)=>{var g;const y=hs(e,m,d==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(y){const{transition:x,transitionEnd:w,...S}=y;p={...p,...S,...w}}return p};function l(d){t=d(e)}function u(d){const{props:p}=e,m=VL(e.parent)||{},y=[],g=new Set;let x={},w=1/0;for(let O=0;O<NK;O++){const _=jK[O],C=n[_],k=p[_]!==void 0?p[_]:m[_],N=bf(k),M=_===d?C.isActive:null;M===!1&&(w=O);let R=k===m[_]&&k!==p[_]&&N;if(R&&(r||i)&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...x},!C.isActive&&M===null||!k&&!C.prevProp||Xm(k)||typeof k=="boolean")continue;if(_==="exit"&&C.isActive&&M!==!0){C.prevResolvedValues&&(x={...x,...C.prevResolvedValues});continue}const P=DK(C.prevProp,k);let V=P||_===d&&C.isActive&&!R&&N||O>w&&N,H=!1;const Z=Array.isArray(k)?k:[k];let F=Z.reduce(o(_),{});M===!1&&(F={});const{prevResolvedValues:he={}}=C,ne={...he,...F},ee=B=>{V=!0,g.has(B)&&(H=!0,g.delete(B)),C.needsAnimating[B]=!0;const ce=e.getValue(B);ce&&(ce.liveStyle=!1)};for(const B in ne){const ce=F[B],Y=he[B];if(x.hasOwnProperty(B))continue;let I=!1;f1(ce)&&f1(Y)?I=!UL(ce,Y):I=ce!==Y,I?ce!=null?ee(B):g.add(B):ce!==void 0&&g.has(B)?ee(B):C.protectedKeys[B]=!0}C.prevProp=k,C.prevResolvedValues=F,C.isActive&&(x={...x,...F}),(r||i)&&e.blockInitialAnimation&&(V=!1);const D=R&&P;V&&(!D||H)&&y.push(...Z.map(B=>{const ce={type:_};if(typeof B=="string"&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){const{parent:Y}=e,I=hs(Y,B);if(Y.enteringChildren&&I){const{delayChildren:Q}=I.transition||{};ce.delay=uL(Y.enteringChildren,e,Q)}}return{animation:B,options:ce}}))}if(g.size){const O={};if(typeof p.initial!="boolean"){const _=hs(e,Array.isArray(p.initial)?p.initial[0]:p.initial);_&&_.transition&&(O.transition=_.transition)}g.forEach(_=>{const C=e.getBaseTarget(_),k=e.getValue(_);k&&(k.liveStyle=!0),O[_]=C??null}),y.push({animation:O})}let S=!!y.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,i=!1,S?t(y):Promise.resolve()}function f(d,p){var y;if(n[d].isActive===p)return Promise.resolve();(y=e.variantChildren)==null||y.forEach(g=>{var x;return(x=g.animationState)==null?void 0:x.setActive(d,p)}),n[d].isActive=p;const m=u(d);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:u,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=nj(),i=!0}}}function DK(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!UL(t,e):!1}function Fo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nj(){return{animate:Fo(!0),whileInView:Fo(),whileHover:Fo(),whileTap:Fo(),whileDrag:Fo(),whileFocus:Fo(),exit:Fo()}}function x1(e,t){e.min=t.min,e.max=t.max}function Yr(e,t){x1(e.x,t.x),x1(e.y,t.y)}function rj(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const FL=1e-4,RK=1-FL,IK=1+FL,qL=.01,LK=0-qL,zK=0+qL;function Vn(e){return e.max-e.min}function BK(e,t,n){return Math.abs(e-t)<=n}function ij(e,t,n,r=.5){e.origin=r,e.originPoint=wt(t.min,t.max,e.origin),e.scale=Vn(n)/Vn(t),e.translate=wt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=RK&&e.scale<=IK||isNaN(e.scale))&&(e.scale=1),(e.translate>=LK&&e.translate<=zK||isNaN(e.translate))&&(e.translate=0)}function af(e,t,n,r){ij(e.x,t.x,n.x,r?r.originX:void 0),ij(e.y,t.y,n.y,r?r.originY:void 0)}function aj(e,t,n,r=0){const i=r?wt(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Vn(t)}function VK(e,t,n,r){aj(e.x,t.x,n.x,r==null?void 0:r.x),aj(e.y,t.y,n.y,r==null?void 0:r.y)}function oj(e,t,n,r=0){const i=r?wt(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Vn(t)}function Lp(e,t,n,r){oj(e.x,t.x,n.x,r==null?void 0:r.x),oj(e.y,t.y,n.y,r==null?void 0:r.y)}function sj(e,t,n,r,i){return e-=t,e=Ip(e,1/n,r),i!==void 0&&(e=Ip(e,1/i,r)),e}function UK(e,t=0,n=1,r=.5,i,o=e,l=e){if(bi.test(t)&&(t=parseFloat(t),t=wt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=wt(o.min,o.max,r);e===o&&(u-=t),e.min=sj(e.min,t,n,u,i),e.max=sj(e.max,t,n,u,i)}function lj(e,t,[n,r,i],o,l){UK(e,t[n],t[r],t[i],t.scale,o,l)}const FK=["x","scaleX","originX"],qK=["y","scaleY","originY"];function uj(e,t,n,r){lj(e.x,t,FK,n?n.x:void 0,r?r.x:void 0),lj(e.y,t,qK,n?n.y:void 0,r?r.y:void 0)}function cj(e){return e.translate===0&&e.scale===1}function $L(e){return cj(e.x)&&cj(e.y)}function fj(e,t){return e.min===t.min&&e.max===t.max}function $K(e,t){return fj(e.x,t.x)&&fj(e.y,t.y)}function dj(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function HL(e,t){return dj(e.x,t.x)&&dj(e.y,t.y)}function hj(e){return Vn(e.x)/Vn(e.y)}function pj(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function pi(e){return[e("x"),e("y")]}function HK(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||o||l)&&(r=`translate3d(${i}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:p,rotateX:m,rotateY:y,skewX:g,skewY:x}=n;d&&(r=`perspective(${d}px) ${r}`),p&&(r+=`rotate(${p}deg) `),m&&(r+=`rotateX(${m}deg) `),y&&(r+=`rotateY(${y}deg) `),g&&(r+=`skewX(${g}deg) `),x&&(r+=`skewY(${x}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(r+=`scale(${u}, ${f})`),r||"none"}const GL=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],GK=GL.length,mj=e=>typeof e=="string"?parseFloat(e):e,yj=e=>typeof e=="number"||Se.test(e);function KK(e,t,n,r,i,o){i?(e.opacity=wt(0,n.opacity??1,YK(r)),e.opacityExit=wt(t.opacity??1,0,WK(r))):o&&(e.opacity=wt(t.opacity??1,n.opacity??1,r));for(let l=0;l<GK;l++){const u=GL[l];let f=vj(t,u),d=vj(n,u);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||yj(f)===yj(d)?(e[u]=Math.max(wt(mj(f),mj(d),r),0),(bi.test(d)||bi.test(f))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=wt(t.rotate||0,n.rotate||0,r))}function vj(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const YK=KL(0,.5,LI),WK=KL(.5,.95,zr);function KL(e,t,n){return r=>r<e?0:r>t?1:n(vf(e,t,r))}function XK(e,t,n){const r=Tn(e)?e:ou(e);return r.start(cS("",r,t,n)),r.animation}function xf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const QK=(e,t)=>e.depth-t.depth;class ZK{constructor(){this.children=[],this.isDirty=!1}add(t){Qw(this.children,t),this.isDirty=!0}remove(t){jp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(QK),this.isDirty=!1,this.children.forEach(t)}}function JK(e,t){const n=Bn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(ho(r),e(o-t))};return ct.setup(r,!0),()=>ho(r)}function mp(e){return Tn(e)?e.get():e}class eY{constructor(){this.members=[]}add(t){Qw(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(jp(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(jp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:l}=t.options;(o===void 0||o!==l)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,l;(r=(n=t.options).onExitComplete)==null||r.call(n),(l=(i=t.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||l.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const yp={hasAnimatedSinceResize:!0,hasEverUpdated:!1},q0=["","X","Y","Z"],tY=1e3;let nY=0;function $0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function YL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=pL(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ct,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&YL(r)}function WL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},u=t==null?void 0:t()){this.id=nY++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(aY),this.nodes.forEach(fY),this.nodes.forEach(dY),this.nodes.forEach(oY)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new ZK)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Jw),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const f=this.eventHandlers.get(l);f&&f.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=yS(l)&&!iK(l),this.instance=l;const{layoutId:u,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||u)&&(this.isLayoutDirty=!0),e){let p,m=0;const y=()=>this.root.updateBlockedByResize=!1;ct.read(()=>{m=window.innerWidth}),e(l,()=>{const g=window.innerWidth;g!==m&&(m=g,this.root.updateBlockedByResize=!0,p&&p(),p=JK(y,250),yp.hasAnimatedSinceResize&&(yp.hasAnimatedSinceResize=!1,this.nodes.forEach(xj)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:y,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||vY,{onLayoutAnimationStart:w,onLayoutAnimationComplete:S}=d.getProps(),O=!this.targetLayout||!HL(this.targetLayout,g),_=!m&&y;if(this.options.layoutRoot||this.resumeFrom||_||m&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...uS(x,"layout"),onPlay:w,onComplete:S};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(p,_)}else m||xj(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ho(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hY),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&YL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!0),m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(lY),this.nodes.forEach(gj);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bj);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uY),this.nodes.forEach(cY),this.nodes.forEach(rY),this.nodes.forEach(iY)):this.nodes.forEach(bj),this.clearAllSnapshots();const u=Bn.now();En.delta=Ei(0,1e3/60,u-En.timestamp),En.timestamp=u,En.isProcessing=!0,R0.update.process(En),R0.preRender.process(En),R0.render.process(En),En.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sY),this.sharedNodes.forEach(pY)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vn(this.snapshot.measuredBox.x)&&!Vn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=en()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!$L(this.projectionDelta),f=this.getTransformTemplate(),d=f?f(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;l&&this.instance&&(u||Wo(this.latestValues)||p)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return l&&(f=this.removeTransform(f)),gY(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:l}=this.options;if(!l)return en();const u=l.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(bY))){const{scroll:p}=this.root;p&&(mi(u.x,p.offset.x),mi(u.y,p.offset.y))}return u}removeElementScroll(l){var f;const u=en();if(Yr(u,l),(f=this.scroll)!=null&&f.wasRoot)return u;for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:m,options:y}=p;p!==this.root&&m&&y.layoutScroll&&(m.wasRoot&&Yr(u,l),mi(u.x,m.offset.x),mi(u.y,m.offset.y))}return u}applyTransform(l,u=!1,f){var p,m;const d=f||en();Yr(d,l);for(let y=0;y<this.path.length;y++){const g=this.path[y];!u&&g.options.layoutScroll&&g.scroll&&g!==g.root&&(mi(d.x,-g.scroll.offset.x),mi(d.y,-g.scroll.offset.y)),Wo(g.latestValues)&&pp(d,g.latestValues,(p=g.layout)==null?void 0:p.layoutBox)}return Wo(this.latestValues)&&pp(d,this.latestValues,(m=this.layout)==null?void 0:m.layoutBox),d}removeTransform(l){var f;const u=en();Yr(u,l);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!Wo(p.latestValues))continue;let m;p.instance&&(v1(p.latestValues)&&p.updateSnapshot(),m=en(),Yr(m,p.measurePageBox())),uj(u,p.latestValues,(f=p.snapshot)==null?void 0:f.layoutBox,m)}return Wo(this.latestValues)&&uj(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==En.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var g;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!this.layout||!(p||m))return;this.resolvedRelativeTargetAt=En.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=en(),this.targetWithTransforms=en()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),VK(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Yr(this.target,this.layout.layoutBox),ML(this.target,this.targetDelta)):Yr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||v1(this.parent.latestValues)||NL(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,u,f){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=en(),this.relativeTargetOrigin=en(),Lp(this.relativeTargetOrigin,u,f,this.options.layoutAnchor||void 0),Yr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===En.timestamp&&(f=!1),f)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;Yr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,y=this.treeScale.y;mK(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=en());const{target:g}=l;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rj(this.prevProjectionDelta.x,this.projectionDelta.x),rj(this.prevProjectionDelta.y,this.projectionDelta.y)),af(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==y||!pj(this.projectionDelta.x,this.prevProjectionDelta.x)||!pj(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var u;if((u=this.options.visualElement)==null||u.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Bl(),this.projectionDelta=Bl(),this.projectionDeltaWithTransform=Bl()}setAnimationOrigin(l,u=!1){const f=this.snapshot,d=f?f.latestValues:{},p={...this.latestValues},m=Bl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const y=en(),g=f?f.source:void 0,x=this.layout?this.layout.source:void 0,w=g!==x,S=this.getStack(),O=!S||S.members.length<=1,_=!!(w&&!O&&this.options.crossfade===!0&&!this.path.some(yY));this.animationProgress=0;let C;this.mixTargetDelta=k=>{const N=k/1e3;wj(m.x,l.x,N),wj(m.y,l.y,N),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Lp(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),mY(this.relativeTarget,this.relativeTargetOrigin,y,N),C&&$K(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=en()),Yr(C,this.relativeTarget)),w&&(this.animationValues=p,KK(p,d,this.latestValues,N,_,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var u,f,d;this.notifyListeners("animationStart"),(u=this.currentAnimation)==null||u.stop(),(d=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||d.stop(),this.pendingAnimation&&(ho(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ct.update(()=>{yp.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ou(0)),this.motionValue.jump(0,!1),this.currentAnimation=XK(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),l.onUpdate&&l.onUpdate(p)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tY),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:f,layout:d,latestValues:p}=l;if(!(!u||!f||!d)){if(this!==l&&this.layout&&d&&XL(this.options.animationType,this.layout.layoutBox,d.layoutBox)){f=this.target||en();const m=Vn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+m;const y=Vn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+y}Yr(u,f),pp(u,p),af(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new eY),this.sharedNodes.get(l).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var u;const{layoutId:l}=this.options;return l?((u=this.getStack())==null?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:l}=this.options;return l?(u=this.getStack())==null?void 0:u.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:f}={}){const d=this.getStack();d&&d.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const d={};f.z&&$0("z",l,d,this.animationValues);for(let p=0;p<q0.length;p++)$0(`rotate${q0[p]}`,l,d,this.animationValues),$0(`skew${q0[p]}`,l,d,this.animationValues);l.render();for(const p in d)l.setStaticValue(p,d[p]),this.animationValues&&(this.animationValues[p]=d[p]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=mp(u==null?void 0:u.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=mp(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!Wo(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=HK(this.projectionDeltaWithTransform,this.treeScale,p);f&&(m=f(p,m)),l.transform=m;const{x:y,y:g}=this.projectionDelta;l.transformOrigin=`${y.origin*100}% ${g.origin*100}% 0`,d.animationValues?l.opacity=d===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in b1){if(p[x]===void 0)continue;const{correct:w,applyTo:S,isCSSVariable:O}=b1[x],_=m==="none"?p[x]:w(p[x],d);if(S){const C=S.length;for(let k=0;k<C;k++)l[S[k]]=_}else O?this.options.visualElement.renderState.vars[x]=_:l[x]=_}this.options.layoutId&&(l.pointerEvents=d===this?mp(u==null?void 0:u.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var u;return(u=l.currentAnimation)==null?void 0:u.stop()}),this.root.nodes.forEach(gj),this.root.sharedNodes.clear()}}}function rY(e){e.updateLayout()}function iY(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,l=t.source!==e.layout.source;if(o==="size")pi(m=>{const y=l?t.measuredBox[m]:t.layoutBox[m],g=Vn(y);y.min=r[m].min,y.max=y.min+g});else if(o==="x"||o==="y"){const m=o==="x"?"y":"x";x1(l?t.measuredBox[m]:t.layoutBox[m],r[m])}else XL(o,t.layoutBox,r)&&pi(m=>{const y=l?t.measuredBox[m]:t.layoutBox[m],g=Vn(r[m]);y.max=y.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+g)});const u=Bl();af(u,r,t.layoutBox);const f=Bl();l?af(f,e.applyTransform(i,!0),t.measuredBox):af(f,r,t.layoutBox);const d=!$L(u);let p=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:y,layout:g}=m;if(y&&g){const x=e.options.layoutAnchor||void 0,w=en();Lp(w,t.layoutBox,y.layoutBox,x);const S=en();Lp(S,r,g.layoutBox,x),HL(w,S)||(p=!0),m.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=w,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function aY(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function oY(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sY(e){e.clearSnapshot()}function gj(e){e.clearMeasurements()}function lY(e){e.isLayoutDirty=!0,e.updateLayout()}function bj(e){e.isLayoutDirty=!1}function uY(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function cY(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xj(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fY(e){e.resolveTargetDelta()}function dY(e){e.calcProjection()}function hY(e){e.resetSkewAndRotation()}function pY(e){e.removeLeadSnapshot()}function wj(e,t,n){e.translate=wt(t.translate,0,n),e.scale=wt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Sj(e,t,n,r){e.min=wt(t.min,n.min,r),e.max=wt(t.max,n.max,r)}function mY(e,t,n,r){Sj(e.x,t.x,n.x,r),Sj(e.y,t.y,n.y,r)}function yY(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vY={duration:.45,ease:[.4,0,.1,1]},Ej=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Oj=Ej("applewebkit/")&&!Ej("chrome/")?Math.round:zr;function Aj(e){e.min=Oj(e.min),e.max=Oj(e.max)}function gY(e){Aj(e.x),Aj(e.y)}function XL(e,t,n){return e==="position"||e==="preserve-aspect"&&!BK(hj(t),hj(n),.2)}function bY(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const xY=WL({attachResizeListener:(e,t)=>xf(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),H0={current:void 0},QL=WL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!H0.current){const e=new xY({});e.mount(window),e.setOptions({layoutScroll:!0}),H0.current=e}return H0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),wS=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Tj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wY(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Tj(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Tj(e[i],null)}}}}function SY(...e){return E.useCallback(wY(...e),e)}class EY extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(cp(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=cp(r)&&r.offsetWidth||0,o=cp(r)&&r.offsetHeight||0,l=getComputedStyle(n),u=this.props.sizeRef.current;u.height=parseFloat(l.height),u.width=parseFloat(l.width),u.top=n.offsetTop,u.left=n.offsetLeft,u.right=i-u.width-u.left,u.bottom=o-u.height-u.top}return null}componentDidUpdate(){}render(){return this.props.children}}function OY({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:o}){var y;const l=E.useId(),u=E.useRef(null),f=E.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=E.useContext(wS),p=((y=e.props)==null?void 0:y.ref)??(e==null?void 0:e.ref),m=SY(u,p);return E.useInsertionEffect(()=>{const{width:g,height:x,top:w,left:S,right:O,bottom:_}=f.current;if(t||o===!1||!u.current||!g||!x)return;const C=n==="left"?`left: ${S}`:`right: ${O}`,k=r==="bottom"?`bottom: ${_}`:`top: ${w}`;u.current.dataset.motionPopId=l;const N=document.createElement("style");d&&(N.nonce=d);const M=i??document.head;return M.appendChild(N),N.sheet&&N.sheet.insertRule(`
          [data-motion-pop-id="${l}"] {
            position: absolute !important;
            width: ${g}px !important;
            height: ${x}px !important;
            ${C}px !important;
            ${k}px !important;
          }
        `),()=>{var R;(R=u.current)==null||R.removeAttribute("data-motion-pop-id"),M.contains(N)&&M.removeChild(N)}},[t]),A.jsx(EY,{isPresent:t,childRef:u,sizeRef:f,pop:o,children:o===!1?e:E.cloneElement(e,{ref:m})})}const AY=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:l,anchorX:u,anchorY:f,root:d})=>{const p=Xw(TY),m=E.useId();let y=!0,g=E.useMemo(()=>(y=!1,{id:m,initial:t,isPresent:n,custom:i,onExitComplete:x=>{p.set(x,!0);for(const w of p.values())if(!w)return;r&&r()},register:x=>(p.set(x,!1),()=>p.delete(x))}),[n,p,r]);return o&&y&&(g={...g}),E.useMemo(()=>{p.forEach((x,w)=>p.set(w,!1))},[n]),E.useEffect(()=>{!n&&!p.size&&r&&r()},[n]),e=A.jsx(OY,{pop:l==="popLayout",isPresent:n,anchorX:u,anchorY:f,root:d,children:e}),A.jsx(Ym.Provider,{value:g,children:e})};function TY(){return new Map}function ZL(e=!0){const t=E.useContext(Ym);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=E.useId();E.useEffect(()=>{if(e)return i(o)},[e]);const l=E.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const Mh=e=>e.key||"";function _j(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Sl=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:l=!1,anchorX:u="left",anchorY:f="top",root:d})=>{const[p,m]=ZL(l),y=E.useMemo(()=>_j(e),[e]),g=l&&!p?[]:y.map(Mh),x=E.useRef(!0),w=E.useRef(y),S=Xw(()=>new Map),O=E.useRef(new Set),[_,C]=E.useState(y),[k,N]=E.useState(y);AI(()=>{x.current=!1,w.current=y;for(let P=0;P<k.length;P++){const V=Mh(k[P]);g.includes(V)?(S.delete(V),O.current.delete(V)):S.get(V)!==!0&&S.set(V,!1)}},[k,g.length,g.join("-")]);const M=[];if(y!==_){let P=[...y];for(let V=0;V<k.length;V++){const H=k[V],Z=Mh(H);g.includes(Z)||(P.splice(V,0,H),M.push(H))}return o==="wait"&&M.length&&(P=M),N(_j(P)),C(y),null}const{forceRender:R}=E.useContext(Ww);return A.jsx(A.Fragment,{children:k.map(P=>{const V=Mh(P),H=l&&!p?!1:y===k||g.includes(V),Z=()=>{if(O.current.has(V))return;if(S.has(V))O.current.add(V),S.set(V,!0);else return;let F=!0;S.forEach(he=>{he||(F=!1)}),F&&(R==null||R(),N(w.current),l&&(m==null||m()),r&&r())};return A.jsx(AY,{isPresent:H,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:d,onExitComplete:H?void 0:Z,anchorX:u,anchorY:f,children:P},V)})})},JL=E.createContext({strict:!1}),Cj={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let kj=!1;function _Y(){if(kj)return;const e={};for(const t in Cj)e[t]={isEnabled:n=>Cj[t].some(r=>!!n[r])};CL(e),kj=!0}function ez(){return _Y(),fK()}function CY(e){const t=ez();for(const n in e)t[n]={...t[n],...e[n]};CL(t)}const kY=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function zp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kY.has(e)}let tz=e=>!zp(e);function jY(e){typeof e=="function"&&(tz=t=>t.startsWith("on")?!zp(t):e(t))}try{jY(require("@emotion/is-prop-valid").default)}catch{}function NY(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||Tn(e[i])||(tz(i)||n===!0&&zp(i)||!t&&!zp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Zm=E.createContext({});function MY(e,t){if(Qm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bf(n)?n:void 0,animate:bf(r)?r:void 0}}return e.inherit!==!1?t:{}}function PY(e){const{initial:t,animate:n}=MY(e,E.useContext(Zm));return E.useMemo(()=>({initial:t,animate:n}),[jj(t),jj(n)])}function jj(e){return Array.isArray(e)?e.join(" "):e}const SS=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nz(e,t,n){for(const r in t)!Tn(t[r])&&!RL(r,n)&&(e[r]=t[r])}function DY({transformTemplate:e},t){return E.useMemo(()=>{const n=SS();return bS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function RY(e,t){const n=e.style||{},r={};return nz(r,n,e),Object.assign(r,DY(e,t)),r}function IY(e,t){const n={},r=RY(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const rz=()=>({...SS(),attrs:{}});function LY(e,t,n,r){const i=E.useMemo(()=>{const o=rz();return IL(o,t,zL(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};nz(o,e.style,e),i.style={...o,...i.style}}return i}const zY=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ES(e){return typeof e!="string"||e.includes("-")?!1:!!(zY.indexOf(e)>-1||/[A-Z]/u.test(e))}function BY(e,t,n,{latestValues:r},i,o=!1,l){const f=(l??ES(e)?LY:IY)(t,r,i,e),d=NY(t,typeof e=="string",o),p=e!==E.Fragment?{...d,...f,ref:n}:{},{children:m}=t,y=E.useMemo(()=>Tn(m)?m.get():m,[m]);return E.createElement(e,{...p,children:y})}function VY({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:UY(n,r,i,e),renderState:t()}}function UY(e,t,n,r){const i={},o=r(e,{});for(const y in o)i[y]=mp(o[y]);let{initial:l,animate:u}=e;const f=Qm(e),d=TL(e);t&&d&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const m=p?u:l;if(m&&typeof m!="boolean"&&!Xm(m)){const y=Array.isArray(m)?m:[m];for(let g=0;g<y.length;g++){const x=fS(e,y[g]);if(x){const{transitionEnd:w,transition:S,...O}=x;for(const _ in O){let C=O[_];if(Array.isArray(C)){const k=p?C.length-1:0;C=C[k]}C!==null&&(i[_]=C)}for(const _ in w)i[_]=w[_]}}}return i}const iz=e=>(t,n)=>{const r=E.useContext(Zm),i=E.useContext(Ym),o=()=>VY(e,t,r,i);return n?o():Xw(o)},FY=iz({scrapeMotionValuesFromProps:xS,createRenderState:SS}),qY=iz({scrapeMotionValuesFromProps:BL,createRenderState:rz}),$Y=Symbol.for("motionComponentSymbol");function HY(e,t,n){const r=E.useRef(n);E.useInsertionEffect(()=>{r.current=n});const i=E.useRef(null);return E.useCallback(o=>{var u;o&&((u=e.onMount)==null||u.call(e,o));const l=r.current;if(typeof l=="function")if(o){const f=l(o);typeof f=="function"&&(i.current=f)}else i.current?(i.current(),i.current=null):l(o);else l&&(l.current=o);t&&(o?t.mount(o):t.unmount())},[t])}const az=E.createContext({});function jl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function GY(e,t,n,r,i,o){var C,k;const{visualElement:l}=E.useContext(Zm),u=E.useContext(JL),f=E.useContext(Ym),d=E.useContext(wS),p=d.reducedMotion,m=d.skipAnimations,y=E.useRef(null),g=E.useRef(!1);r=r||u.renderer,!y.current&&r&&(y.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:p,skipAnimations:m,isSVG:o}),g.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const x=y.current,w=E.useContext(az);x&&!x.projection&&i&&(x.type==="html"||x.type==="svg")&&KY(y.current,n,i,w);const S=E.useRef(!1);E.useInsertionEffect(()=>{x&&S.current&&x.update(n,f)});const O=n[hL],_=E.useRef(!!O&&typeof window<"u"&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,O))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,O)));return AI(()=>{g.current=!0,x&&(S.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),_.current&&x.animationState&&x.animationState.animateChanges())}),E.useEffect(()=>{x&&(!_.current&&x.animationState&&x.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var N;(N=window.MotionHandoffMarkAsComplete)==null||N.call(window,O)}),_.current=!1),x.enteringChildren=void 0)}),x}function KY(e,t,n,r){const{layoutId:i,layout:o,drag:l,dragConstraints:u,layoutScroll:f,layoutRoot:d,layoutAnchor:p,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:oz(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!l||u&&jl(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:f,layoutRoot:d,layoutAnchor:p})}function oz(e){if(e)return e.options.allowProjection!==!1?e.projection:oz(e.parent)}function G0(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&CY(r);const o=n?n==="svg":ES(e),l=o?qY:FY;function u(d,p){let m;const y={...E.useContext(wS),...d,layoutId:YY(d)},{isStatic:g}=y,x=PY(d),w=l(d,g);if(!g&&typeof window<"u"){WY();const S=XY(y);m=S.MeasureLayout,x.visualElement=GY(e,w,y,i,S.ProjectionNode,o)}return A.jsxs(Zm.Provider,{value:x,children:[m&&x.visualElement?A.jsx(m,{visualElement:x.visualElement,...y}):null,BY(e,d,HY(w,x.visualElement,p),w,g,t,o)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=E.forwardRef(u);return f[$Y]=e,f}function YY({layoutId:e}){const t=E.useContext(Ww).id;return t&&e!==void 0?t+"-"+e:e}function WY(e,t){E.useContext(JL).strict}function XY(e){const t=ez(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function QY(e,t){if(typeof Proxy>"u")return G0;const n=new Map,r=(o,l)=>G0(o,l,e,t),i=(o,l)=>r(o,l);return new Proxy(i,{get:(o,l)=>l==="create"?r:(n.has(l)||n.set(l,G0(l,void 0,e,t)),n.get(l))})}const ZY=(e,t)=>t.isSVG??ES(e)?new CK(t):new SK(t,{allowProjection:e!==E.Fragment});class JY extends vo{constructor(t){super(t),t.animationState||(t.animationState=PK(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Xm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let eW=0;class tW extends vo{constructor(){super(...arguments),this.id=eW++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:l,custom:u}=this.node.getProps();if(typeof l=="string"){const f=hs(this.node,l,u);if(f){const{transition:d,transitionEnd:p,...m}=f;for(const y in m)(o=this.node.getValue(y))==null||o.jump(m[y])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const nW={animation:{Feature:JY},exit:{Feature:tW}};function Hf(e){return{point:{x:e.pageX,y:e.pageY}}}const rW=e=>t=>mS(t)&&e(t,Hf(t));function of(e,t,n,r){return xf(e,t,rW(n),r)}const sz=({current:e})=>e?e.ownerDocument.defaultView:null,Nj=(e,t)=>Math.abs(e-t);function iW(e,t){const n=Nj(e.x,t.x),r=Nj(e.y,t.y);return Math.sqrt(n**2+r**2)}const Mj=new Set(["auto","scroll"]);class lz{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:l=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ph(this.lastRawMoveEventInfo,this.transformPagePoint));const g=K0(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,w=iW(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!w)return;const{point:S}=g,{timestamp:O}=En;this.history.push({...S,timestamp:O});const{onStart:_,onMove:C}=this.handlers;x||(_&&_(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,x)=>{this.lastMoveEvent=g,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=Ph(x,this.transformPagePoint),ct.update(this.updatePoint,!0)},this.handlePointerUp=(g,x)=>{this.end();const{onEnd:w,onSessionEnd:S,resumeAnimation:O}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&O&&O(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=K0(g.type==="pointercancel"?this.lastMoveEventInfo:Ph(x,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,_),S&&S(g,_)},!mS(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=i||window;const f=Hf(t),d=Ph(f,this.transformPagePoint),{point:p}=d,{timestamp:m}=En;this.history=[{...p,timestamp:m}];const{onSessionStart:y}=n;y&&y(t,K0(d,this.history)),this.removeListeners=Ff(of(this.contextWindow,"pointermove",this.handlePointerMove),of(this.contextWindow,"pointerup",this.handlePointerUp),of(this.contextWindow,"pointercancel",this.handlePointerUp)),u&&this.startScrollTracking(u)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Mj.has(r.overflowX)||Mj.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),ct.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ho(this.updatePoint)}}function Ph(e,t){return t?{point:t(e.point)}:e}function Pj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function K0({point:e},t){return{point:e,delta:Pj(e,uz(t)),offset:Pj(e,aW(t)),velocity:oW(t,.1)}}function aW(e){return e[0]}function uz(e){return e[e.length-1]}function oW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=uz(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>hr(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>hr(t)*2&&(r=e[1]);const o=Rr(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function sW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?wt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?wt(n,e,r.max):Math.min(e,n)),e}function Dj(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function lW(e,{top:t,left:n,bottom:r,right:i}){return{x:Dj(e.x,n,i),y:Dj(e.y,t,r)}}function Rj(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function uW(e,t){return{x:Rj(e.x,t.x),y:Rj(e.y,t.y)}}function cW(e,t){let n=.5;const r=Vn(e),i=Vn(t);return i>r?n=vf(t.min,t.max-r,e.min):r>i&&(n=vf(e.min,e.max-i,t.min)),Ei(0,1,n)}function fW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const w1=.35;function dW(e=w1){return e===!1?e=0:e===!0&&(e=w1),{x:Ij(e,"left","right"),y:Ij(e,"top","bottom")}}function Ij(e,t,n){return{min:Lj(e,t),max:Lj(e,n)}}function Lj(e,t){return typeof e=="number"?e:e[t]||0}const hW=new WeakMap;class pW{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=en(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=m=>{n&&this.snapToCursor(Hf(m).point),this.stopAnimation()},l=(m,y)=>{const{drag:g,dragPropagation:x,onDragStart:w}=this.getProps();if(g&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=UG(g),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pi(O=>{let _=this.getAxisMotionValue(O).get()||0;if(bi.test(_)){const{projection:C}=this.visualElement;if(C&&C.layout){const k=C.layout.layoutBox[O];k&&(_=Vn(k)*(parseFloat(_)/100))}}this.originPoint[O]=_}),w&&ct.update(()=>w(m,y),!1,!0),d1(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(m,y)=>{this.latestPointerEvent=m,this.latestPanInfo=y;const{dragPropagation:g,dragDirectionLock:x,onDirectionLock:w,onDrag:S}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:O}=y;if(x&&this.currentDirection===null){this.currentDirection=yW(O),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",y.point,O),this.updateAxis("y",y.point,O),this.visualElement.render(),S&&ct.update(()=>S(m,y),!1,!0)},f=(m,y)=>{this.latestPointerEvent=m,this.latestPanInfo=y,this.stop(m,y),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{const{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new lz(t,{onSessionStart:o,onStart:l,onMove:u,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:sz(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&ct.postRender(()=>u(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Dh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=sW(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&jl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=lW(r.layoutBox,t):this.constraints=!1,this.elastic=dW(n),i!==this.constraints&&!jl(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&pi(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=fW(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!jl(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=yK(r,i.root,this.visualElement.getTransformPagePoint());let l=uW(i.layout.layoutBox,o);if(n){const u=n(hK(l));this.hasMutatedConstraints=!!u,u&&(l=jL(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},d=pi(p=>{if(!Dh(p,n,this.currentDirection))return;let m=f&&f[p]||{};(l===!0||l===p)&&(m={min:0,max:0});const y=i?200:1e6,g=i?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:y,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return d1(this.visualElement,t),r.start(cS(t,r,0,n,this.visualElement,!1))}stopAnimation(){pi(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){pi(n=>{const{drag:r}=this.getProps();if(!Dh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:u}=i.layout.layoutBox[n],f=o.get()||0;o.set(t[n]-wt(l,u,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!jl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};pi(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const f=u.get();i[l]=cW({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),pi(l=>{if(!Dh(l,t,null))return;const u=this.getAxisMotionValue(l),{min:f,max:d}=this.constraints[l];u.set(wt(f,d,i[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;hW.set(this.visualElement,this);const t=this.visualElement.current,n=of(t,"pointerdown",d=>{const{drag:p,dragListener:m=!0}=this.getProps(),y=d.target,g=y!==t&&KG(y);p&&m&&!g&&this.start(d)});let r;const i=()=>{const{dragConstraints:d}=this.getProps();jl(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),r||(r=mW(t,d.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,l=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ct.read(i);const u=xf(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(pi(m=>{const y=this.getAxisMotionValue(m);y&&(this.originPoint[m]+=d[m].translate,y.set(y.get()+d[m].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),f&&f(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:l=w1,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:l,dragMomentum:u}}}function zj(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function mW(e,t,n){const r=Hk(e,zj(n)),i=Hk(t,zj(n));return()=>{r(),i()}}function Dh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vW extends vo{constructor(t){super(t),this.removeGroupControls=zr,this.removeListeners=zr,this.controls=new pW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||zr}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Y0=e=>(t,n)=>{e&&ct.update(()=>e(t,n),!1,!0)};class gW extends vo{constructor(){super(...arguments),this.removePointerDownListener=zr}onPointerDown(t){this.session=new lz(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sz(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Y0(t),onStart:Y0(n),onMove:Y0(r),onEnd:(o,l)=>{delete this.session,i&&ct.postRender(()=>i(o,l))}}}mount(){this.removePointerDownListener=of(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let W0=!1;class bW extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),W0&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),yp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:l}=r;return l&&(l.isPresent=o,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),W0=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||ct.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),pS.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;W0=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cz(e){const[t,n]=ZL(),r=E.useContext(Ww);return A.jsx(bW,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(az),isPresent:t,safeToRemove:n})}const xW={pan:{Feature:gW},drag:{Feature:vW,ProjectionNode:QL,MeasureLayout:cz}};function Bj(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&ct.postRender(()=>o(t,Hf(t)))}class wW extends vo{mount(){const{current:t}=this.node;t&&(this.unmount=qG(t,(n,r)=>(Bj(this.node,r,"Start"),i=>Bj(this.node,i,"End"))))}unmount(){}}class SW extends vo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ff(xf(this.node.current,"focus",()=>this.onFocus()),xf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vj(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&ct.postRender(()=>o(t,Hf(t)))}class EW extends vo{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=WG(t,(i,o)=>(Vj(this.node,o,"Start"),(l,{success:u})=>Vj(this.node,l,u?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const S1=new WeakMap,X0=new WeakMap,OW=e=>{const t=S1.get(e.target);t&&t(e)},AW=e=>{e.forEach(OW)};function TW({root:e,...t}){const n=e||document;X0.has(n)||X0.set(n,{});const r=X0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(AW,{root:e,...t})),r[i]}function _W(e,t,n){const r=TW(t);return S1.set(e,n),r.observe(e),()=>{S1.delete(e),r.unobserve(e)}}const CW={some:0,all:1};class kW extends vo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var f;(f=this.stopObserver)==null||f.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:CW[i]},u=d=>{const{isIntersecting:p}=d;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),g=p?m:y;g&&g(d)};this.stopObserver=_W(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(jW(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function jW({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const NW={inView:{Feature:kW},tap:{Feature:EW},focus:{Feature:SW},hover:{Feature:wW}},MW={layout:{ProjectionNode:QL,MeasureLayout:cz}},PW={...nW,...NW,...xW,...MW},Nr=QY(PW,ZY);function fz(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=fz(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=fz(e))&&(r&&(r+=" "),r+=t);return r}var DW=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function OS(e){if(typeof e!="string")return!1;var t=DW;return t.includes(e)}var RW=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],IW=new Set(RW);function dz(e){return typeof e!="string"?!1:IW.has(e)}function hz(e){return typeof e=="string"&&e.startsWith("data-")}function yr(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(dz(n)||hz(n))&&(t[n]=e[n]);return t}function su(e){if(e==null)return null;if(E.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return yr(t)}return typeof e=="object"&&!Array.isArray(e)?yr(e):null}function Fn(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(dz(n)||hz(n)||OS(n))&&(t[n]=e[n]);return t}function LW(e){return e==null?null:E.isValidElement(e)?Fn(e.props):typeof e=="object"&&!Array.isArray(e)?Fn(e):null}var zW=["children","width","height","viewBox","className","style","title","desc"];function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E1.apply(null,arguments)}function BW(e,t){if(e==null)return{};var n,r,i=VW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function VW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var pz=E.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:l,style:u,title:f,desc:d}=e,p=BW(e,zW),m=o||{width:r,height:i,x:0,y:0},y=tt("recharts-surface",l);return E.createElement("svg",E1({},Fn(p),{className:y,width:r,height:i,style:u,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height),ref:t}),E.createElement("title",null,f),E.createElement("desc",null,d),n)}),UW=["children","className"];function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O1.apply(null,arguments)}function FW(e,t){if(e==null)return{};var n,r,i=qW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function qW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var fn=E.forwardRef((e,t)=>{var{children:n,className:r}=e,i=FW(e,UW),o=tt("recharts-layer",r);return E.createElement("g",O1({className:o},Fn(i),{ref:t}),n)}),mz=bI(),$W=E.createContext(null);function pt(e){return function(){return e}}const yz=Math.cos,Bp=Math.sin,ii=Math.sqrt,Vp=Math.PI,Jm=2*Vp,A1=Math.PI,T1=2*A1,Xo=1e-6,HW=T1-Xo;function vz(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function GW(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vz;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class KW{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?vz:GW(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,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,l){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+l}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,u=this._y1,f=r-t,d=i-n,p=l-t,m=u-n,y=p*p+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>Xo)if(!(Math.abs(m*f-d*p)>Xo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-l,x=i-u,w=f*f+d*d,S=g*g+x*x,O=Math.sqrt(w),_=Math.sqrt(y),C=o*Math.tan((A1-Math.acos((w+y-S)/(2*O*_)))/2),k=C/_,N=C/O;Math.abs(k-1)>Xo&&this._append`L${t+k*p},${n+k*m}`,this._append`A${o},${o},0,0,${+(m*g>p*x)},${this._x1=t+N*f},${this._y1=n+N*d}`}}arc(t,n,r,i,o,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),f=r*Math.sin(i),d=t+u,p=n+f,m=1^l,y=l?i-o:o-i;this._x1===null?this._append`M${d},${p}`:(Math.abs(this._x1-d)>Xo||Math.abs(this._y1-p)>Xo)&&this._append`L${d},${p}`,r&&(y<0&&(y=y%T1+T1),y>HW?this._append`A${r},${r},0,1,${m},${t-u},${n-f}A${r},${r},0,1,${m},${this._x1=d},${this._y1=p}`:y>Xo&&this._append`A${r},${r},0,${+(y>=A1)},${m},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function AS(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 KW(t)}function TS(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function gz(e){this._context=e}gz.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 ey(e){return new gz(e)}function bz(e){return e[0]}function xz(e){return e[1]}function wz(e,t){var n=pt(!0),r=null,i=ey,o=null,l=AS(u);e=typeof e=="function"?e:e===void 0?bz:pt(e),t=typeof t=="function"?t:t===void 0?xz:pt(t);function u(f){var d,p=(f=TS(f)).length,m,y=!1,g;for(r==null&&(o=i(g=l())),d=0;d<=p;++d)!(d<p&&n(m=f[d],d,f))===y&&((y=!y)?o.lineStart():o.lineEnd()),y&&o.point(+e(m,d,f),+t(m,d,f));if(g)return o=null,g+""||null}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:pt(+f),u):e},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:pt(+f),u):t},u.defined=function(f){return arguments.length?(n=typeof f=="function"?f:pt(!!f),u):n},u.curve=function(f){return arguments.length?(i=f,r!=null&&(o=i(r)),u):i},u.context=function(f){return arguments.length?(f==null?r=o=null:o=i(r=f),u):r},u}function Rh(e,t,n){var r=null,i=pt(!0),o=null,l=ey,u=null,f=AS(d);e=typeof e=="function"?e:e===void 0?bz:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?xz:pt(+n);function d(m){var y,g,x,w=(m=TS(m)).length,S,O=!1,_,C=new Array(w),k=new Array(w);for(o==null&&(u=l(_=f())),y=0;y<=w;++y){if(!(y<w&&i(S=m[y],y,m))===O)if(O=!O)g=y,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),x=y-1;x>=g;--x)u.point(C[x],k[x]);u.lineEnd(),u.areaEnd()}O&&(C[y]=+e(S,y,m),k[y]=+t(S,y,m),u.point(r?+r(S,y,m):C[y],n?+n(S,y,m):k[y]))}if(_)return u=null,_+""||null}function p(){return wz().defined(i).curve(l).context(o)}return d.x=function(m){return arguments.length?(e=typeof m=="function"?m:pt(+m),r=null,d):e},d.x0=function(m){return arguments.length?(e=typeof m=="function"?m:pt(+m),d):e},d.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:pt(+m),d):r},d.y=function(m){return arguments.length?(t=typeof m=="function"?m:pt(+m),n=null,d):t},d.y0=function(m){return arguments.length?(t=typeof m=="function"?m:pt(+m),d):t},d.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:pt(+m),d):n},d.lineX0=d.lineY0=function(){return p().x(e).y(t)},d.lineY1=function(){return p().x(e).y(n)},d.lineX1=function(){return p().x(r).y(t)},d.defined=function(m){return arguments.length?(i=typeof m=="function"?m:pt(!!m),d):i},d.curve=function(m){return arguments.length?(l=m,o!=null&&(u=l(o)),d):l},d.context=function(m){return arguments.length?(m==null?o=u=null:u=l(o=m),d):o},d}class Sz{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function YW(e){return new Sz(e,!0)}function WW(e){return new Sz(e,!1)}const _S={draw(e,t){const n=ii(t/Vp);e.moveTo(n,0),e.arc(0,0,n,0,Jm)}},XW={draw(e,t){const n=ii(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Ez=ii(1/3),QW=Ez*2,ZW={draw(e,t){const n=ii(t/QW),r=n*Ez;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},JW={draw(e,t){const n=ii(t),r=-n/2;e.rect(r,r,n,n)}},eX=.8908130915292852,Oz=Bp(Vp/10)/Bp(7*Vp/10),tX=Bp(Jm/10)*Oz,nX=-yz(Jm/10)*Oz,rX={draw(e,t){const n=ii(t*eX),r=tX*n,i=nX*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const l=Jm*o/5,u=yz(l),f=Bp(l);e.lineTo(f*n,-u*n),e.lineTo(u*r-f*i,f*r+u*i)}e.closePath()}},Q0=ii(3),iX={draw(e,t){const n=-ii(t/(Q0*3));e.moveTo(0,n*2),e.lineTo(-Q0*n,-n),e.lineTo(Q0*n,-n),e.closePath()}},kr=-.5,jr=ii(3)/2,_1=1/ii(12),aX=(_1/2+1)*3,oX={draw(e,t){const n=ii(t/aX),r=n/2,i=n*_1,o=r,l=n*_1+n,u=-o,f=l;e.moveTo(r,i),e.lineTo(o,l),e.lineTo(u,f),e.lineTo(kr*r-jr*i,jr*r+kr*i),e.lineTo(kr*o-jr*l,jr*o+kr*l),e.lineTo(kr*u-jr*f,jr*u+kr*f),e.lineTo(kr*r+jr*i,kr*i-jr*r),e.lineTo(kr*o+jr*l,kr*l-jr*o),e.lineTo(kr*u+jr*f,kr*f-jr*u),e.closePath()}};function sX(e,t){let n=null,r=AS(i);e=typeof e=="function"?e:pt(e||_S),t=typeof t=="function"?t:pt(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:pt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:pt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Up(){}function Fp(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 Az(e){this._context=e}Az.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:Fp(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:Fp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lX(e){return new Az(e)}function Tz(e){this._context=e}Tz.prototype={areaStart:Up,areaEnd:Up,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:Fp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uX(e){return new Tz(e)}function _z(e){this._context=e}_z.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:Fp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cX(e){return new _z(e)}function Cz(e){this._context=e}Cz.prototype={areaStart:Up,areaEnd:Up,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 fX(e){return new Cz(e)}function Uj(e){return e<0?-1:1}function Fj(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),l=(n-e._y1)/(i||r<0&&-0),u=(o*i+l*r)/(r+i);return(Uj(o)+Uj(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(u))||0}function qj(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Z0(e,t,n){var r=e._x0,i=e._y0,o=e._x1,l=e._y1,u=(o-r)/3;e._context.bezierCurveTo(r+u,i+u*t,o-u,l-u*n,o,l)}function qp(e){this._context=e}qp.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:Z0(this,this._t0,qj(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,Z0(this,qj(this,n=Fj(this,e,t)),n);break;default:Z0(this,this._t0,n=Fj(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function kz(e){this._context=new jz(e)}(kz.prototype=Object.create(qp.prototype)).point=function(e,t){qp.prototype.point.call(this,t,e)};function jz(e){this._context=e}jz.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,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function dX(e){return new qp(e)}function hX(e){return new kz(e)}function Nz(e){this._context=e}Nz.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=$j(e),i=$j(t),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[l],t[l]);(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 $j(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),l=new Array(n);for(i[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,l[t]-=r*l[t-1];for(i[n-1]=l[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(l[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function pX(e){return new Nz(e)}function ty(e,t){this._context=e,this._t=t}ty.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 mX(e){return new ty(e,.5)}function yX(e){return new ty(e,0)}function vX(e){return new ty(e,1)}function bs(e,t){if((l=e.length)>1)for(var n=1,r,i,o=e[t[0]],l,u=o.length;n<l;++n)for(i=o,o=e[t[n]],r=0;r<u;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function C1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function gX(e,t){return e[t]}function bX(e){const t=[];return t.key=e,t}function xX(){var e=pt([]),t=C1,n=bs,r=gX;function i(o){var l=Array.from(e.apply(this,arguments),bX),u,f=l.length,d=-1,p;for(const m of o)for(u=0,++d;u<f;++u)(l[u][d]=[0,+r(m,l[u].key,d,o)]).data=m;for(u=0,p=TS(t(l));u<f;++u)l[p[u]].index=u;return n(l,p),l}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:pt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:pt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?C1:typeof o=="function"?o:pt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??bs,i):n},i}function wX(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,l;i<o;++i){for(l=n=0;n<r;++n)l+=e[n][i][1]||0;if(l)for(n=0;n<r;++n)e[n][i][1]/=l}bs(e,t)}}function SX(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var l=0,u=0;l<i;++l)u+=e[l][n][1]||0;r[n][1]+=r[n][0]=-u/2}bs(e,t)}}function EX(e,t){if(!(!((l=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,l;r<o;++r){for(var u=0,f=0,d=0;u<l;++u){for(var p=e[t[u]],m=p[r][1]||0,y=p[r-1][1]||0,g=(m-y)/2,x=0;x<u;++x){var w=e[t[x]],S=w[r][1]||0,O=w[r-1][1]||0;g+=S-O}f+=m,d+=g*m}i[r-1][1]+=i[r-1][0]=n,f&&(n-=d/f)}i[r-1][1]+=i[r-1][0]=n,bs(e,t)}}var J0={},eb={},Hj;function OX(){return Hj||(Hj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(eb)),eb}var tb={},Gj;function Mz(){return Gj||(Gj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(tb)),tb}var nb={},Kj;function CS(){return Kj||(Kj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(nb)),nb}var rb={},ib={},Yj;function AX(){return Yj||(Yj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(ib)),ib}var Wj;function kS(){return Wj||(Wj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AX(),n=CS();function r(i){if(Array.isArray(i))return i.map(n.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const o=[],l=i.length;if(l===0)return o;let u=0,f="",d="",p=!1;for(i.charCodeAt(0)===46&&(o.push(""),u++);u<l;){const m=i[u];d?m==="\\"&&u+1<l?(u++,f+=i[u]):m===d?d="":f+=m:p?m==='"'||m==="'"?d=m:m==="]"?(p=!1,o.push(f),f=""):f+=m:m==="["?(p=!0,f&&(o.push(f),f="")):m==="."?f&&(o.push(f),f=""):f+=m,u++}return f&&o.push(f),o}e.toPath=r})(rb)),rb}var Xj;function jS(){return Xj||(Xj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OX(),n=Mz(),r=CS(),i=kS();function o(u,f,d){if(u==null)return d;switch(typeof f){case"string":{if(t.isUnsafeProperty(f))return d;const p=u[f];return p===void 0?n.isDeepKey(f)?o(u,i.toPath(f),d):d:p}case"number":case"symbol":{typeof f=="number"&&(f=r.toKey(f));const p=u[f];return p===void 0?d:p}default:{if(Array.isArray(f))return l(u,f,d);if(Object.is(f==null?void 0:f.valueOf(),-0)?f="-0":f=String(f),t.isUnsafeProperty(f))return d;const p=u[f];return p===void 0?d:p}}}function l(u,f,d){if(f.length===0)return d;let p=u;for(let m=0;m<f.length;m++){if(p==null||t.isUnsafeProperty(f[m]))return d;p=p[f[m]]}return p===void 0?d:p}e.get=o})(J0)),J0}var ab,Qj;function TX(){return Qj||(Qj=1,ab=jS().get),ab}var _X=TX();const xs=mo(_X);var CX=4;function ao(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CX,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function Rt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((i,o,l)=>{var u=n[l-1];return typeof u=="string"?i+u+o:u!==void 0?i+ao(u)+o:i+o},"")}var Mn=e=>e===0?0:e>0?1:-1,Oi=e=>typeof e=="number"&&e!=+e,ws=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,xe=e=>(typeof e=="number"||e instanceof Number)&&!Oi(e),Ai=e=>xe(e)||typeof e=="string",kX=0,wf=e=>{var t=++kX;return"".concat(e||"").concat(t)},pr=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!xe(t)&&typeof t!="string")return r;var o;if(ws(t)){if(n==null)return r;var l=t.indexOf("%");o=n*parseFloat(t.slice(0,l))/100}else o=+t;return Oi(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},Pz=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function An(e,t,n){return xe(e)&&xe(t)?ao(e+n*(t-e)):t}function Dz(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):xs(r,t))===n)}var dn=e=>e===null||typeof e>"u",Gf=e=>dn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Zn(e){return e!=null}function _s(){}var jX=["type","size","sizeType"];function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k1.apply(null,arguments)}function Zj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zj(Object(n),!0).forEach(function(r){NX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NX(e,t,n){return(t=MX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MX(e){var t=PX(e,"string");return typeof t=="symbol"?t:t+""}function PX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DX(e,t){if(e==null)return{};var n,r,i=RX(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function RX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Rz={symbolCircle:_S,symbolCross:XW,symbolDiamond:ZW,symbolSquare:JW,symbolStar:rX,symbolTriangle:iX,symbolWye:oX},IX=Math.PI/180,LX=e=>{var t="symbol".concat(Gf(e));return Rz[t]||_S},zX=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*IX;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},BX=(e,t)=>{Rz["symbol".concat(Gf(e))]=t},Iz=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=DX(e,jX),o=Jj(Jj({},i),{},{type:t,size:n,sizeType:r}),l="circle";typeof t=="string"&&(l=t);var u=()=>{var y=LX(l),g=sX().type(y).size(zX(n,r,l)),x=g();if(x!==null)return x},{className:f,cx:d,cy:p}=o,m=Fn(o);return xe(d)&&xe(p)&&xe(n)?E.createElement("path",k1({},m,{className:tt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:u()})):null};Iz.registerSymbol=BX;var Lz=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,NS=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(E.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{OS(i)&&typeof n[i]=="function"&&(r[i]=(o=>n[i](n,o)))}),r},VX=(e,t,n)=>r=>(e(t,n,r),null),zz=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];OS(i)&&typeof o=="function"&&(r||(r={}),r[i]=VX(o,t,n))}),r};function eN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eN(Object(n),!0).forEach(function(r){FX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FX(e,t,n){return(t=qX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qX(e){var t=$X(e,"string");return typeof t=="symbol"?t:t+""}function $X(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pn(e,t){var n=UX({},e),r=t,i=Object.keys(t),o=i.reduce((l,u)=>(l[u]===void 0&&r[u]!==void 0&&(l[u]=r[u]),l),n);return o}var ob={},sb={},tN;function HX(){return tN||(tN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const l=n[o],u=r(l,o,n);i.has(u)||i.set(u,l)}return Array.from(i.values())}e.uniqBy=t})(sb)),sb}var lb={},nN;function GX(){return nN||(nN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...i){return n.apply(this,i.slice(0,r))}}e.ary=t})(lb)),lb}var ub={},rN;function Bz(){return rN||(rN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(ub)),ub}var cb={},fb={},db={},iN;function KX(){return iN||(iN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(db)),db}var aN;function Vz(){return aN||(aN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=KX();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(fb)),fb}var hb={},oN;function YX(){return oN||(oN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(hb)),hb}var sN;function WX(){return sN||(sN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vz(),n=YX();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(cb)),cb}var pb={},mb={},lN;function XX(){return lN||(lN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jS();function n(r){return function(i){return t.get(i,r)}}e.property=n})(mb)),mb}var yb={},vb={},gb={},bb={},uN;function Uz(){return uN||(uN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(bb)),bb}var xb={},cN;function Fz(){return cN||(cN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(xb)),xb}var wb={},fN;function qz(){return fN||(fN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(wb)),wb}var dN;function QX(){return dN||(dN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Uz(),n=Fz(),r=qz();function i(p,m,y){return typeof y!="function"?i(p,m,()=>{}):o(p,m,function g(x,w,S,O,_,C){const k=y(x,w,S,O,_,C);return k!==void 0?!!k:o(x,w,g,C)},new Map)}function o(p,m,y,g){if(m===p)return!0;switch(typeof m){case"object":return l(p,m,y,g);case"function":return Object.keys(m).length>0?o(p,{...m},y,g):r.isEqualsSameValueZero(p,m);default:return t.isObject(p)?typeof m=="string"?m==="":!0:r.isEqualsSameValueZero(p,m)}}function l(p,m,y,g){if(m==null)return!0;if(Array.isArray(m))return f(p,m,y,g);if(m instanceof Map)return u(p,m,y,g);if(m instanceof Set)return d(p,m,y,g);const x=Object.keys(m);if(p==null||n.isPrimitive(p))return x.length===0;if(x.length===0)return!0;if(g!=null&&g.has(m))return g.get(m)===p;g==null||g.set(m,p);try{for(let w=0;w<x.length;w++){const S=x[w];if(!n.isPrimitive(p)&&!(S in p)||m[S]===void 0&&p[S]!==void 0||m[S]===null&&p[S]!==null||!y(p[S],m[S],S,p,m,g))return!1}return!0}finally{g==null||g.delete(m)}}function u(p,m,y,g){if(m.size===0)return!0;if(!(p instanceof Map))return!1;for(const[x,w]of m.entries()){const S=p.get(x);if(y(S,w,x,p,m,g)===!1)return!1}return!0}function f(p,m,y,g){if(m.length===0)return!0;if(!Array.isArray(p))return!1;const x=new Set;for(let w=0;w<m.length;w++){const S=m[w];let O=!1;for(let _=0;_<p.length;_++){if(x.has(_))continue;const C=p[_];let k=!1;if(y(C,S,w,p,m,g)&&(k=!0),k){x.add(_),O=!0;break}}if(!O)return!1}return!0}function d(p,m,y,g){return m.size===0?!0:p instanceof Set?f([...p],[...m],y,g):!1}e.isMatchWith=i,e.isSetMatch=d})(gb)),gb}var hN;function $z(){return hN||(hN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QX();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(vb)),vb}var Sb={},Eb={},Ob={},pN;function ZX(){return pN||(pN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(Ob)),Ob}var Ab={},mN;function MS(){return mN||(mN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(Ab)),Ab}var Tb={},yN;function Hz(){return yN||(yN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",l="[object Symbol]",u="[object Date]",f="[object Map]",d="[object Set]",p="[object Array]",m="[object Function]",y="[object ArrayBuffer]",g="[object Object]",x="[object Error]",w="[object DataView]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",_="[object Uint16Array]",C="[object Uint32Array]",k="[object BigUint64Array]",N="[object Int8Array]",M="[object Int16Array]",R="[object Int32Array]",P="[object BigInt64Array]",V="[object Float32Array]",H="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=y,e.arrayTag=p,e.bigInt64ArrayTag=P,e.bigUint64ArrayTag=k,e.booleanTag=i,e.dataViewTag=w,e.dateTag=u,e.errorTag=x,e.float32ArrayTag=V,e.float64ArrayTag=H,e.functionTag=m,e.int16ArrayTag=M,e.int32ArrayTag=R,e.int8ArrayTag=N,e.mapTag=f,e.numberTag=r,e.objectTag=g,e.regexpTag=t,e.setTag=d,e.stringTag=n,e.symbolTag=l,e.uint16ArrayTag=_,e.uint32ArrayTag=C,e.uint8ArrayTag=S,e.uint8ClampedArrayTag=O})(Tb)),Tb}var _b={},vN;function JX(){return vN||(vN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(_b)),_b}var gN;function Gz(){return gN||(gN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZX(),n=MS(),r=Hz(),i=Fz(),o=JX();function l(p,m){return u(p,void 0,p,new Map,m)}function u(p,m,y,g=new Map,x=void 0){const w=x==null?void 0:x(p,m,y,g);if(w!==void 0)return w;if(i.isPrimitive(p))return p;if(g.has(p))return g.get(p);if(Array.isArray(p)){const S=new Array(p.length);g.set(p,S);for(let O=0;O<p.length;O++)S[O]=u(p[O],O,y,g,x);return Object.hasOwn(p,"index")&&(S.index=p.index),Object.hasOwn(p,"input")&&(S.input=p.input),S}if(p instanceof Date)return new Date(p.getTime());if(p instanceof RegExp){const S=new RegExp(p.source,p.flags);return S.lastIndex=p.lastIndex,S}if(p instanceof Map){const S=new Map;g.set(p,S);for(const[O,_]of p)S.set(O,u(_,O,y,g,x));return S}if(p instanceof Set){const S=new Set;g.set(p,S);for(const O of p)S.add(u(O,void 0,y,g,x));return S}if(typeof Buffer<"u"&&Buffer.isBuffer(p))return p.subarray();if(o.isTypedArray(p)){const S=new(Object.getPrototypeOf(p)).constructor(p.length);g.set(p,S);for(let O=0;O<p.length;O++)S[O]=u(p[O],O,y,g,x);return S}if(p instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&p instanceof SharedArrayBuffer)return p.slice(0);if(p instanceof DataView){const S=new DataView(p.buffer.slice(0),p.byteOffset,p.byteLength);return g.set(p,S),f(S,p,y,g,x),S}if(typeof File<"u"&&p instanceof File){const S=new File([p],p.name,{type:p.type});return g.set(p,S),f(S,p,y,g,x),S}if(typeof Blob<"u"&&p instanceof Blob){const S=new Blob([p],{type:p.type});return g.set(p,S),f(S,p,y,g,x),S}if(p instanceof Error){const S=structuredClone(p);return g.set(p,S),S.message=p.message,S.name=p.name,S.stack=p.stack,S.cause=p.cause,S.constructor=p.constructor,f(S,p,y,g,x),S}if(p instanceof Boolean){const S=new Boolean(p.valueOf());return g.set(p,S),f(S,p,y,g,x),S}if(p instanceof Number){const S=new Number(p.valueOf());return g.set(p,S),f(S,p,y,g,x),S}if(p instanceof String){const S=new String(p.valueOf());return g.set(p,S),f(S,p,y,g,x),S}if(typeof p=="object"&&d(p)){const S=Object.create(Object.getPrototypeOf(p));return g.set(p,S),f(S,p,y,g,x),S}return p}function f(p,m,y=p,g,x){const w=[...Object.keys(m),...t.getSymbols(m)];for(let S=0;S<w.length;S++){const O=w[S],_=Object.getOwnPropertyDescriptor(p,O);(_==null||_.writable)&&(p[O]=u(m[O],O,y,g,x))}}function d(p){switch(n.getTag(p)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=l,e.cloneDeepWithImpl=u,e.copyProperties=f})(Eb)),Eb}var bN;function eQ(){return bN||(bN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gz();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(Sb)),Sb}var xN;function tQ(){return xN||(xN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$z(),n=eQ();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(yb)),yb}var Cb={},kb={},jb={},wN;function nQ(){return wN||(wN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gz(),n=MS(),r=Hz();function i(o,l){return t.cloneDeepWith(o,(u,f,d,p)=>{const m=l==null?void 0:l(u,f,d,p);if(m!==void 0)return m;if(typeof o=="object"){if(n.getTag(o)===r.objectTag&&typeof o.constructor!="function"){const y={};return p.set(o,y),t.copyProperties(y,o,d,p),y}switch(Object.prototype.toString.call(o)){case r.numberTag:case r.stringTag:case r.booleanTag:{const y=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(y,o),y}case r.argumentsTag:{const y={};return t.copyProperties(y,o),y.length=o.length,y[Symbol.iterator]=o[Symbol.iterator],y}default:return}}})}e.cloneDeepWith=i})(jb)),jb}var SN;function rQ(){return SN||(SN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nQ();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(kb)),kb}var Nb={},Mb={},EN;function Kz(){return EN||(EN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Mb)),Mb}var Pb={},ON;function iQ(){return ON||(ON=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=MS();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Pb)),Pb}var AN;function aQ(){return AN||(AN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Mz(),n=Kz(),r=iQ(),i=kS();function o(l,u){let f;if(Array.isArray(u)?f=u:typeof u=="string"&&t.isDeepKey(u)&&(l==null?void 0:l[u])==null?f=i.toPath(u):f=[u],f.length===0)return!1;let d=l;for(let p=0;p<f.length;p++){const m=f[p];if((d==null||!Object.hasOwn(d,m))&&!((Array.isArray(d)||r.isArguments(d))&&n.isIndex(m)&&m<d.length))return!1;d=d[m]}return!0}e.has=o})(Nb)),Nb}var TN;function oQ(){return TN||(TN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$z(),n=CS(),r=rQ(),i=jS(),o=aQ();function l(u,f){switch(typeof u){case"object":{Object.is(u==null?void 0:u.valueOf(),-0)&&(u="-0");break}case"number":{u=n.toKey(u);break}}return f=r.cloneDeep(f),function(d){const p=i.get(d,u);return p===void 0?o.has(d,u):f===void 0?p===void 0:t.isMatch(p,f)}}e.matchesProperty=l})(Cb)),Cb}var _N;function sQ(){return _N||(_N=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bz(),n=XX(),r=tQ(),i=oQ();function o(l){if(l==null)return t.identity;switch(typeof l){case"function":return l;case"object":return Array.isArray(l)&&l.length===2?i.matchesProperty(l[0],l[1]):r.matches(l);case"string":case"symbol":case"number":return n.property(l)}}e.iteratee=o})(pb)),pb}var CN;function lQ(){return CN||(CN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=HX(),n=GX(),r=Bz(),i=WX(),o=sQ();function l(u,f=r.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),n.ary(o.iteratee(f),1)):[]}e.uniqBy=l})(ob)),ob}var Db,kN;function uQ(){return kN||(kN=1,Db=lQ().uniqBy),Db}var cQ=uQ();const jN=mo(cQ);function fQ(e,t,n){return t===!0?jN(e,n):typeof t=="function"?jN(e,t):e}var Rb={exports:{}},Ib={},Lb={exports:{}},zb={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var NN;function dQ(){if(NN)return zb;NN=1;var e=pu();function t(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function u(m,y){var g=y(),x=r({inst:{value:g,getSnapshot:y}}),w=x[0].inst,S=x[1];return o(function(){w.value=g,w.getSnapshot=y,f(w)&&S({inst:w})},[m,g,y]),i(function(){return f(w)&&S({inst:w}),m(function(){f(w)&&S({inst:w})})},[m]),l(g),g}function f(m){var y=m.getSnapshot;m=m.value;try{var g=y();return!n(m,g)}catch{return!0}}function d(m,y){return y()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:u;return zb.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,zb}var MN;function hQ(){return MN||(MN=1,Lb.exports=dQ()),Lb.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var PN;function pQ(){if(PN)return Ib;PN=1;var e=pu(),t=hQ();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,u=e.useMemo,f=e.useDebugValue;return Ib.useSyncExternalStoreWithSelector=function(d,p,m,y,g){var x=o(null);if(x.current===null){var w={hasValue:!1,value:null};x.current=w}else w=x.current;x=u(function(){function O(M){if(!_){if(_=!0,C=M,M=y(M),g!==void 0&&w.hasValue){var R=w.value;if(g(R,M))return k=R}return k=M}if(R=k,r(C,M))return R;var P=y(M);return g!==void 0&&g(R,P)?(C=M,R):(C=M,k=P)}var _=!1,C,k,N=m===void 0?null:m;return[function(){return O(p())},N===null?void 0:function(){return O(N())}]},[p,m,y,g]);var S=i(d,x[0],x[1]);return l(function(){w.hasValue=!0,w.value=S},[S]),f(S),S},Ib}var DN;function mQ(){return DN||(DN=1,Rb.exports=pQ()),Rb.exports}var yQ=mQ(),PS=E.createContext(null),vQ=e=>e,mt=()=>{var e=E.useContext(PS);return e?e.store.dispatch:vQ},vp=()=>{},gQ=()=>vp,bQ=(e,t)=>e===t;function Ae(e){var t=E.useContext(PS),n=E.useMemo(()=>t?r=>{if(r!=null)return e(r)}:vp,[t,e]);return yQ.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:gQ,t?t.store.getState:vp,t?t.store.getState:vp,n,bQ)}function xQ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function wQ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function SQ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var RN=e=>Array.isArray(e)?e:[e];function EQ(e){const t=Array.isArray(e[0])?e[0]:e;return SQ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function OQ(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var AQ=class{constructor(e){this.value=e}deref(){return this.value}},TQ=typeof WeakRef<"u"?WeakRef:AQ,_Q=0,IN=1;function Ih(){return{s:_Q,v:void 0,o:null,p:null}}function Yz(e,t={}){let n=Ih();const{resultEqualityCheck:r}=t;let i,o=0;function l(){var m;let u=n;const{length:f}=arguments;for(let y=0,g=f;y<g;y++){const x=arguments[y];if(typeof x=="function"||typeof x=="object"&&x!==null){let w=u.o;w===null&&(u.o=w=new WeakMap);const S=w.get(x);S===void 0?(u=Ih(),w.set(x,u)):u=S}else{let w=u.p;w===null&&(u.p=w=new Map);const S=w.get(x);S===void 0?(u=Ih(),w.set(x,u)):u=S}}const d=u;let p;if(u.s===IN)p=u.v;else if(p=e.apply(null,arguments),o++,r){const y=((m=i==null?void 0:i.deref)==null?void 0:m.call(i))??i;y!=null&&r(y,p)&&(p=y,o!==0&&o--),i=typeof p=="object"&&p!==null||typeof p=="function"?new TQ(p):p}return d.s=IN,d.v=p,p}return l.clearCache=()=>{n=Ih(),l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}function CQ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,l=0,u,f={},d=i.pop();typeof d=="object"&&(f=d,d=i.pop()),xQ(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const p={...n,...f},{memoize:m,memoizeOptions:y=[],argsMemoize:g=Yz,argsMemoizeOptions:x=[]}=p,w=RN(y),S=RN(x),O=EQ(i),_=m(function(){return o++,d.apply(null,arguments)},...w),C=g(function(){l++;const N=OQ(O,arguments);return u=_.apply(null,N),u},...S);return Object.assign(C,{resultFunc:d,memoizedResultFunc:_,dependencies:O,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>u,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:m,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var $=CQ(Yz),kQ=Object.assign((e,t=$)=>{wQ(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((l,u,f)=>(l[n[f]]=u,l),{}))},{withTypes:()=>kQ}),Bb={},Vb={},Ub={},LN;function jQ(){return LN||(LN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const l=t(r),u=t(i);if(l===u&&l===0){if(r<i)return o==="desc"?1:-1;if(r>i)return o==="desc"?-1:1}return o==="desc"?u-l:l-u}return 0};e.compareValues=n})(Ub)),Ub}var Fb={},qb={},zN;function Wz(){return zN||(zN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(qb)),qb}var BN;function NQ(){return BN||(BN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wz(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,l){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||l!=null&&Object.hasOwn(l,o)}e.isKey=i})(Fb)),Fb}var VN;function MQ(){return VN||(VN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jQ(),n=NQ(),r=kS();function i(o,l,u,f){if(o==null)return[];u=f?void 0:u,Array.isArray(o)||(o=Object.values(o)),Array.isArray(l)||(l=l==null?[null]:[l]),l.length===0&&(l=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(g=>String(g));const d=(g,x)=>{let w=g;for(let S=0;S<x.length&&w!=null;++S)w=w[x[S]];return w},p=(g,x)=>x==null||g==null?x:typeof g=="object"&&"key"in g?Object.hasOwn(x,g.key)?x[g.key]:d(x,g.path):typeof g=="function"?g(x):Array.isArray(g)?d(x,g):typeof x=="object"?x[g]:x,m=l.map(g=>(Array.isArray(g)&&g.length===1&&(g=g[0]),g==null||typeof g=="function"||Array.isArray(g)||n.isKey(g)?g:{key:g,path:r.toPath(g)}));return o.map(g=>({original:g,criteria:m.map(x=>p(x,g))})).slice().sort((g,x)=>{for(let w=0;w<m.length;w++){const S=t.compareValues(g.criteria[w],x.criteria[w],u[w]);if(S!==0)return S}return 0}).map(g=>g.original)}e.orderBy=i})(Vb)),Vb}var $b={},UN;function PQ(){return UN||(UN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),l=(u,f)=>{for(let d=0;d<u.length;d++){const p=u[d];Array.isArray(p)&&f<o?l(p,f+1):i.push(p)}};return l(n,0),i}e.flatten=t})($b)),$b}var Hb={},FN;function Xz(){return FN||(FN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kz(),n=Vz(),r=Uz(),i=qz();function o(l,u,f){return r.isObject(f)&&(typeof u=="number"&&n.isArrayLike(f)&&t.isIndex(u)&&u<f.length||typeof u=="string"&&u in f)?i.isEqualsSameValueZero(f[u],l):!1}e.isIterateeCall=o})(Hb)),Hb}var qN;function DQ(){return qN||(qN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=MQ(),n=PQ(),r=Xz();function i(o,...l){const u=l.length;return u>1&&r.isIterateeCall(o,l[0],l[1])?l=[]:u>2&&r.isIterateeCall(l[0],l[1],l[2])&&(l=[l[0]]),t.orderBy(o,n.flatten(l),["asc"])}e.sortBy=i})(Bb)),Bb}var Gb,$N;function RQ(){return $N||($N=1,Gb=DQ().sortBy),Gb}var IQ=RQ();const ny=mo(IQ);var Qz=e=>e.legend.settings,LQ=e=>e.legend.size,zQ=e=>e.legend.payload;$([zQ,Qz],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?ny(r,n):r});var Lh=1;function BQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=E.useState({height:0,left:0,top:0,width:0}),r=E.useCallback(i=>{if(i!=null){var o=i.getBoundingClientRect(),l={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(l.height-t.height)>Lh||Math.abs(l.left-t.left)>Lh||Math.abs(l.top-t.top)>Lh||Math.abs(l.width-t.width)>Lh)&&n({height:l.height,left:l.left,top:l.top,width:l.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function Sn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var VQ=typeof Symbol=="function"&&Symbol.observable||"@@observable",HN=VQ,Kb=()=>Math.random().toString(36).substring(7).split("").join("."),UQ={INIT:`@@redux/INIT${Kb()}`,REPLACE:`@@redux/REPLACE${Kb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Kb()}`},$p=UQ;function DS(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Zz(e,t,n){if(typeof e!="function")throw new Error(Sn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Sn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Sn(1));return n(Zz)(e,t)}let r=e,i=t,o=new Map,l=o,u=0,f=!1;function d(){l===o&&(l=new Map,o.forEach((S,O)=>{l.set(O,S)}))}function p(){if(f)throw new Error(Sn(3));return i}function m(S){if(typeof S!="function")throw new Error(Sn(4));if(f)throw new Error(Sn(5));let O=!0;d();const _=u++;return l.set(_,S),function(){if(O){if(f)throw new Error(Sn(6));O=!1,d(),l.delete(_),o=null}}}function y(S){if(!DS(S))throw new Error(Sn(7));if(typeof S.type>"u")throw new Error(Sn(8));if(typeof S.type!="string")throw new Error(Sn(17));if(f)throw new Error(Sn(9));try{f=!0,i=r(i,S)}finally{f=!1}return(o=l).forEach(_=>{_()}),S}function g(S){if(typeof S!="function")throw new Error(Sn(10));r=S,y({type:$p.REPLACE})}function x(){const S=m;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(Sn(11));function _(){const k=O;k.next&&k.next(p())}return _(),{unsubscribe:S(_)}},[HN](){return this}}}return y({type:$p.INIT}),{dispatch:y,subscribe:m,getState:p,replaceReducer:g,[HN]:x}}function FQ(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:$p.INIT})>"u")throw new Error(Sn(12));if(typeof n(void 0,{type:$p.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Sn(13))})}function Jz(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const l=t[o];typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;try{FQ(n)}catch(o){i=o}return function(l={},u){if(i)throw i;let f=!1;const d={};for(let p=0;p<r.length;p++){const m=r[p],y=n[m],g=l[m],x=y(g,u);if(typeof x>"u")throw u&&u.type,new Error(Sn(14));d[m]=x,f=f||x!==g}return f=f||r.length!==Object.keys(l).length,f?d:l}}function Hp(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function qQ(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Sn(15))};const l={getState:i.getState,dispatch:(f,...d)=>o(f,...d)},u=e.map(f=>f(l));return o=Hp(...u)(i.dispatch),{...i,dispatch:o}}}function e3(e){return DS(e)&&"type"in e&&typeof e.type=="string"}var t3=Symbol.for("immer-nothing"),GN=Symbol.for("immer-draftable"),qn=Symbol.for("immer-state");function Qr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var dr=Object,lu=dr.getPrototypeOf,Gp="constructor",ry="prototype",j1="configurable",Kp="enumerable",gp="writable",Sf="value",ua=e=>!!e&&!!e[qn];function ni(e){var t;return e?n3(e)||ay(e)||!!e[GN]||!!((t=e[Gp])!=null&&t[GN])||oy(e)||sy(e):!1}var $Q=dr[ry][Gp].toString(),KN=new WeakMap;function n3(e){if(!e||!RS(e))return!1;const t=lu(e);if(t===null||t===dr[ry])return!0;const n=dr.hasOwnProperty.call(t,Gp)&&t[Gp];if(n===Object)return!0;if(!Nl(n))return!1;let r=KN.get(n);return r===void 0&&(r=Function.toString.call(n),KN.set(n,r)),r===$Q}function iy(e,t,n=!0){Kf(e)===0?(n?Reflect.ownKeys(e):dr.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Kf(e){const t=e[qn];return t?t.type_:ay(e)?1:oy(e)?2:sy(e)?3:0}var YN=(e,t,n=Kf(e))=>n===2?e.has(t):dr[ry].hasOwnProperty.call(e,t),N1=(e,t,n=Kf(e))=>n===2?e.get(t):e[t],Yp=(e,t,n,r=Kf(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function HQ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ay=Array.isArray,oy=e=>e instanceof Map,sy=e=>e instanceof Set,RS=e=>typeof e=="object",Nl=e=>typeof e=="function",Yb=e=>typeof e=="boolean";function GQ(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Zi=e=>e.copy_||e.base_,IS=e=>e.modified_?e.copy_:e.base_;function M1(e,t){if(oy(e))return new Map(e);if(sy(e))return new Set(e);if(ay(e))return Array[ry].slice.call(e);const n=n3(e);if(t===!0||t==="class_only"&&!n){const r=dr.getOwnPropertyDescriptors(e);delete r[qn];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const l=i[o],u=r[l];u[gp]===!1&&(u[gp]=!0,u[j1]=!0),(u.get||u.set)&&(r[l]={[j1]:!0,[gp]:!0,[Kp]:u[Kp],[Sf]:e[l]})}return dr.create(lu(e),r)}else{const r=lu(e);if(r!==null&&n)return{...e};const i=dr.create(r);return dr.assign(i,e)}}function LS(e,t=!1){return ly(e)||ua(e)||!ni(e)||(Kf(e)>1&&dr.defineProperties(e,{set:zh,add:zh,clear:zh,delete:zh}),dr.freeze(e),t&&iy(e,(n,r)=>{LS(r,!0)},!1)),e}function KQ(){Qr(2)}var zh={[Sf]:KQ};function ly(e){return e===null||!RS(e)?!0:dr.isFrozen(e)}var Wp="MapSet",P1="Patches",WN="ArrayMethods",r3={};function Ss(e){const t=r3[e];return t||Qr(0,e),t}var XN=e=>!!r3[e],Ef,i3=()=>Ef,YQ=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:XN(Wp)?Ss(Wp):void 0,arrayMethodsPlugin_:XN(WN)?Ss(WN):void 0});function QN(e,t){t&&(e.patchPlugin_=Ss(P1),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D1(e){R1(e),e.drafts_.forEach(WQ),e.drafts_=null}function R1(e){e===Ef&&(Ef=e.parent_)}var ZN=e=>Ef=YQ(Ef,e);function WQ(e){const t=e[qn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function JN(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[qn].modified_&&(D1(t),Qr(4)),ni(e)&&(e=eM(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[qn].base_,e,t)}else e=eM(t,n);return XQ(t,e,!0),D1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==t3?e:void 0}function eM(e,t){if(ly(t))return t;const n=t[qn];if(!n)return Xp(t,e.handledSet_,e);if(!uy(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);s3(n,e)}return n.copy_}function XQ(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&LS(t,n)}function a3(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var uy=(e,t)=>e.scope_===t,QQ=[];function o3(e,t,n,r){const i=Zi(e),o=e.type_;if(r!==void 0&&N1(i,r,o)===t){Yp(i,r,n,o);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;iy(i,(f,d)=>{if(ua(d)){const p=u.get(d)||[];p.push(f),u.set(d,p)}})}const l=e.draftLocations_.get(t)??QQ;for(const u of l)Yp(i,u,n,o)}function ZQ(e,t,n){e.callbacks_.push(function(i){var u;const o=t;if(!o||!uy(o,i))return;(u=i.mapSetPlugin_)==null||u.fixSetContents(o);const l=IS(o);o3(e,o.draft_??o,l,n),s3(o,i)})}function s3(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const o=i.getPath(e);o&&i.generatePatches_(e,o,t)}a3(e)}}function JQ(e,t,n){const{scope_:r}=e;if(ua(n)){const i=n[qn];uy(i,r)&&i.callbacks_.push(function(){bp(e);const l=IS(i);o3(e,n,l,t)})}else ni(n)&&e.callbacks_.push(function(){const o=Zi(e);e.type_===3?o.has(n)&&Xp(n,r.handledSet_,r):N1(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Xp(N1(e.copy_,t,e.type_),r.handledSet_,r)})}function Xp(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||ua(e)||t.has(e)||!ni(e)||ly(e)||(t.add(e),iy(e,(r,i)=>{if(ua(i)){const o=i[qn];if(uy(o,n)){const l=IS(o);Yp(e,r,l,e.type_),a3(o)}}else ni(i)&&Xp(i,t,n)})),e}function eZ(e,t){const n=ay(e),r={type_:n?1:0,scope_:t?t.scope_:i3(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=Qp;n&&(i=[r],o=Of);const{revoke:l,proxy:u}=Proxy.revocable(i,o);return r.draft_=u,r.revoke_=l,[u,r]}var Qp={get(e,t){if(t===qn)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Zi(e);if(!YN(i,t,e.type_))return tZ(e,i,t);const o=i[t];if(e.finalized_||!ni(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&GQ(t))return o;if(o===Wb(e.base_,t)){bp(e);const l=e.type_===1?+t:t,u=L1(e.scope_,o,e,l);return e.copy_[l]=u}return o},has(e,t){return t in Zi(e)},ownKeys(e){return Reflect.ownKeys(Zi(e))},set(e,t,n){const r=l3(Zi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Wb(Zi(e),t),o=i==null?void 0:i[qn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(HQ(n,i)&&(n!==void 0||YN(e.base_,t,e.type_)))return!0;bp(e),I1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),JQ(e,t,n)),!0},deleteProperty(e,t){return bp(e),Wb(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),I1(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Zi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[gp]:!0,[j1]:e.type_!==1||t!=="length",[Kp]:r[Kp],[Sf]:n[t]}},defineProperty(){Qr(11)},getPrototypeOf(e){return lu(e.base_)},setPrototypeOf(){Qr(12)}},Of={};for(let e in Qp){let t=Qp[e];Of[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Of.deleteProperty=function(e,t){return Of.set.call(this,e,t,void 0)};Of.set=function(e,t,n){return Qp.set.call(this,e[0],t,n,e[0])};function Wb(e,t){const n=e[qn];return(n?Zi(n):e)[t]}function tZ(e,t,n){var i;const r=l3(t,n);return r?Sf in r?r[Sf]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function l3(e,t){if(!(t in e))return;let n=lu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=lu(n)}}function I1(e){e.modified_||(e.modified_=!0,e.parent_&&I1(e.parent_))}function bp(e){e.copy_||(e.assigned_=new Map,e.copy_=M1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var nZ=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,i)=>{if(Nl(n)&&!Nl(r)){const l=r;r=n;const u=this;return function(d=l,...p){return u.produce(d,m=>r.call(this,m,...p))}}Nl(r)||Qr(6),i!==void 0&&!Nl(i)&&Qr(7);let o;if(ni(n)){const l=ZN(this),u=L1(l,n,void 0);let f=!0;try{o=r(u),f=!1}finally{f?D1(l):R1(l)}return QN(l,i),JN(o,l)}else if(!n||!RS(n)){if(o=r(n),o===void 0&&(o=n),o===t3&&(o=void 0),this.autoFreeze_&&LS(o,!0),i){const l=[],u=[];Ss(P1).generateReplacementPatches_(n,o,{patches_:l,inversePatches_:u}),i(l,u)}return o}else Qr(1,n)},this.produceWithPatches=(n,r)=>{if(Nl(n))return(u,...f)=>this.produceWithPatches(u,d=>n(d,...f));let i,o;return[this.produce(n,r,(u,f)=>{i=u,o=f}),i,o]},Yb(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Yb(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Yb(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ni(t)||Qr(8),ua(t)&&(t=Ir(t));const n=ZN(this),r=L1(n,t,void 0);return r[qn].isManual_=!0,R1(n),r}finishDraft(t,n){const r=t&&t[qn];(!r||!r.isManual_)&&Qr(9);const{scope_:i}=r;return QN(i,n),JN(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(n=n.slice(r+1));const i=Ss(P1).applyPatches_;return ua(t)?i(t,n):this.produce(t,o=>i(o,n))}};function L1(e,t,n,r){const[i,o]=oy(t)?Ss(Wp).proxyMap_(t,n):sy(t)?Ss(Wp).proxySet_(t,n):eZ(t,n);return((n==null?void 0:n.scope_)??i3()).drafts_.push(i),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?ZQ(n,o,r):o.callbacks_.push(function(f){var p;(p=f.mapSetPlugin_)==null||p.fixSetContents(o);const{patchPlugin_:d}=f;o.modified_&&d&&d.generatePatches_(o,[],f)}),i}function Ir(e){return ua(e)||Qr(10,e),u3(e)}function u3(e){if(!ni(e)||ly(e))return e;const t=e[qn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=M1(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=M1(e,!0);return iy(n,(i,o)=>{Yp(n,i,u3(o))},r),t&&(t.finalized_=!1),n}var rZ=new nZ,c3=rZ.produce;function f3(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var iZ=f3(),aZ=f3,oZ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hp:Hp.apply(null,arguments)};function vr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(mr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>e3(r)&&r.type===e,n}var d3=class Xc extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Xc.prototype)}static get[Symbol.species](){return Xc}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Xc(...t[0].concat(this)):new Xc(...t.concat(this))}};function tM(e){return ni(e)?c3(e,()=>{}):e}function Bh(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function sZ(e){return typeof e=="boolean"}var lZ=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let l=new d3;return n&&(sZ(n)?l.push(iZ):l.push(aZ(n.extraArgument))),l},h3="RTK_autoBatch",gt=()=>e=>({payload:e,meta:{[h3]:!0}}),nM=e=>t=>{setTimeout(t,e)},p3=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,l=!1;const u=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nM(10):e.type==="callback"?e.queueNotification:nM(e.timeout),d=()=>{l=!1,o&&(o=!1,u.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const m=()=>i&&p(),y=r.subscribe(m);return u.add(p),()=>{y(),u.delete(p)}},dispatch(p){var m;try{return i=!((m=p==null?void 0:p.meta)!=null&&m[h3]),o=!i,o&&(l||(l=!0,f(d))),r.dispatch(p)}finally{i=!0}}})},uZ=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new d3(e);return r&&i.push(p3(typeof r=="object"?r:void 0)),i};function cZ(e){const t=lZ(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:l=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(DS(n))u=Jz(n);else throw new Error(mr(1));let f;typeof r=="function"?f=r(t):f=t();let d=Hp;i&&(d=oZ({trace:!1,...typeof i=="object"&&i}));const p=qQ(...f),m=uZ(p);let y=typeof l=="function"?l(m):m();const g=d(...y);return Zz(u,o,g)}function m3(e){const t={},n=[];let r;const i={addCase(o,l){const u=typeof o=="string"?o:o.type;if(!u)throw new Error(mr(28));if(u in t)throw new Error(mr(29));return t[u]=l,i},addAsyncThunk(o,l){return l.pending&&(t[o.pending.type]=l.pending),l.rejected&&(t[o.rejected.type]=l.rejected),l.fulfilled&&(t[o.fulfilled.type]=l.fulfilled),l.settled&&n.push({matcher:o.settled,reducer:l.settled}),i},addMatcher(o,l){return n.push({matcher:o,reducer:l}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function fZ(e){return typeof e=="function"}function dZ(e,t){let[n,r,i]=m3(t),o;if(fZ(e))o=()=>tM(e());else{const u=tM(e);o=()=>u}function l(u=o(),f){let d=[n[f.type],...r.filter(({matcher:p})=>p(f)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[i]),d.reduce((p,m)=>{if(m)if(ua(p)){const g=m(p,f);return g===void 0?p:g}else{if(ni(p))return c3(p,y=>m(y,f));{const y=m(p,f);if(y===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return p},u)}return l.getInitialState=o,l}var hZ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",pZ=(e=21)=>{let t="",n=e;for(;n--;)t+=hZ[Math.random()*64|0];return t},mZ=Symbol.for("rtk-slice-createasyncthunk");function yZ(e,t){return`${e}/${t}`}function vZ({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[mZ];return function(i){const{name:o,reducerPath:l=o}=i;if(!o)throw new Error(mr(11));const u=(typeof i.reducers=="function"?i.reducers(bZ()):i.reducers)||{},f=Object.keys(u),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(k,N){const M=typeof k=="string"?k:k.type;if(!M)throw new Error(mr(12));if(M in d.sliceCaseReducersByType)throw new Error(mr(13));return d.sliceCaseReducersByType[M]=N,p},addMatcher(k,N){return d.sliceMatchers.push({matcher:k,reducer:N}),p},exposeAction(k,N){return d.actionCreators[k]=N,p},exposeCaseReducer(k,N){return d.sliceCaseReducersByName[k]=N,p}};f.forEach(k=>{const N=u[k],M={reducerName:k,type:yZ(o,k),createNotation:typeof i.reducers=="function"};wZ(N)?EZ(M,N,p,t):xZ(M,N,p)});function m(){const[k={},N=[],M=void 0]=typeof i.extraReducers=="function"?m3(i.extraReducers):[i.extraReducers],R={...k,...d.sliceCaseReducersByType};return dZ(i.initialState,P=>{for(let V in R)P.addCase(V,R[V]);for(let V of d.sliceMatchers)P.addMatcher(V.matcher,V.reducer);for(let V of N)P.addMatcher(V.matcher,V.reducer);M&&P.addDefaultCase(M)})}const y=k=>k,g=new Map,x=new WeakMap;let w;function S(k,N){return w||(w=m()),w(k,N)}function O(){return w||(w=m()),w.getInitialState()}function _(k,N=!1){function M(P){let V=P[k];return typeof V>"u"&&N&&(V=Bh(x,M,O)),V}function R(P=y){const V=Bh(g,N,()=>new WeakMap);return Bh(V,P,()=>{const H={};for(const[Z,F]of Object.entries(i.selectors??{}))H[Z]=gZ(F,P,()=>Bh(x,P,O),N);return H})}return{reducerPath:k,getSelectors:R,get selectors(){return R(M)},selectSlice:M}}const C={name:o,reducer:S,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:O,..._(l),injectInto(k,{reducerPath:N,...M}={}){const R=N??l;return k.inject({reducerPath:R,reducer:S},M),{...C,..._(R,!0)}}};return C}}function gZ(e,t,n,r){function i(o,...l){let u=t(o);return typeof u>"u"&&r&&(u=n()),e(u,...l)}return i.unwrapped=e,i}var Dn=vZ();function bZ(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function xZ({type:e,reducerName:t,createNotation:n},r,i){let o,l;if("reducer"in r){if(n&&!SZ(r))throw new Error(mr(17));o=r.reducer,l=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,l?vr(e,l):vr(e))}function wZ(e){return e._reducerDefinitionType==="asyncThunk"}function SZ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function EZ({type:e,reducerName:t},n,r,i){if(!i)throw new Error(mr(18));const{payloadCreator:o,fulfilled:l,pending:u,rejected:f,settled:d,options:p}=n,m=i(e,o,p);r.exposeAction(t,m),l&&r.addCase(m.fulfilled,l),u&&r.addCase(m.pending,u),f&&r.addCase(m.rejected,f),d&&r.addMatcher(m.settled,d),r.exposeCaseReducer(t,{fulfilled:l||Vh,pending:u||Vh,rejected:f||Vh,settled:d||Vh})}function Vh(){}var OZ="task",y3="listener",v3="completed",zS="cancelled",AZ=`task-${zS}`,TZ=`task-${v3}`,z1=`${y3}-${zS}`,_Z=`${y3}-${v3}`,cy=class{constructor(e){X(this,"name","TaskAbortError");X(this,"message");this.code=e,this.message=`${OZ} ${zS} (reason: ${e})`}},BS=(e,t)=>{if(typeof e!="function")throw new TypeError(mr(32))},Zp=()=>{},g3=(e,t=Zp)=>(e.catch(t),e),b3=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),ps=e=>{if(e.aborted)throw new cy(e.reason)};function x3(e,t){let n=Zp;return new Promise((r,i)=>{const o=()=>i(new cy(e.reason));if(e.aborted){o();return}n=b3(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Zp})}var CZ=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof cy?"cancelled":"rejected",error:n}}finally{t==null||t()}},Jp=e=>t=>g3(x3(e,t).then(n=>(ps(e),n))),w3=e=>{const t=Jp(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Kl}=Object,rM={},fy="listenerMiddleware",kZ=(e,t)=>{const n=r=>b3(e,()=>r.abort(e.reason));return(r,i)=>{BS(r);const o=new AbortController;n(o);const l=CZ(async()=>{ps(e),ps(o.signal);const u=await r({pause:Jp(o.signal),delay:w3(o.signal),signal:o.signal});return ps(o.signal),u},()=>o.abort(TZ));return i!=null&&i.autoJoin&&t.push(l.catch(Zp)),{result:Jp(e)(l),cancel(){o.abort(AZ)}}}},jZ=(e,t)=>{const n=async(r,i)=>{ps(t);let o=()=>{};const u=[new Promise((f,d)=>{let p=e({predicate:r,effect:(m,y)=>{y.unsubscribe(),f([m,y.getState(),y.getOriginalState()])}});o=()=>{p(),d()}})];i!=null&&u.push(new Promise(f=>setTimeout(f,i,null)));try{const f=await x3(t,Promise.race(u));return ps(t),f}finally{o()}};return(r,i)=>g3(n(r,i))},S3=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=vr(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(mr(21));return BS(o),{predicate:i,type:t,effect:o}},E3=Kl(e=>{const{type:t,predicate:n,effect:r}=S3(e);return{id:pZ(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(mr(22))}}},{withTypes:()=>E3}),iM=(e,t)=>{const{type:n,effect:r,predicate:i}=S3(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},B1=e=>{e.pending.forEach(t=>{t.abort(z1)})},NZ=(e,t)=>()=>{for(const n of t.keys())B1(n);e.clear()},aM=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},O3=Kl(vr(`${fy}/add`),{withTypes:()=>O3}),MZ=vr(`${fy}/removeAll`),A3=Kl(vr(`${fy}/remove`),{withTypes:()=>A3}),PZ=(...e)=>{console.error(`${fy}/error`,...e)},Yf=(e={})=>{const t=new Map,n=new Map,r=g=>{const x=n.get(g)??0;n.set(g,x+1)},i=g=>{const x=n.get(g)??1;x===1?n.delete(g):n.set(g,x-1)},{extra:o,onError:l=PZ}=e;BS(l);const u=g=>(g.unsubscribe=()=>t.delete(g.id),t.set(g.id,g),x=>{g.unsubscribe(),x!=null&&x.cancelActive&&B1(g)}),f=g=>{const x=iM(t,g)??E3(g);return u(x)};Kl(f,{withTypes:()=>f});const d=g=>{const x=iM(t,g);return x&&(x.unsubscribe(),g.cancelActive&&B1(x)),!!x};Kl(d,{withTypes:()=>d});const p=async(g,x,w,S)=>{const O=new AbortController,_=jZ(f,O.signal),C=[];try{g.pending.add(O),r(g),await Promise.resolve(g.effect(x,Kl({},w,{getOriginalState:S,condition:(k,N)=>_(k,N).then(Boolean),take:_,delay:w3(O.signal),pause:Jp(O.signal),extra:o,signal:O.signal,fork:kZ(O.signal,C),unsubscribe:g.unsubscribe,subscribe:()=>{t.set(g.id,g)},cancelActiveListeners:()=>{g.pending.forEach((k,N,M)=>{k!==O&&(k.abort(z1),M.delete(k))})},cancel:()=>{O.abort(z1),g.pending.delete(O)},throwIfCancelled:()=>{ps(O.signal)}})))}catch(k){k instanceof cy||aM(l,k,{raisedBy:"effect"})}finally{await Promise.all(C),O.abort(_Z),i(g),g.pending.delete(O)}},m=NZ(t,n);return{middleware:g=>x=>w=>{if(!e3(w))return x(w);if(O3.match(w))return f(w.payload);if(MZ.match(w)){m();return}if(A3.match(w))return d(w.payload);let S=g.getState();const O=()=>{if(S===rM)throw new Error(mr(23));return S};let _;try{if(_=x(w),t.size>0){const C=g.getState(),k=Array.from(t.values());for(const N of k){let M=!1;try{M=N.predicate(w,C,S)}catch(R){M=!1,aM(l,R,{raisedBy:"predicate"})}M&&p(N,w,g,O)}}}finally{S=rM}return _},startListening:f,stopListening:d,clearListeners:m}};function mr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var DZ={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},T3=Dn({name:"chartLayout",initialState:DZ,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:RZ,setLayout:IZ,setChartSize:LZ,setScale:zZ}=T3.actions,BZ=T3.reducer;function _3(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function He(e){return Number.isFinite(e)}function Ti(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oM(Object(n),!0).forEach(function(r){VZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VZ(e,t,n){return(t=UZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UZ(e){var t=FZ(e,"string");return typeof t=="symbol"?t:t+""}function FZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function St(e,t,n){return dn(e)||dn(t)?n:Ai(t)?xs(e,t,n):typeof t=="function"?t(e):n}var qZ=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:l,layout:u}=t;if((u==="vertical"||u==="horizontal"&&l==="middle")&&o!=="center"&&xe(e[o]))return Vl(Vl({},e),{},{[o]:e[o]+(r||0)});if((u==="horizontal"||u==="vertical"&&o==="center")&&l!=="middle"&&xe(e[l]))return Vl(Vl({},e),{},{[l]:e[l]+(i||0)})}return e},ki=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",C3=(e,t,n,r)=>{if(r)return e.map(u=>u.coordinate);var i,o,l=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===n&&(o=!0),u.coordinate));return i||l.push(t),o||l.push(n),l},k3=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:o,scale:l,realScaleType:u,isCategorical:f,categoricalDomain:d,tickCount:p,ticks:m,niceTicks:y,axisType:g}=e;if(!l)return null;var x=u==="scaleBand"&&l.bandwidth?l.bandwidth()/2:2,w=i==="category"&&l.bandwidth?l.bandwidth()/x:0;if(w=g==="angleAxis"&&o&&o.length>=2?Mn(o[0]-o[1])*2*w:w,m||y){var S=(m||y||[]).map((O,_)=>{var C=r?r.indexOf(O):O,k=l.map(C);return He(k)?{coordinate:k+w,value:O,offset:w,index:_}:null}).filter(Zn);return S}return f&&d?d.map((O,_)=>{var C=l.map(O);return He(C)?{coordinate:C+w,value:O,index:_,offset:w}:null}).filter(Zn):l.ticks&&p!=null?l.ticks(p).map((O,_)=>{var C=l.map(O);return He(C)?{coordinate:C+w,value:O,index:_,offset:w}:null}).filter(Zn):l.domain().map((O,_)=>{var C=l.map(O);return He(C)?{coordinate:C+w,value:r?r[O]:O,index:_,offset:w}:null}).filter(Zn)},$Z=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var o=0,l=0,u=0;u<n;++u){var f=e[u],d=f==null?void 0:f[i];if(d!=null){var p=d[1],m=d[0],y=Oi(p)?m:p;y>=0?(d[0]=o,o+=y,d[1]=o):(d[0]=l,l+=y,d[1]=l)}}}},HZ=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var o=0,l=0;l<n;++l){var u=e[l],f=u==null?void 0:u[i];if(f!=null){var d=Oi(f[1])?f[0]:f[1];d>=0?(f[0]=o,o+=d,f[1]=o):(f[0]=0,f[1]=0)}}}},GZ={sign:$Z,expand:wX,none:bs,silhouette:SX,wiggle:EX,positive:HZ},KZ=(e,t,n)=>{var r,i=(r=GZ[n])!==null&&r!==void 0?r:bs,o=xX().keys(t).value((u,f)=>Number(St(u,f,0))).order(C1).offset(i),l=o(e);return l.forEach((u,f)=>{u.forEach((d,p)=>{var m=St(e[p],t[f],0);Array.isArray(m)&&m.length===2&&xe(m[0])&&xe(m[1])&&(d[0]=m[0],d[1]=m[1])})}),l};function YZ(e){return e==null?void 0:String(e)}function sM(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:o,dataKey:l}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!dn(i[t.dataKey])){var u=Dz(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n!=null&&n[o]?n[o].coordinate+r/2:null}var f=St(i,dn(l)?t.dataKey:l),d=t.scale.map(f);return xe(d)?d:null}var WZ=e=>{var t=e.flat(2).filter(xe);return[Math.min(...t),Math.max(...t)]},XZ=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],QZ=(e,t,n)=>{if(e!=null)return XZ(Object.keys(e).reduce((r,i)=>{var o=e[i];if(!o)return r;var{stackedData:l}=o,u=l.reduce((f,d)=>{var p=_3(d,t,n),m=WZ(p);return!He(m[0])||!He(m[1])?f:[Math.min(f[0],m[0]),Math.max(f[1],m[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]))},lM=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uM=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,em=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=ny(t,p=>p.coordinate),o=1/0,l=1,u=i.length;l<u;l++){var f=i[l],d=i[l-1];o=Math.min(((f==null?void 0:f.coordinate)||0)-((d==null?void 0:d.coordinate)||0),o)}return o===1/0?0:o}return n?void 0:0};function cM(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:o}=e;return Vl(Vl({},t),{},{dataKey:n,payload:r,value:i,name:o})}function dy(e,t){if(e)return String(e);if(typeof t=="string")return t}var ZZ=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},JZ=(e,t)=>t==="centric"?e.angle:e.radius,pa=e=>e.layout.width,ma=e=>e.layout.height,eJ=e=>e.layout.scale,j3=e=>e.layout.margin,hy=$(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),py=$(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),N3="data-recharts-item-index",M3="data-recharts-item-id",Wf=60;function fM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fM(Object(n),!0).forEach(function(r){tJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tJ(e,t,n){return(t=nJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nJ(e){var t=rJ(e,"string");return typeof t=="symbol"?t:t+""}function rJ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iJ=e=>e.brush.height;function aJ(e){var t=py(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:Wf;return n+i}return n},0)}function oJ(e){var t=py(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:Wf;return n+i}return n},0)}function sJ(e){var t=hy(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function lJ(e){var t=hy(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var hn=$([pa,ma,j3,iJ,aJ,oJ,sJ,lJ,Qz,LQ],(e,t,n,r,i,o,l,u,f,d)=>{var p={left:(n.left||0)+i,right:(n.right||0)+o},m={top:(n.top||0)+l,bottom:(n.bottom||0)+u},y=Uh(Uh({},m),p),g=y.bottom;y.bottom+=r,y=qZ(y,f,d);var x=e-y.left-y.right,w=t-y.top-y.bottom;return Uh(Uh({brushBottom:g},y),{},{width:Math.max(x,0),height:Math.max(w,0)})}),uJ=$(hn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),P3=$(pa,ma,(e,t)=>({x:0,y:0,width:e,height:t})),cJ=E.createContext(null),tr=()=>E.useContext(cJ)!=null,my=e=>e.brush,yy=$([my,hn,j3],(e,t,n)=>({height:e.height,x:xe(e.x)?e.x:t.left,y:xe(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:xe(e.width)?e.width:t.width})),Xb={},Qb={},Zb={},dM;function fJ(){return dM||(dM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let l,u=null;const f=o!=null&&o.includes("leading"),d=o==null||o.includes("trailing"),p=()=>{u!==null&&(n.apply(l,u),l=void 0,u=null)},m=()=>{d&&p(),w()};let y=null;const g=()=>{y!=null&&clearTimeout(y),y=setTimeout(()=>{y=null,m()},r)},x=()=>{y!==null&&(clearTimeout(y),y=null)},w=()=>{x(),l=void 0,u=null},S=()=>{p()},O=function(..._){if(i!=null&&i.aborted)return;l=this,u=_;const C=y==null;g(),f&&C&&p()};return O.schedule=g,O.cancel=w,O.flush=S,i==null||i.addEventListener("abort",w,{once:!0}),O}e.debounce=t})(Zb)),Zb}var hM;function dJ(){return hM||(hM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fJ();function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:l=!1,trailing:u=!0,maxWait:f}=o,d=Array(2);l&&(d[0]="leading"),u&&(d[1]="trailing");let p,m=null;const y=t.debounce(function(...w){p=r.apply(this,w),m=null},i,{edges:d}),g=function(...w){return f!=null&&(m===null&&(m=Date.now()),Date.now()-m>=f)?(p=r.apply(this,w),m=Date.now(),y.cancel(),y.schedule(),p):(y.apply(this,w),p)},x=()=>(y.flush(),p);return g.cancel=y.cancel,g.flush=x,g}e.debounce=n})(Qb)),Qb}var pM;function hJ(){return pM||(pM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dJ();function n(r,i=0,o={}){const{leading:l=!0,trailing:u=!0}=o;return t.debounce(r,i,{leading:l,maxWait:i,trailing:u})}e.throttle=n})(Xb)),Xb}var Jb,mM;function pJ(){return mM||(mM=1,Jb=hJ().throttle),Jb}var mJ=pJ();const yJ=mo(mJ);var tm=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;console.warn(n.replace(/%s/g,()=>i[l++]))}},vi={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},D3=(e,t,n)=>{var{width:r=vi.width,height:i=vi.height,aspect:o,maxHeight:l}=n,u=ws(r)?e:Number(r),f=ws(i)?t:Number(i);return o&&o>0&&(u?f=u/o:f&&(u=f*o),l&&f!=null&&f>l&&(f=l)),{calculatedWidth:u,calculatedHeight:f}},vJ={width:0,height:0,overflow:"visible"},gJ={width:0,overflowX:"visible"},bJ={height:0,overflowY:"visible"},xJ={},wJ=e=>{var{width:t,height:n}=e,r=ws(t),i=ws(n);return r&&i?vJ:r?gJ:i?bJ:xJ};function SJ(e){var{width:t,height:n,aspect:r}=e,i=t,o=n;return i===void 0&&o===void 0?(i=vi.width,o=vi.height):i===void 0?i=r&&r>0?void 0:vi.width:o===void 0&&(o=r&&r>0?void 0:vi.height),{width:i,height:o}}function V1(){return V1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V1.apply(null,arguments)}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yM(Object(n),!0).forEach(function(r){EJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EJ(e,t,n){return(t=OJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OJ(e){var t=AJ(e,"string");return typeof t=="symbol"?t:t+""}function AJ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var R3=E.createContext(vi.initialDimension);function TJ(e){return Ti(e.width)&&Ti(e.height)}function I3(e){var{children:t,width:n,height:r}=e,i=E.useMemo(()=>({width:n,height:r}),[n,r]);return TJ(i)?E.createElement(R3.Provider,{value:i},t):null}var VS=()=>E.useContext(R3),_J=E.forwardRef((e,t)=>{var{aspect:n,initialDimension:r=vi.initialDimension,width:i,height:o,minWidth:l=vi.minWidth,minHeight:u,maxHeight:f,children:d,debounce:p=vi.debounce,id:m,className:y,onResize:g,style:x={}}=e,w=E.useRef(null),S=E.useRef();S.current=g,E.useImperativeHandle(t,()=>w.current);var[O,_]=E.useState({containerWidth:r.width,containerHeight:r.height}),C=E.useCallback((P,V)=>{_(H=>{var Z=Math.round(P),F=Math.round(V);return H.containerWidth===Z&&H.containerHeight===F?H:{containerWidth:Z,containerHeight:F}})},[]);E.useEffect(()=>{if(w.current==null||typeof ResizeObserver>"u")return _s;var P=F=>{var he,ne=F[0];if(ne!=null){var{width:ee,height:D}=ne.contentRect;C(ee,D),(he=S.current)===null||he===void 0||he.call(S,ee,D)}};p>0&&(P=yJ(P,p,{trailing:!0,leading:!1}));var V=new ResizeObserver(P),{width:H,height:Z}=w.current.getBoundingClientRect();return C(H,Z),V.observe(w.current),()=>{V.disconnect()}},[C,p]);var{containerWidth:k,containerHeight:N}=O;tm(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:M,calculatedHeight:R}=D3(k,N,{width:i,height:o,aspect:n,maxHeight:f});return tm(M!=null&&M>0||R!=null&&R>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,M,R,i,o,l,u,n),E.createElement("div",{id:m?"".concat(m):void 0,className:tt("recharts-responsive-container",y),style:vM(vM({},x),{},{width:i,height:o,minWidth:l,minHeight:u,maxHeight:f}),ref:w},E.createElement("div",{style:wJ({width:i,height:o})},E.createElement(I3,{width:M,height:R},d)))}),U1=E.forwardRef((e,t)=>{var n=VS();if(Ti(n.width)&&Ti(n.height))return e.children;var{width:r,height:i}=SJ({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:l}=D3(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return xe(o)&&xe(l)?E.createElement(I3,{width:o,height:l},e.children):E.createElement(_J,V1({},e,{width:r,height:i,ref:t}))});function US(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var vy=()=>{var e,t=tr(),n=Ae(uJ),r=Ae(yy),i=(e=Ae(my))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},CJ={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},L3=()=>{var e;return(e=Ae(hn))!==null&&e!==void 0?e:CJ},z3=()=>Ae(pa),B3=()=>Ae(ma),dt=e=>e.layout.layoutType,wu=()=>Ae(dt),FS=()=>{var e=wu();if(e==="horizontal"||e==="vertical")return e},V3=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},kJ=()=>{var e=wu();return e!==void 0},Xf=e=>{var t=mt(),n=tr(),{width:r,height:i}=e,o=VS(),l=r,u=i;return o&&(l=o.width>0?o.width:r,u=o.height>0?o.height:i),E.useEffect(()=>{!n&&Ti(l)&&Ti(u)&&t(LZ({width:l,height:u}))},[t,n,l,u]),null},U3=Symbol.for("immer-nothing"),gM=Symbol.for("immer-draftable"),gr=Symbol.for("immer-state");function Zr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Af=Object.getPrototypeOf;function uu(e){return!!e&&!!e[gr]}function Es(e){var t;return e?F3(e)||Array.isArray(e)||!!e[gM]||!!((t=e.constructor)!=null&&t[gM])||Qf(e)||by(e):!1}var jJ=Object.prototype.constructor.toString(),bM=new WeakMap;function F3(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=bM.get(n);return r===void 0&&(r=Function.toString.call(n),bM.set(n,r)),r===jJ}function nm(e,t,n=!0){gy(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function gy(e){const t=e[gr];return t?t.type_:Array.isArray(e)?1:Qf(e)?2:by(e)?3:0}function F1(e,t){return gy(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function q3(e,t,n){const r=gy(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function NJ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Qf(e){return e instanceof Map}function by(e){return e instanceof Set}function Qo(e){return e.copy_||e.base_}function q1(e,t){if(Qf(e))return new Map(e);if(by(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=F3(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[gr];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const l=i[o],u=r[l];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[l]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[l]})}return Object.create(Af(e),r)}else{const r=Af(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function qS(e,t=!1){return xy(e)||uu(e)||!Es(e)||(gy(e)>1&&Object.defineProperties(e,{set:Fh,add:Fh,clear:Fh,delete:Fh}),Object.freeze(e),t&&Object.values(e).forEach(n=>qS(n,!0))),e}function MJ(){Zr(2)}var Fh={value:MJ};function xy(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var PJ={};function Os(e){const t=PJ[e];return t||Zr(0,e),t}var Tf;function $3(){return Tf}function DJ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function xM(e,t){t&&(Os("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function $1(e){H1(e),e.drafts_.forEach(RJ),e.drafts_=null}function H1(e){e===Tf&&(Tf=e.parent_)}function wM(e){return Tf=DJ(Tf,e)}function RJ(e){const t=e[gr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function SM(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[gr].modified_&&($1(t),Zr(4)),Es(e)&&(e=rm(t,e),t.parent_||im(t,e)),t.patches_&&Os("Patches").generateReplacementPatches_(n[gr].base_,e,t.patches_,t.inversePatches_)):e=rm(t,n,[]),$1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==U3?e:void 0}function rm(e,t,n){if(xy(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[gr];if(!i)return nm(t,(o,l)=>EM(e,i,t,o,l,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return im(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let l=o,u=!1;i.type_===3&&(l=new Set(o),o.clear(),u=!0),nm(l,(f,d)=>EM(e,i,o,f,d,n,u),r),im(e,o,!1),n&&e.patches_&&Os("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function EM(e,t,n,r,i,o,l){if(i==null||typeof i!="object"&&!l)return;const u=xy(i);if(!(u&&!l)){if(uu(i)){const f=o&&t&&t.type_!==3&&!F1(t.assigned_,r)?o.concat(r):void 0,d=rm(e,i,f);if(q3(n,r,d),uu(d))e.canAutoFreeze_=!1;else return}else l&&n.add(i);if(Es(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&u)return;rm(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Qf(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&im(e,i)}}}function im(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qS(t,n)}function IJ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$3(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=$S;n&&(i=[r],o=_f);const{revoke:l,proxy:u}=Proxy.revocable(i,o);return r.draft_=u,r.revoke_=l,u}var $S={get(e,t){if(t===gr)return e;const n=Qo(e);if(!F1(n,t))return LJ(e,n,t);const r=n[t];return e.finalized_||!Es(r)?r:r===ex(e.base_,t)?(tx(e),e.copy_[t]=K1(r,e)):r},has(e,t){return t in Qo(e)},ownKeys(e){return Reflect.ownKeys(Qo(e))},set(e,t,n){const r=H3(Qo(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=ex(Qo(e),t),o=i==null?void 0:i[gr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(NJ(n,i)&&(n!==void 0||F1(e.base_,t)))return!0;tx(e),G1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ex(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,tx(e),G1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Qo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Zr(11)},getPrototypeOf(e){return Af(e.base_)},setPrototypeOf(){Zr(12)}},_f={};nm($S,(e,t)=>{_f[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});_f.deleteProperty=function(e,t){return _f.set.call(this,e,t,void 0)};_f.set=function(e,t,n){return $S.set.call(this,e[0],t,n,e[0])};function ex(e,t){const n=e[gr];return(n?Qo(n):e)[t]}function LJ(e,t,n){var i;const r=H3(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function H3(e,t){if(!(t in e))return;let n=Af(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Af(n)}}function G1(e){e.modified_||(e.modified_=!0,e.parent_&&G1(e.parent_))}function tx(e){e.copy_||(e.copy_=q1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var zJ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const l=this;return function(f=o,...d){return l.produce(f,p=>n.call(this,p,...d))}}typeof n!="function"&&Zr(6),r!==void 0&&typeof r!="function"&&Zr(7);let i;if(Es(t)){const o=wM(this),l=K1(t,void 0);let u=!0;try{i=n(l),u=!1}finally{u?$1(o):H1(o)}return xM(o,r),SM(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===U3&&(i=void 0),this.autoFreeze_&&qS(i,!0),r){const o=[],l=[];Os("Patches").generateReplacementPatches_(t,i,o,l),r(o,l)}return i}else Zr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...u)=>this.produceWithPatches(l,f=>t(f,...u));let r,i;return[this.produce(t,n,(l,u)=>{r=l,i=u}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Es(e)||Zr(8),uu(e)&&(e=BJ(e));const t=wM(this),n=K1(e,void 0);return n[gr].isManual_=!0,H1(t),n}finishDraft(e,t){const n=e&&e[gr];(!n||!n.isManual_)&&Zr(9);const{scope_:r}=n;return xM(r,t),SM(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Os("Patches").applyPatches_;return uu(e)?r(e,t):this.produce(e,i=>r(i,t))}};function K1(e,t){const n=Qf(e)?Os("MapSet").proxyMap_(e,t):by(e)?Os("MapSet").proxySet_(e,t):IJ(e,t);return(t?t.scope_:$3()).drafts_.push(n),n}function BJ(e){return uu(e)||Zr(10,e),G3(e)}function G3(e){if(!Es(e)||xy(e))return e;const t=e[gr];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=q1(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=q1(e,!0);return nm(n,(i,o)=>{q3(n,i,G3(o))},r),t&&(t.finalized_=!1),n}var VJ=new zJ;VJ.produce;var UJ={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},K3=Dn({name:"legend",initialState:UJ,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:gt()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Ir(e).payload.indexOf(n);i>-1&&(e.payload[i]=r)},prepare:gt()},removeLegendPayload:{reducer(e,t){var n=Ir(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:gt()}}}),{setLegendSize:aye,setLegendSettings:oye,addLegendPayload:Y3,replaceLegendPayload:W3,removeLegendPayload:X3}=K3.actions,FJ=K3.reducer,nx={exports:{}},rx={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var OM;function qJ(){if(OM)return rx;OM=1;var e=pu();function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,l=e.useMemo,u=e.useDebugValue;return rx.useSyncExternalStoreWithSelector=function(f,d,p,m,y){var g=i(null);if(g.current===null){var x={hasValue:!1,value:null};g.current=x}else x=g.current;g=l(function(){function S(N){if(!O){if(O=!0,_=N,N=m(N),y!==void 0&&x.hasValue){var M=x.value;if(y(M,N))return C=M}return C=N}if(M=C,n(_,N))return M;var R=m(N);return y!==void 0&&y(M,R)?(_=N,M):(_=N,C=R)}var O=!1,_,C,k=p===void 0?null:p;return[function(){return S(d())},k===null?void 0:function(){return S(k())}]},[d,p,m,y]);var w=r(f,g[0],g[1]);return o(function(){x.hasValue=!0,x.value=w},[w]),u(w),w},rx}var AM;function $J(){return AM||(AM=1,nx.exports=qJ()),nx.exports}$J();function HJ(e){e()}function GJ(){let e=null,t=null;return{clear(){e=null,t=null},notify(){HJ(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var TM={notify(){},get:()=>[]};function KJ(e,t){let n,r=TM,i=0,o=!1;function l(w){p();const S=r.subscribe(w);let O=!1;return()=>{O||(O=!0,S(),m())}}function u(){r.notify()}function f(){x.onStateChange&&x.onStateChange()}function d(){return o}function p(){i++,n||(n=e.subscribe(f),r=GJ())}function m(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=TM)}function y(){o||(o=!0,p())}function g(){o&&(o=!1,m())}const x={addNestedSub:l,notifyNestedSubs:u,handleChangeWrapper:f,isSubscribed:d,trySubscribe:y,tryUnsubscribe:g,getListeners:()=>r};return x}var YJ=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",WJ=YJ(),XJ=()=>typeof navigator<"u"&&navigator.product==="ReactNative",QJ=XJ(),ZJ=()=>WJ||QJ?E.useLayoutEffect:E.useEffect,JJ=ZJ();function _M(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function eee(e,t){if(_M(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!_M(e[n[i]],t[n[i]]))return!1;return!0}var ix=Symbol.for("react-redux-context"),ax=typeof globalThis<"u"?globalThis:{};function tee(){if(!E.createContext)return{};const e=ax[ix]??(ax[ix]=new Map);let t=e.get(E.createContext);return t||(t=E.createContext(null),e.set(E.createContext,t)),t}var nee=tee();function ree(e){const{children:t,context:n,serverState:r,store:i}=e,o=E.useMemo(()=>{const f=KJ(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),l=E.useMemo(()=>i.getState(),[i]);JJ(()=>{const{subscription:f}=o;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),l!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[o,l]);const u=n||nee;return E.createElement(u.Provider,{value:o},t)}var iee=ree,aee=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function oee(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function wy(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(aee.has(r)){if(e[r]==null&&t[r]==null)continue;if(!eee(e[r],t[r]))return!1}else if(!oee(e[r],t[r]))return!1;return!0}function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y1.apply(null,arguments)}function CM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){see(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function see(e,t,n){return(t=lee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lee(e){var t=uee(e,"string");return typeof t=="symbol"?t:t+""}function uee(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cee(e){return Array.isArray(e)&&Ai(e[0])&&Ai(e[1])?e.join(" ~ "):e}var El={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function fee(e,t){return t==null?e:ny(e,t)}var dee=e=>{var{separator:t=El.separator,contentStyle:n,itemStyle:r,labelStyle:i=El.labelStyle,payload:o,formatter:l,itemSorter:u,wrapperClassName:f,labelClassName:d,label:p,labelFormatter:m,accessibilityLayer:y=El.accessibilityLayer}=e,g=()=>{if(o&&o.length){var N={padding:0,margin:0},M=fee(o,u),R=M.map((P,V)=>{if(P.type==="none")return null;var H=P.formatter||l||cee,{value:Z,name:F}=P,he=Z,ne=F;if(H){var ee=H(Z,F,P,V,o);if(Array.isArray(ee))[he,ne]=ee;else if(ee!=null)he=ee;else return null}var D=Nc(Nc({},El.itemStyle),{},{color:P.color||El.itemStyle.color},r);return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(V),style:D},Ai(ne)?E.createElement("span",{className:"recharts-tooltip-item-name"},ne):null,Ai(ne)?E.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,E.createElement("span",{className:"recharts-tooltip-item-value"},he),E.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:N},R)}return null},x=Nc(Nc({},El.contentStyle),n),w=Nc({margin:0},i),S=!dn(p),O=S?p:"",_=tt("recharts-default-tooltip",f),C=tt("recharts-tooltip-label",d);S&&m&&o!==void 0&&o!==null&&(O=m(p,o));var k=y?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",Y1({className:_,style:x},k),E.createElement("p",{className:C,style:w},E.isValidElement(O)?O:"".concat(O)),g())},Mc="recharts-tooltip-wrapper",hee={visibility:"hidden"};function pee(e){var{coordinate:t,translateX:n,translateY:r}=e;return tt(Mc,{["".concat(Mc,"-right")]:xe(n)&&t&&xe(t.x)&&n>=t.x,["".concat(Mc,"-left")]:xe(n)&&t&&xe(t.x)&&n<t.x,["".concat(Mc,"-bottom")]:xe(r)&&t&&xe(t.y)&&r>=t.y,["".concat(Mc,"-top")]:xe(r)&&t&&xe(t.y)&&r<t.y})}function kM(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:i,position:o,reverseDirection:l,tooltipDimension:u,viewBox:f,viewBoxDimension:d}=e;if(o&&xe(o[r]))return o[r];var p=n[r]-u-(i>0?i:0),m=n[r]+i;if(t[r])return l[r]?p:m;var y=f[r];if(y==null)return 0;if(l[r]){var g=p,x=y;return g<x?Math.max(m,y):Math.max(p,y)}if(d==null)return 0;var w=m+u,S=y+d;return w>S?Math.max(p,y):Math.max(m,y)}function mee(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function yee(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:i,position:o,reverseDirection:l,tooltipBox:u,useTranslate3d:f,viewBox:d}=e,p,m,y;return u.height>0&&u.width>0&&n?(m=kM({allowEscapeViewBox:t,coordinate:n,key:"x",offset:i,position:o,reverseDirection:l,tooltipDimension:u.width,viewBox:d,viewBoxDimension:d.width}),y=kM({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:o,reverseDirection:l,tooltipDimension:u.height,viewBox:d,viewBoxDimension:d.height}),p=mee({translateX:m,translateY:y,useTranslate3d:f})):p=hee,{cssProperties:p,cssClasses:pee({translateX:m,translateY:y,coordinate:n})}}var vee=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Zf={isSsr:vee()};function Q3(){var[e,t]=E.useState(()=>Zf.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return E.useEffect(()=>{if(window.matchMedia){var n=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(n.matches)};return n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}}},[]),e}function jM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ol(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jM(Object(n),!0).forEach(function(r){gee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gee(e,t,n){return(t=bee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bee(e){var t=xee(e,"string");return typeof t=="symbol"?t:t+""}function xee(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wee(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function See(e){var t,n,r,i,o,l,u=Q3(),[f,d]=E.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));E.useEffect(()=>{var x=w=>{if(w.key==="Escape"){var S,O,_,C;d({dismissed:!0,dismissedAtCoordinate:{x:(S=(O=e.coordinate)===null||O===void 0?void 0:O.x)!==null&&S!==void 0?S:0,y:(_=(C=e.coordinate)===null||C===void 0?void 0:C.y)!==null&&_!==void 0?_:0}})}};return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),f.dismissed&&(((r=(i=e.coordinate)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)!==f.dismissedAtCoordinate.x||((o=(l=e.coordinate)===null||l===void 0?void 0:l.y)!==null&&o!==void 0?o:0)!==f.dismissedAtCoordinate.y)&&d(Ol(Ol({},f),{},{dismissed:!1}));var{cssClasses:p,cssProperties:m}=yee({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),y=e.hasPortalFromProps?{}:Ol(Ol({transition:wee({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},m),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),g=Ol(Ol({},y),{},{visibility:!f.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return E.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:p,style:g,ref:e.innerRef},e.children)}var Eee=E.memo(See),Z3=()=>{var e;return(e=Ae(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function W1(){return W1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W1.apply(null,arguments)}function NM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function MM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NM(Object(n),!0).forEach(function(r){Oee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oee(e,t,n){return(t=Aee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aee(e){var t=Tee(e,"string");return typeof t=="symbol"?t:t+""}function Tee(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PM={curveBasisClosed:uX,curveBasisOpen:cX,curveBasis:lX,curveBumpX:YW,curveBumpY:WW,curveLinearClosed:fX,curveLinear:ey,curveMonotoneX:dX,curveMonotoneY:hX,curveNatural:pX,curveStep:mX,curveStepAfter:vX,curveStepBefore:yX},am=e=>He(e.x)&&He(e.y),DM=e=>e.base!=null&&am(e.base)&&am(e),Pc=e=>e.x,Dc=e=>e.y,_ee=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Gf(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=PM["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return PM[n]||ey},RM={connectNulls:!1,type:"linear"},Cee=e=>{var{type:t=RM.type,points:n=[],baseLine:r,layout:i,connectNulls:o=RM.connectNulls}=e,l=_ee(t,i),u=o?n.filter(am):n;if(Array.isArray(r)){var f,d=n.map((x,w)=>MM(MM({},x),{},{base:r[w]}));i==="vertical"?f=Rh().y(Dc).x1(Pc).x0(x=>x.base.x):f=Rh().x(Pc).y1(Dc).y0(x=>x.base.y);var p=f.defined(DM).curve(l),m=o?d.filter(DM):d;return p(m)}var y;i==="vertical"&&xe(r)?y=Rh().y(Dc).x1(Pc).x0(r):xe(r)?y=Rh().x(Pc).y1(Dc).y0(r):y=wz().x(Pc).y(Dc);var g=y.defined(am).curve(l);return g(u)},Yl=e=>{var{className:t,points:n,path:r,pathRef:i}=e,o=wu();if((!n||!n.length)&&!r)return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},u=n&&n.length?Cee(l):r;return E.createElement("path",W1({},yr(e),NS(e),{className:tt("recharts-curve",t),d:u===null?void 0:u,ref:i}))},kee=["x","y","top","left","width","height","className"];function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(null,arguments)}function IM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(n),!0).forEach(function(r){Nee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nee(e,t,n){return(t=Mee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mee(e){var t=Pee(e,"string");return typeof t=="symbol"?t:t+""}function Pee(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dee(e,t){if(e==null)return{};var n,r,i=Ree(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ree(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Iee=(e,t,n,r,i,o)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),Lee=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:o=0,height:l=0,className:u}=e,f=Dee(e,kee),d=jee({x:t,y:n,top:r,left:i,width:o,height:l},f);return!xe(t)||!xe(n)||!xe(o)||!xe(l)||!xe(r)||!xe(i)?null:E.createElement("path",X1({},Fn(d),{className:tt("recharts-cross",u),d:Iee(t,n,o,l,r,i)}))};function zee(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function LM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LM(Object(n),!0).forEach(function(r){Bee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bee(e,t,n){return(t=Vee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vee(e){var t=Uee(e,"string");return typeof t=="symbol"?t:t+""}function Uee(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fee=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),J3=(e,t,n)=>e.map(r=>"".concat(Fee(r)," ").concat(t,"ms ").concat(n)).join(","),qee=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),Cf=(e,t)=>Object.keys(t).reduce((n,r)=>zM(zM({},n),{},{[r]:e(r,t[r])}),{});function BM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BM(Object(n),!0).forEach(function(r){$ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ee(e,t,n){return(t=Hee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hee(e){var t=Gee(e,"string");return typeof t=="symbol"?t:t+""}function Gee(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var om=(e,t,n)=>e+(t-e)*n,Q1=e=>{var{from:t,to:n}=e;return t!==n},e5=(e,t,n)=>{var r=Cf((i,o)=>{if(Q1(o)){var[l,u]=e(o.from,o.to,o.velocity);return nn(nn({},o),{},{from:l,velocity:u})}return o},t);return n<1?Cf((i,o)=>Q1(o)&&r[i]!=null?nn(nn({},o),{},{velocity:om(o.velocity,r[i].velocity,n),from:om(o.from,r[i].from,n)}):o,t):e5(e,r,n-1)};function Kee(e,t,n,r,i,o){var l,u=r.reduce((y,g)=>nn(nn({},y),{},{[g]:{from:e[g],velocity:0,to:t[g]}}),{}),f=()=>Cf((y,g)=>g.from,u),d=()=>!Object.values(u).filter(Q1).length,p=null,m=y=>{l||(l=y);var g=y-l,x=g/n.dt;u=e5(n,u,x),i(nn(nn(nn({},e),t),f())),l=y,d()||(p=o.setTimeout(m))};return()=>(p=o.setTimeout(m),()=>{var y;(y=p)===null||y===void 0||y()})}function Yee(e,t,n,r,i,o,l){var u=null,f=i.reduce((m,y)=>{var g=e[y],x=t[y];return g==null||x==null?m:nn(nn({},m),{},{[y]:[g,x]})},{}),d,p=m=>{d||(d=m);var y=(m-d)/r,g=Cf((w,S)=>om(...S,n(y)),f);if(o(nn(nn(nn({},e),t),g)),y<1)u=l.setTimeout(p);else{var x=Cf((w,S)=>om(...S,n(1)),f);o(nn(nn(nn({},e),t),x))}};return()=>(u=l.setTimeout(p),()=>{var m;(m=u)===null||m===void 0||m()})}const Wee=(e,t,n,r,i,o)=>{var l=qee(e,t);return n==null?()=>(i(nn(nn({},e),t)),()=>{}):n.isStepper===!0?Kee(e,t,n,l,i,o):Yee(e,t,n,r,l,i,o)};var sm=1e-4,t5=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],n5=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),VM=(e,t)=>n=>{var r=t5(e,t);return n5(r,n)},Xee=(e,t)=>n=>{var r=t5(e,t),i=[...r.map((o,l)=>o*l).slice(1),0];return n5(i,n)},Qee=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var i=r.map(o=>parseFloat(o));return[i[0],i[1],i[2],i[3]]},Zee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=Qee(n[0]);if(i)return i}}return n.length===4?n:[0,0,1,1]},Jee=(e,t,n,r)=>{var i=VM(e,n),o=VM(t,r),l=Xee(e,n),u=d=>d>1?1:d<0?0:d,f=d=>{for(var p=d>1?1:d,m=p,y=0;y<8;++y){var g=i(m)-p,x=l(m);if(Math.abs(g-p)<sm||x<sm)return o(m);m=u(m-g/x)}return o(m)};return f.isStepper=!1,f},UM=function(){return Jee(...Zee(...arguments))},ete=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,o=(l,u,f)=>{var d=-(l-u)*n,p=f*r,m=f+(d-p)*i/1e3,y=f*i/1e3+l;return Math.abs(y-u)<sm&&Math.abs(m)<sm?[u,0]:[y,m]};return o.isStepper=!0,o.dt=i,o},tte=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return UM(e);case"spring":return ete();default:if(e.split("(")[0]==="cubic-bezier")return UM(e)}return typeof e=="function"?e:null};function nte(e){var t,n=()=>null,r=!1,i=null,o=l=>{if(!r){if(Array.isArray(l)){if(!l.length)return;var u=l,[f,...d]=u;if(typeof f=="number"){i=e.setTimeout(o.bind(null,d),f);return}o(f),i=e.setTimeout(o.bind(null,d));return}typeof l=="string"&&(t=l,n(t)),typeof l=="object"&&(t=l,n(t)),typeof l=="function"&&l()}};return{stop:()=>{r=!0},start:l=>{r=!1,i&&(i(),i=null),o(l)},subscribe:l=>(n=l,()=>{n=()=>null}),getTimeoutController:()=>e}}class rte{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,o=l=>{l-r>=n?t(l):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{i!=null&&cancelAnimationFrame(i)}}}function ite(){return nte(new rte)}var ate=E.createContext(ite);function ote(e,t){var n=E.useContext(ate);return E.useMemo(()=>t??n(e),[e,t,n])}var ste={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},FM={t:0},ox={t:1};function Sy(e){var t=Pn(e,ste),{isActive:n,canBegin:r,duration:i,easing:o,begin:l,onAnimationEnd:u,onAnimationStart:f,children:d}=t,p=Q3(),m=n==="auto"?!Zf.isSsr&&!p:n,y=ote(t.animationId,t.animationManager),[g,x]=E.useState(m?FM:ox),w=E.useRef(null);return E.useEffect(()=>{m||x(ox)},[m]),E.useEffect(()=>{if(!m||!r)return _s;var S=Wee(FM,ox,tte(o),i,x,y.getTimeoutController()),O=()=>{w.current=S()};return y.start([f,l,O,i,u]),()=>{y.stop(),w.current&&w.current(),u()}},[m,r,i,o,l,f,u,y]),d(g.t)}function Ey(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=E.useRef(wf(t)),r=E.useRef(e);return r.current!==e&&(n.current=wf(t),r.current=e),n.current}var lte=["radius"],ute=["radius"],qM,$M,HM,GM,KM,YM,WM,XM,QM,ZM;function JM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function e2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JM(Object(n),!0).forEach(function(r){cte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cte(e,t,n){return(t=fte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fte(e){var t=dte(e,"string");return typeof t=="symbol"?t:t+""}function dte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lm.apply(null,arguments)}function t2(e,t){if(e==null)return{};var n,r,i=hte(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hte(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var n2=(e,t,n,r,i)=>{var o=ao(n),l=ao(r),u=Math.min(Math.abs(o)/2,Math.abs(l)/2),f=l>=0?1:-1,d=o>=0?1:-1,p=l>=0&&o>=0||l<0&&o<0?1:0,m;if(u>0&&Array.isArray(i)){for(var y=[0,0,0,0],g=0,x=4;g<x;g++){var w,S=(w=i[g])!==null&&w!==void 0?w:0;y[g]=S>u?u:S}m=Rt(qM||(qM=fi(["M",",",""])),e,t+f*y[0]),y[0]>0&&(m+=Rt($M||($M=fi(["A ",",",",0,0,",",",",",""])),y[0],y[0],p,e+d*y[0],t)),m+=Rt(HM||(HM=fi(["L ",",",""])),e+n-d*y[1],t),y[1]>0&&(m+=Rt(GM||(GM=fi(["A ",",",",0,0,",`,
        `,",",""])),y[1],y[1],p,e+n,t+f*y[1])),m+=Rt(KM||(KM=fi(["L ",",",""])),e+n,t+r-f*y[2]),y[2]>0&&(m+=Rt(YM||(YM=fi(["A ",",",",0,0,",`,
        `,",",""])),y[2],y[2],p,e+n-d*y[2],t+r)),m+=Rt(WM||(WM=fi(["L ",",",""])),e+d*y[3],t+r),y[3]>0&&(m+=Rt(XM||(XM=fi(["A ",",",",0,0,",`,
        `,",",""])),y[3],y[3],p,e,t+r-f*y[3])),m+="Z"}else if(u>0&&i===+i&&i>0){var O=Math.min(u,i);m=Rt(QM||(QM=fi(["M ",",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",","," Z"])),e,t+f*O,O,O,p,e+d*O,t,e+n-d*O,t,O,O,p,e+n,t+f*O,e+n,t+r-f*O,O,O,p,e+n-d*O,t+r,e+d*O,t+r,O,O,p,e,t+r-f*O)}else m=Rt(ZM||(ZM=fi(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return m},r2={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},r5=e=>{var t=Pn(e,r2),n=E.useRef(null),[r,i]=E.useState(-1);E.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var q=n.current.getTotalLength();q&&i(q)}catch{}},[]);var{x:o,y:l,width:u,height:f,radius:d,className:p}=t,{animationEasing:m,animationDuration:y,animationBegin:g,isAnimationActive:x,isUpdateAnimationActive:w}=t,S=E.useRef(u),O=E.useRef(f),_=E.useRef(o),C=E.useRef(l),k=E.useMemo(()=>({x:o,y:l,width:u,height:f,radius:d}),[o,l,u,f,d]),N=Ey(k,"rectangle-");if(o!==+o||l!==+l||u!==+u||f!==+f||u===0||f===0)return null;var M=tt("recharts-rectangle",p);if(!w){var R=Fn(t),{radius:P}=R,V=t2(R,lte);return E.createElement("path",lm({},V,{x:ao(o),y:ao(l),width:ao(u),height:ao(f),radius:typeof d=="number"?d:void 0,className:M,d:n2(o,l,u,f,d)}))}var H=S.current,Z=O.current,F=_.current,he=C.current,ne="0px ".concat(r===-1?1:r,"px"),ee="".concat(r,"px ").concat(r,"px"),D=J3(["strokeDasharray"],y,typeof m=="string"?m:r2.animationEasing);return E.createElement(Sy,{animationId:N,key:N,canBegin:r>0,duration:y,easing:m,isActive:w,begin:g},q=>{var B=An(H,u,q),ce=An(Z,f,q),Y=An(F,o,q),I=An(he,l,q);n.current&&(S.current=B,O.current=ce,_.current=Y,C.current=I);var Q;x?q>0?Q={transition:D,strokeDasharray:ee}:Q={strokeDasharray:ne}:Q={strokeDasharray:ee};var ue=Fn(t),{radius:fe}=ue,de=t2(ue,ute);return E.createElement("path",lm({},de,{radius:typeof d=="number"?d:void 0,className:M,d:n2(Y,I,B,ce,d),ref:n,style:e2(e2({},Q),t.style)}))})};function i2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function a2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i2(Object(n),!0).forEach(function(r){pte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pte(e,t,n){return(t=mte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mte(e){var t=yte(e,"string");return typeof t=="symbol"?t:t+""}function yte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var um=Math.PI/180,vte=e=>e*180/Math.PI,Kt=(e,t,n,r)=>({x:e+Math.cos(-um*r)*n,y:t+Math.sin(-um*r)*n}),i5=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},gte=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)},bte=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,l=gte({x:n,y:r},{x:i,y:o});if(l<=0)return{radius:l,angle:0};var u=(n-i)/l,f=Math.acos(u);return r>o&&(f=2*Math.PI-f),{radius:l,angle:vte(f),angleInRadian:f}},xte=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},wte=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),o=Math.floor(r/360),l=Math.min(i,o);return e+l*360},Ste=(e,t)=>{var{relativeX:n,relativeY:r}=e,{radius:i,angle:o}=bte({x:n,y:r},t),{innerRadius:l,outerRadius:u}=t;if(i<l||i>u||i===0)return null;var{startAngle:f,endAngle:d}=xte(t),p=o,m;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=f}return m?a2(a2({},t),{},{radius:i,angle:wte(p,t)}):null};function a5(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:o}=e,l=Kt(t,n,r,i),u=Kt(t,n,r,o);return{points:[l,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}var o2,s2,l2,u2,c2,f2,d2;function Z1(){return Z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z1.apply(null,arguments)}function is(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ete=(e,t)=>{var n=Mn(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},qh=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:o,isExternal:l,cornerRadius:u,cornerIsExternal:f}=e,d=u*(l?1:-1)+r,p=Math.asin(u/d)/um,m=f?i:i+o*p,y=Kt(t,n,d,m),g=Kt(t,n,r,m),x=f?i-o*p:i,w=Kt(t,n,d*Math.cos(p*um),x);return{center:y,circleTangency:g,lineTangency:w,theta:p}},o5=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:o,endAngle:l}=e,u=Ete(o,l),f=o+u,d=Kt(t,n,i,o),p=Kt(t,n,i,f),m=Rt(o2||(o2=is(["M ",",",`
    A `,",",`,0,
    `,",",`,
    `,",",`
  `])),d.x,d.y,i,i,+(Math.abs(u)>180),+(o>f),p.x,p.y);if(r>0){var y=Kt(t,n,r,o),g=Kt(t,n,r,f);m+=Rt(s2||(s2=is(["L ",",",`
            A `,",",`,0,
            `,",",`,
            `,","," Z"])),g.x,g.y,r,r,+(Math.abs(u)>180),+(o<=f),y.x,y.y)}else m+=Rt(l2||(l2=is(["L ",","," Z"])),t,n);return m},Ote=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:o,forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:d}=e,p=Mn(d-f),{circleTangency:m,lineTangency:y,theta:g}=qh({cx:t,cy:n,radius:i,angle:f,sign:p,cornerRadius:o,cornerIsExternal:u}),{circleTangency:x,lineTangency:w,theta:S}=qh({cx:t,cy:n,radius:i,angle:d,sign:-p,cornerRadius:o,cornerIsExternal:u}),O=u?Math.abs(f-d):Math.abs(f-d)-g-S;if(O<0)return l?Rt(u2||(u2=is(["M ",",",`
        a`,",",",0,0,1,",`,0
        a`,",",",0,0,1,",`,0
      `])),y.x,y.y,o,o,o*2,o,o,-o*2):o5({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:f,endAngle:d});var _=Rt(c2||(c2=is(["M ",",",`
    A`,",",",0,0,",",",",",`
    A`,",",",0,",",",",",",",`
    A`,",",",0,0,",",",",",`
  `])),y.x,y.y,o,o,+(p<0),m.x,m.y,i,i,+(O>180),+(p<0),x.x,x.y,o,o,+(p<0),w.x,w.y);if(r>0){var{circleTangency:C,lineTangency:k,theta:N}=qh({cx:t,cy:n,radius:r,angle:f,sign:p,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),{circleTangency:M,lineTangency:R,theta:P}=qh({cx:t,cy:n,radius:r,angle:d,sign:-p,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),V=u?Math.abs(f-d):Math.abs(f-d)-N-P;if(V<0&&o===0)return"".concat(_,"L").concat(t,",").concat(n,"Z");_+=Rt(f2||(f2=is(["L",",",`
      A`,",",",0,0,",",",",",`
      A`,",",",0,",",",",",",",`
      A`,",",",0,0,",",",",","Z"])),R.x,R.y,o,o,+(p<0),M.x,M.y,r,r,+(V>180),+(p>0),C.x,C.y,o,o,+(p<0),k.x,k.y)}else _+=Rt(d2||(d2=is(["L",",","Z"])),t,n);return _},Ate={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},s5=e=>{var t=Pn(e,Ate),{cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:l,forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:p,className:m}=t;if(o<i||d===p)return null;var y=tt("recharts-sector",m),g=o-i,x=pr(l,g,0,!0),w;return x>0&&Math.abs(d-p)<360?w=Ote({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(x,g/2),forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:p}):w=o5({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:d,endAngle:p}),E.createElement("path",Z1({},Fn(t),{className:y,d:w}))};function Tte(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(Lz(t)){if(e==="centric"){var{cx:r,cy:i,innerRadius:o,outerRadius:l,angle:u}=t,f=Kt(r,i,o,u),d=Kt(r,i,l,u);return[{x:f.x,y:f.y},{x:d.x,y:d.y}]}return a5(t)}}var sx={},lx={},ux={},h2;function _te(){return h2||(h2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wz();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(ux)),ux}var p2;function Cte(){return p2||(p2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_te();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(lx)),lx}var m2;function kte(){return m2||(m2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xz(),n=Cte();function r(i,o,l){l&&typeof l!="number"&&t.isIterateeCall(i,o,l)&&(o=l=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),l=l===void 0?i<o?1:-1:n.toFinite(l);const u=Math.max(Math.ceil((o-i)/(l||1)),0),f=new Array(u);for(let d=0;d<u;d++)f[d]=i,i+=l;return f}e.range=r})(sx)),sx}var cx,y2;function jte(){return y2||(y2=1,cx=kte().range),cx}var Nte=jte();const l5=mo(Nte);var ya=e=>e.chartData,Oy=$([ya],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),u5=(e,t,n,r)=>r?Oy(e):ya(e),Mte=(e,t,n)=>n?Oy(e):ya(e);function xi(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(He(t)&&He(n))return!0}return!1}function v2(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function c5(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,o;if(He(n))i=n;else if(typeof n=="function")return;if(He(r))o=r;else if(typeof r=="function")return;var l=[i,o];if(xi(l))return l}}function Pte(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(xi(r))return v2(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,o]=e,l,u;if(i==="auto")t!=null&&(l=Math.min(...t));else if(xe(i))l=i;else if(typeof i=="function")try{t!=null&&(l=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&lM.test(i)){var f=lM.exec(i);if(f==null||f[1]==null||t==null)l=void 0;else{var d=+f[1];l=t[0]-d}}else l=t==null?void 0:t[0];if(o==="auto")t!=null&&(u=Math.max(...t));else if(xe(o))u=o;else if(typeof o=="function")try{t!=null&&(u=o(t==null?void 0:t[1]))}catch{}else if(typeof o=="string"&&uM.test(o)){var p=uM.exec(o);if(p==null||p[1]==null||t==null)u=void 0;else{var m=+p[1];u=t[1]+m}}else u=t==null?void 0:t[1];var y=[l,u];if(xi(y))return t==null?y:v2(y,t,n)}}}var Su=1e9,Dte={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},GS,Tt=!0,Vr="[DecimalError] ",ms=Vr+"Invalid argument: ",HS=Vr+"Exponent out of range: ",Eu=Math.floor,Zo=Math.pow,Rte=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,fr,cn=1e7,bt=7,f5=9007199254740991,cm=Eu(f5/bt),ge={};ge.absoluteValue=ge.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ge.comparedTo=ge.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};ge.decimalPlaces=ge.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*bt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ge.dividedBy=ge.div=function(e){return ia(this,new this.constructor(e))};ge.dividedToIntegerBy=ge.idiv=function(e){var t=this,n=t.constructor;return ft(ia(t,new n(e),0,1),n.precision)};ge.equals=ge.eq=function(e){return!this.cmp(e)};ge.exponent=function(){return Yt(this)};ge.greaterThan=ge.gt=function(e){return this.cmp(e)>0};ge.greaterThanOrEqualTo=ge.gte=function(e){return this.cmp(e)>=0};ge.isInteger=ge.isint=function(){return this.e>this.d.length-2};ge.isNegative=ge.isneg=function(){return this.s<0};ge.isPositive=ge.ispos=function(){return this.s>0};ge.isZero=function(){return this.s===0};ge.lessThan=ge.lt=function(e){return this.cmp(e)<0};ge.lessThanOrEqualTo=ge.lte=function(e){return this.cmp(e)<1};ge.logarithm=ge.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(fr))throw Error(Vr+"NaN");if(n.s<1)throw Error(Vr+(n.s?"NaN":"-Infinity"));return n.eq(fr)?new r(0):(Tt=!1,t=ia(kf(n,o),kf(e,o),o),Tt=!0,ft(t,i))};ge.minus=ge.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?p5(t,e):d5(t,(e.s=-e.s,e))};ge.modulo=ge.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Vr+"NaN");return n.s?(Tt=!1,t=ia(n,e,0,1).times(e),Tt=!0,n.minus(t)):ft(new r(n),i)};ge.naturalExponential=ge.exp=function(){return h5(this)};ge.naturalLogarithm=ge.ln=function(){return kf(this)};ge.negated=ge.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ge.plus=ge.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?d5(t,e):p5(t,(e.s=-e.s,e))};ge.precision=ge.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ms+e);if(t=Yt(i)+1,r=i.d.length-1,n=r*bt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ge.squareRoot=ge.sqrt=function(){var e,t,n,r,i,o,l,u=this,f=u.constructor;if(u.s<1){if(!u.s)return new f(0);throw Error(Vr+"NaN")}for(e=Yt(u),Tt=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=gi(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Eu((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(i.toString()),n=f.precision,i=l=n+3;;)if(o=r,r=o.plus(ia(u,o,l+2)).times(.5),gi(o.d).slice(0,l)===(t=gi(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),i==l&&t=="4999"){if(ft(o,n+1,0),o.times(o).eq(u)){r=o;break}}else if(t!="9999")break;l+=4}return Tt=!0,ft(r,n)};ge.times=ge.mul=function(e){var t,n,r,i,o,l,u,f,d,p=this,m=p.constructor,y=p.d,g=(e=new m(e)).d;if(!p.s||!e.s)return new m(0);for(e.s*=p.s,n=p.e+e.e,f=y.length,d=g.length,f<d&&(o=y,y=g,g=o,l=f,f=d,d=l),o=[],l=f+d,r=l;r--;)o.push(0);for(r=d;--r>=0;){for(t=0,i=f+r;i>r;)u=o[i]+g[r]*y[i-r-1]+t,o[i--]=u%cn|0,t=u/cn|0;o[i]=(o[i]+t)%cn|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Tt?ft(e,m.precision):e};ge.toDecimalPlaces=ge.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(_i(e,0,Su),t===void 0?t=r.rounding:_i(t,0,8),ft(n,e+Yt(n)+1,t))};ge.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=As(r,!0):(_i(e,0,Su),t===void 0?t=i.rounding:_i(t,0,8),r=ft(new i(r),e+1,t),n=As(r,!0,e+1)),n};ge.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?As(i):(_i(e,0,Su),t===void 0?t=o.rounding:_i(t,0,8),r=ft(new o(i),e+Yt(i)+1,t),n=As(r.abs(),!1,e+Yt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};ge.toInteger=ge.toint=function(){var e=this,t=e.constructor;return ft(new t(e),Yt(e)+1,t.rounding)};ge.toNumber=function(){return+this};ge.toPower=ge.pow=function(e){var t,n,r,i,o,l,u=this,f=u.constructor,d=12,p=+(e=new f(e));if(!e.s)return new f(fr);if(u=new f(u),!u.s){if(e.s<1)throw Error(Vr+"Infinity");return u}if(u.eq(fr))return u;if(r=f.precision,e.eq(fr))return ft(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=u.s,l){if((n=p<0?-p:p)<=f5){for(i=new f(fr),t=Math.ceil(r/bt+4),Tt=!1;n%2&&(i=i.times(u),b2(i.d,t)),n=Eu(n/2),n!==0;)u=u.times(u),b2(u.d,t);return Tt=!0,e.s<0?new f(fr).div(i):ft(i,r)}}else if(o<0)throw Error(Vr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,Tt=!1,i=e.times(kf(u,r+d)),Tt=!0,i=h5(i),i.s=o,i};ge.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Yt(i),r=As(i,n<=o.toExpNeg||n>=o.toExpPos)):(_i(e,1,Su),t===void 0?t=o.rounding:_i(t,0,8),i=ft(new o(i),e,t),n=Yt(i),r=As(i,e<=n||n<=o.toExpNeg,e)),r};ge.toSignificantDigits=ge.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(_i(e,1,Su),t===void 0?t=r.rounding:_i(t,0,8)),ft(new r(n),e,t)};ge.toString=ge.valueOf=ge.val=ge.toJSON=ge[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Yt(e),n=e.constructor;return As(e,t<=n.toExpNeg||t>=n.toExpPos)};function d5(e,t){var n,r,i,o,l,u,f,d,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),Tt?ft(t,m):t;if(f=e.d,d=t.d,l=e.e,i=t.e,f=f.slice(),o=l-i,o){for(o<0?(r=f,o=-o,u=d.length):(r=d,i=l,u=f.length),l=Math.ceil(m/bt),u=l>u?l+1:u+1,o>u&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(u=f.length,o=d.length,u-o<0&&(o=u,r=d,d=f,f=r),n=0;o;)n=(f[--o]=f[o]+d[o]+n)/cn|0,f[o]%=cn;for(n&&(f.unshift(n),++i),u=f.length;f[--u]==0;)f.pop();return t.d=f,t.e=i,Tt?ft(t,m):t}function _i(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ms+e)}function gi(e){var t,n,r,i=e.length-1,o="",l=e[0];if(i>0){for(o+=l,t=1;t<i;t++)r=e[t]+"",n=bt-r.length,n&&(o+=Ja(n)),o+=r;l=e[t],r=l+"",n=bt-r.length,n&&(o+=Ja(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var ia=(function(){function e(r,i){var o,l=0,u=r.length;for(r=r.slice();u--;)o=r[u]*i+l,r[u]=o%cn|0,l=o/cn|0;return l&&r.unshift(l),r}function t(r,i,o,l){var u,f;if(o!=l)f=o>l?1:-1;else for(u=f=0;u<o;u++)if(r[u]!=i[u]){f=r[u]>i[u]?1:-1;break}return f}function n(r,i,o){for(var l=0;o--;)r[o]-=l,l=r[o]<i[o]?1:0,r[o]=l*cn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,l){var u,f,d,p,m,y,g,x,w,S,O,_,C,k,N,M,R,P,V=r.constructor,H=r.s==i.s?1:-1,Z=r.d,F=i.d;if(!r.s)return new V(r);if(!i.s)throw Error(Vr+"Division by zero");for(f=r.e-i.e,R=F.length,N=Z.length,g=new V(H),x=g.d=[],d=0;F[d]==(Z[d]||0);)++d;if(F[d]>(Z[d]||0)&&--f,o==null?_=o=V.precision:l?_=o+(Yt(r)-Yt(i))+1:_=o,_<0)return new V(0);if(_=_/bt+2|0,d=0,R==1)for(p=0,F=F[0],_++;(d<N||p)&&_--;d++)C=p*cn+(Z[d]||0),x[d]=C/F|0,p=C%F|0;else{for(p=cn/(F[0]+1)|0,p>1&&(F=e(F,p),Z=e(Z,p),R=F.length,N=Z.length),k=R,w=Z.slice(0,R),S=w.length;S<R;)w[S++]=0;P=F.slice(),P.unshift(0),M=F[0],F[1]>=cn/2&&++M;do p=0,u=t(F,w,R,S),u<0?(O=w[0],R!=S&&(O=O*cn+(w[1]||0)),p=O/M|0,p>1?(p>=cn&&(p=cn-1),m=e(F,p),y=m.length,S=w.length,u=t(m,w,y,S),u==1&&(p--,n(m,R<y?P:F,y))):(p==0&&(u=p=1),m=F.slice()),y=m.length,y<S&&m.unshift(0),n(w,m,S),u==-1&&(S=w.length,u=t(F,w,R,S),u<1&&(p++,n(w,R<S?P:F,S))),S=w.length):u===0&&(p++,w=[0]),x[d++]=p,u&&w[0]?w[S++]=Z[k]||0:(w=[Z[k]],S=1);while((k++<N||w[0]!==void 0)&&_--)}return x[0]||x.shift(),g.e=f,ft(g,l?o+Yt(g)+1:o)}})();function h5(e,t){var n,r,i,o,l,u,f=0,d=0,p=e.constructor,m=p.precision;if(Yt(e)>16)throw Error(HS+Yt(e));if(!e.s)return new p(fr);for(Tt=!1,u=m,l=new p(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(Zo(2,d))/Math.LN10*2+5|0,u+=r,n=i=o=new p(fr),p.precision=u;;){if(i=ft(i.times(e),u),n=n.times(++f),l=o.plus(ia(i,n,u)),gi(l.d).slice(0,u)===gi(o.d).slice(0,u)){for(;d--;)o=ft(o.times(o),u);return p.precision=m,t==null?(Tt=!0,ft(o,m)):o}o=l}}function Yt(e){for(var t=e.e*bt,n=e.d[0];n>=10;n/=10)t++;return t}function fx(e,t,n){if(t>e.LN10.sd())throw Tt=!0,n&&(e.precision=n),Error(Vr+"LN10 precision limit exceeded");return ft(new e(e.LN10),t)}function Ja(e){for(var t="";e--;)t+="0";return t}function kf(e,t){var n,r,i,o,l,u,f,d,p,m=1,y=10,g=e,x=g.d,w=g.constructor,S=w.precision;if(g.s<1)throw Error(Vr+(g.s?"NaN":"-Infinity"));if(g.eq(fr))return new w(0);if(t==null?(Tt=!1,d=S):d=t,g.eq(10))return t==null&&(Tt=!0),fx(w,d);if(d+=y,w.precision=d,n=gi(x),r=n.charAt(0),o=Yt(g),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=gi(g.d),r=n.charAt(0),m++;o=Yt(g),r>1?(g=new w("0."+n),o++):g=new w(r+"."+n.slice(1))}else return f=fx(w,d+2,S).times(o+""),g=kf(new w(r+"."+n.slice(1)),d-y).plus(f),w.precision=S,t==null?(Tt=!0,ft(g,S)):g;for(u=l=g=ia(g.minus(fr),g.plus(fr),d),p=ft(g.times(g),d),i=3;;){if(l=ft(l.times(p),d),f=u.plus(ia(l,new w(i),d)),gi(f.d).slice(0,d)===gi(u.d).slice(0,d))return u=u.times(2),o!==0&&(u=u.plus(fx(w,d+2,S).times(o+""))),u=ia(u,new w(m),d),w.precision=S,t==null?(Tt=!0,ft(u,S)):u;u=f,i+=2}}function g2(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Eu(n/bt),e.d=[],r=(n+1)%bt,n<0&&(r+=bt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=bt;r<i;)e.d.push(+t.slice(r,r+=bt));t=t.slice(r),r=bt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Tt&&(e.e>cm||e.e<-cm))throw Error(HS+n)}else e.s=0,e.e=0,e.d=[0];return e}function ft(e,t,n){var r,i,o,l,u,f,d,p,m=e.d;for(l=1,o=m[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=bt,i=t,d=m[p=0];else{if(p=Math.ceil((r+1)/bt),o=m.length,p>=o)return e;for(d=o=m[p],l=1;o>=10;o/=10)l++;r%=bt,i=r-bt+l}if(n!==void 0&&(o=Zo(10,l-i-1),u=d/o%10|0,f=t<0||m[p+1]!==void 0||d%o,f=n<4?(u||f)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||f||n==6&&(r>0?i>0?d/Zo(10,l-i):0:m[p-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return f?(o=Yt(e),m.length=1,t=t-o-1,m[0]=Zo(10,(bt-t%bt)%bt),e.e=Eu(-t/bt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=p,o=1,p--):(m.length=p+1,o=Zo(10,bt-r),m[p]=i>0?(d/Zo(10,l-i)%Zo(10,i)|0)*o:0),f)for(;;)if(p==0){(m[0]+=o)==cn&&(m[0]=1,++e.e);break}else{if(m[p]+=o,m[p]!=cn)break;m[p--]=0,o=1}for(r=m.length;m[--r]===0;)m.pop();if(Tt&&(e.e>cm||e.e<-cm))throw Error(HS+Yt(e));return e}function p5(e,t){var n,r,i,o,l,u,f,d,p,m,y=e.constructor,g=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),Tt?ft(t,g):t;if(f=e.d,m=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(p=l<0,p?(n=f,l=-l,u=m.length):(n=m,r=d,u=f.length),i=Math.max(Math.ceil(g/bt),u)+2,l>i&&(l=i,n.length=1),n.reverse(),i=l;i--;)n.push(0);n.reverse()}else{for(i=f.length,u=m.length,p=i<u,p&&(u=i),i=0;i<u;i++)if(f[i]!=m[i]){p=f[i]<m[i];break}l=0}for(p&&(n=f,f=m,m=n,t.s=-t.s),u=f.length,i=m.length-u;i>0;--i)f[u++]=0;for(i=m.length;i>l;){if(f[--i]<m[i]){for(o=i;o&&f[--o]===0;)f[o]=cn-1;--f[o],f[i]+=cn}f[i]-=m[i]}for(;f[--u]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,Tt?ft(t,g):t):new y(0)}function As(e,t,n){var r,i=Yt(e),o=gi(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+Ja(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ja(-i-1)+o,n&&(r=n-l)>0&&(o+=Ja(r))):i>=l?(o+=Ja(i+1-l),n&&(r=n-i-1)>0&&(o=o+"."+Ja(r))):((r=i+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(i+1===l&&(o+="."),o+=Ja(r))),e.s<0?"-"+o:o}function b2(e,t){if(e.length>t)return e.length=t,!0}function m5(e){var t,n,r;function i(o){var l=this;if(!(l instanceof i))return new i(o);if(l.constructor=i,o instanceof i){l.s=o.s,l.e=o.e,l.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ms+o);if(o>0)l.s=1;else if(o<0)o=-o,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(o===~~o&&o<1e7){l.e=0,l.d=[o];return}return g2(l,o.toString())}else if(typeof o!="string")throw Error(ms+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,Rte.test(o))g2(l,o);else throw Error(ms+o)}if(i.prototype=ge,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=m5,i.config=i.set=Ite,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Ite(e){if(!e||typeof e!="object")throw Error(Vr+"Object expected");var t,n,r,i=["precision",1,Su,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Eu(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(ms+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ms+n+": "+r);return this}var GS=m5(Dte);fr=new GS(1);const Ke=GS;function y5(e){var t;return e===0?t=1:t=Math.floor(new Ke(e).abs().log(10).toNumber())+1,t}function v5(e,t,n){for(var r=new Ke(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var g5=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},KS=(e,t,n)=>{if(e.lte(0))return new Ke(0);var r=y5(e.toNumber()),i=new Ke(10).pow(r),o=e.div(i),l=r!==1?.05:.1,u=new Ke(Math.ceil(o.div(l).toNumber())).add(n).mul(l),f=u.mul(i);return t?new Ke(f.toNumber()):new Ke(Math.ceil(f.toNumber()))},b5=(e,t,n)=>{var r;if(e.lte(0))return new Ke(0);var i=[1,2,2.5,5],o=e.toNumber(),l=Math.floor(new Ke(o).abs().log(10).toNumber()),u=new Ke(10).pow(l),f=e.div(u).toNumber(),d=i.findIndex(g=>g>=f-1e-10);if(d===-1&&(u=u.mul(10),d=0),d+=n,d>=i.length){var p=Math.floor(d/i.length);d%=i.length,u=u.mul(new Ke(10).pow(p))}var m=(r=i[d])!==null&&r!==void 0?r:1,y=new Ke(m).mul(u);return t?y:new Ke(Math.ceil(y.toNumber()))},Lte=(e,t,n)=>{var r=new Ke(1),i=new Ke(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Ke(10).pow(y5(e)-1),i=new Ke(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Ke(Math.floor(e)))}else e===0?i=new Ke(Math.floor((t-1)/2)):n||(i=new Ke(Math.floor(e)));for(var l=Math.floor((t-1)/2),u=[],f=0;f<t;f++)u.push(i.add(new Ke(f-l).mul(r)).toNumber());return u},x5=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:KS;if(!Number.isFinite((n-t)/(r-1)))return{step:new Ke(0),tickMin:new Ke(0),tickMax:new Ke(0)};var u=l(new Ke(n).sub(t).div(r-1),i,o),f;t<=0&&n>=0?f=new Ke(0):(f=new Ke(t).add(n).div(2),f=f.sub(new Ke(f).mod(u)));var d=Math.ceil(f.sub(t).div(u).toNumber()),p=Math.ceil(new Ke(n).sub(f).div(u).toNumber()),m=d+p+1;return m>r?x5(t,n,r,i,o+1,l):(m<r&&(p=n>0?p+(r-m):p,d=n>0?d:d+(r-m)),{step:u,tickMin:f.sub(new Ke(d).mul(u)),tickMax:f.add(new Ke(p).mul(u))})},x2=function(t){var[n,r]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(i,2),[f,d]=g5([n,r]);if(f===-1/0||d===1/0){var p=d===1/0?[f,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),d];return n>r?p.reverse():p}if(f===d)return Lte(f,i,o);var m=l==="snap125"?b5:KS,{step:y,tickMin:g,tickMax:x}=x5(f,d,u,o,0,m),w=v5(g,x.add(new Ke(.1).mul(y)),y);return n>r?w.reverse():w},w2=function(t,n){var[r,i]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,f]=g5([r,i]);if(u===-1/0||f===1/0)return[r,i];if(u===f)return[u];var d=l==="snap125"?b5:KS,p=Math.max(n,2),m=d(new Ke(f).sub(u).div(p-1),o,0),y=[...v5(new Ke(u),new Ke(f),m),f];return o===!1&&(y=y.map(g=>Math.round(g))),r>i?y.reverse():y},zte=e=>e.rootProps.barCategoryGap,Jf=e=>e.rootProps.stackOffset,w5=e=>e.rootProps.reverseStackOrder,YS=e=>e.options.chartName,WS=e=>e.rootProps.syncId,S5=e=>e.rootProps.syncMethod,XS=e=>e.options.eventEmitter,Bte=e=>e.rootProps.baseValue,_n={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},qo={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},di={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},Ay=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Ty(e,t,n){if(n!=="auto")return n;if(e!=null)return ki(e,t)?"category":"number"}function S2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S2(Object(n),!0).forEach(function(r){Vte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vte(e,t,n){return(t=Ute(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ute(e){var t=Fte(e,"string");return typeof t=="symbol"?t:t+""}function Fte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E2={allowDataOverflow:qo.allowDataOverflow,allowDecimals:qo.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:qo.angleAxisId,includeHidden:!1,name:void 0,reversed:qo.reversed,scale:qo.scale,tick:qo.tick,tickCount:void 0,ticks:void 0,type:qo.type,unit:void 0,niceTicks:"auto"},O2={allowDataOverflow:di.allowDataOverflow,allowDecimals:di.allowDecimals,allowDuplicatedCategory:di.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:di.radiusAxisId,includeHidden:di.includeHidden,name:void 0,reversed:di.reversed,scale:di.scale,tick:di.tick,tickCount:di.tickCount,ticks:void 0,type:di.type,unit:void 0,niceTicks:"auto"},qte=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},QS=$([qte,V3],(e,t)=>{var n;if(e!=null)return e;var r=(n=Ty(t,"angleAxis",E2.type))!==null&&n!==void 0?n:"category";return fm(fm({},E2),{},{type:r})}),$te=(e,t)=>e.polarAxis.radiusAxis[t],ZS=$([$te,V3],(e,t)=>{var n;if(e!=null)return e;var r=(n=Ty(t,"radiusAxis",O2.type))!==null&&n!==void 0?n:"category";return fm(fm({},O2),{},{type:r})}),_y=e=>e.polarOptions,JS=$([pa,ma,hn],i5),E5=$([_y,JS],(e,t)=>{if(e!=null)return pr(e.innerRadius,t,0)}),O5=$([_y,JS],(e,t)=>{if(e!=null)return pr(e.outerRadius,t,t*.8)}),Hte=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},A5=$([_y],Hte);$([QS,A5],Ay);var T5=$([JS,E5,O5],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});$([ZS,T5],Ay);var _5=$([dt,_y,E5,O5,pa,ma],(e,t,n,r,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:l,cy:u,startAngle:f,endAngle:d}=t;return{cx:pr(l,i,i/2),cy:pr(u,o,o/2),innerRadius:n,outerRadius:r,startAngle:f,endAngle:d,clockWise:!1}}}),kt=(e,t)=>t,ed=(e,t,n)=>n;function eE(e){return e==null?void 0:e.id}function C5(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=n,l=new Map;return e.forEach(u=>{var f,d=(f=u.data)!==null&&f!==void 0?f:r;if(!(d==null||d.length===0)){var p=eE(u);d.forEach((m,y)=>{var g=o==null||i?y:String(St(m,o,null)),x=St(m,u.dataKey,0),w;l.has(g)?w=l.get(g):w={},Object.assign(w,{[p]:x}),l.set(g,w)})}}),Array.from(l.values())}function tE(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Cy=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function ky(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function Gte(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var pn=e=>{var t=dt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Ou=e=>e.tooltip.settings.axisId;function nE(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(o){function l(){return o.apply(this,arguments)}return l.toString=function(){return o.toString()},l})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(o){var l=i[0],u=i[1];return l<=u?o>=l&&o<=u:o>=u&&o<=l},bandwidth:n?()=>n.call(e):void 0,ticks:t?o=>t.call(e,o):void 0,map:(o,l)=>{var u=e(o);if(u!=null){if(e.bandwidth&&l!==null&&l!==void 0&&l.position){var f=e.bandwidth();switch(l.position){case"middle":u+=f/2;break;case"end":u+=f;break}}return u}}}}}var k5=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!xi(t)){for(var n,r,i=0;i<t.length;i++){var o=t[i];He(o)&&((n===void 0||o<n)&&(n=o),(r===void 0||o>r)&&(r=o))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function so(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Kte(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rE(e){let t,n,r;e.length!==2?(t=so,n=(u,f)=>so(e(u),f),r=(u,f)=>e(u)-f):(t=e===so||e===Kte?e:Yte,n=e,r=e);function i(u,f,d=0,p=u.length){if(d<p){if(t(f,f)!==0)return p;do{const m=d+p>>>1;n(u[m],f)<0?d=m+1:p=m}while(d<p)}return d}function o(u,f,d=0,p=u.length){if(d<p){if(t(f,f)!==0)return p;do{const m=d+p>>>1;n(u[m],f)<=0?d=m+1:p=m}while(d<p)}return d}function l(u,f,d=0,p=u.length){const m=i(u,f,d,p-1);return m>d&&r(u[m-1],f)>-r(u[m],f)?m-1:m}return{left:i,center:l,right:o}}function Yte(){return 0}function j5(e){return e===null?NaN:+e}function*Wte(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Xte=rE(so),td=Xte.right;rE(j5).center;class A2 extends Map{constructor(t,n=Jte){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(T2(this,t))}has(t){return super.has(T2(this,t))}set(t,n){return super.set(Qte(this,t),n)}delete(t){return super.delete(Zte(this,t))}}function T2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Qte({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Zte({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Jte(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ene(e=so){if(e===so)return N5;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function N5(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const tne=Math.sqrt(50),nne=Math.sqrt(10),rne=Math.sqrt(2);function dm(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),l=o>=tne?10:o>=nne?5:o>=rne?2:1;let u,f,d;return i<0?(d=Math.pow(10,-i)/l,u=Math.round(e*d),f=Math.round(t*d),u/d<e&&++u,f/d>t&&--f,d=-d):(d=Math.pow(10,i)*l,u=Math.round(e/d),f=Math.round(t/d),u*d<e&&++u,f*d>t&&--f),f<u&&.5<=n&&n<2?dm(e,t,n*2):[u,f,d]}function J1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,l]=r?dm(t,e,n):dm(e,t,n);if(!(o>=i))return[];const u=o-i+1,f=new Array(u);if(r)if(l<0)for(let d=0;d<u;++d)f[d]=(o-d)/-l;else for(let d=0;d<u;++d)f[d]=(o-d)*l;else if(l<0)for(let d=0;d<u;++d)f[d]=(i+d)/-l;else for(let d=0;d<u;++d)f[d]=(i+d)*l;return f}function ew(e,t,n){return t=+t,e=+e,n=+n,dm(e,t,n)[2]}function tw(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?ew(t,e,n):ew(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function _2(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function C2(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function M5(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?N5:ene(i);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,p=Math.log(f),m=.5*Math.exp(2*p/3),y=.5*Math.sqrt(p*m*(f-m)/f)*(d-f/2<0?-1:1),g=Math.max(n,Math.floor(t-d*m/f+y)),x=Math.min(r,Math.floor(t+(f-d)*m/f+y));M5(e,t,g,x,i)}const o=e[t];let l=n,u=r;for(Rc(e,n,t),i(e[r],o)>0&&Rc(e,n,r);l<u;){for(Rc(e,l,u),++l,--u;i(e[l],o)<0;)++l;for(;i(e[u],o)>0;)--u}i(e[n],o)===0?Rc(e,n,u):(++u,Rc(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Rc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ine(e,t,n){if(e=Float64Array.from(Wte(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return C2(e);if(t>=1)return _2(e);var r,i=(r-1)*t,o=Math.floor(i),l=_2(M5(e,o).subarray(0,o+1)),u=C2(e.subarray(o+1));return l+(u-l)*(i-o)}}function ane(e,t,n=j5){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),l=+n(e[o],o,e),u=+n(e[o+1],o+1,e);return l+(u-l)*(i-o)}}function one(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Fr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function va(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const nw=Symbol("implicit");function iE(){var e=new A2,t=[],n=[],r=nw;function i(o){let l=e.get(o);if(l===void 0){if(r!==nw)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new A2;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return iE(t,n).unknown(r)},Fr.apply(i,arguments),i}function aE(){var e=iE().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,l,u=!1,f=0,d=0,p=.5;delete e.unknown;function m(){var y=t().length,g=i<r,x=g?i:r,w=g?r:i;o=(w-x)/Math.max(1,y-f+d*2),u&&(o=Math.floor(o)),x+=(w-x-o*(y-f))*p,l=o*(1-f),u&&(x=Math.round(x),l=Math.round(l));var S=one(y).map(function(O){return x+o*O});return n(g?S.reverse():S)}return e.domain=function(y){return arguments.length?(t(y),m()):t()},e.range=function(y){return arguments.length?([r,i]=y,r=+r,i=+i,m()):[r,i]},e.rangeRound=function(y){return[r,i]=y,r=+r,i=+i,u=!0,m()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(y){return arguments.length?(u=!!y,m()):u},e.padding=function(y){return arguments.length?(f=Math.min(1,d=+y),m()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),m()):f},e.paddingOuter=function(y){return arguments.length?(d=+y,m()):d},e.align=function(y){return arguments.length?(p=Math.max(0,Math.min(1,y)),m()):p},e.copy=function(){return aE(t(),[r,i]).round(u).paddingInner(f).paddingOuter(d).align(p)},Fr.apply(m(),arguments)}function P5(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return P5(t())},e}function sne(){return P5(aE.apply(null,arguments).paddingInner(1))}function oE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function D5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nd(){}var jf=.7,hm=1/jf,Wl="\\s*([+-]?\\d+)\\s*",Nf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lne=/^#([0-9a-f]{3,8})$/,une=new RegExp(`^rgb\\(${Wl},${Wl},${Wl}\\)$`),cne=new RegExp(`^rgb\\(${wi},${wi},${wi}\\)$`),fne=new RegExp(`^rgba\\(${Wl},${Wl},${Wl},${Nf}\\)$`),dne=new RegExp(`^rgba\\(${wi},${wi},${wi},${Nf}\\)$`),hne=new RegExp(`^hsl\\(${Nf},${wi},${wi}\\)$`),pne=new RegExp(`^hsla\\(${Nf},${wi},${wi},${Nf}\\)$`),k2={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};oE(nd,Mf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:j2,formatHex:j2,formatHex8:mne,formatHsl:yne,formatRgb:N2,toString:N2});function j2(){return this.rgb().formatHex()}function mne(){return this.rgb().formatHex8()}function yne(){return R5(this).formatHsl()}function N2(){return this.rgb().formatRgb()}function Mf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?M2(t):n===3?new Jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$h(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$h(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=une.exec(e))?new Jn(t[1],t[2],t[3],1):(t=cne.exec(e))?new Jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fne.exec(e))?$h(t[1],t[2],t[3],t[4]):(t=dne.exec(e))?$h(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hne.exec(e))?R2(t[1],t[2]/100,t[3]/100,1):(t=pne.exec(e))?R2(t[1],t[2]/100,t[3]/100,t[4]):k2.hasOwnProperty(e)?M2(k2[e]):e==="transparent"?new Jn(NaN,NaN,NaN,0):null}function M2(e){return new Jn(e>>16&255,e>>8&255,e&255,1)}function $h(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jn(e,t,n,r)}function vne(e){return e instanceof nd||(e=Mf(e)),e?(e=e.rgb(),new Jn(e.r,e.g,e.b,e.opacity)):new Jn}function rw(e,t,n,r){return arguments.length===1?vne(e):new Jn(e,t,n,r??1)}function Jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}oE(Jn,rw,D5(nd,{brighter(e){return e=e==null?hm:Math.pow(hm,e),new Jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?jf:Math.pow(jf,e),new Jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jn(ys(this.r),ys(this.g),ys(this.b),pm(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:P2,formatHex:P2,formatHex8:gne,formatRgb:D2,toString:D2}));function P2(){return`#${as(this.r)}${as(this.g)}${as(this.b)}`}function gne(){return`#${as(this.r)}${as(this.g)}${as(this.b)}${as((isNaN(this.opacity)?1:this.opacity)*255)}`}function D2(){const e=pm(this.opacity);return`${e===1?"rgb(":"rgba("}${ys(this.r)}, ${ys(this.g)}, ${ys(this.b)}${e===1?")":`, ${e})`}`}function pm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ys(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function as(e){return e=ys(e),(e<16?"0":"")+e.toString(16)}function R2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Jr(e,t,n,r)}function R5(e){if(e instanceof Jr)return new Jr(e.h,e.s,e.l,e.opacity);if(e instanceof nd||(e=Mf(e)),!e)return new Jr;if(e instanceof Jr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,u=o-i,f=(o+i)/2;return u?(t===o?l=(n-r)/u+(n<r)*6:n===o?l=(r-t)/u+2:l=(t-n)/u+4,u/=f<.5?o+i:2-o-i,l*=60):u=f>0&&f<1?0:l,new Jr(l,u,f,e.opacity)}function bne(e,t,n,r){return arguments.length===1?R5(e):new Jr(e,t,n,r??1)}function Jr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}oE(Jr,bne,D5(nd,{brighter(e){return e=e==null?hm:Math.pow(hm,e),new Jr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?jf:Math.pow(jf,e),new Jr(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,i=2*n-r;return new Jn(dx(e>=240?e-240:e+120,i,r),dx(e,i,r),dx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Jr(I2(this.h),Hh(this.s),Hh(this.l),pm(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=pm(this.opacity);return`${e===1?"hsl(":"hsla("}${I2(this.h)}, ${Hh(this.s)*100}%, ${Hh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function I2(e){return e=(e||0)%360,e<0?e+360:e}function Hh(e){return Math.max(0,Math.min(1,e||0))}function dx(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 sE=e=>()=>e;function xne(e,t){return function(n){return e+n*t}}function wne(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 Sne(e){return(e=+e)==1?I5:function(t,n){return n-t?wne(t,n,e):sE(isNaN(t)?n:t)}}function I5(e,t){var n=t-e;return n?xne(e,n):sE(isNaN(e)?t:e)}const L2=(function e(t){var n=Sne(t);function r(i,o){var l=n((i=rw(i)).r,(o=rw(o)).r),u=n(i.g,o.g),f=n(i.b,o.b),d=I5(i.opacity,o.opacity);return function(p){return i.r=l(p),i.g=u(p),i.b=f(p),i.opacity=d(p),i+""}}return r.gamma=e,r})(1);function Ene(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function One(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Ane(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)i[l]=Au(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(u){for(l=0;l<r;++l)o[l]=i[l](u);return o}}function Tne(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function mm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _ne(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Au(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var iw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hx=new RegExp(iw.source,"g");function Cne(e){return function(){return e}}function kne(e){return function(t){return e(t)+""}}function jne(e,t){var n=iw.lastIndex=hx.lastIndex=0,r,i,o,l=-1,u=[],f=[];for(e=e+"",t=t+"";(r=iw.exec(e))&&(i=hx.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),u[l]?u[l]+=o:u[++l]=o),(r=r[0])===(i=i[0])?u[l]?u[l]+=i:u[++l]=i:(u[++l]=null,f.push({i:l,x:mm(r,i)})),n=hx.lastIndex;return n<t.length&&(o=t.slice(n),u[l]?u[l]+=o:u[++l]=o),u.length<2?f[0]?kne(f[0].x):Cne(t):(t=f.length,function(d){for(var p=0,m;p<t;++p)u[(m=f[p]).i]=m.x(d);return u.join("")})}function Au(e,t){var n=typeof t,r;return t==null||n==="boolean"?sE(t):(n==="number"?mm:n==="string"?(r=Mf(t))?(t=r,L2):jne:t instanceof Mf?L2:t instanceof Date?Tne:One(t)?Ene:Array.isArray(t)?Ane:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?_ne:mm)(e,t)}function lE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Nne(e,t){t===void 0&&(t=e,e=Au);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(l){var u=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return o[u](l-u)}}function Mne(e){return function(){return e}}function ym(e){return+e}var z2=[0,1];function Un(e){return e}function aw(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Mne(isNaN(t)?NaN:.5)}function Pne(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Dne(e,t,n){var r=e[0],i=e[1],o=t[0],l=t[1];return i<r?(r=aw(i,r),o=n(l,o)):(r=aw(r,i),o=n(o,l)),function(u){return o(r(u))}}function Rne(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)i[l]=aw(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(u){var f=td(e,u,1,r)-1;return o[f](i[f](u))}}function rd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function jy(){var e=z2,t=z2,n=Au,r,i,o,l=Un,u,f,d;function p(){var y=Math.min(e.length,t.length);return l!==Un&&(l=Pne(e[0],e[y-1])),u=y>2?Rne:Dne,f=d=null,m}function m(y){return y==null||isNaN(y=+y)?o:(f||(f=u(e.map(r),t,n)))(r(l(y)))}return m.invert=function(y){return l(i((d||(d=u(t,e.map(r),mm)))(y)))},m.domain=function(y){return arguments.length?(e=Array.from(y,ym),p()):e.slice()},m.range=function(y){return arguments.length?(t=Array.from(y),p()):t.slice()},m.rangeRound=function(y){return t=Array.from(y),n=lE,p()},m.clamp=function(y){return arguments.length?(l=y?!0:Un,p()):l!==Un},m.interpolate=function(y){return arguments.length?(n=y,p()):n},m.unknown=function(y){return arguments.length?(o=y,m):o},function(y,g){return r=y,i=g,p()}}function uE(){return jy()(Un,Un)}function Ine(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vm(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function cu(e){return e=vm(Math.abs(e)),e?e[1]:NaN}function Lne(e,t){return function(n,r){for(var i=n.length,o=[],l=0,u=e[0],f=0;i>0&&u>0&&(f+u+1>r&&(u=Math.max(1,r-f)),o.push(n.substring(i-=u,i+u)),!((f+=u+1)>r));)u=e[l=(l+1)%e.length];return o.reverse().join(t)}}function zne(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Bne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pf(e){if(!(t=Bne.exec(e)))throw new Error("invalid format: "+e);var t;return new cE({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]})}Pf.prototype=cE.prototype;function cE(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+""}cE.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 Vne(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var gm;function Une(e,t){var n=vm(e,t);if(!n)return gm=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(gm=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vm(e,Math.max(0,t+o-1))[0]}function B2(e,t){var n=vm(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const V2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ine,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>B2(e*100,t),r:B2,s:Une,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function U2(e){return e}var F2=Array.prototype.map,q2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fne(e){var t=e.grouping===void 0||e.thousands===void 0?U2:Lne(F2.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?U2:zne(F2.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(m,y){m=Pf(m);var g=m.fill,x=m.align,w=m.sign,S=m.symbol,O=m.zero,_=m.width,C=m.comma,k=m.precision,N=m.trim,M=m.type;M==="n"?(C=!0,M="g"):V2[M]||(k===void 0&&(k=12),N=!0,M="g"),(O||g==="0"&&x==="=")&&(O=!0,g="0",x="=");var R=(y&&y.prefix!==void 0?y.prefix:"")+(S==="$"?n:S==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():""),P=(S==="$"?r:/[%p]/.test(M)?l:"")+(y&&y.suffix!==void 0?y.suffix:""),V=V2[M],H=/[defgprs%]/.test(M);k=k===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function Z(F){var he=R,ne=P,ee,D,q;if(M==="c")ne=V(F)+ne,F="";else{F=+F;var B=F<0||1/F<0;if(F=isNaN(F)?f:V(Math.abs(F),k),N&&(F=Vne(F)),B&&+F==0&&w!=="+"&&(B=!1),he=(B?w==="("?w:u:w==="-"||w==="("?"":w)+he,ne=(M==="s"&&!isNaN(F)&&gm!==void 0?q2[8+gm/3]:"")+ne+(B&&w==="("?")":""),H){for(ee=-1,D=F.length;++ee<D;)if(q=F.charCodeAt(ee),48>q||q>57){ne=(q===46?i+F.slice(ee+1):F.slice(ee))+ne,F=F.slice(0,ee);break}}}C&&!O&&(F=t(F,1/0));var ce=he.length+F.length+ne.length,Y=ce<_?new Array(_-ce+1).join(g):"";switch(C&&O&&(F=t(Y+F,Y.length?_-ne.length:1/0),Y=""),x){case"<":F=he+F+ne+Y;break;case"=":F=he+Y+F+ne;break;case"^":F=Y.slice(0,ce=Y.length>>1)+he+F+ne+Y.slice(ce);break;default:F=Y+he+F+ne;break}return o(F)}return Z.toString=function(){return m+""},Z}function p(m,y){var g=Math.max(-8,Math.min(8,Math.floor(cu(y)/3)))*3,x=Math.pow(10,-g),w=d((m=Pf(m),m.type="f",m),{suffix:q2[8+g/3]});return function(S){return w(x*S)}}return{format:d,formatPrefix:p}}var Gh,fE,L5;qne({thousands:",",grouping:[3],currency:["$",""]});function qne(e){return Gh=Fne(e),fE=Gh.format,L5=Gh.formatPrefix,Gh}function $ne(e){return Math.max(0,-cu(Math.abs(e)))}function Hne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(cu(t)/3)))*3-cu(Math.abs(e)))}function Gne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,cu(t)-cu(e))+1}function z5(e,t,n,r){var i=tw(e,t,n),o;switch(r=Pf(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Hne(i,l))&&(r.precision=o),L5(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Gne(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=$ne(i))&&(r.precision=o-(r.type==="%")*2);break}}return fE(r)}function go(e){var t=e.domain;return e.ticks=function(n){var r=t();return J1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return z5(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,l=r[i],u=r[o],f,d,p=10;for(u<l&&(d=l,l=u,u=d,d=i,i=o,o=d);p-- >0;){if(d=ew(l,u,n),d===f)return r[i]=l,r[o]=u,t(r);if(d>0)l=Math.floor(l/d)*d,u=Math.ceil(u/d)*d;else if(d<0)l=Math.ceil(l*d)/d,u=Math.floor(u*d)/d;else break;f=d}return e},e}function B5(){var e=uE();return e.copy=function(){return rd(e,B5())},Fr.apply(e,arguments),go(e)}function V5(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,ym),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return V5(e).unknown(t)},e=arguments.length?Array.from(e,ym):[0,1],go(n)}function U5(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],l;return o<i&&(l=n,n=r,r=l,l=i,i=o,o=l),e[n]=t.floor(i),e[r]=t.ceil(o),e}function $2(e){return Math.log(e)}function H2(e){return Math.exp(e)}function Kne(e){return-Math.log(-e)}function Yne(e){return-Math.exp(-e)}function Wne(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Xne(e){return e===10?Wne:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Qne(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 G2(e){return(t,n)=>-e(-t,n)}function dE(e){const t=e($2,H2),n=t.domain;let r=10,i,o;function l(){return i=Qne(r),o=Xne(r),n()[0]<0?(i=G2(i),o=G2(o),e(Kne,Yne)):e($2,H2),t}return t.base=function(u){return arguments.length?(r=+u,l()):r},t.domain=function(u){return arguments.length?(n(u),l()):n()},t.ticks=u=>{const f=n();let d=f[0],p=f[f.length-1];const m=p<d;m&&([d,p]=[p,d]);let y=i(d),g=i(p),x,w;const S=u==null?10:+u;let O=[];if(!(r%1)&&g-y<S){if(y=Math.floor(y),g=Math.ceil(g),d>0){for(;y<=g;++y)for(x=1;x<r;++x)if(w=y<0?x/o(-y):x*o(y),!(w<d)){if(w>p)break;O.push(w)}}else for(;y<=g;++y)for(x=r-1;x>=1;--x)if(w=y>0?x/o(-y):x*o(y),!(w<d)){if(w>p)break;O.push(w)}O.length*2<S&&(O=J1(d,p,S))}else O=J1(y,g,Math.min(g-y,S)).map(o);return m?O.reverse():O},t.tickFormat=(u,f)=>{if(u==null&&(u=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=Pf(f)).precision==null&&(f.trim=!0),f=fE(f)),u===1/0)return f;const d=Math.max(1,r*u/t.ticks().length);return p=>{let m=p/o(Math.round(i(p)));return m*r<r-.5&&(m*=r),m<=d?f(p):""}},t.nice=()=>n(U5(n(),{floor:u=>o(Math.floor(i(u))),ceil:u=>o(Math.ceil(i(u)))})),t}function F5(){const e=dE(jy()).domain([1,10]);return e.copy=()=>rd(e,F5()).base(e.base()),Fr.apply(e,arguments),e}function K2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Y2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function hE(e){var t=1,n=e(K2(t),Y2(t));return n.constant=function(r){return arguments.length?e(K2(t=+r),Y2(t)):t},go(n)}function q5(){var e=hE(jy());return e.copy=function(){return rd(e,q5()).constant(e.constant())},Fr.apply(e,arguments)}function W2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Zne(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Jne(e){return e<0?-e*e:e*e}function pE(e){var t=e(Un,Un),n=1;function r(){return n===1?e(Un,Un):n===.5?e(Zne,Jne):e(W2(n),W2(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},go(t)}function mE(){var e=pE(jy());return e.copy=function(){return rd(e,mE()).exponent(e.exponent())},Fr.apply(e,arguments),e}function ere(){return mE.apply(null,arguments).exponent(.5)}function X2(e){return Math.sign(e)*e*e}function tre(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $5(){var e=uE(),t=[0,1],n=!1,r;function i(o){var l=tre(e(o));return isNaN(l)?r:n?Math.round(l):l}return i.invert=function(o){return e.invert(X2(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,ym)).map(X2)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return $5(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Fr.apply(i,arguments),go(i)}function H5(){var e=[],t=[],n=[],r;function i(){var l=0,u=Math.max(1,t.length);for(n=new Array(u-1);++l<u;)n[l-1]=ane(e,l/u);return o}function o(l){return l==null||isNaN(l=+l)?r:t[td(n,l)]}return o.invertExtent=function(l){var u=t.indexOf(l);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},o.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let u of l)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(so),i()},o.range=function(l){return arguments.length?(t=Array.from(l),i()):t.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return H5().domain(e).range(t).unknown(r)},Fr.apply(o,arguments)}function G5(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function l(f){return f!=null&&f<=f?i[td(r,f,0,n)]:o}function u(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,u()):[e,t]},l.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,u()):i.slice()},l.invertExtent=function(f){var d=i.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},l.unknown=function(f){return arguments.length&&(o=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return G5().domain([e,t]).range(i).unknown(o)},Fr.apply(go(l),arguments)}function K5(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[td(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var l=t.indexOf(o);return[e[l-1],e[l]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return K5().domain(e).range(t).unknown(n)},Fr.apply(i,arguments)}const px=new Date,mx=new Date;function an(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const l=i(o),u=i.ceil(o);return o-l<u-o?l:u},i.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),i.range=(o,l,u)=>{const f=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o<l)||!(u>0))return f;let d;do f.push(d=new Date(+o)),t(o,u),e(o);while(d<o&&o<l);return f},i.filter=o=>an(l=>{if(l>=l)for(;e(l),!o(l);)l.setTime(l-1)},(l,u)=>{if(l>=l)if(u<0)for(;++u<=0;)for(;t(l,-1),!o(l););else for(;--u>=0;)for(;t(l,1),!o(l););}),n&&(i.count=(o,l)=>(px.setTime(+o),mx.setTime(+l),e(px),e(mx),Math.floor(n(px,mx))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?l=>r(l)%o===0:l=>i.count(0,l)%o===0):i)),i}const bm=an(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?an(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):bm);bm.range;const ta=1e3,Lr=ta*60,na=Lr*60,ca=na*24,yE=ca*7,Q2=ca*30,yx=ca*365,os=an(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ta)},(e,t)=>(t-e)/ta,e=>e.getUTCSeconds());os.range;const vE=an(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ta)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getMinutes());vE.range;const gE=an(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCMinutes());gE.range;const bE=an(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ta-e.getMinutes()*Lr)},(e,t)=>{e.setTime(+e+t*na)},(e,t)=>(t-e)/na,e=>e.getHours());bE.range;const xE=an(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*na)},(e,t)=>(t-e)/na,e=>e.getUTCHours());xE.range;const id=an(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/ca,e=>e.getDate()-1);id.range;const Ny=an(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ca,e=>e.getUTCDate()-1);Ny.range;const Y5=an(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ca,e=>Math.floor(e/ca));Y5.range;function Cs(e){return an(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())*Lr)/yE)}const My=Cs(0),xm=Cs(1),nre=Cs(2),rre=Cs(3),fu=Cs(4),ire=Cs(5),are=Cs(6);My.range;xm.range;nre.range;rre.range;fu.range;ire.range;are.range;function ks(e){return an(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)/yE)}const Py=ks(0),wm=ks(1),ore=ks(2),sre=ks(3),du=ks(4),lre=ks(5),ure=ks(6);Py.range;wm.range;ore.range;sre.range;du.range;lre.range;ure.range;const wE=an(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());wE.range;const SE=an(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());SE.range;const fa=an(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());fa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:an(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)});fa.range;const da=an(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());da.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:an(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)});da.range;function W5(e,t,n,r,i,o){const l=[[os,1,ta],[os,5,5*ta],[os,15,15*ta],[os,30,30*ta],[o,1,Lr],[o,5,5*Lr],[o,15,15*Lr],[o,30,30*Lr],[i,1,na],[i,3,3*na],[i,6,6*na],[i,12,12*na],[r,1,ca],[r,2,2*ca],[n,1,yE],[t,1,Q2],[t,3,3*Q2],[e,1,yx]];function u(d,p,m){const y=p<d;y&&([d,p]=[p,d]);const g=m&&typeof m.range=="function"?m:f(d,p,m),x=g?g.range(d,+p+1):[];return y?x.reverse():x}function f(d,p,m){const y=Math.abs(p-d)/m,g=rE(([,,S])=>S).right(l,y);if(g===l.length)return e.every(tw(d/yx,p/yx,m));if(g===0)return bm.every(Math.max(tw(d,p,m),1));const[x,w]=l[y/l[g-1][2]<l[g][2]/y?g-1:g];return x.every(w)}return[u,f]}const[cre,fre]=W5(da,SE,Py,Y5,xE,gE),[dre,hre]=W5(fa,wE,My,id,bE,vE);function vx(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 gx(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 Ic(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function pre(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,l=e.shortDays,u=e.months,f=e.shortMonths,d=Lc(i),p=zc(i),m=Lc(o),y=zc(o),g=Lc(l),x=zc(l),w=Lc(u),S=zc(u),O=Lc(f),_=zc(f),C={a:q,A:B,b:ce,B:Y,c:null,d:rP,e:rP,f:Lre,g:Kre,G:Wre,H:Dre,I:Rre,j:Ire,L:X5,m:zre,M:Bre,p:I,q:Q,Q:oP,s:sP,S:Vre,u:Ure,U:Fre,V:qre,w:$re,W:Hre,x:null,X:null,y:Gre,Y:Yre,Z:Xre,"%":aP},k={a:ue,A:fe,b:de,B:me,c:null,d:iP,e:iP,f:eie,g:cie,G:die,H:Qre,I:Zre,j:Jre,L:Z5,m:tie,M:nie,p:ke,q:Be,Q:oP,s:sP,S:rie,u:iie,U:aie,V:oie,w:sie,W:lie,x:null,X:null,y:uie,Y:fie,Z:hie,"%":aP},N={a:H,A:Z,b:F,B:he,c:ne,d:tP,e:tP,f:jre,g:eP,G:J2,H:nP,I:nP,j:Tre,L:kre,m:Are,M:_re,p:V,q:Ore,Q:Mre,s:Pre,S:Cre,u:bre,U:xre,V:wre,w:gre,W:Sre,x:ee,X:D,y:eP,Y:J2,Z:Ere,"%":Nre};C.x=M(n,C),C.X=M(r,C),C.c=M(t,C),k.x=M(n,k),k.X=M(r,k),k.c=M(t,k);function M(se,ye){return function(Ne){var le=[],Ct=-1,Re=0,jt=se.length,lt,Wt,qr;for(Ne instanceof Date||(Ne=new Date(+Ne));++Ct<jt;)se.charCodeAt(Ct)===37&&(le.push(se.slice(Re,Ct)),(Wt=Z2[lt=se.charAt(++Ct)])!=null?lt=se.charAt(++Ct):Wt=lt==="e"?" ":"0",(qr=ye[lt])&&(lt=qr(Ne,Wt)),le.push(lt),Re=Ct+1);return le.push(se.slice(Re,Ct)),le.join("")}}function R(se,ye){return function(Ne){var le=Ic(1900,void 0,1),Ct=P(le,se,Ne+="",0),Re,jt;if(Ct!=Ne.length)return null;if("Q"in le)return new Date(le.Q);if("s"in le)return new Date(le.s*1e3+("L"in le?le.L:0));if(ye&&!("Z"in le)&&(le.Z=0),"p"in le&&(le.H=le.H%12+le.p*12),le.m===void 0&&(le.m="q"in le?le.q:0),"V"in le){if(le.V<1||le.V>53)return null;"w"in le||(le.w=1),"Z"in le?(Re=gx(Ic(le.y,0,1)),jt=Re.getUTCDay(),Re=jt>4||jt===0?wm.ceil(Re):wm(Re),Re=Ny.offset(Re,(le.V-1)*7),le.y=Re.getUTCFullYear(),le.m=Re.getUTCMonth(),le.d=Re.getUTCDate()+(le.w+6)%7):(Re=vx(Ic(le.y,0,1)),jt=Re.getDay(),Re=jt>4||jt===0?xm.ceil(Re):xm(Re),Re=id.offset(Re,(le.V-1)*7),le.y=Re.getFullYear(),le.m=Re.getMonth(),le.d=Re.getDate()+(le.w+6)%7)}else("W"in le||"U"in le)&&("w"in le||(le.w="u"in le?le.u%7:"W"in le?1:0),jt="Z"in le?gx(Ic(le.y,0,1)).getUTCDay():vx(Ic(le.y,0,1)).getDay(),le.m=0,le.d="W"in le?(le.w+6)%7+le.W*7-(jt+5)%7:le.w+le.U*7-(jt+6)%7);return"Z"in le?(le.H+=le.Z/100|0,le.M+=le.Z%100,gx(le)):vx(le)}}function P(se,ye,Ne,le){for(var Ct=0,Re=ye.length,jt=Ne.length,lt,Wt;Ct<Re;){if(le>=jt)return-1;if(lt=ye.charCodeAt(Ct++),lt===37){if(lt=ye.charAt(Ct++),Wt=N[lt in Z2?ye.charAt(Ct++):lt],!Wt||(le=Wt(se,Ne,le))<0)return-1}else if(lt!=Ne.charCodeAt(le++))return-1}return le}function V(se,ye,Ne){var le=d.exec(ye.slice(Ne));return le?(se.p=p.get(le[0].toLowerCase()),Ne+le[0].length):-1}function H(se,ye,Ne){var le=g.exec(ye.slice(Ne));return le?(se.w=x.get(le[0].toLowerCase()),Ne+le[0].length):-1}function Z(se,ye,Ne){var le=m.exec(ye.slice(Ne));return le?(se.w=y.get(le[0].toLowerCase()),Ne+le[0].length):-1}function F(se,ye,Ne){var le=O.exec(ye.slice(Ne));return le?(se.m=_.get(le[0].toLowerCase()),Ne+le[0].length):-1}function he(se,ye,Ne){var le=w.exec(ye.slice(Ne));return le?(se.m=S.get(le[0].toLowerCase()),Ne+le[0].length):-1}function ne(se,ye,Ne){return P(se,t,ye,Ne)}function ee(se,ye,Ne){return P(se,n,ye,Ne)}function D(se,ye,Ne){return P(se,r,ye,Ne)}function q(se){return l[se.getDay()]}function B(se){return o[se.getDay()]}function ce(se){return f[se.getMonth()]}function Y(se){return u[se.getMonth()]}function I(se){return i[+(se.getHours()>=12)]}function Q(se){return 1+~~(se.getMonth()/3)}function ue(se){return l[se.getUTCDay()]}function fe(se){return o[se.getUTCDay()]}function de(se){return f[se.getUTCMonth()]}function me(se){return u[se.getUTCMonth()]}function ke(se){return i[+(se.getUTCHours()>=12)]}function Be(se){return 1+~~(se.getUTCMonth()/3)}return{format:function(se){var ye=M(se+="",C);return ye.toString=function(){return se},ye},parse:function(se){var ye=R(se+="",!1);return ye.toString=function(){return se},ye},utcFormat:function(se){var ye=M(se+="",k);return ye.toString=function(){return se},ye},utcParse:function(se){var ye=R(se+="",!0);return ye.toString=function(){return se},ye}}}var Z2={"-":"",_:" ",0:"0"},mn=/^\s*\d+/,mre=/^%/,yre=/[\\^$*+?|[\]().{}]/g;function Je(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function vre(e){return e.replace(yre,"\\$&")}function Lc(e){return new RegExp("^(?:"+e.map(vre).join("|")+")","i")}function zc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function gre(e,t,n){var r=mn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function bre(e,t,n){var r=mn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xre(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function wre(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Sre(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function J2(e,t,n){var r=mn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function eP(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ere(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 Ore(e,t,n){var r=mn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Are(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tP(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Tre(e,t,n){var r=mn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nP(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function _re(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Cre(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function kre(e,t,n){var r=mn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function jre(e,t,n){var r=mn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nre(e,t,n){var r=mre.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Mre(e,t,n){var r=mn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Pre(e,t,n){var r=mn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rP(e,t){return Je(e.getDate(),t,2)}function Dre(e,t){return Je(e.getHours(),t,2)}function Rre(e,t){return Je(e.getHours()%12||12,t,2)}function Ire(e,t){return Je(1+id.count(fa(e),e),t,3)}function X5(e,t){return Je(e.getMilliseconds(),t,3)}function Lre(e,t){return X5(e,t)+"000"}function zre(e,t){return Je(e.getMonth()+1,t,2)}function Bre(e,t){return Je(e.getMinutes(),t,2)}function Vre(e,t){return Je(e.getSeconds(),t,2)}function Ure(e){var t=e.getDay();return t===0?7:t}function Fre(e,t){return Je(My.count(fa(e)-1,e),t,2)}function Q5(e){var t=e.getDay();return t>=4||t===0?fu(e):fu.ceil(e)}function qre(e,t){return e=Q5(e),Je(fu.count(fa(e),e)+(fa(e).getDay()===4),t,2)}function $re(e){return e.getDay()}function Hre(e,t){return Je(xm.count(fa(e)-1,e),t,2)}function Gre(e,t){return Je(e.getFullYear()%100,t,2)}function Kre(e,t){return e=Q5(e),Je(e.getFullYear()%100,t,2)}function Yre(e,t){return Je(e.getFullYear()%1e4,t,4)}function Wre(e,t){var n=e.getDay();return e=n>=4||n===0?fu(e):fu.ceil(e),Je(e.getFullYear()%1e4,t,4)}function Xre(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Je(t/60|0,"0",2)+Je(t%60,"0",2)}function iP(e,t){return Je(e.getUTCDate(),t,2)}function Qre(e,t){return Je(e.getUTCHours(),t,2)}function Zre(e,t){return Je(e.getUTCHours()%12||12,t,2)}function Jre(e,t){return Je(1+Ny.count(da(e),e),t,3)}function Z5(e,t){return Je(e.getUTCMilliseconds(),t,3)}function eie(e,t){return Z5(e,t)+"000"}function tie(e,t){return Je(e.getUTCMonth()+1,t,2)}function nie(e,t){return Je(e.getUTCMinutes(),t,2)}function rie(e,t){return Je(e.getUTCSeconds(),t,2)}function iie(e){var t=e.getUTCDay();return t===0?7:t}function aie(e,t){return Je(Py.count(da(e)-1,e),t,2)}function J5(e){var t=e.getUTCDay();return t>=4||t===0?du(e):du.ceil(e)}function oie(e,t){return e=J5(e),Je(du.count(da(e),e)+(da(e).getUTCDay()===4),t,2)}function sie(e){return e.getUTCDay()}function lie(e,t){return Je(wm.count(da(e)-1,e),t,2)}function uie(e,t){return Je(e.getUTCFullYear()%100,t,2)}function cie(e,t){return e=J5(e),Je(e.getUTCFullYear()%100,t,2)}function fie(e,t){return Je(e.getUTCFullYear()%1e4,t,4)}function die(e,t){var n=e.getUTCDay();return e=n>=4||n===0?du(e):du.ceil(e),Je(e.getUTCFullYear()%1e4,t,4)}function hie(){return"+0000"}function aP(){return"%"}function oP(e){return+e}function sP(e){return Math.floor(+e/1e3)}var Al,e4,t4;pie({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 pie(e){return Al=pre(e),e4=Al.format,Al.parse,t4=Al.utcFormat,Al.utcParse,Al}function mie(e){return new Date(e)}function yie(e){return e instanceof Date?+e:+new Date(+e)}function EE(e,t,n,r,i,o,l,u,f,d){var p=uE(),m=p.invert,y=p.domain,g=d(".%L"),x=d(":%S"),w=d("%I:%M"),S=d("%I %p"),O=d("%a %d"),_=d("%b %d"),C=d("%B"),k=d("%Y");function N(M){return(f(M)<M?g:u(M)<M?x:l(M)<M?w:o(M)<M?S:r(M)<M?i(M)<M?O:_:n(M)<M?C:k)(M)}return p.invert=function(M){return new Date(m(M))},p.domain=function(M){return arguments.length?y(Array.from(M,yie)):y().map(mie)},p.ticks=function(M){var R=y();return e(R[0],R[R.length-1],M??10)},p.tickFormat=function(M,R){return R==null?N:d(R)},p.nice=function(M){var R=y();return(!M||typeof M.range!="function")&&(M=t(R[0],R[R.length-1],M??10)),M?y(U5(R,M)):p},p.copy=function(){return rd(p,EE(e,t,n,r,i,o,l,u,f,d))},p}function vie(){return Fr.apply(EE(dre,hre,fa,wE,My,id,bE,vE,os,e4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gie(){return Fr.apply(EE(cre,fre,da,SE,Py,Ny,xE,gE,os,t4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Dy(){var e=0,t=1,n,r,i,o,l=Un,u=!1,f;function d(m){return m==null||isNaN(m=+m)?f:l(i===0?.5:(m=(o(m)-n)*i,u?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t]=m,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(m){return arguments.length?(u=!!m,d):u},d.interpolator=function(m){return arguments.length?(l=m,d):l};function p(m){return function(y){var g,x;return arguments.length?([g,x]=y,l=m(g,x),d):[l(0),l(1)]}}return d.range=p(Au),d.rangeRound=p(lE),d.unknown=function(m){return arguments.length?(f=m,d):f},function(m){return o=m,n=m(e),r=m(t),i=n===r?0:1/(r-n),d}}function bo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function n4(){var e=go(Dy()(Un));return e.copy=function(){return bo(e,n4())},va.apply(e,arguments)}function r4(){var e=dE(Dy()).domain([1,10]);return e.copy=function(){return bo(e,r4()).base(e.base())},va.apply(e,arguments)}function i4(){var e=hE(Dy());return e.copy=function(){return bo(e,i4()).constant(e.constant())},va.apply(e,arguments)}function OE(){var e=pE(Dy());return e.copy=function(){return bo(e,OE()).exponent(e.exponent())},va.apply(e,arguments)}function bie(){return OE.apply(null,arguments).exponent(.5)}function a4(){var e=[],t=Un;function n(r){if(r!=null&&!isNaN(r=+r))return t((td(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(so),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>ine(e,o/r))},n.copy=function(){return a4(t).domain(e)},va.apply(n,arguments)}function Ry(){var e=0,t=.5,n=1,r=1,i,o,l,u,f,d=Un,p,m=!1,y;function g(w){return isNaN(w=+w)?y:(w=.5+((w=+p(w))-o)*(r*w<r*o?u:f),d(m?Math.max(0,Math.min(1,w)):w))}g.domain=function(w){return arguments.length?([e,t,n]=w,i=p(e=+e),o=p(t=+t),l=p(n=+n),u=i===o?0:.5/(o-i),f=o===l?0:.5/(l-o),r=o<i?-1:1,g):[e,t,n]},g.clamp=function(w){return arguments.length?(m=!!w,g):m},g.interpolator=function(w){return arguments.length?(d=w,g):d};function x(w){return function(S){var O,_,C;return arguments.length?([O,_,C]=S,d=Nne(w,[O,_,C]),g):[d(0),d(.5),d(1)]}}return g.range=x(Au),g.rangeRound=x(lE),g.unknown=function(w){return arguments.length?(y=w,g):y},function(w){return p=w,i=w(e),o=w(t),l=w(n),u=i===o?0:.5/(o-i),f=o===l?0:.5/(l-o),r=o<i?-1:1,g}}function o4(){var e=go(Ry()(Un));return e.copy=function(){return bo(e,o4())},va.apply(e,arguments)}function s4(){var e=dE(Ry()).domain([.1,1,10]);return e.copy=function(){return bo(e,s4()).base(e.base())},va.apply(e,arguments)}function l4(){var e=hE(Ry());return e.copy=function(){return bo(e,l4()).constant(e.constant())},va.apply(e,arguments)}function AE(){var e=pE(Ry());return e.copy=function(){return bo(e,AE()).exponent(e.exponent())},va.apply(e,arguments)}function xie(){return AE.apply(null,arguments).exponent(.5)}const Qc=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:aE,scaleDiverging:o4,scaleDivergingLog:s4,scaleDivergingPow:AE,scaleDivergingSqrt:xie,scaleDivergingSymlog:l4,scaleIdentity:V5,scaleImplicit:nw,scaleLinear:B5,scaleLog:F5,scaleOrdinal:iE,scalePoint:sne,scalePow:mE,scaleQuantile:H5,scaleQuantize:G5,scaleRadial:$5,scaleSequential:n4,scaleSequentialLog:r4,scaleSequentialPow:OE,scaleSequentialQuantile:a4,scaleSequentialSqrt:bie,scaleSequentialSymlog:i4,scaleSqrt:ere,scaleSymlog:q5,scaleThreshold:K5,scaleTime:vie,scaleUtc:gie,tickFormat:z5},Symbol.toStringTag,{value:"Module"}));function wie(e){if(e in Qc)return Qc[e]();var t="scale".concat(Gf(e));if(t in Qc)return Qc[t]()}function lP(e,t,n){if(typeof e=="function")return e.copy().domain(t).range(n);if(e!=null){var r=wie(e);if(r!=null)return r.domain(t).range(n),r}}function TE(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?lP(e.scale,n,r):lP(t,n,r)}function Sie(e){return"scale".concat(Gf(e))}function Eie(e){return Sie(e)in Qc}var u4=(e,t,n)=>{if(e!=null){var{scale:r,type:i}=e;if(r==="auto")return i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof r=="string")return Eie(r)?r:"point"}};function Oie(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var o=Math.floor((n+r)/2);(i?e[o]<t:e[o]>t)?n=o+1:r=o}return n}function c4(e,t){if(e){var n=t??e.domain(),r=n.map(o=>{var l;return(l=e(o))!==null&&l!==void 0?l:0}),i=e.range();if(!(n.length===0||i.length<2))return o=>{var l,u,f=Oie(r,o);if(f<=0)return n[0];if(f>=n.length)return n[n.length-1];var d=(l=r[f-1])!==null&&l!==void 0?l:0,p=(u=r[f])!==null&&u!==void 0?u:0;return Math.abs(o-d)<=Math.abs(o-p)?n[f-1]:n[f]}}}function Aie(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):c4(e,void 0)}function uP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(n),!0).forEach(function(r){Tie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tie(e,t,n){return(t=_ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ie(e){var t=Cie(e,"string");return typeof t=="symbol"?t:t+""}function Cie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ow=[0,"auto"],Zt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},f4=(e,t)=>e.cartesianAxis.xAxis[t],ga=(e,t)=>{var n=f4(e,t);return n??Zt},Jt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:ow,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:Wf},d4=(e,t)=>e.cartesianAxis.yAxis[t],ba=(e,t)=>{var n=d4(e,t);return n??Jt},kie={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},_E=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??kie},Lt=(e,t,n)=>{switch(t){case"xAxis":return ga(e,n);case"yAxis":return ba(e,n);case"zAxis":return _E(e,n);case"angleAxis":return QS(e,n);case"radiusAxis":return ZS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},jie=(e,t,n)=>{switch(t){case"xAxis":return ga(e,n);case"yAxis":return ba(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Tu=(e,t,n)=>{switch(t){case"xAxis":return ga(e,n);case"yAxis":return ba(e,n);case"angleAxis":return QS(e,n);case"radiusAxis":return ZS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},h4=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function CE(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var p4=e=>e.graphicalItems.cartesianItems,Nie=$([kt,ed],CE),kE=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),ad=$([p4,Lt,Nie],kE,{memoizeOptions:{resultEqualityCheck:ky}}),m4=$([ad],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(tE)),y4=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Mie=$([ad],y4),jE=e=>e.map(t=>t.data).filter(Boolean).flat(1),Pie=$([ad],jE,{memoizeOptions:{resultEqualityCheck:ky}}),NE=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},ME=$([Pie,u5],NE),PE=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:St(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:St(i,r)}))):e.map(r=>({value:r})),od=$([ME,Lt,ad],PE);function Xl(e){if(Ai(e)||e instanceof Date){var t=Number(e);if(He(t))return t}}function cP(e){if(Array.isArray(e)){var t=[Xl(e[0]),Xl(e[1])];return xi(t)?t:void 0}var n=Xl(e);if(n!=null)return[n,n]}function ha(e){return e.map(Xl).filter(Zn)}function Die(e,t){var n=Xl(e),r=Xl(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var Rie=$([od],e=>e==null?void 0:e.map(t=>t.value).sort(Die));function v4(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Iie(e,t,n){return!n||typeof t!="number"||Oi(t)?[]:n.length?ha(n.flatMap(r=>{var i=St(e,r.dataKey),o,l;if(Array.isArray(i)?[o,l]=i:o=l=i,!(!He(o)||!He(l)))return[t-o,t+l]})):[]}var on=e=>{var t=pn(e),n=Ou(e);return Tu(e,t,n)},sd=$([on],e=>e==null?void 0:e.dataKey),Lie=$([m4,u5,on],C5),g4=(e,t,n,r)=>{var i={},o=t.reduce((l,u)=>{if(u.stackId==null)return l;var f=l[u.stackId];return f==null&&(f=[]),f.push(u),l[u.stackId]=f,l},i);return Object.fromEntries(Object.entries(o).map(l=>{var[u,f]=l,d=r?[...f].reverse():f,p=d.map(eE);return[u,{stackedData:KZ(e,p,n),graphicalItems:d}]}))},b4=$([Lie,m4,Jf,w5],g4),x4=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var l=QZ(e,i,o);if(!(l!=null&&l[0]===0&&l[1]===0))return l}},zie=$([Lt],e=>e.allowDataOverflow),DE=e=>{var t;if(e==null||!("domain"in e))return ow;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=ha(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:ow},RE=$([Lt],DE),IE=$([RE,zie],c5),Bie=$([b4,ya,kt,IE],x4,{memoizeOptions:{resultEqualityCheck:Cy}}),Iy=e=>e.errorBars,Vie=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>v4(n,r)),Em=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var o=i.flat(),l=Math.min(...o),u=Math.max(...o);return[l,u]}},LE=(e,t,n,r,i)=>{var o,l;if(n.length>0&&e.forEach(u=>{n.forEach(f=>{var d,p,m=(d=r[f.id])===null||d===void 0?void 0:d.filter(O=>v4(i,O)),y=St(u,(p=t.dataKey)!==null&&p!==void 0?p:f.dataKey),g=Iie(u,y,m);if(g.length>=2){var x=Math.min(...g),w=Math.max(...g);(o==null||x<o)&&(o=x),(l==null||w>l)&&(l=w)}var S=cP(y);S!=null&&(o=o==null?S[0]:Math.min(o,S[0]),l=l==null?S[1]:Math.max(l,S[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(u=>{var f=cP(St(u,t.dataKey));f!=null&&(o=o==null?f[0]:Math.min(o,f[0]),l=l==null?f[1]:Math.max(l,f[1]))}),He(o)&&He(l))return[o,l]},Uie=$([ME,Lt,Mie,Iy,kt],LE,{memoizeOptions:{resultEqualityCheck:Cy}});function Fie(e){var{value:t}=e;if(Ai(t)||t instanceof Date)return t}var qie=(e,t,n)=>{var r=e.map(Fie).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&Pz(r))?l5(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},w4=e=>e.referenceElements.dots,_u=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),$ie=$([w4,kt,ed],_u),S4=e=>e.referenceElements.areas,Hie=$([S4,kt,ed],_u),E4=e=>e.referenceElements.lines,Gie=$([E4,kt,ed],_u),O4=(e,t)=>{if(e!=null){var n=ha(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Kie=$($ie,kt,O4),A4=(e,t)=>{if(e!=null){var n=ha(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Yie=$([Hie,kt],A4);function Wie(e){var t;if(e.x!=null)return ha([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:ha(n)}function Xie(e){var t;if(e.y!=null)return ha([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:ha(n)}var T4=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?Wie(r):Xie(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Qie=$([Gie,kt],T4),Zie=$(Kie,Qie,Yie,(e,t,n)=>Em(e,n,t)),zE=(e,t,n,r,i,o,l,u)=>{if(n!=null)return n;var f=l==="vertical"&&u==="xAxis"||l==="horizontal"&&u==="yAxis",d=f?Em(r,o,i):Em(o,i);return Pte(t,d,e.allowDataOverflow)},Jie=$([Lt,RE,IE,Bie,Uie,Zie,dt,kt],zE,{memoizeOptions:{resultEqualityCheck:Cy}}),eae=[0,1],BE=(e,t,n,r,i,o,l)=>{if(!((e==null||n==null||n.length===0)&&l===void 0)){var{dataKey:u,type:f}=e,d=ki(t,o);if(d&&u==null){var p;return l5(0,(p=n==null?void 0:n.length)!==null&&p!==void 0?p:0)}return f==="category"?qie(r,e,d):i==="expand"?eae:l}},VE=$([Lt,dt,ME,od,Jf,kt,Jie],BE),xo=$([Lt,h4,YS],u4),UE=(e,t,n)=>{var{niceTicks:r}=t;if(r!=="none"){var i=DE(t),o=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((r==="snap125"||r==="adaptive")&&t!=null&&t.tickCount&&xi(e)){if(o)return x2(e,t.tickCount,t.allowDecimals,r);if(t.type==="number")return w2(e,t.tickCount,t.allowDecimals,r)}if(r==="auto"&&n==="linear"&&t!=null&&t.tickCount){if(o&&xi(e))return x2(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&xi(e))return w2(e,t.tickCount,t.allowDecimals,"adaptive")}}},FE=$([VE,Tu,xo],UE),qE=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&xi(t)&&Array.isArray(n)&&n.length>0){var i,o,l=t[0],u=(i=n[0])!==null&&i!==void 0?i:0,f=t[1],d=(o=n[n.length-1])!==null&&o!==void 0?o:0;return[Math.min(l,u),Math.max(f,d)]}return t},tae=$([Lt,VE,FE,kt],qE),nae=$(od,Lt,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(ha(e.map(m=>m.value))).sort((m,y)=>m-y),i=r[0],o=r[r.length-1];if(i==null||o==null)return 1/0;var l=o-i;if(l===0)return 1/0;for(var u=0;u<r.length-1;u++){var f=r[u],d=r[u+1];if(!(f==null||d==null)){var p=d-f;n=Math.min(n,p)}}return n/l}}),_4=$(nae,dt,zte,hn,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!He(e))return 0;var o=t==="vertical"?r.height:r.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var l=pr(n,e*o),u=e*o/2;return u-l-(u-l)/o*l}return 0}),rae=(e,t,n)=>{var r=ga(e,t);return r==null||typeof r.padding!="string"?0:_4(e,"xAxis",t,n,r.padding)},iae=(e,t,n)=>{var r=ba(e,t);return r==null||typeof r.padding!="string"?0:_4(e,"yAxis",t,n,r.padding)},aae=$(ga,rae,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),oae=$(ba,iae,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),sae=$([hn,aae,yy,my,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),lae=$([hn,dt,oae,yy,my,(e,t,n)=>n],(e,t,n,r,i,o)=>{var{padding:l}=i;return o?[r.height-l.bottom,l.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),ld=(e,t,n,r)=>{var i;switch(t){case"xAxis":return sae(e,n,r);case"yAxis":return lae(e,n,r);case"zAxis":return(i=_E(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return A5(e);case"radiusAxis":return T5(e,n);default:return}},C4=$([Lt,ld],Ay),uae=$([xo,tae],k5),$E=$([Lt,xo,uae,C4],TE),k4=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:o}=n,l=ki(e,r);if(l&&(i==="number"||o!=="auto"))return t.map(u=>u.value)}},HE=$([dt,od,Tu,kt],k4),Ly=$([$E],nE);$([$E],Aie);$([$E,Rie],c4);$([ad,Iy,kt],Vie);function j4(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var zy=(e,t)=>t,By=(e,t,n)=>n,cae=$(hy,zy,By,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(j4)),fae=$(py,zy,By,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(j4)),N4=(e,t)=>({width:e.width,height:t.height}),dae=(e,t)=>{var n=typeof t.width=="number"?t.width:Wf;return{width:n,height:e.height}},hae=$(hn,ga,N4),pae=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},mae=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},yae=$(ma,hn,cae,zy,By,(e,t,n,r,i)=>{var o={},l;return n.forEach(u=>{var f=N4(t,u);l==null&&(l=pae(t,r,e));var d=r==="top"&&!i||r==="bottom"&&i;o[u.id]=l-Number(d)*f.height,l+=(d?-1:1)*f.height}),o}),vae=$(pa,hn,fae,zy,By,(e,t,n,r,i)=>{var o={},l;return n.forEach(u=>{var f=dae(t,u);l==null&&(l=mae(t,r,e));var d=r==="left"&&!i||r==="right"&&i;o[u.id]=l-Number(d)*f.width,l+=(d?-1:1)*f.width}),o}),gae=(e,t)=>{var n=ga(e,t);if(n!=null)return yae(e,n.orientation,n.mirror)},bae=$([hn,ga,gae,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),xae=(e,t)=>{var n=ba(e,t);if(n!=null)return vae(e,n.orientation,n.mirror)},wae=$([hn,ba,xae,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),Sae=$(hn,ba,(e,t)=>{var n=typeof t.width=="number"?t.width:Wf;return{width:n,height:e.height}}),M4=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:o,dataKey:l}=n,u=ki(e,r),f=t.map(d=>d.value);if(l&&u&&o==="category"&&i&&Pz(f))return f}},GE=$([dt,od,Lt,kt],M4),fP=$([dt,jie,xo,Ly,GE,HE,ld,FE,kt],(e,t,n,r,i,o,l,u,f)=>{if(t!=null){var d=ki(e,f);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:f,categoricalDomain:o,duplicateDomain:i,isCategorical:d,niceTicks:u,range:l,realScaleType:n,scale:r}}}),Eae=(e,t,n,r,i,o,l,u,f)=>{if(!(t==null||r==null)){var d=ki(e,f),{type:p,ticks:m,tickCount:y}=t,g=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,x=p==="category"&&r.bandwidth?r.bandwidth()/g:0;x=f==="angleAxis"&&o!=null&&o.length>=2?Mn(o[0]-o[1])*2*x:x;var w=m||i;return w?w.map((S,O)=>{var _=l?l.indexOf(S):S,C=r.map(_);return He(C)?{index:O,coordinate:C+x,value:S,offset:x}:null}).filter(Zn):d&&u?u.map((S,O)=>{var _=r.map(S);return He(_)?{coordinate:_+x,value:S,index:O,offset:x}:null}).filter(Zn):r.ticks?r.ticks(y).map((S,O)=>{var _=r.map(S);return He(_)?{coordinate:_+x,value:S,index:O,offset:x}:null}).filter(Zn):r.domain().map((S,O)=>{var _=r.map(S);return He(_)?{coordinate:_+x,value:l?l[S]:S,index:O,offset:x}:null}).filter(Zn)}},P4=$([dt,Tu,xo,Ly,FE,ld,GE,HE,kt],Eae),Oae=(e,t,n,r,i,o,l)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var u=ki(e,l),{tickCount:f}=t,d=0;return d=l==="angleAxis"&&(r==null?void 0:r.length)>=2?Mn(r[0]-r[1])*2*d:d,u&&o?o.map((p,m)=>{var y=n.map(p);return He(y)?{coordinate:y+d,value:p,index:m,offset:d}:null}).filter(Zn):n.ticks?n.ticks(f).map((p,m)=>{var y=n.map(p);return He(y)?{coordinate:y+d,value:p,index:m,offset:d}:null}).filter(Zn):n.domain().map((p,m)=>{var y=n.map(p);return He(y)?{coordinate:y+d,value:i?i[p]:p,index:m,offset:d}:null}).filter(Zn)}},D4=$([dt,Tu,Ly,ld,GE,HE,kt],Oae),R4=$(Lt,Ly,(e,t)=>{if(!(e==null||t==null))return Sm(Sm({},e),{},{scale:t})}),Aae=$([Lt,xo,VE,C4],TE),Tae=$([Aae],nE);$((e,t,n)=>_E(e,n),Tae,(e,t)=>{if(!(e==null||t==null))return Sm(Sm({},e),{},{scale:t})});var _ae=$([dt,hy,py],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Cae=(e,t,n)=>{var r;return(r=e.renderedTicks[t])===null||r===void 0?void 0:r[n]};$([Cae],e=>{if(!(!e||e.length===0))return t=>{var n,r=1/0,i=e[0];for(var o of e){var l=Math.abs(o.coordinate-t);l<r&&(r=l,i=o)}return(n=i)===null||n===void 0?void 0:n.value}});var I4=e=>e.options.defaultTooltipEventType,L4=e=>e.options.validateTooltipEventTypes;function z4(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function KE(e,t){var n=I4(e),r=L4(e);return z4(t,n,r)}function kae(e){return Ae(t=>KE(t,e))}var B4=(e,t)=>{var n,r=Number(t);if(!(Oi(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},jae=e=>e.tooltip.settings,no={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Nae={itemInteraction:{click:no,hover:no},axisInteraction:{click:no,hover:no},keyboardInteraction:no,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},V4=Dn({name:"tooltip",initialState:Nae,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:gt()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Ir(e).tooltipItemPayloads.indexOf(n);i>-1&&(e.tooltipItemPayloads[i]=r)},prepare:gt()},removeTooltipEntrySettings:{reducer(e,t){var n=Ir(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:gt()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Mae,replaceTooltipEntrySettings:Pae,removeTooltipEntrySettings:Dae,setTooltipSettingsState:Rae,setActiveMouseOverItemIndex:U4,mouseLeaveItem:Iae,mouseLeaveChart:F4,setActiveClickItemIndex:Lae,setMouseOverAxisIndex:q4,setMouseClickAxisIndex:zae,setSyncInteraction:sw,setKeyboardInteraction:Om}=V4.actions,Bae=V4.reducer;function dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dP(Object(n),!0).forEach(function(r){Vae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vae(e,t,n){return(t=Uae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uae(e){var t=Fae(e,"string");return typeof t=="symbol"?t:t+""}function Fae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qae(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function $ae(e){return e.index!=null}var $4=(e,t,n,r)=>{if(t==null)return no;var i=qae(e,t,n);if(i==null)return no;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if($ae(i)){if(o)return Kh(Kh({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return Kh(Kh({},no),{},{coordinate:i.coordinate})};function Hae(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Gae(e,t){var n=Hae(e),r=t[0],i=t[1];if(n===void 0)return!1;var o=Math.min(r,i),l=Math.max(r,i);return n>=o&&n<=l}function Kae(e,t,n){if(n==null||t==null)return!0;var r=St(e,t);return r==null||!xi(n)?!0:Gae(r,n)}var YE=(e,t,n,r)=>{var i=e==null?void 0:e.index;if(i==null)return null;var o=Number(i);if(!He(o))return i;var l=0,u=1/0;t.length>0&&(u=t.length-1);var f=Math.max(l,Math.min(o,u)),d=t[f];return d==null||Kae(d,n,r)?String(f):null},H4=(e,t,n,r,i,o,l)=>{if(o!=null){var u=l[0],f=u==null?void 0:u.getPosition(o);if(f!=null)return f;var d=i==null?void 0:i[Number(o)];if(d)switch(n){case"horizontal":return{x:d.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:d.coordinate}}}},G4=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(n==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&r!=null){var o=e.tooltipItemPayloads[0];return o!=null?[o]:[]}return e.tooltipItemPayloads.filter(l=>{var u;return((u=l.settings)===null||u===void 0?void 0:u.graphicalItemId)===i})},K4=e=>e.options.tooltipPayloadSearcher,Cu=e=>e.tooltip;function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(n),!0).forEach(function(r){Yae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yae(e,t,n){return(t=Wae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wae(e){var t=Xae(e,"string");return typeof t=="symbol"?t:t+""}function Xae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qae(e){if(typeof e=="string"||typeof e=="number")return e}function Zae(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function Jae(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function mP(e){if(typeof e=="string")return e}function eoe(e){if(!(e==null||typeof e!="object")){var t="name"in e?Qae(e.name):void 0,n="unit"in e?Zae(e.unit):void 0,r="dataKey"in e?Jae(e.dataKey):void 0,i="payload"in e?e.payload:void 0,o="color"in e?mP(e.color):void 0,l="fill"in e?mP(e.fill):void 0;return{name:t,unit:n,dataKey:r,payload:i,color:o,fill:l}}}function toe(e,t){return e??t}var Y4=(e,t,n,r,i,o,l)=>{if(!(t==null||o==null)){var{chartData:u,computedData:f,dataStartIndex:d,dataEndIndex:p}=n,m=[];return e.reduce((y,g)=>{var x,{dataDefinedOnItem:w,settings:S}=g,O=toe(w,u),_=Array.isArray(O)?_3(O,d,p):O,C=(x=S==null?void 0:S.dataKey)!==null&&x!==void 0?x:r,k=S==null?void 0:S.nameKey,N;if(r&&Array.isArray(_)&&!Array.isArray(_[0])&&l==="axis"?N=Dz(_,r,i):N=o(_,t,f,k),Array.isArray(N))N.forEach(R=>{var P,V,H=eoe(R),Z=H==null?void 0:H.name,F=H==null?void 0:H.dataKey,he=H==null?void 0:H.payload,ne=pP(pP({},S),{},{name:Z,unit:H==null?void 0:H.unit,color:(P=H==null?void 0:H.color)!==null&&P!==void 0?P:S==null?void 0:S.color,fill:(V=H==null?void 0:H.fill)!==null&&V!==void 0?V:S==null?void 0:S.fill});y.push(cM({tooltipEntrySettings:ne,dataKey:F,payload:he,value:St(he,F),name:Z==null?void 0:String(Z)}))});else{var M;y.push(cM({tooltipEntrySettings:S,dataKey:C,payload:N,value:St(N,C),name:(M=St(N,k))!==null&&M!==void 0?M:S==null?void 0:S.name}))}return y},m)}},WE=$([on,h4,YS],u4),noe=$([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),roe=$([pn,Ou],CE),ku=$([noe,on,roe],kE,{memoizeOptions:{resultEqualityCheck:ky}}),ioe=$([ku],e=>e.filter(tE)),aoe=$([ku],jE,{memoizeOptions:{resultEqualityCheck:ky}}),ju=$([aoe,ya],NE),ooe=$([ioe,ya,on],C5),XE=$([ju,on,ku],PE),W4=$([on],DE),soe=$([on],e=>e.allowDataOverflow),X4=$([W4,soe],c5),loe=$([ku],e=>e.filter(tE)),uoe=$([ooe,loe,Jf,w5],g4),coe=$([uoe,ya,pn,X4],x4),foe=$([ku],y4),doe=$([ju,on,foe,Iy,pn],LE,{memoizeOptions:{resultEqualityCheck:Cy}}),hoe=$([w4,pn,Ou],_u),poe=$([hoe,pn],O4),moe=$([S4,pn,Ou],_u),yoe=$([moe,pn],A4),voe=$([E4,pn,Ou],_u),goe=$([voe,pn],T4),boe=$([poe,goe,yoe],Em),xoe=$([on,W4,X4,coe,doe,boe,dt,pn],zE),ud=$([on,dt,ju,XE,Jf,pn,xoe],BE),woe=$([ud,on,WE],UE),Soe=$([on,ud,woe,pn],qE),Q4=e=>{var t=pn(e),n=Ou(e),r=!1;return ld(e,t,n,r)},Z4=$([on,Q4],Ay),Eoe=$([on,WE,Soe,Z4],TE),J4=$([Eoe],nE),Ooe=$([dt,XE,on,pn],M4),Aoe=$([dt,XE,on,pn],k4),Toe=(e,t,n,r,i,o,l,u)=>{if(t){var{type:f}=t,d=ki(e,u);if(r){var p=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,m=f==="category"&&r.bandwidth?r.bandwidth()/p:0;return m=u==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?Mn(i[0]-i[1])*2*m:m,d&&l?l.map((y,g)=>{var x=r.map(y);return He(x)?{coordinate:x+m,value:y,index:g,offset:m}:null}).filter(Zn):r.domain().map((y,g)=>{var x=r.map(y);return He(x)?{coordinate:x+m,value:o?o[y]:y,index:g,offset:m}:null}).filter(Zn)}}},xa=$([dt,on,WE,J4,Q4,Ooe,Aoe,pn],Toe),QE=$([I4,L4,jae],(e,t,n)=>z4(n.shared,e,t)),eB=e=>e.tooltip.settings.trigger,ZE=e=>e.tooltip.settings.defaultIndex,cd=$([Cu,QE,eB,ZE],$4),hu=$([cd,ju,sd,ud],YE),tB=$([xa,hu],B4),nB=$([cd],e=>{if(e)return e.dataKey}),rB=$([cd],e=>{if(e)return e.graphicalItemId}),iB=$([Cu,QE,eB,ZE],G4),_oe=$([pa,ma,dt,hn,xa,ZE,iB],H4),Coe=$([cd,_oe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),koe=$([cd],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),joe=$([iB,hu,ya,sd,tB,K4,QE],Y4),Noe=$([joe],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function yP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yP(Object(n),!0).forEach(function(r){Moe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Moe(e,t,n){return(t=Poe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Poe(e){var t=Doe(e,"string");return typeof t=="symbol"?t:t+""}function Doe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Roe=()=>Ae(on),Ioe=()=>{var e=Roe(),t=Ae(xa),n=Ae(J4);return em(!e||!n?void 0:vP(vP({},e),{},{scale:n}),t)};function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){Loe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Loe(e,t,n){return(t=zoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zoe(e){var t=Boe(e,"string");return typeof t=="symbol"?t:t+""}function Boe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Voe=(e,t,n,r)=>{var i=t.find(o=>o&&o.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.relativeY};if(e==="vertical")return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},Uoe=(e,t,n,r)=>{var i=t.find(d=>d&&d.index===n);if(i){if(e==="centric"){var o=i.coordinate,{radius:l}=r;return Tl(Tl(Tl({},r),Kt(r.cx,r.cy,l,o)),{},{angle:o,radius:l})}var u=i.coordinate,{angle:f}=r;return Tl(Tl(Tl({},r),Kt(r.cx,r.cy,u,f)),{},{angle:f,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Foe(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var aB=(e,t,n,r,i)=>{var o,l=(o=t==null?void 0:t.length)!==null&&o!==void 0?o:0;if(l<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<l;u++){var f,d,p,m,y,g=u>0?(f=n[u-1])===null||f===void 0?void 0:f.coordinate:(d=n[l-1])===null||d===void 0?void 0:d.coordinate,x=(p=n[u])===null||p===void 0?void 0:p.coordinate,w=u>=l-1?(m=n[0])===null||m===void 0?void 0:m.coordinate:(y=n[u+1])===null||y===void 0?void 0:y.coordinate,S=void 0;if(!(g==null||x==null||w==null))if(Mn(x-g)!==Mn(w-x)){var O=[];if(Mn(w-x)===Mn(i[1]-i[0])){S=w;var _=x+i[1]-i[0];O[0]=Math.min(_,(_+g)/2),O[1]=Math.max(_,(_+g)/2)}else{S=g;var C=w+i[1]-i[0];O[0]=Math.min(x,(C+x)/2),O[1]=Math.max(x,(C+x)/2)}var k=[Math.min(x,(S+x)/2),Math.max(x,(S+x)/2)];if(e>k[0]&&e<=k[1]||e>=O[0]&&e<=O[1]){var N;return(N=n[u])===null||N===void 0?void 0:N.index}}else{var M=Math.min(g,w),R=Math.max(g,w);if(e>(M+x)/2&&e<=(R+x)/2){var P;return(P=n[u])===null||P===void 0?void 0:P.index}}}else if(t)for(var V=0;V<l;V++){var H=t[V];if(H!=null){var Z=t[V+1],F=t[V-1];if(V===0&&Z!=null&&e<=(H.coordinate+Z.coordinate)/2||V===l-1&&F!=null&&e>(H.coordinate+F.coordinate)/2||V>0&&V<l-1&&F!=null&&Z!=null&&e>(H.coordinate+F.coordinate)/2&&e<=(H.coordinate+Z.coordinate)/2)return H.index}}return-1},oB=()=>Ae(YS),JE=(e,t)=>t,sB=(e,t,n)=>n,eO=(e,t,n,r)=>r,qoe=$(xa,e=>ny(e,t=>t.coordinate)),tO=$([Cu,JE,sB,eO],$4),nO=$([tO,ju,sd,ud],YE),$oe=(e,t,n)=>{if(t!=null){var r=Cu(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},lB=$([Cu,JE,sB,eO],G4),Am=$([pa,ma,dt,hn,xa,eO,lB],H4),Hoe=$([tO,Am],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),uB=$([xa,nO],B4),Goe=$([lB,nO,ya,sd,uB,K4,JE],Y4),Koe=$([tO,nO],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Yoe=(e,t,n,r,i,o,l)=>{if(!(!e||!n||!r||!i)&&Foe(e,l)){var u=ZZ(e,t),f=aB(u,o,i,n,r),d=Voe(t,i,f,e);return{activeIndex:String(f),activeCoordinate:d}}},Woe=(e,t,n,r,i,o,l)=>{if(!(!e||!r||!i||!o||!n)){var u=Ste(e,n);if(u){var f=JZ(u,t),d=aB(f,l,o,r,i),p=Uoe(t,o,d,u);return{activeIndex:String(d),activeCoordinate:p}}}},Xoe=(e,t,n,r,i,o,l,u)=>{if(!(!e||!t||!r||!i||!o))return t==="horizontal"||t==="vertical"?Yoe(e,t,r,i,o,l,u):Woe(e,t,n,r,i,o,l)},Qoe=$(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),Zoe=$(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(_n)),n=Array.from(new Set(t));return n.sort((r,i)=>r-i)},{memoizeOptions:{resultEqualityCheck:Gte}});function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){Joe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Joe(e,t,n){return(t=ese(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ese(e){var t=tse(e,"string");return typeof t=="symbol"?t:t+""}function tse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nse={},rse={zIndexMap:Object.values(_n).reduce((e,t)=>xP(xP({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),nse)},ise=new Set(Object.values(_n));function ase(e){return ise.has(e)}var cB=Dn({name:"zIndex",initialState:rse,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:gt()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!ase(n)&&delete e.zIndexMap[n])},prepare:gt()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:i?void 0:r,panoramaElement:i?r:void 0}},prepare:gt()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:gt()}}}),{registerZIndexPortal:ose,unregisterZIndexPortal:sse,registerZIndexPortalElement:lse,unregisterZIndexPortalElement:use}=cB.actions,cse=cB.reducer;function ai(e){var{zIndex:t,children:n}=e,r=kJ(),i=r&&t!==void 0&&t!==0,o=tr(),l=mt();E.useLayoutEffect(()=>i?(l(ose({zIndex:t})),()=>{l(sse({zIndex:t}))}):_s,[l,t,i]);var u=Ae(f=>Qoe(f,t,o));return i?u?mz.createPortal(n,u):null:n}function lw(){return lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lw.apply(null,arguments)}function wP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wP(Object(n),!0).forEach(function(r){fse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fse(e,t,n){return(t=dse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dse(e){var t=hse(e,"string");return typeof t=="symbol"?t:t+""}function hse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pse(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return E.isValidElement(t)?E.cloneElement(t,r):E.createElement(n,r)}function mse(e){var t,{coordinate:n,payload:r,index:i,offset:o,tooltipAxisBandSize:l,layout:u,cursor:f,tooltipEventType:d,chartName:p}=e,m=n,y=r,g=i;if(!f||!m||p!=="ScatterChart"&&d!=="axis")return null;var x,w,S;if(p==="ScatterChart")x=m,w=Lee,S=_n.cursorLine;else if(p==="BarChart")x=zee(u,m,o,l),w=r5,S=_n.cursorRectangle;else if(u==="radial"&&Lz(m)){var{cx:O,cy:_,radius:C,startAngle:k,endAngle:N}=a5(m);x={cx:O,cy:_,startAngle:k,endAngle:N,innerRadius:C,outerRadius:C},w=s5,S=_n.cursorLine}else x={points:Tte(u,m,o)},w=Yl,S=_n.cursorLine;var M=typeof f=="object"&&"className"in f?f.className:void 0,R=Yh(Yh(Yh(Yh({stroke:"#ccc",pointerEvents:"none"},o),x),su(f)),{},{payload:y,payloadIndex:g,className:tt("recharts-tooltip-cursor",M)});return E.createElement(ai,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:S},E.createElement(pse,{cursor:f,cursorComp:w,cursorProps:R}))}function yse(e){var t=Ioe(),n=L3(),r=wu(),i=oB();return t==null||n==null||r==null||i==null?null:E.createElement(mse,lw({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var fB=E.createContext(null),vse=()=>E.useContext(fB),bx={exports:{}},SP;function gse(){return SP||(SP=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,d,p){this.fn=f,this.context=d,this.once=p||!1}function o(f,d,p,m,y){if(typeof p!="function")throw new TypeError("The listener must be a function");var g=new i(p,m||f,y),x=n?n+d:d;return f._events[x]?f._events[x].fn?f._events[x]=[f._events[x],g]:f._events[x].push(g):(f._events[x]=g,f._eventsCount++),f}function l(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var d=[],p,m;if(this._eventsCount===0)return d;for(m in p=this._events)t.call(p,m)&&d.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},u.prototype.listeners=function(d){var p=n?n+d:d,m=this._events[p];if(!m)return[];if(m.fn)return[m.fn];for(var y=0,g=m.length,x=new Array(g);y<g;y++)x[y]=m[y].fn;return x},u.prototype.listenerCount=function(d){var p=n?n+d:d,m=this._events[p];return m?m.fn?1:m.length:0},u.prototype.emit=function(d,p,m,y,g,x){var w=n?n+d:d;if(!this._events[w])return!1;var S=this._events[w],O=arguments.length,_,C;if(S.fn){switch(S.once&&this.removeListener(d,S.fn,void 0,!0),O){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,p),!0;case 3:return S.fn.call(S.context,p,m),!0;case 4:return S.fn.call(S.context,p,m,y),!0;case 5:return S.fn.call(S.context,p,m,y,g),!0;case 6:return S.fn.call(S.context,p,m,y,g,x),!0}for(C=1,_=new Array(O-1);C<O;C++)_[C-1]=arguments[C];S.fn.apply(S.context,_)}else{var k=S.length,N;for(C=0;C<k;C++)switch(S[C].once&&this.removeListener(d,S[C].fn,void 0,!0),O){case 1:S[C].fn.call(S[C].context);break;case 2:S[C].fn.call(S[C].context,p);break;case 3:S[C].fn.call(S[C].context,p,m);break;case 4:S[C].fn.call(S[C].context,p,m,y);break;default:if(!_)for(N=1,_=new Array(O-1);N<O;N++)_[N-1]=arguments[N];S[C].fn.apply(S[C].context,_)}}return!0},u.prototype.on=function(d,p,m){return o(this,d,p,m,!1)},u.prototype.once=function(d,p,m){return o(this,d,p,m,!0)},u.prototype.removeListener=function(d,p,m,y){var g=n?n+d:d;if(!this._events[g])return this;if(!p)return l(this,g),this;var x=this._events[g];if(x.fn)x.fn===p&&(!y||x.once)&&(!m||x.context===m)&&l(this,g);else{for(var w=0,S=[],O=x.length;w<O;w++)(x[w].fn!==p||y&&!x[w].once||m&&x[w].context!==m)&&S.push(x[w]);S.length?this._events[g]=S.length===1?S[0]:S:l(this,g)}return this},u.prototype.removeAllListeners=function(d){var p;return d?(p=n?n+d:d,this._events[p]&&l(this,p)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(bx)),bx.exports}var bse=gse();const xse=mo(bse);var Df=new xse,uw="recharts.syncEvent.tooltip",EP="recharts.syncEvent.brush",dB=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Oi(n))return e[n]}},wse={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},hB=Dn({name:"options",initialState:wse,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Sse=hB.reducer,{createEventEmitter:Ese}=hB.actions;function Ose(e){return e.tooltip.syncInteraction}var Ase={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},pB=Dn({name:"chartData",initialState:Ase,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:OP,setDataStartEndIndexes:Tse,setComputedData:sye}=pB.actions,_se=pB.reducer,Cse=["x","y"];function AP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AP(Object(n),!0).forEach(function(r){kse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kse(e,t,n){return(t=jse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jse(e){var t=Nse(e,"string");return typeof t=="symbol"?t:t+""}function Nse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mse(e,t){if(e==null)return{};var n,r,i=Pse(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Dse(){var e=Ae(WS),t=Ae(XS),n=mt(),r=Ae(S5),i=Ae(xa),o=wu(),l=vy(),u=Ae(f=>f.rootProps.className);E.useEffect(()=>{if(e==null)return _s;var f=(d,p,m)=>{if(t!==m&&e===d){if(r==="index"){var y;if(l&&p!==null&&p!==void 0&&(y=p.payload)!==null&&y!==void 0&&y.coordinate&&p.payload.sourceViewBox){var g=p.payload.coordinate,{x,y:w}=g,S=Mse(g,Cse),{x:O,y:_,width:C,height:k}=p.payload.sourceViewBox,N=_l(_l({},S),{},{x:l.x+(C?(x-O)/C:0)*l.width,y:l.y+(k?(w-_)/k:0)*l.height});n(_l(_l({},p),{},{payload:_l(_l({},p.payload),{},{coordinate:N})}))}else n(p);return}if(i!=null){var M;if(typeof r=="function"){var R={activeTooltipIndex:p.payload.index==null?void 0:Number(p.payload.index),isTooltipActive:p.payload.active,activeIndex:p.payload.index==null?void 0:Number(p.payload.index),activeLabel:p.payload.label,activeDataKey:p.payload.dataKey,activeCoordinate:p.payload.coordinate},P=r(i,R);M=i[P]}else r==="value"&&(M=i.find(D=>String(D.value)===p.payload.label));var{coordinate:V}=p.payload;if(M==null||p.payload.active===!1||V==null||l==null){n(sw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:H,y:Z}=V,F=Math.min(H,l.x+l.width),he=Math.min(Z,l.y+l.height),ne={x:o==="horizontal"?M.coordinate:F,y:o==="horizontal"?he:M.coordinate},ee=sw({active:p.payload.active,coordinate:ne,dataKey:p.payload.dataKey,index:String(M.index),label:p.payload.label,sourceViewBox:p.payload.sourceViewBox,graphicalItemId:p.payload.graphicalItemId});n(ee)}}};return Df.on(uw,f),()=>{Df.off(uw,f)}},[u,n,t,e,r,i,o,l])}function Rse(){var e=Ae(WS),t=Ae(XS),n=mt();E.useEffect(()=>{if(e==null)return _s;var r=(i,o,l)=>{t!==l&&e===i&&n(Tse(o))};return Df.on(EP,r),()=>{Df.off(EP,r)}},[n,t,e])}function Ise(){var e=mt();E.useEffect(()=>{e(Ese())},[e]),Dse(),Rse()}function Lse(e,t,n,r,i,o){var l=Ae(x=>$oe(x,e,t)),u=Ae(rB),f=Ae(XS),d=Ae(WS),p=Ae(S5),m=Ae(Ose),y=m==null?void 0:m.active,g=vy();E.useEffect(()=>{if(!y&&d!=null&&f!=null){var x=sw({active:o,coordinate:n,dataKey:l,index:i,label:typeof r=="number"?String(r):r,sourceViewBox:g,graphicalItemId:u});Df.emit(uw,d,x,f)}},[y,n,l,u,i,r,f,d,p,o,g])}function TP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _P(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TP(Object(n),!0).forEach(function(r){zse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zse(e,t,n){return(t=Bse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bse(e){var t=Vse(e,"string");return typeof t=="symbol"?t:t+""}function Vse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Use(e){return e.dataKey}function Fse(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(dee,t)}var CP=[],qse={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function cw(e){var t,n,r=Pn(e,qse),{active:i,allowEscapeViewBox:o,animationDuration:l,animationEasing:u,content:f,filterNull:d,isAnimationActive:p,offset:m,payloadUniqBy:y,position:g,reverseDirection:x,useTranslate3d:w,wrapperStyle:S,cursor:O,shared:_,trigger:C,defaultIndex:k,portal:N,axisId:M}=r,R=mt(),P=typeof k=="number"?String(k):k;E.useEffect(()=>{R(Rae({shared:_,trigger:C,axisId:M,active:i,defaultIndex:P}))},[R,_,C,M,i,P]);var V=vy(),H=Z3(),Z=kae(_),{activeIndex:F,isActive:he}=(t=Ae(Be=>Koe(Be,Z,C,P)))!==null&&t!==void 0?t:{},ne=Ae(Be=>Goe(Be,Z,C,P)),ee=Ae(Be=>uB(Be,Z,C,P)),D=Ae(Be=>Hoe(Be,Z,C,P)),q=ne,B=vse(),ce=(n=i??he)!==null&&n!==void 0?n:!1,[Y,I]=BQ([q,ce]),Q=Z==="axis"?ee:void 0;Lse(Z,C,D,Q,F,ce);var ue=N??B;if(ue==null||V==null||Z==null)return null;var fe=q??CP;ce||(fe=CP),d&&fe.length&&(fe=fQ(fe.filter(Be=>Be.value!=null&&(Be.hide!==!0||r.includeHidden)),y,Use));var de=fe.length>0,me=_P(_P({},r),{},{payload:fe,label:Q,active:ce,activeIndex:F,coordinate:D,accessibilityLayer:H}),ke=E.createElement(Eee,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:p,active:ce,coordinate:D,hasPayload:de,offset:m,position:g,reverseDirection:x,useTranslate3d:w,viewBox:V,wrapperStyle:S,lastBoundingBox:Y,innerRef:I,hasPortalFromProps:!!N},Fse(f,me));return E.createElement(E.Fragment,null,mz.createPortal(ke,ue),ce&&E.createElement(yse,{cursor:O,tooltipEventType:Z,coordinate:D,payload:fe,index:F}))}var Vy=e=>null;Vy.displayName="Cell";function $se(e,t,n){return(t=Hse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hse(e){var t=Gse(e,"string");return typeof t=="symbol"?t:t+""}function Gse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Kse{constructor(t){$se(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function kP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kP(Object(n),!0).forEach(function(r){Wse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wse(e,t,n){return(t=Xse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xse(e){var t=Qse(e,"string");return typeof t=="symbol"?t:t+""}function Qse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zse={cacheSize:2e3,enableCache:!0},mB=Yse({},Zse),jP=new Kse(mB.cacheSize),Jse={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},NP="recharts_measurement_span";function ele(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",l=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(o,"|").concat(l,"|").concat(u)}var MP=(e,t)=>{try{var n=document.getElementById(NP);n||(n=document.createElement("span"),n.setAttribute("id",NP),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,Jse,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},sf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Zf.isSsr)return{width:0,height:0};if(!mB.enableCache)return MP(t,n);var r=ele(t,n),i=jP.get(r);if(i)return i;var o=MP(t,n);return jP.set(r,o),o},yB;function tle(e,t,n){return(t=nle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nle(e){var t=rle(e,"string");return typeof t=="symbol"?t:t+""}function rle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,DP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ile=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,ale=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ole={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},sle=["cm","mm","pt","pc","in","Q","px"];function lle(e){return sle.includes(e)}var Ul="NaN";function ule(e,t){return e*ole[t]}class On{static parse(t){var n,[,r,i]=(n=ale.exec(t))!==null&&n!==void 0?n:[];return r==null?On.NaN:new On(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Oi(t)&&(this.unit=""),n!==""&&!ile.test(n)&&(this.num=NaN,this.unit=""),lle(n)&&(this.num=ule(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new On(NaN,""):new On(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new On(NaN,""):new On(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new On(NaN,""):new On(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new On(NaN,""):new On(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Oi(this.num)}}yB=On;tle(On,"NaN",new yB(NaN,""));function vB(e){if(e==null||e.includes(Ul))return Ul;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=(n=PP.exec(t))!==null&&n!==void 0?n:[],l=On.parse(r??""),u=On.parse(o??""),f=i==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return Ul;t=t.replace(PP,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,[,p,m,y]=(d=DP.exec(t))!==null&&d!==void 0?d:[],g=On.parse(p??""),x=On.parse(y??""),w=m==="+"?g.add(x):g.subtract(x);if(w.isNaN())return Ul;t=t.replace(DP,w.toString())}return t}var RP=/\(([^()]*)\)/;function cle(e){for(var t=e,n;(n=RP.exec(t))!=null;){var[,r]=n;t=t.replace(RP,vB(r))}return t}function fle(e){var t=e.replace(/\s+/g,"");return t=cle(t),t=vB(t),t}function dle(e){try{return fle(e)}catch{return Ul}}function xx(e){var t=dle(e.slice(5,-1));return t===Ul?"":t}var hle=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],ple=["dx","dy","angle","className","breakAll"];function fw(){return fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fw.apply(null,arguments)}function IP(e,t){if(e==null)return{};var n,r,i=mle(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var gB=/[ \f\n\r\t\v\u2028\u2029]+/,bB=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];dn(t)||(n?i=t.toString().split(""):i=t.toString().split(gB));var o=i.map(u=>({word:u,width:sf(u,r).width})),l=n?0:sf(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}};function xB(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function yle(e){return dn(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var wB=(e,t,n,r)=>e.reduce((i,o)=>{var{word:l,width:u}=o,f=i[i.length-1];if(f&&u!=null&&(t==null||r||f.width+u+n<Number(t)))f.words.push(l),f.width+=u+n;else{var d={words:[l],width:u};i.push(d)}return i},[]),SB=e=>e.reduce((t,n)=>t.width>n.width?t:n),vle="…",LP=(e,t,n,r,i,o,l,u)=>{var f=e.slice(0,t),d=bB({breakAll:n,style:r,children:f+vle});if(!d)return[!1,[]];var p=wB(d.wordsWithComputedWidth,o,l,u),m=p.length>i||SB(p).width>Number(o);return[m,p]},gle=(e,t,n,r,i)=>{var{maxLines:o,children:l,style:u,breakAll:f}=e,d=xe(o),p=String(l),m=wB(t,r,n,i);if(!d||i)return m;var y=m.length>o||SB(m).width>Number(r);if(!y)return m;for(var g=0,x=p.length-1,w=0,S;g<=x&&w<=p.length-1;){var O=Math.floor((g+x)/2),_=O-1,[C,k]=LP(p,_,f,u,o,r,n,i),[N]=LP(p,O,f,u,o,r,n,i);if(!C&&!N&&(g=O+1),C&&N&&(x=O-1),!C&&N){S=k;break}w++}return S||m},zP=e=>{var t=dn(e)?[]:e.toString().split(gB);return[{words:t,width:void 0}]},ble=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:l}=e;if((t||n)&&!Zf.isSsr){var u,f,d=bB({breakAll:o,children:r,style:i});if(d){var{wordsWithComputedWidth:p,spaceWidth:m}=d;u=p,f=m}else return zP(r);return gle({breakAll:o,children:r,maxLines:l,style:i},u,f,t,!!n)}return zP(r)},EB="#808080",xle={angle:0,breakAll:!1,capHeight:"0.71em",fill:EB,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Uy=E.forwardRef((e,t)=>{var n=Pn(e,xle),{x:r,y:i,lineHeight:o,capHeight:l,fill:u,scaleToFit:f,textAnchor:d,verticalAnchor:p}=n,m=IP(n,hle),y=E.useMemo(()=>ble({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:f,style:m.style,width:m.width}),[m.breakAll,m.children,m.maxLines,f,m.style,m.width]),{dx:g,dy:x,angle:w,className:S,breakAll:O}=m,_=IP(m,ple);if(!Ai(r)||!Ai(i)||y.length===0)return null;var C=Number(r)+(xe(g)?g:0),k=Number(i)+(xe(x)?x:0);if(!He(C)||!He(k))return null;var N;switch(p){case"start":N=xx("calc(".concat(l,")"));break;case"middle":N=xx("calc(".concat((y.length-1)/2," * -").concat(o," + (").concat(l," / 2))"));break;default:N=xx("calc(".concat(y.length-1," * -").concat(o,")"));break}var M=[],R=y[0];if(f&&R!=null){var P=R.width,{width:V}=m;M.push("scale(".concat(xe(V)&&xe(P)?V/P:1,")"))}return w&&M.push("rotate(".concat(w,", ").concat(C,", ").concat(k,")")),M.length&&(_.transform=M.join(" ")),E.createElement("text",fw({},Fn(_),{ref:t,x:C,y:k,className:tt("recharts-text",S),textAnchor:d,fill:u.includes("url")?EB:u}),y.map((H,Z)=>{var F=H.words.join(O?"":" ");return E.createElement("tspan",{x:C,dy:Z===0?N:o,key:"".concat(F,"-").concat(Z)},F)}))});Uy.displayName="Text";function BP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BP(Object(n),!0).forEach(function(r){wle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wle(e,t,n){return(t=Sle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sle(e){var t=Ele(e,"string");return typeof t=="symbol"?t:t+""}function Ele(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ole=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i}=e,{x:o,y:l,height:u,upperWidth:f,lowerWidth:d}=US(t),p=o,m=o+(f-d)/2,y=(p+m)/2,g=(f+d)/2,x=p+f/2,w=u>=0?1:-1,S=w*r,O=w>0?"end":"start",_=w>0?"start":"end",C=f>=0?1:-1,k=C*r,N=C>0?"end":"start",M=C>0?"start":"end",R=i;if(n==="top"){var P={x:p+f/2,y:l-S,horizontalAnchor:"middle",verticalAnchor:O};return R&&(P.height=Math.max(l-R.y,0),P.width=f),P}if(n==="bottom"){var V={x:m+d/2,y:l+u+S,horizontalAnchor:"middle",verticalAnchor:_};return R&&(V.height=Math.max(R.y+R.height-(l+u),0),V.width=d),V}if(n==="left"){var H={x:y-k,y:l+u/2,horizontalAnchor:N,verticalAnchor:"middle"};return R&&(H.width=Math.max(H.x-R.x,0),H.height=u),H}if(n==="right"){var Z={x:y+g+k,y:l+u/2,horizontalAnchor:M,verticalAnchor:"middle"};return R&&(Z.width=Math.max(R.x+R.width-Z.x,0),Z.height=u),Z}var F=R?{width:g,height:u}:{};return n==="insideLeft"?hi({x:y+k,y:l+u/2,horizontalAnchor:M,verticalAnchor:"middle"},F):n==="insideRight"?hi({x:y+g-k,y:l+u/2,horizontalAnchor:N,verticalAnchor:"middle"},F):n==="insideTop"?hi({x:p+f/2,y:l+S,horizontalAnchor:"middle",verticalAnchor:_},F):n==="insideBottom"?hi({x:m+d/2,y:l+u-S,horizontalAnchor:"middle",verticalAnchor:O},F):n==="insideTopLeft"?hi({x:p+k,y:l+S,horizontalAnchor:M,verticalAnchor:_},F):n==="insideTopRight"?hi({x:p+f-k,y:l+S,horizontalAnchor:N,verticalAnchor:_},F):n==="insideBottomLeft"?hi({x:m+k,y:l+u-S,horizontalAnchor:M,verticalAnchor:O},F):n==="insideBottomRight"?hi({x:m+d-k,y:l+u-S,horizontalAnchor:N,verticalAnchor:O},F):n&&typeof n=="object"&&(xe(n.x)||ws(n.x))&&(xe(n.y)||ws(n.y))?hi({x:o+pr(n.x,g),y:l+pr(n.y,u),horizontalAnchor:"end",verticalAnchor:"end"},F):hi({x,y:l+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},F)},Ale=["labelRef"],Tle=["content"];function VP(e,t){if(e==null)return{};var n,r,i=_le(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _le(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UP(Object(n),!0).forEach(function(r){Cle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cle(e,t,n){return(t=kle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kle(e){var t=jle(e,"string");return typeof t=="symbol"?t:t+""}function jle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(null,arguments)}var OB=E.createContext(null),Nle=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:o,height:l,children:u}=e,f=E.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:o,height:l}),[t,n,r,i,o,l]);return E.createElement(OB.Provider,{value:f},u)},AB=()=>{var e=E.useContext(OB),t=vy();return e||(t?US(t):void 0)},Mle=E.createContext(null),Ple=()=>{var e=E.useContext(Mle),t=Ae(_5);return e||t},Dle=e=>{var{value:t,formatter:n}=e,r=dn(e.children)?t:e.children;return typeof n=="function"?n(r):r},rO=e=>e!=null&&typeof e=="function",Rle=(e,t)=>{var n=Mn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Ile=(e,t,n,r,i)=>{var{offset:o,className:l}=e,{cx:u,cy:f,innerRadius:d,outerRadius:p,startAngle:m,endAngle:y,clockWise:g}=i,x=(d+p)/2,w=Rle(m,y),S=w>=0?1:-1,O,_;switch(t){case"insideStart":O=m+S*o,_=g;break;case"insideEnd":O=y-S*o,_=!g;break;case"end":O=y+S*o,_=g;break;default:throw new Error("Unsupported position ".concat(t))}_=w<=0?_:!_;var C=Kt(u,f,x,O),k=Kt(u,f,x,O+(_?1:-1)*359),N="M".concat(C.x,",").concat(C.y,`
    A`).concat(x,",").concat(x,",0,1,").concat(_?0:1,`,
    `).concat(k.x,",").concat(k.y),M=dn(e.id)?wf("recharts-radial-line-"):e.id;return E.createElement("text",ea({},r,{dominantBaseline:"central",className:tt("recharts-radial-bar-label",l)}),E.createElement("defs",null,E.createElement("path",{id:M,d:N})),E.createElement("textPath",{xlinkHref:"#".concat(M)},n))},Lle=(e,t,n)=>{var{cx:r,cy:i,innerRadius:o,outerRadius:l,startAngle:u,endAngle:f}=e,d=(u+f)/2;if(n==="outside"){var{x:p,y:m}=Kt(r,i,l+t,d);return{x:p,y:m,textAnchor:p>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var y=(o+l)/2,{x:g,y:x}=Kt(r,i,y,d);return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},xp=e=>e!=null&&"cx"in e&&xe(e.cx),zle={angle:0,offset:5,zIndex:_n.label,position:"middle",textBreakAll:!1};function Ble(e){if(!xp(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function eo(e){var t=Pn(e,zle),{viewBox:n,parentViewBox:r,position:i,value:o,children:l,content:u,className:f="",textBreakAll:d,labelRef:p}=t,m=Ple(),y=AB(),g=i==="center"?y:m??y,x,w,S;n==null?x=g:xp(n)?x=n:x=US(n);var O=Ble(x);if(!x||dn(o)&&dn(l)&&!E.isValidElement(u)&&typeof u!="function")return null;var _=Zc(Zc({},t),{},{viewBox:x});if(E.isValidElement(u)){var{labelRef:C}=_,k=VP(_,Ale);return E.cloneElement(u,k)}if(typeof u=="function"){var{content:N}=_,M=VP(_,Tle);if(w=E.createElement(u,M),E.isValidElement(w))return w}else w=Dle(t);var R=Fn(t);if(xp(x)){if(i==="insideStart"||i==="insideEnd"||i==="end")return Ile(t,i,w,R,x);S=Lle(x,t.offset,t.position)}else{if(!O)return null;var P=Ole({viewBox:O,position:i,offset:t.offset,parentViewBox:xp(r)?void 0:r});S=Zc(Zc({x:P.x,y:P.y,textAnchor:P.horizontalAnchor,verticalAnchor:P.verticalAnchor},P.width!==void 0?{width:P.width}:{}),P.height!==void 0?{height:P.height}:{})}return E.createElement(ai,{zIndex:t.zIndex},E.createElement(Uy,ea({ref:p,className:tt("recharts-label",f)},R,S,{textAnchor:xB(R.textAnchor)?R.textAnchor:S.textAnchor,breakAll:d}),w))}eo.displayName="Label";var Vle=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?E.createElement(eo,ea({key:"label-implicit"},r)):Ai(e)?E.createElement(eo,ea({key:"label-implicit",value:e},r)):E.isValidElement(e)?e.type===eo?E.cloneElement(e,Zc({key:"label-implicit"},r)):E.createElement(eo,ea({key:"label-implicit",content:e},r)):rO(e)?E.createElement(eo,ea({key:"label-implicit",content:e},r)):e&&typeof e=="object"?E.createElement(eo,ea({},e,{key:"label-implicit"},r)):null};function Ule(e){var{label:t,labelRef:n}=e,r=AB();return Vle(t,r,n)||null}var Fle=["valueAccessor"],qle=["dataKey","clockWise","id","textBreakAll","zIndex"];function Tm(){return Tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tm.apply(null,arguments)}function FP(e,t){if(e==null)return{};var n,r,i=$le(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $le(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Hle=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(yle(t))return t},TB=E.createContext(void 0),Gle=TB.Provider,_B=E.createContext(void 0),Kle=_B.Provider;function Yle(){return E.useContext(TB)}function Wle(){return E.useContext(_B)}function wp(e){var{valueAccessor:t=Hle}=e,n=FP(e,Fle),{dataKey:r,clockWise:i,id:o,textBreakAll:l,zIndex:u}=n,f=FP(n,qle),d=Yle(),p=Wle(),m=d||p;return!m||!m.length?null:E.createElement(ai,{zIndex:u??_n.label},E.createElement(fn,{className:"recharts-label-list"},m.map((y,g)=>{var x,w=dn(r)?t(y,g):St(y.payload,r),S=dn(o)?{}:{id:"".concat(o,"-").concat(g)};return E.createElement(eo,Tm({key:"label-".concat(g)},Fn(y),f,S,{fill:(x=n.fill)!==null&&x!==void 0?x:y.fill,parentViewBox:y.parentViewBox,value:w,textBreakAll:l,viewBox:y.viewBox,index:g,zIndex:0}))})))}wp.displayName="LabelList";function CB(e){var{label:t}=e;return t?t===!0?E.createElement(wp,{key:"labelList-implicit"}):E.isValidElement(t)||rO(t)?E.createElement(wp,{key:"labelList-implicit",content:t}):typeof t=="object"?E.createElement(wp,Tm({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function dw(){return dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dw.apply(null,arguments)}var kB=e=>{var{cx:t,cy:n,r,className:i}=e,o=tt("recharts-dot",i);return xe(t)&&xe(n)&&xe(r)?E.createElement("circle",dw({},yr(e),NS(e),{className:o,cx:t,cy:n,r})):null},jB=e=>e.graphicalItems.polarItems,Xle=$([kt,ed],CE),Fy=$([jB,Lt,Xle],kE),Qle=$([Fy],jE),qy=$([Qle,Oy],NE),Zle=$([qy,Lt,Fy],PE);$([qy,Lt,Fy],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var o,l=St(r,(o=t.dataKey)!==null&&o!==void 0?o:i.dataKey);return{value:l,errorDomain:[]}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:St(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]})));var qP=()=>{},Jle=$([qy,Lt,Fy,Iy,kt],LE),eue=$([Lt,RE,IE,qP,Jle,qP,dt,kt],zE),NB=$([Lt,dt,qy,Zle,Jf,kt,eue],BE),tue=$([NB,Tu,xo],UE),nue=$([Lt,NB,tue,kt],qE);$([xo,nue],k5);var rue={radiusAxis:{},angleAxis:{}},MB=Dn({name:"polarAxis",initialState:rue,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:lye,removeRadiusAxis:uye,addAngleAxis:cye,removeAngleAxis:fye}=MB.actions,iue=MB.reducer;function PB(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function $P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$P(Object(n),!0).forEach(function(r){aue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aue(e,t,n){return(t=oue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oue(e){var t=sue(e,"string");return typeof t=="symbol"?t:t+""}function sue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lue=(e,t)=>t,iO=$([jB,lue],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),uue=[],aO=(e,t,n)=>(n==null?void 0:n.length)===0?uue:n,DB=$([Oy,iO,aO],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i;if((t==null?void 0:t.data)!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(o=>HP(HP({},t.presentationProps),o.props))),i!=null)return i}}),cue=$([DB,iO,aO],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,i)=>{var o,l=St(r,t.nameKey,t.name),u;return n!=null&&(o=n[i])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?u=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?u=r.fill:u=t.fill,{value:dy(l,t.dataKey),color:u,payload:r,type:t.legendType}})}),fue=$([DB,iO,aO,hn],(e,t,n,r)=>{if(!(t==null||e==null))return wce({offset:r,pieSettings:t,displayedData:e,cells:n})}),wx={exports:{}},st={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var GP;function due(){if(GP)return st;GP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function x(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case e:switch(w=w.type,w){case n:case i:case r:case f:case d:case y:return w;default:switch(w=w&&w.$$typeof,w){case l:case u:case m:case p:return w;case o:return w;default:return S}}case t:return S}}}return st.ContextConsumer=o,st.ContextProvider=l,st.Element=e,st.ForwardRef=u,st.Fragment=n,st.Lazy=m,st.Memo=p,st.Portal=t,st.Profiler=i,st.StrictMode=r,st.Suspense=f,st.SuspenseList=d,st.isContextConsumer=function(w){return x(w)===o},st.isContextProvider=function(w){return x(w)===l},st.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},st.isForwardRef=function(w){return x(w)===u},st.isFragment=function(w){return x(w)===n},st.isLazy=function(w){return x(w)===m},st.isMemo=function(w){return x(w)===p},st.isPortal=function(w){return x(w)===t},st.isProfiler=function(w){return x(w)===i},st.isStrictMode=function(w){return x(w)===r},st.isSuspense=function(w){return x(w)===f},st.isSuspenseList=function(w){return x(w)===d},st.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===i||w===r||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===p||w.$$typeof===l||w.$$typeof===o||w.$$typeof===u||w.$$typeof===g||w.getModuleId!==void 0)},st.typeOf=x,st}var KP;function hue(){return KP||(KP=1,wx.exports=due()),wx.exports}var pue=hue(),YP=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",WP=null,Sx=null,RB=e=>{if(e===WP&&Array.isArray(Sx))return Sx;var t=[];return E.Children.forEach(e,n=>{dn(n)||(pue.isFragment(n)?t=t.concat(RB(n.props.children)):t.push(n))}),Sx=t,WP=e,t};function IB(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>YP(i)):r=[YP(t)],RB(e).forEach(i=>{var o=xs(i,"type.displayName")||xs(i,"type.name");o&&r.indexOf(o)!==-1&&n.push(i)}),n}var LB=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,Ex={},XP;function mue(){return XP||(XP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!((i=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&i.writable)?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(Ex)),Ex}var Ox,QP;function yue(){return QP||(QP=1,Ox=mue().isPlainObject),Ox}var vue=yue();const gue=mo(vue);var ZP,JP,eD,tD,nD;function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function iD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rD(Object(n),!0).forEach(function(r){bue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bue(e,t,n){return(t=xue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xue(e){var t=wue(e,"string");return typeof t=="symbol"?t:t+""}function wue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _m(){return _m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_m.apply(null,arguments)}function Bc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var aD=(e,t,n,r,i)=>{var o=n-r,l;return l=Rt(ZP||(ZP=Bc(["M ",",",""])),e,t),l+=Rt(JP||(JP=Bc(["L ",",",""])),e+n,t),l+=Rt(eD||(eD=Bc(["L ",",",""])),e+n-o/2,t+i),l+=Rt(tD||(tD=Bc(["L ",",",""])),e+n-o/2-r,t+i),l+=Rt(nD||(nD=Bc(["L ",","," Z"])),e,t),l},Sue={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Eue=e=>{var t=Pn(e,Sue),{x:n,y:r,upperWidth:i,lowerWidth:o,height:l,className:u}=t,{animationEasing:f,animationDuration:d,animationBegin:p,isUpdateAnimationActive:m}=t,y=E.useRef(null),[g,x]=E.useState(-1),w=E.useRef(i),S=E.useRef(o),O=E.useRef(l),_=E.useRef(n),C=E.useRef(r),k=Ey(e,"trapezoid-");if(E.useEffect(()=>{if(y.current&&y.current.getTotalLength)try{var ne=y.current.getTotalLength();ne&&x(ne)}catch{}},[]),n!==+n||r!==+r||i!==+i||o!==+o||l!==+l||i===0&&o===0||l===0)return null;var N=tt("recharts-trapezoid",u);if(!m)return E.createElement("g",null,E.createElement("path",_m({},Fn(t),{className:N,d:aD(n,r,i,o,l)})));var M=w.current,R=S.current,P=O.current,V=_.current,H=C.current,Z="0px ".concat(g===-1?1:g,"px"),F="".concat(g,"px ").concat(g,"px"),he=J3(["strokeDasharray"],d,f);return E.createElement(Sy,{animationId:k,key:k,canBegin:g>0,duration:d,easing:f,isActive:m,begin:p},ne=>{var ee=An(M,i,ne),D=An(R,o,ne),q=An(P,l,ne),B=An(V,n,ne),ce=An(H,r,ne);y.current&&(w.current=ee,S.current=D,O.current=q,_.current=B,C.current=ce);var Y=ne>0?{transition:he,strokeDasharray:F}:{strokeDasharray:Z};return E.createElement("path",_m({},Fn(t),{className:N,d:aD(B,ce,ee,D,q),ref:y,style:iD(iD({},Y),t.style)}))})},Oue=["option","shapeType","activeClassName","inActiveClassName"];function Aue(e,t){if(e==null)return{};var n,r,i=Tue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Tue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oD(Object(n),!0).forEach(function(r){_ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ue(e,t,n){return(t=Cue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cue(e){var t=kue(e,"string");return typeof t=="symbol"?t:t+""}function kue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jue(e,t){return Cm(Cm({},t),e)}function Nue(e,t){return e==="symbols"}function sD(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return E.createElement(r5,n);case"trapezoid":return E.createElement(Eue,n);case"sector":return E.createElement(s5,n);case"symbols":if(Nue(t))return E.createElement(Iz,n);break;case"curve":return E.createElement(Yl,n);default:return null}}function Mue(e){return E.isValidElement(e)?e.props:e}function Pue(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,o=Aue(e,Oue),l;if(E.isValidElement(t))l=E.cloneElement(t,Cm(Cm({},o),Mue(t)));else if(typeof t=="function")l=t(o,o.index);else if(gue(t)&&typeof t!="boolean"){var u=jue(t,o);l=E.createElement(sD,{shapeType:n,elementProps:u})}else{var f=o;l=E.createElement(sD,{shapeType:n,elementProps:f})}return o.isActive?E.createElement(fn,{className:r},l):E.createElement(fn,{className:i},l)}var Due=(e,t,n)=>{var r=mt();return(i,o)=>l=>{e==null||e(i,o,l),r(U4({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},Rue=e=>{var t=mt();return(n,r)=>i=>{e==null||e(n,r,i),t(Iae())}},Iue=(e,t,n)=>{var r=mt();return(i,o)=>l=>{e==null||e(i,o,l),r(Lae({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function zB(e){var{tooltipEntrySettings:t}=e,n=mt(),r=tr(),i=E.useRef(null);return E.useLayoutEffect(()=>{r||(i.current===null?n(Mae(t)):i.current!==t&&n(Pae({prev:i.current,next:t})),i.current=t)},[t,n,r]),E.useLayoutEffect(()=>()=>{i.current&&(n(Dae(i.current)),i.current=null)},[n]),null}function Lue(e){var{legendPayload:t}=e,n=mt(),r=tr(),i=E.useRef(null);return E.useLayoutEffect(()=>{r||(i.current===null?n(Y3(t)):i.current!==t&&n(W3({prev:i.current,next:t})),i.current=t)},[n,r,t]),E.useLayoutEffect(()=>()=>{i.current&&(n(X3(i.current)),i.current=null)},[n]),null}function zue(e){var{legendPayload:t}=e,n=mt(),r=Ae(dt),i=E.useRef(null);return E.useLayoutEffect(()=>{r!=="centric"&&r!=="radial"||(i.current===null?n(Y3(t)):i.current!==t&&n(W3({prev:i.current,next:t})),i.current=t)},[n,r,t]),E.useLayoutEffect(()=>()=>{i.current&&(n(X3(i.current)),i.current=null)},[n]),null}var Ax,Bue=()=>{var[e]=E.useState(()=>wf("uid-"));return e},Vue=(Ax=ww.useId)!==null&&Ax!==void 0?Ax:Bue;function Uue(e,t){var n=Vue();return t||(e?"".concat(e,"-").concat(n):n)}var Fue=E.createContext(void 0),BB=e=>{var{id:t,type:n,children:r}=e,i=Uue("recharts-".concat(n),t);return E.createElement(Fue.Provider,{value:i},r(i))},que={cartesianItems:[],polarItems:[]},VB=Dn({name:"graphicalItems",initialState:que,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:gt()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Ir(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},prepare:gt()},removeCartesianGraphicalItem:{reducer(e,t){var n=Ir(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:gt()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:gt()},removePolarGraphicalItem:{reducer(e,t){var n=Ir(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:gt()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Ir(e).polarItems.indexOf(n);i>-1&&(e.polarItems[i]=r)},prepare:gt()}}}),{addCartesianGraphicalItem:$ue,replaceCartesianGraphicalItem:Hue,removeCartesianGraphicalItem:Gue,addPolarGraphicalItem:Kue,removePolarGraphicalItem:Yue,replacePolarGraphicalItem:Wue}=VB.actions,Xue=VB.reducer,Que=e=>{var t=mt(),n=E.useRef(null);return E.useLayoutEffect(()=>{n.current===null?t($ue(e)):n.current!==e&&t(Hue({prev:n.current,next:e})),n.current=e},[t,e]),E.useLayoutEffect(()=>()=>{n.current&&(t(Gue(n.current)),n.current=null)},[t]),null},Zue=E.memo(Que),Jue=e=>{var t=mt(),n=E.useRef(null);return E.useLayoutEffect(()=>{n.current===null?t(Kue(e)):n.current!==e&&t(Wue({prev:n.current,next:e})),n.current=e},[t,e]),E.useLayoutEffect(()=>()=>{n.current&&(t(Yue(n.current)),n.current=null)},[t]),null},ece=E.memo(Jue),tce=["key"],nce=["onMouseEnter","onClick","onMouseLeave"],rce=["id"],ice=["id"];function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},po.apply(null,arguments)}function $y(e,t){if(e==null)return{};var n,r,i=ace(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ace(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function lD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lD(Object(n),!0).forEach(function(r){oce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oce(e,t,n){return(t=sce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sce(e){var t=lce(e,"string");return typeof t=="symbol"?t:t+""}function lce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uce(e){var t=E.useMemo(()=>IB(e.children,Vy),[e.children]),n=Ae(r=>cue(r,e.id,t));return n==null?null:E.createElement(zue,{legendPayload:n})}function cce(e){if(!(e==null||typeof e=="boolean"||typeof e=="function")){if(E.isValidElement(e)){var t,n=(t=e.props)===null||t===void 0?void 0:t.fill;return typeof n=="string"?n:void 0}var{fill:r}=e;return typeof r=="string"?r:void 0}}var fce=E.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:o,fill:l,name:u,hide:f,tooltipType:d,id:p,activeShape:m}=e,y=cce(m),g=r.map(w=>{var S=w.tooltipPayload;return y==null||S==null?S:S.map(O=>At(At({},O),{},{color:y,fill:y}))}),x={dataDefinedOnItem:g,getPosition:w=>{var S;return(S=r[Number(w)])===null||S===void 0?void 0:S.tooltipPosition},settings:{stroke:i,strokeWidth:o,fill:l,dataKey:t,nameKey:n,name:dy(u,t),hide:f,type:d,color:l,unit:"",graphicalItemId:p}};return E.createElement(zB,{tooltipEntrySettings:x})}),dce=(e,t)=>e>t?"start":e<t?"end":"middle",hce=(e,t,n)=>pr(typeof t=="function"?t(e):t,n,n*.8),pce=(e,t,n)=>{var{top:r,left:i,width:o,height:l}=t,u=i5(o,l),f=i+pr(e.cx,o,o/2),d=r+pr(e.cy,l,l/2),p=pr(e.innerRadius,u,0),m=hce(n,e.outerRadius,u),y=e.maxRadius||Math.sqrt(o*o+l*l)/2;return{cx:f,cy:d,innerRadius:p,outerRadius:m,maxRadius:y}},mce=(e,t)=>{var n=Mn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},yce=(e,t)=>{if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return e(t);var n=tt("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:r}=t,i=$y(t,tce);return E.createElement(Yl,po({},i,{type:"linear",className:n}))},vce=(e,t,n)=>{if(E.isValidElement(e))return E.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),E.isValidElement(r)))return r;var i=tt("recharts-pie-label-text",PB(e));return E.createElement(Uy,po({},t,{alignmentBaseline:"middle",className:i}),r)};function gce(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:o,dataKey:l}=n;if(!r||!i||!t)return null;var u=yr(n),f=su(i),d=su(o),p=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,m=t.map((y,g)=>{var x=(y.startAngle+y.endAngle)/2,w=Kt(y.cx,y.cy,y.outerRadius+p,x),S=At(At(At(At({},u),y),{},{stroke:"none"},f),{},{index:g,textAnchor:dce(w.x,y.cx)},w),O=At(At(At(At({},u),y),{},{fill:"none",stroke:y.fill},d),{},{index:g,points:[Kt(y.cx,y.cy,y.outerRadius,x),w],key:"line"});return E.createElement(ai,{zIndex:_n.label,key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(g)},E.createElement(fn,null,o&&yce(o,O),vce(i,S,St(y,l))))});return E.createElement(fn,{className:"recharts-pie-labels"},m)}function bce(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i=="object"&&i!=null&&"position"in i?E.createElement(CB,{label:i}):E.createElement(gce,{sectors:t,props:n,showLabels:r})}function xce(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,shape:o,id:l}=e,u=Ae(hu),f=Ae(nB),d=Ae(rB),{onMouseEnter:p,onClick:m,onMouseLeave:y}=i,g=$y(i,nce),x=Due(p,i.dataKey,l),w=Rue(y),S=Iue(m,i.dataKey,l);return t==null||t.length===0?null:E.createElement(E.Fragment,null,t.map((O,_)=>{if((O==null?void 0:O.startAngle)===0&&(O==null?void 0:O.endAngle)===0&&t.length!==1)return null;var C=d==null||d===l,k=String(_)===u&&(f==null||i.dataKey===f)&&C,N=u?r:null,M=n&&k?n:N,R=At(At({},O),{},{stroke:O.stroke,tabIndex:-1,[N3]:_,[M3]:l});return E.createElement(fn,po({key:"sector-".concat(O==null?void 0:O.startAngle,"-").concat(O==null?void 0:O.endAngle,"-").concat(O.midAngle,"-").concat(_),tabIndex:-1,className:"recharts-pie-sector"},zz(g,O,_),{onMouseEnter:x(O,_),onMouseLeave:w(O,_),onClick:S(O,_)}),E.createElement(Pue,po({option:o??M,index:_,shapeType:"sector",isActive:k},R)))}))}function wce(e){var t,{pieSettings:n,displayedData:r,cells:i,offset:o}=e,{cornerRadius:l,startAngle:u,endAngle:f,dataKey:d,nameKey:p,tooltipType:m}=n,y=Math.abs(n.minAngle),g=mce(u,f),x=Math.abs(g),w=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,S=r.filter(M=>St(M,d,0)!==0).length,O=(x>=360?S:S-1)*w,_=x-S*y-O,C=r.reduce((M,R)=>{var P=St(R,d,0);return M+(xe(P)?P:0)},0),k;if(C>0){var N;k=r.map((M,R)=>{var P=St(M,d,0),V=St(M,p,R),H=pce(n,o,M),Z=(xe(P)?P:0)/C,F,he=At(At({},M),i&&i[R]&&i[R].props),ne=he!=null&&"fill"in he&&typeof he.fill=="string"?he.fill:n.fill;R?F=N.endAngle+Mn(g)*w*(P!==0?1:0):F=u;var ee=F+Mn(g)*((P!==0?y:0)+Z*_),D=(F+ee)/2,q=(H.innerRadius+H.outerRadius)/2,B=[{name:V,value:P,payload:he,dataKey:d,type:m,color:ne,fill:ne,graphicalItemId:n.id}],ce=Kt(H.cx,H.cy,q,D);return N=At(At(At(At({},n.presentationProps),{},{percent:Z,cornerRadius:typeof l=="string"?parseFloat(l):l,name:V,tooltipPayload:B,midAngle:D,middleRadius:q,tooltipPosition:ce},he),H),{},{value:P,dataKey:d,startAngle:F,endAngle:ee,payload:he,paddingAngle:Mn(g)*w}),N})}return k}function Sce(e){var{showLabels:t,sectors:n,children:r}=e,i=E.useMemo(()=>!t||!n?[]:n.map(o=>({value:o.value,payload:o.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill})),[n,t]);return E.createElement(Kle,{value:t?i:void 0},r)}function Ece(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:i,isAnimationActive:o,animationBegin:l,animationDuration:u,animationEasing:f,activeShape:d,inactiveShape:p,onAnimationStart:m,onAnimationEnd:y}=t,g=Ey(t,"recharts-pie-"),x=n.current,[w,S]=E.useState(!1),O=E.useCallback(()=>{typeof y=="function"&&y(),S(!1)},[y]),_=E.useCallback(()=>{typeof m=="function"&&m(),S(!0)},[m]);return E.createElement(Sce,{showLabels:!w,sectors:i},E.createElement(Sy,{animationId:g,begin:l,duration:u,isActive:o,easing:f,onAnimationStart:_,onAnimationEnd:O,key:g},C=>{var k,N=[],M=i&&i[0],R=(k=M==null?void 0:M.startAngle)!==null&&k!==void 0?k:0;return i==null||i.forEach((P,V)=>{var H=x&&x[V],Z=V>0?xs(P,"paddingAngle",0):0;if(H){var F=An(H.endAngle-H.startAngle,P.endAngle-P.startAngle,C),he=At(At({},P),{},{startAngle:R+Z,endAngle:R+F+Z});N.push(he),R=he.endAngle}else{var{endAngle:ne,startAngle:ee}=P,D=An(0,ne-ee,C),q=At(At({},P),{},{startAngle:R+Z,endAngle:R+D+Z});N.push(q),R=q.endAngle}}),n.current=N,E.createElement(fn,null,E.createElement(xce,{sectors:N,activeShape:d,inactiveShape:p,allOtherPieProps:t,shape:t.shape,id:r}))}),E.createElement(bce,{showLabels:!w,sectors:i,props:t}),t.children)}var Oce={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:_n.area};function Ace(e){var{id:t}=e,n=$y(e,rce),{hide:r,className:i,rootTabIndex:o}=e,l=E.useMemo(()=>IB(e.children,Vy),[e.children]),u=Ae(p=>fue(p,t,l)),f=E.useRef(null),d=tt("recharts-pie",i);return r||u==null?(f.current=null,E.createElement(fn,{tabIndex:o,className:d})):E.createElement(ai,{zIndex:e.zIndex},E.createElement(fce,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:u,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),E.createElement(fn,{tabIndex:o,className:d},E.createElement(Ece,{props:At(At({},n),{},{sectors:u}),previousSectorsRef:f,id:t})))}function Tce(e){var t=Pn(e,Oce),{id:n}=t,r=$y(t,ice),i=yr(r);return E.createElement(BB,{id:n,type:"pie"},o=>E.createElement(E.Fragment,null,E.createElement(ece,{type:"pie",id:o,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),E.createElement(uce,po({},r,{id:o})),E.createElement(Ace,po({},r,{id:o}))))}var UB=Tce;UB.displayName="Pie";var _ce=["points"];function uD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uD(Object(n),!0).forEach(function(r){Cce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cce(e,t,n){return(t=kce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kce(e){var t=jce(e,"string");return typeof t=="symbol"?t:t+""}function jce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},km.apply(null,arguments)}function Nce(e,t){if(e==null)return{};var n,r,i=Mce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pce(e){var{option:t,dotProps:n,className:r}=e;if(E.isValidElement(t))return E.cloneElement(t,n);if(typeof t=="function")return t(n);var i=tt(r,typeof t!="boolean"?t.className:""),o=n??{},{points:l}=o,u=Nce(o,_ce);return E.createElement(kB,km({},u,{className:i}))}function Dce(e,t){return e==null?!1:t?!0:e.length===1}function Rce(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:o,baseProps:l,needClip:u,clipPathId:f,zIndex:d=_n.scatter}=e;if(!Dce(t,n))return null;var p=LB(n),m=LW(n),y=t.map((x,w)=>{var S,O,_=Tx(Tx(Tx({r:3},l),m),{},{index:w,cx:(S=x.x)!==null&&S!==void 0?S:void 0,cy:(O=x.y)!==null&&O!==void 0?O:void 0,dataKey:o,value:x.value,payload:x.payload,points:t});return E.createElement(Pce,{key:"dot-".concat(w),option:n,dotProps:_,className:i})}),g={};return u&&f!=null&&(g.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(f,")")),E.createElement(ai,{zIndex:d},E.createElement(fn,km({className:r},g),y))}function cD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cD(Object(n),!0).forEach(function(r){Ice(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ice(e,t,n){return(t=Lce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lce(e){var t=zce(e,"string");return typeof t=="symbol"?t:t+""}function zce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FB=0,Bce={xAxis:{},yAxis:{},zAxis:{}},qB=Dn({name:"cartesianAxis",initialState:Bce,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:gt()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:gt()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:gt()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:gt()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:gt()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:gt()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:gt()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:gt()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:gt()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var o,l=i.widthHistory||[];if(l.length===3&&l[0]===l[2]&&r===l[1]&&r!==i.width&&Math.abs(r-((o=l[0])!==null&&o!==void 0?o:0))<=1)return;var u=[...l,r].slice(-3);e.yAxis[n]=fD(fD({},i),{},{width:r,widthHistory:u})}}}}),{addXAxis:Vce,replaceXAxis:Uce,removeXAxis:Fce,addYAxis:qce,replaceYAxis:$ce,removeYAxis:Hce,addZAxis:dye,replaceZAxis:hye,removeZAxis:pye,updateYAxisWidth:Gce}=qB.actions,Kce=qB.reducer,Yce=$([hn],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Wce=$([Yce,pa,ma],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),oO=()=>Ae(Wce),Xce=()=>Ae(Noe);function dD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _x(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dD(Object(n),!0).forEach(function(r){Qce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qce(e,t,n){return(t=Zce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zce(e){var t=Jce(e,"string");return typeof t=="symbol"?t:t+""}function Jce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var efe=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:o,clipPath:l}=e;if(i===!1||t.x==null||t.y==null)return null;var u={index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},f=_x(_x(_x({},u),su(i)),NS(i)),d;return E.isValidElement(i)?d=E.cloneElement(i,f):typeof i=="function"?d=i(f):d=E.createElement(kB,f),E.createElement(fn,{className:"recharts-active-dot",clipPath:l},d)};function hD(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:o,zIndex:l=_n.activeDot}=e,u=Ae(hu),f=Xce();if(t==null||f==null)return null;var d=t.find(p=>f.includes(p.payload));return dn(d)?null:E.createElement(ai,{zIndex:l},E.createElement(efe,{point:d,childIndex:Number(u),mainColor:n,dataKey:i,activeDot:r,clipPath:o}))}var $B=e=>{var{chartData:t}=e,n=mt(),r=tr();return E.useEffect(()=>r?()=>{}:(n(OP(t)),()=>{n(OP(void 0))}),[t,n,r]),null},pD={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},HB=Dn({name:"brush",initialState:pD,reducers:{setBrushSettings(e,t){return t.payload==null?pD:t.payload}}}),{setBrushSettings:mye}=HB.actions,tfe=HB.reducer;function nfe(e){return(e%180+180)%180}var rfe=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=nfe(i),l=o*Math.PI/180,u=Math.atan(r/n),f=l>u&&l<Math.PI-u?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},ife={dots:[],areas:[],lines:[]},GB=Dn({name:"referenceElements",initialState:ife,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Ir(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Ir(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=Ir(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:yye,removeDot:vye,addArea:gye,removeArea:bye,addLine:xye,removeLine:wye}=GB.actions,afe=GB.reducer,ofe=E.createContext(void 0),sfe=e=>{var{children:t}=e,[n]=E.useState("".concat(wf("recharts"),"-clip")),r=oO();if(r==null)return null;var{x:i,y:o,width:l,height:u}=r;return E.createElement(ofe.Provider,{value:n},E.createElement("defs",null,E.createElement("clipPath",{id:n},E.createElement("rect",{x:i,y:o,height:u,width:l}))),t)};function KB(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function lfe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return rfe(r,n)}function ufe(e,t,n){var r=n==="width",{x:i,y:o,width:l,height:u}=e;return t===1?{start:r?i:o,end:r?i+l:o+u}:{start:r?i+l:o+u,end:r?i:o}}function Rf(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function cfe(e,t){return KB(e,t+1)}function ffe(e,t,n,r,i){for(var o=(r||[]).slice(),{start:l,end:u}=t,f=0,d=1,p=l,m=function(){var x=r==null?void 0:r[f];if(x===void 0)return{v:KB(r,d)};var w=f,S,O=()=>(S===void 0&&(S=n(x,w)),S),_=x.coordinate,C=f===0||Rf(e,_,O,p,u);C||(f=0,p=l,d+=1),C&&(p=_+e*(O()/2+i),f+=d)},y;d<=o.length;)if(y=m(),y)return y.v;return[]}function dfe(e,t,n,r,i){var o=(r||[]).slice(),l=o.length;if(l===0)return[];for(var{start:u,end:f}=t,d=1;d<=l;d++){for(var p=(l-1)%d,m=u,y=!0,g=function(){var k=r[w];if(k==null)return 0;var N=w,M,R=()=>(M===void 0&&(M=n(k,N)),M),P=k.coordinate,V=w===p||Rf(e,P,R,m,f);if(!V)return y=!1,1;V&&(m=P+e*(R()/2+i))},x,w=p;w<l&&(x=g(),!(x!==0&&x===1));w+=d);if(y){for(var S=[],O=p;O<l;O+=d){var _=r[O];_!=null&&S.push(_)}return S}}return[]}function mD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mD(Object(n),!0).forEach(function(r){hfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hfe(e,t,n){return(t=pfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pfe(e){var t=mfe(e,"string");return typeof t=="symbol"?t:t+""}function mfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yfe(e,t,n,r,i){for(var o=(r||[]).slice(),l=o.length,{start:u}=t,{end:f}=t,d=function(y){var g=o[y];if(g==null)return 1;var x=g,w,S=()=>(w===void 0&&(w=n(g,y)),w);if(y===l-1){var O=e*(x.coordinate+e*S()/2-f);o[y]=x=kn(kn({},x),{},{tickCoord:O>0?x.coordinate-O*e:x.coordinate})}else o[y]=x=kn(kn({},x),{},{tickCoord:x.coordinate});if(x.tickCoord!=null){var _=Rf(e,x.tickCoord,S,u,f);_&&(f=x.tickCoord-e*(S()/2+i),o[y]=kn(kn({},x),{},{isShow:!0}))}},p=l-1;p>=0;p--)d(p);return o}function vfe(e,t,n,r,i,o){var l=(r||[]).slice(),u=l.length,{start:f,end:d}=t;if(o){var p=r[u-1];if(p!=null){var m=n(p,u-1),y=e*(p.coordinate+e*m/2-d);if(l[u-1]=p=kn(kn({},p),{},{tickCoord:y>0?p.coordinate-y*e:p.coordinate}),p.tickCoord!=null){var g=Rf(e,p.tickCoord,()=>m,f,d);g&&(d=p.tickCoord-e*(m/2+i),l[u-1]=kn(kn({},p),{},{isShow:!0}))}}}for(var x=o?u-1:u,w=function(_){var C=l[_];if(C==null)return 1;var k=C,N,M=()=>(N===void 0&&(N=n(C,_)),N);if(_===0){var R=e*(k.coordinate-e*M()/2-f);l[_]=k=kn(kn({},k),{},{tickCoord:R<0?k.coordinate-R*e:k.coordinate})}else l[_]=k=kn(kn({},k),{},{tickCoord:k.coordinate});if(k.tickCoord!=null){var P=Rf(e,k.tickCoord,M,f,d);P&&(f=k.tickCoord+e*(M()/2+i),l[_]=kn(kn({},k),{},{isShow:!0}))}},S=0;S<x;S++)w(S);return l}function sO(e,t,n){var{tick:r,ticks:i,viewBox:o,minTickGap:l,orientation:u,interval:f,tickFormatter:d,unit:p,angle:m}=e;if(!i||!i.length||!r)return[];if(xe(f)||Zf.isSsr){var y;return(y=cfe(i,xe(f)?f:0))!==null&&y!==void 0?y:[]}var g=[],x=u==="top"||u==="bottom"?"width":"height",w=p&&x==="width"?sf(p,{fontSize:t,letterSpacing:n}):{width:0,height:0},S=(N,M)=>{var R=typeof d=="function"?d(N.value,M):N.value;return x==="width"?lfe(sf(R,{fontSize:t,letterSpacing:n}),w,m):sf(R,{fontSize:t,letterSpacing:n})[x]},O=i[0],_=i[1],C=i.length>=2&&O!=null&&_!=null?Mn(_.coordinate-O.coordinate):1,k=ufe(o,C,x);return f==="equidistantPreserveStart"?ffe(C,k,S,i,l):f==="equidistantPreserveEnd"?dfe(C,k,S,i,l):(f==="preserveStart"||f==="preserveStartEnd"?g=vfe(C,k,S,i,l,f==="preserveStartEnd"):g=yfe(C,k,S,i,l),g.filter(N=>N.isShow))}var gfe=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,l=0;if(t){Array.from(t).forEach(p=>{if(p){var m=p.getBoundingClientRect();m.width>l&&(l=m.width)}});var u=n?n.getBoundingClientRect().width:0,f=i+o,d=l+f+u+(n?r:0);return Math.round(d)}return 0},bfe={xAxis:{},yAxis:{}},YB=Dn({name:"renderedTicks",initialState:bfe,reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=i},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:xfe,removeRenderedTicks:wfe}=YB.actions,Sfe=YB.reducer,Efe=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function Ofe(e,t){if(e==null)return{};var n,r,i=Afe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Afe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ts.apply(null,arguments)}function yD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){Tfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tfe(e,t,n){return(t=_fe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _fe(e){var t=Cfe(e,"string");return typeof t=="symbol"?t:t+""}function Cfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aa={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:_n.axis};function kfe(e){var{x:t,y:n,width:r,height:i,orientation:o,mirror:l,axisLine:u,otherSvgProps:f}=e;if(!u)return null;var d=Pt(Pt(Pt({},f),yr(u)),{},{fill:"none"});if(o==="top"||o==="bottom"){var p=+(o==="top"&&!l||o==="bottom"&&l);d=Pt(Pt({},d),{},{x1:t,y1:n+p*i,x2:t+r,y2:n+p*i})}else{var m=+(o==="left"&&!l||o==="right"&&l);d=Pt(Pt({},d),{},{x1:t+m*r,y1:n,x2:t+m*r,y2:n+i})}return E.createElement("line",Ts({},d,{className:tt("recharts-cartesian-axis-line",xs(u,"className"))}))}function jfe(e,t,n,r,i,o,l,u,f){var d,p,m,y,g,x,w=u?-1:1,S=e.tickSize||l,O=xe(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":d=p=e.coordinate,y=n+ +!u*i,m=y-w*S,x=m-w*f,g=O;break;case"left":m=y=e.coordinate,p=t+ +!u*r,d=p-w*S,g=d-w*f,x=O;break;case"right":m=y=e.coordinate,p=t+ +u*r,d=p+w*S,g=d+w*f,x=O;break;default:d=p=e.coordinate,y=n+ +u*i,m=y+w*S,x=m+w*f,g=O;break}return{line:{x1:d,y1:m,x2:p,y2:y},tick:{x:g,y:x}}}function Nfe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Mfe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Pfe(e){var{option:t,tickProps:n,value:r}=e,i,o=tt(n.className,"recharts-cartesian-axis-tick-value");if(E.isValidElement(t))i=E.cloneElement(t,Pt(Pt({},n),{},{className:o}));else if(typeof t=="function")i=t(Pt(Pt({},n),{},{className:o}));else{var l="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(l=tt(l,PB(t))),i=E.createElement(Uy,Ts({},n,{className:l}),r)}return i}function Dfe(e){var{ticks:t,axisType:n,axisId:r}=e,i=mt();return E.useEffect(()=>{if(r==null||n==null)return _s;var o=t.map(l=>({value:l.value,coordinate:l.coordinate,offset:l.offset,index:l.index}));return i(xfe({ticks:o,axisId:r,axisType:n})),()=>{i(wfe({axisId:r,axisType:n}))}},[i,t,r,n]),null}var Rfe=E.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:o,tickFormatter:l,unit:u,padding:f,tickTextProps:d,orientation:p,mirror:m,x:y,y:g,width:x,height:w,tickSize:S,tickMargin:O,fontSize:_,letterSpacing:C,getTicksConfig:k,events:N,axisType:M,axisId:R}=e,P=sO(Pt(Pt({},k),{},{ticks:n}),_,C),V=yr(k),H=su(r),Z=xB(V.textAnchor)?V.textAnchor:Nfe(p,m),F=Mfe(p,m),he={};typeof i=="object"&&(he=i);var ne=Pt(Pt({},V),{},{fill:"none"},he),ee=P.map(B=>Pt({entry:B},jfe(B,y,g,x,w,p,S,m,O))),D=ee.map(B=>{var{entry:ce,line:Y}=B;return E.createElement(fn,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(ce.value,"-").concat(ce.coordinate,"-").concat(ce.tickCoord)},i&&E.createElement("line",Ts({},ne,Y,{className:tt("recharts-cartesian-axis-tick-line",xs(i,"className"))})))}),q=ee.map((B,ce)=>{var Y,I,{entry:Q,tick:ue}=B,fe=Pt(Pt(Pt(Pt({verticalAnchor:F},V),{},{textAnchor:Z,stroke:"none",fill:o},ue),{},{index:ce,payload:Q,visibleTicksCount:P.length,tickFormatter:l,padding:f},d),{},{angle:(Y=(I=d==null?void 0:d.angle)!==null&&I!==void 0?I:V.angle)!==null&&Y!==void 0?Y:0}),de=Pt(Pt({},fe),H);return E.createElement(fn,Ts({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(Q.value,"-").concat(Q.coordinate,"-").concat(Q.tickCoord)},zz(N,Q,ce)),r&&E.createElement(Pfe,{option:r,tickProps:de,value:"".concat(typeof l=="function"?l(Q.value,ce):Q.value).concat(u||"")}))});return E.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(M,"-ticks")},E.createElement(Dfe,{ticks:P,axisId:R,axisType:M}),q.length>0&&E.createElement(ai,{zIndex:_n.label},E.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(M,"-tick-labels"),ref:t},q)),D.length>0&&E.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(M,"-tick-lines")},D))}),Ife=E.forwardRef((e,t)=>{var{axisLine:n,width:r,height:i,className:o,hide:l,ticks:u,axisType:f,axisId:d}=e,p=Ofe(e,Efe),[m,y]=E.useState(""),[g,x]=E.useState(""),w=E.useRef(null);E.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var O;return gfe({ticks:w.current,label:(O=e.labelRef)===null||O===void 0?void 0:O.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var S=E.useCallback(O=>{if(O){var _=O.getElementsByClassName("recharts-cartesian-axis-tick-value");w.current=_;var C=_[0];if(C){var k=window.getComputedStyle(C),N=k.fontSize,M=k.letterSpacing;(N!==m||M!==g)&&(y(N),x(M))}}},[m,g]);return l||r!=null&&r<=0||i!=null&&i<=0?null:E.createElement(ai,{zIndex:e.zIndex},E.createElement(fn,{className:tt("recharts-cartesian-axis",o)},E.createElement(kfe,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:yr(e)}),E.createElement(Rfe,{ref:S,axisType:f,events:p,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:g,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:d}),E.createElement(Nle,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},E.createElement(Ule,{label:e.label,labelRef:e.labelRef}),e.children)))}),lO=E.forwardRef((e,t)=>{var n=Pn(e,aa);return E.createElement(Ife,Ts({},n,{ref:t}))});lO.displayName="CartesianAxis";var Lfe=["x1","y1","x2","y2","key"],zfe=["offset"],Bfe=["xAxisId","yAxisId"],Vfe=["xAxisId","yAxisId"];function vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vD(Object(n),!0).forEach(function(r){Ufe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ufe(e,t,n){return(t=Ffe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ffe(e){var t=qfe(e,"string");return typeof t=="symbol"?t:t+""}function qfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ss(){return ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ss.apply(null,arguments)}function jm(e,t){if(e==null)return{};var n,r,i=$fe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $fe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Hfe=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:o,height:l,ry:u}=e;return E.createElement("rect",{x:r,y:i,ry:u,width:o,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function WB(e){var{option:t,lineItemProps:n}=e,r;if(E.isValidElement(t))r=E.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var i,{x1:o,y1:l,x2:u,y2:f,key:d}=n,p=jm(n,Lfe),m=(i=yr(p))!==null&&i!==void 0?i:{},{offset:y}=m,g=jm(m,zfe);r=E.createElement("line",ss({},g,{x1:o,y1:l,x2:u,y2:f,fill:"none",key:d}))}return r}function Gfe(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:l}=e,u=jm(e,Bfe),f=i.map((d,p)=>{var m=jn(jn({},u),{},{x1:t,y1:d,x2:t+n,y2:d,key:"line-".concat(p),index:p});return E.createElement(WB,{key:"line-".concat(p),option:r,lineItemProps:m})});return E.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}function Kfe(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:l}=e,u=jm(e,Vfe),f=i.map((d,p)=>{var m=jn(jn({},u),{},{x1:d,y1:t,x2:d,y2:t+n,key:"line-".concat(p),index:p});return E.createElement(WB,{option:r,lineItemProps:m,key:"line-".concat(p)})});return E.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}function Yfe(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:o,height:l,horizontalPoints:u,horizontal:f=!0}=e;if(!f||!t||!t.length||u==null)return null;var d=u.map(m=>Math.round(m+i-i)).sort((m,y)=>m-y);i!==d[0]&&d.unshift(0);var p=d.map((m,y)=>{var g=d[y+1],x=g==null,w=x?i+l-m:g-m;if(w<=0)return null;var S=y%t.length;return E.createElement("rect",{key:"react-".concat(y),y:m,x:r,height:w,width:o,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function Wfe(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:o,width:l,height:u,verticalPoints:f}=e;if(!t||!n||!n.length)return null;var d=f.map(m=>Math.round(m+i-i)).sort((m,y)=>m-y);i!==d[0]&&d.unshift(0);var p=d.map((m,y)=>{var g=d[y+1],x=g==null,w=x?i+l-m:g-m;if(w<=0)return null;var S=y%n.length;return E.createElement("rect",{key:"react-".concat(y),x:m,y:o,width:w,height:u,stroke:"none",fill:n[S],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Xfe=(e,t)=>{var{xAxis:n,width:r,height:i,offset:o}=e;return C3(sO(jn(jn(jn({},aa),n),{},{ticks:k3(n),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},Qfe=(e,t)=>{var{yAxis:n,width:r,height:i,offset:o}=e;return C3(sO(jn(jn(jn({},aa),n),{},{ticks:k3(n),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},Zfe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:_n.grid};function XB(e){var t=z3(),n=B3(),r=L3(),i=jn(jn({},Pn(e,Zfe)),{},{x:xe(e.x)?e.x:r.left,y:xe(e.y)?e.y:r.top,width:xe(e.width)?e.width:r.width,height:xe(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:l,x:u,y:f,width:d,height:p,syncWithTicks:m,horizontalValues:y,verticalValues:g}=i,x=tr(),w=Ae(V=>fP(V,"xAxis",o,x)),S=Ae(V=>fP(V,"yAxis",l,x));if(!Ti(d)||!Ti(p)||!xe(u)||!xe(f))return null;var O=i.verticalCoordinatesGenerator||Xfe,_=i.horizontalCoordinatesGenerator||Qfe,{horizontalPoints:C,verticalPoints:k}=i;if((!C||!C.length)&&typeof _=="function"){var N=y&&y.length,M=_({yAxis:S?jn(jn({},S),{},{ticks:N?y:S.ticks}):void 0,width:t??d,height:n??p,offset:r},N?!0:m);tm(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof M,"]")),Array.isArray(M)&&(C=M)}if((!k||!k.length)&&typeof O=="function"){var R=g&&g.length,P=O({xAxis:w?jn(jn({},w),{},{ticks:R?g:w.ticks}):void 0,width:t??d,height:n??p,offset:r},R?!0:m);tm(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(k=P)}return E.createElement(ai,{zIndex:i.zIndex},E.createElement("g",{className:"recharts-cartesian-grid"},E.createElement(Hfe,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),E.createElement(Yfe,ss({},i,{horizontalPoints:C})),E.createElement(Wfe,ss({},i,{verticalPoints:k})),E.createElement(Gfe,ss({},i,{offset:r,horizontalPoints:C,xAxis:w,yAxis:S})),E.createElement(Kfe,ss({},i,{offset:r,verticalPoints:k,xAxis:w,yAxis:S}))))}XB.displayName="CartesianGrid";var Jfe={},QB=Dn({name:"errorBars",initialState:Jfe,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(o=>o.dataKey===r.dataKey&&o.direction===r.direction?i:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:Sye,replaceErrorBar:Eye,removeErrorBar:Oye}=QB.actions,ede=QB.reducer;function ZB(e,t){var n,r,i=Ae(d=>ga(d,e)),o=Ae(d=>ba(d,t)),l=(n=i==null?void 0:i.allowDataOverflow)!==null&&n!==void 0?n:Zt.allowDataOverflow,u=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:Jt.allowDataOverflow,f=l||u;return{needClip:f,needClipX:l,needClipY:u}}function tde(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=oO(),{needClipX:o,needClipY:l,needClip:u}=ZB(t,n);if(!u||!i)return null;var{x:f,y:d,width:p,height:m}=i;return E.createElement("clipPath",{id:"clipPath-".concat(r)},E.createElement("rect",{x:o?f:f-p/2,y:l?d:d-m/2,width:o?p:p*2,height:l?m:m*2}))}function nde(e){var t=su(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:o}=t,l=Number(i),u=Number(o);return(Number.isNaN(l)||l<0)&&(l=n),(Number.isNaN(u)||u<0)&&(u=r),{r:l,strokeWidth:u}}return{r:n,strokeWidth:r}}function uO(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:FB}function cO(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:FB}var JB=(e,t,n)=>R4(e,"xAxis",uO(e,t),n),eV=(e,t,n)=>D4(e,"xAxis",uO(e,t),n),tV=(e,t,n)=>R4(e,"yAxis",cO(e,t),n),nV=(e,t,n)=>D4(e,"yAxis",cO(e,t),n),rde=$([dt,JB,tV,eV,nV],(e,t,n,r,i)=>ki(e,"xAxis")?em(t,r,!1):em(n,i,!1)),ide=(e,t)=>t,rV=$([p4,ide],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),iV=e=>{var t=dt(e),n=ki(t,"xAxis");return n?"yAxis":"xAxis"},ade=(e,t)=>{var n=iV(e);return n==="yAxis"?cO(e,t):uO(e,t)},ode=(e,t,n)=>b4(e,iV(e),ade(e,t),n),sde=$([rV,ode],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,i=eE(e);if(!(r==null||i==null)){var o=(n=t[r])===null||n===void 0?void 0:n.stackedData,l=o==null?void 0:o.find(u=>u.key===i);if(l!=null)return l.map(u=>[u[0],u[1]])}}}),lde=$([dt,JB,tV,eV,nV,sde,Mte,rde,rV,Bte],(e,t,n,r,i,o,l,u,f,d)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:y}=l;if(!(f==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||i==null||r.length===0||i.length===0||u==null)){var{data:g}=f,x;if(g&&g.length>0?x=g:x=p==null?void 0:p.slice(m,y+1),x!=null)return Cde({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:m,areaSettings:f,stackedData:o,displayedData:x,chartBaseValue:d,bandSize:u})}}),ude=["id"],cde=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vs.apply(null,arguments)}function aV(e,t){if(e==null)return{};var n,r,i=fde(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function gD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gD(Object(n),!0).forEach(function(r){dde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dde(e,t,n){return(t=hde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hde(e){var t=pde(e,"string");return typeof t=="symbol"?t:t+""}function pde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nm(e,t){return e&&e!=="none"?e:t}var mde=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:o,hide:l}=e;return[{inactive:l,dataKey:t,type:o,color:Nm(r,i),value:dy(n,t),payload:e}]},yde=E.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:o,name:l,hide:u,unit:f,tooltipType:d,id:p}=e,m={dataDefinedOnItem:n,getPosition:_s,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:dy(l,t),hide:u,type:d,color:Nm(r,o),unit:f,graphicalItemId:p}};return E.createElement(zB,{tooltipEntrySettings:m})});function vde(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:o,dataKey:l}=r,u=yr(r);return E.createElement(Rce,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:u,needClip:i,clipPathId:t})}function gde(e){var{showLabels:t,children:n,points:r}=e,i=r.map(o=>{var l,u,f={x:(l=o.x)!==null&&l!==void 0?l:0,y:(u=o.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Fl(Fl({},f),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:f,fill:void 0})});return E.createElement(Gle,{value:t?i:void 0},n)}function bD(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:o}=e,{layout:l,type:u,stroke:f,connectNulls:d,isRange:p}=o,{id:m}=o,y=aV(o,ude),g=yr(y),x=Fn(y);return E.createElement(E.Fragment,null,(t==null?void 0:t.length)>1&&E.createElement(fn,{clipPath:r?"url(#clipPath-".concat(i,")"):void 0},E.createElement(Yl,vs({},x,{id:m,points:t,connectNulls:d,type:u,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&E.createElement(Yl,vs({},g,{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:t})),f!=="none"&&p&&Array.isArray(n)&&E.createElement(Yl,vs({},g,{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:n}))),E.createElement(vde,{points:t,props:y,clipPathId:i}))}function bde(e){var t,n,{alpha:r,baseLine:i,points:o,strokeWidth:l}=e,u=(t=o[0])===null||t===void 0?void 0:t.y,f=(n=o[o.length-1])===null||n===void 0?void 0:n.y;if(!He(u)||!He(f))return null;var d=r*Math.abs(u-f),p=Math.max(...o.map(m=>m.x||0));return xe(i)?p=Math.max(i,p):i&&Array.isArray(i)&&i.length&&(p=Math.max(...i.map(m=>m.x||0),p)),xe(p)?E.createElement("rect",{x:0,y:u<f?u:u-d,width:p+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}function xde(e){var t,n,{alpha:r,baseLine:i,points:o,strokeWidth:l}=e,u=(t=o[0])===null||t===void 0?void 0:t.x,f=(n=o[o.length-1])===null||n===void 0?void 0:n.x;if(!He(u)||!He(f))return null;var d=r*Math.abs(u-f),p=Math.max(...o.map(m=>m.y||0));return xe(i)?p=Math.max(i,p):i&&Array.isArray(i)&&i.length&&(p=Math.max(...i.map(m=>m.y||0),p)),xe(p)?E.createElement("rect",{x:u<f?u:u-d,y:0,width:d,height:Math.floor(p+(l?parseInt("".concat(l),10):1))}):null}function wde(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:o}=e;return n==="vertical"?E.createElement(bde,{alpha:t,points:r,baseLine:i,strokeWidth:o}):E.createElement(xde,{alpha:t,points:r,baseLine:i,strokeWidth:o})}function Sde(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:o}=e,{points:l,baseLine:u,isAnimationActive:f,animationBegin:d,animationDuration:p,animationEasing:m,onAnimationStart:y,onAnimationEnd:g}=r,x=E.useMemo(()=>({points:l,baseLine:u}),[l,u]),w=Ey(x,"recharts-area-"),S=FS(),[O,_]=E.useState(!1),C=!O,k=E.useCallback(()=>{typeof g=="function"&&g(),_(!1)},[g]),N=E.useCallback(()=>{typeof y=="function"&&y(),_(!0)},[y]);if(S==null)return null;var M=i.current,R=o.current;return E.createElement(gde,{showLabels:C,points:l},r.children,E.createElement(Sy,{animationId:w,begin:d,duration:p,isActive:f,easing:m,onAnimationEnd:k,onAnimationStart:N,key:w},P=>{if(M){var V=M.length/l.length,H=P===1?l:l.map((F,he)=>{var ne=Math.floor(he*V);if(M[ne]){var ee=M[ne];return Fl(Fl({},F),{},{x:An(ee.x,F.x,P),y:An(ee.y,F.y,P)})}return F}),Z;return xe(u)?Z=An(R,u,P):dn(u)||Oi(u)?Z=An(R,0,P):Z=u.map((F,he)=>{var ne=Math.floor(he*V);if(Array.isArray(R)&&R[ne]){var ee=R[ne];return Fl(Fl({},F),{},{x:An(ee.x,F.x,P),y:An(ee.y,F.y,P)})}return F}),P>0&&(i.current=H,o.current=Z),E.createElement(bD,{points:H,baseLine:Z,needClip:t,clipPathId:n,props:r})}return P>0&&(i.current=l,o.current=u),E.createElement(fn,null,f&&E.createElement("defs",null,E.createElement("clipPath",{id:"animationClipPath-".concat(n)},E.createElement(wde,{alpha:P,points:l,baseLine:u,layout:S,strokeWidth:r.strokeWidth}))),E.createElement(fn,{clipPath:"url(#animationClipPath-".concat(n,")")},E.createElement(bD,{points:l,baseLine:u,needClip:t,clipPathId:n,props:r})))}),E.createElement(CB,{label:r.label}))}function Ede(e){var{needClip:t,clipPathId:n,props:r}=e,i=E.useRef(null),o=E.useRef();return E.createElement(Sde,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:o})}class Ode extends E.PureComponent{render(){var{hide:t,dot:n,points:r,className:i,top:o,left:l,needClip:u,xAxisId:f,yAxisId:d,width:p,height:m,id:y,baseLine:g,zIndex:x}=this.props;if(t)return null;var w=tt("recharts-area",i),S=y,{r:O,strokeWidth:_}=nde(n),C=LB(n),k=O*2+_,N=u?"url(#clipPath-".concat(C?"":"dots-").concat(S,")"):void 0;return E.createElement(ai,{zIndex:x},E.createElement(fn,{className:w},u&&E.createElement("defs",null,E.createElement(tde,{clipPathId:S,xAxisId:f,yAxisId:d}),!C&&E.createElement("clipPath",{id:"clipPath-dots-".concat(S)},E.createElement("rect",{x:l-k/2,y:o-k/2,width:p+k,height:m+k}))),E.createElement(Ede,{needClip:u,clipPathId:S,props:this.props})),E.createElement(hD,{points:r,mainColor:Nm(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:N}),this.props.isRange&&Array.isArray(g)&&E.createElement(hD,{points:g,mainColor:Nm(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:N}))}}var Ade={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:_n.area};function Tde(e){var t,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:o,connectNulls:l,dot:u,fill:f,fillOpacity:d,hide:p,isAnimationActive:m,legendType:y,stroke:g,xAxisId:x,yAxisId:w}=e,S=aV(e,cde),O=wu(),_=oB(),{needClip:C}=ZB(x,w),k=tr(),{points:N,isRange:M,baseLine:R}=(t=Ae(he=>lde(he,e.id,k)))!==null&&t!==void 0?t:{},P=oO();if(O!=="horizontal"&&O!=="vertical"||P==null||_!=="AreaChart"&&_!=="ComposedChart")return null;var{height:V,width:H,x:Z,y:F}=P;return!N||!N.length?null:E.createElement(Ode,vs({},S,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:o,baseLine:R,connectNulls:l,dot:u,fill:f,fillOpacity:d,height:V,hide:p,layout:O,isAnimationActive:m,isRange:M,legendType:y,needClip:C,points:N,stroke:g,width:H,left:Z,top:F,xAxisId:x,yAxisId:w}))}var _de=(e,t,n,r,i)=>{var o=n??t;if(xe(o))return o;var l=e==="horizontal"?i:r,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return o==="dataMin"?d:o==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return o==="dataMin"?u[0]:o==="dataMax"?u[1]:u[0]};function Cde(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:o,chartBaseValue:l,xAxis:u,yAxis:f,displayedData:d,dataStartIndex:p,xAxisTicks:m,yAxisTicks:y,bandSize:g}=e,x=i&&i.length,w=_de(o,l,n,u,f),S=o==="horizontal",O=!1,_=d.map((k,N)=>{var M,R,P,V;if(x)V=i[p+N];else{var H=St(k,r);Array.isArray(H)?(V=H,O=!0):V=[w,H]}var Z=(M=(R=V)===null||R===void 0?void 0:R[1])!==null&&M!==void 0?M:null,F=Z==null||x&&!t&&St(k,r)==null;if(S){var he;return{x:sM({axis:u,ticks:m,bandSize:g,entry:k,index:N}),y:F?null:(he=f.scale.map(Z))!==null&&he!==void 0?he:null,value:V,payload:k}}return{x:F?null:(P=u.scale.map(Z))!==null&&P!==void 0?P:null,y:sM({axis:f,ticks:y,bandSize:g,entry:k,index:N}),value:V,payload:k}}),C;return x||O?C=_.map(k=>{var N,M=Array.isArray(k.value)?k.value[0]:null;if(S){var R;return{x:k.x,y:M!=null&&k.y!=null&&(R=f.scale.map(M))!==null&&R!==void 0?R:null,payload:k.payload}}return{x:M!=null&&(N=u.scale.map(M))!==null&&N!==void 0?N:null,y:k.y,payload:k.payload}}):C=S?f.scale.map(w):u.scale.map(w),{points:_,baseLine:C??0,isRange:O}}function kde(e){var t=Pn(e,Ade),n=tr();return E.createElement(BB,{id:t.id,type:"area"},r=>E.createElement(E.Fragment,null,E.createElement(Lue,{legendPayload:mde(t)}),E.createElement(yde,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),E.createElement(Zue,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:YZ(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),E.createElement(Tde,vs({},t,{id:r}))))}var ql=E.memo(kde,wy);ql.displayName="Area";var jde=["domain","range"],Nde=["domain","range"];function xD(e,t){if(e==null)return{};var n,r,i=Mde(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function wD(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function oV(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=xD(e,jde),{domain:o,range:l}=t,u=xD(t,Nde);return!wD(n,o)||!wD(r,l)?!1:wy(i,u)}var Pde=["type"],Dde=["dangerouslySetInnerHTML","ticks","scale"],Rde=["id","scale"];function hw(){return hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hw.apply(null,arguments)}function SD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ED(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SD(Object(n),!0).forEach(function(r){Ide(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ide(e,t,n){return(t=Lde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lde(e){var t=zde(e,"string");return typeof t=="symbol"?t:t+""}function zde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pw(e,t){if(e==null)return{};var n,r,i=Bde(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Vde(e){var t=mt(),n=E.useRef(null),r=FS(),{type:i}=e,o=pw(e,Pde),l=Ty(r,"xAxis",i),u=E.useMemo(()=>{if(l!=null)return ED(ED({},o),{},{type:l})},[o,l]);return E.useLayoutEffect(()=>{u!=null&&(n.current===null?t(Vce(u)):n.current!==u&&t(Uce({prev:n.current,next:u})),n.current=u)},[u,t]),E.useLayoutEffect(()=>()=>{n.current&&(t(Fce(n.current)),n.current=null)},[t]),null}var Ude=e=>{var{xAxisId:t,className:n}=e,r=Ae(P3),i=tr(),o="xAxis",l=Ae(O=>P4(O,o,t,i)),u=Ae(O=>hae(O,t)),f=Ae(O=>bae(O,t)),d=Ae(O=>f4(O,t));if(u==null||f==null||d==null)return null;var{dangerouslySetInnerHTML:p,ticks:m,scale:y}=e,g=pw(e,Dde),{id:x,scale:w}=d,S=pw(d,Rde);return E.createElement(lO,hw({},g,S,{x:f.x,y:f.y,width:u.width,height:u.height,className:tt("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:l,axisType:o,axisId:t}))},Fde={allowDataOverflow:Zt.allowDataOverflow,allowDecimals:Zt.allowDecimals,allowDuplicatedCategory:Zt.allowDuplicatedCategory,angle:Zt.angle,axisLine:aa.axisLine,height:Zt.height,hide:!1,includeHidden:Zt.includeHidden,interval:Zt.interval,label:!1,minTickGap:Zt.minTickGap,mirror:Zt.mirror,orientation:Zt.orientation,padding:Zt.padding,reversed:Zt.reversed,scale:Zt.scale,tick:Zt.tick,tickCount:Zt.tickCount,tickLine:aa.tickLine,tickSize:aa.tickSize,type:Zt.type,niceTicks:Zt.niceTicks,xAxisId:0},qde=e=>{var t=Pn(e,Fde);return E.createElement(E.Fragment,null,E.createElement(Vde,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),E.createElement(Ude,t))},sV=E.memo(qde,oV);sV.displayName="XAxis";var $de=["type"],Hde=["dangerouslySetInnerHTML","ticks","scale"],Gde=["id","scale"];function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mw.apply(null,arguments)}function OD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(n),!0).forEach(function(r){Kde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kde(e,t,n){return(t=Yde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yde(e){var t=Wde(e,"string");return typeof t=="symbol"?t:t+""}function Wde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yw(e,t){if(e==null)return{};var n,r,i=Xde(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Qde(e){var t=mt(),n=E.useRef(null),r=FS(),{type:i}=e,o=yw(e,$de),l=Ty(r,"yAxis",i),u=E.useMemo(()=>{if(l!=null)return AD(AD({},o),{},{type:l})},[l,o]);return E.useLayoutEffect(()=>{u!=null&&(n.current===null?t(qce(u)):n.current!==u&&t($ce({prev:n.current,next:u})),n.current=u)},[u,t]),E.useLayoutEffect(()=>()=>{n.current&&(t(Hce(n.current)),n.current=null)},[t]),null}function Zde(e){var{yAxisId:t,className:n,width:r,label:i}=e,o=E.useRef(null),l=E.useRef(null),u=Ae(P3),f=tr(),d=mt(),p="yAxis",m=Ae(M=>Sae(M,t)),y=Ae(M=>wae(M,t)),g=Ae(M=>P4(M,p,t,f)),x=Ae(M=>d4(M,t));if(E.useLayoutEffect(()=>{if(!(r!=="auto"||!m||rO(i)||E.isValidElement(i)||x==null)){var M=o.current;if(M){var R=M.getCalculatedWidth();Math.round(m.width)!==Math.round(R)&&d(Gce({id:t,width:R}))}}},[g,m,d,i,t,r,x]),m==null||y==null||x==null)return null;var{dangerouslySetInnerHTML:w,ticks:S,scale:O}=e,_=yw(e,Hde),{id:C,scale:k}=x,N=yw(x,Gde);return E.createElement(lO,mw({},_,N,{ref:o,labelRef:l,x:y.x,y:y.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:m.width,height:m.height,className:tt("recharts-".concat(p," ").concat(p),n),viewBox:u,ticks:g,axisType:p,axisId:t}))}var Jde={allowDataOverflow:Jt.allowDataOverflow,allowDecimals:Jt.allowDecimals,allowDuplicatedCategory:Jt.allowDuplicatedCategory,angle:Jt.angle,axisLine:aa.axisLine,hide:!1,includeHidden:Jt.includeHidden,interval:Jt.interval,label:!1,minTickGap:Jt.minTickGap,mirror:Jt.mirror,orientation:Jt.orientation,padding:Jt.padding,reversed:Jt.reversed,scale:Jt.scale,tick:Jt.tick,tickCount:Jt.tickCount,tickLine:aa.tickLine,tickSize:aa.tickSize,type:Jt.type,niceTicks:Jt.niceTicks,width:Jt.width,yAxisId:0},ehe=e=>{var t=Pn(e,Jde);return E.createElement(E.Fragment,null,E.createElement(Qde,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),E.createElement(Zde,t))},lV=E.memo(ehe,oV);lV.displayName="YAxis";var the=(e,t)=>t,fO=$([the,dt,_5,pn,Z4,xa,qoe,hn],Xoe);function nhe(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function dO(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(nhe(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var o=e.currentTarget;n=o.offsetWidth>0?t.width/o.offsetWidth:1,r=o.offsetHeight>0?t.height/o.offsetHeight:1}var l=(u,f)=>({relativeX:Math.round((u-t.left)/n),relativeY:Math.round((f-t.top)/r)});return"touches"in e?Array.from(e.touches).map(u=>l(u.clientX,u.clientY)):l(e.clientX,e.clientY)}var uV=vr("mouseClick"),cV=Yf();cV.startListening({actionCreator:uV,effect:(e,t)=>{var n=e.payload,r=fO(t.getState(),dO(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(zae({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var vw=vr("mouseMove"),fV=Yf(),Cl=null,$o=null,Cx=null;fV.startListening({actionCreator:vw,effect:(e,t)=>{var n=e.payload,r=t.getState(),{throttleDelay:i,throttledEvents:o}=r.eventSettings,l=o==="all"||(o==null?void 0:o.includes("mousemove"));Cl!==null&&(cancelAnimationFrame(Cl),Cl=null),$o!==null&&(typeof i!="number"||!l)&&(clearTimeout($o),$o=null),Cx=dO(n);var u=()=>{var f=t.getState(),d=KE(f,f.tooltip.settings.shared);if(!Cx){Cl=null,$o=null;return}if(d==="axis"){var p=fO(f,Cx);(p==null?void 0:p.activeIndex)!=null?t.dispatch(q4({activeIndex:p.activeIndex,activeDataKey:void 0,activeCoordinate:p.activeCoordinate})):t.dispatch(F4())}Cl=null,$o=null};if(!l){u();return}i==="raf"?Cl=requestAnimationFrame(u):typeof i=="number"&&$o===null&&($o=setTimeout(u,i))}});function rhe(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var TD={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},dV=Dn({name:"rootProps",initialState:TD,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:TD.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),ihe=dV.reducer,{updateOptions:ahe}=dV.actions,ohe=null,she={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},hV=Dn({name:"polarOptions",initialState:ohe,reducers:she}),{updatePolarOptions:lhe}=hV.actions,uhe=hV.reducer,pV=vr("keyDown"),mV=vr("focus"),yV=vr("blur"),Hy=Yf(),kl=null,Ho=null,Wh=null;Hy.startListening({actionCreator:pV,effect:(e,t)=>{Wh=e.payload,kl!==null&&(cancelAnimationFrame(kl),kl=null);var n=t.getState(),{throttleDelay:r,throttledEvents:i}=n.eventSettings,o=i==="all"||i.includes("keydown");Ho!==null&&(typeof r!="number"||!o)&&(clearTimeout(Ho),Ho=null);var l=()=>{try{var u=t.getState(),f=u.rootProps.accessibilityLayer!==!1;if(!f)return;var{keyboardInteraction:d}=u.tooltip,p=Wh;if(p!=="ArrowRight"&&p!=="ArrowLeft"&&p!=="Enter")return;var m=YE(d,ju(u),sd(u),ud(u)),y=m==null?-1:Number(m);if(!Number.isFinite(y)||y<0)return;var g=xa(u);if(p==="Enter"){var x=Am(u,"axis","hover",String(d.index));t.dispatch(Om({active:!d.active,activeIndex:d.index,activeCoordinate:x}));return}var w=_ae(u),S=w==="left-to-right"?1:-1,O=p==="ArrowRight"?1:-1,_=y+O*S;if(g==null||_>=g.length||_<0)return;var C=Am(u,"axis","hover",String(_));t.dispatch(Om({active:!0,activeIndex:_.toString(),activeCoordinate:C}))}finally{kl=null,Ho=null}};if(!o){l();return}r==="raf"?kl=requestAnimationFrame(l):typeof r=="number"&&Ho===null&&(l(),Wh=null,Ho=setTimeout(()=>{Wh?l():(Ho=null,kl=null)},r))}});Hy.startListening({actionCreator:mV,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var o="0",l=Am(n,"axis","hover",String(o));t.dispatch(Om({active:!0,activeIndex:o,activeCoordinate:l}))}}}});Hy.startListening({actionCreator:yV,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;i.active&&t.dispatch(Om({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function vV(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(n,r)=>{if(r==="currentTarget")return t;var i=Reflect.get(n,r);return typeof i=="function"?i.bind(n):i}})}var Mr=vr("externalEvent"),gV=Yf(),Xh=new Map,Vc=new Map,kx=new Map;gV.startListening({actionCreator:Mr,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,o=vV(r);kx.set(i,{handler:n,reactEvent:o});var l=Xh.get(i);l!==void 0&&(cancelAnimationFrame(l),Xh.delete(i));var u=t.getState(),{throttleDelay:f,throttledEvents:d}=u.eventSettings,p=d,m=p==="all"||(p==null?void 0:p.includes(i)),y=Vc.get(i);y!==void 0&&(typeof f!="number"||!m)&&(clearTimeout(y),Vc.delete(i));var g=()=>{var S=kx.get(i);try{if(!S)return;var{handler:O,reactEvent:_}=S,C=t.getState(),k={activeCoordinate:Coe(C),activeDataKey:nB(C),activeIndex:hu(C),activeLabel:tB(C),activeTooltipIndex:hu(C),isTooltipActive:koe(C)};O&&O(k,_)}finally{Xh.delete(i),Vc.delete(i),kx.delete(i)}};if(!m){g();return}if(f==="raf"){var x=requestAnimationFrame(g);Xh.set(i,x)}else if(typeof f=="number"){if(!Vc.has(i)){g();var w=setTimeout(g,f);Vc.set(i,w)}}else g()}}});var che=$([Cu],e=>e.tooltipItemPayloads),fhe=$([che,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(o=>o.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}}),bV=vr("touchMove"),xV=Yf(),Go=null,Ka=null,_D=null,Uc=null;xV.startListening({actionCreator:bV,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){Uc=vV(n);var r=t.getState(),{throttleDelay:i,throttledEvents:o}=r.eventSettings,l=o==="all"||o.includes("touchmove");Go!==null&&(cancelAnimationFrame(Go),Go=null),Ka!==null&&(typeof i!="number"||!l)&&(clearTimeout(Ka),Ka=null),_D=Array.from(n.touches).map(f=>dO({clientX:f.clientX,clientY:f.clientY,currentTarget:n.currentTarget}));var u=()=>{if(Uc!=null){var f=t.getState(),d=KE(f,f.tooltip.settings.shared);if(d==="axis"){var p,m=(p=_D)===null||p===void 0?void 0:p[0];if(m==null){Go=null,Ka=null;return}var y=fO(f,m);(y==null?void 0:y.activeIndex)!=null&&t.dispatch(q4({activeIndex:y.activeIndex,activeDataKey:void 0,activeCoordinate:y.activeCoordinate}))}else if(d==="item"){var g,x=Uc.touches[0];if(document.elementFromPoint==null||x==null)return;var w=document.elementFromPoint(x.clientX,x.clientY);if(!w||!w.getAttribute)return;var S=w.getAttribute(N3),O=(g=w.getAttribute(M3))!==null&&g!==void 0?g:void 0,_=ku(f).find(N=>N.id===O);if(S==null||_==null||O==null)return;var{dataKey:C}=_,k=fhe(f,S,O);t.dispatch(U4({activeDataKey:C,activeIndex:S,activeCoordinate:k,activeGraphicalItemId:O}))}Go=null,Ka=null}};if(!l){u();return}i==="raf"?Go=requestAnimationFrame(u):typeof i=="number"&&Ka===null&&(u(),Uc=null,Ka=setTimeout(()=>{Uc?u():(Ka=null,Go=null)},i))}}});var hO={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},wV=Dn({name:"eventSettings",initialState:hO,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:dhe}=wV.actions,hhe=wV.reducer,phe=Jz({brush:tfe,cartesianAxis:Kce,chartData:_se,errorBars:ede,eventSettings:hhe,graphicalItems:Xue,layout:BZ,legend:FJ,options:Sse,polarAxis:iue,polarOptions:uhe,referenceElements:afe,renderedTicks:Sfe,rootProps:ihe,tooltip:Bae,zIndex:cse}),mhe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return cZ({reducer:phe,preloadedState:t,middleware:r=>{var i;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([cV.middleware,fV.middleware,Hy.middleware,gV.middleware,xV.middleware])},enhancers:r=>{var i=r;return typeof r=="function"&&(i=r()),i.concat(p3({type:"raf"}))},devTools:{serialize:{replacer:rhe},name:"recharts-".concat(n)}})};function SV(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=tr(),o=E.useRef(null);if(i)return n;o.current==null&&(o.current=mhe(t,r));var l=PS;return E.createElement(iee,{context:l,store:o.current},n)}function yhe(e){var{layout:t,margin:n}=e,r=mt(),i=tr();return E.useEffect(()=>{i||(r(IZ(t)),r(RZ(n)))},[r,i,t,n]),null}var EV=E.memo(yhe,wy);function OV(e){var t=mt();return E.useEffect(()=>{t(ahe(e))},[t,e]),null}var vhe=e=>{var t=mt();return E.useEffect(()=>{t(dhe(e))},[t,e]),null},AV=E.memo(vhe,wy);function CD(e){var{zIndex:t,isPanorama:n}=e,r=E.useRef(null),i=mt();return E.useLayoutEffect(()=>(r.current&&i(lse({zIndex:t,element:r.current,isPanorama:n})),()=>{i(use({zIndex:t,isPanorama:n}))}),[i,t,n]),E.createElement("g",{tabIndex:-1,ref:r,className:"recharts-zIndex-layer_".concat(t)})}function kD(e){var{children:t,isPanorama:n}=e,r=Ae(Zoe);if(!r||r.length===0)return t;var i=r.filter(l=>l<0),o=r.filter(l=>l>0);return E.createElement(E.Fragment,null,i.map(l=>E.createElement(CD,{key:l,zIndex:l,isPanorama:n})),t,o.map(l=>E.createElement(CD,{key:l,zIndex:l,isPanorama:n})))}var ghe=["children"];function bhe(e,t){if(e==null)return{};var n,r,i=xhe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xhe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Mm(){return Mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mm.apply(null,arguments)}var whe={width:"100%",height:"100%",display:"block"},She=E.forwardRef((e,t)=>{var n=z3(),r=B3(),i=Z3();if(!Ti(n)||!Ti(r))return null;var{children:o,otherAttributes:l,title:u,desc:f}=e,d,p;return l!=null&&(typeof l.tabIndex=="number"?d=l.tabIndex:d=i?0:void 0,typeof l.role=="string"?p=l.role:p=i?"application":void 0),E.createElement(pz,Mm({},l,{title:u,desc:f,role:p,tabIndex:d,width:n,height:r,style:whe,ref:t}),o)}),Ehe=e=>{var{children:t}=e,n=Ae(yy);if(!n)return null;var{width:r,height:i,y:o,x:l}=n;return E.createElement(pz,{width:r,height:i,x:l,y:o},t)},jD=E.forwardRef((e,t)=>{var{children:n}=e,r=bhe(e,ghe),i=tr();return i?E.createElement(Ehe,null,E.createElement(kD,{isPanorama:!0},n)):E.createElement(She,Mm({ref:t},r),E.createElement(kD,{isPanorama:!1},n))});function Ohe(){var e=mt(),[t,n]=E.useState(null),r=Ae(eJ);return E.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;He(o)&&o!==r&&e(zZ(o))}},[t,e,r]),n}function ND(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ahe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ND(Object(n),!0).forEach(function(r){The(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ND(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function The(e,t,n){return(t=_he(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _he(e){var t=Che(e,"string");return typeof t=="symbol"?t:t+""}function Che(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lo.apply(null,arguments)}var khe=()=>(Ise(),null);function Pm(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var jhe=E.forwardRef((e,t)=>{var n,r,i=E.useRef(null),[o,l]=E.useState({containerWidth:Pm((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Pm((r=e.style)===null||r===void 0?void 0:r.height)}),u=E.useCallback((d,p)=>{l(m=>{var y=Math.round(d),g=Math.round(p);return m.containerWidth===y&&m.containerHeight===g?m:{containerWidth:y,containerHeight:g}})},[]),f=E.useCallback(d=>{if(typeof t=="function"&&t(d),d!=null&&typeof ResizeObserver<"u"){var{width:p,height:m}=d.getBoundingClientRect();u(p,m);var y=x=>{var w=x[0];if(w!=null){var{width:S,height:O}=w.contentRect;u(S,O)}},g=new ResizeObserver(y);g.observe(d),i.current=g}},[t,u]);return E.useEffect(()=>()=>{var d=i.current;d!=null&&d.disconnect()},[u]),E.createElement(E.Fragment,null,E.createElement(Xf,{width:o.containerWidth,height:o.containerHeight}),E.createElement("div",lo({ref:f},e)))}),Nhe=E.forwardRef((e,t)=>{var{width:n,height:r}=e,[i,o]=E.useState({containerWidth:Pm(n),containerHeight:Pm(r)}),l=E.useCallback((f,d)=>{o(p=>{var m=Math.round(f),y=Math.round(d);return p.containerWidth===m&&p.containerHeight===y?p:{containerWidth:m,containerHeight:y}})},[]),u=E.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null){var{width:d,height:p}=f.getBoundingClientRect();l(d,p)}},[t,l]);return E.createElement(E.Fragment,null,E.createElement(Xf,{width:i.containerWidth,height:i.containerHeight}),E.createElement("div",lo({ref:u},e)))}),Mhe=E.forwardRef((e,t)=>{var{width:n,height:r}=e;return E.createElement(E.Fragment,null,E.createElement(Xf,{width:n,height:r}),E.createElement("div",lo({ref:t},e)))}),Phe=E.forwardRef((e,t)=>{var{width:n,height:r}=e;return typeof n=="string"||typeof r=="string"?E.createElement(Nhe,lo({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?E.createElement(Mhe,lo({},e,{width:n,height:r,ref:t})):E.createElement(E.Fragment,null,E.createElement(Xf,{width:n,height:r}),E.createElement("div",lo({ref:t},e)))});function Dhe(e){return e?jhe:Phe}var Rhe=E.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:o,onContextMenu:l,onDoubleClick:u,onMouseDown:f,onMouseEnter:d,onMouseLeave:p,onMouseMove:m,onMouseUp:y,onTouchEnd:g,onTouchMove:x,onTouchStart:w,style:S,width:O,responsive:_,dispatchTouchEvents:C=!0}=e,k=E.useRef(null),N=mt(),[M,R]=E.useState(null),[P,V]=E.useState(null),H=Ohe(),Z=VS(),F=(Z==null?void 0:Z.width)>0?Z.width:O,he=(Z==null?void 0:Z.height)>0?Z.height:i,ne=E.useCallback(ye=>{H(ye),typeof t=="function"&&t(ye),R(ye),V(ye),ye!=null&&(k.current=ye)},[H,t,R,V]),ee=E.useCallback(ye=>{N(uV(ye)),N(Mr({handler:o,reactEvent:ye}))},[N,o]),D=E.useCallback(ye=>{N(vw(ye)),N(Mr({handler:d,reactEvent:ye}))},[N,d]),q=E.useCallback(ye=>{N(F4()),N(Mr({handler:p,reactEvent:ye}))},[N,p]),B=E.useCallback(ye=>{N(vw(ye)),N(Mr({handler:m,reactEvent:ye}))},[N,m]),ce=E.useCallback(()=>{N(mV())},[N]),Y=E.useCallback(()=>{N(yV())},[N]),I=E.useCallback(ye=>{N(pV(ye.key))},[N]),Q=E.useCallback(ye=>{N(Mr({handler:l,reactEvent:ye}))},[N,l]),ue=E.useCallback(ye=>{N(Mr({handler:u,reactEvent:ye}))},[N,u]),fe=E.useCallback(ye=>{N(Mr({handler:f,reactEvent:ye}))},[N,f]),de=E.useCallback(ye=>{N(Mr({handler:y,reactEvent:ye}))},[N,y]),me=E.useCallback(ye=>{N(Mr({handler:w,reactEvent:ye}))},[N,w]),ke=E.useCallback(ye=>{C&&N(bV(ye)),N(Mr({handler:x,reactEvent:ye}))},[N,C,x]),Be=E.useCallback(ye=>{N(Mr({handler:g,reactEvent:ye}))},[N,g]),se=Dhe(_);return E.createElement(fB.Provider,{value:M},E.createElement($W.Provider,{value:P},E.createElement(se,{width:F??(S==null?void 0:S.width),height:he??(S==null?void 0:S.height),className:tt("recharts-wrapper",r),style:Ahe({position:"relative",cursor:"default",width:F,height:he},S),onClick:ee,onContextMenu:Q,onDoubleClick:ue,onFocus:ce,onBlur:Y,onKeyDown:I,onMouseDown:fe,onMouseEnter:D,onMouseLeave:q,onMouseMove:B,onMouseUp:de,onTouchEnd:Be,onTouchMove:ke,onTouchStart:me,ref:ne},E.createElement(khe,null),n)))}),Ihe=["width","height","responsive","children","className","style","compact","title","desc"];function Lhe(e,t){if(e==null)return{};var n,r,i=zhe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zhe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var TV=E.forwardRef((e,t)=>{var{width:n,height:r,responsive:i,children:o,className:l,style:u,compact:f,title:d,desc:p}=e,m=Lhe(e,Ihe),y=yr(m);return f?E.createElement(E.Fragment,null,E.createElement(Xf,{width:n,height:r}),E.createElement(jD,{otherAttributes:y,title:d,desc:p},o)):E.createElement(Rhe,{className:l,style:u,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},E.createElement(jD,{otherAttributes:y,title:d,desc:p,ref:t},E.createElement(sfe,null,o)))});function gw(){return gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gw.apply(null,arguments)}function MD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bhe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MD(Object(n),!0).forEach(function(r){Vhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vhe(e,t,n){return(t=Uhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uhe(e){var t=Fhe(e,"string");return typeof t=="symbol"?t:t+""}function Fhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qhe={top:5,right:5,bottom:5,left:5},$he=Bhe({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:qhe,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},hO),Hhe=E.forwardRef(function(t,n){var r,i=Pn(t.categoricalChartProps,$he),{chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,p={chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,eventEmitter:void 0};return E.createElement(SV,{preloadedState:{options:p},reduxStoreName:(r=d.id)!==null&&r!==void 0?r:o},E.createElement($B,{chartData:d.data}),E.createElement(EV,{layout:i.layout,margin:i.margin}),E.createElement(AV,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),E.createElement(OV,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),E.createElement(TV,gw({},i,{ref:n})))});function Ghe(e){var t=mt();return E.useEffect(()=>{t(lhe(e))},[t,e]),null}var Khe=["layout"];function bw(){return bw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bw.apply(null,arguments)}function Yhe(e,t){if(e==null)return{};var n,r,i=Whe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Whe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xhe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){Qhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qhe(e,t,n){return(t=Zhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zhe(e){var t=Jhe(e,"string");return typeof t=="symbol"?t:t+""}function Jhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var epe={top:5,right:5,bottom:5,left:5},_V=Xhe({accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:epe,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},hO),tpe=E.forwardRef(function(t,n){var r,i=Pn(t.categoricalChartProps,_V),{layout:o}=i,l=Yhe(i,Khe),{chartName:u,defaultTooltipEventType:f,validateTooltipEventTypes:d,tooltipPayloadSearcher:p}=t,m={chartName:u,defaultTooltipEventType:f,validateTooltipEventTypes:d,tooltipPayloadSearcher:p,eventEmitter:void 0};return E.createElement(SV,{preloadedState:{options:m},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:u},E.createElement($B,{chartData:i.data}),E.createElement(EV,{layout:o,margin:i.margin}),E.createElement(AV,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),E.createElement(OV,{baseValue:void 0,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),E.createElement(Ghe,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),E.createElement(TV,bw({},l,{ref:n})))});function DD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function RD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DD(Object(n),!0).forEach(function(r){npe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function npe(e,t,n){return(t=rpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rpe(e){var t=ipe(e,"string");return typeof t=="symbol"?t:t+""}function ipe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ape=["item"],ope=RD(RD({},_V),{},{layout:"centric",startAngle:0,endAngle:360}),spe=E.forwardRef((e,t)=>{var n=Pn(e,ope);return E.createElement(tpe,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:ape,tooltipPayloadSearcher:dB,categoricalChartProps:n,ref:t})}),lpe=["axis"],CV=E.forwardRef((e,t)=>E.createElement(Hhe,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:lpe,tooltipPayloadSearcher:dB,categoricalChartProps:e,ref:t}));const upe=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},cpe=(e,t)=>({classGroupId:e,validator:t}),kV=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Dm="-",ID=[],fpe="arbitrary..",dpe=e=>{const t=ppe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return hpe(l);const u=l.split(Dm),f=u[0]===""&&u.length>1?1:0;return jV(u,f,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const f=r[l],d=n[l];return f?d?upe(d,f):f:d||ID}return n[l]||ID}}},jV=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const d=jV(e,t+1,o);if(d)return d}const l=n.validators;if(l===null)return;const u=t===0?e.join(Dm):e.slice(t).join(Dm),f=l.length;for(let d=0;d<f;d++){const p=l[d];if(p.validator(u))return p.classGroupId}},hpe=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?fpe+r:void 0})(),ppe=e=>{const{theme:t,classGroups:n}=e;return mpe(n,t)},mpe=(e,t)=>{const n=kV();for(const r in e){const i=e[r];pO(i,n,r,t)}return n},pO=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const l=e[o];ype(l,t,n,r)}},ype=(e,t,n,r)=>{if(typeof e=="string"){vpe(e,t,n);return}if(typeof e=="function"){gpe(e,t,n,r);return}bpe(e,t,n,r)},vpe=(e,t,n)=>{const r=e===""?t:NV(t,e);r.classGroupId=n},gpe=(e,t,n,r)=>{if(xpe(e)){pO(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(cpe(n,e))},bpe=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let l=0;l<o;l++){const[u,f]=i[l];pO(f,NV(t,u),n,r)}},NV=(e,t)=>{let n=e;const r=t.split(Dm),i=r.length;for(let o=0;o<i;o++){const l=r[o];let u=n.nextPart.get(l);u||(u=kV(),n.nextPart.set(l,u)),n=u}return n},xpe=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wpe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},xw="!",LD=":",Spe=[],zD=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Epe=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let l=0,u=0,f=0,d;const p=i.length;for(let w=0;w<p;w++){const S=i[w];if(l===0&&u===0){if(S===LD){o.push(i.slice(f,w)),f=w+1;continue}if(S==="/"){d=w;continue}}S==="["?l++:S==="]"?l--:S==="("?u++:S===")"&&u--}const m=o.length===0?i:i.slice(f);let y=m,g=!1;m.endsWith(xw)?(y=m.slice(0,-1),g=!0):m.startsWith(xw)&&(y=m.slice(1),g=!0);const x=d&&d>f?d-f:void 0;return zD(o,g,y,x)};if(t){const i=t+LD,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):zD(Spe,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Ope=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],u=l[0]==="[",f=t.has(l);u||f?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},Ape=e=>({cache:wpe(e.cacheSize),parseClassName:Epe(e),sortModifiers:Ope(e),...dpe(e)}),Tpe=/\s+/,_pe=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,l=[],u=e.trim().split(Tpe);let f="";for(let d=u.length-1;d>=0;d-=1){const p=u[d],{isExternal:m,modifiers:y,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:w}=n(p);if(m){f=p+(f.length>0?" "+f:f);continue}let S=!!w,O=r(S?x.substring(0,w):x);if(!O){if(!S){f=p+(f.length>0?" "+f:f);continue}if(O=r(x),!O){f=p+(f.length>0?" "+f:f);continue}S=!1}const _=y.length===0?"":y.length===1?y[0]:o(y).join(":"),C=g?_+xw:_,k=C+O;if(l.indexOf(k)>-1)continue;l.push(k);const N=i(O,S);for(let M=0;M<N.length;++M){const R=N[M];l.push(C+R)}f=p+(f.length>0?" "+f:f)}return f},Cpe=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=MV(n))&&(i&&(i+=" "),i+=r);return i},MV=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=MV(e[r]))&&(n&&(n+=" "),n+=t);return n},kpe=(e,...t)=>{let n,r,i,o;const l=f=>{const d=t.reduce((p,m)=>m(p),e());return n=Ape(d),r=n.cache.get,i=n.cache.set,o=u,u(f)},u=f=>{const d=r(f);if(d)return d;const p=_pe(f,n);return i(f,p),p};return o=l,(...f)=>o(Cpe(...f))},jpe=[],Qt=e=>{const t=n=>n[e]||jpe;return t.isThemeGetter=!0,t},PV=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,DV=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Npe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Mpe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ppe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Dpe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Rpe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ipe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ya=e=>Npe.test(e),Ve=e=>!!e&&!Number.isNaN(Number(e)),Wa=e=>!!e&&Number.isInteger(Number(e)),jx=e=>e.endsWith("%")&&Ve(e.slice(0,-1)),Qi=e=>Mpe.test(e),RV=()=>!0,Lpe=e=>Ppe.test(e)&&!Dpe.test(e),mO=()=>!1,zpe=e=>Rpe.test(e),Bpe=e=>Ipe.test(e),Vpe=e=>!we(e)&&!Ee(e),Upe=e=>wo(e,zV,mO),we=e=>PV.test(e),Ko=e=>wo(e,BV,Lpe),BD=e=>wo(e,Wpe,Ve),Fpe=e=>wo(e,UV,RV),qpe=e=>wo(e,VV,mO),VD=e=>wo(e,IV,mO),$pe=e=>wo(e,LV,Bpe),Qh=e=>wo(e,FV,zpe),Ee=e=>DV.test(e),Fc=e=>js(e,BV),Hpe=e=>js(e,VV),UD=e=>js(e,IV),Gpe=e=>js(e,zV),Kpe=e=>js(e,LV),Zh=e=>js(e,FV,!0),Ype=e=>js(e,UV,!0),wo=(e,t,n)=>{const r=PV.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},js=(e,t,n=!1)=>{const r=DV.exec(e);return r?r[1]?t(r[1]):n:!1},IV=e=>e==="position"||e==="percentage",LV=e=>e==="image"||e==="url",zV=e=>e==="length"||e==="size"||e==="bg-size",BV=e=>e==="length",Wpe=e=>e==="number",VV=e=>e==="family-name",UV=e=>e==="number"||e==="weight",FV=e=>e==="shadow",Xpe=()=>{const e=Qt("color"),t=Qt("font"),n=Qt("text"),r=Qt("font-weight"),i=Qt("tracking"),o=Qt("leading"),l=Qt("breakpoint"),u=Qt("container"),f=Qt("spacing"),d=Qt("radius"),p=Qt("shadow"),m=Qt("inset-shadow"),y=Qt("text-shadow"),g=Qt("drop-shadow"),x=Qt("blur"),w=Qt("perspective"),S=Qt("aspect"),O=Qt("ease"),_=Qt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...k(),Ee,we],M=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],P=()=>[Ee,we,f],V=()=>[Ya,"full","auto",...P()],H=()=>[Wa,"none","subgrid",Ee,we],Z=()=>["auto",{span:["full",Wa,Ee,we]},Wa,Ee,we],F=()=>[Wa,"auto",Ee,we],he=()=>["auto","min","max","fr",Ee,we],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...P()],q=()=>[Ya,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],B=()=>[Ya,"screen","full","dvw","lvw","svw","min","max","fit",...P()],ce=()=>[Ya,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],Y=()=>[e,Ee,we],I=()=>[...k(),UD,VD,{position:[Ee,we]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",Gpe,Upe,{size:[Ee,we]}],fe=()=>[jx,Fc,Ko],de=()=>["","none","full",d,Ee,we],me=()=>["",Ve,Fc,Ko],ke=()=>["solid","dashed","dotted","double"],Be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[Ve,jx,UD,VD],ye=()=>["","none",x,Ee,we],Ne=()=>["none",Ve,Ee,we],le=()=>["none",Ve,Ee,we],Ct=()=>[Ve,Ee,we],Re=()=>[Ya,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qi],breakpoint:[Qi],color:[RV],container:[Qi],"drop-shadow":[Qi],ease:["in","out","in-out"],font:[Vpe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qi],shadow:[Qi],spacing:["px",Ve],text:[Qi],"text-shadow":[Qi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ya,we,Ee,S]}],container:["container"],columns:[{columns:[Ve,we,Ee,u]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Wa,"auto",Ee,we]}],basis:[{basis:[Ya,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ve,Ya,"auto","initial","none",we]}],grow:[{grow:["",Ve,Ee,we]}],shrink:[{shrink:["",Ve,Ee,we]}],order:[{order:[Wa,"first","last","none",Ee,we]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[u,"screen",...q()]}],"min-w":[{"min-w":[u,"screen","none",...q()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,Fc,Ko]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ype,Fpe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jx,we]}],"font-family":[{font:[Hpe,qpe,t]}],"font-features":[{"font-features":[we]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Ee,we]}],"line-clamp":[{"line-clamp":[Ve,"none",Ee,BD]}],leading:[{leading:[o,...P()]}],"list-image":[{"list-image":["none",Ee,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ve,"from-font","auto",Ee,Ko]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ve,"auto",Ee,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wa,Ee,we],radial:["",Ee,we],conic:[Wa,Ee,we]},Kpe,$pe]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-bs":[{"border-bs":Y()}],"border-color-be":[{"border-be":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ve,Ee,we]}],"outline-w":[{outline:["",Ve,Fc,Ko]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",p,Zh,Qh]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",m,Zh,Qh]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ve,Ko]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",y,Zh,Qh]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Ve,Ee,we]}],"mix-blend":[{"mix-blend":[...Be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[Ee,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,we]}],filter:[{filter:["","none",Ee,we]}],blur:[{blur:ye()}],brightness:[{brightness:[Ve,Ee,we]}],contrast:[{contrast:[Ve,Ee,we]}],"drop-shadow":[{"drop-shadow":["","none",g,Zh,Qh]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Ve,Ee,we]}],"hue-rotate":[{"hue-rotate":[Ve,Ee,we]}],invert:[{invert:["",Ve,Ee,we]}],saturate:[{saturate:[Ve,Ee,we]}],sepia:[{sepia:["",Ve,Ee,we]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,we]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[Ve,Ee,we]}],"backdrop-contrast":[{"backdrop-contrast":[Ve,Ee,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ve,Ee,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ve,Ee,we]}],"backdrop-invert":[{"backdrop-invert":["",Ve,Ee,we]}],"backdrop-opacity":[{"backdrop-opacity":[Ve,Ee,we]}],"backdrop-saturate":[{"backdrop-saturate":[Ve,Ee,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Ve,Ee,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ve,"initial",Ee,we]}],ease:[{ease:["linear","initial",O,Ee,we]}],delay:[{delay:[Ve,Ee,we]}],animate:[{animate:["none",_,Ee,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,Ee,we]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:Ct()}],"skew-x":[{"skew-x":Ct()}],"skew-y":[{"skew-y":Ct()}],transform:[{transform:[Ee,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Re()}],"translate-x":[{"translate-x":Re()}],"translate-y":[{"translate-y":Re()}],"translate-z":[{"translate-z":Re()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee,we]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ve,Fc,Ko,BD]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qpe=kpe(Xpe);function ht(...e){return Qpe(tt(e))}const fd=Ze`
  fragment FlowFields on Flow {
    id
    title
    status
    createdAt
    updatedAt
    provider {
      name
      type
    }
  }
`,qV=Ze`
  fragment AgentLogFields on AgentLog {
    id
    flowId
    taskId
    subtaskId
    executor
    initiator
    task
    result
    createdAt
  }
`,yO=Ze`
  fragment TaskFields on Task {
    id
    title
    status
    input
    result
    flowId
    createdAt
    updatedAt
  }
`,$V=Ze`
  ${fd}
  query GetFlows {
    flows {
      ...FlowFields
    }
  }
`;Ze`
  ${fd}
  query GetFlow($flowId: ID!) {
    flow(flowId: $flowId) {
      ...FlowFields
    }
  }
`;const Zpe=Ze`
  ${yO}
  query GetTasks($flowId: ID!) {
    tasks(flowId: $flowId) {
      ...TaskFields
    }
  }
`,Jpe=Ze`
  ${qV}
  query GetAgentLogs($flowId: ID!) {
    agentLogs(flowId: $flowId) {
      ...AgentLogFields
    }
  }
`,eme=Ze`
  query GetSettingsUser {
    settingsUser {
      useDarkTheme
      useCompactMode
      useConfirmDialogs
      useAutoRunAssistant
      useAutoCompletionTools
    }
  }
`,tme=Ze`
  query GetSettingsProviders {
    settingsProviders {
      enabled
      userDefined {
        id
        name
        type
      }
    }
  }
`,nme=Ze`
  ${fd}
  subscription FlowUpdated {
    flowUpdated {
      ...FlowFields
    }
  }
`,rme=Ze`
  ${fd}
  subscription FlowCreated {
    flowCreated {
      ...FlowFields
    }
  }
`,ime=Ze`
  ${qV}
  subscription AgentLogAdded($flowId: ID!) {
    agentLogAdded(flowId: $flowId) {
      ...AgentLogFields
    }
  }
`;Ze`
  ${yO}
  subscription TaskCreated($flowId: ID!) {
    taskCreated(flowId: $flowId) {
      ...TaskFields
    }
  }
`;Ze`
  ${yO}
  subscription TaskUpdated($flowId: ID!) {
    taskUpdated(flowId: $flowId) {
      ...TaskFields
    }
  }
`;function ame(){const{data:e,loading:t,error:n}=er($V,{fetchPolicy:"cache-and-network",pollInterval:1e4});return{flows:(e==null?void 0:e.flows)??[],loading:t,error:n}}function ome(e){const{data:t,loading:n,error:r}=er($V,{fetchPolicy:"cache-and-network",pollInterval:8e3}),i=E.useMemo(()=>{const w=(t==null?void 0:t.flows)??[];if(w.length===0)return null;if(e){const O=w.find(_=>_.id===e);if(O)return O}const S=["running","waiting","created","finished","failed"];for(const O of S){const _=w.find(C=>C.status===O);if(_)return _}return w[0]},[t,e]),o=(i==null?void 0:i.id)??"",{data:l,loading:u}=er(Zpe,{skip:!o,variables:{flowId:o},fetchPolicy:"cache-and-network",pollInterval:5e3}),{data:f,loading:d}=er(Jpe,{skip:!o,variables:{flowId:o},fetchPolicy:"cache-and-network",pollInterval:5e3}),p=(l==null?void 0:l.tasks)??[],m=(f==null?void 0:f.agentLogs)??[],y=E.useMemo(()=>{if(p.length===0)return i?i.status==="finished"?100:i.status==="running"?50:i.status==="created"?5:0:0;const w=p.filter(O=>O.status==="finished").length,S=p.filter(O=>O.status==="running").length;return Math.round((w+S*.5)/p.length*100)},[p,i]),g=E.useMemo(()=>{var _;if(p.length===0)return"待确定";const w=((_=p[0])==null?void 0:_.input)??"",S=w.match(/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?:\/\d{1,2})?)/),O=w.match(/(https?:\/\/[^\s]+)/);return((S==null?void 0:S[1])??(O==null?void 0:O[1])??w.slice(0,20))||"待确定"},[p]),x=E.useMemo(()=>{if(!i)return"0m";const w=new Date(i.createdAt).getTime(),O=Date.now()-w,_=Math.floor(O/6e4),C=Math.floor(O%6e4/1e3);return _<60?`${_}m ${C}s`:`${Math.floor(_/60)}h ${_%60}m`},[i]);return{currentFlow:i,tasks:p,agentLogs:m,progress:y,target:g,duration:x,loading:n||u||d,error:r}}function sme(){const{data:e,loading:t,error:n}=Kw(nme);return{updatedFlow:(e==null?void 0:e.flowUpdated)??null,loading:t,error:n}}function lme(){const{data:e,loading:t,error:n}=Kw(rme);return{createdFlow:(e==null?void 0:e.flowCreated)??null,loading:t,error:n}}function ume(e){const{data:t,loading:n,error:r}=Kw(ime,{skip:!e,variables:{flowId:e}});return{newAgentLog:(t==null?void 0:t.agentLogAdded)??null,loading:n,error:r}}const cme=Ze`
  query GetAssistants($flowId: ID!) {
    assistants(flowId: $flowId) {
      id
      title
      status
      useAgents
      createdAt
      updatedAt
    }
  }
`,fme=Ze`
  query GetScreenshots($flowId: ID!) {
    screenshots(flowId: $flowId) {
      id
      name
      url
      createdAt
    }
  }
`,HV=Ze`
  query GetAgentLogsWithLimit($flowId: ID!) {
    agentLogs(flowId: $flowId) {
      id
      flowId
      taskId
      executor
      initiator
      task
      result
      createdAt
    }
  }
`;function dme(e){const{data:t,loading:n,error:r}=er(cme,{skip:!e,variables:{flowId:e},fetchPolicy:"cache-and-network",pollInterval:8e3});return{assistants:(t==null?void 0:t.assistants)??[],loading:n,error:r}}function hme(e){const{data:t,loading:n,error:r}=er(fme,{skip:!e,variables:{flowId:e},fetchPolicy:"cache-and-network",pollInterval:1e4});return{screenshots:(t==null?void 0:t.screenshots)??[],loading:n,error:r}}function pme(e){const{data:t,loading:n,error:r}=er(HV,{skip:!e,variables:{flowId:e},fetchPolicy:"cache-and-network",pollInterval:1e4}),i=(t==null?void 0:t.agentLogs)??[];return{activityData:E.useMemo(()=>{if(i.length===0)return[];const l=i.map(y=>new Date(y.createdAt).getTime()).sort((y,g)=>y-g),u=l[0],f=l[l.length-1],d=600*1e3,p=[];let m=u;for(;m<=f+d;){const y=m+d,g=i.filter(S=>{const O=new Date(S.createdAt).getTime();return O>=m&&O<y}),x=new Date(m).getHours().toString().padStart(2,"0"),w=new Date(m).getMinutes().toString().padStart(2,"0");p.push({time:`${x}:${w}`,count:g.length,pentester:g.filter(S=>S.executor==="pentester").length,searcher:g.filter(S=>S.executor==="searcher"||S.executor==="enricher").length,other:g.filter(S=>S.executor!=="pentester"&&S.executor!=="searcher"&&S.executor!=="enricher").length}),m=y}return p},[i]),totalActions:i.length,loading:n,error:r,hasRealData:i.length>=3}}const mme=Ze`
  query GetGlobalStats {
    flowsStatsTotal {
      totalFlowsCount
      totalTasksCount
      totalSubtasksCount
      totalAssistantsCount
    }
    usageStatsTotal {
      totalUsageIn
      totalUsageOut
      totalUsageCostIn
      totalUsageCostOut
    }
  }
`,yme=Ze`
  query GetFlowStats($flowId: ID!) {
    flowStatsByFlow(flowId: $flowId) {
      totalTasksCount
      totalSubtasksCount
      totalAssistantsCount
    }
    usageStatsByFlow(flowId: $flowId) {
      totalUsageIn
      totalUsageOut
      totalUsageCostIn
      totalUsageCostOut
    }
  }
`;Ze`
  query GetProviderInfo {
    flows {
      id
      provider {
        name
        type
      }
    }
  }
`;function vme(){const{data:e,loading:t,error:n}=er(mme,{fetchPolicy:"cache-and-network",pollInterval:15e3});return{flowsStats:(e==null?void 0:e.flowsStatsTotal)??null,usageStats:(e==null?void 0:e.usageStatsTotal)??null,loading:t,error:n}}function gme(e){const{data:t,loading:n,error:r}=er(yme,{skip:!e,variables:{flowId:e},fetchPolicy:"cache-and-network",pollInterval:1e4});return{flowStats:(t==null?void 0:t.flowStatsByFlow)??null,flowUsage:(t==null?void 0:t.usageStatsByFlow)??null,loading:n,error:r}}function bme(e){const{data:t,loading:n,error:r}=er(HV,{skip:!e,variables:{flowId:e},fetchPolicy:"cache-and-network",pollInterval:1e4}),i=(t==null?void 0:t.agentLogs)??[],o=E.useMemo(()=>{if(i.length===0)return null;const l=["poc","PoC","exploit","漏洞利用","验证","CVE","payload","注入","XSS","代码"],u=i.filter(d=>(d.executor==="coder"||d.executor==="pentester")&&l.some(p=>d.task.includes(p)||d.result.includes(p)));if(u.length>0){const d=u[u.length-1];return{id:d.id,executor:d.executor,task:d.task,result:d.result,createdAt:d.createdAt}}const f=i.filter(d=>d.executor==="coder");return f.length>0?f[f.length-1]:null},[i]);return{latestPoc:o,loading:n,error:r,hasPoc:o!==null}}const xme=Ze`
  mutation PutUserInput($flowId: ID!, $input: String!) {
    putUserInput(flowId: $flowId, input: $input)
  }
`,wme=Ze`
  ${fd}
  mutation CreateFlow($modelProvider: String!, $input: String!) {
    createFlow(modelProvider: $modelProvider, input: $input) {
      ...FlowFields
    }
  }
`,Sme=Ze`
  mutation StopFlow($flowId: ID!) {
    stopFlow(flowId: $flowId)
  }
`,Eme=Ze`
  mutation UpdateSettingsUser($input: InputUserPreferencesUpdate!) {
    updateSettingsUser(input: $input) {
      id
      favoriteFlows
      useDarkTheme
      useCompactMode
      useConfirmDialogs
      useAutoRunAssistant
      useAutoCompletionTools
    }
  }
`,Ome=Ze`
  mutation CreateProvider($name: String!, $type: ProviderType!, $agents: AgentsConfigInput!) {
    createProvider(name: $name, type: $type, agents: $agents) {
      id
      name
      type
      agents
    }
  }
`,Ame=Ze`
  mutation UpdateProvider($providerId: ID!, $name: String!, $agents: AgentsConfigInput!) {
    updateProvider(providerId: $providerId, name: $name, agents: $agents) {
      id
      name
      type
      agents
    }
  }
`,Tme=Ze`
  mutation DeleteProvider($providerId: ID!) {
    deleteProvider(providerId: $providerId)
  }
`;function _me(){const[e,{loading:t,error:n}]=ts(xme);return{putUserInput:e,loading:t,error:n}}function Cme(){const[e,{loading:t,error:n}]=ts(wme);return{createFlow:e,loading:t,error:n}}function kme(){const[e,{loading:t,error:n}]=ts(Sme);return{stopFlow:e,loading:t,error:n}}function jme(){var n,r;const e=er(eme,{fetchPolicy:"cache-and-network"}),t=er(tme,{fetchPolicy:"cache-and-network"});return{settingsUser:((n=e.data)==null?void 0:n.settingsUser)??null,settingsProviders:((r=t.data)==null?void 0:r.settingsProviders)??null,loading:e.loading||t.loading,error:e.error||t.error}}function Nme(){const[e,t]=ts(Eme),[n,r]=ts(Ome),[i,o]=ts(Ame),[l,u]=ts(Tme);return{updateSettingsUser:e,createProvider:n,updateProvider:i,deleteProvider:l,loading:t.loading||r.loading||o.loading||u.loading,error:t.error||r.error||o.error||u.error}}const GV=[{id:"a1",name:"Researcher",role:"侦察者",status:"thinking",currentThought:"正在分析 Nmap 结果...发现 80 端口开放。",tokenUsage:4500},{id:"a2",name:"Executor",role:"执行者",status:"idle",currentThought:"收到指令，正在启动 DirBuster 容器...",tokenUsage:1200},{id:"a3",name:"Analyzer",role:"代码分析师",status:"idle",currentThought:"等待 Web 目录扫描结果进行深度分析。",tokenUsage:8900},{id:"a4",name:"Verifier",role:"验证专家",status:"idle",currentThought:"准备对发现的漏洞进行 PoC 验证。",tokenUsage:3100}],Mme=[{agent:"Researcher",text:"[侦察阶段] 完成 Nmap 端口扫描，发现 80, 22, 3306 端口开放。",timestamp:"14:23:01"},{agent:"Executor",text:"[执行阶段] 启动 DirBuster 目录爆破，目标 http://10.0.0.5/。",timestamp:"14:23:05"},{agent:"Researcher",text:"[发现目标] 成功定位后台登录入口 /admin/login.php。",timestamp:"14:23:10"},{agent:"Analyzer",text:'[漏洞分析] 分析登录页面源码，确认参数 "user" 存在 SQL 注入风险。',timestamp:"14:23:15"}],KV=[{time:"09:00",actions:12},{time:"09:05",actions:18},{time:"09:10",actions:45},{time:"09:15",actions:32},{time:"09:20",actions:67},{time:"09:25",actions:89},{time:"09:30",actions:54}],YV=(e=[])=>e.map((t,n)=>{var r,i;return{id:String(t.id??n),severity:n%4===0?"Critical":n%4===1?"High":n%4===2?"Medium":"Low",host:t.initiator||t.executor||"unknown",description:((r=t.result)==null?void 0:r.slice(0,80))||((i=t.task)==null?void 0:i.slice(0,80))||"No details",cvss:n%4===0?9.8:n%4===1?7.5:n%4===2?5.3:3.1,status:/success|confirmed|verified|open|found/i.test(t.result||"")?"Confirmed":"Detected",poc:!!t.result}}),WV=(e=[],t=[])=>{const n=["Researcher","Executor","Analyzer","Verifier"],r=new Map;return t.forEach(i=>{i.executor&&r.set(i.executor,i)}),e.length>0?e.map((i,o)=>{const l=r.get(i.title)||[...r.values()][o];return{id:String(i.id),name:i.title||n[o]||`Agent-${o+1}`,role:n[o]||"Agent",status:i.status==="running"?"thinking":i.status==="finished"?"idle":"busy",currentThought:(l==null?void 0:l.result)||(l==null?void 0:l.task)||"等待任务中",tokenUsage:0}}):Array.from(r.entries()).map(([i,o],l)=>({id:`log-agent-${l}`,name:i,role:n[l]||"Agent",status:"thinking",currentThought:o.result||o.task||"处理中",tokenUsage:0}))},FD=(e,t=[],n,r)=>{var l,u;const i=YV(t).slice(0,6).map((f,d)=>({id:`finding-${d}`,title:f.description,severity:f.severity,host:f.host,cve:"N/A"})),o={critical:i.filter(f=>f.severity==="Critical").length,high:i.filter(f=>f.severity==="High").length,medium:i.filter(f=>f.severity==="Medium").length,low:i.filter(f=>f.severity==="Low").length};return{id:(e==null?void 0:e.id)||"live-report",title:e!=null&&e.title?`渗透测试报告 - ${e.title}`:"渗透测试报告",executiveSummary:((l=t[0])==null?void 0:l.result)||((u=t[0])==null?void 0:u.task)||"暂无执行摘要，等待 Agent 输出。",riskMatrix:o,findings:i,recommendations:`建议继续围绕当前目标进行验证与复现；当前任务数 ${(n==null?void 0:n.totalTasksCount)??0}，Token 输出 ${(r==null?void 0:r.totalUsageOut)??0}。`,generatedAt:(e==null?void 0:e.updatedAt)||(e==null?void 0:e.createdAt)||new Date().toISOString()}},Pme=({thinkingText:e,setSelectedArtifact:t,sandboxStatus:n,sandboxError:r,runSandbox:i,setShowReport:o,activeAgentId:l,setActiveAgentId:u,setSelectedAgentDetailId:f,teachingMode:d,addNotification:p,backendAssistants:m=[],backendAgentLogs:y=[],backendTasks:g=[],backendScreenshots:x=[],backendActivityData:w=[],hasActivityData:S=!1,backendLatestPoc:O=null,hasPoc:_=!1,backendFlowsStats:C=null,backendUsageStats:k=null,backendFlowStats:N=null,backendFlowUsage:M=null,pocLoading:R=!1})=>{var ne;const P=YV(y),V={0:"Researcher",1:"Executor",2:"Analyzer",3:"Verifier"},H={running:"正在扫描目标系统网络拓扑结构...",waiting:"等待 Researcher 完成侦察阶段...",created:"待命中，尚未分配任务",finished:"已完成分配的分析任务",failed:"执行失败，等待重试"},Z=WV(m,y).map((ee,D)=>({...ee,role:ee.role||V[D]||"AGENT",currentThought:ee.currentThought||H[ee.status]||"待命中"}));P.length===0&&Z.length;const F=P.length,he=P.filter(ee=>ee.status==="Exploited").length;return A.jsxs("div",{className:"flex-1 flex flex-col md:grid md:grid-cols-12 gap-4 overflow-y-auto md:overflow-hidden min-h-0 md:grid-rows-3",children:[A.jsx("div",{className:"col-span-12 md:col-span-8 md:row-span-2 flex flex-col min-h-0",children:A.jsx(yi,{title:"关键发现列表",className:"flex-1 min-h-0",icon:Yw,badge:"REAL-TIME UPDATES",children:A.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:A.jsx("div",{className:"overflow-auto custom-scrollbar flex-1",children:P.length===0?A.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-4 py-8",children:[A.jsx("div",{className:"w-16 h-16 rounded-full bg-cyber-accent/10 border border-cyber-accent/20 flex items-center justify-center",children:A.jsx(Yc,{size:28,className:"text-cyber-accent/50"})}),A.jsxs("div",{className:"text-center",children:[A.jsx("p",{className:"text-sm font-bold text-cyber-text mb-1",children:"暂无漏洞发现"}),A.jsx("p",{className:"text-[11px] text-cyber-muted mb-3",children:"创建一个渗透测试任务以开始扫描"}),A.jsxs("div",{className:"flex items-center gap-2 justify-center text-[10px] text-cyber-muted border border-dashed border-cyber-border rounded-lg px-4 py-2",children:[A.jsx(SI,{size:12,className:"text-cyber-accent"}),A.jsx("span",{children:"在顶部输入框输入目标，按 Enter 创建新任务"})]})]})]}):A.jsxs("table",{className:"w-full text-left border-collapse",children:[A.jsx("thead",{children:A.jsxs("tr",{className:"text-[9px] text-cyber-muted uppercase font-bold border-b border-cyber-border sticky top-0 bg-[#0a0a0a] z-10",children:[A.jsx("th",{className:"py-2 px-2",children:"严重程度"}),A.jsx("th",{className:"py-2 px-2",children:"主机 IP"}),A.jsx("th",{className:"py-2 px-2",children:"漏洞标题 / CVE"}),A.jsx("th",{className:"py-2 px-2",children:"CVSS"}),A.jsx("th",{className:"py-2 px-2",children:"状态"}),A.jsx("th",{className:"py-2 px-2 text-right",children:"PoC"})]})}),A.jsx("tbody",{className:"text-[10px]",children:(()=>{const ee={Critical:4,High:3,Medium:2,Low:1};return[...P].sort((D,q)=>ee[q.severity]!==ee[D.severity]?ee[q.severity]-ee[D.severity]:q.cvss-D.cvss).map(D=>A.jsxs(Nr.tr,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},className:ht("border-b border-white/5 hover:bg-white/5 transition-all group",D.status==="Exploited"&&"bg-red-500/10 border-l-2 border-l-red-500 shadow-[inset_0_0_10px_rgba(255,0,0,0.05)]"),children:[A.jsx("td",{className:"py-2 px-2",children:A.jsx("span",{className:ht("px-1.5 py-0.5 rounded font-bold uppercase text-[8px]",D.severity==="Critical"?"bg-red-600 text-white":D.severity==="High"?"bg-orange-600 text-white":D.severity==="Medium"?"bg-yellow-600 text-black":"bg-emerald-600 text-white"),children:D.severity})}),A.jsx("td",{className:"py-2 px-2 font-mono text-cyber-accent",children:D.host}),A.jsx("td",{className:"py-2 px-2 text-cyber-text font-medium truncate max-w-[120px]",title:D.description,children:D.description}),A.jsx("td",{className:"py-2 px-2 font-mono",children:D.cvss.toFixed(1)}),A.jsx("td",{className:"py-2 px-2",children:A.jsxs("div",{className:"flex items-center gap-1",children:[A.jsx("div",{className:ht("w-1 h-1 rounded-full",D.status==="Exploited"?"bg-red-500 animate-pulse":D.status==="Confirmed"?"bg-orange-500":D.status==="Remediated"?"bg-emerald-500":"bg-blue-500")}),A.jsx("span",{className:ht("uppercase font-bold text-[8px]",D.status==="Exploited"?"text-red-500":"text-cyber-muted"),children:D.status==="Exploited"?"EXPLOITED ✓":D.status})]})}),A.jsx("td",{className:"py-2 px-2 text-right",children:A.jsx("button",{onClick:()=>t(D),className:ht("p-1 rounded transition-colors",D.status==="Exploited"?"text-red-500 hover:bg-red-500/20":"text-cyber-muted hover:text-cyber-accent"),children:A.jsx(uH,{size:12})})})]},D.id))})()})]})})})})}),A.jsx("div",{className:"col-span-12 md:col-span-4 md:row-span-2 flex flex-col min-h-0",children:A.jsx(yi,{title:"风险分布",className:"flex-1 min-h-0",icon:lp,children:(()=>{const ee=[{name:"严重 (Critical)",value:P.filter(q=>q.severity==="Critical").length,color:"#ff0000"},{name:"高危 (High)",value:P.filter(q=>q.severity==="High").length,color:"#ff4400"},{name:"中危 (Medium)",value:P.filter(q=>q.severity==="Medium").length,color:"#ffaa00"},{name:"低危 (Low)",value:P.filter(q=>q.severity==="Low").length,color:"#00ff00"}],D=ee.some(q=>q.value>0);return A.jsxs("div",{className:"h-full flex flex-col gap-4",children:[A.jsxs("div",{className:"flex-1 relative min-h-0",children:[D?A.jsx(U1,{width:"100%",height:"100%",children:A.jsxs(spe,{children:[A.jsx(UB,{data:ee,innerRadius:"60%",outerRadius:"80%",paddingAngle:5,dataKey:"value",stroke:"none",children:ee.map((q,B)=>A.jsx(Vy,{fill:q.color},`cell-${B}`))}),A.jsx(cw,{contentStyle:{backgroundColor:"#0a0a0a",border:"1px solid #1a1a1a",fontSize:"10px",borderRadius:"4px"},itemStyle:{color:"#fff"}})]})}):A.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-2",children:[A.jsx(lp,{size:24,className:"text-cyber-muted/30"}),A.jsx("span",{className:"text-[10px] text-cyber-muted",children:"暂无风险数据"})]}),A.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:D&&A.jsxs(A.Fragment,{children:[A.jsx("span",{className:"text-2xl font-bold text-white",children:he}),A.jsx("span",{className:"text-[10px] text-cyber-muted uppercase tracking-widest",children:"已利用"})]})})]}),A.jsxs("div",{className:"space-y-2",children:[A.jsxs("div",{className:"text-xs font-bold text-white mb-2 pb-2 border-b border-white/10 flex justify-between",children:[A.jsxs("span",{children:["已发现总数: ",F]}),A.jsxs("span",{className:"text-red-500",children:["已利用: ",he]})]}),ee.map((q,B)=>A.jsxs("div",{className:"flex items-center justify-between text-xs",children:[A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:q.color}}),A.jsx("span",{className:"text-cyber-muted",children:q.name})]}),A.jsx("span",{className:"font-bold text-white",children:q.value})]},B))]})]})})()})}),A.jsxs("div",{className:"col-span-12 md:row-span-1 flex flex-col md:flex-row gap-6 min-h-0",children:[A.jsxs("div",{className:"flex-1 grid grid-cols-1 md:grid-cols-2 gap-4 min-h-0 relative",children:[A.jsx(yi,{title:"PoC 验证沙箱",className:"flex-1 min-h-0",icon:fs,badge:_?"真实 PoC ✓":n==="idle"?"待命":n==="running"?"运行中":n==="success"?"验证通过 ✓":"失败",children:A.jsxs("div",{className:"flex flex-col h-full gap-2",children:[A.jsx("div",{className:ht("flex-1 bg-black/40 rounded border p-2 font-mono text-[9px] overflow-auto custom-scrollbar transition-colors",n==="success"?"border-emerald-500/50 bg-emerald-500/5":_?"border-cyber-accent/40":"border-cyber-border"),children:_&&O?A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"text-cyber-accent mb-1",children:"# 真实 PoC 内容 — 来自后端数据"}),A.jsxs("div",{className:"text-cyber-muted mb-1",children:["# 执行者: ",O.executor," | 时间: ",new Date(O.createdAt).toLocaleTimeString("zh-CN")]}),A.jsxs("div",{className:"text-yellow-400 mb-2",children:["# 任务: ",O.task]}),A.jsx("div",{className:"text-cyber-text whitespace-pre-wrap leading-relaxed",children:O.result})]}):A.jsxs(A.Fragment,{children:[A.jsx("div",{className:ht(n==="success"?"text-emerald-400":"text-cyber-accent"),children:"# 暂无 PoC，等待验证..."}),n==="running"&&A.jsxs("div",{className:"flex items-center gap-2 mt-2 text-cyber-accent",children:[A.jsx(kp,{size:10,className:"animate-spin"}),A.jsx("span",{className:"animate-pulse",children:"正在执行利用脚本..."})]}),n==="success"&&A.jsxs("div",{className:"mt-2 text-emerald-400 flex items-center gap-1 font-bold",children:[A.jsx(K9,{size:10})," 利用成功！已获得反弹 Shell。"]}),n==="failed"&&A.jsxs("div",{className:"mt-2 text-red-500 flex items-center gap-1",children:[A.jsx(lp,{size:10})," ",r||"利用失败。"]})]})}),A.jsxs("button",{onClick:i,disabled:n==="running"||R,className:ht("w-full py-1.5 rounded text-[9px] font-bold flex items-center justify-center gap-1 transition-all",n==="running"||R?"bg-white/5 text-cyber-muted cursor-not-allowed":_?"bg-cyber-accent/20 border border-cyber-accent text-cyber-accent hover:bg-cyber-accent hover:text-black":n==="success"?"bg-emerald-600 text-white hover:bg-emerald-500":"bg-cyber-accent text-black hover:brightness-110"),children:[n==="running"||R?A.jsx(kp,{size:10,className:"animate-spin"}):A.jsx(OH,{size:10,fill:"currentColor"}),R?"提交中...":_?"重新执行 PoC":n==="failed"?"重试沙箱":n==="success"?"重新验证":"运行沙箱"]})]})}),A.jsx(yi,{title:"证据与截图",className:"flex-1 min-h-0",icon:OI,badge:x.length>0?`真实截图 ${x.length} 张`:void 0,children:x.length===0?A.jsx("div",{className:"h-full flex items-center justify-center text-[10px] text-cyber-muted",children:"暂无截图证据，扫描进行中..."}):A.jsx("div",{className:"flex gap-3 overflow-x-auto pb-2 custom-scrollbar h-full items-center flex-nowrap snap-x",children:x.map(ee=>A.jsxs("div",{onClick:()=>t({id:ee.id,title:ee.name,url:ee.url,type:"screenshot",host:"",timestamp:new Date(ee.createdAt).toLocaleTimeString("zh-CN")}),className:"group relative rounded-lg overflow-hidden border border-cyber-border shrink-0 cursor-pointer bg-black/40 snap-start",style:{width:"150px",height:"100px"},children:[A.jsx("img",{src:ee.url,alt:ee.name,className:"w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all duration-500",referrerPolicy:"no-referrer",onError:D=>{D.target.src="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22150%22 height=%22100%22><rect fill=%22%23111%22 width=%22150%22 height=%22100%22/><text x=%2250%25%22 y=%2250%25%22 fill=%22%23555%22 text-anchor=%22middle%22 dy=%22.3em%22 font-size=%2210%22>No Preview</text></svg>"}}),A.jsx("div",{className:"absolute top-1 left-1 bg-black/80 px-1.5 py-0.5 rounded text-[8px] font-bold uppercase border border-white/10 text-cyber-accent",children:"SCREENSHOT"}),A.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-black/80 p-1.5 border-t border-white/10",children:[A.jsx("div",{className:"text-[9px] font-bold text-white truncate",children:ee.name.replace(".png","").replace(/_/g," ")}),A.jsxs("div",{className:"text-[8px] text-cyber-muted flex justify-between mt-0.5",children:[A.jsx("span",{className:"text-cyber-accent/70",children:"LIVE"}),A.jsx("span",{children:new Date(ee.createdAt).toLocaleTimeString("zh-CN")})]})]})]},ee.id))})}),A.jsx("div",{className:"hidden md:block absolute -right-3 top-0 bottom-0 w-px bg-cyber-border/50"})]}),A.jsxs("div",{className:"flex-1 grid grid-cols-1 md:grid-cols-2 gap-4 min-h-0",children:[A.jsx(yi,{title:"智能体活动频率",className:"flex-1 min-h-0",icon:wI,badge:S?`真实数据 ${w.length} 个时间窗口`:"模拟数据",children:A.jsxs("div",{className:"h-full flex flex-col",children:[!S&&A.jsx("div",{className:"text-xs text-cyber-muted text-center py-1 mb-1 border border-cyber-border/30 rounded",children:"数据加载中，显示模拟曲线"}),A.jsx("div",{className:"flex-1",children:A.jsx(U1,{width:"100%",height:"100%",children:A.jsxs(CV,{data:S?w:KV,children:[A.jsxs("defs",{children:[A.jsxs("linearGradient",{id:"colorActions",x1:"0",y1:"0",x2:"0",y2:"1",children:[A.jsx("stop",{offset:"5%",stopColor:"#00ff00",stopOpacity:.3}),A.jsx("stop",{offset:"95%",stopColor:"#00ff00",stopOpacity:0})]}),A.jsxs("linearGradient",{id:"colorPentester",x1:"0",y1:"0",x2:"0",y2:"1",children:[A.jsx("stop",{offset:"5%",stopColor:"#ff4444",stopOpacity:.2}),A.jsx("stop",{offset:"95%",stopColor:"#ff4444",stopOpacity:0})]}),A.jsxs("linearGradient",{id:"colorSearcher",x1:"0",y1:"0",x2:"0",y2:"1",children:[A.jsx("stop",{offset:"5%",stopColor:"#4488ff",stopOpacity:.2}),A.jsx("stop",{offset:"95%",stopColor:"#4488ff",stopOpacity:0})]})]}),A.jsx(sV,{dataKey:"time",tick:{fill:"#666",fontSize:9}}),A.jsx(lV,{tick:{fill:"#666",fontSize:9}}),A.jsx(XB,{strokeDasharray:"3 3",stroke:"#1a1a1a"}),S?A.jsxs(A.Fragment,{children:[A.jsx(ql,{type:"monotone",dataKey:"pentester",name:"渗透测试",stroke:"#ff4444",fillOpacity:1,fill:"url(#colorPentester)"}),A.jsx(ql,{type:"monotone",dataKey:"searcher",name:"搜索分析",stroke:"#4488ff",fillOpacity:1,fill:"url(#colorSearcher)"}),A.jsx(ql,{type:"monotone",dataKey:"other",name:"其他智能体",stroke:"#00ff00",fillOpacity:1,fill:"url(#colorActions)"})]}):A.jsx(ql,{type:"monotone",dataKey:"actions",stroke:"#00ff00",fillOpacity:1,fill:"url(#colorActions)"}),A.jsx(cw,{contentStyle:{backgroundColor:"#0a0a0a",border:"1px solid #1a1a1a",fontSize:"10px",borderRadius:"4px"},itemStyle:{color:"#00ff00"}})]})})})]})}),A.jsx(yi,{title:l?`智能体工作概要: ${(ne=GV.find(ee=>ee.id===l))==null?void 0:ne.name}`:"全局多智能体工作概要",className:"flex-1 min-h-0",icon:fs,badge:l?"过滤模式":"实时汇总中",children:A.jsx("div",{className:"flex flex-col h-full gap-4",children:A.jsxs("div",{className:"flex-1 bg-black/40 rounded-xl border border-cyber-border p-4 font-mono text-sm overflow-auto custom-scrollbar leading-relaxed",children:[A.jsxs("div",{className:"text-cyber-accent mb-3 flex items-center gap-2 text-xs",children:[A.jsx(fs,{size:12}),A.jsx("span",{className:"animate-pulse",children:l?`FILTERING_SUMMARY_FOR_${l.toUpperCase()}...`:"GLOBAL_SUMMARY_INITIALIZED..."})]}),!l&&A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"text-cyber-text whitespace-pre-wrap",children:e||`正在生成多智能体协同工作概要...

[当前阶段] 深度侦察与漏洞挖掘
[参与智能体] Researcher, Executor, Analyzer
[主要发现] 已定位后台登录入口，正在进行 SQL 注入测试。`}),A.jsx("span",{className:"inline-block w-2 h-4 bg-cyber-accent animate-pulse ml-1 align-middle"})]}),A.jsx("div",{className:ht("space-y-4",!l&&"mt-6 border-t border-cyber-border/30 pt-4"),children:Z.map(ee=>l&&ee.id!==l?null:A.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[A.jsx("div",{className:"w-6 h-6 rounded bg-white/5 border border-cyber-border flex items-center justify-center shrink-0",children:A.jsx(F9,{size:12,className:ee.status==="thinking"?"text-cyber-accent":"text-cyber-muted"})}),A.jsx("div",{className:ht("w-1.5 h-1.5 rounded-full shrink-0",ee.status==="thinking"?"bg-cyber-accent animate-pulse shadow-[0_0_5px_#00ff00]":"bg-cyber-muted")}),A.jsxs("span",{className:"text-cyber-accent font-bold shrink-0",children:["[",ee.name,"]"]}),A.jsx("span",{className:"text-cyber-text truncate",title:ee.currentThought,children:ee.currentThought})]},ee.id))})]})})})]})]})]})},Dme=({expandedAgentId:e,setExpandedAgentId:t,agents:n=[],agentLogs:r=[]})=>{var i,o;return A.jsxs("div",{className:"flex-1 flex flex-col gap-6 overflow-auto custom-scrollbar",children:[A.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:n.map(l=>{var u;return A.jsxs("div",{onClick:()=>t(e===l.id?null:l.id),className:ht("bg-cyber-panel border rounded-xl p-4 cursor-pointer transition-all group relative overflow-hidden",e===l.id?"border-cyber-accent shadow-[0_0_15px_rgba(0,255,0,0.2)]":"border-cyber-border hover:border-cyber-accent/50"),children:[e===l.id&&A.jsx("div",{className:"absolute inset-0 bg-cyber-accent/5 pointer-events-none"}),A.jsxs("div",{className:"flex items-center justify-between mb-4 relative z-10",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:ht("w-2.5 h-2.5 rounded-full shadow-[0_0_10px_rgba(0,0,0,0.5)]",l.status==="thinking"?"bg-cyber-accent animate-pulse shadow-cyber-accent/50":"bg-cyber-muted")}),A.jsxs("div",{children:[A.jsx("h3",{className:"font-bold text-white text-sm group-hover:text-cyber-accent transition-colors",children:l.name}),A.jsx("div",{className:"text-[9px] text-cyber-muted uppercase font-bold tracking-widest",children:l.role})]})]}),A.jsxs("div",{className:"text-right",children:[A.jsx("div",{className:"text-[8px] text-cyber-muted uppercase font-bold",children:"Token"}),A.jsx("div",{className:"text-[10px] font-mono text-cyber-accent",children:(u=l.tokenUsage)==null?void 0:u.toLocaleString()})]})]}),A.jsx("div",{className:"relative z-10",children:A.jsxs("div",{className:"bg-black/40 p-2 rounded border border-white/5 italic text-[10px] text-cyber-text line-clamp-2 min-h-[36px]",children:['"',l.currentThought,'"']})})]},l.id)})}),e?A.jsx("div",{className:"flex-1 min-h-0",children:A.jsx(yi,{title:`智能体思维链: ${((i=n.find(l=>l.id===e))==null?void 0:i.name)||e}`,icon:fs,badge:((o=n.find(l=>l.id===e))==null?void 0:o.status)==="thinking"?"实时分析中":"待命",className:"h-full",children:A.jsx("div",{className:"flex flex-col h-full gap-4",children:A.jsxs("div",{className:"flex-1 bg-black/40 rounded-xl border border-cyber-border p-4 font-mono text-sm overflow-auto custom-scrollbar leading-relaxed",children:[A.jsxs("div",{className:"text-cyber-accent mb-3 flex items-center gap-2 text-xs",children:[A.jsx(fs,{size:12}),A.jsx("span",{className:"animate-pulse",children:`FILTERING_LOGS_FOR_${e.toUpperCase()}...`})]}),A.jsxs("div",{className:"space-y-4",children:[r.filter(l=>{var u;return l.executor===((u=n.find(f=>f.id===e))==null?void 0:u.name)}).map((l,u)=>A.jsxs("div",{className:"flex gap-3 text-xs",children:[A.jsxs("span",{className:"text-cyber-muted shrink-0",children:["[",new Date(l.createdAt).toLocaleTimeString("zh-CN"),"]"]}),A.jsxs("span",{className:"text-cyber-accent font-bold shrink-0 uppercase w-20",children:[l.executor,":"]}),A.jsx("span",{className:"text-cyber-text italic",children:l.result||l.task})]},u)),r.filter(l=>{var u;return l.executor===((u=n.find(f=>f.id===e))==null?void 0:u.name)}).length===0&&A.jsx("div",{className:"text-cyber-muted italic text-xs",children:"暂无活动日志。"})]})]})})})}):A.jsx("div",{className:"flex-1 flex items-center justify-center border border-dashed border-cyber-border rounded-xl bg-cyber-panel/50",children:A.jsxs("div",{className:"text-center text-cyber-muted",children:[A.jsx(fs,{size:32,className:"mx-auto mb-2 opacity-50"}),A.jsx("p",{className:"text-sm",children:"点击上方智能体卡片查看详细思维链日志"})]})})]})},Rme=({setShowReport:e,report:t,reports:n=[]})=>A.jsx("div",{className:"flex-1 flex flex-col gap-6 overflow-auto custom-scrollbar",children:A.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[A.jsx("div",{className:"lg:col-span-1 flex flex-col min-h-0",children:A.jsx(yi,{title:"最新报告预览",icon:tf,className:"flex-1",children:A.jsxs("div",{className:"flex flex-col h-full gap-4",children:[A.jsxs("div",{className:"flex-1 space-y-4 overflow-auto custom-scrollbar",children:[A.jsx("div",{className:"text-sm text-cyber-text font-bold leading-tight",children:t.title}),A.jsx("div",{className:"grid grid-cols-2 gap-2",children:[{label:"严重",count:t.riskMatrix.critical,color:"bg-red-500"},{label:"高危",count:t.riskMatrix.high,color:"bg-orange-500"},{label:"中危",count:t.riskMatrix.medium,color:"bg-yellow-500"},{label:"低危",count:t.riskMatrix.low,color:"bg-emerald-500"}].map((r,i)=>A.jsxs("div",{className:"bg-black/40 p-2 rounded border border-white/5 flex items-center justify-between",children:[A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("div",{className:`w-2 h-2 rounded-full ${r.color}`}),A.jsx("span",{className:"text-[10px] text-cyber-muted",children:r.label})]}),A.jsx("div",{className:"text-xs font-bold text-white",children:r.count})]},i))}),A.jsx("div",{className:"text-xs text-cyber-muted leading-relaxed italic bg-white/5 p-3 rounded border border-white/5",children:t.executiveSummary})]}),A.jsxs("button",{onClick:()=>e(!0),className:"w-full py-2 bg-cyber-accent text-black rounded text-xs font-bold hover:brightness-110 transition-all flex items-center justify-center gap-2 mt-auto",children:[A.jsx(EI,{size:14})," 下载完整 PDF 报告"]})]})})}),A.jsxs("div",{className:"lg:col-span-2 flex flex-col gap-4",children:[A.jsxs("h2",{className:"text-lg font-bold text-white flex items-center gap-2",children:[A.jsx(Yw,{size:18,className:"text-cyber-accent"})," 历史报告归档"]}),A.jsx("div",{className:"grid grid-cols-1 gap-4",children:n.map(r=>A.jsxs("div",{className:"bg-cyber-panel border border-cyber-border rounded-xl p-6 hover:border-cyber-accent/30 transition-all group flex items-center justify-between",children:[A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsx("div",{className:"w-12 h-12 rounded-lg bg-cyber-accent/10 flex items-center justify-center text-cyber-accent",children:A.jsx(tf,{size:24})}),A.jsxs("div",{children:[A.jsx("h3",{className:"font-bold text-white group-hover:text-cyber-accent transition-colors",children:r.title}),A.jsxs("div",{className:"text-[10px] text-cyber-muted uppercase font-bold tracking-widest mt-1",children:["生成时间: ",r.generatedAt]})]})]}),A.jsxs("div",{className:"flex items-center gap-8",children:[A.jsxs("div",{className:"flex gap-2",children:[A.jsxs("div",{className:"text-center px-3",children:[A.jsx("div",{className:"text-[8px] text-red-500 font-bold uppercase",children:"严重"}),A.jsx("div",{className:"text-sm font-mono",children:r.riskMatrix.critical})]}),A.jsxs("div",{className:"text-center px-3 border-l border-white/5",children:[A.jsx("div",{className:"text-[8px] text-orange-500 font-bold uppercase",children:"高危"}),A.jsx("div",{className:"text-sm font-mono",children:r.riskMatrix.high})]})]}),A.jsxs("div",{className:"flex gap-2",children:[A.jsxs("button",{onClick:()=>e(!0),className:"px-4 py-2 bg-white/5 border border-cyber-border rounded text-[10px] font-bold text-cyber-muted hover:text-cyber-accent hover:border-cyber-accent/50 transition-all flex items-center gap-2",children:[A.jsx(fH,{size:14})," 预览"]}),A.jsxs("button",{className:"px-4 py-2 bg-cyber-accent text-black rounded text-[10px] font-bold hover:brightness-110 transition-all flex items-center gap-2",children:[A.jsx(Zx,{size:14})," 下载"]})]})]})]},r.id))})]})]})}),Ime=({settingsUser:e,settingsProviders:t,settingsForm:n,setSettingsForm:r,providerForm:i,setProviderForm:o,saveSettings:l,saveProvider:u,removeProvider:f,settingsSaving:d})=>{var p;return A.jsx("div",{className:"flex-1 flex flex-col gap-6 overflow-auto custom-scrollbar",children:A.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[A.jsx(yi,{title:"通用设置",icon:sp,children:A.jsxs("div",{className:"space-y-4",children:[[["useDarkTheme","深色模式"],["useCompactMode","紧凑模式"],["useConfirmDialogs","确认弹窗"],["useAutoRunAssistant","自动运行 Assistant"],["useAutoCompletionTools","自动补全工具"]].map(([m,y])=>A.jsxs("label",{className:"flex items-center justify-between p-3 bg-white/5 rounded-lg border border-white/5 cursor-pointer",children:[A.jsxs("div",{children:[A.jsx("div",{className:"text-sm font-bold text-white",children:y}),A.jsx("div",{className:"text-[10px] text-cyber-muted",children:"当前值来自后端 settingsUser"})]}),A.jsx("input",{type:"checkbox",checked:!!n[m],onChange:g=>r(x=>({...x,[m]:g.target.checked}))})]},m)),A.jsx("button",{onClick:l,disabled:d,className:"w-full py-2 bg-cyber-accent text-black rounded text-xs font-bold disabled:opacity-50",children:d?"保存中...":"保存设置"})]})}),A.jsx(yi,{title:"API 配置",icon:SH,children:A.jsxs("div",{className:"space-y-4",children:[A.jsxs("div",{className:"p-3 bg-white/5 rounded-lg border border-white/5 space-y-3",children:[A.jsx("div",{className:"text-[10px] text-cyber-muted uppercase font-bold",children:"Provider 编辑"}),A.jsx("input",{value:i.name,onChange:m=>o(y=>({...y,name:m.target.value})),placeholder:"Provider 名称",className:"w-full bg-black/40 border border-cyber-border rounded px-2 py-2 text-xs"}),A.jsx("input",{value:i.type,onChange:m=>o(y=>({...y,type:m.target.value})),placeholder:"Provider 类型，如 openai",className:"w-full bg-black/40 border border-cyber-border rounded px-2 py-2 text-xs"}),A.jsx("input",{value:i.model,onChange:m=>o(y=>({...y,model:m.target.value})),placeholder:"默认模型，如 kimi-k2.5",className:"w-full bg-black/40 border border-cyber-border rounded px-2 py-2 text-xs"}),A.jsx("button",{onClick:u,disabled:d,className:"w-full py-2 bg-cyber-accent text-black rounded text-xs font-bold disabled:opacity-50",children:"保存 Provider"})]}),A.jsxs("div",{className:"p-3 bg-white/5 rounded-lg border border-white/5",children:[A.jsx("div",{className:"text-[10px] text-cyber-muted uppercase font-bold mb-2",children:"已启用 Providers"}),A.jsx("div",{className:"space-y-2",children:((p=t==null?void 0:t.userDefined)==null?void 0:p.length)>0?t.userDefined.map(m=>A.jsxs("div",{className:"flex items-center justify-between bg-black/40 border border-cyber-border rounded px-2 py-2 text-xs gap-2",children:[A.jsxs("button",{onClick:()=>{var y,g,x,w;return o({id:m.id,name:m.name,type:m.type,model:((g=(y=m.agents)==null?void 0:y.assistant)==null?void 0:g.model)||((w=(x=m.agents)==null?void 0:x.primaryAgent)==null?void 0:w.model)||""})},className:"flex-1 text-left",children:[A.jsx("span",{className:"text-cyber-text font-medium",children:m.name}),A.jsx("span",{className:"ml-2 text-cyber-accent font-mono uppercase",children:m.type})]}),A.jsx("button",{onClick:()=>f(m.id),className:"text-red-400",children:"删除"})]},m.id)):A.jsx("div",{className:"text-xs text-cyber-muted",children:"暂无用户自定义 Provider，使用默认配置。"})})]})]})})]})})},yi=({title:e,children:t,className:n,icon:r,badge:i})=>A.jsxs("div",{className:`bg-black/40 border border-cyber-border rounded-lg overflow-hidden flex flex-col ${n}`,children:[A.jsxs("div",{className:"px-4 py-2 border-b border-cyber-border flex items-center justify-between bg-cyber-border/10",children:[A.jsxs("div",{className:"flex items-center gap-2",children:[r&&A.jsx(r,{size:14,className:"text-cyber-accent"}),A.jsx("h3",{className:"text-xs font-bold tracking-wider text-cyber-accent uppercase",children:e})]}),i&&A.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-cyber-accent/20 text-cyber-accent rounded font-mono",children:i})]}),A.jsx("div",{className:"flex-1 p-3 overflow-auto custom-scrollbar",children:t})]});function Lme(){var wa,pd,Du,Is,Sa;const[e,t]=E.useState(""),[n,r]=E.useState("dashboard"),[i,o]=E.useState(!0),[l,u]=E.useState(null),[f,d]=E.useState("idle"),[p,m]=E.useState(null),[y,g]=E.useState(!1),[x,w]=E.useState(null),[S,O]=E.useState(""),[_,C]=E.useState("正在分析目标系统的网络拓扑结构..."),[k,N]=E.useState([]),[M,R]=E.useState("a1"),[P,V]=E.useState(null),[H,Z]=E.useState(null),[F,he]=E.useState(null),[ne,ee]=E.useState({}),[D,q]=E.useState({id:"",name:"",type:"openai",model:""}),{currentFlow:B,tasks:ce,agentLogs:Y,progress:I,target:Q,duration:ue,loading:fe}=ome(F??void 0),{updatedFlow:de}=sme(),{createdFlow:me}=lme(),{newAgentLog:ke}=ume((B==null?void 0:B.id)??""),{assistants:Be}=dme((B==null?void 0:B.id)??""),{screenshots:se}=hme((B==null?void 0:B.id)??""),{activityData:ye,hasRealData:Ne}=pme((B==null?void 0:B.id)??""),{latestPoc:le,hasPoc:Ct}=bme((B==null?void 0:B.id)??""),{flowsStats:Re,usageStats:jt}=vme(),{flowStats:lt,flowUsage:Wt}=gme((B==null?void 0:B.id)??""),{flows:qr,loading:Nu}=ame(),[ji,Mu]=E.useState(!1),nr=FD(B,Y,lt,Wt),Gy=qr.slice(0,10).map(oe=>FD(oe,oe.id===(B==null?void 0:B.id)?Y:[],oe.id===(B==null?void 0:B.id)?lt:null,oe.id===(B==null?void 0:B.id)?Wt:null));E.useEffect(()=>{var oe;if(B){const _e={running:"running",waiting:"running",created:"running",finished:"completed",failed:"failed"},Et={id:String(B.id),name:B.title||"渗透测试任务",status:_e[B.status]??"running",progress:I,duration:ue,agent:((oe=B.provider)==null?void 0:oe.name)??"PentAGI",target:Q,createdAt:new Date(B.createdAt).toLocaleString("zh-CN")};w(Et)}},[B,I,Q,ue]),E.useEffect(()=>{de&&Le(`Flow 更新: ${de.title} → ${de.status}`,"info")},[de]),E.useEffect(()=>{me&&(he(me.id),Le(`新 Flow 创建: ${me.title}`,"success"))},[me]),E.useEffect(()=>{ke&&(Le(`[${ke.executor}] ${ke.task.slice(0,40)}...`,"info"),O(ke.result||ke.task||"Agent 正在处理任务..."),ke.result&&d("success"))},[ke]);const Le=(oe,_e="info")=>{const Et=Math.random().toString(36).substring(7);N(Vt=>[...Vt,{id:Et,text:oe,type:_e}]),setTimeout(()=>{N(Vt=>Vt.filter(Mi=>Mi.id!==Et))},5e3)},{putUserInput:dd,loading:Ns}=_me(),{createFlow:hd,loading:So}=Cme(),{stopFlow:Ky,loading:Pu}=kme(),{settingsUser:Ms,settingsProviders:Yy}=jme(),{updateSettingsUser:Eo,createProvider:Rn,updateProvider:oi,deleteProvider:In,loading:Wy}=Nme();E.useEffect(()=>{Ms&&ee(Ms)},[Ms]);const Xy=async()=>{if(!(B!=null&&B.id)){Le("没有活跃任务，无法执行 PoC","error");return}if(!le){Le("暂无可用 PoC，请等待 Agent 发现漏洞","info");return}d("running"),m(null),Le("正在向 Agent 提交 PoC 执行指令...","info");const oe=`[PoC-EXECUTE] 请立即验证最新 PoC：
任务: ${le.task||"未知"}
执行者: ${le.executor||"verifier"}
请输出完整执行过程和结果。`;try{const{data:_e}=await dd({variables:{flowId:B.id,input:oe}});if((_e==null?void 0:_e.putUserInput)==="success")Le("PoC 执行指令已提交！Agent 正在处理...","success");else throw new Error("后端返回失败，请检查 Flow 状态")}catch(_e){d("failed"),m(_e.message||"提交出错，请检查后端日志"),Le(`PoC 指令提交失败: ${_e.message}`,"error")}finally{setTimeout(()=>{d(_e=>_e==="running"?"idle":_e)},5e3)}},Qy=async oe=>{var Et;if(oe.preventDefault(),!e.trim())return;const _e=e.trim();if(Le(`正在解析指令: "${_e}"`,"info"),_e.includes("报告")||_e.includes("report")){g(!0),Le("正在生成最新报告...","info"),t("");return}try{if(B!=null&&B.id){const{data:Vt}=await dd({variables:{flowId:B.id,input:_e}});if((Vt==null?void 0:Vt.putUserInput)!=="success")throw new Error("后端未接受任务输入");Le("任务已追加到当前渗透测试流程","success")}else{const Vt="openai:default",{data:Mi}=await hd({variables:{modelProvider:Vt,input:_e}});if(!((Et=Mi==null?void 0:Mi.createFlow)!=null&&Et.id))throw new Error("后端未成功创建渗透测试流程");Le("已创建新的渗透测试流程，Agent 正在开始工作","success")}}catch(Vt){Le(`任务提交失败: ${(Vt==null?void 0:Vt.message)||"未知错误"}`,"error")}t("")},Ps=async()=>{if(!(B!=null&&B.id)){Le("当前没有可停止的任务","error");return}try{const{data:oe}=await Ky({variables:{flowId:B.id}});if((oe==null?void 0:oe.stopFlow)!=="success")throw new Error("后端未成功停止任务");Le(`已停止任务: ${B.title}`,"success")}catch(oe){Le(`停止任务失败: ${(oe==null?void 0:oe.message)||"未知错误"}`,"error")}},Oo=()=>{const oe=JSON.stringify(nr,null,2),_e=new Blob([oe],{type:"application/json;charset=utf-8"}),Et=URL.createObjectURL(_e),Vt=document.createElement("a");Vt.href=Et,Vt.download=`${nr.title.replace(/\s+/g,"_")}.json`,Vt.click(),URL.revokeObjectURL(Et),Le("报告已导出为 JSON","success")},Ds=async()=>{try{await Eo({variables:{input:ne}}),Le("设置已保存","success")}catch(oe){Le(`设置保存失败: ${(oe==null?void 0:oe.message)||"未知错误"}`,"error")}},Ni=async()=>{const oe={model:D.model,maxTokens:null,temperature:null,topK:null,topP:null,minLength:null,maxLength:null,repetitionPenalty:null,frequencyPenalty:null,presencePenalty:null,reasoning:null,price:null},_e={simple:oe,simpleJson:oe,primaryAgent:oe,assistant:oe,generator:oe,refiner:oe,adviser:oe,reflector:oe,searcher:oe,enricher:oe,coder:oe,installer:oe,pentester:oe};try{D.id?await oi({variables:{providerId:D.id,name:D.name,agents:_e}}):await Rn({variables:{name:D.name,type:D.type,agents:_e}}),q({id:"",name:"",type:"openai",model:""}),Le("Provider 已保存","success")}catch(Et){Le(`Provider 保存失败: ${(Et==null?void 0:Et.message)||"未知错误"}`,"error")}},Rs=async oe=>{try{await In({variables:{providerId:oe}}),Le("Provider 已删除","success")}catch(_e){Le(`Provider 删除失败: ${(_e==null?void 0:_e.message)||"未知错误"}`,"error")}};return E.useEffect(()=>{if(Y.length>0){const oe=Y[0];C(oe.result||oe.task||"Agent 正在分析中...");return}B&&C(`正在处理任务: ${B.title}`)},[Y,B]),E.useEffect(()=>{let oe="",_e=0;const Et=setInterval(()=>{_e<_.length?(oe+=_[_e],O(oe),_e++):clearInterval(Et)},50);return()=>clearInterval(Et)},[_]),A.jsxs("div",{className:"h-screen w-screen flex flex-col bg-cyber-bg text-cyber-text selection:bg-cyber-accent selection:text-black",children:[A.jsxs("header",{className:"h-14 border-b border-cyber-border flex items-center px-6 justify-between bg-cyber-panel/50 backdrop-blur-md z-50",children:[A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-cyber-accent drop-shadow-[0_0_10px_rgba(0,255,0,0.8)]",children:[A.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),A.jsx("path",{d:"M12 8a2 2 0 0 0-1.5 3.32V14.5h3v-3.18A2 2 0 0 0 12 8z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),A.jsx("circle",{cx:"7.5",cy:"8.5",r:"1",fill:"currentColor"}),A.jsx("path",{d:"M7.5 8.5L10 11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),A.jsx("circle",{cx:"16.5",cy:"15.5",r:"1",fill:"currentColor"}),A.jsx("path",{d:"M16.5 15.5L14 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),A.jsx("span",{className:"font-bold tracking-tight text-2xl text-white drop-shadow-[0_0_8px_rgba(0,255,0,0.5)]",style:{fontFamily:"Georgia, serif"},children:"PentAI-Edu"}),A.jsx("span",{className:"hidden lg:block text-[10px] font-bold text-cyber-muted uppercase tracking-[0.2em] border-l border-cyber-border pl-3 ml-2",children:"网络安全渗透测评教学平台"})]}),A.jsx("div",{className:"h-4 w-[1px] bg-cyber-border mx-2"}),A.jsx("div",{className:"flex items-center gap-3 text-[10px] text-cyber-muted uppercase tracking-widest",children:A.jsxs("div",{className:"flex items-center gap-1.5",children:[A.jsx(V9,{size:12,className:"text-cyber-accent animate-pulse"}),A.jsxs("span",{children:[Be.length||1," 个智能体活跃"]})]})})]}),A.jsxs("form",{onSubmit:Qy,className:"flex-1 max-w-4xl mx-8 flex gap-2 relative group",children:[A.jsxs("div",{className:"relative flex-1",children:[A.jsx(SI,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-cyber-muted group-focus-within:text-cyber-accent transition-colors",size:16}),A.jsx("input",{type:"text",placeholder:"Cmd+K: '对 192.168.1.0/24 进行全面渗透测试'...",className:"w-full bg-white/5 border border-cyber-border rounded-md py-2 pl-10 pr-4 text-sm focus:outline-none focus:border-cyber-accent/50 focus:ring-1 focus:ring-cyber-accent/20 transition-all placeholder:text-cyber-muted/50",value:e,onChange:oe=>t(oe.target.value)}),A.jsxs("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 flex gap-1",children:[A.jsx("kbd",{className:"px-1.5 py-0.5 rounded bg-white/10 text-[10px] text-cyber-muted border border-white/10",children:"⌘"}),A.jsx("kbd",{className:"px-1.5 py-0.5 rounded bg-white/10 text-[10px] text-cyber-muted border border-white/10",children:"K"})]})]}),A.jsxs("button",{type:"submit",disabled:Ns||So,className:"px-3 py-2 bg-white/5 border border-cyber-border rounded-md text-cyber-muted hover:text-cyber-accent hover:border-cyber-accent/50 transition-all flex items-center gap-2 text-xs font-bold disabled:opacity-50",children:[A.jsx(PH,{size:14}),A.jsx("span",{children:Ns||So?"提交中...":"提交任务"})]})]}),A.jsxs("div",{className:"flex items-center gap-6",children:[A.jsxs("div",{className:"flex items-center gap-3 bg-white/5 border border-cyber-border rounded-full px-3 py-1",children:[A.jsx("span",{className:"text-[9px] text-cyber-muted uppercase font-bold tracking-tighter",children:"教学模式"}),A.jsx("button",{onClick:()=>o(!i),className:ht("w-8 h-4 rounded-full relative transition-all duration-300",i?"bg-cyber-accent":"bg-white/10"),children:A.jsx(Nr.div,{animate:{x:i?16:2},className:"absolute top-1 w-2 h-2 rounded-full bg-black shadow-sm"})})]}),A.jsx("button",{className:"p-2 hover:bg-white/5 rounded-full transition-colors",children:A.jsx(sp,{size:20,className:"text-cyber-muted"})}),A.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-cyber-accent to-emerald-900 border border-cyber-accent/50 flex items-center justify-center text-[10px] font-bold text-black",children:"AD"})]})]}),A.jsxs("main",{className:"flex-1 flex overflow-hidden relative",children:[A.jsxs(Nr.nav,{className:"hidden md:flex border-r border-cyber-border flex-col items-start py-4 gap-2 bg-cyber-panel/30 z-40",style:{width:ji?240:200},animate:{width:ji?240:200},transition:{duration:.2},children:[A.jsx("div",{className:"w-full flex flex-col gap-1",children:[{id:"dashboard",icon:Ok,label:"渗透测评"},{id:"agents",icon:Yc,label:"智能体"},{id:"reports",icon:tf,label:"报告中心"}].map(oe=>A.jsxs("button",{onClick:()=>r(oe.id),className:ht("w-full px-4 py-3 flex items-center gap-3 transition-all group relative",n===oe.id?"text-cyber-accent bg-cyber-accent/5":"text-cyber-muted hover:text-cyber-text hover:bg-white/5"),children:[A.jsx(oe.icon,{size:18,className:ht("transition-all",n===oe.id?"text-cyber-accent":"text-cyber-muted group-hover:text-cyber-text")}),A.jsx("span",{className:"text-xs font-bold",children:oe.label}),n===oe.id&&A.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 bg-cyber-accent shadow-[0_0_10px_#00ff00]"})]},oe.id))}),A.jsxs("div",{className:"w-full border-t border-cyber-border/50 pt-2",children:[A.jsxs("button",{onClick:()=>Mu(!ji),className:"w-full px-4 py-2.5 flex items-center gap-3 text-cyber-muted hover:text-cyber-text hover:bg-white/5 transition-all group",children:[A.jsx(mH,{size:16,className:"text-cyber-muted group-hover:text-cyber-accent transition-colors"}),A.jsx("span",{className:"text-xs font-bold flex-1 text-left",children:"历史任务"}),qr.length>0&&A.jsx("span",{className:"text-[10px] bg-cyber-accent/20 text-cyber-accent border border-cyber-accent/30 rounded px-1.5 py-0.5 font-bold",children:qr.length}),ji?A.jsx(W9,{size:14,className:"text-cyber-muted"}):A.jsx(wk,{size:14,className:"text-cyber-muted"})]}),A.jsx(Sl,{children:ji&&A.jsx(Nr.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:A.jsx("div",{className:"max-h-[280px] overflow-y-auto px-2 pb-2 flex flex-col gap-1",children:Nu?A.jsxs("div",{className:"flex items-center gap-2 px-2 py-3 text-[11px] text-cyber-muted",children:[A.jsx(kp,{size:12,className:"animate-spin text-cyber-accent"}),A.jsx("span",{children:"加载中..."})]}):qr.length===0?A.jsx("div",{className:"px-2 py-3 text-[11px] text-cyber-muted text-center",children:"暂无历史任务"}):qr.map(oe=>{const _e=oe.id===(B==null?void 0:B.id),Et=oe.status==="running"||oe.status==="waiting"?"bg-cyber-accent":oe.status==="finished"?"bg-emerald-400":oe.status==="failed"?"bg-red-400":"bg-cyber-muted";return A.jsxs("button",{onClick:()=>{he(oe.id),Le(`已切换到任务: ${oe.title}`,"info")},className:ht("w-full px-2 py-2 rounded text-left transition-all group flex flex-col gap-0.5",_e?"bg-cyber-accent/10 border border-cyber-accent/30":"hover:bg-white/5 border border-transparent"),children:[A.jsxs("div",{className:"flex items-center gap-1.5",children:[A.jsx("div",{className:ht("w-1.5 h-1.5 rounded-full flex-shrink-0",Et)}),A.jsx("span",{className:ht("text-[11px] font-medium truncate flex-1",_e?"text-cyber-accent":"text-cyber-text"),children:oe.title.length>18?oe.title.slice(0,18)+"…":oe.title}),_e&&A.jsx("span",{className:"text-[9px] text-cyber-accent font-bold",children:"当前"})]}),A.jsxs("div",{className:"flex items-center gap-1 pl-3",children:[A.jsx(nH,{size:9,className:"text-cyber-muted"}),A.jsx("span",{className:"text-[9px] text-cyber-muted",children:new Date(oe.createdAt).toLocaleDateString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})})]})]},oe.id)})})})})]}),A.jsx("div",{className:"flex-1"}),A.jsxs("button",{onClick:()=>r("settings"),className:ht("w-full px-4 py-3 flex items-center gap-3 transition-all group relative",n==="settings"?"text-cyber-accent bg-cyber-accent/5":"text-cyber-muted hover:text-cyber-text hover:bg-white/5"),children:[A.jsx(sp,{size:18,className:ht("transition-all",n==="settings"?"text-cyber-accent":"text-cyber-muted group-hover:text-cyber-text")}),A.jsx("span",{className:"text-xs font-bold",children:"设置"}),n==="settings"&&A.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 bg-cyber-accent shadow-[0_0_10px_#00ff00]"})]})]}),A.jsx("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 h-16 bg-cyber-panel/90 backdrop-blur-md border-t border-cyber-border flex items-center justify-around z-50 px-2",children:[{id:"dashboard",icon:Ok},{id:"agents",icon:Yc},{id:"reports",icon:tf},{id:"settings",icon:sp}].map(oe=>A.jsx("button",{onClick:()=>r(oe.id),className:ht("p-2 rounded-lg transition-all",n===oe.id?"text-cyber-accent bg-cyber-accent/10":"text-cyber-muted"),children:A.jsx(oe.icon,{size:20})},oe.id))}),A.jsxs("div",{className:"flex-1 flex flex-col p-4 gap-4 overflow-hidden",children:[x?A.jsxs("div",{className:"flex items-center justify-between bg-cyber-panel/50 border border-cyber-border p-4 rounded-lg backdrop-blur-sm relative overflow-hidden",children:[A.jsx("div",{className:"absolute top-0 left-0 w-1 h-full bg-cyber-accent shadow-[0_0_10px_#00ff00]"}),A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsxs("div",{children:[A.jsx("div",{className:"text-[10px] text-cyber-muted uppercase font-bold tracking-widest",children:"当前任务流程"}),A.jsxs("div",{className:"text-lg font-bold flex items-center gap-2",children:[x.name,A.jsx("span",{className:ht("px-2 py-0.5 rounded text-[10px] uppercase font-bold border",x.status==="running"?"bg-cyber-accent/20 text-cyber-accent border-cyber-accent/30 animate-pulse":x.status==="completed"?"bg-emerald-500/20 text-emerald-400 border-emerald-500/30":"bg-red-500/20 text-red-400 border-red-500/30"),children:x.status==="running"?"正在运行":x.status==="completed"?"已完成":"已失败"})]})]}),A.jsx("div",{className:"h-8 w-[1px] bg-cyber-border mx-4"}),A.jsxs("div",{className:"w-64",children:[A.jsxs("div",{className:"flex justify-between text-[10px] text-cyber-muted mb-1",children:[A.jsx("span",{children:"执行进度"}),A.jsxs("span",{className:"text-cyber-accent",children:[x.progress,"%"]})]}),A.jsx("div",{className:"h-1.5 w-full bg-white/5 rounded-full overflow-hidden",children:A.jsx(Nr.div,{initial:{width:0},animate:{width:`${x.progress}%`},transition:{duration:1,ease:"easeOut"},className:"h-full bg-cyber-accent shadow-[0_0_10px_#00ff00]"})})]}),A.jsx("div",{className:"h-8 w-[1px] bg-cyber-border mx-4"}),A.jsxs("div",{className:"flex gap-6",children:[A.jsxs("div",{children:[A.jsx("div",{className:"text-[9px] text-cyber-muted uppercase font-bold",children:"目标资产"}),A.jsx("div",{className:"text-xs font-mono text-cyber-accent",children:x.target||"--"})]}),A.jsxs("div",{children:[A.jsx("div",{className:"text-[9px] text-cyber-muted uppercase font-bold",children:"已用时间"}),A.jsx("div",{className:"text-xs font-mono",children:x.duration||"--"})]})]})]}),A.jsxs("div",{className:"flex gap-2",children:[A.jsxs("button",{onClick:Ps,disabled:Pu,className:"flex items-center gap-2 px-4 py-2 bg-cyber-accent text-black font-bold rounded hover:brightness-110 transition-all text-xs shadow-[0_0_15px_rgba(0,255,0,0.3)] disabled:opacity-50",children:[A.jsx(kh,{size:14,fill:"currentColor"})," ",Pu?"停止中...":"停止全部"]}),A.jsxs("button",{onClick:Oo,className:"flex items-center gap-2 px-4 py-2 bg-white/5 border border-cyber-border text-cyber-text font-bold rounded hover:bg-white/10 transition-all text-xs",children:[A.jsx(Zx,{size:14})," 全量证据下载"]})]})]}):A.jsxs("div",{className:"flex items-center justify-between bg-cyber-panel/50 border border-dashed border-cyber-border/50 p-4 rounded-lg backdrop-blur-sm",children:[A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsx("div",{className:"w-10 h-10 rounded-full bg-cyber-accent/10 border border-cyber-accent/20 flex items-center justify-center",children:A.jsx(Yc,{size:20,className:"text-cyber-accent/50"})}),A.jsxs("div",{children:[A.jsx("div",{className:"text-[10px] text-cyber-muted uppercase font-bold tracking-widest mb-1",children:"暂无活跃任务"}),A.jsxs("div",{className:"text-sm text-cyber-text",children:["在顶部输入框输入目标地址，按 ",A.jsx("kbd",{className:"px-1.5 py-0.5 rounded bg-white/10 text-[10px] text-cyber-accent border border-white/10",children:"Enter"})," 创建新的渗透测试任务"]})]})]}),fe&&A.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-cyber-muted",children:[A.jsx(kp,{size:14,className:"animate-spin text-cyber-accent"}),A.jsx("span",{children:"正在加载数据..."})]})]}),A.jsx(Sl,{mode:"wait",children:A.jsxs(Nr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"flex-1 flex flex-col overflow-hidden",children:[n==="dashboard"&&A.jsx(Pme,{thinkingText:S,setSelectedArtifact:u,sandboxStatus:f,sandboxError:p,runSandbox:Xy,setShowReport:g,activeAgentId:P,setActiveAgentId:V,setSelectedAgentDetailId:Z,teachingMode:i,addNotification:Le,backendAssistants:Be,backendAgentLogs:Y,backendTasks:ce,backendScreenshots:se,backendActivityData:ye,hasActivityData:Ne,backendLatestPoc:le,hasPoc:Ct,backendFlowsStats:Re,backendUsageStats:jt,backendFlowStats:lt,backendFlowUsage:Wt,pocLoading:Ns}),n==="agents"&&A.jsx(Dme,{expandedAgentId:M,setExpandedAgentId:R,agents:WV(Be,Y),agentLogs:Y}),n==="reports"&&A.jsx(Rme,{setShowReport:g,report:nr,reports:Gy}),n==="settings"&&A.jsx(Ime,{settingsUser:Ms,settingsProviders:Yy,settingsForm:ne,setSettingsForm:ee,providerForm:D,setProviderForm:q,saveSettings:Ds,saveProvider:Ni,removeProvider:Rs,settingsSaving:Wy})]},n)}),A.jsx(Sl,{children:y&&A.jsx(Nr.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"fixed inset-0 z-[100] flex items-center justify-center p-8 bg-black/80 backdrop-blur-xl",children:A.jsxs("div",{className:"w-full max-w-5xl max-h-[90vh] bg-cyber-panel border border-cyber-accent/50 rounded-xl flex flex-col overflow-hidden shadow-[0_0_50px_rgba(0,255,0,0.2)]",children:[A.jsxs("div",{className:"px-6 py-4 border-b border-cyber-border flex items-center justify-between bg-cyber-accent/10",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx(tf,{className:"text-cyber-accent"}),A.jsx("h2",{className:"text-xl font-bold tracking-tighter neon-glow",children:nr.title})]}),A.jsx("button",{onClick:()=>g(!1),className:"p-2 hover:bg-white/10 rounded-full transition-colors",children:A.jsx(kh,{size:20,className:"text-cyber-muted"})})]}),A.jsxs("div",{className:"flex-1 overflow-auto p-8 space-y-8 custom-scrollbar",children:[A.jsxs("section",{children:[A.jsxs("h3",{className:"text-cyber-accent font-bold uppercase tracking-widest text-xs mb-4 flex items-center gap-2",children:[A.jsx(Ek,{size:14})," 执行摘要"]}),A.jsx("p",{className:"text-cyber-text leading-relaxed bg-white/5 p-4 rounded border-l-4 border-cyber-accent",children:nr.executiveSummary})]}),A.jsx("section",{className:"grid grid-cols-4 gap-4",children:[{label:"严重 (Critical)",count:(wa=nr.riskMatrix)==null?void 0:wa.critical,color:"bg-red-600"},{label:"高危 (High)",count:(pd=nr.riskMatrix)==null?void 0:pd.high,color:"bg-orange-600"},{label:"中危 (Medium)",count:(Du=nr.riskMatrix)==null?void 0:Du.medium,color:"bg-yellow-600"},{label:"低危 (Low)",count:(Is=nr.riskMatrix)==null?void 0:Is.low,color:"bg-emerald-600"}].map((oe,_e)=>A.jsxs("div",{className:"bg-white/5 border border-cyber-border p-4 rounded-lg text-center group hover:border-cyber-accent/50 transition-all",children:[A.jsx("div",{className:ht("w-2 h-2 rounded-full mx-auto mb-2",oe.color)}),A.jsx("div",{className:"text-[10px] text-cyber-muted uppercase font-bold mb-1",children:oe.label}),A.jsx("div",{className:"text-3xl font-mono font-bold text-white group-hover:text-cyber-accent transition-colors",children:oe.count})]},_e))}),A.jsxs("section",{children:[A.jsxs("h3",{className:"text-cyber-accent font-bold uppercase tracking-widest text-xs mb-4 flex items-center gap-2",children:[A.jsx(Yw,{size:14})," 关键发现"]}),A.jsx("div",{className:"space-y-4",children:(Sa=nr.findings)==null?void 0:Sa.map(oe=>A.jsxs("div",{className:"bg-white/5 border border-cyber-border p-4 rounded-lg flex items-center justify-between group hover:bg-white/10 transition-all",children:[A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsx("div",{className:ht("w-10 h-10 rounded-lg flex items-center justify-center font-bold text-xs",oe.severity==="Critical"?"bg-red-500/20 text-red-500":"bg-orange-500/20 text-orange-500"),children:oe.severity[0]}),A.jsxs("div",{children:[A.jsx("div",{className:"font-bold text-cyber-text",children:oe.title}),A.jsxs("div",{className:"text-[10px] text-cyber-muted font-mono",children:[oe.host," • ",oe.cve]})]})]}),A.jsx("button",{className:"p-2 text-cyber-muted hover:text-cyber-accent transition-colors",children:A.jsx(wk,{size:20})})]},oe.id))})]}),A.jsxs("section",{children:[A.jsxs("h3",{className:"text-cyber-accent font-bold uppercase tracking-widest text-xs mb-4 flex items-center gap-2",children:[A.jsx(Yc,{size:14})," 修复建议"]}),A.jsx("div",{className:"bg-blue-500/10 border border-blue-500/30 p-4 rounded-lg text-blue-400 text-sm leading-relaxed",children:nr.recommendations})]})]}),A.jsxs("div",{className:"px-6 py-4 border-t border-cyber-border bg-black/40 flex justify-end gap-3",children:[A.jsx("button",{className:"px-6 py-2 bg-white/5 border border-cyber-border rounded font-bold text-xs hover:bg-white/10 transition-all",children:"取消"}),A.jsxs("button",{onClick:Oo,className:"px-6 py-2 bg-cyber-accent text-black font-bold rounded flex items-center gap-2 text-xs shadow-[0_0_15px_rgba(0,255,0,0.3)] hover:brightness-110 transition-all",children:[A.jsx(EI,{size:14})," 导出 JSON 报告"]})]})]})})}),A.jsxs("footer",{className:"h-8 border-t border-cyber-border flex items-center px-4 justify-between bg-cyber-panel/50 text-[10px] font-mono text-cyber-muted uppercase tracking-tighter",children:[A.jsxs("div",{className:"flex items-center gap-6",children:[A.jsxs("div",{className:"flex items-center gap-1.5",children:[A.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-cyber-accent shadow-[0_0_5px_#00ff00]"}),A.jsxs("span",{children:["Neo4j 同步: ",B?"已连接":"待命"]})]}),A.jsxs("div",{className:"flex items-center gap-1.5",children:[A.jsx(oH,{size:10}),A.jsxs("span",{children:["任务数: ",(lt==null?void 0:lt.totalTasksCount)??0]})]}),A.jsxs("div",{className:"flex items-center gap-1.5",children:[A.jsx(Sk,{size:10}),A.jsxs("span",{children:["Token 输出: ",(Wt==null?void 0:Wt.totalUsageOut)??0]})]}),A.jsx("div",{className:"h-3 w-[1px] bg-cyber-border"}),A.jsxs("div",{className:"flex items-center gap-1.5",children:[A.jsx(Sk,{size:10,className:"text-cyber-accent"}),A.jsxs("span",{children:["当前大模型: ",(x==null?void 0:x.agent)||"--"]})]}),A.jsx("div",{className:"flex items-center gap-1.5",children:A.jsxs("span",{className:"font-bold",children:["总 TOKEN 消耗: ",A.jsx("span",{className:"text-cyber-accent",children:jt?(jt.totalUsageIn+jt.totalUsageOut).toLocaleString():Wt?(Wt.totalUsageIn+Wt.totalUsageOut).toLocaleString():"--"})]})}),A.jsx("div",{className:"flex items-center gap-1.5",children:A.jsxs("span",{className:"font-bold",children:["已发现漏洞 / 已利用: ",A.jsx("span",{className:"text-red-500",children:lt?`${lt.totalTasksCount} / ${lt.totalAssistantsCount}`:Y!=null&&Y.length?`${Y.length} / --`:"--"})]})})]}),A.jsxs("div",{className:"flex items-center gap-6",children:[A.jsx("span",{children:"系统版本: v2.4.0-stable"}),A.jsx("span",{className:"text-cyber-accent",children:"© 2026 PENTAGI"})]})]})]})]}),A.jsx(Sl,{children:H&&A.jsxs(A.Fragment,{children:[A.jsx(Nr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>Z(null),className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[150]"}),A.jsx(Nr.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:200},className:"fixed top-0 right-0 bottom-0 w-full max-w-md bg-cyber-panel border-l border-cyber-border z-[160] shadow-2xl flex flex-col",children:(()=>{const oe=GV.find(_e=>_e.id===H);return oe?A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"p-6 border-b border-cyber-border flex items-center justify-between bg-cyber-accent/5",children:[A.jsxs("div",{className:"flex items-center gap-4",children:[A.jsx("div",{className:"w-12 h-12 rounded-xl bg-cyber-accent/10 flex items-center justify-center border border-cyber-accent/30",children:A.jsx($9,{size:24,className:"text-cyber-accent"})}),A.jsxs("div",{children:[A.jsx("h2",{className:"text-xl font-bold text-white tracking-tight",children:oe.name}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("div",{className:ht("w-2 h-2 rounded-full",oe.status==="thinking"?"bg-cyber-accent animate-pulse":"bg-cyber-muted")}),A.jsx("span",{className:"text-[10px] text-cyber-muted uppercase font-bold tracking-widest",children:oe.role})]})]})]}),A.jsx("button",{onClick:()=>Z(null),className:"p-2 hover:bg-white/10 rounded-full transition-colors",children:A.jsx(kh,{size:20,className:"text-cyber-muted"})})]}),A.jsxs("div",{className:"flex-1 overflow-auto p-6 space-y-8 custom-scrollbar",children:[A.jsxs("section",{children:[A.jsxs("h3",{className:"text-[10px] text-cyber-muted uppercase font-bold mb-4 tracking-widest flex items-center gap-2",children:[A.jsx(wI,{size:14,className:"text-cyber-accent"})," Token 消耗趋势"]}),A.jsx("div",{className:"h-40 bg-black/40 rounded-lg border border-cyber-border p-2",children:A.jsx(U1,{width:"100%",height:"100%",children:A.jsxs(CV,{data:KV.map(_e=>({..._e,tokens:Math.floor(_e.actions*(oe.tokenUsage||100)/50)})),children:[A.jsx(ql,{type:"monotone",dataKey:"tokens",stroke:"#00ff00",fill:"#00ff00",fillOpacity:.1}),A.jsx(cw,{contentStyle:{backgroundColor:"#0a0a0a",border:"1px solid #1a1a1a",fontSize:"10px"}})]})})})]}),A.jsxs("section",{children:[A.jsxs("h3",{className:"text-[10px] text-cyber-muted uppercase font-bold mb-4 tracking-widest flex items-center gap-2",children:[A.jsx(RH,{size:14,className:"text-cyber-accent"})," 核心能力与工具"]}),A.jsx("div",{className:"flex flex-wrap gap-2",children:["Nmap","Dirsearch","Sqlmap","Metasploit","Python-Scapy"].map(_e=>A.jsx("span",{className:"px-2 py-1 bg-white/5 border border-cyber-border rounded text-[10px] text-cyber-text font-mono",children:_e},_e))})]}),A.jsxs("section",{className:"flex-1 min-h-0 flex flex-col",children:[A.jsxs("h3",{className:"text-[10px] text-cyber-muted uppercase font-bold mb-4 tracking-widest flex items-center gap-2",children:[A.jsx(fs,{size:14,className:"text-cyber-accent"})," 实时思考日志"]}),A.jsxs("div",{className:"flex-1 bg-black/60 rounded-lg border border-cyber-border p-4 font-mono text-[10px] text-cyber-muted space-y-3 overflow-auto custom-scrollbar",children:[Mme.filter(_e=>_e.agent===oe.name).map((_e,Et)=>A.jsxs("div",{className:"flex gap-2",children:[A.jsxs("span",{className:"opacity-40 shrink-0",children:["[",_e.timestamp,"]"]}),A.jsx("span",{className:"text-cyber-text italic leading-relaxed",children:_e.text})]},Et)),A.jsxs("div",{className:"flex items-center gap-2 text-cyber-accent animate-pulse",children:[A.jsx("span",{children:">"}),A.jsx("span",{className:"w-1.5 h-3 bg-cyber-accent"})]})]})]})]}),A.jsxs("div",{className:"p-6 border-t border-cyber-border bg-black/40 flex flex-col gap-3",children:[i&&A.jsxs("button",{onClick:()=>Le(`${oe.name} 深度解析: 该智能体采用 ${oe.name==="Analyzer"?"静态代码分析与动态模糊测试结合":"多维特征匹配与启发式搜索"} 技术...`,"info"),className:"w-full py-2 bg-cyber-accent/10 border border-cyber-accent/30 rounded text-cyber-accent font-bold text-xs hover:bg-cyber-accent/20 transition-all flex items-center justify-center gap-2",children:[A.jsx(eH,{size:14})," 查看原理解析"]}),A.jsxs("div",{className:"flex gap-3",children:[A.jsx("button",{className:"flex-1 py-2 bg-white/5 border border-cyber-border rounded font-bold text-xs hover:bg-white/10 transition-all",children:"暂停智能体"}),A.jsx("button",{className:"flex-1 py-2 bg-cyber-accent text-black font-bold rounded text-xs shadow-[0_0_15px_rgba(0,255,0,0.3)] hover:brightness-110 transition-all",children:"重置上下文"})]})]})]}):null})()})]})}),A.jsx(Sl,{children:l&&A.jsx(Nr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[110] flex items-center justify-center p-8 bg-black/90 backdrop-blur-md",onClick:()=>u(null),children:A.jsxs(Nr.div,{initial:{scale:.9,y:20},animate:{scale:1,y:0},exit:{scale:.9,y:20},className:"max-w-4xl w-full bg-cyber-panel border border-cyber-accent/30 rounded-xl overflow-hidden shadow-[0_0_50px_rgba(0,255,0,0.1)]",onClick:oe=>oe.stopPropagation(),children:[A.jsxs("div",{className:"px-6 py-4 border-b border-cyber-border flex items-center justify-between",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx(OI,{className:"text-cyber-accent",size:18}),A.jsx("h3",{className:"font-bold text-cyber-text",children:l.title})]}),A.jsx("button",{onClick:()=>u(null),className:"p-2 hover:bg-white/10 rounded-full transition-colors",children:A.jsx(kh,{size:18,className:"text-cyber-muted"})})]}),A.jsxs("div",{className:"p-6",children:[l.type==="screenshot"?A.jsx("img",{src:l.url,alt:l.title,className:"w-full rounded-lg border border-cyber-border shadow-2xl",referrerPolicy:"no-referrer"}):A.jsxs("div",{className:"bg-black/40 p-6 rounded-lg border border-cyber-border font-mono text-xs text-cyber-muted leading-relaxed max-h-[50vh] overflow-auto custom-scrollbar",children:[A.jsxs("div",{className:"text-cyber-accent mb-4",children:["--- ",l.type.toUpperCase()," 内容 ---"]}),A.jsx("pre",{children:`[2026-03-20 14:22:45] INFO: Starting Nmap 7.80 ( https://nmap.org ) at 2026-03-20 14:22 UTC
Nmap scan report for 10.0.0.5
Host is up (0.00045s latency).
Not shown: 997 closed ports
PORT     STATE SERVICE VERSION
22/tcp   open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.1 (Ubuntu Linux; protocol 2.0)
80/tcp   open  http    Apache httpd 2.4.41 ((Ubuntu))
3306/tcp open  mysql   MySQL 8.0.19-0ubuntu5

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 0.52 seconds`})]}),A.jsxs("div",{className:"mt-6 flex items-center justify-between",children:[A.jsxs("div",{className:"flex gap-6 text-[10px] text-cyber-muted uppercase font-bold tracking-widest",children:[A.jsxs("div",{className:"flex flex-col",children:[A.jsx("span",{className:"opacity-50",children:"类型"}),A.jsx("span",{className:"text-cyber-accent",children:l.type})]}),A.jsxs("div",{className:"flex flex-col",children:[A.jsx("span",{className:"opacity-50",children:"主机"}),A.jsx("span",{className:"text-cyber-accent",children:l.host||"10.0.0.5"})]}),A.jsxs("div",{className:"flex flex-col",children:[A.jsx("span",{className:"opacity-50",children:"时间戳"}),A.jsx("span",{className:"text-cyber-accent",children:l.timestamp})]})]}),A.jsxs("div",{className:"flex gap-3",children:[A.jsxs("button",{className:"px-4 py-2 bg-white/5 border border-cyber-border rounded text-xs font-bold hover:bg-white/10 transition-all flex items-center gap-2",children:[A.jsx(jH,{size:14})," 删除"]}),A.jsxs("button",{className:"px-6 py-2 bg-cyber-accent text-black font-bold rounded text-xs shadow-[0_0_15px_rgba(0,255,0,0.3)] hover:brightness-110 transition-all flex items-center gap-2",children:[A.jsx(Zx,{size:14})," 下载原始文件"]})]})]})]})]})})}),A.jsx("div",{className:"fixed bottom-12 right-6 z-[120] flex flex-col gap-2 pointer-events-none",children:A.jsx(Sl,{children:k.map(oe=>A.jsxs(Nr.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},exit:{opacity:0,x:50},className:ht("px-4 py-3 rounded-lg border shadow-xl flex items-center gap-3 min-w-[240px] pointer-events-auto",oe.type==="success"?"bg-emerald-900/80 border-emerald-500/50 text-emerald-100":oe.type==="error"?"bg-red-900/80 border-red-500/50 text-red-100":"bg-zinc-900/80 border-cyber-accent/50 text-cyber-accent"),children:[oe.type==="success"?A.jsx(Z9,{size:16}):oe.type==="error"?A.jsx(lp,{size:16}):A.jsx(Ek,{size:16}),A.jsx("span",{className:"text-xs font-bold",children:oe.text})]},oe.id))})})]})}function zme(e){return Nn(e)&&"code"in e&&"reason"in e}function Bme(e){var t;return Nn(e)&&((t=e.target)==null?void 0:t.readyState)===WebSocket.CLOSED}class Vme extends zn{constructor(n){super();X(this,"client");this.client=n}request(n){return new _t(r=>{const{query:i,variables:o,operationName:l,extensions:u}=n;return this.client.subscribe({variables:o,operationName:l,extensions:u,query:cs(i)},{next:r.next.bind(r),complete:r.complete.bind(r),error:f=>{if(f instanceof Error)return r.error(f);const d=zme(f);return d||Bme(f)?r.error(new Error(`Socket closed${d?` with event ${f.code}`:""}${d?` ${f.reason}`:""}`)):r.error(new to({errors:Array.isArray(f)?f:[f]}))}})})}}function Qn(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Jo(e){return Qn(e)==="object"}function Ume(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function qD(e,t){return e.length<124?e:t}const Fme="graphql-transport-ws";var Pr=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(Pr||{}),Dr=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(Dr||{});function XV(e){if(!Jo(e))throw new Error(`Message is expected to be an object, but got ${Qn(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Qn(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Jo(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Qn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Jo(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Qn(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Qn(e.payload.query)}`);if(e.payload.variables!=null&&!Jo(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Qn(e.payload.variables)}`);if(e.payload.operationName!=null&&Qn(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Qn(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Jo(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Qn(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Qn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Jo(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Qn(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Qn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Ume(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Qn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function qme(e,t){return XV(typeof e=="string"?JSON.parse(e,t):e)}function qc(e,t){return XV(e),JSON.stringify(e,t)}function $me(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:l=0,disablePong:u,connectionAckWaitTimeout:f=0,retryAttempts:d=5,retryWait:p=async function(ee){const D=Math.pow(2,ee);await new Promise(q=>setTimeout(q,D*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:m=Nx,on:y,webSocketImpl:g,generateID:x=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,ee=>{const D=Math.random()*16|0;return(ee=="x"?D:D&3|8).toString(16)})},jsonMessageReplacer:w,jsonMessageReviver:S}=e;let O;if(g){if(!Gme(g))throw new Error("Invalid WebSocket implementation provided");O=g}else typeof WebSocket<"u"?O=WebSocket:typeof global<"u"?O=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(O=window.WebSocket||window.MozWebSocket);if(!O)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const _=O,C=(()=>{const ne=(()=>{const D={};return{on(q,B){return D[q]=B,()=>{delete D[q]}},emit(q){var B;"id"in q&&((B=D[q.id])==null||B.call(D,q))}}})(),ee={connecting:y!=null&&y.connecting?[y.connecting]:[],opened:y!=null&&y.opened?[y.opened]:[],connected:y!=null&&y.connected?[y.connected]:[],ping:y!=null&&y.ping?[y.ping]:[],pong:y!=null&&y.pong?[y.pong]:[],message:y!=null&&y.message?[ne.emit,y.message]:[ne.emit],closed:y!=null&&y.closed?[y.closed]:[],error:y!=null&&y.error?[y.error]:[]};return{onMessage:ne.on,on(D,q){const B=ee[D];return B.push(q),()=>{B.splice(B.indexOf(q),1)}},emit(D,...q){for(const B of[...ee[D]])B(...q)}}})();function k(ne){const ee=[C.on("error",D=>{ee.forEach(q=>q()),ne(D)}),C.on("closed",D=>{ee.forEach(q=>q()),ne(D)})]}let N,M=0,R,P=!1,V=0,H=!1;async function Z(){clearTimeout(R);const[ne,ee]=await(N??(N=new Promise((B,ce)=>(async()=>{if(P){if(await p(V),!M)return N=void 0,ce({code:1e3,reason:"All Subscriptions Gone"});V++}C.emit("connecting",P);const Y=new _(typeof t=="function"?await t():t,Fme);let I,Q;function ue(){isFinite(l)&&l>0&&(clearTimeout(Q),Q=setTimeout(()=>{Y.readyState===_.OPEN&&(Y.send(qc({type:Dr.Ping})),C.emit("ping",!1,void 0))},l))}k(de=>{N=void 0,clearTimeout(I),clearTimeout(Q),ce(de),de instanceof $D&&(Y.close(4499,"Terminated"),Y.onerror=null,Y.onclose=null)}),Y.onerror=de=>C.emit("error",de),Y.onclose=de=>C.emit("closed",de),Y.onopen=async()=>{try{C.emit("opened",Y);const de=typeof n=="function"?await n():n;if(Y.readyState!==_.OPEN)return;Y.send(qc(de?{type:Dr.ConnectionInit,payload:de}:{type:Dr.ConnectionInit},w)),isFinite(f)&&f>0&&(I=setTimeout(()=>{Y.close(Pr.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},f)),ue()}catch(de){C.emit("error",de),Y.close(Pr.InternalClientError,qD(de instanceof Error?de.message:String(de),"Internal client error"))}};let fe=!1;Y.onmessage=({data:de})=>{try{const me=qme(de,S);if(C.emit("message",me),me.type==="ping"||me.type==="pong"){C.emit(me.type,!0,me.payload),me.type==="pong"?ue():u||(Y.send(qc(me.payload?{type:Dr.Pong,payload:me.payload}:{type:Dr.Pong})),C.emit("pong",!1,me.payload));return}if(fe)return;if(me.type!==Dr.ConnectionAck)throw new Error(`First message cannot be of type ${me.type}`);clearTimeout(I),fe=!0,C.emit("connected",Y,me.payload,P),P=!1,V=0,B([Y,new Promise((ke,Be)=>k(Be))])}catch(me){Y.onmessage=null,C.emit("error",me),Y.close(Pr.BadResponse,qD(me instanceof Error?me.message:String(me),"Bad response"))}}})())));ne.readyState===_.CLOSING&&await ee;let D=()=>{};const q=new Promise(B=>D=B);return[ne,D,Promise.race([q.then(()=>{if(!M){const B=()=>ne.close(1e3,"Normal Closure");isFinite(o)&&o>0?R=setTimeout(()=>{ne.readyState===_.OPEN&&B()},o):B()}}),ee])]}function F(ne){if(Nx(ne)&&(Hme(ne.code)||[Pr.InternalServerError,Pr.InternalClientError,Pr.BadRequest,Pr.BadResponse,Pr.Unauthorized,Pr.SubprotocolNotAcceptable,Pr.SubscriberAlreadyExists,Pr.TooManyInitialisationRequests].includes(ne.code)))throw ne;if(H)return!1;if(Nx(ne)&&ne.code===1e3)return M>0;if(!d||V>=d||!m(ne))throw ne;return P=!0}r||(async()=>{for(M++;;)try{const[,,ne]=await Z();await ne}catch(ne){try{if(!F(ne))return}catch(ee){return i==null?void 0:i(ee)}}})();function he(ne,ee){const D=x(ne);let q=!1,B=!1,ce=()=>{M--,q=!0};return(async()=>{for(M++;;)try{const[Y,I,Q]=await Z();if(q)return I();const ue=C.onMessage(D,fe=>{switch(fe.type){case Dr.Next:{ee.next(fe.payload);return}case Dr.Error:{B=!0,q=!0,ee.error(fe.payload),ce();return}case Dr.Complete:{q=!0,ce();return}}});Y.send(qc({id:D,type:Dr.Subscribe,payload:ne},w)),ce=()=>{!q&&Y.readyState===_.OPEN&&Y.send(qc({id:D,type:Dr.Complete},w)),M--,q=!0,I()},await Q.finally(ue);return}catch(Y){if(!F(Y))return}})().then(()=>{B||ee.complete()}).catch(Y=>{ee.error(Y)}),()=>{q||ce()}}return{on:C.on,subscribe:he,iterate(ne){const ee=[],D={done:!1,error:null,resolve:()=>{}},q=he(ne,{next(ce){ee.push(ce),D.resolve()},error(ce){D.done=!0,D.error=ce,D.resolve()},complete(){D.done=!0,D.resolve()}}),B=(async function*(){for(;;){for(ee.length||await new Promise(Y=>D.resolve=Y);ee.length;)yield ee.shift();if(D.error)throw D.error;if(D.done)return}})();return B.throw=async ce=>(D.done||(D.done=!0,D.error=ce,D.resolve()),{done:!0,value:void 0}),B.return=async()=>(q(),{done:!0,value:void 0}),B},async dispose(){if(H=!0,N){const[ne]=await N;ne.close(1e3,"Normal Closure")}},terminate(){N&&C.emit("closed",new $D)}}}class $D extends Error{constructor(){super(...arguments);X(this,"name","TerminatedCloseEvent");X(this,"message","4499: Terminated");X(this,"code",4499);X(this,"reason","Terminated");X(this,"wasClean",!1)}}function Nx(e){return Jo(e)&&"code"in e&&"reason"in e}function Hme(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function Gme(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const Kme="/api/v1",QV=`${Kme}/graphql/`,Yme=i9({credentials:"include",uri:`${window.location.origin}${QV}`}),Wme=window.location.protocol==="https:"?"wss:":"ws:",Xme=new Vme($me({lazy:!0,retryAttempts:1/0,retryWait:e=>new Promise(t=>{setTimeout(t,Math.min(1e3*2**e,3e4))}),shouldRetry:()=>!0,url:`${Wme}//${window.location.host}${QV}`})),Qme=t$(({query:e})=>{const t=Lw(e);return t.kind==="OperationDefinition"&&t.operation==="subscription"},Xme,Yme),Zme=new I$({cache:new C$({typePolicies:{Query:{fields:{flows:{merge:(e,t)=>t},agentLogs:{keyArgs:["flowId"],merge:(e,t)=>t}}}}}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first"}},link:Qme});P9.createRoot(document.getElementById("root")).render(A.jsx(E.StrictMode,{children:A.jsx(gF,{client:Zme,children:A.jsx(Lme,{})})}));
