@elizaos/plugin-knowledge 1.0.11 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,160 +0,0 @@
1
- (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();function Qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hu={exports:{}},no={},du={exports:{}},Ce={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ad;function fy(){if(ad)return Ce;ad=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.iterator;function x(M){return M===null||typeof M!="object"?null:(M=m&&M[m]||M["@@iterator"],typeof M=="function"?M:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function S(M,q,ue){this.props=M,this.context=q,this.refs=C,this.updater=ue||w}S.prototype.isReactComponent={},S.prototype.setState=function(M,q){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,q,"setState")},S.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function k(){}k.prototype=S.prototype;function O(M,q,ue){this.props=M,this.context=q,this.refs=C,this.updater=ue||w}var D=O.prototype=new k;D.constructor=O,b(D,S.prototype),D.isPureReactComponent=!0;var P=Array.isArray,T=Object.prototype.hasOwnProperty,z={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function L(M,q,ue){var fe,ve={},xe=null,Se=null;if(q!=null)for(fe in q.ref!==void 0&&(Se=q.ref),q.key!==void 0&&(xe=""+q.key),q)T.call(q,fe)&&!A.hasOwnProperty(fe)&&(ve[fe]=q[fe]);var be=arguments.length-2;if(be===1)ve.children=ue;else if(1<be){for(var Pe=Array(be),lt=0;lt<be;lt++)Pe[lt]=arguments[lt+2];ve.children=Pe}if(M&&M.defaultProps)for(fe in be=M.defaultProps,be)ve[fe]===void 0&&(ve[fe]=be[fe]);return{$$typeof:e,type:M,key:xe,ref:Se,props:ve,_owner:z.current}}function W(M,q){return{$$typeof:e,type:M.type,key:q,ref:M.ref,props:M.props,_owner:M._owner}}function X(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Z(M){var q={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ue){return q[ue]})}var oe=/\/+/g;function de(M,q){return typeof M=="object"&&M!==null&&M.key!=null?Z(""+M.key):q.toString(36)}function F(M,q,ue,fe,ve){var xe=typeof M;(xe==="undefined"||xe==="boolean")&&(M=null);var Se=!1;if(M===null)Se=!0;else switch(xe){case"string":case"number":Se=!0;break;case"object":switch(M.$$typeof){case e:case n:Se=!0}}if(Se)return Se=M,ve=ve(Se),M=fe===""?"."+de(Se,0):fe,P(ve)?(ue="",M!=null&&(ue=M.replace(oe,"$&/")+"/"),F(ve,q,ue,"",function(lt){return lt})):ve!=null&&(X(ve)&&(ve=W(ve,ue+(!ve.key||Se&&Se.key===ve.key?"":(""+ve.key).replace(oe,"$&/")+"/")+M)),q.push(ve)),1;if(Se=0,fe=fe===""?".":fe+":",P(M))for(var be=0;be<M.length;be++){xe=M[be];var Pe=fe+de(xe,be);Se+=F(xe,q,ue,Pe,ve)}else if(Pe=x(M),typeof Pe=="function")for(M=Pe.call(M),be=0;!(xe=M.next()).done;)xe=xe.value,Pe=fe+de(xe,be++),Se+=F(xe,q,ue,Pe,ve);else if(xe==="object")throw q=String(M),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return Se}function ee(M,q,ue){if(M==null)return M;var fe=[],ve=0;return F(M,fe,"","",function(xe){return q.call(ue,xe,ve++)}),fe}function Q(M){if(M._status===-1){var q=M._result;q=q(),q.then(function(ue){(M._status===0||M._status===-1)&&(M._status=1,M._result=ue)},function(ue){(M._status===0||M._status===-1)&&(M._status=2,M._result=ue)}),M._status===-1&&(M._status=0,M._result=q)}if(M._status===1)return M._result.default;throw M._result}var ne={current:null},V={transition:null},Y={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:V,ReactCurrentOwner:z};function B(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:ee,forEach:function(M,q,ue){ee(M,function(){q.apply(this,arguments)},ue)},count:function(M){var q=0;return ee(M,function(){q++}),q},toArray:function(M){return ee(M,function(q){return q})||[]},only:function(M){if(!X(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Ce.Component=S,Ce.Fragment=i,Ce.Profiler=a,Ce.PureComponent=O,Ce.StrictMode=s,Ce.Suspense=p,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,Ce.act=B,Ce.cloneElement=function(M,q,ue){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var fe=b({},M.props),ve=M.key,xe=M.ref,Se=M._owner;if(q!=null){if(q.ref!==void 0&&(xe=q.ref,Se=z.current),q.key!==void 0&&(ve=""+q.key),M.type&&M.type.defaultProps)var be=M.type.defaultProps;for(Pe in q)T.call(q,Pe)&&!A.hasOwnProperty(Pe)&&(fe[Pe]=q[Pe]===void 0&&be!==void 0?be[Pe]:q[Pe])}var Pe=arguments.length-2;if(Pe===1)fe.children=ue;else if(1<Pe){be=Array(Pe);for(var lt=0;lt<Pe;lt++)be[lt]=arguments[lt+2];fe.children=be}return{$$typeof:e,type:M.type,key:ve,ref:xe,props:fe,_owner:Se}},Ce.createContext=function(M){return M={$$typeof:f,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:u,_context:M},M.Consumer=M},Ce.createElement=L,Ce.createFactory=function(M){var q=L.bind(null,M);return q.type=M,q},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(M){return{$$typeof:h,render:M}},Ce.isValidElement=X,Ce.lazy=function(M){return{$$typeof:v,_payload:{_status:-1,_result:M},_init:Q}},Ce.memo=function(M,q){return{$$typeof:g,type:M,compare:q===void 0?null:q}},Ce.startTransition=function(M){var q=V.transition;V.transition={};try{M()}finally{V.transition=q}},Ce.unstable_act=B,Ce.useCallback=function(M,q){return ne.current.useCallback(M,q)},Ce.useContext=function(M){return ne.current.useContext(M)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(M){return ne.current.useDeferredValue(M)},Ce.useEffect=function(M,q){return ne.current.useEffect(M,q)},Ce.useId=function(){return ne.current.useId()},Ce.useImperativeHandle=function(M,q,ue){return ne.current.useImperativeHandle(M,q,ue)},Ce.useInsertionEffect=function(M,q){return ne.current.useInsertionEffect(M,q)},Ce.useLayoutEffect=function(M,q){return ne.current.useLayoutEffect(M,q)},Ce.useMemo=function(M,q){return ne.current.useMemo(M,q)},Ce.useReducer=function(M,q,ue){return ne.current.useReducer(M,q,ue)},Ce.useRef=function(M){return ne.current.useRef(M)},Ce.useState=function(M){return ne.current.useState(M)},Ce.useSyncExternalStore=function(M,q,ue){return ne.current.useSyncExternalStore(M,q,ue)},Ce.useTransition=function(){return ne.current.useTransition()},Ce.version="18.3.1",Ce}var ud;function sc(){return ud||(ud=1,du.exports=fy()),du.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var cd;function hy(){if(cd)return no;cd=1;var e=sc(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(h,p,g){var v,m={},x=null,w=null;g!==void 0&&(x=""+g),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(w=p.ref);for(v in p)s.call(p,v)&&!u.hasOwnProperty(v)&&(m[v]=p[v]);if(h&&h.defaultProps)for(v in p=h.defaultProps,p)m[v]===void 0&&(m[v]=p[v]);return{$$typeof:n,type:h,key:x,ref:w,props:m,_owner:a.current}}return no.Fragment=i,no.jsx=f,no.jsxs=f,no}var fd;function dy(){return fd||(fd=1,hu.exports=hy()),hu.exports}var N=dy(),ui=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nr=typeof window>"u"||"Deno"in globalThis;function ct(){}function py(e,n){return typeof e=="function"?e(n):e}function Au(e){return typeof e=="number"&&e>=0&&e!==1/0}function Bp(e,n){return Math.max(e+(n||0)-Date.now(),0)}function sr(e,n){return typeof e=="function"?e(n):e}function Gt(e,n){return typeof e=="function"?e(n):e}function hd(e,n){const{type:i="all",exact:s,fetchStatus:a,predicate:u,queryKey:f,stale:h}=e;if(f){if(s){if(n.queryHash!==lc(f,n.options))return!1}else if(!_o(n.queryKey,f))return!1}if(i!=="all"){const p=n.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||a&&a!==n.state.fetchStatus||u&&!u(n))}function dd(e,n){const{exact:i,status:s,predicate:a,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(i){if(Pr(n.options.mutationKey)!==Pr(u))return!1}else if(!_o(n.options.mutationKey,u))return!1}return!(s&&n.state.status!==s||a&&!a(n))}function lc(e,n){return(n?.queryKeyHashFn||Pr)(e)}function Pr(e){return JSON.stringify(e,(n,i)=>zu(i)?Object.keys(i).sort().reduce((s,a)=>(s[a]=i[a],s),{}):i)}function _o(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(i=>_o(e[i],n[i])):!1}function Wp(e,n){if(e===n)return e;const i=pd(e)&&pd(n);if(i||zu(e)&&zu(n)){const s=i?e:Object.keys(e),a=s.length,u=i?n:Object.keys(n),f=u.length,h=i?[]:{},p=new Set(s);let g=0;for(let v=0;v<f;v++){const m=i?v:u[v];(!i&&p.has(m)||i)&&e[m]===void 0&&n[m]===void 0?(h[m]=void 0,g++):(h[m]=Wp(e[m],n[m]),h[m]===e[m]&&e[m]!==void 0&&g++)}return a===f&&g===a?e:h}return n}function al(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(e[i]!==n[i])return!1;return!0}function pd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zu(e){if(!gd(e))return!1;const n=e.constructor;if(n===void 0)return!0;const i=n.prototype;return!(!gd(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function gd(e){return Object.prototype.toString.call(e)==="[object Object]"}function gy(e){return new Promise(n=>{setTimeout(n,e)})}function Du(e,n,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,n):i.structuralSharing!==!1?Wp(e,n):n}function my(e,n,i=0){const s=[...e,n];return i&&s.length>i?s.slice(1):s}function yy(e,n,i=0){const s=[n,...e];return i&&s.length>i?s.slice(0,-1):s}var ac=Symbol();function Kp(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===ac?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Gp(e,n){return typeof e=="function"?e(...n):!!e}var vy=class extends ui{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Nr&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},uc=new vy,xy=class extends ui{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Nr&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(i=>{i(e)}))}isOnline(){return this.#t}},ul=new xy;function Iu(){let e,n;const i=new Promise((a,u)=>{e=a,n=u});i.status="pending",i.catch(()=>{});function s(a){Object.assign(i,a),delete i.resolve,delete i.reject}return i.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},i.reject=a=>{s({status:"rejected",reason:a}),n(a)},i}function _y(e){return Math.min(1e3*2**e,3e4)}function Xp(e){return(e??"online")==="online"?ul.isOnline():!0}var Yp=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function pu(e){return e instanceof Yp}function Zp(e){let n=!1,i=0,s=!1,a;const u=Iu(),f=C=>{s||(x(new Yp(C)),e.abort?.())},h=()=>{n=!0},p=()=>{n=!1},g=()=>uc.isFocused()&&(e.networkMode==="always"||ul.isOnline())&&e.canRun(),v=()=>Xp(e.networkMode)&&e.canRun(),m=C=>{s||(s=!0,e.onSuccess?.(C),a?.(),u.resolve(C))},x=C=>{s||(s=!0,e.onError?.(C),a?.(),u.reject(C))},w=()=>new Promise(C=>{a=S=>{(s||g())&&C(S)},e.onPause?.()}).then(()=>{a=void 0,s||e.onContinue?.()}),b=()=>{if(s)return;let C;const S=i===0?e.initialPromise:void 0;try{C=S??e.fn()}catch(k){C=Promise.reject(k)}Promise.resolve(C).then(m).catch(k=>{if(s)return;const O=e.retry??(Nr?0:3),D=e.retryDelay??_y,P=typeof D=="function"?D(i,k):D,T=O===!0||typeof O=="number"&&i<O||typeof O=="function"&&O(i,k);if(n||!T){x(k);return}i++,e.onFail?.(i,k),gy(P).then(()=>g()?void 0:w()).then(()=>{n?x(k):b()})})};return{promise:u,cancel:f,continue:()=>(a?.(),u),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?b():w().then(b),u)}}var wy=e=>setTimeout(e,0);function ky(){let e=[],n=0,i=h=>{h()},s=h=>{h()},a=wy;const u=h=>{n?e.push(h):a(()=>{i(h)})},f=()=>{const h=e;e=[],h.length&&a(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;n++;try{p=h()}finally{n--,n||f()}return p},batchCalls:h=>(...p)=>{u(()=>{h(...p)})},schedule:u,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{a=h}}}var Ke=ky(),Jp=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Au(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nr?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},Sy=class extends Jp{#t;#e;#n;#r;#i;#s;#l;constructor(e){super(),this.#l=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=by(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const i=Du(this.state.data,e,this.options);return this.#o({data:i,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),i}setState(e,n){this.#o({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#i?.promise;return this.#i?.cancel(e),n?n.then(ct).catch(ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Gt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ac||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>sr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Bp(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#i&&(this.#l?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(e,n){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const i=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#l=!0,i.signal)})},a=()=>{const p=Kp(this.options,n),v=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(m),m})();return this.#l=!1,this.options.persister?this.options.persister(p,v,this):p(v)},f=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return s(p),p})();this.options.behavior?.onFetch(f,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#o({type:"fetch",meta:f.fetchOptions?.meta});const h=p=>{pu(p)&&p.silent||this.#o({type:"error",error:p}),pu(p)||(this.#n.config.onError?.(p,this),this.#n.config.onSettled?.(this.state.data,p,this)),this.scheduleGc()};return this.#i=Zp({initialPromise:n?.initialPromise,fn:f.fetchFn,abort:i.abort.bind(i),onSuccess:p=>{if(p===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(g){h(g);return}this.#n.config.onSuccess?.(p,this),this.#n.config.onSettled?.(p,this.state.error,this),this.scheduleGc()},onError:h,onFail:(p,g)=>{this.#o({type:"failed",failureCount:p,error:g})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}),this.#i.start()}#o(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...eg(i.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...i,data:e.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return pu(s)&&s.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),Ke.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function eg(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Xp(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function by(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,i=n!==void 0,s=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Cy=class extends ui{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,n,i){const s=n.queryKey,a=n.queryHash??lc(s,n);let u=this.get(a);return u||(u=new Sy({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(s)}),this.add(u)),u}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#t.get(e.queryHash);n&&(e.destroy(),n===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ke.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>hd(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>hd(e,i)):n}notify(e){Ke.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Ke.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ke.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ey=class extends Jp{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||tg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(n=>n!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#r({type:"continue"})};this.#n=Zp({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,u)=>{this.#r({type:"failed",failureCount:a,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const i=this.state.status==="pending",s=!this.#n.canStart();try{if(i)n();else{this.#r({type:"pending",variables:e,isPaused:s}),await this.#e.config.onMutate?.(e,this);const u=await this.options.onMutate?.(e);u!==this.state.context&&this.#r({type:"pending",context:u,variables:e,isPaused:s})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ke.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function tg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ny=class extends ui{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,n,i){const s=new Ey({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:i});return this.add(s),s}add(e){this.#t.add(e);const n=Ks(e);if(typeof n=="string"){const i=this.#e.get(n);i?i.push(e):this.#e.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const n=Ks(e);if(typeof n=="string"){const i=this.#e.get(n);if(i)if(i.length>1){const s=i.indexOf(e);s!==-1&&i.splice(s,1)}else i[0]===e&&this.#e.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Ks(e);if(typeof n=="string"){const s=this.#e.get(n)?.find(a=>a.state.status==="pending");return!s||s===e}else return!0}runNext(e){const n=Ks(e);return typeof n=="string"?this.#e.get(n)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ke.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const n={exact:!0,...e};return this.getAll().find(i=>dd(n,i))}findAll(e={}){return this.getAll().filter(n=>dd(e,n))}notify(e){Ke.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Ke.batch(()=>Promise.all(e.map(n=>n.continue().catch(ct))))}};function Ks(e){return e.options.scope?.id}function md(e){return{onFetch:(n,i)=>{const s=n.options,a=n.fetchOptions?.meta?.fetchMore?.direction,u=n.state.data?.pages||[],f=n.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const g=async()=>{let v=!1;const m=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(n.signal.aborted?v=!0:n.signal.addEventListener("abort",()=>{v=!0}),n.signal)})},x=Kp(n.options,n.fetchOptions),w=async(b,C,S)=>{if(v)return Promise.reject();if(C==null&&b.pages.length)return Promise.resolve(b);const O=(()=>{const z={client:n.client,queryKey:n.queryKey,pageParam:C,direction:S?"backward":"forward",meta:n.options.meta};return m(z),z})(),D=await x(O),{maxPages:P}=n.options,T=S?yy:my;return{pages:T(b.pages,D,P),pageParams:T(b.pageParams,C,P)}};if(a&&u.length){const b=a==="backward",C=b?Py:yd,S={pages:u,pageParams:f},k=C(s,S);h=await w(S,k,b)}else{const b=e??u.length;do{const C=p===0?f[0]??s.initialPageParam:yd(s,h);if(p>0&&C==null)break;h=await w(h,C),p++}while(p<b)}return h};n.options.persister?n.fetchFn=()=>n.options.persister?.(g,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},i):n.fetchFn=g}}}function yd(e,{pages:n,pageParams:i}){const s=n.length-1;return n.length>0?e.getNextPageParam(n[s],n,i[s],i):void 0}function Py(e,{pages:n,pageParams:i}){return n.length>0?e.getPreviousPageParam?.(n[0],n,i[0],i):void 0}var Ty=class{#t;#e;#n;#r;#i;#s;#l;#o;constructor(e={}){this.#t=e.queryCache||new Cy,this.#e=e.mutationCache||new Ny,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#l=uc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=ul.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#l?.(),this.#l=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#t.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),i=this.#t.build(this,n),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(sr(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:n,state:i})=>{const s=i.data;return[n,s]})}setQueryData(e,n,i){const s=this.defaultQueryOptions({queryKey:e}),u=this.#t.get(s.queryHash)?.state.data,f=py(n,u);if(f!==void 0)return this.#t.build(this,s).setData(f,{...i,manual:!0})}setQueriesData(e,n,i){return Ke.batch(()=>this.#t.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,i)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#t.get(n.queryHash)?.state}removeQueries(e){const n=this.#t;Ke.batch(()=>{n.findAll(e).forEach(i=>{n.remove(i)})})}resetQueries(e,n){const i=this.#t;return Ke.batch(()=>(i.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const i={revert:!0,...n},s=Ke.batch(()=>this.#t.findAll(e).map(a=>a.cancel(i)));return Promise.all(s).then(ct).catch(ct)}invalidateQueries(e,n={}){return Ke.batch(()=>(this.#t.findAll(e).forEach(i=>{i.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const i={...n,cancelRefetch:n.cancelRefetch??!0},s=Ke.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(ct)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(ct)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const i=this.#t.build(this,n);return i.isStaleByTime(sr(n.staleTime,i))?i.fetch(n):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ct).catch(ct)}fetchInfiniteQuery(e){return e.behavior=md(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ct).catch(ct)}ensureInfiniteQueryData(e){return e.behavior=md(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ul.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#r.set(Pr(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],i={};return n.forEach(s=>{_o(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,n){this.#i.set(Pr(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#i.values()],i={};return n.forEach(s=>{_o(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=lc(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===ac&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},My=class extends ui{constructor(e,n){super(),this.options=n,this.#t=e,this.#o=null,this.#l=Iu(),this.options.experimental_prefetchInRender||this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}#t;#e=void 0;#n=void 0;#r=void 0;#i;#s;#l;#o;#g;#h;#d;#u;#c;#a;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),vd(this.#e,this.options)?this.#f():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lu(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lu(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const n=this.options,i=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Gt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#e.setOptions(this.options),n._defaulted&&!al(this.options,n)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&xd(this.#e,i,this.options,n)&&this.#f(),this.updateResult(),s&&(this.#e!==i||Gt(this.options.enabled,this.#e)!==Gt(n.enabled,this.#e)||sr(this.options.staleTime,this.#e)!==sr(n.staleTime,this.#e))&&this.#m();const a=this.#y();s&&(this.#e!==i||Gt(this.options.enabled,this.#e)!==Gt(n.enabled,this.#e)||a!==this.#a)&&this.#v(a)}getOptimisticResult(e){const n=this.#t.getQueryCache().build(this.#t,e),i=this.createResult(n,e);return Oy(this,i)&&(this.#r=i,this.#s=this.options,this.#i=this.#e.state),i}getCurrentResult(){return this.#r}trackResult(e,n){return new Proxy(e,{get:(i,s)=>(this.trackProp(s),n?.(s),Reflect.get(i,s))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=this.#t.defaultQueryOptions(e),i=this.#t.getQueryCache().build(this.#t,n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#k();let n=this.#e.fetch(this.options,e);return e?.throwOnError||(n=n.catch(ct)),n}#m(){this.#_();const e=sr(this.options.staleTime,this.#e);if(Nr||this.#r.isStale||!Au(e))return;const i=Bp(this.#r.dataUpdatedAt,e)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},i)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#a=e,!(Nr||Gt(this.options.enabled,this.#e)===!1||!Au(this.#a)||this.#a===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||uc.isFocused())&&this.#f()},this.#a))}#x(){this.#m(),this.#v(this.#y())}#_(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(e,n){const i=this.#e,s=this.options,a=this.#r,u=this.#i,f=this.#s,p=e!==i?e.state:this.#n,{state:g}=e;let v={...g},m=!1,x;if(n._optimisticResults){const L=this.hasListeners(),W=!L&&vd(e,n),X=L&&xd(e,i,n,s);(W||X)&&(v={...v,...eg(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:C}=v;x=v.data;let S=!1;if(n.placeholderData!==void 0&&x===void 0&&C==="pending"){let L;a?.isPlaceholderData&&n.placeholderData===f?.placeholderData?(L=a.data,S=!0):L=typeof n.placeholderData=="function"?n.placeholderData(this.#d?.state.data,this.#d):n.placeholderData,L!==void 0&&(C="success",x=Du(a?.data,L,n),m=!0)}if(n.select&&x!==void 0&&!S)if(a&&x===u?.data&&n.select===this.#g)x=this.#h;else try{this.#g=n.select,x=n.select(x),x=Du(a?.data,x,n),this.#h=x,this.#o=null}catch(L){this.#o=L}this.#o&&(w=this.#o,x=this.#h,b=Date.now(),C="error");const k=v.fetchStatus==="fetching",O=C==="pending",D=C==="error",P=O&&k,T=x!==void 0,A={status:C,fetchStatus:v.fetchStatus,isPending:O,isSuccess:C==="success",isError:D,isInitialLoading:P,isLoading:P,data:x,dataUpdatedAt:v.dataUpdatedAt,error:w,errorUpdatedAt:b,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:k,isRefetching:k&&!O,isLoadingError:D&&!T,isPaused:v.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:D&&T,isStale:cc(e,n),refetch:this.refetch,promise:this.#l};if(this.options.experimental_prefetchInRender){const L=Z=>{A.status==="error"?Z.reject(A.error):A.data!==void 0&&Z.resolve(A.data)},W=()=>{const Z=this.#l=A.promise=Iu();L(Z)},X=this.#l;switch(X.status){case"pending":e.queryHash===i.queryHash&&L(X);break;case"fulfilled":(A.status==="error"||A.data!==X.value)&&W();break;case"rejected":(A.status!=="error"||A.error!==X.reason)&&W();break}}return A}updateResult(){const e=this.#r,n=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#s=this.options,this.#i.data!==void 0&&(this.#d=this.#e),al(n,e))return;this.#r=n;const i=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!this.#p.size)return!0;const u=new Set(a??this.#p);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(f=>{const h=f;return this.#r[h]!==e[h]&&u.has(h)})};this.#S({listeners:i()})}#k(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const n=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#S(e){Ke.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function jy(e,n){return Gt(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function vd(e,n){return jy(e,n)||e.state.data!==void 0&&Lu(e,n,n.refetchOnMount)}function Lu(e,n,i){if(Gt(n.enabled,e)!==!1&&sr(n.staleTime,e)!=="static"){const s=typeof i=="function"?i(e):i;return s==="always"||s!==!1&&cc(e,n)}return!1}function xd(e,n,i,s){return(e!==n||Gt(s.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&cc(e,i)}function cc(e,n){return Gt(n.enabled,e)!==!1&&e.isStaleByTime(sr(n.staleTime,e))}function Oy(e,n){return!al(e.getCurrentResult(),n)}var Ry=class extends ui{#t;#e=void 0;#n;#r;constructor(n,i){super(),this.#t=n,this.setOptions(i),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const i=this.options;this.options=this.#t.defaultMutationOptions(n),al(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Pr(i.mutationKey)!==Pr(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#i(),this.#s(n)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#s()}mutate(n,i){return this.#r=i,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(n)}#i(){const n=this.#n?.state??tg();this.#e={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#s(n){Ke.batch(()=>{if(this.#r&&this.hasListeners()){const i=this.#e.variables,s=this.#e.context;n?.type==="success"?(this.#r.onSuccess?.(n.data,i,s),this.#r.onSettled?.(n.data,null,i,s)):n?.type==="error"&&(this.#r.onError?.(n.error,i,s),this.#r.onSettled?.(void 0,n.error,i,s))}this.listeners.forEach(i=>{i(this.#e)})})}},se=sc();const fc=Qp(se);var ng=se.createContext(void 0),kl=e=>{const n=se.useContext(ng);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Ay=({client:e,children:n})=>(se.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(ng.Provider,{value:e,children:n})),rg=se.createContext(!1),zy=()=>se.useContext(rg);rg.Provider;function Dy(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Iy=se.createContext(Dy()),Ly=()=>se.useContext(Iy),Fy=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},$y=e=>{se.useEffect(()=>{e.clearReset()},[e])},Uy=({result:e,errorResetBoundary:n,throwOnError:i,query:s,suspense:a})=>e.isError&&!n.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||Gp(i,[e.error,s])),Hy=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},qy=(e,n)=>e.isLoading&&e.isFetching&&!n,Vy=(e,n)=>e?.suspense&&n.isPending,_d=(e,n,i)=>n.fetchOptimistic(e).catch(()=>{i.clearReset()});function Qy(e,n,i){const s=zy(),a=Ly(),u=kl(),f=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(f),f._optimisticResults=s?"isRestoring":"optimistic",Hy(f),Fy(f,a),$y(a);const h=!u.getQueryCache().get(f.queryHash),[p]=se.useState(()=>new n(u,f)),g=p.getOptimisticResult(f),v=!s&&e.subscribed!==!1;if(se.useSyncExternalStore(se.useCallback(m=>{const x=v?p.subscribe(Ke.batchCalls(m)):ct;return p.updateResult(),x},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),se.useEffect(()=>{p.setOptions(f)},[f,p]),Vy(f,g))throw _d(f,p,a);if(Uy({result:g,errorResetBoundary:a,throwOnError:f.throwOnError,query:u.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw g.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(f,g),f.experimental_prefetchInRender&&!Nr&&qy(g,s)&&(h?_d(f,p,a):u.getQueryCache().get(f.queryHash)?.promise)?.catch(ct).finally(()=>{p.updateResult()}),f.notifyOnChangeProps?g:p.trackResult(g)}function Fu(e,n){return Qy(e,My)}function By(e,n){const i=kl(),[s]=se.useState(()=>new Ry(i,e));se.useEffect(()=>{s.setOptions(e)},[s,e]);const a=se.useSyncExternalStore(se.useCallback(f=>s.subscribe(Ke.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=se.useCallback((f,h)=>{s.mutate(f,h).catch(ct)},[s]);if(a.error&&Gp(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}var Gs={},gu={exports:{}},xt={},mu={exports:{}},yu={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var wd;function Wy(){return wd||(wd=1,function(e){function n(V,Y){var B=V.length;V.push(Y);e:for(;0<B;){var M=B-1>>>1,q=V[M];if(0<a(q,Y))V[M]=Y,V[B]=q,B=M;else break e}}function i(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var Y=V[0],B=V.pop();if(B!==Y){V[0]=B;e:for(var M=0,q=V.length,ue=q>>>1;M<ue;){var fe=2*(M+1)-1,ve=V[fe],xe=fe+1,Se=V[xe];if(0>a(ve,B))xe<q&&0>a(Se,ve)?(V[M]=Se,V[xe]=B,M=xe):(V[M]=ve,V[fe]=B,M=fe);else if(xe<q&&0>a(Se,B))V[M]=Se,V[xe]=B,M=xe;else break e}}return Y}function a(V,Y){var B=V.sortIndex-Y.sortIndex;return B!==0?B:V.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],g=[],v=1,m=null,x=3,w=!1,b=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D(V){for(var Y=i(g);Y!==null;){if(Y.callback===null)s(g);else if(Y.startTime<=V)s(g),Y.sortIndex=Y.expirationTime,n(p,Y);else break;Y=i(g)}}function P(V){if(C=!1,D(V),!b)if(i(p)!==null)b=!0,Q(T);else{var Y=i(g);Y!==null&&ne(P,Y.startTime-V)}}function T(V,Y){b=!1,C&&(C=!1,k(L),L=-1),w=!0;var B=x;try{for(D(Y),m=i(p);m!==null&&(!(m.expirationTime>Y)||V&&!Z());){var M=m.callback;if(typeof M=="function"){m.callback=null,x=m.priorityLevel;var q=M(m.expirationTime<=Y);Y=e.unstable_now(),typeof q=="function"?m.callback=q:m===i(p)&&s(p),D(Y)}else s(p);m=i(p)}if(m!==null)var ue=!0;else{var fe=i(g);fe!==null&&ne(P,fe.startTime-Y),ue=!1}return ue}finally{m=null,x=B,w=!1}}var z=!1,A=null,L=-1,W=5,X=-1;function Z(){return!(e.unstable_now()-X<W)}function oe(){if(A!==null){var V=e.unstable_now();X=V;var Y=!0;try{Y=A(!0,V)}finally{Y?de():(z=!1,A=null)}}else z=!1}var de;if(typeof O=="function")de=function(){O(oe)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,ee=F.port2;F.port1.onmessage=oe,de=function(){ee.postMessage(null)}}else de=function(){S(oe,0)};function Q(V){A=V,z||(z=!0,de())}function ne(V,Y){L=S(function(){V(e.unstable_now())},Y)}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(V){V.callback=null},e.unstable_continueExecution=function(){b||w||(b=!0,Q(T))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(V){switch(x){case 1:case 2:case 3:var Y=3;break;default:Y=x}var B=x;x=Y;try{return V()}finally{x=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,Y){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var B=x;x=V;try{return Y()}finally{x=B}},e.unstable_scheduleCallback=function(V,Y,B){var M=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?M+B:M):B=M,V){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=B+q,V={id:v++,callback:Y,priorityLevel:V,startTime:B,expirationTime:q,sortIndex:-1},B>M?(V.sortIndex=B,n(g,V),i(p)===null&&V===i(g)&&(C?(k(L),L=-1):C=!0,ne(P,B-M))):(V.sortIndex=q,n(p,V),b||w||(b=!0,Q(T))),V},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(V){var Y=x;return function(){var B=x;x=Y;try{return V.apply(this,arguments)}finally{x=B}}}}(yu)),yu}var kd;function Ky(){return kd||(kd=1,mu.exports=Wy()),mu.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Sd;function Gy(){if(Sd)return xt;Sd=1;var e=sc(),n=Ky();function i(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(r,o){f(r,o),f(r+"Capture",o)}function f(r,o){for(a[r]=o,r=0;r<o.length;r++)s.add(o[r])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},m={};function x(r){return p.call(m,r)?!0:p.call(v,r)?!1:g.test(r)?m[r]=!0:(v[r]=!0,!1)}function w(r,o,l,c){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function b(r,o,l,c){if(o===null||typeof o>"u"||w(r,o,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function C(r,o,l,c,d,y,_){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=d,this.mustUseProperty=l,this.propertyName=r,this.type=o,this.sanitizeURL=y,this.removeEmptyString=_}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new C(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];S[o]=new C(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new C(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new C(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){S[r]=new C(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new C(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new C(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new C(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new C(r,5,!1,r.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function O(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(k,O);S[o]=new C(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(k,O);S[o]=new C(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(k,O);S[o]=new C(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new C(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new C(r,1,!1,r.toLowerCase(),null,!0,!0)});function D(r,o,l,c){var d=S.hasOwnProperty(o)?S[o]:null;(d!==null?d.type!==0:c||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(b(o,l,d,c)&&(l=null),c||d===null?x(o)&&(l===null?r.removeAttribute(o):r.setAttribute(o,""+l)):d.mustUseProperty?r[d.propertyName]=l===null?d.type===3?!1:"":l:(o=d.attributeName,c=d.attributeNamespace,l===null?r.removeAttribute(o):(d=d.type,l=d===3||d===4&&l===!0?"":""+l,c?r.setAttributeNS(c,o,l):r.setAttribute(o,l))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),z=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),Z=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),V=Symbol.iterator;function Y(r){return r===null||typeof r!="object"?null:(r=V&&r[V]||r["@@iterator"],typeof r=="function"?r:null)}var B=Object.assign,M;function q(r){if(M===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);M=o&&o[1]||""}return`
34
- `+M+r}var ue=!1;function fe(r,o){if(!r||ue)return"";ue=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(H){var c=H}Reflect.construct(r,[],o)}else{try{o.call()}catch(H){c=H}r.call(o.prototype)}else{try{throw Error()}catch(H){c=H}r()}}catch(H){if(H&&c&&typeof H.stack=="string"){for(var d=H.stack.split(`
35
- `),y=c.stack.split(`
36
- `),_=d.length-1,E=y.length-1;1<=_&&0<=E&&d[_]!==y[E];)E--;for(;1<=_&&0<=E;_--,E--)if(d[_]!==y[E]){if(_!==1||E!==1)do if(_--,E--,0>E||d[_]!==y[E]){var j=`
37
- `+d[_].replace(" at new "," at ");return r.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",r.displayName)),j}while(1<=_&&0<=E);break}}}finally{ue=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?q(r):""}function ve(r){switch(r.tag){case 5:return q(r.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return r=fe(r.type,!1),r;case 11:return r=fe(r.type.render,!1),r;case 1:return r=fe(r.type,!0),r;default:return""}}function xe(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case A:return"Fragment";case z:return"Portal";case W:return"Profiler";case L:return"StrictMode";case de:return"Suspense";case F:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Z:return(r.displayName||"Context")+".Consumer";case X:return(r._context.displayName||"Context")+".Provider";case oe:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ee:return o=r.displayName||null,o!==null?o:xe(r.type)||"Memo";case Q:o=r._payload,r=r._init;try{return xe(r(o))}catch{}}return null}function Se(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(o);case 8:return o===L?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function be(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Pe(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function lt(r){var o=Pe(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),c=""+r[o];if(!r.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,y=l.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return d.call(this)},set:function(_){c=""+_,y.call(this,_)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Mr(r){r._valueTracker||(r._valueTracker=lt(r))}function ci(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),c="";return r&&(c=Pe(r)?r.checked?"true":"false":r.value),r=c,r!==l?(o.setValue(r),!0):!1}function lr(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function fi(r,o){var l=o.checked;return B({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Ao(r,o){var l=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;l=be(o.value!=null?o.value:l),r._wrapperState={initialChecked:c,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function zo(r,o){o=o.checked,o!=null&&D(r,"checked",o,!1)}function hi(r,o){zo(r,o);var l=be(o.value),c=o.type;if(l!=null)c==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?en(r,o.type,l):o.hasOwnProperty("defaultValue")&&en(r,o.type,be(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function di(r,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,l||o===r.value||(r.value=o),r.defaultValue=o}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function en(r,o,l){(o!=="number"||lr(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var tn=Array.isArray;function gn(r,o,l,c){if(r=r.options,o){o={};for(var d=0;d<l.length;d++)o["$"+l[d]]=!0;for(l=0;l<r.length;l++)d=o.hasOwnProperty("$"+r[l].value),r[l].selected!==d&&(r[l].selected=d),d&&c&&(r[l].defaultSelected=!0)}else{for(l=""+be(l),o=null,d=0;d<r.length;d++){if(r[d].value===l){r[d].selected=!0,c&&(r[d].defaultSelected=!0);return}o!==null||r[d].disabled||(o=r[d])}o!==null&&(o.selected=!0)}}function pi(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return B({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function mn(r,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(i(92));if(tn(l)){if(1<l.length)throw Error(i(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:be(l)}}function Do(r,o){var l=be(o.value),c=be(o.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),o.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),c!=null&&(r.defaultValue=""+c)}function Io(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function jr(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function gi(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?jr(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Or,Lo=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,c,d){MSApp.execUnsafeLocalFunction(function(){return r(o,l,c,d)})}:r}(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(Or=Or||document.createElement("div"),Or.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Or.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function zn(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var ar={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fo=["Webkit","ms","Moz","O"];Object.keys(ar).forEach(function(r){Fo.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),ar[o]=ar[r]})});function $o(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||ar.hasOwnProperty(r)&&ar[r]?(""+o).trim():o+"px"}function mi(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var c=l.indexOf("--")===0,d=$o(l,o[l],c);l==="float"&&(l="cssFloat"),c?r.setProperty(l,d):r[l]=d}}var Ml=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yi(r,o){if(o){if(Ml[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function vi(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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 xi=null;function _i(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var wi=null,Dn=null,nn=null;function te(r){if(r=Ui(r)){if(typeof wi!="function")throw Error(i(280));var o=r.stateNode;o&&(o=us(o),wi(r.stateNode,r.type,o))}}function _e(r){Dn?nn?nn.push(r):nn=[r]:Dn=r}function ke(){if(Dn){var r=Dn,o=nn;if(nn=Dn=null,te(r),o)for(r=0;r<o.length;r++)te(o[r])}}function kt(r,o){return r(o)}function St(){}var In=!1;function yn(r,o,l){if(In)return r(o,l);In=!0;try{return kt(r,o,l)}finally{In=!1,(Dn!==null||nn!==null)&&(St(),ke())}}function tt(r,o){var l=r.stateNode;if(l===null)return null;var c=us(l);if(c===null)return null;l=c[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,o,typeof l));return l}var $t=!1;if(h)try{var dt={};Object.defineProperty(dt,"passive",{get:function(){$t=!0}}),window.addEventListener("test",dt,dt),window.removeEventListener("test",dt,dt)}catch{$t=!1}function ym(r,o,l,c,d,y,_,E,j){var H=Array.prototype.slice.call(arguments,3);try{o.apply(l,H)}catch(G){this.onError(G)}}var ki=!1,Uo=null,Ho=!1,jl=null,vm={onError:function(r){ki=!0,Uo=r}};function xm(r,o,l,c,d,y,_,E,j){ki=!1,Uo=null,ym.apply(vm,arguments)}function _m(r,o,l,c,d,y,_,E,j){if(xm.apply(this,arguments),ki){if(ki){var H=Uo;ki=!1,Uo=null}else throw Error(i(198));Ho||(Ho=!0,jl=H)}}function ur(r){var o=r,l=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(l=o.return),r=o.return;while(r)}return o.tag===3?l:null}function Mc(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function jc(r){if(ur(r)!==r)throw Error(i(188))}function wm(r){var o=r.alternate;if(!o){if(o=ur(r),o===null)throw Error(i(188));return o!==r?null:r}for(var l=r,c=o;;){var d=l.return;if(d===null)break;var y=d.alternate;if(y===null){if(c=d.return,c!==null){l=c;continue}break}if(d.child===y.child){for(y=d.child;y;){if(y===l)return jc(d),r;if(y===c)return jc(d),o;y=y.sibling}throw Error(i(188))}if(l.return!==c.return)l=d,c=y;else{for(var _=!1,E=d.child;E;){if(E===l){_=!0,l=d,c=y;break}if(E===c){_=!0,c=d,l=y;break}E=E.sibling}if(!_){for(E=y.child;E;){if(E===l){_=!0,l=y,c=d;break}if(E===c){_=!0,c=y,l=d;break}E=E.sibling}if(!_)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:o}function Oc(r){return r=wm(r),r!==null?Rc(r):null}function Rc(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=Rc(r);if(o!==null)return o;r=r.sibling}return null}var Ac=n.unstable_scheduleCallback,zc=n.unstable_cancelCallback,km=n.unstable_shouldYield,Sm=n.unstable_requestPaint,He=n.unstable_now,bm=n.unstable_getCurrentPriorityLevel,Ol=n.unstable_ImmediatePriority,Dc=n.unstable_UserBlockingPriority,qo=n.unstable_NormalPriority,Cm=n.unstable_LowPriority,Ic=n.unstable_IdlePriority,Vo=null,rn=null;function Em(r){if(rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(Vo,r,void 0,(r.current.flags&128)===128)}catch{}}var Ut=Math.clz32?Math.clz32:Tm,Nm=Math.log,Pm=Math.LN2;function Tm(r){return r>>>=0,r===0?32:31-(Nm(r)/Pm|0)|0}var Qo=64,Bo=4194304;function Si(r){switch(r&-r){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: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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Wo(r,o){var l=r.pendingLanes;if(l===0)return 0;var c=0,d=r.suspendedLanes,y=r.pingedLanes,_=l&268435455;if(_!==0){var E=_&~d;E!==0?c=Si(E):(y&=_,y!==0&&(c=Si(y)))}else _=l&~d,_!==0?c=Si(_):y!==0&&(c=Si(y));if(c===0)return 0;if(o!==0&&o!==c&&(o&d)===0&&(d=c&-c,y=o&-o,d>=y||d===16&&(y&4194240)!==0))return o;if((c&4)!==0&&(c|=l&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=c;0<o;)l=31-Ut(o),d=1<<l,c|=r[l],o&=~d;return c}function Mm(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jm(r,o){for(var l=r.suspendedLanes,c=r.pingedLanes,d=r.expirationTimes,y=r.pendingLanes;0<y;){var _=31-Ut(y),E=1<<_,j=d[_];j===-1?((E&l)===0||(E&c)!==0)&&(d[_]=Mm(E,o)):j<=o&&(r.expiredLanes|=E),y&=~E}}function Rl(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Lc(){var r=Qo;return Qo<<=1,(Qo&4194240)===0&&(Qo=64),r}function Al(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function bi(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-Ut(o),r[o]=l}function Om(r,o){var l=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<l;){var d=31-Ut(l),y=1<<d;o[d]=0,c[d]=-1,r[d]=-1,l&=~y}}function zl(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var c=31-Ut(l),d=1<<c;d&o|r[c]&o&&(r[c]|=o),l&=~d}}var Te=0;function Fc(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var $c,Dl,Uc,Hc,qc,Il=!1,Ko=[],Ln=null,Fn=null,$n=null,Ci=new Map,Ei=new Map,Un=[],Rm="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 submit".split(" ");function Vc(r,o){switch(r){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":Ci.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ei.delete(o.pointerId)}}function Ni(r,o,l,c,d,y){return r===null||r.nativeEvent!==y?(r={blockedOn:o,domEventName:l,eventSystemFlags:c,nativeEvent:y,targetContainers:[d]},o!==null&&(o=Ui(o),o!==null&&Dl(o)),r):(r.eventSystemFlags|=c,o=r.targetContainers,d!==null&&o.indexOf(d)===-1&&o.push(d),r)}function Am(r,o,l,c,d){switch(o){case"focusin":return Ln=Ni(Ln,r,o,l,c,d),!0;case"dragenter":return Fn=Ni(Fn,r,o,l,c,d),!0;case"mouseover":return $n=Ni($n,r,o,l,c,d),!0;case"pointerover":var y=d.pointerId;return Ci.set(y,Ni(Ci.get(y)||null,r,o,l,c,d)),!0;case"gotpointercapture":return y=d.pointerId,Ei.set(y,Ni(Ei.get(y)||null,r,o,l,c,d)),!0}return!1}function Qc(r){var o=cr(r.target);if(o!==null){var l=ur(o);if(l!==null){if(o=l.tag,o===13){if(o=Mc(l),o!==null){r.blockedOn=o,qc(r.priority,function(){Uc(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Go(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=Fl(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);xi=c,l.target.dispatchEvent(c),xi=null}else return o=Ui(l),o!==null&&Dl(o),r.blockedOn=l,!1;o.shift()}return!0}function Bc(r,o,l){Go(r)&&l.delete(o)}function zm(){Il=!1,Ln!==null&&Go(Ln)&&(Ln=null),Fn!==null&&Go(Fn)&&(Fn=null),$n!==null&&Go($n)&&($n=null),Ci.forEach(Bc),Ei.forEach(Bc)}function Pi(r,o){r.blockedOn===o&&(r.blockedOn=null,Il||(Il=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,zm)))}function Ti(r){function o(d){return Pi(d,r)}if(0<Ko.length){Pi(Ko[0],r);for(var l=1;l<Ko.length;l++){var c=Ko[l];c.blockedOn===r&&(c.blockedOn=null)}}for(Ln!==null&&Pi(Ln,r),Fn!==null&&Pi(Fn,r),$n!==null&&Pi($n,r),Ci.forEach(o),Ei.forEach(o),l=0;l<Un.length;l++)c=Un[l],c.blockedOn===r&&(c.blockedOn=null);for(;0<Un.length&&(l=Un[0],l.blockedOn===null);)Qc(l),l.blockedOn===null&&Un.shift()}var Rr=P.ReactCurrentBatchConfig,Xo=!0;function Dm(r,o,l,c){var d=Te,y=Rr.transition;Rr.transition=null;try{Te=1,Ll(r,o,l,c)}finally{Te=d,Rr.transition=y}}function Im(r,o,l,c){var d=Te,y=Rr.transition;Rr.transition=null;try{Te=4,Ll(r,o,l,c)}finally{Te=d,Rr.transition=y}}function Ll(r,o,l,c){if(Xo){var d=Fl(r,o,l,c);if(d===null)na(r,o,c,Yo,l),Vc(r,c);else if(Am(d,r,o,l,c))c.stopPropagation();else if(Vc(r,c),o&4&&-1<Rm.indexOf(r)){for(;d!==null;){var y=Ui(d);if(y!==null&&$c(y),y=Fl(r,o,l,c),y===null&&na(r,o,c,Yo,l),y===d)break;d=y}d!==null&&c.stopPropagation()}else na(r,o,c,null,l)}}var Yo=null;function Fl(r,o,l,c){if(Yo=null,r=_i(c),r=cr(r),r!==null)if(o=ur(r),o===null)r=null;else if(l=o.tag,l===13){if(r=Mc(o),r!==null)return r;r=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return Yo=r,null}function Wc(r){switch(r){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bm()){case Ol:return 1;case Dc:return 4;case qo:case Cm:return 16;case Ic:return 536870912;default:return 16}default:return 16}}var Hn=null,$l=null,Zo=null;function Kc(){if(Zo)return Zo;var r,o=$l,l=o.length,c,d="value"in Hn?Hn.value:Hn.textContent,y=d.length;for(r=0;r<l&&o[r]===d[r];r++);var _=l-r;for(c=1;c<=_&&o[l-c]===d[y-c];c++);return Zo=d.slice(r,1<c?1-c:void 0)}function Jo(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function es(){return!0}function Gc(){return!1}function bt(r){function o(l,c,d,y,_){this._reactName=l,this._targetInst=d,this.type=c,this.nativeEvent=y,this.target=_,this.currentTarget=null;for(var E in r)r.hasOwnProperty(E)&&(l=r[E],this[E]=l?l(y):y[E]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?es:Gc,this.isPropagationStopped=Gc,this}return B(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=es)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=es)},persist:function(){},isPersistent:es}),o}var Ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ul=bt(Ar),Mi=B({},Ar,{view:0,detail:0}),Lm=bt(Mi),Hl,ql,ji,ts=B({},Mi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ql,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ji&&(ji&&r.type==="mousemove"?(Hl=r.screenX-ji.screenX,ql=r.screenY-ji.screenY):ql=Hl=0,ji=r),Hl)},movementY:function(r){return"movementY"in r?r.movementY:ql}}),Xc=bt(ts),Fm=B({},ts,{dataTransfer:0}),$m=bt(Fm),Um=B({},Mi,{relatedTarget:0}),Vl=bt(Um),Hm=B({},Ar,{animationName:0,elapsedTime:0,pseudoElement:0}),qm=bt(Hm),Vm=B({},Ar,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Qm=bt(Vm),Bm=B({},Ar,{data:0}),Yc=bt(Bm),Wm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Km={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"},Gm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xm(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=Gm[r])?!!o[r]:!1}function Ql(){return Xm}var Ym=B({},Mi,{key:function(r){if(r.key){var o=Wm[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Jo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Km[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ql,charCode:function(r){return r.type==="keypress"?Jo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Jo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Zm=bt(Ym),Jm=B({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zc=bt(Jm),e0=B({},Mi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ql}),t0=bt(e0),n0=B({},Ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),r0=bt(n0),i0=B({},ts,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),o0=bt(i0),s0=[9,13,27,32],Bl=h&&"CompositionEvent"in window,Oi=null;h&&"documentMode"in document&&(Oi=document.documentMode);var l0=h&&"TextEvent"in window&&!Oi,Jc=h&&(!Bl||Oi&&8<Oi&&11>=Oi),ef=" ",tf=!1;function nf(r,o){switch(r){case"keyup":return s0.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rf(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var zr=!1;function a0(r,o){switch(r){case"compositionend":return rf(o);case"keypress":return o.which!==32?null:(tf=!0,ef);case"textInput":return r=o.data,r===ef&&tf?null:r;default:return null}}function u0(r,o){if(zr)return r==="compositionend"||!Bl&&nf(r,o)?(r=Kc(),Zo=$l=Hn=null,zr=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Jc&&o.locale!=="ko"?null:o.data;default:return null}}var c0={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 of(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!c0[r.type]:o==="textarea"}function sf(r,o,l,c){_e(c),o=ss(o,"onChange"),0<o.length&&(l=new Ul("onChange","change",null,l,c),r.push({event:l,listeners:o}))}var Ri=null,Ai=null;function f0(r){bf(r,0)}function ns(r){var o=$r(r);if(ci(o))return r}function h0(r,o){if(r==="change")return o}var lf=!1;if(h){var Wl;if(h){var Kl="oninput"in document;if(!Kl){var af=document.createElement("div");af.setAttribute("oninput","return;"),Kl=typeof af.oninput=="function"}Wl=Kl}else Wl=!1;lf=Wl&&(!document.documentMode||9<document.documentMode)}function uf(){Ri&&(Ri.detachEvent("onpropertychange",cf),Ai=Ri=null)}function cf(r){if(r.propertyName==="value"&&ns(Ai)){var o=[];sf(o,Ai,r,_i(r)),yn(f0,o)}}function d0(r,o,l){r==="focusin"?(uf(),Ri=o,Ai=l,Ri.attachEvent("onpropertychange",cf)):r==="focusout"&&uf()}function p0(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ns(Ai)}function g0(r,o){if(r==="click")return ns(o)}function m0(r,o){if(r==="input"||r==="change")return ns(o)}function y0(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Ht=typeof Object.is=="function"?Object.is:y0;function zi(r,o){if(Ht(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var l=Object.keys(r),c=Object.keys(o);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var d=l[c];if(!p.call(o,d)||!Ht(r[d],o[d]))return!1}return!0}function ff(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function hf(r,o){var l=ff(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=o&&c>=o)return{node:l,offset:o-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ff(l)}}function df(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?df(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function pf(){for(var r=window,o=lr();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=lr(r.document)}return o}function Gl(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function v0(r){var o=pf(),l=r.focusedElem,c=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&df(l.ownerDocument.documentElement,l)){if(c!==null&&Gl(l)){if(o=c.start,r=c.end,r===void 0&&(r=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(r,l.value.length);else if(r=(o=l.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var d=l.textContent.length,y=Math.min(c.start,d);c=c.end===void 0?y:Math.min(c.end,d),!r.extend&&y>c&&(d=c,c=y,y=d),d=hf(l,y);var _=hf(l,c);d&&_&&(r.rangeCount!==1||r.anchorNode!==d.node||r.anchorOffset!==d.offset||r.focusNode!==_.node||r.focusOffset!==_.offset)&&(o=o.createRange(),o.setStart(d.node,d.offset),r.removeAllRanges(),y>c?(r.addRange(o),r.extend(_.node,_.offset)):(o.setEnd(_.node,_.offset),r.addRange(o)))}}for(o=[],r=l;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)r=o[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var x0=h&&"documentMode"in document&&11>=document.documentMode,Dr=null,Xl=null,Di=null,Yl=!1;function gf(r,o,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Yl||Dr==null||Dr!==lr(c)||(c=Dr,"selectionStart"in c&&Gl(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Di&&zi(Di,c)||(Di=c,c=ss(Xl,"onSelect"),0<c.length&&(o=new Ul("onSelect","select",null,o,l),r.push({event:o,listeners:c}),o.target=Dr)))}function rs(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var Ir={animationend:rs("Animation","AnimationEnd"),animationiteration:rs("Animation","AnimationIteration"),animationstart:rs("Animation","AnimationStart"),transitionend:rs("Transition","TransitionEnd")},Zl={},mf={};h&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),"TransitionEvent"in window||delete Ir.transitionend.transition);function is(r){if(Zl[r])return Zl[r];if(!Ir[r])return r;var o=Ir[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in mf)return Zl[r]=o[l];return r}var yf=is("animationend"),vf=is("animationiteration"),xf=is("animationstart"),_f=is("transitionend"),wf=new Map,kf="abort auxClick 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(" ");function qn(r,o){wf.set(r,o),u(o,[r])}for(var Jl=0;Jl<kf.length;Jl++){var ea=kf[Jl],_0=ea.toLowerCase(),w0=ea[0].toUpperCase()+ea.slice(1);qn(_0,"on"+w0)}qn(yf,"onAnimationEnd"),qn(vf,"onAnimationIteration"),qn(xf,"onAnimationStart"),qn("dblclick","onDoubleClick"),qn("focusin","onFocus"),qn("focusout","onBlur"),qn(_f,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ii="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(" "),k0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ii));function Sf(r,o,l){var c=r.type||"unknown-event";r.currentTarget=l,_m(c,o,void 0,r),r.currentTarget=null}function bf(r,o){o=(o&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],d=c.event;c=c.listeners;e:{var y=void 0;if(o)for(var _=c.length-1;0<=_;_--){var E=c[_],j=E.instance,H=E.currentTarget;if(E=E.listener,j!==y&&d.isPropagationStopped())break e;Sf(d,E,H),y=j}else for(_=0;_<c.length;_++){if(E=c[_],j=E.instance,H=E.currentTarget,E=E.listener,j!==y&&d.isPropagationStopped())break e;Sf(d,E,H),y=j}}}if(Ho)throw r=jl,Ho=!1,jl=null,r}function Re(r,o){var l=o[aa];l===void 0&&(l=o[aa]=new Set);var c=r+"__bubble";l.has(c)||(Cf(o,r,2,!1),l.add(c))}function ta(r,o,l){var c=0;o&&(c|=4),Cf(l,r,c,o)}var os="_reactListening"+Math.random().toString(36).slice(2);function Li(r){if(!r[os]){r[os]=!0,s.forEach(function(l){l!=="selectionchange"&&(k0.has(l)||ta(l,!1,r),ta(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[os]||(o[os]=!0,ta("selectionchange",!1,o))}}function Cf(r,o,l,c){switch(Wc(o)){case 1:var d=Dm;break;case 4:d=Im;break;default:d=Ll}l=d.bind(null,o,l,r),d=void 0,!$t||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(d=!0),c?d!==void 0?r.addEventListener(o,l,{capture:!0,passive:d}):r.addEventListener(o,l,!0):d!==void 0?r.addEventListener(o,l,{passive:d}):r.addEventListener(o,l,!1)}function na(r,o,l,c,d){var y=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var E=c.stateNode.containerInfo;if(E===d||E.nodeType===8&&E.parentNode===d)break;if(_===4)for(_=c.return;_!==null;){var j=_.tag;if((j===3||j===4)&&(j=_.stateNode.containerInfo,j===d||j.nodeType===8&&j.parentNode===d))return;_=_.return}for(;E!==null;){if(_=cr(E),_===null)return;if(j=_.tag,j===5||j===6){c=y=_;continue e}E=E.parentNode}}c=c.return}yn(function(){var H=y,G=_i(l),J=[];e:{var K=wf.get(r);if(K!==void 0){var le=Ul,ce=r;switch(r){case"keypress":if(Jo(l)===0)break e;case"keydown":case"keyup":le=Zm;break;case"focusin":ce="focus",le=Vl;break;case"focusout":ce="blur",le=Vl;break;case"beforeblur":case"afterblur":le=Vl;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=Xc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=$m;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=t0;break;case yf:case vf:case xf:le=qm;break;case _f:le=r0;break;case"scroll":le=Lm;break;case"wheel":le=o0;break;case"copy":case"cut":case"paste":le=Qm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Zc}var he=(o&4)!==0,qe=!he&&r==="scroll",$=he?K!==null?K+"Capture":null:K;he=[];for(var R=H,U;R!==null;){U=R;var re=U.stateNode;if(U.tag===5&&re!==null&&(U=re,$!==null&&(re=tt(R,$),re!=null&&he.push(Fi(R,re,U)))),qe)break;R=R.return}0<he.length&&(K=new le(K,ce,null,l,G),J.push({event:K,listeners:he}))}}if((o&7)===0){e:{if(K=r==="mouseover"||r==="pointerover",le=r==="mouseout"||r==="pointerout",K&&l!==xi&&(ce=l.relatedTarget||l.fromElement)&&(cr(ce)||ce[vn]))break e;if((le||K)&&(K=G.window===G?G:(K=G.ownerDocument)?K.defaultView||K.parentWindow:window,le?(ce=l.relatedTarget||l.toElement,le=H,ce=ce?cr(ce):null,ce!==null&&(qe=ur(ce),ce!==qe||ce.tag!==5&&ce.tag!==6)&&(ce=null)):(le=null,ce=H),le!==ce)){if(he=Xc,re="onMouseLeave",$="onMouseEnter",R="mouse",(r==="pointerout"||r==="pointerover")&&(he=Zc,re="onPointerLeave",$="onPointerEnter",R="pointer"),qe=le==null?K:$r(le),U=ce==null?K:$r(ce),K=new he(re,R+"leave",le,l,G),K.target=qe,K.relatedTarget=U,re=null,cr(G)===H&&(he=new he($,R+"enter",ce,l,G),he.target=U,he.relatedTarget=qe,re=he),qe=re,le&&ce)t:{for(he=le,$=ce,R=0,U=he;U;U=Lr(U))R++;for(U=0,re=$;re;re=Lr(re))U++;for(;0<R-U;)he=Lr(he),R--;for(;0<U-R;)$=Lr($),U--;for(;R--;){if(he===$||$!==null&&he===$.alternate)break t;he=Lr(he),$=Lr($)}he=null}else he=null;le!==null&&Ef(J,K,le,he,!1),ce!==null&&qe!==null&&Ef(J,qe,ce,he,!0)}}e:{if(K=H?$r(H):window,le=K.nodeName&&K.nodeName.toLowerCase(),le==="select"||le==="input"&&K.type==="file")var pe=h0;else if(of(K))if(lf)pe=m0;else{pe=p0;var me=d0}else(le=K.nodeName)&&le.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(pe=g0);if(pe&&(pe=pe(r,H))){sf(J,pe,l,G);break e}me&&me(r,K,H),r==="focusout"&&(me=K._wrapperState)&&me.controlled&&K.type==="number"&&en(K,"number",K.value)}switch(me=H?$r(H):window,r){case"focusin":(of(me)||me.contentEditable==="true")&&(Dr=me,Xl=H,Di=null);break;case"focusout":Di=Xl=Dr=null;break;case"mousedown":Yl=!0;break;case"contextmenu":case"mouseup":case"dragend":Yl=!1,gf(J,l,G);break;case"selectionchange":if(x0)break;case"keydown":case"keyup":gf(J,l,G)}var ye;if(Bl)e:{switch(r){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else zr?nf(r,l)&&(we="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(we="onCompositionStart");we&&(Jc&&l.locale!=="ko"&&(zr||we!=="onCompositionStart"?we==="onCompositionEnd"&&zr&&(ye=Kc()):(Hn=G,$l="value"in Hn?Hn.value:Hn.textContent,zr=!0)),me=ss(H,we),0<me.length&&(we=new Yc(we,r,null,l,G),J.push({event:we,listeners:me}),ye?we.data=ye:(ye=rf(l),ye!==null&&(we.data=ye)))),(ye=l0?a0(r,l):u0(r,l))&&(H=ss(H,"onBeforeInput"),0<H.length&&(G=new Yc("onBeforeInput","beforeinput",null,l,G),J.push({event:G,listeners:H}),G.data=ye))}bf(J,o)})}function Fi(r,o,l){return{instance:r,listener:o,currentTarget:l}}function ss(r,o){for(var l=o+"Capture",c=[];r!==null;){var d=r,y=d.stateNode;d.tag===5&&y!==null&&(d=y,y=tt(r,l),y!=null&&c.unshift(Fi(r,y,d)),y=tt(r,o),y!=null&&c.push(Fi(r,y,d))),r=r.return}return c}function Lr(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Ef(r,o,l,c,d){for(var y=o._reactName,_=[];l!==null&&l!==c;){var E=l,j=E.alternate,H=E.stateNode;if(j!==null&&j===c)break;E.tag===5&&H!==null&&(E=H,d?(j=tt(l,y),j!=null&&_.unshift(Fi(l,j,E))):d||(j=tt(l,y),j!=null&&_.push(Fi(l,j,E)))),l=l.return}_.length!==0&&r.push({event:o,listeners:_})}var S0=/\r\n?/g,b0=/\u0000|\uFFFD/g;function Nf(r){return(typeof r=="string"?r:""+r).replace(S0,`
38
- `).replace(b0,"")}function ls(r,o,l){if(o=Nf(o),Nf(r)!==o&&l)throw Error(i(425))}function as(){}var ra=null,ia=null;function oa(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var sa=typeof setTimeout=="function"?setTimeout:void 0,C0=typeof clearTimeout=="function"?clearTimeout:void 0,Pf=typeof Promise=="function"?Promise:void 0,E0=typeof queueMicrotask=="function"?queueMicrotask:typeof Pf<"u"?function(r){return Pf.resolve(null).then(r).catch(N0)}:sa;function N0(r){setTimeout(function(){throw r})}function la(r,o){var l=o,c=0;do{var d=l.nextSibling;if(r.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(c===0){r.removeChild(d),Ti(o);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=d}while(l);Ti(o)}function Vn(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function Tf(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return r;o--}else l==="/$"&&o++}r=r.previousSibling}return null}var Fr=Math.random().toString(36).slice(2),on="__reactFiber$"+Fr,$i="__reactProps$"+Fr,vn="__reactContainer$"+Fr,aa="__reactEvents$"+Fr,P0="__reactListeners$"+Fr,T0="__reactHandles$"+Fr;function cr(r){var o=r[on];if(o)return o;for(var l=r.parentNode;l;){if(o=l[vn]||l[on]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=Tf(r);r!==null;){if(l=r[on])return l;r=Tf(r)}return o}r=l,l=r.parentNode}return null}function Ui(r){return r=r[on]||r[vn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function $r(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(i(33))}function us(r){return r[$i]||null}var ua=[],Ur=-1;function Qn(r){return{current:r}}function Ae(r){0>Ur||(r.current=ua[Ur],ua[Ur]=null,Ur--)}function Oe(r,o){Ur++,ua[Ur]=r.current,r.current=o}var Bn={},nt=Qn(Bn),pt=Qn(!1),fr=Bn;function Hr(r,o){var l=r.type.contextTypes;if(!l)return Bn;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var d={},y;for(y in l)d[y]=o[y];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=d),d}function gt(r){return r=r.childContextTypes,r!=null}function cs(){Ae(pt),Ae(nt)}function Mf(r,o,l){if(nt.current!==Bn)throw Error(i(168));Oe(nt,o),Oe(pt,l)}function jf(r,o,l){var c=r.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return l;c=c.getChildContext();for(var d in c)if(!(d in o))throw Error(i(108,Se(r)||"Unknown",d));return B({},l,c)}function fs(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Bn,fr=nt.current,Oe(nt,r),Oe(pt,pt.current),!0}function Of(r,o,l){var c=r.stateNode;if(!c)throw Error(i(169));l?(r=jf(r,o,fr),c.__reactInternalMemoizedMergedChildContext=r,Ae(pt),Ae(nt),Oe(nt,r)):Ae(pt),Oe(pt,l)}var xn=null,hs=!1,ca=!1;function Rf(r){xn===null?xn=[r]:xn.push(r)}function M0(r){hs=!0,Rf(r)}function Wn(){if(!ca&&xn!==null){ca=!0;var r=0,o=Te;try{var l=xn;for(Te=1;r<l.length;r++){var c=l[r];do c=c(!0);while(c!==null)}xn=null,hs=!1}catch(d){throw xn!==null&&(xn=xn.slice(r+1)),Ac(Ol,Wn),d}finally{Te=o,ca=!1}}return null}var qr=[],Vr=0,ds=null,ps=0,Mt=[],jt=0,hr=null,_n=1,wn="";function dr(r,o){qr[Vr++]=ps,qr[Vr++]=ds,ds=r,ps=o}function Af(r,o,l){Mt[jt++]=_n,Mt[jt++]=wn,Mt[jt++]=hr,hr=r;var c=_n;r=wn;var d=32-Ut(c)-1;c&=~(1<<d),l+=1;var y=32-Ut(o)+d;if(30<y){var _=d-d%5;y=(c&(1<<_)-1).toString(32),c>>=_,d-=_,_n=1<<32-Ut(o)+d|l<<d|c,wn=y+r}else _n=1<<y|l<<d|c,wn=r}function fa(r){r.return!==null&&(dr(r,1),Af(r,1,0))}function ha(r){for(;r===ds;)ds=qr[--Vr],qr[Vr]=null,ps=qr[--Vr],qr[Vr]=null;for(;r===hr;)hr=Mt[--jt],Mt[jt]=null,wn=Mt[--jt],Mt[jt]=null,_n=Mt[--jt],Mt[jt]=null}var Ct=null,Et=null,De=!1,qt=null;function zf(r,o){var l=zt(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=r,o=r.deletions,o===null?(r.deletions=[l],r.flags|=16):o.push(l)}function Df(r,o){switch(r.tag){case 5:var l=r.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,Ct=r,Et=Vn(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,Ct=r,Et=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=hr!==null?{id:_n,overflow:wn}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=zt(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,Ct=r,Et=null,!0):!1;default:return!1}}function da(r){return(r.mode&1)!==0&&(r.flags&128)===0}function pa(r){if(De){var o=Et;if(o){var l=o;if(!Df(r,o)){if(da(r))throw Error(i(418));o=Vn(l.nextSibling);var c=Ct;o&&Df(r,o)?zf(c,l):(r.flags=r.flags&-4097|2,De=!1,Ct=r)}}else{if(da(r))throw Error(i(418));r.flags=r.flags&-4097|2,De=!1,Ct=r}}}function If(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Ct=r}function gs(r){if(r!==Ct)return!1;if(!De)return If(r),De=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!oa(r.type,r.memoizedProps)),o&&(o=Et)){if(da(r))throw Lf(),Error(i(418));for(;o;)zf(r,o),o=Vn(o.nextSibling)}if(If(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(o===0){Et=Vn(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}Et=null}}else Et=Ct?Vn(r.stateNode.nextSibling):null;return!0}function Lf(){for(var r=Et;r;)r=Vn(r.nextSibling)}function Qr(){Et=Ct=null,De=!1}function ga(r){qt===null?qt=[r]:qt.push(r)}var j0=P.ReactCurrentBatchConfig;function Hi(r,o,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var c=l.stateNode}if(!c)throw Error(i(147,r));var d=c,y=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===y?o.ref:(o=function(_){var E=d.refs;_===null?delete E[y]:E[y]=_},o._stringRef=y,o)}if(typeof r!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,r))}return r}function ms(r,o){throw r=Object.prototype.toString.call(o),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Ff(r){var o=r._init;return o(r._payload)}function $f(r){function o($,R){if(r){var U=$.deletions;U===null?($.deletions=[R],$.flags|=16):U.push(R)}}function l($,R){if(!r)return null;for(;R!==null;)o($,R),R=R.sibling;return null}function c($,R){for($=new Map;R!==null;)R.key!==null?$.set(R.key,R):$.set(R.index,R),R=R.sibling;return $}function d($,R){return $=tr($,R),$.index=0,$.sibling=null,$}function y($,R,U){return $.index=U,r?(U=$.alternate,U!==null?(U=U.index,U<R?($.flags|=2,R):U):($.flags|=2,R)):($.flags|=1048576,R)}function _($){return r&&$.alternate===null&&($.flags|=2),$}function E($,R,U,re){return R===null||R.tag!==6?(R=su(U,$.mode,re),R.return=$,R):(R=d(R,U),R.return=$,R)}function j($,R,U,re){var pe=U.type;return pe===A?G($,R,U.props.children,re,U.key):R!==null&&(R.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Q&&Ff(pe)===R.type)?(re=d(R,U.props),re.ref=Hi($,R,U),re.return=$,re):(re=$s(U.type,U.key,U.props,null,$.mode,re),re.ref=Hi($,R,U),re.return=$,re)}function H($,R,U,re){return R===null||R.tag!==4||R.stateNode.containerInfo!==U.containerInfo||R.stateNode.implementation!==U.implementation?(R=lu(U,$.mode,re),R.return=$,R):(R=d(R,U.children||[]),R.return=$,R)}function G($,R,U,re,pe){return R===null||R.tag!==7?(R=wr(U,$.mode,re,pe),R.return=$,R):(R=d(R,U),R.return=$,R)}function J($,R,U){if(typeof R=="string"&&R!==""||typeof R=="number")return R=su(""+R,$.mode,U),R.return=$,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case T:return U=$s(R.type,R.key,R.props,null,$.mode,U),U.ref=Hi($,null,R),U.return=$,U;case z:return R=lu(R,$.mode,U),R.return=$,R;case Q:var re=R._init;return J($,re(R._payload),U)}if(tn(R)||Y(R))return R=wr(R,$.mode,U,null),R.return=$,R;ms($,R)}return null}function K($,R,U,re){var pe=R!==null?R.key:null;if(typeof U=="string"&&U!==""||typeof U=="number")return pe!==null?null:E($,R,""+U,re);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case T:return U.key===pe?j($,R,U,re):null;case z:return U.key===pe?H($,R,U,re):null;case Q:return pe=U._init,K($,R,pe(U._payload),re)}if(tn(U)||Y(U))return pe!==null?null:G($,R,U,re,null);ms($,U)}return null}function le($,R,U,re,pe){if(typeof re=="string"&&re!==""||typeof re=="number")return $=$.get(U)||null,E(R,$,""+re,pe);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case T:return $=$.get(re.key===null?U:re.key)||null,j(R,$,re,pe);case z:return $=$.get(re.key===null?U:re.key)||null,H(R,$,re,pe);case Q:var me=re._init;return le($,R,U,me(re._payload),pe)}if(tn(re)||Y(re))return $=$.get(U)||null,G(R,$,re,pe,null);ms(R,re)}return null}function ce($,R,U,re){for(var pe=null,me=null,ye=R,we=R=0,Ye=null;ye!==null&&we<U.length;we++){ye.index>we?(Ye=ye,ye=null):Ye=ye.sibling;var Ne=K($,ye,U[we],re);if(Ne===null){ye===null&&(ye=Ye);break}r&&ye&&Ne.alternate===null&&o($,ye),R=y(Ne,R,we),me===null?pe=Ne:me.sibling=Ne,me=Ne,ye=Ye}if(we===U.length)return l($,ye),De&&dr($,we),pe;if(ye===null){for(;we<U.length;we++)ye=J($,U[we],re),ye!==null&&(R=y(ye,R,we),me===null?pe=ye:me.sibling=ye,me=ye);return De&&dr($,we),pe}for(ye=c($,ye);we<U.length;we++)Ye=le(ye,$,we,U[we],re),Ye!==null&&(r&&Ye.alternate!==null&&ye.delete(Ye.key===null?we:Ye.key),R=y(Ye,R,we),me===null?pe=Ye:me.sibling=Ye,me=Ye);return r&&ye.forEach(function(nr){return o($,nr)}),De&&dr($,we),pe}function he($,R,U,re){var pe=Y(U);if(typeof pe!="function")throw Error(i(150));if(U=pe.call(U),U==null)throw Error(i(151));for(var me=pe=null,ye=R,we=R=0,Ye=null,Ne=U.next();ye!==null&&!Ne.done;we++,Ne=U.next()){ye.index>we?(Ye=ye,ye=null):Ye=ye.sibling;var nr=K($,ye,Ne.value,re);if(nr===null){ye===null&&(ye=Ye);break}r&&ye&&nr.alternate===null&&o($,ye),R=y(nr,R,we),me===null?pe=nr:me.sibling=nr,me=nr,ye=Ye}if(Ne.done)return l($,ye),De&&dr($,we),pe;if(ye===null){for(;!Ne.done;we++,Ne=U.next())Ne=J($,Ne.value,re),Ne!==null&&(R=y(Ne,R,we),me===null?pe=Ne:me.sibling=Ne,me=Ne);return De&&dr($,we),pe}for(ye=c($,ye);!Ne.done;we++,Ne=U.next())Ne=le(ye,$,we,Ne.value,re),Ne!==null&&(r&&Ne.alternate!==null&&ye.delete(Ne.key===null?we:Ne.key),R=y(Ne,R,we),me===null?pe=Ne:me.sibling=Ne,me=Ne);return r&&ye.forEach(function(cy){return o($,cy)}),De&&dr($,we),pe}function qe($,R,U,re){if(typeof U=="object"&&U!==null&&U.type===A&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case T:e:{for(var pe=U.key,me=R;me!==null;){if(me.key===pe){if(pe=U.type,pe===A){if(me.tag===7){l($,me.sibling),R=d(me,U.props.children),R.return=$,$=R;break e}}else if(me.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Q&&Ff(pe)===me.type){l($,me.sibling),R=d(me,U.props),R.ref=Hi($,me,U),R.return=$,$=R;break e}l($,me);break}else o($,me);me=me.sibling}U.type===A?(R=wr(U.props.children,$.mode,re,U.key),R.return=$,$=R):(re=$s(U.type,U.key,U.props,null,$.mode,re),re.ref=Hi($,R,U),re.return=$,$=re)}return _($);case z:e:{for(me=U.key;R!==null;){if(R.key===me)if(R.tag===4&&R.stateNode.containerInfo===U.containerInfo&&R.stateNode.implementation===U.implementation){l($,R.sibling),R=d(R,U.children||[]),R.return=$,$=R;break e}else{l($,R);break}else o($,R);R=R.sibling}R=lu(U,$.mode,re),R.return=$,$=R}return _($);case Q:return me=U._init,qe($,R,me(U._payload),re)}if(tn(U))return ce($,R,U,re);if(Y(U))return he($,R,U,re);ms($,U)}return typeof U=="string"&&U!==""||typeof U=="number"?(U=""+U,R!==null&&R.tag===6?(l($,R.sibling),R=d(R,U),R.return=$,$=R):(l($,R),R=su(U,$.mode,re),R.return=$,$=R),_($)):l($,R)}return qe}var Br=$f(!0),Uf=$f(!1),ys=Qn(null),vs=null,Wr=null,ma=null;function ya(){ma=Wr=vs=null}function va(r){var o=ys.current;Ae(ys),r._currentValue=o}function xa(r,o,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),r===l)break;r=r.return}}function Kr(r,o){vs=r,ma=Wr=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(mt=!0),r.firstContext=null)}function Ot(r){var o=r._currentValue;if(ma!==r)if(r={context:r,memoizedValue:o,next:null},Wr===null){if(vs===null)throw Error(i(308));Wr=r,vs.dependencies={lanes:0,firstContext:r}}else Wr=Wr.next=r;return o}var pr=null;function _a(r){pr===null?pr=[r]:pr.push(r)}function Hf(r,o,l,c){var d=o.interleaved;return d===null?(l.next=l,_a(o)):(l.next=d.next,d.next=l),o.interleaved=l,kn(r,c)}function kn(r,o){r.lanes|=o;var l=r.alternate;for(l!==null&&(l.lanes|=o),l=r,r=r.return;r!==null;)r.childLanes|=o,l=r.alternate,l!==null&&(l.childLanes|=o),l=r,r=r.return;return l.tag===3?l.stateNode:null}var Kn=!1;function wa(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qf(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Sn(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function Gn(r,o,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Ee&2)!==0){var d=c.pending;return d===null?o.next=o:(o.next=d.next,d.next=o),c.pending=o,kn(r,l)}return d=c.interleaved,d===null?(o.next=o,_a(c)):(o.next=d.next,d.next=o),c.interleaved=o,kn(r,l)}function xs(r,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,zl(r,l)}}function Vf(r,o){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var d=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var _={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?d=y=_:y=y.next=_,l=l.next}while(l!==null);y===null?d=y=o:y=y.next=o}else d=y=o;l={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:y,shared:c.shared,effects:c.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=o:r.next=o,l.lastBaseUpdate=o}function _s(r,o,l,c){var d=r.updateQueue;Kn=!1;var y=d.firstBaseUpdate,_=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var j=E,H=j.next;j.next=null,_===null?y=H:_.next=H,_=j;var G=r.alternate;G!==null&&(G=G.updateQueue,E=G.lastBaseUpdate,E!==_&&(E===null?G.firstBaseUpdate=H:E.next=H,G.lastBaseUpdate=j))}if(y!==null){var J=d.baseState;_=0,G=H=j=null,E=y;do{var K=E.lane,le=E.eventTime;if((c&K)===K){G!==null&&(G=G.next={eventTime:le,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var ce=r,he=E;switch(K=o,le=l,he.tag){case 1:if(ce=he.payload,typeof ce=="function"){J=ce.call(le,J,K);break e}J=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=he.payload,K=typeof ce=="function"?ce.call(le,J,K):ce,K==null)break e;J=B({},J,K);break e;case 2:Kn=!0}}E.callback!==null&&E.lane!==0&&(r.flags|=64,K=d.effects,K===null?d.effects=[E]:K.push(E))}else le={eventTime:le,lane:K,tag:E.tag,payload:E.payload,callback:E.callback,next:null},G===null?(H=G=le,j=J):G=G.next=le,_|=K;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;K=E,E=K.next,K.next=null,d.lastBaseUpdate=K,d.shared.pending=null}}while(!0);if(G===null&&(j=J),d.baseState=j,d.firstBaseUpdate=H,d.lastBaseUpdate=G,o=d.shared.interleaved,o!==null){d=o;do _|=d.lane,d=d.next;while(d!==o)}else y===null&&(d.shared.lanes=0);yr|=_,r.lanes=_,r.memoizedState=J}}function Qf(r,o,l){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var c=r[o],d=c.callback;if(d!==null){if(c.callback=null,c=l,typeof d!="function")throw Error(i(191,d));d.call(c)}}}var qi={},sn=Qn(qi),Vi=Qn(qi),Qi=Qn(qi);function gr(r){if(r===qi)throw Error(i(174));return r}function ka(r,o){switch(Oe(Qi,o),Oe(Vi,r),Oe(sn,qi),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:gi(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=gi(o,r)}Ae(sn),Oe(sn,o)}function Gr(){Ae(sn),Ae(Vi),Ae(Qi)}function Bf(r){gr(Qi.current);var o=gr(sn.current),l=gi(o,r.type);o!==l&&(Oe(Vi,r),Oe(sn,l))}function Sa(r){Vi.current===r&&(Ae(sn),Ae(Vi))}var Fe=Qn(0);function ws(r){for(var o=r;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ba=[];function Ca(){for(var r=0;r<ba.length;r++)ba[r]._workInProgressVersionPrimary=null;ba.length=0}var ks=P.ReactCurrentDispatcher,Ea=P.ReactCurrentBatchConfig,mr=0,$e=null,Be=null,Ge=null,Ss=!1,Bi=!1,Wi=0,O0=0;function rt(){throw Error(i(321))}function Na(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!Ht(r[l],o[l]))return!1;return!0}function Pa(r,o,l,c,d,y){if(mr=y,$e=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ks.current=r===null||r.memoizedState===null?D0:I0,r=l(c,d),Bi){y=0;do{if(Bi=!1,Wi=0,25<=y)throw Error(i(301));y+=1,Ge=Be=null,o.updateQueue=null,ks.current=L0,r=l(c,d)}while(Bi)}if(ks.current=Es,o=Be!==null&&Be.next!==null,mr=0,Ge=Be=$e=null,Ss=!1,o)throw Error(i(300));return r}function Ta(){var r=Wi!==0;return Wi=0,r}function ln(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?$e.memoizedState=Ge=r:Ge=Ge.next=r,Ge}function Rt(){if(Be===null){var r=$e.alternate;r=r!==null?r.memoizedState:null}else r=Be.next;var o=Ge===null?$e.memoizedState:Ge.next;if(o!==null)Ge=o,Be=r;else{if(r===null)throw Error(i(310));Be=r,r={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Ge===null?$e.memoizedState=Ge=r:Ge=Ge.next=r}return Ge}function Ki(r,o){return typeof o=="function"?o(r):o}function Ma(r){var o=Rt(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=Be,d=c.baseQueue,y=l.pending;if(y!==null){if(d!==null){var _=d.next;d.next=y.next,y.next=_}c.baseQueue=d=y,l.pending=null}if(d!==null){y=d.next,c=c.baseState;var E=_=null,j=null,H=y;do{var G=H.lane;if((mr&G)===G)j!==null&&(j=j.next={lane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),c=H.hasEagerState?H.eagerState:r(c,H.action);else{var J={lane:G,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null};j===null?(E=j=J,_=c):j=j.next=J,$e.lanes|=G,yr|=G}H=H.next}while(H!==null&&H!==y);j===null?_=c:j.next=E,Ht(c,o.memoizedState)||(mt=!0),o.memoizedState=c,o.baseState=_,o.baseQueue=j,l.lastRenderedState=c}if(r=l.interleaved,r!==null){d=r;do y=d.lane,$e.lanes|=y,yr|=y,d=d.next;while(d!==r)}else d===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function ja(r){var o=Rt(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=l.dispatch,d=l.pending,y=o.memoizedState;if(d!==null){l.pending=null;var _=d=d.next;do y=r(y,_.action),_=_.next;while(_!==d);Ht(y,o.memoizedState)||(mt=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),l.lastRenderedState=y}return[y,c]}function Wf(){}function Kf(r,o){var l=$e,c=Rt(),d=o(),y=!Ht(c.memoizedState,d);if(y&&(c.memoizedState=d,mt=!0),c=c.queue,Oa(Yf.bind(null,l,c,r),[r]),c.getSnapshot!==o||y||Ge!==null&&Ge.memoizedState.tag&1){if(l.flags|=2048,Gi(9,Xf.bind(null,l,c,d,o),void 0,null),Xe===null)throw Error(i(349));(mr&30)!==0||Gf(l,o,d)}return d}function Gf(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=$e.updateQueue,o===null?(o={lastEffect:null,stores:null},$e.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function Xf(r,o,l,c){o.value=l,o.getSnapshot=c,Zf(o)&&Jf(r)}function Yf(r,o,l){return l(function(){Zf(o)&&Jf(r)})}function Zf(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!Ht(r,l)}catch{return!0}}function Jf(r){var o=kn(r,1);o!==null&&Wt(o,r,1,-1)}function eh(r){var o=ln();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:r},o.queue=r,r=r.dispatch=z0.bind(null,$e,r),[o.memoizedState,r]}function Gi(r,o,l,c){return r={tag:r,create:o,destroy:l,deps:c,next:null},o=$e.updateQueue,o===null?(o={lastEffect:null,stores:null},$e.updateQueue=o,o.lastEffect=r.next=r):(l=o.lastEffect,l===null?o.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,o.lastEffect=r)),r}function th(){return Rt().memoizedState}function bs(r,o,l,c){var d=ln();$e.flags|=r,d.memoizedState=Gi(1|o,l,void 0,c===void 0?null:c)}function Cs(r,o,l,c){var d=Rt();c=c===void 0?null:c;var y=void 0;if(Be!==null){var _=Be.memoizedState;if(y=_.destroy,c!==null&&Na(c,_.deps)){d.memoizedState=Gi(o,l,y,c);return}}$e.flags|=r,d.memoizedState=Gi(1|o,l,y,c)}function nh(r,o){return bs(8390656,8,r,o)}function Oa(r,o){return Cs(2048,8,r,o)}function rh(r,o){return Cs(4,2,r,o)}function ih(r,o){return Cs(4,4,r,o)}function oh(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function sh(r,o,l){return l=l!=null?l.concat([r]):null,Cs(4,4,oh.bind(null,o,r),l)}function Ra(){}function lh(r,o){var l=Rt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&Na(o,c[1])?c[0]:(l.memoizedState=[r,o],r)}function ah(r,o){var l=Rt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&Na(o,c[1])?c[0]:(r=r(),l.memoizedState=[r,o],r)}function uh(r,o,l){return(mr&21)===0?(r.baseState&&(r.baseState=!1,mt=!0),r.memoizedState=l):(Ht(l,o)||(l=Lc(),$e.lanes|=l,yr|=l,r.baseState=!0),o)}function R0(r,o){var l=Te;Te=l!==0&&4>l?l:4,r(!0);var c=Ea.transition;Ea.transition={};try{r(!1),o()}finally{Te=l,Ea.transition=c}}function ch(){return Rt().memoizedState}function A0(r,o,l){var c=Jn(r);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},fh(r))hh(o,l);else if(l=Hf(r,o,l,c),l!==null){var d=ut();Wt(l,r,c,d),dh(l,o,c)}}function z0(r,o,l){var c=Jn(r),d={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(fh(r))hh(o,d);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var _=o.lastRenderedState,E=y(_,l);if(d.hasEagerState=!0,d.eagerState=E,Ht(E,_)){var j=o.interleaved;j===null?(d.next=d,_a(o)):(d.next=j.next,j.next=d),o.interleaved=d;return}}catch{}finally{}l=Hf(r,o,d,c),l!==null&&(d=ut(),Wt(l,r,c,d),dh(l,o,c))}}function fh(r){var o=r.alternate;return r===$e||o!==null&&o===$e}function hh(r,o){Bi=Ss=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function dh(r,o,l){if((l&4194240)!==0){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,zl(r,l)}}var Es={readContext:Ot,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},D0={readContext:Ot,useCallback:function(r,o){return ln().memoizedState=[r,o===void 0?null:o],r},useContext:Ot,useEffect:nh,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,bs(4194308,4,oh.bind(null,o,r),l)},useLayoutEffect:function(r,o){return bs(4194308,4,r,o)},useInsertionEffect:function(r,o){return bs(4,2,r,o)},useMemo:function(r,o){var l=ln();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var c=ln();return o=l!==void 0?l(o):o,c.memoizedState=c.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},c.queue=r,r=r.dispatch=A0.bind(null,$e,r),[c.memoizedState,r]},useRef:function(r){var o=ln();return r={current:r},o.memoizedState=r},useState:eh,useDebugValue:Ra,useDeferredValue:function(r){return ln().memoizedState=r},useTransition:function(){var r=eh(!1),o=r[0];return r=R0.bind(null,r[1]),ln().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var c=$e,d=ln();if(De){if(l===void 0)throw Error(i(407));l=l()}else{if(l=o(),Xe===null)throw Error(i(349));(mr&30)!==0||Gf(c,o,l)}d.memoizedState=l;var y={value:l,getSnapshot:o};return d.queue=y,nh(Yf.bind(null,c,y,r),[r]),c.flags|=2048,Gi(9,Xf.bind(null,c,y,l,o),void 0,null),l},useId:function(){var r=ln(),o=Xe.identifierPrefix;if(De){var l=wn,c=_n;l=(c&~(1<<32-Ut(c)-1)).toString(32)+l,o=":"+o+"R"+l,l=Wi++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=O0++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},I0={readContext:Ot,useCallback:lh,useContext:Ot,useEffect:Oa,useImperativeHandle:sh,useInsertionEffect:rh,useLayoutEffect:ih,useMemo:ah,useReducer:Ma,useRef:th,useState:function(){return Ma(Ki)},useDebugValue:Ra,useDeferredValue:function(r){var o=Rt();return uh(o,Be.memoizedState,r)},useTransition:function(){var r=Ma(Ki)[0],o=Rt().memoizedState;return[r,o]},useMutableSource:Wf,useSyncExternalStore:Kf,useId:ch,unstable_isNewReconciler:!1},L0={readContext:Ot,useCallback:lh,useContext:Ot,useEffect:Oa,useImperativeHandle:sh,useInsertionEffect:rh,useLayoutEffect:ih,useMemo:ah,useReducer:ja,useRef:th,useState:function(){return ja(Ki)},useDebugValue:Ra,useDeferredValue:function(r){var o=Rt();return Be===null?o.memoizedState=r:uh(o,Be.memoizedState,r)},useTransition:function(){var r=ja(Ki)[0],o=Rt().memoizedState;return[r,o]},useMutableSource:Wf,useSyncExternalStore:Kf,useId:ch,unstable_isNewReconciler:!1};function Vt(r,o){if(r&&r.defaultProps){o=B({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function Aa(r,o,l,c){o=r.memoizedState,l=l(c,o),l=l==null?o:B({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Ns={isMounted:function(r){return(r=r._reactInternals)?ur(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var c=ut(),d=Jn(r),y=Sn(c,d);y.payload=o,l!=null&&(y.callback=l),o=Gn(r,y,d),o!==null&&(Wt(o,r,d,c),xs(o,r,d))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var c=ut(),d=Jn(r),y=Sn(c,d);y.tag=1,y.payload=o,l!=null&&(y.callback=l),o=Gn(r,y,d),o!==null&&(Wt(o,r,d,c),xs(o,r,d))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=ut(),c=Jn(r),d=Sn(l,c);d.tag=2,o!=null&&(d.callback=o),o=Gn(r,d,c),o!==null&&(Wt(o,r,c,l),xs(o,r,c))}};function ph(r,o,l,c,d,y,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,_):o.prototype&&o.prototype.isPureReactComponent?!zi(l,c)||!zi(d,y):!0}function gh(r,o,l){var c=!1,d=Bn,y=o.contextType;return typeof y=="object"&&y!==null?y=Ot(y):(d=gt(o)?fr:nt.current,c=o.contextTypes,y=(c=c!=null)?Hr(r,d):Bn),o=new o(l,y),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Ns,r.stateNode=o,o._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=d,r.__reactInternalMemoizedMaskedChildContext=y),o}function mh(r,o,l,c){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,c),o.state!==r&&Ns.enqueueReplaceState(o,o.state,null)}function za(r,o,l,c){var d=r.stateNode;d.props=l,d.state=r.memoizedState,d.refs={},wa(r);var y=o.contextType;typeof y=="object"&&y!==null?d.context=Ot(y):(y=gt(o)?fr:nt.current,d.context=Hr(r,y)),d.state=r.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(Aa(r,o,y,l),d.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(o=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),o!==d.state&&Ns.enqueueReplaceState(d,d.state,null),_s(r,l,d,c),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308)}function Xr(r,o){try{var l="",c=o;do l+=ve(c),c=c.return;while(c);var d=l}catch(y){d=`
39
- Error generating stack: `+y.message+`
40
- `+y.stack}return{value:r,source:o,stack:d,digest:null}}function Da(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function Ia(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var F0=typeof WeakMap=="function"?WeakMap:Map;function yh(r,o,l){l=Sn(-1,l),l.tag=3,l.payload={element:null};var c=o.value;return l.callback=function(){As||(As=!0,Za=c),Ia(r,o)},l}function vh(r,o,l){l=Sn(-1,l),l.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;l.payload=function(){return c(d)},l.callback=function(){Ia(r,o)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){Ia(r,o),typeof c!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})}),l}function xh(r,o,l){var c=r.pingCache;if(c===null){c=r.pingCache=new F0;var d=new Set;c.set(o,d)}else d=c.get(o),d===void 0&&(d=new Set,c.set(o,d));d.has(l)||(d.add(l),r=J0.bind(null,r,o,l),o.then(r,r))}function _h(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function wh(r,o,l,c,d){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=Sn(-1,1),o.tag=2,Gn(l,o,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=d,r)}var $0=P.ReactCurrentOwner,mt=!1;function at(r,o,l,c){o.child=r===null?Uf(o,null,l,c):Br(o,r.child,l,c)}function kh(r,o,l,c,d){l=l.render;var y=o.ref;return Kr(o,d),c=Pa(r,o,l,c,y,d),l=Ta(),r!==null&&!mt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,bn(r,o,d)):(De&&l&&fa(o),o.flags|=1,at(r,o,c,d),o.child)}function Sh(r,o,l,c,d){if(r===null){var y=l.type;return typeof y=="function"&&!ou(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=y,bh(r,o,y,c,d)):(r=$s(l.type,null,c,o,o.mode,d),r.ref=o.ref,r.return=o,o.child=r)}if(y=r.child,(r.lanes&d)===0){var _=y.memoizedProps;if(l=l.compare,l=l!==null?l:zi,l(_,c)&&r.ref===o.ref)return bn(r,o,d)}return o.flags|=1,r=tr(y,c),r.ref=o.ref,r.return=o,o.child=r}function bh(r,o,l,c,d){if(r!==null){var y=r.memoizedProps;if(zi(y,c)&&r.ref===o.ref)if(mt=!1,o.pendingProps=c=y,(r.lanes&d)!==0)(r.flags&131072)!==0&&(mt=!0);else return o.lanes=r.lanes,bn(r,o,d)}return La(r,o,l,c,d)}function Ch(r,o,l){var c=o.pendingProps,d=c.children,y=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oe(Zr,Nt),Nt|=l;else{if((l&1073741824)===0)return r=y!==null?y.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Oe(Zr,Nt),Nt|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=y!==null?y.baseLanes:l,Oe(Zr,Nt),Nt|=c}else y!==null?(c=y.baseLanes|l,o.memoizedState=null):c=l,Oe(Zr,Nt),Nt|=c;return at(r,o,d,l),o.child}function Eh(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function La(r,o,l,c,d){var y=gt(l)?fr:nt.current;return y=Hr(o,y),Kr(o,d),l=Pa(r,o,l,c,y,d),c=Ta(),r!==null&&!mt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,bn(r,o,d)):(De&&c&&fa(o),o.flags|=1,at(r,o,l,d),o.child)}function Nh(r,o,l,c,d){if(gt(l)){var y=!0;fs(o)}else y=!1;if(Kr(o,d),o.stateNode===null)Ts(r,o),gh(o,l,c),za(o,l,c,d),c=!0;else if(r===null){var _=o.stateNode,E=o.memoizedProps;_.props=E;var j=_.context,H=l.contextType;typeof H=="object"&&H!==null?H=Ot(H):(H=gt(l)?fr:nt.current,H=Hr(o,H));var G=l.getDerivedStateFromProps,J=typeof G=="function"||typeof _.getSnapshotBeforeUpdate=="function";J||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(E!==c||j!==H)&&mh(o,_,c,H),Kn=!1;var K=o.memoizedState;_.state=K,_s(o,c,_,d),j=o.memoizedState,E!==c||K!==j||pt.current||Kn?(typeof G=="function"&&(Aa(o,l,G,c),j=o.memoizedState),(E=Kn||ph(o,l,E,c,K,j,H))?(J||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=j),_.props=c,_.state=j,_.context=H,c=E):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{_=o.stateNode,qf(r,o),E=o.memoizedProps,H=o.type===o.elementType?E:Vt(o.type,E),_.props=H,J=o.pendingProps,K=_.context,j=l.contextType,typeof j=="object"&&j!==null?j=Ot(j):(j=gt(l)?fr:nt.current,j=Hr(o,j));var le=l.getDerivedStateFromProps;(G=typeof le=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(E!==J||K!==j)&&mh(o,_,c,j),Kn=!1,K=o.memoizedState,_.state=K,_s(o,c,_,d);var ce=o.memoizedState;E!==J||K!==ce||pt.current||Kn?(typeof le=="function"&&(Aa(o,l,le,c),ce=o.memoizedState),(H=Kn||ph(o,l,H,c,K,ce,j)||!1)?(G||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,ce,j),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,ce,j)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||E===r.memoizedProps&&K===r.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&K===r.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=ce),_.props=c,_.state=ce,_.context=j,c=H):(typeof _.componentDidUpdate!="function"||E===r.memoizedProps&&K===r.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&K===r.memoizedState||(o.flags|=1024),c=!1)}return Fa(r,o,l,c,y,d)}function Fa(r,o,l,c,d,y){Eh(r,o);var _=(o.flags&128)!==0;if(!c&&!_)return d&&Of(o,l,!1),bn(r,o,y);c=o.stateNode,$0.current=o;var E=_&&typeof l.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,r!==null&&_?(o.child=Br(o,r.child,null,y),o.child=Br(o,null,E,y)):at(r,o,E,y),o.memoizedState=c.state,d&&Of(o,l,!0),o.child}function Ph(r){var o=r.stateNode;o.pendingContext?Mf(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Mf(r,o.context,!1),ka(r,o.containerInfo)}function Th(r,o,l,c,d){return Qr(),ga(d),o.flags|=256,at(r,o,l,c),o.child}var $a={dehydrated:null,treeContext:null,retryLane:0};function Ua(r){return{baseLanes:r,cachePool:null,transitions:null}}function Mh(r,o,l){var c=o.pendingProps,d=Fe.current,y=!1,_=(o.flags&128)!==0,E;if((E=_)||(E=r!==null&&r.memoizedState===null?!1:(d&2)!==0),E?(y=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(d|=1),Oe(Fe,d&1),r===null)return pa(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(_=c.children,r=c.fallback,y?(c=o.mode,y=o.child,_={mode:"hidden",children:_},(c&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=_):y=Us(_,c,0,null),r=wr(r,c,l,null),y.return=o,r.return=o,y.sibling=r,o.child=y,o.child.memoizedState=Ua(l),o.memoizedState=$a,r):Ha(o,_));if(d=r.memoizedState,d!==null&&(E=d.dehydrated,E!==null))return U0(r,o,_,c,E,d,l);if(y){y=c.fallback,_=o.mode,d=r.child,E=d.sibling;var j={mode:"hidden",children:c.children};return(_&1)===0&&o.child!==d?(c=o.child,c.childLanes=0,c.pendingProps=j,o.deletions=null):(c=tr(d,j),c.subtreeFlags=d.subtreeFlags&14680064),E!==null?y=tr(E,y):(y=wr(y,_,l,null),y.flags|=2),y.return=o,c.return=o,c.sibling=y,o.child=c,c=y,y=o.child,_=r.child.memoizedState,_=_===null?Ua(l):{baseLanes:_.baseLanes|l,cachePool:null,transitions:_.transitions},y.memoizedState=_,y.childLanes=r.childLanes&~l,o.memoizedState=$a,c}return y=r.child,r=y.sibling,c=tr(y,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=l),c.return=o,c.sibling=null,r!==null&&(l=o.deletions,l===null?(o.deletions=[r],o.flags|=16):l.push(r)),o.child=c,o.memoizedState=null,c}function Ha(r,o){return o=Us({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function Ps(r,o,l,c){return c!==null&&ga(c),Br(o,r.child,null,l),r=Ha(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function U0(r,o,l,c,d,y,_){if(l)return o.flags&256?(o.flags&=-257,c=Da(Error(i(422))),Ps(r,o,_,c)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(y=c.fallback,d=o.mode,c=Us({mode:"visible",children:c.children},d,0,null),y=wr(y,d,_,null),y.flags|=2,c.return=o,y.return=o,c.sibling=y,o.child=c,(o.mode&1)!==0&&Br(o,r.child,null,_),o.child.memoizedState=Ua(_),o.memoizedState=$a,y);if((o.mode&1)===0)return Ps(r,o,_,null);if(d.data==="$!"){if(c=d.nextSibling&&d.nextSibling.dataset,c)var E=c.dgst;return c=E,y=Error(i(419)),c=Da(y,c,void 0),Ps(r,o,_,c)}if(E=(_&r.childLanes)!==0,mt||E){if(c=Xe,c!==null){switch(_&-_){case 4:d=2;break;case 16:d=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(c.suspendedLanes|_))!==0?0:d,d!==0&&d!==y.retryLane&&(y.retryLane=d,kn(r,d),Wt(c,r,d,-1))}return iu(),c=Da(Error(i(421))),Ps(r,o,_,c)}return d.data==="$?"?(o.flags|=128,o.child=r.child,o=ey.bind(null,r),d._reactRetry=o,null):(r=y.treeContext,Et=Vn(d.nextSibling),Ct=o,De=!0,qt=null,r!==null&&(Mt[jt++]=_n,Mt[jt++]=wn,Mt[jt++]=hr,_n=r.id,wn=r.overflow,hr=o),o=Ha(o,c.children),o.flags|=4096,o)}function jh(r,o,l){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o),xa(r.return,o,l)}function qa(r,o,l,c,d){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:d}:(y.isBackwards=o,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=l,y.tailMode=d)}function Oh(r,o,l){var c=o.pendingProps,d=c.revealOrder,y=c.tail;if(at(r,o,c.children,l),c=Fe.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&jh(r,l,o);else if(r.tag===19)jh(r,l,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Oe(Fe,c),(o.mode&1)===0)o.memoizedState=null;else switch(d){case"forwards":for(l=o.child,d=null;l!==null;)r=l.alternate,r!==null&&ws(r)===null&&(d=l),l=l.sibling;l=d,l===null?(d=o.child,o.child=null):(d=l.sibling,l.sibling=null),qa(o,!1,d,l,y);break;case"backwards":for(l=null,d=o.child,o.child=null;d!==null;){if(r=d.alternate,r!==null&&ws(r)===null){o.child=d;break}r=d.sibling,d.sibling=l,l=d,d=r}qa(o,!0,l,null,y);break;case"together":qa(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Ts(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function bn(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),yr|=o.lanes,(l&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(i(153));if(o.child!==null){for(r=o.child,l=tr(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=tr(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function H0(r,o,l){switch(o.tag){case 3:Ph(o),Qr();break;case 5:Bf(o);break;case 1:gt(o.type)&&fs(o);break;case 4:ka(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,d=o.memoizedProps.value;Oe(ys,c._currentValue),c._currentValue=d;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(Oe(Fe,Fe.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?Mh(r,o,l):(Oe(Fe,Fe.current&1),r=bn(r,o,l),r!==null?r.sibling:null);Oe(Fe,Fe.current&1);break;case 19:if(c=(l&o.childLanes)!==0,(r.flags&128)!==0){if(c)return Oh(r,o,l);o.flags|=128}if(d=o.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Oe(Fe,Fe.current),c)break;return null;case 22:case 23:return o.lanes=0,Ch(r,o,l)}return bn(r,o,l)}var Rh,Va,Ah,zh;Rh=function(r,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Va=function(){},Ah=function(r,o,l,c){var d=r.memoizedProps;if(d!==c){r=o.stateNode,gr(sn.current);var y=null;switch(l){case"input":d=fi(r,d),c=fi(r,c),y=[];break;case"select":d=B({},d,{value:void 0}),c=B({},c,{value:void 0}),y=[];break;case"textarea":d=pi(r,d),c=pi(r,c),y=[];break;default:typeof d.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=as)}yi(l,c);var _;l=null;for(H in d)if(!c.hasOwnProperty(H)&&d.hasOwnProperty(H)&&d[H]!=null)if(H==="style"){var E=d[H];for(_ in E)E.hasOwnProperty(_)&&(l||(l={}),l[_]="")}else H!=="dangerouslySetInnerHTML"&&H!=="children"&&H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&H!=="autoFocus"&&(a.hasOwnProperty(H)?y||(y=[]):(y=y||[]).push(H,null));for(H in c){var j=c[H];if(E=d?.[H],c.hasOwnProperty(H)&&j!==E&&(j!=null||E!=null))if(H==="style")if(E){for(_ in E)!E.hasOwnProperty(_)||j&&j.hasOwnProperty(_)||(l||(l={}),l[_]="");for(_ in j)j.hasOwnProperty(_)&&E[_]!==j[_]&&(l||(l={}),l[_]=j[_])}else l||(y||(y=[]),y.push(H,l)),l=j;else H==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,E=E?E.__html:void 0,j!=null&&E!==j&&(y=y||[]).push(H,j)):H==="children"?typeof j!="string"&&typeof j!="number"||(y=y||[]).push(H,""+j):H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&(a.hasOwnProperty(H)?(j!=null&&H==="onScroll"&&Re("scroll",r),y||E===j||(y=[])):(y=y||[]).push(H,j))}l&&(y=y||[]).push("style",l);var H=y;(o.updateQueue=H)&&(o.flags|=4)}},zh=function(r,o,l,c){l!==c&&(o.flags|=4)};function Xi(r,o){if(!De)switch(r.tailMode){case"hidden":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function it(r){var o=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(o)for(var d=r.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags&14680064,c|=d.flags&14680064,d.return=r,d=d.sibling;else for(d=r.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=r,d=d.sibling;return r.subtreeFlags|=c,r.childLanes=l,o}function q0(r,o,l){var c=o.pendingProps;switch(ha(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(o),null;case 1:return gt(o.type)&&cs(),it(o),null;case 3:return c=o.stateNode,Gr(),Ae(pt),Ae(nt),Ca(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(gs(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,qt!==null&&(tu(qt),qt=null))),Va(r,o),it(o),null;case 5:Sa(o);var d=gr(Qi.current);if(l=o.type,r!==null&&o.stateNode!=null)Ah(r,o,l,c,d),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(i(166));return it(o),null}if(r=gr(sn.current),gs(o)){c=o.stateNode,l=o.type;var y=o.memoizedProps;switch(c[on]=o,c[$i]=y,r=(o.mode&1)!==0,l){case"dialog":Re("cancel",c),Re("close",c);break;case"iframe":case"object":case"embed":Re("load",c);break;case"video":case"audio":for(d=0;d<Ii.length;d++)Re(Ii[d],c);break;case"source":Re("error",c);break;case"img":case"image":case"link":Re("error",c),Re("load",c);break;case"details":Re("toggle",c);break;case"input":Ao(c,y),Re("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!y.multiple},Re("invalid",c);break;case"textarea":mn(c,y),Re("invalid",c)}yi(l,y),d=null;for(var _ in y)if(y.hasOwnProperty(_)){var E=y[_];_==="children"?typeof E=="string"?c.textContent!==E&&(y.suppressHydrationWarning!==!0&&ls(c.textContent,E,r),d=["children",E]):typeof E=="number"&&c.textContent!==""+E&&(y.suppressHydrationWarning!==!0&&ls(c.textContent,E,r),d=["children",""+E]):a.hasOwnProperty(_)&&E!=null&&_==="onScroll"&&Re("scroll",c)}switch(l){case"input":Mr(c),di(c,y,!0);break;case"textarea":Mr(c),Io(c);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(c.onclick=as)}c=d,o.updateQueue=c,c!==null&&(o.flags|=4)}else{_=d.nodeType===9?d:d.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=jr(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=_.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=_.createElement(l,{is:c.is}):(r=_.createElement(l),l==="select"&&(_=r,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):r=_.createElementNS(r,l),r[on]=o,r[$i]=c,Rh(r,o,!1,!1),o.stateNode=r;e:{switch(_=vi(l,c),l){case"dialog":Re("cancel",r),Re("close",r),d=c;break;case"iframe":case"object":case"embed":Re("load",r),d=c;break;case"video":case"audio":for(d=0;d<Ii.length;d++)Re(Ii[d],r);d=c;break;case"source":Re("error",r),d=c;break;case"img":case"image":case"link":Re("error",r),Re("load",r),d=c;break;case"details":Re("toggle",r),d=c;break;case"input":Ao(r,c),d=fi(r,c),Re("invalid",r);break;case"option":d=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},d=B({},c,{value:void 0}),Re("invalid",r);break;case"textarea":mn(r,c),d=pi(r,c),Re("invalid",r);break;default:d=c}yi(l,d),E=d;for(y in E)if(E.hasOwnProperty(y)){var j=E[y];y==="style"?mi(r,j):y==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&Lo(r,j)):y==="children"?typeof j=="string"?(l!=="textarea"||j!=="")&&zn(r,j):typeof j=="number"&&zn(r,""+j):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(a.hasOwnProperty(y)?j!=null&&y==="onScroll"&&Re("scroll",r):j!=null&&D(r,y,j,_))}switch(l){case"input":Mr(r),di(r,c,!1);break;case"textarea":Mr(r),Io(r);break;case"option":c.value!=null&&r.setAttribute("value",""+be(c.value));break;case"select":r.multiple=!!c.multiple,y=c.value,y!=null?gn(r,!!c.multiple,y,!1):c.defaultValue!=null&&gn(r,!!c.multiple,c.defaultValue,!0);break;default:typeof d.onClick=="function"&&(r.onclick=as)}switch(l){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return it(o),null;case 6:if(r&&o.stateNode!=null)zh(r,o,r.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(i(166));if(l=gr(Qi.current),gr(sn.current),gs(o)){if(c=o.stateNode,l=o.memoizedProps,c[on]=o,(y=c.nodeValue!==l)&&(r=Ct,r!==null))switch(r.tag){case 3:ls(c.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&ls(c.nodeValue,l,(r.mode&1)!==0)}y&&(o.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[on]=o,o.stateNode=c}return it(o),null;case 13:if(Ae(Fe),c=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(De&&Et!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Lf(),Qr(),o.flags|=98560,y=!1;else if(y=gs(o),c!==null&&c.dehydrated!==null){if(r===null){if(!y)throw Error(i(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(i(317));y[on]=o}else Qr(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;it(o),y=!1}else qt!==null&&(tu(qt),qt=null),y=!0;if(!y)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=l,o):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(Fe.current&1)!==0?We===0&&(We=3):iu())),o.updateQueue!==null&&(o.flags|=4),it(o),null);case 4:return Gr(),Va(r,o),r===null&&Li(o.stateNode.containerInfo),it(o),null;case 10:return va(o.type._context),it(o),null;case 17:return gt(o.type)&&cs(),it(o),null;case 19:if(Ae(Fe),y=o.memoizedState,y===null)return it(o),null;if(c=(o.flags&128)!==0,_=y.rendering,_===null)if(c)Xi(y,!1);else{if(We!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(_=ws(r),_!==null){for(o.flags|=128,Xi(y,!1),c=_.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),o.subtreeFlags=0,c=l,l=o.child;l!==null;)y=l,r=c,y.flags&=14680066,_=y.alternate,_===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=_.childLanes,y.lanes=_.lanes,y.child=_.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=_.memoizedProps,y.memoizedState=_.memoizedState,y.updateQueue=_.updateQueue,y.type=_.type,r=_.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Oe(Fe,Fe.current&1|2),o.child}r=r.sibling}y.tail!==null&&He()>Jr&&(o.flags|=128,c=!0,Xi(y,!1),o.lanes=4194304)}else{if(!c)if(r=ws(_),r!==null){if(o.flags|=128,c=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Xi(y,!0),y.tail===null&&y.tailMode==="hidden"&&!_.alternate&&!De)return it(o),null}else 2*He()-y.renderingStartTime>Jr&&l!==1073741824&&(o.flags|=128,c=!0,Xi(y,!1),o.lanes=4194304);y.isBackwards?(_.sibling=o.child,o.child=_):(l=y.last,l!==null?l.sibling=_:o.child=_,y.last=_)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=He(),o.sibling=null,l=Fe.current,Oe(Fe,c?l&1|2:l&1),o):(it(o),null);case 22:case 23:return ru(),c=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(Nt&1073741824)!==0&&(it(o),o.subtreeFlags&6&&(o.flags|=8192)):it(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function V0(r,o){switch(ha(o),o.tag){case 1:return gt(o.type)&&cs(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Gr(),Ae(pt),Ae(nt),Ca(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return Sa(o),null;case 13:if(Ae(Fe),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Qr()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Ae(Fe),null;case 4:return Gr(),null;case 10:return va(o.type._context),null;case 22:case 23:return ru(),null;case 24:return null;default:return null}}var Ms=!1,ot=!1,Q0=typeof WeakSet=="function"?WeakSet:Set,ae=null;function Yr(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){Ue(r,o,c)}else l.current=null}function Qa(r,o,l){try{l()}catch(c){Ue(r,o,c)}}var Dh=!1;function B0(r,o){if(ra=Xo,r=pf(),Gl(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var d=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var _=0,E=-1,j=-1,H=0,G=0,J=r,K=null;t:for(;;){for(var le;J!==l||d!==0&&J.nodeType!==3||(E=_+d),J!==y||c!==0&&J.nodeType!==3||(j=_+c),J.nodeType===3&&(_+=J.nodeValue.length),(le=J.firstChild)!==null;)K=J,J=le;for(;;){if(J===r)break t;if(K===l&&++H===d&&(E=_),K===y&&++G===c&&(j=_),(le=J.nextSibling)!==null)break;J=K,K=J.parentNode}J=le}l=E===-1||j===-1?null:{start:E,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(ia={focusedElem:r,selectionRange:l},Xo=!1,ae=o;ae!==null;)if(o=ae,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,ae=r;else for(;ae!==null;){o=ae;try{var ce=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ce!==null){var he=ce.memoizedProps,qe=ce.memoizedState,$=o.stateNode,R=$.getSnapshotBeforeUpdate(o.elementType===o.type?he:Vt(o.type,he),qe);$.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var U=o.stateNode.containerInfo;U.nodeType===1?U.textContent="":U.nodeType===9&&U.documentElement&&U.removeChild(U.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(re){Ue(o,o.return,re)}if(r=o.sibling,r!==null){r.return=o.return,ae=r;break}ae=o.return}return ce=Dh,Dh=!1,ce}function Yi(r,o,l){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var d=c=c.next;do{if((d.tag&r)===r){var y=d.destroy;d.destroy=void 0,y!==void 0&&Qa(o,l,y)}d=d.next}while(d!==c)}}function js(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&r)===r){var c=l.create;l.destroy=c()}l=l.next}while(l!==o)}}function Ba(r){var o=r.ref;if(o!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof o=="function"?o(r):o.current=r}}function Ih(r){var o=r.alternate;o!==null&&(r.alternate=null,Ih(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[on],delete o[$i],delete o[aa],delete o[P0],delete o[T0])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Lh(r){return r.tag===5||r.tag===3||r.tag===4}function Fh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Lh(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Wa(r,o,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(r,o):l.insertBefore(r,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(r,l)):(o=l,o.appendChild(r)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=as));else if(c!==4&&(r=r.child,r!==null))for(Wa(r,o,l),r=r.sibling;r!==null;)Wa(r,o,l),r=r.sibling}function Ka(r,o,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,o?l.insertBefore(r,o):l.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(Ka(r,o,l),r=r.sibling;r!==null;)Ka(r,o,l),r=r.sibling}var Ze=null,Qt=!1;function Xn(r,o,l){for(l=l.child;l!==null;)$h(r,o,l),l=l.sibling}function $h(r,o,l){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(Vo,l)}catch{}switch(l.tag){case 5:ot||Yr(l,o);case 6:var c=Ze,d=Qt;Ze=null,Xn(r,o,l),Ze=c,Qt=d,Ze!==null&&(Qt?(r=Ze,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):Ze.removeChild(l.stateNode));break;case 18:Ze!==null&&(Qt?(r=Ze,l=l.stateNode,r.nodeType===8?la(r.parentNode,l):r.nodeType===1&&la(r,l),Ti(r)):la(Ze,l.stateNode));break;case 4:c=Ze,d=Qt,Ze=l.stateNode.containerInfo,Qt=!0,Xn(r,o,l),Ze=c,Qt=d;break;case 0:case 11:case 14:case 15:if(!ot&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var y=d,_=y.destroy;y=y.tag,_!==void 0&&((y&2)!==0||(y&4)!==0)&&Qa(l,o,_),d=d.next}while(d!==c)}Xn(r,o,l);break;case 1:if(!ot&&(Yr(l,o),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(E){Ue(l,o,E)}Xn(r,o,l);break;case 21:Xn(r,o,l);break;case 22:l.mode&1?(ot=(c=ot)||l.memoizedState!==null,Xn(r,o,l),ot=c):Xn(r,o,l);break;default:Xn(r,o,l)}}function Uh(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new Q0),o.forEach(function(c){var d=ty.bind(null,r,c);l.has(c)||(l.add(c),c.then(d,d))})}}function Bt(r,o){var l=o.deletions;if(l!==null)for(var c=0;c<l.length;c++){var d=l[c];try{var y=r,_=o,E=_;e:for(;E!==null;){switch(E.tag){case 5:Ze=E.stateNode,Qt=!1;break e;case 3:Ze=E.stateNode.containerInfo,Qt=!0;break e;case 4:Ze=E.stateNode.containerInfo,Qt=!0;break e}E=E.return}if(Ze===null)throw Error(i(160));$h(y,_,d),Ze=null,Qt=!1;var j=d.alternate;j!==null&&(j.return=null),d.return=null}catch(H){Ue(d,o,H)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Hh(o,r),o=o.sibling}function Hh(r,o){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Bt(o,r),an(r),c&4){try{Yi(3,r,r.return),js(3,r)}catch(he){Ue(r,r.return,he)}try{Yi(5,r,r.return)}catch(he){Ue(r,r.return,he)}}break;case 1:Bt(o,r),an(r),c&512&&l!==null&&Yr(l,l.return);break;case 5:if(Bt(o,r),an(r),c&512&&l!==null&&Yr(l,l.return),r.flags&32){var d=r.stateNode;try{zn(d,"")}catch(he){Ue(r,r.return,he)}}if(c&4&&(d=r.stateNode,d!=null)){var y=r.memoizedProps,_=l!==null?l.memoizedProps:y,E=r.type,j=r.updateQueue;if(r.updateQueue=null,j!==null)try{E==="input"&&y.type==="radio"&&y.name!=null&&zo(d,y),vi(E,_);var H=vi(E,y);for(_=0;_<j.length;_+=2){var G=j[_],J=j[_+1];G==="style"?mi(d,J):G==="dangerouslySetInnerHTML"?Lo(d,J):G==="children"?zn(d,J):D(d,G,J,H)}switch(E){case"input":hi(d,y);break;case"textarea":Do(d,y);break;case"select":var K=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!y.multiple;var le=y.value;le!=null?gn(d,!!y.multiple,le,!1):K!==!!y.multiple&&(y.defaultValue!=null?gn(d,!!y.multiple,y.defaultValue,!0):gn(d,!!y.multiple,y.multiple?[]:"",!1))}d[$i]=y}catch(he){Ue(r,r.return,he)}}break;case 6:if(Bt(o,r),an(r),c&4){if(r.stateNode===null)throw Error(i(162));d=r.stateNode,y=r.memoizedProps;try{d.nodeValue=y}catch(he){Ue(r,r.return,he)}}break;case 3:if(Bt(o,r),an(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{Ti(o.containerInfo)}catch(he){Ue(r,r.return,he)}break;case 4:Bt(o,r),an(r);break;case 13:Bt(o,r),an(r),d=r.child,d.flags&8192&&(y=d.memoizedState!==null,d.stateNode.isHidden=y,!y||d.alternate!==null&&d.alternate.memoizedState!==null||(Ya=He())),c&4&&Uh(r);break;case 22:if(G=l!==null&&l.memoizedState!==null,r.mode&1?(ot=(H=ot)||G,Bt(o,r),ot=H):Bt(o,r),an(r),c&8192){if(H=r.memoizedState!==null,(r.stateNode.isHidden=H)&&!G&&(r.mode&1)!==0)for(ae=r,G=r.child;G!==null;){for(J=ae=G;ae!==null;){switch(K=ae,le=K.child,K.tag){case 0:case 11:case 14:case 15:Yi(4,K,K.return);break;case 1:Yr(K,K.return);var ce=K.stateNode;if(typeof ce.componentWillUnmount=="function"){c=K,l=K.return;try{o=c,ce.props=o.memoizedProps,ce.state=o.memoizedState,ce.componentWillUnmount()}catch(he){Ue(c,l,he)}}break;case 5:Yr(K,K.return);break;case 22:if(K.memoizedState!==null){Qh(J);continue}}le!==null?(le.return=K,ae=le):Qh(J)}G=G.sibling}e:for(G=null,J=r;;){if(J.tag===5){if(G===null){G=J;try{d=J.stateNode,H?(y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(E=J.stateNode,j=J.memoizedProps.style,_=j!=null&&j.hasOwnProperty("display")?j.display:null,E.style.display=$o("display",_))}catch(he){Ue(r,r.return,he)}}}else if(J.tag===6){if(G===null)try{J.stateNode.nodeValue=H?"":J.memoizedProps}catch(he){Ue(r,r.return,he)}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===r)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===r)break e;for(;J.sibling===null;){if(J.return===null||J.return===r)break e;G===J&&(G=null),J=J.return}G===J&&(G=null),J.sibling.return=J.return,J=J.sibling}}break;case 19:Bt(o,r),an(r),c&4&&Uh(r);break;case 21:break;default:Bt(o,r),an(r)}}function an(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(Lh(l)){var c=l;break e}l=l.return}throw Error(i(160))}switch(c.tag){case 5:var d=c.stateNode;c.flags&32&&(zn(d,""),c.flags&=-33);var y=Fh(r);Ka(r,y,d);break;case 3:case 4:var _=c.stateNode.containerInfo,E=Fh(r);Wa(r,E,_);break;default:throw Error(i(161))}}catch(j){Ue(r,r.return,j)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function W0(r,o,l){ae=r,qh(r)}function qh(r,o,l){for(var c=(r.mode&1)!==0;ae!==null;){var d=ae,y=d.child;if(d.tag===22&&c){var _=d.memoizedState!==null||Ms;if(!_){var E=d.alternate,j=E!==null&&E.memoizedState!==null||ot;E=Ms;var H=ot;if(Ms=_,(ot=j)&&!H)for(ae=d;ae!==null;)_=ae,j=_.child,_.tag===22&&_.memoizedState!==null?Bh(d):j!==null?(j.return=_,ae=j):Bh(d);for(;y!==null;)ae=y,qh(y),y=y.sibling;ae=d,Ms=E,ot=H}Vh(r)}else(d.subtreeFlags&8772)!==0&&y!==null?(y.return=d,ae=y):Vh(r)}}function Vh(r){for(;ae!==null;){var o=ae;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:ot||js(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!ot)if(l===null)c.componentDidMount();else{var d=o.elementType===o.type?l.memoizedProps:Vt(o.type,l.memoizedProps);c.componentDidUpdate(d,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var y=o.updateQueue;y!==null&&Qf(o,y,c);break;case 3:var _=o.updateQueue;if(_!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}Qf(o,_,l)}break;case 5:var E=o.stateNode;if(l===null&&o.flags&4){l=E;var j=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&l.focus();break;case"img":j.src&&(l.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var H=o.alternate;if(H!==null){var G=H.memoizedState;if(G!==null){var J=G.dehydrated;J!==null&&Ti(J)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ot||o.flags&512&&Ba(o)}catch(K){Ue(o,o.return,K)}}if(o===r){ae=null;break}if(l=o.sibling,l!==null){l.return=o.return,ae=l;break}ae=o.return}}function Qh(r){for(;ae!==null;){var o=ae;if(o===r){ae=null;break}var l=o.sibling;if(l!==null){l.return=o.return,ae=l;break}ae=o.return}}function Bh(r){for(;ae!==null;){var o=ae;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{js(4,o)}catch(j){Ue(o,l,j)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var d=o.return;try{c.componentDidMount()}catch(j){Ue(o,d,j)}}var y=o.return;try{Ba(o)}catch(j){Ue(o,y,j)}break;case 5:var _=o.return;try{Ba(o)}catch(j){Ue(o,_,j)}}}catch(j){Ue(o,o.return,j)}if(o===r){ae=null;break}var E=o.sibling;if(E!==null){E.return=o.return,ae=E;break}ae=o.return}}var K0=Math.ceil,Os=P.ReactCurrentDispatcher,Ga=P.ReactCurrentOwner,At=P.ReactCurrentBatchConfig,Ee=0,Xe=null,Qe=null,Je=0,Nt=0,Zr=Qn(0),We=0,Zi=null,yr=0,Rs=0,Xa=0,Ji=null,yt=null,Ya=0,Jr=1/0,Cn=null,As=!1,Za=null,Yn=null,zs=!1,Zn=null,Ds=0,eo=0,Ja=null,Is=-1,Ls=0;function ut(){return(Ee&6)!==0?He():Is!==-1?Is:Is=He()}function Jn(r){return(r.mode&1)===0?1:(Ee&2)!==0&&Je!==0?Je&-Je:j0.transition!==null?(Ls===0&&(Ls=Lc()),Ls):(r=Te,r!==0||(r=window.event,r=r===void 0?16:Wc(r.type)),r)}function Wt(r,o,l,c){if(50<eo)throw eo=0,Ja=null,Error(i(185));bi(r,l,c),((Ee&2)===0||r!==Xe)&&(r===Xe&&((Ee&2)===0&&(Rs|=l),We===4&&er(r,Je)),vt(r,c),l===1&&Ee===0&&(o.mode&1)===0&&(Jr=He()+500,hs&&Wn()))}function vt(r,o){var l=r.callbackNode;jm(r,o);var c=Wo(r,r===Xe?Je:0);if(c===0)l!==null&&zc(l),r.callbackNode=null,r.callbackPriority=0;else if(o=c&-c,r.callbackPriority!==o){if(l!=null&&zc(l),o===1)r.tag===0?M0(Kh.bind(null,r)):Rf(Kh.bind(null,r)),E0(function(){(Ee&6)===0&&Wn()}),l=null;else{switch(Fc(c)){case 1:l=Ol;break;case 4:l=Dc;break;case 16:l=qo;break;case 536870912:l=Ic;break;default:l=qo}l=nd(l,Wh.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function Wh(r,o){if(Is=-1,Ls=0,(Ee&6)!==0)throw Error(i(327));var l=r.callbackNode;if(ei()&&r.callbackNode!==l)return null;var c=Wo(r,r===Xe?Je:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||o)o=Fs(r,c);else{o=c;var d=Ee;Ee|=2;var y=Xh();(Xe!==r||Je!==o)&&(Cn=null,Jr=He()+500,xr(r,o));do try{Y0();break}catch(E){Gh(r,E)}while(!0);ya(),Os.current=y,Ee=d,Qe!==null?o=0:(Xe=null,Je=0,o=We)}if(o!==0){if(o===2&&(d=Rl(r),d!==0&&(c=d,o=eu(r,d))),o===1)throw l=Zi,xr(r,0),er(r,c),vt(r,He()),l;if(o===6)er(r,c);else{if(d=r.current.alternate,(c&30)===0&&!G0(d)&&(o=Fs(r,c),o===2&&(y=Rl(r),y!==0&&(c=y,o=eu(r,y))),o===1))throw l=Zi,xr(r,0),er(r,c),vt(r,He()),l;switch(r.finishedWork=d,r.finishedLanes=c,o){case 0:case 1:throw Error(i(345));case 2:_r(r,yt,Cn);break;case 3:if(er(r,c),(c&130023424)===c&&(o=Ya+500-He(),10<o)){if(Wo(r,0)!==0)break;if(d=r.suspendedLanes,(d&c)!==c){ut(),r.pingedLanes|=r.suspendedLanes&d;break}r.timeoutHandle=sa(_r.bind(null,r,yt,Cn),o);break}_r(r,yt,Cn);break;case 4:if(er(r,c),(c&4194240)===c)break;for(o=r.eventTimes,d=-1;0<c;){var _=31-Ut(c);y=1<<_,_=o[_],_>d&&(d=_),c&=~y}if(c=d,c=He()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*K0(c/1960))-c,10<c){r.timeoutHandle=sa(_r.bind(null,r,yt,Cn),c);break}_r(r,yt,Cn);break;case 5:_r(r,yt,Cn);break;default:throw Error(i(329))}}}return vt(r,He()),r.callbackNode===l?Wh.bind(null,r):null}function eu(r,o){var l=Ji;return r.current.memoizedState.isDehydrated&&(xr(r,o).flags|=256),r=Fs(r,o),r!==2&&(o=yt,yt=l,o!==null&&tu(o)),r}function tu(r){yt===null?yt=r:yt.push.apply(yt,r)}function G0(r){for(var o=r;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var c=0;c<l.length;c++){var d=l[c],y=d.getSnapshot;d=d.value;try{if(!Ht(y(),d))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function er(r,o){for(o&=~Xa,o&=~Rs,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-Ut(o),c=1<<l;r[l]=-1,o&=~c}}function Kh(r){if((Ee&6)!==0)throw Error(i(327));ei();var o=Wo(r,0);if((o&1)===0)return vt(r,He()),null;var l=Fs(r,o);if(r.tag!==0&&l===2){var c=Rl(r);c!==0&&(o=c,l=eu(r,c))}if(l===1)throw l=Zi,xr(r,0),er(r,o),vt(r,He()),l;if(l===6)throw Error(i(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,_r(r,yt,Cn),vt(r,He()),null}function nu(r,o){var l=Ee;Ee|=1;try{return r(o)}finally{Ee=l,Ee===0&&(Jr=He()+500,hs&&Wn())}}function vr(r){Zn!==null&&Zn.tag===0&&(Ee&6)===0&&ei();var o=Ee;Ee|=1;var l=At.transition,c=Te;try{if(At.transition=null,Te=1,r)return r()}finally{Te=c,At.transition=l,Ee=o,(Ee&6)===0&&Wn()}}function ru(){Nt=Zr.current,Ae(Zr)}function xr(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,C0(l)),Qe!==null)for(l=Qe.return;l!==null;){var c=l;switch(ha(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&cs();break;case 3:Gr(),Ae(pt),Ae(nt),Ca();break;case 5:Sa(c);break;case 4:Gr();break;case 13:Ae(Fe);break;case 19:Ae(Fe);break;case 10:va(c.type._context);break;case 22:case 23:ru()}l=l.return}if(Xe=r,Qe=r=tr(r.current,null),Je=Nt=o,We=0,Zi=null,Xa=Rs=yr=0,yt=Ji=null,pr!==null){for(o=0;o<pr.length;o++)if(l=pr[o],c=l.interleaved,c!==null){l.interleaved=null;var d=c.next,y=l.pending;if(y!==null){var _=y.next;y.next=d,c.next=_}l.pending=c}pr=null}return r}function Gh(r,o){do{var l=Qe;try{if(ya(),ks.current=Es,Ss){for(var c=$e.memoizedState;c!==null;){var d=c.queue;d!==null&&(d.pending=null),c=c.next}Ss=!1}if(mr=0,Ge=Be=$e=null,Bi=!1,Wi=0,Ga.current=null,l===null||l.return===null){We=1,Zi=o,Qe=null;break}e:{var y=r,_=l.return,E=l,j=o;if(o=Je,E.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var H=j,G=E,J=G.tag;if((G.mode&1)===0&&(J===0||J===11||J===15)){var K=G.alternate;K?(G.updateQueue=K.updateQueue,G.memoizedState=K.memoizedState,G.lanes=K.lanes):(G.updateQueue=null,G.memoizedState=null)}var le=_h(_);if(le!==null){le.flags&=-257,wh(le,_,E,y,o),le.mode&1&&xh(y,H,o),o=le,j=H;var ce=o.updateQueue;if(ce===null){var he=new Set;he.add(j),o.updateQueue=he}else ce.add(j);break e}else{if((o&1)===0){xh(y,H,o),iu();break e}j=Error(i(426))}}else if(De&&E.mode&1){var qe=_h(_);if(qe!==null){(qe.flags&65536)===0&&(qe.flags|=256),wh(qe,_,E,y,o),ga(Xr(j,E));break e}}y=j=Xr(j,E),We!==4&&(We=2),Ji===null?Ji=[y]:Ji.push(y),y=_;do{switch(y.tag){case 3:y.flags|=65536,o&=-o,y.lanes|=o;var $=yh(y,j,o);Vf(y,$);break e;case 1:E=j;var R=y.type,U=y.stateNode;if((y.flags&128)===0&&(typeof R.getDerivedStateFromError=="function"||U!==null&&typeof U.componentDidCatch=="function"&&(Yn===null||!Yn.has(U)))){y.flags|=65536,o&=-o,y.lanes|=o;var re=vh(y,E,o);Vf(y,re);break e}}y=y.return}while(y!==null)}Zh(l)}catch(pe){o=pe,Qe===l&&l!==null&&(Qe=l=l.return);continue}break}while(!0)}function Xh(){var r=Os.current;return Os.current=Es,r===null?Es:r}function iu(){(We===0||We===3||We===2)&&(We=4),Xe===null||(yr&268435455)===0&&(Rs&268435455)===0||er(Xe,Je)}function Fs(r,o){var l=Ee;Ee|=2;var c=Xh();(Xe!==r||Je!==o)&&(Cn=null,xr(r,o));do try{X0();break}catch(d){Gh(r,d)}while(!0);if(ya(),Ee=l,Os.current=c,Qe!==null)throw Error(i(261));return Xe=null,Je=0,We}function X0(){for(;Qe!==null;)Yh(Qe)}function Y0(){for(;Qe!==null&&!km();)Yh(Qe)}function Yh(r){var o=td(r.alternate,r,Nt);r.memoizedProps=r.pendingProps,o===null?Zh(r):Qe=o,Ga.current=null}function Zh(r){var o=r;do{var l=o.alternate;if(r=o.return,(o.flags&32768)===0){if(l=q0(l,o,Nt),l!==null){Qe=l;return}}else{if(l=V0(l,o),l!==null){l.flags&=32767,Qe=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{We=6,Qe=null;return}}if(o=o.sibling,o!==null){Qe=o;return}Qe=o=r}while(o!==null);We===0&&(We=5)}function _r(r,o,l){var c=Te,d=At.transition;try{At.transition=null,Te=1,Z0(r,o,l,c)}finally{At.transition=d,Te=c}return null}function Z0(r,o,l,c){do ei();while(Zn!==null);if((Ee&6)!==0)throw Error(i(327));l=r.finishedWork;var d=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(i(177));r.callbackNode=null,r.callbackPriority=0;var y=l.lanes|l.childLanes;if(Om(r,y),r===Xe&&(Qe=Xe=null,Je=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||zs||(zs=!0,nd(qo,function(){return ei(),null})),y=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||y){y=At.transition,At.transition=null;var _=Te;Te=1;var E=Ee;Ee|=4,Ga.current=null,B0(r,l),Hh(l,r),v0(ia),Xo=!!ra,ia=ra=null,r.current=l,W0(l),Sm(),Ee=E,Te=_,At.transition=y}else r.current=l;if(zs&&(zs=!1,Zn=r,Ds=d),y=r.pendingLanes,y===0&&(Yn=null),Em(l.stateNode),vt(r,He()),o!==null)for(c=r.onRecoverableError,l=0;l<o.length;l++)d=o[l],c(d.value,{componentStack:d.stack,digest:d.digest});if(As)throw As=!1,r=Za,Za=null,r;return(Ds&1)!==0&&r.tag!==0&&ei(),y=r.pendingLanes,(y&1)!==0?r===Ja?eo++:(eo=0,Ja=r):eo=0,Wn(),null}function ei(){if(Zn!==null){var r=Fc(Ds),o=At.transition,l=Te;try{if(At.transition=null,Te=16>r?16:r,Zn===null)var c=!1;else{if(r=Zn,Zn=null,Ds=0,(Ee&6)!==0)throw Error(i(331));var d=Ee;for(Ee|=4,ae=r.current;ae!==null;){var y=ae,_=y.child;if((ae.flags&16)!==0){var E=y.deletions;if(E!==null){for(var j=0;j<E.length;j++){var H=E[j];for(ae=H;ae!==null;){var G=ae;switch(G.tag){case 0:case 11:case 15:Yi(8,G,y)}var J=G.child;if(J!==null)J.return=G,ae=J;else for(;ae!==null;){G=ae;var K=G.sibling,le=G.return;if(Ih(G),G===H){ae=null;break}if(K!==null){K.return=le,ae=K;break}ae=le}}}var ce=y.alternate;if(ce!==null){var he=ce.child;if(he!==null){ce.child=null;do{var qe=he.sibling;he.sibling=null,he=qe}while(he!==null)}}ae=y}}if((y.subtreeFlags&2064)!==0&&_!==null)_.return=y,ae=_;else e:for(;ae!==null;){if(y=ae,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Yi(9,y,y.return)}var $=y.sibling;if($!==null){$.return=y.return,ae=$;break e}ae=y.return}}var R=r.current;for(ae=R;ae!==null;){_=ae;var U=_.child;if((_.subtreeFlags&2064)!==0&&U!==null)U.return=_,ae=U;else e:for(_=R;ae!==null;){if(E=ae,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:js(9,E)}}catch(pe){Ue(E,E.return,pe)}if(E===_){ae=null;break e}var re=E.sibling;if(re!==null){re.return=E.return,ae=re;break e}ae=E.return}}if(Ee=d,Wn(),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(Vo,r)}catch{}c=!0}return c}finally{Te=l,At.transition=o}}return!1}function Jh(r,o,l){o=Xr(l,o),o=yh(r,o,1),r=Gn(r,o,1),o=ut(),r!==null&&(bi(r,1,o),vt(r,o))}function Ue(r,o,l){if(r.tag===3)Jh(r,r,l);else for(;o!==null;){if(o.tag===3){Jh(o,r,l);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Yn===null||!Yn.has(c))){r=Xr(l,r),r=vh(o,r,1),o=Gn(o,r,1),r=ut(),o!==null&&(bi(o,1,r),vt(o,r));break}}o=o.return}}function J0(r,o,l){var c=r.pingCache;c!==null&&c.delete(o),o=ut(),r.pingedLanes|=r.suspendedLanes&l,Xe===r&&(Je&l)===l&&(We===4||We===3&&(Je&130023424)===Je&&500>He()-Ya?xr(r,0):Xa|=l),vt(r,o)}function ed(r,o){o===0&&((r.mode&1)===0?o=1:(o=Bo,Bo<<=1,(Bo&130023424)===0&&(Bo=4194304)));var l=ut();r=kn(r,o),r!==null&&(bi(r,o,l),vt(r,l))}function ey(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),ed(r,l)}function ty(r,o){var l=0;switch(r.tag){case 13:var c=r.stateNode,d=r.memoizedState;d!==null&&(l=d.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(i(314))}c!==null&&c.delete(o),ed(r,l)}var td;td=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||pt.current)mt=!0;else{if((r.lanes&l)===0&&(o.flags&128)===0)return mt=!1,H0(r,o,l);mt=(r.flags&131072)!==0}else mt=!1,De&&(o.flags&1048576)!==0&&Af(o,ps,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;Ts(r,o),r=o.pendingProps;var d=Hr(o,nt.current);Kr(o,l),d=Pa(null,o,c,r,d,l);var y=Ta();return o.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,gt(c)?(y=!0,fs(o)):y=!1,o.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,wa(o),d.updater=Ns,o.stateNode=d,d._reactInternals=o,za(o,c,r,l),o=Fa(null,o,c,!0,y,l)):(o.tag=0,De&&y&&fa(o),at(null,o,d,l),o=o.child),o;case 16:c=o.elementType;e:{switch(Ts(r,o),r=o.pendingProps,d=c._init,c=d(c._payload),o.type=c,d=o.tag=ry(c),r=Vt(c,r),d){case 0:o=La(null,o,c,r,l);break e;case 1:o=Nh(null,o,c,r,l);break e;case 11:o=kh(null,o,c,r,l);break e;case 14:o=Sh(null,o,c,Vt(c.type,r),l);break e}throw Error(i(306,c,""))}return o;case 0:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Vt(c,d),La(r,o,c,d,l);case 1:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Vt(c,d),Nh(r,o,c,d,l);case 3:e:{if(Ph(o),r===null)throw Error(i(387));c=o.pendingProps,y=o.memoizedState,d=y.element,qf(r,o),_s(o,c,null,l);var _=o.memoizedState;if(c=_.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){d=Xr(Error(i(423)),o),o=Th(r,o,c,l,d);break e}else if(c!==d){d=Xr(Error(i(424)),o),o=Th(r,o,c,l,d);break e}else for(Et=Vn(o.stateNode.containerInfo.firstChild),Ct=o,De=!0,qt=null,l=Uf(o,null,c,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Qr(),c===d){o=bn(r,o,l);break e}at(r,o,c,l)}o=o.child}return o;case 5:return Bf(o),r===null&&pa(o),c=o.type,d=o.pendingProps,y=r!==null?r.memoizedProps:null,_=d.children,oa(c,d)?_=null:y!==null&&oa(c,y)&&(o.flags|=32),Eh(r,o),at(r,o,_,l),o.child;case 6:return r===null&&pa(o),null;case 13:return Mh(r,o,l);case 4:return ka(o,o.stateNode.containerInfo),c=o.pendingProps,r===null?o.child=Br(o,null,c,l):at(r,o,c,l),o.child;case 11:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Vt(c,d),kh(r,o,c,d,l);case 7:return at(r,o,o.pendingProps,l),o.child;case 8:return at(r,o,o.pendingProps.children,l),o.child;case 12:return at(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(c=o.type._context,d=o.pendingProps,y=o.memoizedProps,_=d.value,Oe(ys,c._currentValue),c._currentValue=_,y!==null)if(Ht(y.value,_)){if(y.children===d.children&&!pt.current){o=bn(r,o,l);break e}}else for(y=o.child,y!==null&&(y.return=o);y!==null;){var E=y.dependencies;if(E!==null){_=y.child;for(var j=E.firstContext;j!==null;){if(j.context===c){if(y.tag===1){j=Sn(-1,l&-l),j.tag=2;var H=y.updateQueue;if(H!==null){H=H.shared;var G=H.pending;G===null?j.next=j:(j.next=G.next,G.next=j),H.pending=j}}y.lanes|=l,j=y.alternate,j!==null&&(j.lanes|=l),xa(y.return,l,o),E.lanes|=l;break}j=j.next}}else if(y.tag===10)_=y.type===o.type?null:y.child;else if(y.tag===18){if(_=y.return,_===null)throw Error(i(341));_.lanes|=l,E=_.alternate,E!==null&&(E.lanes|=l),xa(_,l,o),_=y.sibling}else _=y.child;if(_!==null)_.return=y;else for(_=y;_!==null;){if(_===o){_=null;break}if(y=_.sibling,y!==null){y.return=_.return,_=y;break}_=_.return}y=_}at(r,o,d.children,l),o=o.child}return o;case 9:return d=o.type,c=o.pendingProps.children,Kr(o,l),d=Ot(d),c=c(d),o.flags|=1,at(r,o,c,l),o.child;case 14:return c=o.type,d=Vt(c,o.pendingProps),d=Vt(c.type,d),Sh(r,o,c,d,l);case 15:return bh(r,o,o.type,o.pendingProps,l);case 17:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Vt(c,d),Ts(r,o),o.tag=1,gt(c)?(r=!0,fs(o)):r=!1,Kr(o,l),gh(o,c,d),za(o,c,d,l),Fa(null,o,c,!0,r,l);case 19:return Oh(r,o,l);case 22:return Ch(r,o,l)}throw Error(i(156,o.tag))};function nd(r,o){return Ac(r,o)}function ny(r,o,l,c){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(r,o,l,c){return new ny(r,o,l,c)}function ou(r){return r=r.prototype,!(!r||!r.isReactComponent)}function ry(r){if(typeof r=="function")return ou(r)?1:0;if(r!=null){if(r=r.$$typeof,r===oe)return 11;if(r===ee)return 14}return 2}function tr(r,o){var l=r.alternate;return l===null?(l=zt(r.tag,o,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=o,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,o=r.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function $s(r,o,l,c,d,y){var _=2;if(c=r,typeof r=="function")ou(r)&&(_=1);else if(typeof r=="string")_=5;else e:switch(r){case A:return wr(l.children,d,y,o);case L:_=8,d|=8;break;case W:return r=zt(12,l,o,d|2),r.elementType=W,r.lanes=y,r;case de:return r=zt(13,l,o,d),r.elementType=de,r.lanes=y,r;case F:return r=zt(19,l,o,d),r.elementType=F,r.lanes=y,r;case ne:return Us(l,d,y,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case X:_=10;break e;case Z:_=9;break e;case oe:_=11;break e;case ee:_=14;break e;case Q:_=16,c=null;break e}throw Error(i(130,r==null?r:typeof r,""))}return o=zt(_,l,o,d),o.elementType=r,o.type=c,o.lanes=y,o}function wr(r,o,l,c){return r=zt(7,r,c,o),r.lanes=l,r}function Us(r,o,l,c){return r=zt(22,r,c,o),r.elementType=ne,r.lanes=l,r.stateNode={isHidden:!1},r}function su(r,o,l){return r=zt(6,r,null,o),r.lanes=l,r}function lu(r,o,l){return o=zt(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function iy(r,o,l,c,d){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Al(0),this.expirationTimes=Al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Al(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function au(r,o,l,c,d,y,_,E,j){return r=new iy(r,o,l,E,j),o===1?(o=1,y===!0&&(o|=8)):o=0,y=zt(3,null,null,o),r.current=y,y.stateNode=r,y.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},wa(y),r}function oy(r,o,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:c==null?null:""+c,children:r,containerInfo:o,implementation:l}}function rd(r){if(!r)return Bn;r=r._reactInternals;e:{if(ur(r)!==r||r.tag!==1)throw Error(i(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(gt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(r.tag===1){var l=r.type;if(gt(l))return jf(r,l,o)}return o}function id(r,o,l,c,d,y,_,E,j){return r=au(l,c,!0,r,d,y,_,E,j),r.context=rd(null),l=r.current,c=ut(),d=Jn(l),y=Sn(c,d),y.callback=o??null,Gn(l,y,d),r.current.lanes=d,bi(r,d,c),vt(r,c),r}function Hs(r,o,l,c){var d=o.current,y=ut(),_=Jn(d);return l=rd(l),o.context===null?o.context=l:o.pendingContext=l,o=Sn(y,_),o.payload={element:r},c=c===void 0?null:c,c!==null&&(o.callback=c),r=Gn(d,o,_),r!==null&&(Wt(r,d,_,y),xs(r,d,_)),_}function qs(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function od(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function uu(r,o){od(r,o),(r=r.alternate)&&od(r,o)}function sy(){return null}var sd=typeof reportError=="function"?reportError:function(r){console.error(r)};function cu(r){this._internalRoot=r}Vs.prototype.render=cu.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(i(409));Hs(r,o,null,null)},Vs.prototype.unmount=cu.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;vr(function(){Hs(null,r,null,null)}),o[vn]=null}};function Vs(r){this._internalRoot=r}Vs.prototype.unstable_scheduleHydration=function(r){if(r){var o=Hc();r={blockedOn:null,target:r,priority:o};for(var l=0;l<Un.length&&o!==0&&o<Un[l].priority;l++);Un.splice(l,0,r),l===0&&Qc(r)}};function fu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Qs(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function ld(){}function ly(r,o,l,c,d){if(d){if(typeof c=="function"){var y=c;c=function(){var H=qs(_);y.call(H)}}var _=id(o,c,r,0,null,!1,!1,"",ld);return r._reactRootContainer=_,r[vn]=_.current,Li(r.nodeType===8?r.parentNode:r),vr(),_}for(;d=r.lastChild;)r.removeChild(d);if(typeof c=="function"){var E=c;c=function(){var H=qs(j);E.call(H)}}var j=au(r,0,!1,null,null,!1,!1,"",ld);return r._reactRootContainer=j,r[vn]=j.current,Li(r.nodeType===8?r.parentNode:r),vr(function(){Hs(o,j,l,c)}),j}function Bs(r,o,l,c,d){var y=l._reactRootContainer;if(y){var _=y;if(typeof d=="function"){var E=d;d=function(){var j=qs(_);E.call(j)}}Hs(o,_,r,d)}else _=ly(l,o,r,d,c);return qs(_)}$c=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=Si(o.pendingLanes);l!==0&&(zl(o,l|1),vt(o,He()),(Ee&6)===0&&(Jr=He()+500,Wn()))}break;case 13:vr(function(){var c=kn(r,1);if(c!==null){var d=ut();Wt(c,r,1,d)}}),uu(r,1)}},Dl=function(r){if(r.tag===13){var o=kn(r,134217728);if(o!==null){var l=ut();Wt(o,r,134217728,l)}uu(r,134217728)}},Uc=function(r){if(r.tag===13){var o=Jn(r),l=kn(r,o);if(l!==null){var c=ut();Wt(l,r,o,c)}uu(r,o)}},Hc=function(){return Te},qc=function(r,o){var l=Te;try{return Te=r,o()}finally{Te=l}},wi=function(r,o,l){switch(o){case"input":if(hi(r,l),o=l.name,l.type==="radio"&&o!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var c=l[o];if(c!==r&&c.form===r.form){var d=us(c);if(!d)throw Error(i(90));ci(c),hi(c,d)}}}break;case"textarea":Do(r,l);break;case"select":o=l.value,o!=null&&gn(r,!!l.multiple,o,!1)}},kt=nu,St=vr;var ay={usingClientEntryPoint:!1,Events:[Ui,$r,us,_e,ke,nu]},to={findFiberByHostInstance:cr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},uy={bundleType:to.bundleType,version:to.version,rendererPackageName:to.rendererPackageName,rendererConfig:to.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Oc(r),r===null?null:r.stateNode},findFiberByHostInstance:to.findFiberByHostInstance||sy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ws=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ws.isDisabled&&Ws.supportsFiber)try{Vo=Ws.inject(uy),rn=Ws}catch{}}return xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ay,xt.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fu(o))throw Error(i(200));return oy(r,o,null,l)},xt.createRoot=function(r,o){if(!fu(r))throw Error(i(299));var l=!1,c="",d=sd;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(d=o.onRecoverableError)),o=au(r,1,!1,null,null,l,!1,c,d),r[vn]=o.current,Li(r.nodeType===8?r.parentNode:r),new cu(o)},xt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=Oc(o),r=r===null?null:r.stateNode,r},xt.flushSync=function(r){return vr(r)},xt.hydrate=function(r,o,l){if(!Qs(o))throw Error(i(200));return Bs(null,r,o,!0,l)},xt.hydrateRoot=function(r,o,l){if(!fu(r))throw Error(i(405));var c=l!=null&&l.hydratedSources||null,d=!1,y="",_=sd;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(_=l.onRecoverableError)),o=id(o,null,r,1,l??null,d,!1,y,_),r[vn]=o.current,Li(r),c)for(r=0;r<c.length;r++)l=c[r],d=l._getVersion,d=d(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,d]:o.mutableSourceEagerHydrationData.push(l,d);return new Vs(o)},xt.render=function(r,o,l){if(!Qs(o))throw Error(i(200));return Bs(null,r,o,!1,l)},xt.unmountComponentAtNode=function(r){if(!Qs(r))throw Error(i(40));return r._reactRootContainer?(vr(function(){Bs(null,null,r,!1,function(){r._reactRootContainer=null,r[vn]=null})}),!0):!1},xt.unstable_batchedUpdates=nu,xt.unstable_renderSubtreeIntoContainer=function(r,o,l,c){if(!Qs(l))throw Error(i(200));if(r==null||r._reactInternals===void 0)throw Error(i(38));return Bs(r,o,l,!1,c)},xt.version="18.3.1-next-f1338f8080-20240426",xt}var bd;function Xy(){if(bd)return gu.exports;bd=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(n){console.error(n)}}return e(),gu.exports=Gy(),gu.exports}var Cd;function Yy(){if(Cd)return Gs;Cd=1;var e=Xy();return Gs.createRoot=e.createRoot,Gs.hydrateRoot=e.hydrateRoot,Gs}var Zy=Yy();/**
41
- * @license lucide-react v0.408.0 - ISC
42
- *
43
- * This source code is licensed under the ISC license.
44
- * See the LICENSE file in the root directory of this source tree.
45
- */const Jy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ig=(...e)=>e.filter((n,i,s)=>!!n&&s.indexOf(n)===i).join(" ");/**
46
- * @license lucide-react v0.408.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */var ev={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"};/**
51
- * @license lucide-react v0.408.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const tv=se.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,iconNode:f,...h},p)=>se.createElement("svg",{ref:p,...ev,width:n,height:n,stroke:e,strokeWidth:s?Number(i)*24/Number(n):i,className:ig("lucide",a),...h},[...f.map(([g,v])=>se.createElement(g,v)),...Array.isArray(u)?u:[u]]));/**
56
- * @license lucide-react v0.408.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const Zt=(e,n)=>{const i=se.forwardRef(({className:s,...a},u)=>se.createElement(tv,{ref:u,iconNode:n,className:ig(`lucide-${Jy(e)}`,s),...a}));return i.displayName=`${e}`,i};/**
61
- * @license lucide-react v0.408.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const nv=Zt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
66
- * @license lucide-react v0.408.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const rv=Zt("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/**
71
- * @license lucide-react v0.408.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const Ed=Zt("FileText",[["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"}]]);/**
76
- * @license lucide-react v0.408.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const vu=Zt("File",[["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"}]]);/**
81
- * @license lucide-react v0.408.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const iv=Zt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
86
- * @license lucide-react v0.408.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const xu=Zt("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
91
- * @license lucide-react v0.408.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const ti=Zt("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
96
- * @license lucide-react v0.408.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const ov=Zt("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
101
- * @license lucide-react v0.408.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const _u=Zt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
106
- * @license lucide-react v0.408.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const sv=Zt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
111
- * @license lucide-react v0.408.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const Nd=Zt("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);function Pd({children:e,variant:n="default",className:i=""}){const s="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",a={default:"bg-primary text-primary-foreground",outline:"border border-input bg-background text-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-destructive-foreground"};return N.jsx("span",{className:`${s} ${a[n]} ${i}`,children:e})}function Ve({children:e,variant:n="default",size:i="default",className:s="",onClick:a,disabled:u=!1,title:f,type:h="button"}){const p="inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none",g={default:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"},v={default:"h-10 px-4 py-2 text-sm",sm:"h-9 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8 text-sm",icon:"h-10 w-10 text-xs"};return N.jsx("button",{type:h,className:`${p} ${g[n]} ${v[i]} ${s}`,onClick:a,disabled:u,title:f,children:e})}function wu({type:e="text",placeholder:n,value:i,onChange:s,className:a="",disabled:u=!1,ref:f,multiple:h,accept:p,...g}){return N.jsx("input",{type:e,placeholder:n,value:i,onChange:s,disabled:u,multiple:h,accept:p,ref:f,className:`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${a}`,...g})}function lv(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,g=!1;try{if(u=(i=i.call(e)).next,n===0){if(Object(i)!==i)return;p=!1}else for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function av(e,n,i){return n=mv(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Td(e,n){return fv(e)||lv(e,n)||og(e,n)||pv()}function uv(e){return cv(e)||hv(e)||og(e)||dv()}function cv(e){if(Array.isArray(e))return $u(e)}function fv(e){if(Array.isArray(e))return e}function hv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function og(e,n){if(e){if(typeof e=="string")return $u(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return $u(e,n)}}function $u(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=new Array(n);i<n;i++)s[i]=e[i];return s}function dv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
116
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
117
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gv(e,n){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function mv(e){var n=gv(e,"string");return typeof n=="symbol"?n:String(n)}var yv=function(n,i){var s=new Set(i);return Object.assign.apply(Object,[{}].concat(uv(Object.entries(n).filter(function(a){var u=Td(a,1),f=u[0];return!s.has(f)}).map(function(a){var u=Td(a,2),f=u[0],h=u[1];return av({},f,h)}))))};function Uu(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function vv(e){if(Array.isArray(e))return e}function xv(e){if(Array.isArray(e))return Uu(e)}function _v(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wv(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,g=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function kv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
118
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
119
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bv(e,n){return vv(e)||wv(e,n)||sg(e,n)||kv()}function Md(e){return xv(e)||_v(e)||sg(e)||Sv()}function sg(e,n){if(e){if(typeof e=="string")return Uu(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Uu(e,n):void 0}}function Cv(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.wrapperElementType,s=i===void 0?"div":i,a=n.nodeMapper,u=a===void 0?function(v){return v}:a,f=n.methodNames,h=f===void 0?[]:f,p=n.initPropNames,g=p===void 0?[]:p;return se.forwardRef(function(v,m){var x=se.useRef(),w=se.useMemo(function(){var S=Object.fromEntries(g.filter(function(k){return v.hasOwnProperty(k)}).map(function(k){return[k,v[k]]}));return e(S)},[]);jd(function(){w(u(x.current))},se.useLayoutEffect),jd(function(){return w._destructor instanceof Function?w._destructor:void 0});var b=se.useCallback(function(S){for(var k=arguments.length,O=new Array(k>1?k-1:0),D=1;D<k;D++)O[D-1]=arguments[D];return w[S]instanceof Function?w[S].apply(w,O):void 0},[w]),C=se.useRef({});return Object.keys(yv(v,[].concat(Md(h),Md(g)))).filter(function(S){return C.current[S]!==v[S]}).forEach(function(S){return b(S,v[S])}),C.current=v,se.useImperativeHandle(m,function(){return Object.fromEntries(h.map(function(S){return[S,function(){for(var k=arguments.length,O=new Array(k),D=0;D<k;D++)O[D]=arguments[D];return b.apply(void 0,[S].concat(O))}]}))},[b]),fc.createElement(s,{ref:x})})}function jd(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se.useEffect,i=se.useRef(),s=se.useRef(!1),a=se.useRef(!1),u=se.useState(0),f=bv(u,2);f[0];var h=f[1];s.current&&(a.current=!0),n(function(){return s.current||(i.current=e(),s.current=!0),h(function(p){return p+1}),function(){a.current&&i.current&&i.current()}},[])}var Hu="http://www.w3.org/1999/xhtml";const Od={svg:"http://www.w3.org/2000/svg",xhtml:Hu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Sl(e){var n=e+="",i=n.indexOf(":");return i>=0&&(n=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Od.hasOwnProperty(n)?{space:Od[n],local:e}:e}function Ev(e){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Hu&&n.documentElement.namespaceURI===Hu?n.createElement(e):n.createElementNS(i,e)}}function Nv(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function lg(e){var n=Sl(e);return(n.local?Nv:Ev)(n)}function Pv(){}function hc(e){return e==null?Pv:function(){return this.querySelector(e)}}function Tv(e){typeof e!="function"&&(e=hc(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=new Array(f),p,g,v=0;v<f;++v)(p=u[v])&&(g=e.call(p,p.__data__,v,u))&&("__data__"in p&&(g.__data__=p.__data__),h[v]=g);return new Tt(s,this._parents)}function Mv(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function jv(){return[]}function ag(e){return e==null?jv:function(){return this.querySelectorAll(e)}}function Ov(e){return function(){return Mv(e.apply(this,arguments))}}function Rv(e){typeof e=="function"?e=Ov(e):e=ag(e);for(var n=this._groups,i=n.length,s=[],a=[],u=0;u<i;++u)for(var f=n[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&(s.push(e.call(p,p.__data__,g,f)),a.push(p));return new Tt(s,a)}function ug(e){return function(){return this.matches(e)}}function cg(e){return function(n){return n.matches(e)}}var Av=Array.prototype.find;function zv(e){return function(){return Av.call(this.children,e)}}function Dv(){return this.firstElementChild}function Iv(e){return this.select(e==null?Dv:zv(typeof e=="function"?e:cg(e)))}var Lv=Array.prototype.filter;function Fv(){return Array.from(this.children)}function $v(e){return function(){return Lv.call(this.children,e)}}function Uv(e){return this.selectAll(e==null?Fv:$v(typeof e=="function"?e:cg(e)))}function Hv(e){typeof e!="function"&&(e=ug(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=[],p,g=0;g<f;++g)(p=u[g])&&e.call(p,p.__data__,g,u)&&h.push(p);return new Tt(s,this._parents)}function fg(e){return new Array(e.length)}function qv(){return new Tt(this._enter||this._groups.map(fg),this._parents)}function cl(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}cl.prototype={constructor:cl,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Vv(e){return function(){return e}}function Qv(e,n,i,s,a,u){for(var f=0,h,p=n.length,g=u.length;f<g;++f)(h=n[f])?(h.__data__=u[f],s[f]=h):i[f]=new cl(e,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function Bv(e,n,i,s,a,u,f){var h,p,g=new Map,v=n.length,m=u.length,x=new Array(v),w;for(h=0;h<v;++h)(p=n[h])&&(x[h]=w=f.call(p,p.__data__,h,n)+"",g.has(w)?a[h]=p:g.set(w,p));for(h=0;h<m;++h)w=f.call(e,u[h],h,u)+"",(p=g.get(w))?(s[h]=p,p.__data__=u[h],g.delete(w)):i[h]=new cl(e,u[h]);for(h=0;h<v;++h)(p=n[h])&&g.get(x[h])===p&&(a[h]=p)}function Wv(e){return e.__data__}function Kv(e,n){if(!arguments.length)return Array.from(this,Wv);var i=n?Bv:Qv,s=this._parents,a=this._groups;typeof e!="function"&&(e=Vv(e));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),g=0;g<u;++g){var v=s[g],m=a[g],x=m.length,w=Gv(e.call(v,v&&v.__data__,g,s)),b=w.length,C=h[g]=new Array(b),S=f[g]=new Array(b),k=p[g]=new Array(x);i(v,m,C,S,k,w,n);for(var O=0,D=0,P,T;O<b;++O)if(P=C[O]){for(O>=D&&(D=O+1);!(T=S[D])&&++D<b;);P._next=T||null}}return f=new Tt(f,s),f._enter=h,f._exit=p,f}function Gv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Xv(){return new Tt(this._exit||this._groups.map(fg),this._parents)}function Yv(e,n,i){var s=this.enter(),a=this,u=this.exit();return typeof e=="function"?(s=e(s),s&&(s=s.selection())):s=s.append(e+""),n!=null&&(a=n(a),a&&(a=a.selection())),i==null?u.remove():i(u),s&&a?s.merge(a).order():a}function Zv(e){for(var n=e.selection?e.selection():e,i=this._groups,s=n._groups,a=i.length,u=s.length,f=Math.min(a,u),h=new Array(a),p=0;p<f;++p)for(var g=i[p],v=s[p],m=g.length,x=h[p]=new Array(m),w,b=0;b<m;++b)(w=g[b]||v[b])&&(x[b]=w);for(;p<a;++p)h[p]=i[p];return new Tt(h,this._parents)}function Jv(){for(var e=this._groups,n=-1,i=e.length;++n<i;)for(var s=e[n],a=s.length-1,u=s[a],f;--a>=0;)(f=s[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function e1(e){e||(e=t1);function n(m,x){return m&&x?e(m.__data__,x.__data__):!m-!x}for(var i=this._groups,s=i.length,a=new Array(s),u=0;u<s;++u){for(var f=i[u],h=f.length,p=a[u]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(p[v]=g);p.sort(n)}return new Tt(a,this._parents).order()}function t1(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function n1(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function r1(){return Array.from(this)}function i1(){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s=e[n],a=0,u=s.length;a<u;++a){var f=s[a];if(f)return f}return null}function o1(){let e=0;for(const n of this)++e;return e}function s1(){return!this.node()}function l1(e){for(var n=this._groups,i=0,s=n.length;i<s;++i)for(var a=n[i],u=0,f=a.length,h;u<f;++u)(h=a[u])&&e.call(h,h.__data__,u,a);return this}function a1(e){return function(){this.removeAttribute(e)}}function u1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function c1(e,n){return function(){this.setAttribute(e,n)}}function f1(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function h1(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttribute(e):this.setAttribute(e,i)}}function d1(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function p1(e,n){var i=Sl(e);if(arguments.length<2){var s=this.node();return i.local?s.getAttributeNS(i.space,i.local):s.getAttribute(i)}return this.each((n==null?i.local?u1:a1:typeof n=="function"?i.local?d1:h1:i.local?f1:c1)(i,n))}function hg(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function g1(e){return function(){this.style.removeProperty(e)}}function m1(e,n,i){return function(){this.style.setProperty(e,n,i)}}function y1(e,n,i){return function(){var s=n.apply(this,arguments);s==null?this.style.removeProperty(e):this.style.setProperty(e,s,i)}}function v1(e,n,i){return arguments.length>1?this.each((n==null?g1:typeof n=="function"?y1:m1)(e,n,i??"")):si(this.node(),e)}function si(e,n){return e.style.getPropertyValue(n)||hg(e).getComputedStyle(e,null).getPropertyValue(n)}function x1(e){return function(){delete this[e]}}function _1(e,n){return function(){this[e]=n}}function w1(e,n){return function(){var i=n.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function k1(e,n){return arguments.length>1?this.each((n==null?x1:typeof n=="function"?w1:_1)(e,n)):this.node()[e]}function dg(e){return e.trim().split(/^|\s+/)}function dc(e){return e.classList||new pg(e)}function pg(e){this._node=e,this._names=dg(e.getAttribute("class")||"")}pg.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function gg(e,n){for(var i=dc(e),s=-1,a=n.length;++s<a;)i.add(n[s])}function mg(e,n){for(var i=dc(e),s=-1,a=n.length;++s<a;)i.remove(n[s])}function S1(e){return function(){gg(this,e)}}function b1(e){return function(){mg(this,e)}}function C1(e,n){return function(){(n.apply(this,arguments)?gg:mg)(this,e)}}function E1(e,n){var i=dg(e+"");if(arguments.length<2){for(var s=dc(this.node()),a=-1,u=i.length;++a<u;)if(!s.contains(i[a]))return!1;return!0}return this.each((typeof n=="function"?C1:n?S1:b1)(i,n))}function N1(){this.textContent=""}function P1(e){return function(){this.textContent=e}}function T1(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function M1(e){return arguments.length?this.each(e==null?N1:(typeof e=="function"?T1:P1)(e)):this.node().textContent}function j1(){this.innerHTML=""}function O1(e){return function(){this.innerHTML=e}}function R1(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function A1(e){return arguments.length?this.each(e==null?j1:(typeof e=="function"?R1:O1)(e)):this.node().innerHTML}function z1(){this.nextSibling&&this.parentNode.appendChild(this)}function D1(){return this.each(z1)}function I1(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function L1(){return this.each(I1)}function F1(e){var n=typeof e=="function"?e:lg(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function $1(){return null}function U1(e,n){var i=typeof e=="function"?e:lg(e),s=n==null?$1:typeof n=="function"?n:hc(n);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function H1(){var e=this.parentNode;e&&e.removeChild(this)}function q1(){return this.each(H1)}function V1(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function Q1(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function B1(e){return this.select(e?Q1:V1)}function W1(e){return arguments.length?this.property("__data__",e):this.node().__data__}function K1(e){return function(n){e.call(this,n,this.__data__)}}function G1(e){return e.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");return s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),{type:n,name:i}})}function X1(e){return function(){var n=this.__on;if(n){for(var i=0,s=-1,a=n.length,u;i<a;++i)u=n[i],(!e.type||u.type===e.type)&&u.name===e.name?this.removeEventListener(u.type,u.listener,u.options):n[++s]=u;++s?n.length=s:delete this.__on}}}function Y1(e,n,i){return function(){var s=this.__on,a,u=K1(n);if(s){for(var f=0,h=s.length;f<h;++f)if((a=s[f]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=i),a.value=n;return}}this.addEventListener(e.type,u,i),a={type:e.type,name:e.name,value:n,listener:u,options:i},s?s.push(a):this.__on=[a]}}function Z1(e,n,i){var s=G1(e+""),a,u=s.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,g=h.length,v;p<g;++p)for(a=0,v=h[p];a<u;++a)if((f=s[a]).type===v.type&&f.name===v.name)return v.value}return}for(h=n?Y1:X1,a=0;a<u;++a)this.each(h(s[a],n,i));return this}function yg(e,n,i){var s=hg(e),a=s.CustomEvent;typeof a=="function"?a=new a(n,i):(a=s.document.createEvent("Event"),i?(a.initEvent(n,i.bubbles,i.cancelable),a.detail=i.detail):a.initEvent(n,!1,!1)),e.dispatchEvent(a)}function J1(e,n){return function(){return yg(this,e,n)}}function ex(e,n){return function(){return yg(this,e,n.apply(this,arguments))}}function tx(e,n){return this.each((typeof n=="function"?ex:J1)(e,n))}function*nx(){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s=e[n],a=0,u=s.length,f;a<u;++a)(f=s[a])&&(yield f)}var vg=[null];function Tt(e,n){this._groups=e,this._parents=n}function To(){return new Tt([[document.documentElement]],vg)}function rx(){return this}Tt.prototype=To.prototype={constructor:Tt,select:Tv,selectAll:Rv,selectChild:Iv,selectChildren:Uv,filter:Hv,data:Kv,enter:qv,exit:Xv,join:Yv,merge:Zv,selection:rx,order:Jv,sort:e1,call:n1,nodes:r1,node:i1,size:o1,empty:s1,each:l1,attr:p1,style:v1,property:k1,classed:E1,text:M1,html:A1,raise:D1,lower:L1,append:F1,insert:U1,remove:q1,clone:B1,datum:W1,on:Z1,dispatch:tx,[Symbol.iterator]:nx};function Lt(e){return typeof e=="string"?new Tt([[document.querySelector(e)]],[document.documentElement]):new Tt([[e]],vg)}function ix(e){let n;for(;n=e.sourceEvent;)e=n;return e}function cn(e,n){if(e=ix(e),n===void 0&&(n=e.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var s=i.createSVGPoint();return s.x=e.clientX,s.y=e.clientY,s=s.matrixTransform(n.getScreenCTM().inverse()),[s.x,s.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}}return[e.pageX,e.pageY]}var ox={value:()=>{}};function Mo(){for(var e=0,n=arguments.length,i={},s;e<n;++e){if(!(s=arguments[e]+"")||s in i||/[\s.]/.test(s))throw new Error("illegal type: "+s);i[s]=[]}return new rl(i)}function rl(e){this._=e}function sx(e,n){return e.trim().split(/^|\s+/).map(function(i){var s="",a=i.indexOf(".");if(a>=0&&(s=i.slice(a+1),i=i.slice(0,a)),i&&!n.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:s}})}rl.prototype=Mo.prototype={constructor:rl,on:function(e,n){var i=this._,s=sx(e+"",i),a,u=-1,f=s.length;if(arguments.length<2){for(;++u<f;)if((a=(e=s[u]).type)&&(a=lx(i[a],e.name)))return a;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<f;)if(a=(e=s[u]).type)i[a]=Rd(i[a],e.name,n);else if(n==null)for(a in i)i[a]=Rd(i[a],e.name,null);return this},copy:function(){var e={},n=this._;for(var i in n)e[i]=n[i].slice();return new rl(e)},call:function(e,n){if((a=arguments.length-2)>0)for(var i=new Array(a),s=0,a,u;s<a;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(u=this._[e],s=0,a=u.length;s<a;++s)u[s].value.apply(n,i)},apply:function(e,n,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var s=this._[e],a=0,u=s.length;a<u;++a)s[a].value.apply(n,i)}};function lx(e,n){for(var i=0,s=e.length,a;i<s;++i)if((a=e[i]).name===n)return a.value}function Rd(e,n,i){for(var s=0,a=e.length;s<a;++s)if(e[s].name===n){e[s]=ox,e=e.slice(0,s).concat(e.slice(s+1));break}return i!=null&&e.push({name:n,value:i}),e}const ax={passive:!1},wo={capture:!0,passive:!1};function ku(e){e.stopImmediatePropagation()}function ii(e){e.preventDefault(),e.stopImmediatePropagation()}function xg(e){var n=e.document.documentElement,i=Lt(e).on("dragstart.drag",ii,wo);"onselectstart"in n?i.on("selectstart.drag",ii,wo):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function _g(e,n){var i=e.document.documentElement,s=Lt(e).on("dragstart.drag",null);n&&(s.on("click.drag",ii,wo),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in i?s.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}const Xs=e=>()=>e;function qu(e,{sourceEvent:n,subject:i,target:s,identifier:a,active:u,x:f,y:h,dx:p,dy:g,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}qu.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function ux(e){return!e.ctrlKey&&!e.button}function cx(){return this.parentNode}function fx(e,n){return n??{x:e.x,y:e.y}}function hx(){return navigator.maxTouchPoints||"ontouchstart"in this}function dx(){var e=ux,n=cx,i=fx,s=hx,a={},u=Mo("start","drag","end"),f=0,h,p,g,v,m=0;function x(P){P.on("mousedown.drag",w).filter(s).on("touchstart.drag",S).on("touchmove.drag",k,ax).on("touchend.drag touchcancel.drag",O).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(P,T){if(!(v||!e.call(this,P,T))){var z=D(this,n.call(this,P,T),P,T,"mouse");z&&(Lt(P.view).on("mousemove.drag",b,wo).on("mouseup.drag",C,wo),xg(P.view),ku(P),g=!1,h=P.clientX,p=P.clientY,z("start",P))}}function b(P){if(ii(P),!g){var T=P.clientX-h,z=P.clientY-p;g=T*T+z*z>m}a.mouse("drag",P)}function C(P){Lt(P.view).on("mousemove.drag mouseup.drag",null),_g(P.view,g),ii(P),a.mouse("end",P)}function S(P,T){if(e.call(this,P,T)){var z=P.changedTouches,A=n.call(this,P,T),L=z.length,W,X;for(W=0;W<L;++W)(X=D(this,A,P,T,z[W].identifier,z[W]))&&(ku(P),X("start",P,z[W]))}}function k(P){var T=P.changedTouches,z=T.length,A,L;for(A=0;A<z;++A)(L=a[T[A].identifier])&&(ii(P),L("drag",P,T[A]))}function O(P){var T=P.changedTouches,z=T.length,A,L;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),A=0;A<z;++A)(L=a[T[A].identifier])&&(ku(P),L("end",P,T[A]))}function D(P,T,z,A,L,W){var X=u.copy(),Z=cn(W||z,T),oe,de,F;if((F=i.call(P,new qu("beforestart",{sourceEvent:z,target:x,identifier:L,active:f,x:Z[0],y:Z[1],dx:0,dy:0,dispatch:X}),A))!=null)return oe=F.x-Z[0]||0,de=F.y-Z[1]||0,function ee(Q,ne,V){var Y=Z,B;switch(Q){case"start":a[L]=ee,B=f++;break;case"end":delete a[L],--f;case"drag":Z=cn(V||ne,T),B=f;break}X.call(Q,P,new qu(Q,{sourceEvent:ne,subject:F,target:x,identifier:L,active:B,x:Z[0]+oe,y:Z[1]+de,dx:Z[0]-Y[0],dy:Z[1]-Y[1],dispatch:X}),A)}}return x.filter=function(P){return arguments.length?(e=typeof P=="function"?P:Xs(!!P),x):e},x.container=function(P){return arguments.length?(n=typeof P=="function"?P:Xs(P),x):n},x.subject=function(P){return arguments.length?(i=typeof P=="function"?P:Xs(P),x):i},x.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:Xs(!!P),x):s},x.on=function(){var P=u.on.apply(u,arguments);return P===u?x:P},x.clickDistance=function(P){return arguments.length?(m=(P=+P)*P,x):Math.sqrt(m)},x}function pc(e,n,i){e.prototype=n.prototype=i,i.constructor=e}function wg(e,n){var i=Object.create(e.prototype);for(var s in n)i[s]=n[s];return i}function jo(){}var ko=.7,fl=1/ko,oi="\\s*([+-]?\\d+)\\s*",So="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",px=/^#([0-9a-f]{3,8})$/,gx=new RegExp(`^rgb\\(${oi},${oi},${oi}\\)$`),mx=new RegExp(`^rgb\\(${hn},${hn},${hn}\\)$`),yx=new RegExp(`^rgba\\(${oi},${oi},${oi},${So}\\)$`),vx=new RegExp(`^rgba\\(${hn},${hn},${hn},${So}\\)$`),xx=new RegExp(`^hsl\\(${So},${hn},${hn}\\)$`),_x=new RegExp(`^hsla\\(${So},${hn},${hn},${So}\\)$`),Ad={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};pc(jo,bo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zd,formatHex:zd,formatHex8:wx,formatHsl:kx,formatRgb:Dd,toString:Dd});function zd(){return this.rgb().formatHex()}function wx(){return this.rgb().formatHex8()}function kx(){return kg(this).formatHsl()}function Dd(){return this.rgb().formatRgb()}function bo(e){var n,i;return e=(e+"").trim().toLowerCase(),(n=px.exec(e))?(i=n[1].length,n=parseInt(n[1],16),i===6?Id(n):i===3?new _t(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Ys(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Ys(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=gx.exec(e))?new _t(n[1],n[2],n[3],1):(n=mx.exec(e))?new _t(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=yx.exec(e))?Ys(n[1],n[2],n[3],n[4]):(n=vx.exec(e))?Ys(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=xx.exec(e))?$d(n[1],n[2]/100,n[3]/100,1):(n=_x.exec(e))?$d(n[1],n[2]/100,n[3]/100,n[4]):Ad.hasOwnProperty(e)?Id(Ad[e]):e==="transparent"?new _t(NaN,NaN,NaN,0):null}function Id(e){return new _t(e>>16&255,e>>8&255,e&255,1)}function Ys(e,n,i,s){return s<=0&&(e=n=i=NaN),new _t(e,n,i,s)}function Sx(e){return e instanceof jo||(e=bo(e)),e?(e=e.rgb(),new _t(e.r,e.g,e.b,e.opacity)):new _t}function Vu(e,n,i,s){return arguments.length===1?Sx(e):new _t(e,n,i,s??1)}function _t(e,n,i,s){this.r=+e,this.g=+n,this.b=+i,this.opacity=+s}pc(_t,Vu,wg(jo,{brighter(e){return e=e==null?fl:Math.pow(fl,e),new _t(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ko:Math.pow(ko,e),new _t(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _t(Cr(this.r),Cr(this.g),Cr(this.b),hl(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:Ld,formatHex:Ld,formatHex8:bx,formatRgb:Fd,toString:Fd}));function Ld(){return`#${br(this.r)}${br(this.g)}${br(this.b)}`}function bx(){return`#${br(this.r)}${br(this.g)}${br(this.b)}${br((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fd(){const e=hl(this.opacity);return`${e===1?"rgb(":"rgba("}${Cr(this.r)}, ${Cr(this.g)}, ${Cr(this.b)}${e===1?")":`, ${e})`}`}function hl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Cr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function br(e){return e=Cr(e),(e<16?"0":"")+e.toString(16)}function $d(e,n,i,s){return s<=0?e=n=i=NaN:i<=0||i>=1?e=n=NaN:n<=0&&(e=NaN),new Xt(e,n,i,s)}function kg(e){if(e instanceof Xt)return new Xt(e.h,e.s,e.l,e.opacity);if(e instanceof jo||(e=bo(e)),!e)return new Xt;if(e instanceof Xt)return e;e=e.rgb();var n=e.r/255,i=e.g/255,s=e.b/255,a=Math.min(n,i,s),u=Math.max(n,i,s),f=NaN,h=u-a,p=(u+a)/2;return h?(n===u?f=(i-s)/h+(i<s)*6:i===u?f=(s-n)/h+2:f=(n-i)/h+4,h/=p<.5?u+a:2-u-a,f*=60):h=p>0&&p<1?0:f,new Xt(f,h,p,e.opacity)}function Cx(e,n,i,s){return arguments.length===1?kg(e):new Xt(e,n,i,s??1)}function Xt(e,n,i,s){this.h=+e,this.s=+n,this.l=+i,this.opacity=+s}pc(Xt,Cx,wg(jo,{brighter(e){return e=e==null?fl:Math.pow(fl,e),new Xt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ko:Math.pow(ko,e),new Xt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*n,a=2*i-s;return new _t(Su(e>=240?e-240:e+120,a,s),Su(e,a,s),Su(e<120?e+240:e-120,a,s),this.opacity)},clamp(){return new Xt(Ud(this.h),Zs(this.s),Zs(this.l),hl(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=hl(this.opacity);return`${e===1?"hsl(":"hsla("}${Ud(this.h)}, ${Zs(this.s)*100}%, ${Zs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ud(e){return e=(e||0)%360,e<0?e+360:e}function Zs(e){return Math.max(0,Math.min(1,e||0))}function Su(e,n,i){return(e<60?n+(i-n)*e/60:e<180?i:e<240?n+(i-n)*(240-e)/60:n)*255}const Sg=e=>()=>e;function Ex(e,n){return function(i){return e+i*n}}function Nx(e,n,i){return e=Math.pow(e,i),n=Math.pow(n,i)-e,i=1/i,function(s){return Math.pow(e+s*n,i)}}function Px(e){return(e=+e)==1?bg:function(n,i){return i-n?Nx(n,i,e):Sg(isNaN(n)?i:n)}}function bg(e,n){var i=n-e;return i?Ex(e,i):Sg(isNaN(e)?n:e)}const Hd=function e(n){var i=Px(n);function s(a,u){var f=i((a=Vu(a)).r,(u=Vu(u)).r),h=i(a.g,u.g),p=i(a.b,u.b),g=bg(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=p(v),a.opacity=g(v),a+""}}return s.gamma=e,s}(1);function or(e,n){return e=+e,n=+n,function(i){return e*(1-i)+n*i}}var Qu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bu=new RegExp(Qu.source,"g");function Tx(e){return function(){return e}}function Mx(e){return function(n){return e(n)+""}}function jx(e,n){var i=Qu.lastIndex=bu.lastIndex=0,s,a,u,f=-1,h=[],p=[];for(e=e+"",n=n+"";(s=Qu.exec(e))&&(a=bu.exec(n));)(u=a.index)>i&&(u=n.slice(i,u),h[f]?h[f]+=u:h[++f]=u),(s=s[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,p.push({i:f,x:or(s,a)})),i=bu.lastIndex;return i<n.length&&(u=n.slice(i),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?Mx(p[0].x):Tx(n):(n=p.length,function(g){for(var v=0,m;v<n;++v)h[(m=p[v]).i]=m.x(g);return h.join("")})}var qd=180/Math.PI,Bu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Cg(e,n,i,s,a,u){var f,h,p;return(f=Math.sqrt(e*e+n*n))&&(e/=f,n/=f),(p=e*i+n*s)&&(i-=e*p,s-=n*p),(h=Math.sqrt(i*i+s*s))&&(i/=h,s/=h,p/=h),e*s<n*i&&(e=-e,n=-n,p=-p,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(n,e)*qd,skewX:Math.atan(p)*qd,scaleX:f,scaleY:h}}var Js;function Ox(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Bu:Cg(n.a,n.b,n.c,n.d,n.e,n.f)}function Rx(e){return e==null||(Js||(Js=document.createElementNS("http://www.w3.org/2000/svg","g")),Js.setAttribute("transform",e),!(e=Js.transform.baseVal.consolidate()))?Bu:(e=e.matrix,Cg(e.a,e.b,e.c,e.d,e.e,e.f))}function Eg(e,n,i,s){function a(g){return g.length?g.pop()+" ":""}function u(g,v,m,x,w,b){if(g!==m||v!==x){var C=w.push("translate(",null,n,null,i);b.push({i:C-4,x:or(g,m)},{i:C-2,x:or(v,x)})}else(m||x)&&w.push("translate("+m+n+x+i)}function f(g,v,m,x){g!==v?(g-v>180?v+=360:v-g>180&&(g+=360),x.push({i:m.push(a(m)+"rotate(",null,s)-2,x:or(g,v)})):v&&m.push(a(m)+"rotate("+v+s)}function h(g,v,m,x){g!==v?x.push({i:m.push(a(m)+"skewX(",null,s)-2,x:or(g,v)}):v&&m.push(a(m)+"skewX("+v+s)}function p(g,v,m,x,w,b){if(g!==m||v!==x){var C=w.push(a(w)+"scale(",null,",",null,")");b.push({i:C-4,x:or(g,m)},{i:C-2,x:or(v,x)})}else(m!==1||x!==1)&&w.push(a(w)+"scale("+m+","+x+")")}return function(g,v){var m=[],x=[];return g=e(g),v=e(v),u(g.translateX,g.translateY,v.translateX,v.translateY,m,x),f(g.rotate,v.rotate,m,x),h(g.skewX,v.skewX,m,x),p(g.scaleX,g.scaleY,v.scaleX,v.scaleY,m,x),g=v=null,function(w){for(var b=-1,C=x.length,S;++b<C;)m[(S=x[b]).i]=S.x(w);return m.join("")}}}var Ax=Eg(Ox,"px, ","px)","deg)"),zx=Eg(Rx,", ",")",")"),Dx=1e-12;function Vd(e){return((e=Math.exp(e))+1/e)/2}function Ix(e){return((e=Math.exp(e))-1/e)/2}function Lx(e){return((e=Math.exp(2*e))-1)/(e+1)}const Fx=function e(n,i,s){function a(u,f){var h=u[0],p=u[1],g=u[2],v=f[0],m=f[1],x=f[2],w=v-h,b=m-p,C=w*w+b*b,S,k;if(C<Dx)k=Math.log(x/g)/n,S=function(A){return[h+A*w,p+A*b,g*Math.exp(n*A*k)]};else{var O=Math.sqrt(C),D=(x*x-g*g+s*C)/(2*g*i*O),P=(x*x-g*g-s*C)/(2*x*i*O),T=Math.log(Math.sqrt(D*D+1)-D),z=Math.log(Math.sqrt(P*P+1)-P);k=(z-T)/n,S=function(A){var L=A*k,W=Vd(T),X=g/(i*O)*(W*Lx(n*L+T)-Ix(T));return[h+X*w,p+X*b,g*W/Vd(n*L+T)]}}return S.duration=k*1e3*n/Math.SQRT2,S}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,p=h*h;return e(f,h,p)},a}(Math.SQRT2,2,4);var li=0,ho=0,ro=0,Ng=1e3,dl,po,pl=0,Tr=0,bl=0,Co=typeof performance=="object"&&performance.now?performance:Date,Pg=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function gc(){return Tr||(Pg($x),Tr=Co.now()+bl)}function $x(){Tr=0}function gl(){this._call=this._time=this._next=null}gl.prototype=mc.prototype={constructor:gl,restart:function(e,n,i){if(typeof e!="function")throw new TypeError("callback is not a function");i=(i==null?gc():+i)+(n==null?0:+n),!this._next&&po!==this&&(po?po._next=this:dl=this,po=this),this._call=e,this._time=i,Wu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wu())}};function mc(e,n,i){var s=new gl;return s.restart(e,n,i),s}function Ux(){gc(),++li;for(var e=dl,n;e;)(n=Tr-e._time)>=0&&e._call.call(void 0,n),e=e._next;--li}function Qd(){Tr=(pl=Co.now())+bl,li=ho=0;try{Ux()}finally{li=0,qx(),Tr=0}}function Hx(){var e=Co.now(),n=e-pl;n>Ng&&(bl-=n,pl=e)}function qx(){for(var e,n=dl,i,s=1/0;n;)n._call?(s>n._time&&(s=n._time),e=n,n=n._next):(i=n._next,n._next=null,n=e?e._next=i:dl=i);po=e,Wu(s)}function Wu(e){if(!li){ho&&(ho=clearTimeout(ho));var n=e-Tr;n>24?(e<1/0&&(ho=setTimeout(Qd,e-Co.now()-bl)),ro&&(ro=clearInterval(ro))):(ro||(pl=Co.now(),ro=setInterval(Hx,Ng)),li=1,Pg(Qd))}}function Bd(e,n,i){var s=new gl;return n=n==null?0:+n,s.restart(a=>{s.stop(),e(a+n)},n,i),s}var Vx=Mo("start","end","cancel","interrupt"),Qx=[],Tg=0,Wd=1,Ku=2,il=3,Kd=4,Gu=5,ol=6;function Cl(e,n,i,s,a,u){var f=e.__transition;if(!f)e.__transition={};else if(i in f)return;Bx(e,i,{name:n,index:s,group:a,on:Vx,tween:Qx,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Tg})}function yc(e,n){var i=Jt(e,n);if(i.state>Tg)throw new Error("too late; already scheduled");return i}function pn(e,n){var i=Jt(e,n);if(i.state>il)throw new Error("too late; already running");return i}function Jt(e,n){var i=e.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function Bx(e,n,i){var s=e.__transition,a;s[n]=i,i.timer=mc(u,0,i.time);function u(g){i.state=Wd,i.timer.restart(f,i.delay,i.time),i.delay<=g&&f(g-i.delay)}function f(g){var v,m,x,w;if(i.state!==Wd)return p();for(v in s)if(w=s[v],w.name===i.name){if(w.state===il)return Bd(f);w.state===Kd?(w.state=ol,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete s[v]):+v<n&&(w.state=ol,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete s[v])}if(Bd(function(){i.state===il&&(i.state=Kd,i.timer.restart(h,i.delay,i.time),h(g))}),i.state=Ku,i.on.call("start",e,e.__data__,i.index,i.group),i.state===Ku){for(i.state=il,a=new Array(x=i.tween.length),v=0,m=-1;v<x;++v)(w=i.tween[v].value.call(e,e.__data__,i.index,i.group))&&(a[++m]=w);a.length=m+1}}function h(g){for(var v=g<i.duration?i.ease.call(null,g/i.duration):(i.timer.restart(p),i.state=Gu,1),m=-1,x=a.length;++m<x;)a[m].call(e,v);i.state===Gu&&(i.on.call("end",e,e.__data__,i.index,i.group),p())}function p(){i.state=ol,i.timer.stop(),delete s[n];for(var g in s)return;delete e.__transition}}function sl(e,n){var i=e.__transition,s,a,u=!0,f;if(i){n=n==null?null:n+"";for(f in i){if((s=i[f]).name!==n){u=!1;continue}a=s.state>Ku&&s.state<Gu,s.state=ol,s.timer.stop(),s.on.call(a?"interrupt":"cancel",e,e.__data__,s.index,s.group),delete i[f]}u&&delete e.__transition}}function Wx(e){return this.each(function(){sl(this,e)})}function Kx(e,n){var i,s;return function(){var a=pn(this,e),u=a.tween;if(u!==i){s=i=u;for(var f=0,h=s.length;f<h;++f)if(s[f].name===n){s=s.slice(),s.splice(f,1);break}}a.tween=s}}function Gx(e,n,i){var s,a;if(typeof i!="function")throw new Error;return function(){var u=pn(this,e),f=u.tween;if(f!==s){a=(s=f).slice();for(var h={name:n,value:i},p=0,g=a.length;p<g;++p)if(a[p].name===n){a[p]=h;break}p===g&&a.push(h)}u.tween=a}}function Xx(e,n){var i=this._id;if(e+="",arguments.length<2){for(var s=Jt(this.node(),i).tween,a=0,u=s.length,f;a<u;++a)if((f=s[a]).name===e)return f.value;return null}return this.each((n==null?Kx:Gx)(i,e,n))}function vc(e,n,i){var s=e._id;return e.each(function(){var a=pn(this,s);(a.value||(a.value={}))[n]=i.apply(this,arguments)}),function(a){return Jt(a,s).value[n]}}function Mg(e,n){var i;return(typeof n=="number"?or:n instanceof bo?Hd:(i=bo(n))?(n=i,Hd):jx)(e,n)}function Yx(e){return function(){this.removeAttribute(e)}}function Zx(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Jx(e,n,i){var s,a=i+"",u;return function(){var f=this.getAttribute(e);return f===a?null:f===s?u:u=n(s=f,i)}}function e_(e,n,i){var s,a=i+"",u;return function(){var f=this.getAttributeNS(e.space,e.local);return f===a?null:f===s?u:u=n(s=f,i)}}function t_(e,n,i){var s,a,u;return function(){var f,h=i(this),p;return h==null?void this.removeAttribute(e):(f=this.getAttribute(e),p=h+"",f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h)))}}function n_(e,n,i){var s,a,u;return function(){var f,h=i(this),p;return h==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),p=h+"",f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h)))}}function r_(e,n){var i=Sl(e),s=i==="transform"?zx:Mg;return this.attrTween(e,typeof n=="function"?(i.local?n_:t_)(i,s,vc(this,"attr."+e,n)):n==null?(i.local?Zx:Yx)(i):(i.local?e_:Jx)(i,s,n))}function i_(e,n){return function(i){this.setAttribute(e,n.call(this,i))}}function o_(e,n){return function(i){this.setAttributeNS(e.space,e.local,n.call(this,i))}}function s_(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&o_(e,u)),i}return a._value=n,a}function l_(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&i_(e,u)),i}return a._value=n,a}function a_(e,n){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;var s=Sl(e);return this.tween(i,(s.local?s_:l_)(s,n))}function u_(e,n){return function(){yc(this,e).delay=+n.apply(this,arguments)}}function c_(e,n){return n=+n,function(){yc(this,e).delay=n}}function f_(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?u_:c_)(n,e)):Jt(this.node(),n).delay}function h_(e,n){return function(){pn(this,e).duration=+n.apply(this,arguments)}}function d_(e,n){return n=+n,function(){pn(this,e).duration=n}}function p_(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?h_:d_)(n,e)):Jt(this.node(),n).duration}function g_(e,n){if(typeof n!="function")throw new Error;return function(){pn(this,e).ease=n}}function m_(e){var n=this._id;return arguments.length?this.each(g_(n,e)):Jt(this.node(),n).ease}function y_(e,n){return function(){var i=n.apply(this,arguments);if(typeof i!="function")throw new Error;pn(this,e).ease=i}}function v_(e){if(typeof e!="function")throw new Error;return this.each(y_(this._id,e))}function x_(e){typeof e!="function"&&(e=ug(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=[],p,g=0;g<f;++g)(p=u[g])&&e.call(p,p.__data__,g,u)&&h.push(p);return new An(s,this._parents,this._name,this._id)}function __(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,i=e._groups,s=n.length,a=i.length,u=Math.min(s,a),f=new Array(s),h=0;h<u;++h)for(var p=n[h],g=i[h],v=p.length,m=f[h]=new Array(v),x,w=0;w<v;++w)(x=p[w]||g[w])&&(m[w]=x);for(;h<s;++h)f[h]=n[h];return new An(f,this._parents,this._name,this._id)}function w_(e){return(e+"").trim().split(/^|\s+/).every(function(n){var i=n.indexOf(".");return i>=0&&(n=n.slice(0,i)),!n||n==="start"})}function k_(e,n,i){var s,a,u=w_(n)?yc:pn;return function(){var f=u(this,e),h=f.on;h!==s&&(a=(s=h).copy()).on(n,i),f.on=a}}function S_(e,n){var i=this._id;return arguments.length<2?Jt(this.node(),i).on.on(e):this.each(k_(i,e,n))}function b_(e){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==e)return;n&&n.removeChild(this)}}function C_(){return this.on("end.remove",b_(this._id))}function E_(e){var n=this._name,i=this._id;typeof e!="function"&&(e=hc(e));for(var s=this._groups,a=s.length,u=new Array(a),f=0;f<a;++f)for(var h=s[f],p=h.length,g=u[f]=new Array(p),v,m,x=0;x<p;++x)(v=h[x])&&(m=e.call(v,v.__data__,x,h))&&("__data__"in v&&(m.__data__=v.__data__),g[x]=m,Cl(g[x],n,i,x,g,Jt(v,i)));return new An(u,this._parents,n,i)}function N_(e){var n=this._name,i=this._id;typeof e!="function"&&(e=ag(e));for(var s=this._groups,a=s.length,u=[],f=[],h=0;h<a;++h)for(var p=s[h],g=p.length,v,m=0;m<g;++m)if(v=p[m]){for(var x=e.call(v,v.__data__,m,p),w,b=Jt(v,i),C=0,S=x.length;C<S;++C)(w=x[C])&&Cl(w,n,i,C,x,b);u.push(x),f.push(v)}return new An(u,f,n,i)}var P_=To.prototype.constructor;function T_(){return new P_(this._groups,this._parents)}function M_(e,n){var i,s,a;return function(){var u=si(this,e),f=(this.style.removeProperty(e),si(this,e));return u===f?null:u===i&&f===s?a:a=n(i=u,s=f)}}function jg(e){return function(){this.style.removeProperty(e)}}function j_(e,n,i){var s,a=i+"",u;return function(){var f=si(this,e);return f===a?null:f===s?u:u=n(s=f,i)}}function O_(e,n,i){var s,a,u;return function(){var f=si(this,e),h=i(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(e),si(this,e))),f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h))}}function R_(e,n){var i,s,a,u="style."+n,f="end."+u,h;return function(){var p=pn(this,e),g=p.on,v=p.value[u]==null?h||(h=jg(n)):void 0;(g!==i||a!==v)&&(s=(i=g).copy()).on(f,a=v),p.on=s}}function A_(e,n,i){var s=(e+="")=="transform"?Ax:Mg;return n==null?this.styleTween(e,M_(e,s)).on("end.style."+e,jg(e)):typeof n=="function"?this.styleTween(e,O_(e,s,vc(this,"style."+e,n))).each(R_(this._id,e)):this.styleTween(e,j_(e,s,n),i).on("end.style."+e,null)}function z_(e,n,i){return function(s){this.style.setProperty(e,n.call(this,s),i)}}function D_(e,n,i){var s,a;function u(){var f=n.apply(this,arguments);return f!==a&&(s=(a=f)&&z_(e,f,i)),s}return u._value=n,u}function I_(e,n,i){var s="style."+(e+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(n==null)return this.tween(s,null);if(typeof n!="function")throw new Error;return this.tween(s,D_(e,n,i??""))}function L_(e){return function(){this.textContent=e}}function F_(e){return function(){var n=e(this);this.textContent=n??""}}function $_(e){return this.tween("text",typeof e=="function"?F_(vc(this,"text",e)):L_(e==null?"":e+""))}function U_(e){return function(n){this.textContent=e.call(this,n)}}function H_(e){var n,i;function s(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&U_(a)),n}return s._value=e,s}function q_(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,H_(e))}function V_(){for(var e=this._name,n=this._id,i=Og(),s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,g=0;g<h;++g)if(p=f[g]){var v=Jt(p,n);Cl(p,e,i,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new An(s,this._parents,e,i)}function Q_(){var e,n,i=this,s=i._id,a=i.size();return new Promise(function(u,f){var h={value:f},p={value:function(){--a===0&&u()}};i.each(function(){var g=pn(this,s),v=g.on;v!==e&&(n=(e=v).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),g.on=n}),a===0&&u()})}var B_=0;function An(e,n,i,s){this._groups=e,this._parents=n,this._name=i,this._id=s}function Og(){return++B_}var En=To.prototype;An.prototype={constructor:An,select:E_,selectAll:N_,selectChild:En.selectChild,selectChildren:En.selectChildren,filter:x_,merge:__,selection:T_,transition:V_,call:En.call,nodes:En.nodes,node:En.node,size:En.size,empty:En.empty,each:En.each,on:S_,attr:r_,attrTween:a_,style:A_,styleTween:I_,text:$_,textTween:q_,remove:C_,tween:Xx,delay:f_,duration:p_,ease:m_,easeVarying:v_,end:Q_,[Symbol.iterator]:En[Symbol.iterator]};function W_(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var K_={time:null,delay:0,duration:250,ease:W_};function G_(e,n){for(var i;!(i=e.__transition)||!(i=i[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return i}function X_(e){var n,i;e instanceof An?(n=e._id,e=e._name):(n=Og(),(i=K_).time=gc(),e=e==null?null:e+"");for(var s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&Cl(p,e,n,g,f,i||G_(p,n));return new An(s,this._parents,e,n)}To.prototype.interrupt=Wx;To.prototype.transition=X_;const el=e=>()=>e;function Y_(e,{sourceEvent:n,target:i,transform:s,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:s,enumerable:!0,configurable:!0},_:{value:a}})}function jn(e,n,i){this.k=e,this.x=n,this.y=i}jn.prototype={constructor:jn,scale:function(e){return e===1?this:new jn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new jn(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var xc=new jn(1,0,0);un.prototype=jn.prototype;function un(e){for(;!e.__zoom;)if(!(e=e.parentNode))return xc;return e.__zoom}function Cu(e){e.stopImmediatePropagation()}function io(e){e.preventDefault(),e.stopImmediatePropagation()}function Z_(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function J_(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Gd(){return this.__zoom||xc}function ew(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function tw(){return navigator.maxTouchPoints||"ontouchstart"in this}function nw(e,n,i){var s=e.invertX(n[0][0])-i[0][0],a=e.invertX(n[1][0])-i[1][0],u=e.invertY(n[0][1])-i[0][1],f=e.invertY(n[1][1])-i[1][1];return e.translate(a>s?(s+a)/2:Math.min(0,s)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function rw(){var e=Z_,n=J_,i=nw,s=ew,a=tw,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=Fx,g=Mo("start","zoom","end"),v,m,x,w=500,b=150,C=0,S=10;function k(F){F.property("__zoom",Gd).on("wheel.zoom",L,{passive:!1}).on("mousedown.zoom",W).on("dblclick.zoom",X).filter(a).on("touchstart.zoom",Z).on("touchmove.zoom",oe).on("touchend.zoom touchcancel.zoom",de).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(F,ee,Q,ne){var V=F.selection?F.selection():F;V.property("__zoom",Gd),F!==V?T(F,ee,Q,ne):V.interrupt().each(function(){z(this,arguments).event(ne).start().zoom(null,typeof ee=="function"?ee.apply(this,arguments):ee).end()})},k.scaleBy=function(F,ee,Q,ne){k.scaleTo(F,function(){var V=this.__zoom.k,Y=typeof ee=="function"?ee.apply(this,arguments):ee;return V*Y},Q,ne)},k.scaleTo=function(F,ee,Q,ne){k.transform(F,function(){var V=n.apply(this,arguments),Y=this.__zoom,B=Q==null?P(V):typeof Q=="function"?Q.apply(this,arguments):Q,M=Y.invert(B),q=typeof ee=="function"?ee.apply(this,arguments):ee;return i(D(O(Y,q),B,M),V,f)},Q,ne)},k.translateBy=function(F,ee,Q,ne){k.transform(F,function(){return i(this.__zoom.translate(typeof ee=="function"?ee.apply(this,arguments):ee,typeof Q=="function"?Q.apply(this,arguments):Q),n.apply(this,arguments),f)},null,ne)},k.translateTo=function(F,ee,Q,ne,V){k.transform(F,function(){var Y=n.apply(this,arguments),B=this.__zoom,M=ne==null?P(Y):typeof ne=="function"?ne.apply(this,arguments):ne;return i(xc.translate(M[0],M[1]).scale(B.k).translate(typeof ee=="function"?-ee.apply(this,arguments):-ee,typeof Q=="function"?-Q.apply(this,arguments):-Q),Y,f)},ne,V)};function O(F,ee){return ee=Math.max(u[0],Math.min(u[1],ee)),ee===F.k?F:new jn(ee,F.x,F.y)}function D(F,ee,Q){var ne=ee[0]-Q[0]*F.k,V=ee[1]-Q[1]*F.k;return ne===F.x&&V===F.y?F:new jn(F.k,ne,V)}function P(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function T(F,ee,Q,ne){F.on("start.zoom",function(){z(this,arguments).event(ne).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(ne).end()}).tween("zoom",function(){var V=this,Y=arguments,B=z(V,Y).event(ne),M=n.apply(V,Y),q=Q==null?P(M):typeof Q=="function"?Q.apply(V,Y):Q,ue=Math.max(M[1][0]-M[0][0],M[1][1]-M[0][1]),fe=V.__zoom,ve=typeof ee=="function"?ee.apply(V,Y):ee,xe=p(fe.invert(q).concat(ue/fe.k),ve.invert(q).concat(ue/ve.k));return function(Se){if(Se===1)Se=ve;else{var be=xe(Se),Pe=ue/be[2];Se=new jn(Pe,q[0]-be[0]*Pe,q[1]-be[1]*Pe)}B.zoom(null,Se)}})}function z(F,ee,Q){return!Q&&F.__zooming||new A(F,ee)}function A(F,ee){this.that=F,this.args=ee,this.active=0,this.sourceEvent=null,this.extent=n.apply(F,ee),this.taps=0}A.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,ee){return this.mouse&&F!=="mouse"&&(this.mouse[1]=ee.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=ee.invert(this.touch0[0])),this.touch1&&F!=="touch"&&(this.touch1[1]=ee.invert(this.touch1[0])),this.that.__zoom=ee,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(F){var ee=Lt(this.that).datum();g.call(F,this.that,new Y_(F,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:g}),ee)}};function L(F,...ee){if(!e.apply(this,arguments))return;var Q=z(this,ee).event(F),ne=this.__zoom,V=Math.max(u[0],Math.min(u[1],ne.k*Math.pow(2,s.apply(this,arguments)))),Y=cn(F);if(Q.wheel)(Q.mouse[0][0]!==Y[0]||Q.mouse[0][1]!==Y[1])&&(Q.mouse[1]=ne.invert(Q.mouse[0]=Y)),clearTimeout(Q.wheel);else{if(ne.k===V)return;Q.mouse=[Y,ne.invert(Y)],sl(this),Q.start()}io(F),Q.wheel=setTimeout(B,b),Q.zoom("mouse",i(D(O(ne,V),Q.mouse[0],Q.mouse[1]),Q.extent,f));function B(){Q.wheel=null,Q.end()}}function W(F,...ee){if(x||!e.apply(this,arguments))return;var Q=F.currentTarget,ne=z(this,ee,!0).event(F),V=Lt(F.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",ue,!0),Y=cn(F,Q),B=F.clientX,M=F.clientY;xg(F.view),Cu(F),ne.mouse=[Y,this.__zoom.invert(Y)],sl(this),ne.start();function q(fe){if(io(fe),!ne.moved){var ve=fe.clientX-B,xe=fe.clientY-M;ne.moved=ve*ve+xe*xe>C}ne.event(fe).zoom("mouse",i(D(ne.that.__zoom,ne.mouse[0]=cn(fe,Q),ne.mouse[1]),ne.extent,f))}function ue(fe){V.on("mousemove.zoom mouseup.zoom",null),_g(fe.view,ne.moved),io(fe),ne.event(fe).end()}}function X(F,...ee){if(e.apply(this,arguments)){var Q=this.__zoom,ne=cn(F.changedTouches?F.changedTouches[0]:F,this),V=Q.invert(ne),Y=Q.k*(F.shiftKey?.5:2),B=i(D(O(Q,Y),ne,V),n.apply(this,ee),f);io(F),h>0?Lt(this).transition().duration(h).call(T,B,ne,F):Lt(this).call(k.transform,B,ne,F)}}function Z(F,...ee){if(e.apply(this,arguments)){var Q=F.touches,ne=Q.length,V=z(this,ee,F.changedTouches.length===ne).event(F),Y,B,M,q;for(Cu(F),B=0;B<ne;++B)M=Q[B],q=cn(M,this),q=[q,this.__zoom.invert(q),M.identifier],V.touch0?!V.touch1&&V.touch0[2]!==q[2]&&(V.touch1=q,V.taps=0):(V.touch0=q,Y=!0,V.taps=1+!!v);v&&(v=clearTimeout(v)),Y&&(V.taps<2&&(m=q[0],v=setTimeout(function(){v=null},w)),sl(this),V.start())}}function oe(F,...ee){if(this.__zooming){var Q=z(this,ee).event(F),ne=F.changedTouches,V=ne.length,Y,B,M,q;for(io(F),Y=0;Y<V;++Y)B=ne[Y],M=cn(B,this),Q.touch0&&Q.touch0[2]===B.identifier?Q.touch0[0]=M:Q.touch1&&Q.touch1[2]===B.identifier&&(Q.touch1[0]=M);if(B=Q.that.__zoom,Q.touch1){var ue=Q.touch0[0],fe=Q.touch0[1],ve=Q.touch1[0],xe=Q.touch1[1],Se=(Se=ve[0]-ue[0])*Se+(Se=ve[1]-ue[1])*Se,be=(be=xe[0]-fe[0])*be+(be=xe[1]-fe[1])*be;B=O(B,Math.sqrt(Se/be)),M=[(ue[0]+ve[0])/2,(ue[1]+ve[1])/2],q=[(fe[0]+xe[0])/2,(fe[1]+xe[1])/2]}else if(Q.touch0)M=Q.touch0[0],q=Q.touch0[1];else return;Q.zoom("touch",i(D(B,M,q),Q.extent,f))}}function de(F,...ee){if(this.__zooming){var Q=z(this,ee).event(F),ne=F.changedTouches,V=ne.length,Y,B;for(Cu(F),x&&clearTimeout(x),x=setTimeout(function(){x=null},w),Y=0;Y<V;++Y)B=ne[Y],Q.touch0&&Q.touch0[2]===B.identifier?delete Q.touch0:Q.touch1&&Q.touch1[2]===B.identifier&&delete Q.touch1;if(Q.touch1&&!Q.touch0&&(Q.touch0=Q.touch1,delete Q.touch1),Q.touch0)Q.touch0[1]=this.__zoom.invert(Q.touch0[0]);else if(Q.end(),Q.taps===2&&(B=cn(B,this),Math.hypot(m[0]-B[0],m[1]-B[1])<S)){var M=Lt(this).on("dblclick.zoom");M&&M.apply(this,arguments)}}}return k.wheelDelta=function(F){return arguments.length?(s=typeof F=="function"?F:el(+F),k):s},k.filter=function(F){return arguments.length?(e=typeof F=="function"?F:el(!!F),k):e},k.touchable=function(F){return arguments.length?(a=typeof F=="function"?F:el(!!F),k):a},k.extent=function(F){return arguments.length?(n=typeof F=="function"?F:el([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),k):n},k.scaleExtent=function(F){return arguments.length?(u[0]=+F[0],u[1]=+F[1],k):[u[0],u[1]]},k.translateExtent=function(F){return arguments.length?(f[0][0]=+F[0][0],f[1][0]=+F[1][0],f[0][1]=+F[0][1],f[1][1]=+F[1][1],k):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},k.constrain=function(F){return arguments.length?(i=F,k):i},k.duration=function(F){return arguments.length?(h=+F,k):h},k.interpolate=function(F){return arguments.length?(p=F,k):p},k.on=function(){var F=g.on.apply(g,arguments);return F===g?k:F},k.clickDistance=function(F){return arguments.length?(C=(F=+F)*F,k):Math.sqrt(C)},k.tapDistance=function(F){return arguments.length?(S=+F,k):S},k}class Xd extends Map{constructor(n,i=sw){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),n!=null)for(const[s,a]of n)this.set(s,a)}get(n){return super.get(Yd(this,n))}has(n){return super.has(Yd(this,n))}set(n,i){return super.set(iw(this,n),i)}delete(n){return super.delete(ow(this,n))}}function Yd({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):i}function iw({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):(e.set(s,i),i)}function ow({_intern:e,_key:n},i){const s=n(i);return e.has(s)&&(i=e.get(s),e.delete(s)),i}function sw(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Zd(e,n){let i;if(n===void 0)for(const s of e)s!=null&&(i<s||i===void 0&&s>=s)&&(i=s);else{let s=-1;for(let a of e)(a=n(a,++s,e))!=null&&(i<a||i===void 0&&a>=a)&&(i=a)}return i}function Jd(e,n){let i;if(n===void 0)for(const s of e)s!=null&&(i>s||i===void 0&&s>=s)&&(i=s);else{let s=-1;for(let a of e)(a=n(a,++s,e))!=null&&(i>a||i===void 0&&a>=a)&&(i=a)}return i}function lw(e,n){let i=0;for(let s of e)(s=+s)&&(i+=s);return i}var aw=typeof global=="object"&&global&&global.Object===Object&&global,uw=typeof self=="object"&&self&&self.Object===Object&&self,Rg=aw||uw||Function("return this")(),ml=Rg.Symbol,Ag=Object.prototype,cw=Ag.hasOwnProperty,fw=Ag.toString,oo=ml?ml.toStringTag:void 0;function hw(e){var n=cw.call(e,oo),i=e[oo];try{e[oo]=void 0;var s=!0}catch{}var a=fw.call(e);return s&&(n?e[oo]=i:delete e[oo]),a}var dw=Object.prototype,pw=dw.toString;function gw(e){return pw.call(e)}var mw="[object Null]",yw="[object Undefined]",ep=ml?ml.toStringTag:void 0;function vw(e){return e==null?e===void 0?yw:mw:ep&&ep in Object(e)?hw(e):gw(e)}function xw(e){return e!=null&&typeof e=="object"}var _w="[object Symbol]";function ww(e){return typeof e=="symbol"||xw(e)&&vw(e)==_w}var kw=/\s/;function Sw(e){for(var n=e.length;n--&&kw.test(e.charAt(n)););return n}var bw=/^\s+/;function Cw(e){return e&&e.slice(0,Sw(e)+1).replace(bw,"")}function yl(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var tp=NaN,Ew=/^[-+]0x[0-9a-f]+$/i,Nw=/^0b[01]+$/i,Pw=/^0o[0-7]+$/i,Tw=parseInt;function np(e){if(typeof e=="number")return e;if(ww(e))return tp;if(yl(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=yl(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Cw(e);var i=Nw.test(e);return i||Pw.test(e)?Tw(e.slice(2),i?2:8):Ew.test(e)?tp:+e}var Eu=function(){return Rg.Date.now()},Mw="Expected a function",jw=Math.max,Ow=Math.min;function zg(e,n,i){var s,a,u,f,h,p,g=0,v=!1,m=!1,x=!0;if(typeof e!="function")throw new TypeError(Mw);n=np(n)||0,yl(i)&&(v=!!i.leading,m="maxWait"in i,u=m?jw(np(i.maxWait)||0,n):u,x="trailing"in i?!!i.trailing:x);function w(z){var A=s,L=a;return s=a=void 0,g=z,f=e.apply(L,A),f}function b(z){return g=z,h=setTimeout(k,n),v?w(z):f}function C(z){var A=z-p,L=z-g,W=n-A;return m?Ow(W,u-L):W}function S(z){var A=z-p,L=z-g;return p===void 0||A>=n||A<0||m&&L>=u}function k(){var z=Eu();if(S(z))return O(z);h=setTimeout(k,C(z))}function O(z){return h=void 0,x&&s?w(z):(s=a=void 0,f)}function D(){h!==void 0&&clearTimeout(h),g=0,s=p=a=h=void 0}function P(){return h===void 0?f:O(Eu())}function T(){var z=Eu(),A=S(z);if(s=arguments,a=this,p=z,A){if(h===void 0)return b(p);if(m)return clearTimeout(h),h=setTimeout(k,n),w(p)}return h===void 0&&(h=setTimeout(k,n)),f}return T.cancel=D,T.flush=P,T}var Rw="Expected a function";function Aw(e,n,i){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(Rw);return yl(i)&&(s="leading"in i?!!i.leading:s,a="trailing"in i?!!i.trailing:a),zg(e,n,{leading:s,maxWait:n,trailing:a})}var Er=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var n=1.70158;return e===1?1:e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return e===0?0:--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}}),Bounce:Object.freeze({In:function(e){return 1-Er.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?Er.Bounce.In(e*2)*.5:Er.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return Math.pow(n,e)},Out:function(n){return 1-Math.pow(1-n,e)},InOut:function(n){return n<.5?Math.pow(n*2,e)/2:(1-Math.pow(2-n*2,e))/2+.5}}}}),go=function(){return performance.now()},Dg=function(){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,n)}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(i){return n._tweens[i]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];for(var a=0,u=i;a<u.length;a++){var f=u[a];(n=f._group)===null||n===void 0||n.remove(f),f._group=this,this._tweens[f.getId()]=f,this._tweensAddedDuringUpdate[f.getId()]=f}},e.prototype.remove=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var s=0,a=n;s<a.length;s++){var u=a[s];u._group=void 0,delete this._tweens[u.getId()],delete this._tweensAddedDuringUpdate[u.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(n){return!n.isPlaying()})},e.prototype.update=function(n,i){n===void 0&&(n=go()),i===void 0&&(i=!0);var s=Object.keys(this._tweens);if(s.length!==0)for(;s.length>0;){this._tweensAddedDuringUpdate={};for(var a=0;a<s.length;a++){var u=this._tweens[s[a]],f=!i;u&&u.update(n,f)===!1&&!i&&this.remove(u)}s=Object.keys(this._tweensAddedDuringUpdate)}},e}(),Xu={Linear:function(e,n){var i=e.length-1,s=i*n,a=Math.floor(s),u=Xu.Utils.Linear;return n<0?u(e[0],e[1],s):n>1?u(e[i],e[i-1],i-s):u(e[a],e[a+1>i?i:a+1],s-a)},Utils:{Linear:function(e,n,i){return(n-e)*i+e}}},Ig=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),Yu=new Dg,rp=function(){function e(n,i){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Er.Linear.None,this._interpolationFunction=Xu.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=Ig.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=n,typeof i=="object"?(this._group=i,i.add(this)):i===!0&&(this._group=Yu,Yu.add(this))}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(n,i){if(i===void 0&&(i=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=n,this._propertiesAreSetUp=!1,this._duration=i<0?0:i,this},e.prototype.duration=function(n){return n===void 0&&(n=1e3),this._duration=n<0?0:n,this},e.prototype.dynamic=function(n){return n===void 0&&(n=!1),this._isDynamic=n,this},e.prototype.start=function(n,i){if(n===void 0&&(n=go()),i===void 0&&(i=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var s in this._valuesStartRepeat)this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,!this._propertiesAreSetUp||i){if(this._propertiesAreSetUp=!0,!this._isDynamic){var a={};for(var u in this._valuesEnd)a[u]=this._valuesEnd[u];this._valuesEnd=a}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,i)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,i,s,a,u){for(var f in s){var h=n[f],p=Array.isArray(h),g=p?"array":typeof h,v=!p&&Array.isArray(s[f]);if(!(g==="undefined"||g==="function")){if(v){var m=s[f];if(m.length===0)continue;for(var x=[h],w=0,b=m.length;w<b;w+=1){var C=this._handleRelativeValue(h,m[w]);if(isNaN(C)){v=!1,console.warn("Found invalid interpolation list. Skipping.");break}x.push(C)}v&&(s[f]=x)}if((g==="object"||p)&&h&&!v){i[f]=p?[]:{};var S=h;for(var k in S)i[f][k]=S[k];a[f]=p?[]:{};var m=s[f];if(!this._isDynamic){var O={};for(var k in m)O[k]=m[k];s[f]=m=O}this._setupProperties(S,i[f],m,a[f],u)}else(typeof i[f]>"u"||u)&&(i[f]=h),p||(i[f]*=1),v?a[f]=s[f].slice().reverse():a[f]=i[f]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(n){return n===void 0&&(n=go()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=go()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var n=0,i=this._chainedTweens.length;n<i;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return n?(n.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var n;return(n=this._group)===null||n===void 0||n.remove(this),this},e.prototype.delay=function(n){return n===void 0&&(n=0),this._delayTime=n,this},e.prototype.repeat=function(n){return n===void 0&&(n=0),this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return n===void 0&&(n=!1),this._yoyo=n,this},e.prototype.easing=function(n){return n===void 0&&(n=Er.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=Xu.Linear),this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onEveryStart=function(n){return this._onEveryStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,i){var s=this,a;if(n===void 0&&(n=go()),i===void 0&&(i=e.autoStartOnUpdate),this._isPaused)return!0;var u;if(!this._goToEnd&&!this._isPlaying)if(i)this.start(n,!0);else return!1;if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var f=n-this._startTime,h=this._duration+((a=this._repeatDelayTime)!==null&&a!==void 0?a:this._delayTime),p=this._duration+this._repeat*h,g=function(){if(s._duration===0||f>p)return 1;var C=Math.trunc(f/h),S=f-C*h,k=Math.min(S/s._duration,1);return k===0&&f===s._duration?1:k},v=g(),m=this._easingFunction(v);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,m),this._onUpdateCallback&&this._onUpdateCallback(this._object,v),this._duration===0||f>=this._duration)if(this._repeat>0){var x=Math.min(Math.trunc((f-this._duration)/h)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=x);for(u in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[u]=="string"&&(this._valuesStartRepeat[u]=this._valuesStartRepeat[u]+parseFloat(this._valuesEnd[u])),this._yoyo&&this._swapEndStartRepeatValues(u),this._valuesStart[u]=this._valuesStartRepeat[u];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=h*x,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var w=0,b=this._chainedTweens.length;w<b;w++)this._chainedTweens[w].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,i,s,a){for(var u in s)if(i[u]!==void 0){var f=i[u]||0,h=s[u],p=Array.isArray(n[u]),g=Array.isArray(h),v=!p&&g;v?n[u]=this._interpolationFunction(h,a):typeof h=="object"&&h?this._updateProperties(n[u],f,h,a):(h=this._handleRelativeValue(f,h),typeof h=="number"&&(n[u]=f+(h-f)*a))}},e.prototype._handleRelativeValue=function(n,i){return typeof i!="string"?i:i.charAt(0)==="+"||i.charAt(0)==="-"?n+parseFloat(i):parseFloat(i)},e.prototype._swapEndStartRepeatValues=function(n){var i=this._valuesStartRepeat[n],s=this._valuesEnd[n];typeof s=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(s):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=i},e.autoStartOnUpdate=!1,e}();Ig.nextId;var dn=Yu;dn.getAll.bind(dn);dn.removeAll.bind(dn);dn.add.bind(dn);dn.remove.bind(dn);dn.update.bind(dn);function ip(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function zw(e){if(Array.isArray(e))return e}function Dw(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Iw(e,n,i){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Lw(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,g=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function Fw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
120
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $w(e,n){return zw(e)||Lw(e,n)||Uw(e,n)||Fw()}function Uw(e,n){if(e){if(typeof e=="string")return ip(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ip(e,n):void 0}}var Hw=Iw(function e(n,i){var s=i.default,a=s===void 0?null:s,u=i.triggerUpdate,f=u===void 0?!0:u,h=i.onChange,p=h===void 0?function(g,v){}:h;Dw(this,e),this.name=n,this.defaultVal=a,this.triggerUpdate=f,this.onChange=p});function _c(e){var n=e.stateInit,i=n===void 0?function(){return{}}:n,s=e.props,a=s===void 0?{}:s,u=e.methods,f=u===void 0?{}:u,h=e.aliases,p=h===void 0?{}:h,g=e.init,v=g===void 0?function(){}:g,m=e.update,x=m===void 0?function(){}:m,w=Object.keys(a).map(function(b){return new Hw(b,a[b])});return function b(){for(var C=arguments.length,S=new Array(C),k=0;k<C;k++)S[k]=arguments[k];var O=!!(this instanceof b&&this.constructor),D=O?S.shift():void 0,P=S[0],T=P===void 0?{}:P,z=Object.assign({},i instanceof Function?i(T):i,{initialised:!1}),A={};function L(Z){return W(Z,T),X(),L}var W=function(oe,de){v.call(L,oe,z,de),z.initialised=!0},X=zg(function(){z.initialised&&(x.call(L,z,A),A={})},1);return w.forEach(function(Z){L[Z.name]=oe(Z);function oe(de){var F=de.name,ee=de.triggerUpdate,Q=ee===void 0?!1:ee,ne=de.onChange,V=ne===void 0?function(M,q){}:ne,Y=de.defaultVal,B=Y===void 0?null:Y;return function(M){var q=z[F];if(!arguments.length)return q;var ue=M===void 0?B:M;return z[F]=ue,V.call(L,ue,z,q),!A.hasOwnProperty(F)&&(A[F]=q),Q&&X(),L}}}),Object.keys(f).forEach(function(Z){L[Z]=function(){for(var oe,de=arguments.length,F=new Array(de),ee=0;ee<de;ee++)F[ee]=arguments[ee];return(oe=f[Z]).call.apply(oe,[L,z].concat(F))}}),Object.entries(p).forEach(function(Z){var oe=$w(Z,2),de=oe[0],F=oe[1];return L[de]=L[F]}),L.resetProps=function(){return w.forEach(function(Z){L[Z.name](Z.defaultVal)}),L},L.resetProps(),z._rerender=X,O&&D&&L(D),L}}var Me=function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}};function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vl(e)}var qw=/^\s+/,Vw=/\s+$/;function ge(e,n){if(e=e||"",n=n||{},e instanceof ge)return e;if(!(this instanceof ge))return new ge(e,n);var i=Qw(e);this._originalInput=e,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||i.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}ge.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),i,s,a,u,f,h;return i=n.r/255,s=n.g/255,a=n.b/255,i<=.03928?u=i/12.92:u=Math.pow((i+.055)/1.055,2.4),s<=.03928?f=s/12.92:f=Math.pow((s+.055)/1.055,2.4),a<=.03928?h=a/12.92:h=Math.pow((a+.055)/1.055,2.4),.2126*u+.7152*f+.0722*h},setAlpha:function(n){return this._a=Lg(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=sp(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=sp(this._r,this._g,this._b),i=Math.round(n.h*360),s=Math.round(n.s*100),a=Math.round(n.v*100);return this._a==1?"hsv("+i+", "+s+"%, "+a+"%)":"hsva("+i+", "+s+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var n=op(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=op(this._r,this._g,this._b),i=Math.round(n.h*360),s=Math.round(n.s*100),a=Math.round(n.l*100);return this._a==1?"hsl("+i+", "+s+"%, "+a+"%)":"hsla("+i+", "+s+"%, "+a+"%, "+this._roundA+")"},toHex:function(n){return lp(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return Gw(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ie(this._r,255)*100)+"%",g:Math.round(Ie(this._g,255)*100)+"%",b:Math.round(Ie(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%)":"rgba("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:l2[lp(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var i="#"+ap(this._r,this._g,this._b,this._a),s=i,a=this._gradientType?"GradientType = 1, ":"";if(n){var u=ge(n);s="#"+ap(u._r,u._g,u._b,u._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+i+",endColorstr="+s+")"},toString:function(n){var i=!!n;n=n||this._format;var s=!1,a=this._a<1&&this._a>=0,u=!i&&a&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return u?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return ge(this.toString())},_applyModification:function(n,i){var s=n.apply(null,[this].concat([].slice.call(i)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(Jw,arguments)},brighten:function(){return this._applyModification(e2,arguments)},darken:function(){return this._applyModification(t2,arguments)},desaturate:function(){return this._applyModification(Xw,arguments)},saturate:function(){return this._applyModification(Yw,arguments)},greyscale:function(){return this._applyModification(Zw,arguments)},spin:function(){return this._applyModification(n2,arguments)},_applyCombination:function(n,i){return n.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(o2,arguments)},complement:function(){return this._applyCombination(r2,arguments)},monochromatic:function(){return this._applyCombination(s2,arguments)},splitcomplement:function(){return this._applyCombination(i2,arguments)},triad:function(){return this._applyCombination(up,[3])},tetrad:function(){return this._applyCombination(up,[4])}};ge.fromRatio=function(e,n){if(vl(e)=="object"){var i={};for(var s in e)e.hasOwnProperty(s)&&(s==="a"?i[s]=e[s]:i[s]=mo(e[s]));e=i}return ge(e,n)};function Qw(e){var n={r:0,g:0,b:0},i=1,s=null,a=null,u=null,f=!1,h=!1;return typeof e=="string"&&(e=f2(e)),vl(e)=="object"&&(Nn(e.r)&&Nn(e.g)&&Nn(e.b)?(n=Bw(e.r,e.g,e.b),f=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nn(e.h)&&Nn(e.s)&&Nn(e.v)?(s=mo(e.s),a=mo(e.v),n=Kw(e.h,s,a),f=!0,h="hsv"):Nn(e.h)&&Nn(e.s)&&Nn(e.l)&&(s=mo(e.s),u=mo(e.l),n=Ww(e.h,s,u),f=!0,h="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=Lg(i),{ok:f,format:e.format||h,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:i}}function Bw(e,n,i){return{r:Ie(e,255)*255,g:Ie(n,255)*255,b:Ie(i,255)*255}}function op(e,n,i){e=Ie(e,255),n=Ie(n,255),i=Ie(i,255);var s=Math.max(e,n,i),a=Math.min(e,n,i),u,f,h=(s+a)/2;if(s==a)u=f=0;else{var p=s-a;switch(f=h>.5?p/(2-s-a):p/(s+a),s){case e:u=(n-i)/p+(n<i?6:0);break;case n:u=(i-e)/p+2;break;case i:u=(e-n)/p+4;break}u/=6}return{h:u,s:f,l:h}}function Ww(e,n,i){var s,a,u;e=Ie(e,360),n=Ie(n,100),i=Ie(i,100);function f(g,v,m){return m<0&&(m+=1),m>1&&(m-=1),m<1/6?g+(v-g)*6*m:m<1/2?v:m<2/3?g+(v-g)*(2/3-m)*6:g}if(n===0)s=a=u=i;else{var h=i<.5?i*(1+n):i+n-i*n,p=2*i-h;s=f(p,h,e+1/3),a=f(p,h,e),u=f(p,h,e-1/3)}return{r:s*255,g:a*255,b:u*255}}function sp(e,n,i){e=Ie(e,255),n=Ie(n,255),i=Ie(i,255);var s=Math.max(e,n,i),a=Math.min(e,n,i),u,f,h=s,p=s-a;if(f=s===0?0:p/s,s==a)u=0;else{switch(s){case e:u=(n-i)/p+(n<i?6:0);break;case n:u=(i-e)/p+2;break;case i:u=(e-n)/p+4;break}u/=6}return{h:u,s:f,v:h}}function Kw(e,n,i){e=Ie(e,360)*6,n=Ie(n,100),i=Ie(i,100);var s=Math.floor(e),a=e-s,u=i*(1-n),f=i*(1-a*n),h=i*(1-(1-a)*n),p=s%6,g=[i,f,u,u,h,i][p],v=[h,i,i,f,u,u][p],m=[u,u,h,i,i,f][p];return{r:g*255,g:v*255,b:m*255}}function lp(e,n,i,s){var a=[Yt(Math.round(e).toString(16)),Yt(Math.round(n).toString(16)),Yt(Math.round(i).toString(16))];return s&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Gw(e,n,i,s,a){var u=[Yt(Math.round(e).toString(16)),Yt(Math.round(n).toString(16)),Yt(Math.round(i).toString(16)),Yt(Fg(s))];return a&&u[0].charAt(0)==u[0].charAt(1)&&u[1].charAt(0)==u[1].charAt(1)&&u[2].charAt(0)==u[2].charAt(1)&&u[3].charAt(0)==u[3].charAt(1)?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0)+u[3].charAt(0):u.join("")}function ap(e,n,i,s){var a=[Yt(Fg(s)),Yt(Math.round(e).toString(16)),Yt(Math.round(n).toString(16)),Yt(Math.round(i).toString(16))];return a.join("")}ge.equals=function(e,n){return!e||!n?!1:ge(e).toRgbString()==ge(n).toRgbString()};ge.random=function(){return ge.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Xw(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.s-=n/100,i.s=El(i.s),ge(i)}function Yw(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.s+=n/100,i.s=El(i.s),ge(i)}function Zw(e){return ge(e).desaturate(100)}function Jw(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.l+=n/100,i.l=El(i.l),ge(i)}function e2(e,n){n=n===0?0:n||10;var i=ge(e).toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(n/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(n/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(n/100)))),ge(i)}function t2(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.l-=n/100,i.l=El(i.l),ge(i)}function n2(e,n){var i=ge(e).toHsl(),s=(i.h+n)%360;return i.h=s<0?360+s:s,ge(i)}function r2(e){var n=ge(e).toHsl();return n.h=(n.h+180)%360,ge(n)}function up(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var i=ge(e).toHsl(),s=[ge(e)],a=360/n,u=1;u<n;u++)s.push(ge({h:(i.h+u*a)%360,s:i.s,l:i.l}));return s}function i2(e){var n=ge(e).toHsl(),i=n.h;return[ge(e),ge({h:(i+72)%360,s:n.s,l:n.l}),ge({h:(i+216)%360,s:n.s,l:n.l})]}function o2(e,n,i){n=n||6,i=i||30;var s=ge(e).toHsl(),a=360/i,u=[ge(e)];for(s.h=(s.h-(a*n>>1)+720)%360;--n;)s.h=(s.h+a)%360,u.push(ge(s));return u}function s2(e,n){n=n||6;for(var i=ge(e).toHsv(),s=i.h,a=i.s,u=i.v,f=[],h=1/n;n--;)f.push(ge({h:s,s:a,v:u})),u=(u+h)%1;return f}ge.mix=function(e,n,i){i=i===0?0:i||50;var s=ge(e).toRgb(),a=ge(n).toRgb(),u=i/100,f={r:(a.r-s.r)*u+s.r,g:(a.g-s.g)*u+s.g,b:(a.b-s.b)*u+s.b,a:(a.a-s.a)*u+s.a};return ge(f)};ge.readability=function(e,n){var i=ge(e),s=ge(n);return(Math.max(i.getLuminance(),s.getLuminance())+.05)/(Math.min(i.getLuminance(),s.getLuminance())+.05)};ge.isReadable=function(e,n,i){var s=ge.readability(e,n),a,u;switch(u=!1,a=h2(i),a.level+a.size){case"AAsmall":case"AAAlarge":u=s>=4.5;break;case"AAlarge":u=s>=3;break;case"AAAsmall":u=s>=7;break}return u};ge.mostReadable=function(e,n,i){var s=null,a=0,u,f,h,p;i=i||{},f=i.includeFallbackColors,h=i.level,p=i.size;for(var g=0;g<n.length;g++)u=ge.readability(e,n[g]),u>a&&(a=u,s=ge(n[g]));return ge.isReadable(e,s,{level:h,size:p})||!f?s:(i.includeFallbackColors=!1,ge.mostReadable(e,["#fff","#000"],i))};var Zu=ge.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},l2=ge.hexNames=a2(Zu);function a2(e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[e[i]]=i);return n}function Lg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ie(e,n){u2(e)&&(e="100%");var i=c2(e);return e=Math.min(n,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function El(e){return Math.min(1,Math.max(0,e))}function Pt(e){return parseInt(e,16)}function u2(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function c2(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Yt(e){return e.length==1?"0"+e:""+e}function mo(e){return e<=1&&(e=e*100+"%"),e}function Fg(e){return Math.round(parseFloat(e)*255).toString(16)}function cp(e){return Pt(e)/255}var Kt=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",i="(?:"+n+")|(?:"+e+")",s="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?";return{CSS_UNIT:new RegExp(i),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Nn(e){return!!Kt.CSS_UNIT.exec(e)}function f2(e){e=e.replace(qw,"").replace(Vw,"").toLowerCase();var n=!1;if(Zu[e])e=Zu[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i;return(i=Kt.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=Kt.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=Kt.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=Kt.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=Kt.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=Kt.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=Kt.hex8.exec(e))?{r:Pt(i[1]),g:Pt(i[2]),b:Pt(i[3]),a:cp(i[4]),format:n?"name":"hex8"}:(i=Kt.hex6.exec(e))?{r:Pt(i[1]),g:Pt(i[2]),b:Pt(i[3]),format:n?"name":"hex"}:(i=Kt.hex4.exec(e))?{r:Pt(i[1]+""+i[1]),g:Pt(i[2]+""+i[2]),b:Pt(i[3]+""+i[3]),a:cp(i[4]+""+i[4]),format:n?"name":"hex8"}:(i=Kt.hex3.exec(e))?{r:Pt(i[1]+""+i[1]),g:Pt(i[2]+""+i[2]),b:Pt(i[3]+""+i[3]),format:n?"name":"hex"}:!1}function h2(e){var n,i;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),i=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),i!=="small"&&i!=="large"&&(i="small"),{level:n,size:i}}function Ju(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function d2(e){if(Array.isArray(e))return Ju(e)}function $g(e,n,i){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:i;throw new TypeError("Private element is not present on this object")}function p2(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g2(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Dt(e,n){return e.get($g(e,n))}function fp(e,n,i){p2(e,n),n.set(e,i)}function hp(e,n,i){return e.set($g(e,n),i),i}function m2(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,k2(s.key),s)}}function y2(e,n,i){return n&&m2(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
121
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _2(e){return d2(e)||v2(e)||S2(e)||x2()}function w2(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function k2(e){var n=w2(e,"string");return typeof n=="symbol"?n:n+""}function S2(e,n){if(e){if(typeof e=="string")return Ju(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ju(e,n):void 0}}var b2=123,C2=function(n){return"#".concat(Math.min(n,Math.pow(2,24)).toString(16).padStart(6,"0"))},Ug=function(n,i,s){return(n<<16)+(i<<8)+s},E2=function(n){var i=ge(n).toRgb(),s=i.r,a=i.g,u=i.b;return Ug(s,a,u)},dp=function(n,i){return n*b2%Math.pow(2,i)},kr=new WeakMap,Pn=new WeakMap,N2=function(){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;g2(this,e),fp(this,kr,void 0),fp(this,Pn,void 0),hp(Pn,this,n),this.reset()}return y2(e,[{key:"reset",value:function(){hp(kr,this,["__reserved for background__"])}},{key:"register",value:function(i){if(Dt(kr,this).length>=Math.pow(2,24-Dt(Pn,this)))return null;var s=Dt(kr,this).length,a=dp(s,Dt(Pn,this)),u=C2(s+(a<<24-Dt(Pn,this)));return Dt(kr,this).push(i),u}},{key:"lookup",value:function(i){if(!i)return null;var s=typeof i=="string"?E2(i):Ug.apply(void 0,_2(i));if(!s)return null;var a=s&Math.pow(2,24-Dt(Pn,this))-1,u=s>>24-Dt(Pn,this)&Math.pow(2,Dt(Pn,this))-1;return dp(a,Dt(Pn,this))!==u||a>=Dt(kr,this).length?null:Dt(kr,this)[a]}}])}(),Oo,Le,Hg,qg,Sr,pp,Vg,Qg,Bg,wc,ec,tc,Eo={},Wg=[],P2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Nl=Array.isArray;function fn(e,n){for(var i in n)e[i]=n[i];return e}function kc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function T2(e,n,i){var s,a,u,f={};for(u in n)u=="key"?s=n[u]:u=="ref"?a=n[u]:f[u]=n[u];if(arguments.length>2&&(f.children=arguments.length>3?Oo.call(arguments,2):i),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)f[u]===void 0&&(f[u]=e.defaultProps[u]);return yo(e,f,s,a,null)}function yo(e,n,i,s,a){var u={type:e,props:n,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++Hg,__i:-1,__u:0};return a==null&&Le.vnode!=null&&Le.vnode(u),u}function Pl(e){return e.children}function ll(e,n){this.props=e,this.context=n}function ai(e,n){if(n==null)return e.__?ai(e.__,e.__i+1):null;for(var i;n<e.__k.length;n++)if((i=e.__k[n])!=null&&i.__e!=null)return i.__e;return typeof e.type=="function"?ai(e):null}function Kg(e){var n,i;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((i=e.__k[n])!=null&&i.__e!=null){e.__e=e.__c.base=i.__e;break}return Kg(e)}}function gp(e){(!e.__d&&(e.__d=!0)&&Sr.push(e)&&!xl.__r++||pp!=Le.debounceRendering)&&((pp=Le.debounceRendering)||Vg)(xl)}function xl(){for(var e,n,i,s,a,u,f,h=1;Sr.length;)Sr.length>h&&Sr.sort(Qg),e=Sr.shift(),h=Sr.length,e.__d&&(i=void 0,a=(s=(n=e).__v).__e,u=[],f=[],n.__P&&((i=fn({},s)).__v=s.__v+1,Le.vnode&&Le.vnode(i),Sc(n.__P,i,s,n.__n,n.__P.namespaceURI,32&s.__u?[a]:null,u,a??ai(s),!!(32&s.__u),f),i.__v=s.__v,i.__.__k[i.__i]=i,Yg(u,i,f),i.__e!=a&&Kg(i)));xl.__r=0}function Gg(e,n,i,s,a,u,f,h,p,g,v){var m,x,w,b,C,S,k=s&&s.__k||Wg,O=n.length;for(p=M2(i,n,k,p,O),m=0;m<O;m++)(w=i.__k[m])!=null&&(x=w.__i==-1?Eo:k[w.__i]||Eo,w.__i=m,S=Sc(e,w,x,a,u,f,h,p,g,v),b=w.__e,w.ref&&x.ref!=w.ref&&(x.ref&&bc(x.ref,null,w),v.push(w.ref,w.__c||b,w)),C==null&&b!=null&&(C=b),4&w.__u||x.__k===w.__k?p=Xg(w,p,e):typeof w.type=="function"&&S!==void 0?p=S:b&&(p=b.nextSibling),w.__u&=-7);return i.__e=C,p}function M2(e,n,i,s,a){var u,f,h,p,g,v=i.length,m=v,x=0;for(e.__k=new Array(a),u=0;u<a;u++)(f=n[u])!=null&&typeof f!="boolean"&&typeof f!="function"?(p=u+x,(f=e.__k[u]=typeof f=="string"||typeof f=="number"||typeof f=="bigint"||f.constructor==String?yo(null,f,null,null,null):Nl(f)?yo(Pl,{children:f},null,null,null):f.constructor==null&&f.__b>0?yo(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=e,f.__b=e.__b+1,h=null,(g=f.__i=j2(f,i,p,m))!=-1&&(m--,(h=i[g])&&(h.__u|=2)),h==null||h.__v==null?(g==-1&&(a>v?x--:a<v&&x++),typeof f.type!="function"&&(f.__u|=4)):g!=p&&(g==p-1?x--:g==p+1?x++:(g>p?x--:x++,f.__u|=4))):e.__k[u]=null;if(m)for(u=0;u<v;u++)(h=i[u])!=null&&(2&h.__u)==0&&(h.__e==s&&(s=ai(h)),Jg(h,h));return s}function Xg(e,n,i){var s,a;if(typeof e.type=="function"){for(s=e.__k,a=0;s&&a<s.length;a++)s[a]&&(s[a].__=e,n=Xg(s[a],n,i));return n}e.__e!=n&&(n&&e.type&&!i.contains(n)&&(n=ai(e)),i.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function j2(e,n,i,s){var a,u,f=e.key,h=e.type,p=n[i];if(p===null&&e.key==null||p&&f==p.key&&h==p.type&&(2&p.__u)==0)return i;if(s>(p!=null&&(2&p.__u)==0?1:0))for(a=i-1,u=i+1;a>=0||u<n.length;){if(a>=0){if((p=n[a])&&(2&p.__u)==0&&f==p.key&&h==p.type)return a;a--}if(u<n.length){if((p=n[u])&&(2&p.__u)==0&&f==p.key&&h==p.type)return u;u++}}return-1}function mp(e,n,i){n[0]=="-"?e.setProperty(n,i??""):e[n]=i==null?"":typeof i!="number"||P2.test(n)?i:i+"px"}function tl(e,n,i,s,a){var u,f;e:if(n=="style")if(typeof i=="string")e.style.cssText=i;else{if(typeof s=="string"&&(e.style.cssText=s=""),s)for(n in s)i&&n in i||mp(e.style,n,"");if(i)for(n in i)s&&i[n]==s[n]||mp(e.style,n,i[n])}else if(n[0]=="o"&&n[1]=="n")u=n!=(n=n.replace(Bg,"$1")),f=n.toLowerCase(),n=f in e||n=="onFocusOut"||n=="onFocusIn"?f.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+u]=i,i?s?i.u=s.u:(i.u=wc,e.addEventListener(n,u?tc:ec,u)):e.removeEventListener(n,u?tc:ec,u);else{if(a=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in e)try{e[n]=i??"";break e}catch{}typeof i=="function"||(i==null||i===!1&&n[4]!="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&i==1?"":i))}}function yp(e){return function(n){if(this.l){var i=this.l[n.type+e];if(n.t==null)n.t=wc++;else if(n.t<i.u)return;return i(Le.event?Le.event(n):n)}}}function Sc(e,n,i,s,a,u,f,h,p,g){var v,m,x,w,b,C,S,k,O,D,P,T,z,A,L,W,X,Z=n.type;if(n.constructor!=null)return null;128&i.__u&&(p=!!(32&i.__u),u=[h=n.__e=i.__e]),(v=Le.__b)&&v(n);e:if(typeof Z=="function")try{if(k=n.props,O="prototype"in Z&&Z.prototype.render,D=(v=Z.contextType)&&s[v.__c],P=v?D?D.props.value:v.__:s,i.__c?S=(m=n.__c=i.__c).__=m.__E:(O?n.__c=m=new Z(k,P):(n.__c=m=new ll(k,P),m.constructor=Z,m.render=R2),D&&D.sub(m),m.props=k,m.state||(m.state={}),m.context=P,m.__n=s,x=m.__d=!0,m.__h=[],m._sb=[]),O&&m.__s==null&&(m.__s=m.state),O&&Z.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=fn({},m.__s)),fn(m.__s,Z.getDerivedStateFromProps(k,m.__s))),w=m.props,b=m.state,m.__v=n,x)O&&Z.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),O&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else{if(O&&Z.getDerivedStateFromProps==null&&k!==w&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps(k,P),!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate(k,m.__s,P)===!1||n.__v==i.__v){for(n.__v!=i.__v&&(m.props=k,m.state=m.__s,m.__d=!1),n.__e=i.__e,n.__k=i.__k,n.__k.some(function(oe){oe&&(oe.__=n)}),T=0;T<m._sb.length;T++)m.__h.push(m._sb[T]);m._sb=[],m.__h.length&&f.push(m);break e}m.componentWillUpdate!=null&&m.componentWillUpdate(k,m.__s,P),O&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(w,b,C)})}if(m.context=P,m.props=k,m.__P=e,m.__e=!1,z=Le.__r,A=0,O){for(m.state=m.__s,m.__d=!1,z&&z(n),v=m.render(m.props,m.state,m.context),L=0;L<m._sb.length;L++)m.__h.push(m._sb[L]);m._sb=[]}else do m.__d=!1,z&&z(n),v=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++A<25);m.state=m.__s,m.getChildContext!=null&&(s=fn(fn({},s),m.getChildContext())),O&&!x&&m.getSnapshotBeforeUpdate!=null&&(C=m.getSnapshotBeforeUpdate(w,b)),W=v,v!=null&&v.type===Pl&&v.key==null&&(W=Zg(v.props.children)),h=Gg(e,Nl(W)?W:[W],n,i,s,a,u,f,h,p,g),m.base=n.__e,n.__u&=-161,m.__h.length&&f.push(m),S&&(m.__E=m.__=null)}catch(oe){if(n.__v=null,p||u!=null)if(oe.then){for(n.__u|=p?160:128;h&&h.nodeType==8&&h.nextSibling;)h=h.nextSibling;u[u.indexOf(h)]=null,n.__e=h}else for(X=u.length;X--;)kc(u[X]);else n.__e=i.__e,n.__k=i.__k;Le.__e(oe,n,i)}else u==null&&n.__v==i.__v?(n.__k=i.__k,n.__e=i.__e):h=n.__e=O2(i.__e,n,i,s,a,u,f,p,g);return(v=Le.diffed)&&v(n),128&n.__u?void 0:h}function Yg(e,n,i){for(var s=0;s<i.length;s++)bc(i[s],i[++s],i[++s]);Le.__c&&Le.__c(n,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(u){u.call(a)})}catch(u){Le.__e(u,a.__v)}})}function Zg(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Nl(e)?e.map(Zg):fn({},e)}function O2(e,n,i,s,a,u,f,h,p){var g,v,m,x,w,b,C,S=i.props,k=n.props,O=n.type;if(O=="svg"?a="http://www.w3.org/2000/svg":O=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),u!=null){for(g=0;g<u.length;g++)if((w=u[g])&&"setAttribute"in w==!!O&&(O?w.localName==O:w.nodeType==3)){e=w,u[g]=null;break}}if(e==null){if(O==null)return document.createTextNode(k);e=document.createElementNS(a,O,k.is&&k),h&&(Le.__m&&Le.__m(n,u),h=!1),u=null}if(O==null)S===k||h&&e.data==k||(e.data=k);else{if(u=u&&Oo.call(e.childNodes),S=i.props||Eo,!h&&u!=null)for(S={},g=0;g<e.attributes.length;g++)S[(w=e.attributes[g]).name]=w.value;for(g in S)if(w=S[g],g!="children"){if(g=="dangerouslySetInnerHTML")m=w;else if(!(g in k)){if(g=="value"&&"defaultValue"in k||g=="checked"&&"defaultChecked"in k)continue;tl(e,g,null,w,a)}}for(g in k)w=k[g],g=="children"?x=w:g=="dangerouslySetInnerHTML"?v=w:g=="value"?b=w:g=="checked"?C=w:h&&typeof w!="function"||S[g]===w||tl(e,g,w,S[g],a);if(v)h||m&&(v.__html==m.__html||v.__html==e.innerHTML)||(e.innerHTML=v.__html),n.__k=[];else if(m&&(e.innerHTML=""),Gg(n.type=="template"?e.content:e,Nl(x)?x:[x],n,i,s,O=="foreignObject"?"http://www.w3.org/1999/xhtml":a,u,f,u?u[0]:i.__k&&ai(i,0),h,p),u!=null)for(g=u.length;g--;)kc(u[g]);h||(g="value",O=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[g]||O=="progress"&&!b||O=="option"&&b!=S[g])&&tl(e,g,b,S[g],a),g="checked",C!=null&&C!=e[g]&&tl(e,g,C,S[g],a))}return e}function bc(e,n,i){try{if(typeof e=="function"){var s=typeof e.__u=="function";s&&e.__u(),s&&n==null||(e.__u=e(n))}else e.current=n}catch(a){Le.__e(a,i)}}function Jg(e,n,i){var s,a;if(Le.unmount&&Le.unmount(e),(s=e.ref)&&(s.current&&s.current!=e.__e||bc(s,null,n)),(s=e.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(u){Le.__e(u,n)}s.base=s.__P=null}if(s=e.__k)for(a=0;a<s.length;a++)s[a]&&Jg(s[a],n,i||typeof e.type!="function");i||kc(e.__e),e.__c=e.__=e.__e=void 0}function R2(e,n,i){return this.constructor(e,i)}function A2(e,n,i){var s,a,u,f;n==document&&(n=document.documentElement),Le.__&&Le.__(e,n),a=(s=!1)?null:n.__k,u=[],f=[],Sc(n,e=n.__k=T2(Pl,null,[e]),a||Eo,Eo,n.namespaceURI,a?null:n.firstChild?Oo.call(n.childNodes):null,u,a?a.__e:n.firstChild,s,f),Yg(u,e,f)}function em(e,n,i){var s,a,u,f,h=fn({},e.props);for(u in e.type&&e.type.defaultProps&&(f=e.type.defaultProps),n)u=="key"?s=n[u]:u=="ref"?a=n[u]:h[u]=n[u]===void 0&&f!=null?f[u]:n[u];return arguments.length>2&&(h.children=arguments.length>3?Oo.call(arguments,2):i),yo(e.type,h,s||e.key,a||e.ref,null)}Oo=Wg.slice,Le={__e:function(e,n,i,s){for(var a,u,f;n=n.__;)if((a=n.__c)&&!a.__)try{if((u=a.constructor)&&u.getDerivedStateFromError!=null&&(a.setState(u.getDerivedStateFromError(e)),f=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,s||{}),f=a.__d),f)return a.__E=a}catch(h){e=h}throw e}},Hg=0,qg=function(e){return e!=null&&e.constructor==null},ll.prototype.setState=function(e,n){var i;i=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=fn({},this.state),typeof e=="function"&&(e=e(fn({},i),this.props)),e&&fn(i,e),e!=null&&this.__v&&(n&&this._sb.push(n),gp(this))},ll.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),gp(this))},ll.prototype.render=Pl,Sr=[],Vg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qg=function(e,n){return e.__v.__b-n.__v.__b},xl.__r=0,Bg=/(PointerCapture)$|Capture$/i,wc=0,ec=yp(!1),tc=yp(!0);function vp(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function z2(e){if(Array.isArray(e))return e}function D2(e,n,i){return(n=H2(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function I2(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,g=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function L2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
122
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xp(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function F2(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?xp(Object(i),!0).forEach(function(s){D2(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):xp(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function $2(e,n){return z2(e)||I2(e,n)||q2(e,n)||L2()}function U2(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function H2(e){var n=U2(e,"string");return typeof n=="symbol"?n:n+""}function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_l(e)}function q2(e,n){if(e){if(typeof e=="string")return vp(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?vp(e,n):void 0}}var nc=function(n){if(_l(n)!=="object")return n;var i=em(n);if(i.props){var s;i.props=F2({},i.props),i!=null&&(s=i.props)!==null&&s!==void 0&&s.children&&(i.props.children=Array.isArray(i.props.children)?i.props.children.map(nc):nc(i.props.children))}return i},V2=function(n){return qg(em(n))},Q2=function(n,i){delete i.__k,A2(nc(n),i)};function B2(e,n){n===void 0&&(n={});var i=n.insertAt;if(!(typeof document>"u")){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",i==="top"&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var W2=`.float-tooltip-kap {
123
- position: absolute;
124
- width: max-content; /* prevent shrinking near right edge */
125
- max-width: max(50%, 150px);
126
- padding: 3px 5px;
127
- border-radius: 3px;
128
- font: 12px sans-serif;
129
- color: #eee;
130
- background: rgba(0,0,0,0.6);
131
- pointer-events: none;
132
- }
133
- `;B2(W2);var K2=_c({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(n,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=s.style,u=a===void 0?{}:a,f=!!n&&_l(n)==="object"&&!!n.node&&typeof n.node=="function",h=Lt(f?n.node():n);h.style("position")==="static"&&h.style("position","relative"),i.tooltipEl=h.append("div").attr("class","float-tooltip-kap"),Object.entries(u).forEach(function(g){var v=$2(g,2),m=v[0],x=v[1];return i.tooltipEl.style(m,x)}),i.tooltipEl.style("left","-10000px").style("display","none");var p="tooltip-".concat(Math.round(Math.random()*1e12));i.mouseInside=!1,h.on("mousemove.".concat(p),function(g){i.mouseInside=!0;var v=cn(g),m=h.node(),x=m.offsetWidth,w=m.offsetHeight,b=[i.offsetX===null||i.offsetX===void 0?"-".concat(v[0]/x*100,"%"):typeof i.offsetX=="number"?"calc(-50% + ".concat(i.offsetX,"px)"):i.offsetX,i.offsetY===null||i.offsetY===void 0?w>130&&w-v[1]<100?"calc(-100% - 6px)":"21px":typeof i.offsetY=="number"?i.offsetY<0?"calc(-100% - ".concat(Math.abs(i.offsetY),"px)"):"".concat(i.offsetY,"px"):i.offsetY];i.tooltipEl.style("left",v[0]+"px").style("top",v[1]+"px").style("transform","translate(".concat(b.join(","),")")),i.content&&i.tooltipEl.style("display","inline")}),h.on("mouseover.".concat(p),function(){i.mouseInside=!0,i.content&&i.tooltipEl.style("display","inline")}),h.on("mouseout.".concat(p),function(){i.mouseInside=!1,i.tooltipEl.style("display","none")})},update:function(n){n.tooltipEl.style("display",n.content&&n.mouseInside?"inline":"none"),n.content?n.content instanceof HTMLElement?(n.tooltipEl.text(""),n.tooltipEl.append(function(){return n.content})):typeof n.content=="string"?n.tooltipEl.html(n.content):V2(n.content)?(n.tooltipEl.text(""),Q2(n.content,n.tooltipEl.node())):(n.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",n.content,n.content.toString())):n.tooltipEl.text("")}});function G2(e,n,i){var s,a=1;e==null&&(e=0),n==null&&(n=0),i==null&&(i=0);function u(){var f,h=s.length,p,g=0,v=0,m=0;for(f=0;f<h;++f)p=s[f],g+=p.x||0,v+=p.y||0,m+=p.z||0;for(g=(g/h-e)*a,v=(v/h-n)*a,m=(m/h-i)*a,f=0;f<h;++f)p=s[f],g&&(p.x-=g),v&&(p.y-=v),m&&(p.z-=m)}return u.initialize=function(f){s=f},u.x=function(f){return arguments.length?(e=+f,u):e},u.y=function(f){return arguments.length?(n=+f,u):n},u.z=function(f){return arguments.length?(i=+f,u):i},u.strength=function(f){return arguments.length?(a=+f,u):a},u}function X2(e){const n=+this._x.call(null,e);return tm(this.cover(n),n,e)}function tm(e,n,i){if(isNaN(n))return e;var s,a=e._root,u={data:i},f=e._x0,h=e._x1,p,g,v,m,x;if(!a)return e._root=u,e;for(;a.length;)if((v=n>=(p=(f+h)/2))?f=p:h=p,s=a,!(a=a[m=+v]))return s[m]=u,e;if(g=+e._x.call(null,a.data),n===g)return u.next=a,s?s[m]=u:e._root=u,e;do s=s?s[m]=new Array(2):e._root=new Array(2),(v=n>=(p=(f+h)/2))?f=p:h=p;while((m=+v)==(x=+(g>=p)));return s[x]=a,s[m]=u,e}function Y2(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,i=new Float64Array(n);let s=1/0,a=-1/0;for(let u=0,f;u<n;++u)isNaN(f=+this._x.call(null,e[u]))||(i[u]=f,f<s&&(s=f),f>a&&(a=f));if(s>a)return this;this.cover(s).cover(a);for(let u=0;u<n;++u)tm(this,i[u],e[u]);return this}function Z2(e){if(isNaN(e=+e))return this;var n=this._x0,i=this._x1;if(isNaN(n))i=(n=Math.floor(e))+1;else{for(var s=i-n||1,a=this._root,u,f;n>e||e>=i;)switch(f=+(e<n),u=new Array(2),u[f]=a,a=u,s*=2,f){case 0:i=n+s;break;case 1:n=i-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._x1=i,this}function J2(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function ek(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Rn(e,n,i){this.node=e,this.x0=n,this.x1=i}function tk(e,n){var i,s=this._x0,a,u,f=this._x1,h=[],p=this._root,g,v;for(p&&h.push(new Rn(p,s,f)),n==null?n=1/0:(s=e-n,f=e+n);g=h.pop();)if(!(!(p=g.node)||(a=g.x0)>f||(u=g.x1)<s))if(p.length){var m=(a+u)/2;h.push(new Rn(p[1],m,u),new Rn(p[0],a,m)),(v=+(e>=m))&&(g=h[h.length-1],h[h.length-1]=h[h.length-1-v],h[h.length-1-v]=g)}else{var x=Math.abs(e-+this._x.call(null,p.data));x<n&&(n=x,s=e-x,f=e+x,i=p.data)}return i}function nk(e){if(isNaN(p=+this._x.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._x1,p,g,v,m,x;if(!i)return this;if(i.length)for(;;){if((v=p>=(g=(f+h)/2))?f=g:h=g,n=i,!(i=i[m=+v]))return this;if(!i.length)break;n[m+1&1]&&(s=n,x=m)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[m]=u:delete n[m],(i=n[0]||n[1])&&i===(n[1]||n[0])&&!i.length&&(s?s[x]=i:this._root=i),this):(this._root=u,this)}function rk(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function ik(){return this._root}function ok(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function sk(e){var n=[],i,s=this._root,a,u,f;for(s&&n.push(new Rn(s,this._x0,this._x1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.x1)&&s.length){var h=(u+f)/2;(a=s[1])&&n.push(new Rn(a,h,f)),(a=s[0])&&n.push(new Rn(a,u,h))}return this}function lk(e){var n=[],i=[],s;for(this._root&&n.push(new Rn(this._root,this._x0,this._x1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.x1,p=(f+h)/2;(u=a[0])&&n.push(new Rn(u,f,p)),(u=a[1])&&n.push(new Rn(u,p,h))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.x1);return this}function ak(e){return e[0]}function uk(e){return arguments.length?(this._x=e,this):this._x}function nm(e,n){var i=new Cc(n??ak,NaN,NaN);return e==null?i:i.addAll(e)}function Cc(e,n,i){this._x=e,this._x0=n,this._x1=i,this._root=void 0}function _p(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var wt=nm.prototype=Cc.prototype;wt.copy=function(){var e=new Cc(this._x,this._x0,this._x1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=_p(n),e;for(i=[{source:n,target:e._root=new Array(2)}];n=i.pop();)for(var a=0;a<2;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(2)}):n.target[a]=_p(s));return e};wt.add=X2;wt.addAll=Y2;wt.cover=Z2;wt.data=J2;wt.extent=ek;wt.find=tk;wt.remove=nk;wt.removeAll=rk;wt.root=ik;wt.size=ok;wt.visit=sk;wt.visitAfter=lk;wt.x=uk;function ck(e){const n=+this._x.call(null,e),i=+this._y.call(null,e);return rm(this.cover(n,i),n,i,e)}function rm(e,n,i,s){if(isNaN(n)||isNaN(i))return e;var a,u=e._root,f={data:s},h=e._x0,p=e._y0,g=e._x1,v=e._y1,m,x,w,b,C,S,k,O;if(!u)return e._root=f,e;for(;u.length;)if((C=n>=(m=(h+g)/2))?h=m:g=m,(S=i>=(x=(p+v)/2))?p=x:v=x,a=u,!(u=u[k=S<<1|C]))return a[k]=f,e;if(w=+e._x.call(null,u.data),b=+e._y.call(null,u.data),n===w&&i===b)return f.next=u,a?a[k]=f:e._root=f,e;do a=a?a[k]=new Array(4):e._root=new Array(4),(C=n>=(m=(h+g)/2))?h=m:g=m,(S=i>=(x=(p+v)/2))?p=x:v=x;while((k=S<<1|C)===(O=(b>=x)<<1|w>=m));return a[O]=u,a[k]=f,e}function fk(e){var n,i,s=e.length,a,u,f=new Array(s),h=new Array(s),p=1/0,g=1/0,v=-1/0,m=-1/0;for(i=0;i<s;++i)isNaN(a=+this._x.call(null,n=e[i]))||isNaN(u=+this._y.call(null,n))||(f[i]=a,h[i]=u,a<p&&(p=a),a>v&&(v=a),u<g&&(g=u),u>m&&(m=u));if(p>v||g>m)return this;for(this.cover(p,g).cover(v,m),i=0;i<s;++i)rm(this,f[i],h[i],e[i]);return this}function hk(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var i=this._x0,s=this._y0,a=this._x1,u=this._y1;if(isNaN(i))a=(i=Math.floor(e))+1,u=(s=Math.floor(n))+1;else{for(var f=a-i||1,h=this._root,p,g;i>e||e>=a||s>n||n>=u;)switch(g=(n<s)<<1|e<i,p=new Array(4),p[g]=h,h=p,f*=2,g){case 0:a=i+f,u=s+f;break;case 1:i=a-f,u=s+f;break;case 2:a=i+f,s=u-f;break;case 3:i=a-f,s=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=i,this._y0=s,this._x1=a,this._y1=u,this}function dk(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function pk(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function ft(e,n,i,s,a){this.node=e,this.x0=n,this.y0=i,this.x1=s,this.y1=a}function gk(e,n,i){var s,a=this._x0,u=this._y0,f,h,p,g,v=this._x1,m=this._y1,x=[],w=this._root,b,C;for(w&&x.push(new ft(w,a,u,v,m)),i==null?i=1/0:(a=e-i,u=n-i,v=e+i,m=n+i,i*=i);b=x.pop();)if(!(!(w=b.node)||(f=b.x0)>v||(h=b.y0)>m||(p=b.x1)<a||(g=b.y1)<u))if(w.length){var S=(f+p)/2,k=(h+g)/2;x.push(new ft(w[3],S,k,p,g),new ft(w[2],f,k,S,g),new ft(w[1],S,h,p,k),new ft(w[0],f,h,S,k)),(C=(n>=k)<<1|e>=S)&&(b=x[x.length-1],x[x.length-1]=x[x.length-1-C],x[x.length-1-C]=b)}else{var O=e-+this._x.call(null,w.data),D=n-+this._y.call(null,w.data),P=O*O+D*D;if(P<i){var T=Math.sqrt(i=P);a=e-T,u=n-T,v=e+T,m=n+T,s=w.data}}return s}function mk(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._x1,g=this._y1,v,m,x,w,b,C,S,k;if(!i)return this;if(i.length)for(;;){if((b=v>=(x=(f+p)/2))?f=x:p=x,(C=m>=(w=(h+g)/2))?h=w:g=w,n=i,!(i=i[S=C<<1|b]))return this;if(!i.length)break;(n[S+1&3]||n[S+2&3]||n[S+3&3])&&(s=n,k=S)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[S]=u:delete n[S],(i=n[0]||n[1]||n[2]||n[3])&&i===(n[3]||n[2]||n[1]||n[0])&&!i.length&&(s?s[k]=i:this._root=i),this):(this._root=u,this)}function yk(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function vk(){return this._root}function xk(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function _k(e){var n=[],i,s=this._root,a,u,f,h,p;for(s&&n.push(new ft(s,this._x0,this._y0,this._x1,this._y1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.y0,h=i.x1,p=i.y1)&&s.length){var g=(u+h)/2,v=(f+p)/2;(a=s[3])&&n.push(new ft(a,g,v,h,p)),(a=s[2])&&n.push(new ft(a,u,v,g,p)),(a=s[1])&&n.push(new ft(a,g,f,h,v)),(a=s[0])&&n.push(new ft(a,u,f,g,v))}return this}function wk(e){var n=[],i=[],s;for(this._root&&n.push(new ft(this._root,this._x0,this._y0,this._x1,this._y1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.y0,p=s.x1,g=s.y1,v=(f+p)/2,m=(h+g)/2;(u=a[0])&&n.push(new ft(u,f,h,v,m)),(u=a[1])&&n.push(new ft(u,v,h,p,m)),(u=a[2])&&n.push(new ft(u,f,m,v,g)),(u=a[3])&&n.push(new ft(u,v,m,p,g))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.x1,s.y1);return this}function kk(e){return e[0]}function Sk(e){return arguments.length?(this._x=e,this):this._x}function bk(e){return e[1]}function Ck(e){return arguments.length?(this._y=e,this):this._y}function im(e,n,i){var s=new Ec(n??kk,i??bk,NaN,NaN,NaN,NaN);return e==null?s:s.addAll(e)}function Ec(e,n,i,s,a,u){this._x=e,this._y=n,this._x0=i,this._y0=s,this._x1=a,this._y1=u,this._root=void 0}function wp(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var ht=im.prototype=Ec.prototype;ht.copy=function(){var e=new Ec(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=wp(n),e;for(i=[{source:n,target:e._root=new Array(4)}];n=i.pop();)for(var a=0;a<4;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(4)}):n.target[a]=wp(s));return e};ht.add=ck;ht.addAll=fk;ht.cover=hk;ht.data=dk;ht.extent=pk;ht.find=gk;ht.remove=mk;ht.removeAll=yk;ht.root=vk;ht.size=xk;ht.visit=_k;ht.visitAfter=wk;ht.x=Sk;ht.y=Ck;function Ek(e){const n=+this._x.call(null,e),i=+this._y.call(null,e),s=+this._z.call(null,e);return om(this.cover(n,i,s),n,i,s,e)}function om(e,n,i,s,a){if(isNaN(n)||isNaN(i)||isNaN(s))return e;var u,f=e._root,h={data:a},p=e._x0,g=e._y0,v=e._z0,m=e._x1,x=e._y1,w=e._z1,b,C,S,k,O,D,P,T,z,A,L;if(!f)return e._root=h,e;for(;f.length;)if((P=n>=(b=(p+m)/2))?p=b:m=b,(T=i>=(C=(g+x)/2))?g=C:x=C,(z=s>=(S=(v+w)/2))?v=S:w=S,u=f,!(f=f[A=z<<2|T<<1|P]))return u[A]=h,e;if(k=+e._x.call(null,f.data),O=+e._y.call(null,f.data),D=+e._z.call(null,f.data),n===k&&i===O&&s===D)return h.next=f,u?u[A]=h:e._root=h,e;do u=u?u[A]=new Array(8):e._root=new Array(8),(P=n>=(b=(p+m)/2))?p=b:m=b,(T=i>=(C=(g+x)/2))?g=C:x=C,(z=s>=(S=(v+w)/2))?v=S:w=S;while((A=z<<2|T<<1|P)===(L=(D>=S)<<2|(O>=C)<<1|k>=b));return u[L]=f,u[A]=h,e}function Nk(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,i=new Float64Array(n),s=new Float64Array(n),a=new Float64Array(n);let u=1/0,f=1/0,h=1/0,p=-1/0,g=-1/0,v=-1/0;for(let m=0,x,w,b,C;m<n;++m)isNaN(w=+this._x.call(null,x=e[m]))||isNaN(b=+this._y.call(null,x))||isNaN(C=+this._z.call(null,x))||(i[m]=w,s[m]=b,a[m]=C,w<u&&(u=w),w>p&&(p=w),b<f&&(f=b),b>g&&(g=b),C<h&&(h=C),C>v&&(v=C));if(u>p||f>g||h>v)return this;this.cover(u,f,h).cover(p,g,v);for(let m=0;m<n;++m)om(this,i[m],s[m],a[m],e[m]);return this}function Pk(e,n,i){if(isNaN(e=+e)||isNaN(n=+n)||isNaN(i=+i))return this;var s=this._x0,a=this._y0,u=this._z0,f=this._x1,h=this._y1,p=this._z1;if(isNaN(s))f=(s=Math.floor(e))+1,h=(a=Math.floor(n))+1,p=(u=Math.floor(i))+1;else{for(var g=f-s||1,v=this._root,m,x;s>e||e>=f||a>n||n>=h||u>i||i>=p;)switch(x=(i<u)<<2|(n<a)<<1|e<s,m=new Array(8),m[x]=v,v=m,g*=2,x){case 0:f=s+g,h=a+g,p=u+g;break;case 1:s=f-g,h=a+g,p=u+g;break;case 2:f=s+g,a=h-g,p=u+g;break;case 3:s=f-g,a=h-g,p=u+g;break;case 4:f=s+g,h=a+g,u=p-g;break;case 5:s=f-g,h=a+g,u=p-g;break;case 6:f=s+g,a=h-g,u=p-g;break;case 7:s=f-g,a=h-g,u=p-g;break}this._root&&this._root.length&&(this._root=v)}return this._x0=s,this._y0=a,this._z0=u,this._x1=f,this._y1=h,this._z1=p,this}function Tk(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function Mk(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function je(e,n,i,s,a,u,f){this.node=e,this.x0=n,this.y0=i,this.z0=s,this.x1=a,this.y1=u,this.z1=f}function jk(e,n,i,s){var a,u=this._x0,f=this._y0,h=this._z0,p,g,v,m,x,w,b=this._x1,C=this._y1,S=this._z1,k=[],O=this._root,D,P;for(O&&k.push(new je(O,u,f,h,b,C,S)),s==null?s=1/0:(u=e-s,f=n-s,h=i-s,b=e+s,C=n+s,S=i+s,s*=s);D=k.pop();)if(!(!(O=D.node)||(p=D.x0)>b||(g=D.y0)>C||(v=D.z0)>S||(m=D.x1)<u||(x=D.y1)<f||(w=D.z1)<h))if(O.length){var T=(p+m)/2,z=(g+x)/2,A=(v+w)/2;k.push(new je(O[7],T,z,A,m,x,w),new je(O[6],p,z,A,T,x,w),new je(O[5],T,g,A,m,z,w),new je(O[4],p,g,A,T,z,w),new je(O[3],T,z,v,m,x,A),new je(O[2],p,z,v,T,x,A),new je(O[1],T,g,v,m,z,A),new je(O[0],p,g,v,T,z,A)),(P=(i>=A)<<2|(n>=z)<<1|e>=T)&&(D=k[k.length-1],k[k.length-1]=k[k.length-1-P],k[k.length-1-P]=D)}else{var L=e-+this._x.call(null,O.data),W=n-+this._y.call(null,O.data),X=i-+this._z.call(null,O.data),Z=L*L+W*W+X*X;if(Z<s){var oe=Math.sqrt(s=Z);u=e-oe,f=n-oe,h=i-oe,b=e+oe,C=n+oe,S=i+oe,a=O.data}}return a}const Ok=(e,n,i,s,a,u)=>Math.sqrt((e-s)**2+(n-a)**2+(i-u)**2);function Rk(e,n,i,s){const a=[],u=e-s,f=n-s,h=i-s,p=e+s,g=n+s,v=i+s;return this.visit((m,x,w,b,C,S,k)=>{if(!m.length)do{const O=m.data;Ok(e,n,i,this._x(O),this._y(O),this._z(O))<=s&&a.push(O)}while(m=m.next);return x>p||w>g||b>v||C<u||S<f||k<h}),a}function Ak(e){if(isNaN(x=+this._x.call(null,e))||isNaN(w=+this._y.call(null,e))||isNaN(b=+this._z.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._z0,g=this._x1,v=this._y1,m=this._z1,x,w,b,C,S,k,O,D,P,T,z;if(!i)return this;if(i.length)for(;;){if((O=x>=(C=(f+g)/2))?f=C:g=C,(D=w>=(S=(h+v)/2))?h=S:v=S,(P=b>=(k=(p+m)/2))?p=k:m=k,n=i,!(i=i[T=P<<2|D<<1|O]))return this;if(!i.length)break;(n[T+1&7]||n[T+2&7]||n[T+3&7]||n[T+4&7]||n[T+5&7]||n[T+6&7]||n[T+7&7])&&(s=n,z=T)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[T]=u:delete n[T],(i=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&i===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!i.length&&(s?s[z]=i:this._root=i),this):(this._root=u,this)}function zk(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function Dk(){return this._root}function Ik(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function Lk(e){var n=[],i,s=this._root,a,u,f,h,p,g,v;for(s&&n.push(new je(s,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.y0,h=i.z0,p=i.x1,g=i.y1,v=i.z1)&&s.length){var m=(u+p)/2,x=(f+g)/2,w=(h+v)/2;(a=s[7])&&n.push(new je(a,m,x,w,p,g,v)),(a=s[6])&&n.push(new je(a,u,x,w,m,g,v)),(a=s[5])&&n.push(new je(a,m,f,w,p,x,v)),(a=s[4])&&n.push(new je(a,u,f,w,m,x,v)),(a=s[3])&&n.push(new je(a,m,x,h,p,g,w)),(a=s[2])&&n.push(new je(a,u,x,h,m,g,w)),(a=s[1])&&n.push(new je(a,m,f,h,p,x,w)),(a=s[0])&&n.push(new je(a,u,f,h,m,x,w))}return this}function Fk(e){var n=[],i=[],s;for(this._root&&n.push(new je(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.y0,p=s.z0,g=s.x1,v=s.y1,m=s.z1,x=(f+g)/2,w=(h+v)/2,b=(p+m)/2;(u=a[0])&&n.push(new je(u,f,h,p,x,w,b)),(u=a[1])&&n.push(new je(u,x,h,p,g,w,b)),(u=a[2])&&n.push(new je(u,f,w,p,x,v,b)),(u=a[3])&&n.push(new je(u,x,w,p,g,v,b)),(u=a[4])&&n.push(new je(u,f,h,b,x,w,m)),(u=a[5])&&n.push(new je(u,x,h,b,g,w,m)),(u=a[6])&&n.push(new je(u,f,w,b,x,v,m)),(u=a[7])&&n.push(new je(u,x,w,b,g,v,m))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.z0,s.x1,s.y1,s.z1);return this}function $k(e){return e[0]}function Uk(e){return arguments.length?(this._x=e,this):this._x}function Hk(e){return e[1]}function qk(e){return arguments.length?(this._y=e,this):this._y}function Vk(e){return e[2]}function Qk(e){return arguments.length?(this._z=e,this):this._z}function sm(e,n,i,s){var a=new Nc(n??$k,i??Hk,s??Vk,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?a:a.addAll(e)}function Nc(e,n,i,s,a,u,f,h,p){this._x=e,this._y=n,this._z=i,this._x0=s,this._y0=a,this._z0=u,this._x1=f,this._y1=h,this._z1=p,this._root=void 0}function kp(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var et=sm.prototype=Nc.prototype;et.copy=function(){var e=new Nc(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=kp(n),e;for(i=[{source:n,target:e._root=new Array(8)}];n=i.pop();)for(var a=0;a<8;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(8)}):n.target[a]=kp(s));return e};et.add=Ek;et.addAll=Nk;et.cover=Pk;et.data=Tk;et.extent=Mk;et.find=jk;et.findAllWithinRadius=Rk;et.remove=Ak;et.removeAll=zk;et.root=Dk;et.size=Ik;et.visit=Lk;et.visitAfter=Fk;et.x=Uk;et.y=qk;et.z=Qk;function On(e){return function(){return e}}function Mn(e){return(e()-.5)*1e-6}function Bk(e){return e.index}function Sp(e,n){var i=e.get(n);if(!i)throw new Error("node not found: "+n);return i}function Wk(e){var n=Bk,i=x,s,a=On(30),u,f,h,p,g,v,m=1;e==null&&(e=[]);function x(k){return 1/Math.min(p[k.source.index],p[k.target.index])}function w(k){for(var O=0,D=e.length;O<m;++O)for(var P=0,T,z,A,L=0,W=0,X=0,Z,oe;P<D;++P)T=e[P],z=T.source,A=T.target,L=A.x+A.vx-z.x-z.vx||Mn(v),h>1&&(W=A.y+A.vy-z.y-z.vy||Mn(v)),h>2&&(X=A.z+A.vz-z.z-z.vz||Mn(v)),Z=Math.sqrt(L*L+W*W+X*X),Z=(Z-u[P])/Z*k*s[P],L*=Z,W*=Z,X*=Z,A.vx-=L*(oe=g[P]),h>1&&(A.vy-=W*oe),h>2&&(A.vz-=X*oe),z.vx+=L*(oe=1-oe),h>1&&(z.vy+=W*oe),h>2&&(z.vz+=X*oe)}function b(){if(f){var k,O=f.length,D=e.length,P=new Map(f.map((z,A)=>[n(z,A,f),z])),T;for(k=0,p=new Array(O);k<D;++k)T=e[k],T.index=k,typeof T.source!="object"&&(T.source=Sp(P,T.source)),typeof T.target!="object"&&(T.target=Sp(P,T.target)),p[T.source.index]=(p[T.source.index]||0)+1,p[T.target.index]=(p[T.target.index]||0)+1;for(k=0,g=new Array(D);k<D;++k)T=e[k],g[k]=p[T.source.index]/(p[T.source.index]+p[T.target.index]);s=new Array(D),C(),u=new Array(D),S()}}function C(){if(f)for(var k=0,O=e.length;k<O;++k)s[k]=+i(e[k],k,e)}function S(){if(f)for(var k=0,O=e.length;k<O;++k)u[k]=+a(e[k],k,e)}return w.initialize=function(k,...O){f=k,v=O.find(D=>typeof D=="function")||Math.random,h=O.find(D=>[1,2,3].includes(D))||2,b()},w.links=function(k){return arguments.length?(e=k,b(),w):e},w.id=function(k){return arguments.length?(n=k,w):n},w.iterations=function(k){return arguments.length?(m=+k,w):m},w.strength=function(k){return arguments.length?(i=typeof k=="function"?k:On(+k),C(),w):i},w.distance=function(k){return arguments.length?(a=typeof k=="function"?k:On(+k),S(),w):a},w}const Kk=1664525,Gk=1013904223,bp=4294967296;function Xk(){let e=1;return()=>(e=(Kk*e+Gk)%bp)/bp}var Cp=3;function Nu(e){return e.x}function Ep(e){return e.y}function Yk(e){return e.z}var Zk=10,Jk=Math.PI*(3-Math.sqrt(5)),eS=Math.PI*20/(9+Math.sqrt(221));function tS(e,n){n=n||2;var i=Math.min(Cp,Math.max(1,Math.round(n))),s,a=1,u=.001,f=1-Math.pow(u,1/300),h=0,p=.6,g=new Map,v=mc(w),m=Mo("tick","end"),x=Xk();e==null&&(e=[]);function w(){b(),m.call("tick",s),a<u&&(v.stop(),m.call("end",s))}function b(k){var O,D=e.length,P;k===void 0&&(k=1);for(var T=0;T<k;++T)for(a+=(h-a)*f,g.forEach(function(z){z(a)}),O=0;O<D;++O)P=e[O],P.fx==null?P.x+=P.vx*=p:(P.x=P.fx,P.vx=0),i>1&&(P.fy==null?P.y+=P.vy*=p:(P.y=P.fy,P.vy=0)),i>2&&(P.fz==null?P.z+=P.vz*=p:(P.z=P.fz,P.vz=0));return s}function C(){for(var k=0,O=e.length,D;k<O;++k){if(D=e[k],D.index=k,D.fx!=null&&(D.x=D.fx),D.fy!=null&&(D.y=D.fy),D.fz!=null&&(D.z=D.fz),isNaN(D.x)||i>1&&isNaN(D.y)||i>2&&isNaN(D.z)){var P=Zk*(i>2?Math.cbrt(.5+k):i>1?Math.sqrt(.5+k):k),T=k*Jk,z=k*eS;i===1?D.x=P:i===2?(D.x=P*Math.cos(T),D.y=P*Math.sin(T)):(D.x=P*Math.sin(T)*Math.cos(z),D.y=P*Math.cos(T),D.z=P*Math.sin(T)*Math.sin(z))}(isNaN(D.vx)||i>1&&isNaN(D.vy)||i>2&&isNaN(D.vz))&&(D.vx=0,i>1&&(D.vy=0),i>2&&(D.vz=0))}}function S(k){return k.initialize&&k.initialize(e,x,i),k}return C(),s={tick:b,restart:function(){return v.restart(w),s},stop:function(){return v.stop(),s},numDimensions:function(k){return arguments.length?(i=Math.min(Cp,Math.max(1,Math.round(k))),g.forEach(S),s):i},nodes:function(k){return arguments.length?(e=k,C(),g.forEach(S),s):e},alpha:function(k){return arguments.length?(a=+k,s):a},alphaMin:function(k){return arguments.length?(u=+k,s):u},alphaDecay:function(k){return arguments.length?(f=+k,s):+f},alphaTarget:function(k){return arguments.length?(h=+k,s):h},velocityDecay:function(k){return arguments.length?(p=1-k,s):1-p},randomSource:function(k){return arguments.length?(x=k,g.forEach(S),s):x},force:function(k,O){return arguments.length>1?(O==null?g.delete(k):g.set(k,S(O)),s):g.get(k)},find:function(){var k=Array.prototype.slice.call(arguments),O=k.shift()||0,D=(i>1?k.shift():null)||0,P=(i>2?k.shift():null)||0,T=k.shift()||1/0,z=0,A=e.length,L,W,X,Z,oe,de;for(T*=T,z=0;z<A;++z)oe=e[z],L=O-oe.x,W=D-(oe.y||0),X=P-(oe.z||0),Z=L*L+W*W+X*X,Z<T&&(de=oe,T=Z);return de},on:function(k,O){return arguments.length>1?(m.on(k,O),s):m.on(k)}}}function nS(){var e,n,i,s,a,u=On(-30),f,h=1,p=1/0,g=.81;function v(b){var C,S=e.length,k=(n===1?nm(e,Nu):n===2?im(e,Nu,Ep):n===3?sm(e,Nu,Ep,Yk):null).visitAfter(x);for(a=b,C=0;C<S;++C)i=e[C],k.visit(w)}function m(){if(e){var b,C=e.length,S;for(f=new Array(C),b=0;b<C;++b)S=e[b],f[S.index]=+u(S,b,e)}}function x(b){var C=0,S,k,O=0,D,P,T,z,A=b.length;if(A){for(D=P=T=z=0;z<A;++z)(S=b[z])&&(k=Math.abs(S.value))&&(C+=S.value,O+=k,D+=k*(S.x||0),P+=k*(S.y||0),T+=k*(S.z||0));C*=Math.sqrt(4/A),b.x=D/O,n>1&&(b.y=P/O),n>2&&(b.z=T/O)}else{S=b,S.x=S.data.x,n>1&&(S.y=S.data.y),n>2&&(S.z=S.data.z);do C+=f[S.data.index];while(S=S.next)}b.value=C}function w(b,C,S,k,O){if(!b.value)return!0;var D=[S,k,O][n-1],P=b.x-i.x,T=n>1?b.y-i.y:0,z=n>2?b.z-i.z:0,A=D-C,L=P*P+T*T+z*z;if(A*A/g<L)return L<p&&(P===0&&(P=Mn(s),L+=P*P),n>1&&T===0&&(T=Mn(s),L+=T*T),n>2&&z===0&&(z=Mn(s),L+=z*z),L<h&&(L=Math.sqrt(h*L)),i.vx+=P*b.value*a/L,n>1&&(i.vy+=T*b.value*a/L),n>2&&(i.vz+=z*b.value*a/L)),!0;if(b.length||L>=p)return;(b.data!==i||b.next)&&(P===0&&(P=Mn(s),L+=P*P),n>1&&T===0&&(T=Mn(s),L+=T*T),n>2&&z===0&&(z=Mn(s),L+=z*z),L<h&&(L=Math.sqrt(h*L)));do b.data!==i&&(A=f[b.data.index]*a/L,i.vx+=P*A,n>1&&(i.vy+=T*A),n>2&&(i.vz+=z*A));while(b=b.next)}return v.initialize=function(b,...C){e=b,s=C.find(S=>typeof S=="function")||Math.random,n=C.find(S=>[1,2,3].includes(S))||2,m()},v.strength=function(b){return arguments.length?(u=typeof b=="function"?b:On(+b),m(),v):u},v.distanceMin=function(b){return arguments.length?(h=b*b,v):Math.sqrt(h)},v.distanceMax=function(b){return arguments.length?(p=b*b,v):Math.sqrt(p)},v.theta=function(b){return arguments.length?(g=b*b,v):Math.sqrt(g)},v}function rS(e,n,i,s){var a,u,f=On(.1),h,p;typeof e!="function"&&(e=On(+e)),n==null&&(n=0),i==null&&(i=0),s==null&&(s=0);function g(m){for(var x=0,w=a.length;x<w;++x){var b=a[x],C=b.x-n||1e-6,S=(b.y||0)-i||1e-6,k=(b.z||0)-s||1e-6,O=Math.sqrt(C*C+S*S+k*k),D=(p[x]-O)*h[x]*m/O;b.vx+=C*D,u>1&&(b.vy+=S*D),u>2&&(b.vz+=k*D)}}function v(){if(a){var m,x=a.length;for(h=new Array(x),p=new Array(x),m=0;m<x;++m)p[m]=+e(a[m],m,a),h[m]=isNaN(p[m])?0:+f(a[m],m,a)}}return g.initialize=function(m,...x){a=m,u=x.find(w=>[1,2,3].includes(w))||2,v()},g.strength=function(m){return arguments.length?(f=typeof m=="function"?m:On(+m),v(),g):f},g.radius=function(m){return arguments.length?(e=typeof m=="function"?m:On(+m),v(),g):e},g.x=function(m){return arguments.length?(n=+m,g):n},g.y=function(m){return arguments.length?(i=+m,g):i},g.z=function(m){return arguments.length?(s=+m,g):s},g}const{abs:so,cos:Tn,sin:ni,acos:iS,atan2:lo,sqrt:rr,pow:It}=Math;function ao(e){return e<0?-It(-e,1/3):It(e,1/3)}const lm=Math.PI,nl=2*lm,ir=lm/2,oS=1e-6,Pu=Number.MAX_SAFE_INTEGER||9007199254740991,Tu=Number.MIN_SAFE_INTEGER||-9007199254740991,sS={x:0,y:0,z:0},ie={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){const i=n(e);let s=i.x*i.x+i.y*i.y;return typeof i.z<"u"&&(s+=i.z*i.z),rr(s)},compute:function(e,n,i){if(e===0)return n[0].t=0,n[0];const s=n.length-1;if(e===1)return n[s].t=1,n[s];const a=1-e;let u=n;if(s===0)return n[0].t=e,n[0];if(s===1){const h={x:a*u[0].x+e*u[1].x,y:a*u[0].y+e*u[1].y,t:e};return i&&(h.z=a*u[0].z+e*u[1].z),h}if(s<4){let h=a*a,p=e*e,g,v,m,x=0;s===2?(u=[u[0],u[1],u[2],sS],g=h,v=a*e*2,m=p):s===3&&(g=h*a,v=h*e*3,m=a*p*3,x=e*p);const w={x:g*u[0].x+v*u[1].x+m*u[2].x+x*u[3].x,y:g*u[0].y+v*u[1].y+m*u[2].y+x*u[3].y,t:e};return i&&(w.z=g*u[0].z+v*u[1].z+m*u[2].z+x*u[3].z),w}const f=JSON.parse(JSON.stringify(n));for(;f.length>1;){for(let h=0;h<f.length-1;h++)f[h]={x:f[h].x+(f[h+1].x-f[h].x)*e,y:f[h].y+(f[h+1].y-f[h].y)*e},typeof f[h].z<"u"&&(f[h].z=f[h].z+(f[h+1].z-f[h].z)*e);f.splice(f.length-1,1)}return f[0].t=e,f[0]},computeWithRatios:function(e,n,i,s){const a=1-e,u=i,f=n;let h=u[0],p=u[1],g=u[2],v=u[3],m;if(h*=a,p*=e,f.length===2)return m=h+p,{x:(h*f[0].x+p*f[1].x)/m,y:(h*f[0].y+p*f[1].y)/m,z:s?(h*f[0].z+p*f[1].z)/m:!1,t:e};if(h*=a,p*=2*a,g*=e*e,f.length===3)return m=h+p+g,{x:(h*f[0].x+p*f[1].x+g*f[2].x)/m,y:(h*f[0].y+p*f[1].y+g*f[2].y)/m,z:s?(h*f[0].z+p*f[1].z+g*f[2].z)/m:!1,t:e};if(h*=a,p*=1.5*a,g*=3*a,v*=e*e*e,f.length===4)return m=h+p+g+v,{x:(h*f[0].x+p*f[1].x+g*f[2].x+v*f[3].x)/m,y:(h*f[0].y+p*f[1].y+g*f[2].y+v*f[3].y)/m,z:s?(h*f[0].z+p*f[1].z+g*f[2].z+v*f[3].z)/m:!1,t:e}},derive:function(e,n){const i=[];for(let s=e,a=s.length,u=a-1;a>1;a--,u--){const f=[];for(let h=0,p;h<u;h++)p={x:u*(s[h+1].x-s[h].x),y:u*(s[h+1].y-s[h].y)},n&&(p.z=u*(s[h+1].z-s[h].z)),f.push(p);i.push(f),s=f}return i},between:function(e,n,i){return n<=e&&e<=i||ie.approximately(e,n)||ie.approximately(e,i)},approximately:function(e,n,i){return so(e-n)<=(i||oS)},length:function(e){const i=ie.Tvalues.length;let s=0;for(let a=0,u;a<i;a++)u=.5*ie.Tvalues[a]+.5,s+=ie.Cvalues[a]*ie.arcfn(u,e);return .5*s},map:function(e,n,i,s,a){const u=i-n,f=a-s,h=e-n,p=h/u;return s+f*p},lerp:function(e,n,i){const s={x:n.x+e*(i.x-n.x),y:n.y+e*(i.y-n.y)};return n.z!==void 0&&i.z!==void 0&&(s.z=n.z+e*(i.z-n.z)),s},pointToString:function(e){let n=e.x+"/"+e.y;return typeof e.z<"u"&&(n+="/"+e.z),n},pointsToString:function(e){return"["+e.map(ie.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,n,i){const s=n.x-e.x,a=n.y-e.y,u=i.x-e.x,f=i.y-e.y,h=s*f-a*u,p=s*u+a*f;return lo(h,p)},round:function(e,n){const i=""+e,s=i.indexOf(".");return parseFloat(i.substring(0,s+1+n))},dist:function(e,n){const i=e.x-n.x,s=e.y-n.y;return rr(i*i+s*s)},closest:function(e,n){let i=It(2,63),s,a;return e.forEach(function(u,f){a=ie.dist(n,u),a<i&&(i=a,s=f)}),{mdist:i,mpos:s}},abcratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const i=It(e,n)+It(1-e,n),s=i-1;return so(s/i)},projectionratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const i=It(1-e,n),s=It(e,n)+i;return i/s},lli8:function(e,n,i,s,a,u,f,h){const p=(e*s-n*i)*(a-f)-(e-i)*(a*h-u*f),g=(e*s-n*i)*(u-h)-(n-s)*(a*h-u*f),v=(e-i)*(u-h)-(n-s)*(a-f);return v==0?!1:{x:p/v,y:g/v}},lli4:function(e,n,i,s){const a=e.x,u=e.y,f=n.x,h=n.y,p=i.x,g=i.y,v=s.x,m=s.y;return ie.lli8(a,u,f,h,p,g,v,m)},lli:function(e,n){return ie.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new ze(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=Pu,i=Pu,s=Tu,a=Tu;return e.forEach(function(u){const f=u.bbox();n>f.x.min&&(n=f.x.min),i>f.y.min&&(i=f.y.min),s<f.x.max&&(s=f.x.max),a<f.y.max&&(a=f.y.max)}),{x:{min:n,mid:(n+s)/2,max:s,size:s-n},y:{min:i,mid:(i+a)/2,max:a,size:a-i}}},shapeintersections:function(e,n,i,s,a){if(!ie.bboxoverlap(n,s))return[];const u=[],f=[e.startcap,e.forward,e.back,e.endcap],h=[i.startcap,i.forward,i.back,i.endcap];return f.forEach(function(p){p.virtual||h.forEach(function(g){if(g.virtual)return;const v=p.intersects(g,a);v.length>0&&(v.c1=p,v.c2=g,v.s1=e,v.s2=i,u.push(v))})}),u},makeshape:function(e,n,i){const s=n.points.length,a=e.points.length,u=ie.makeline(n.points[s-1],e.points[0]),f=ie.makeline(e.points[a-1],n.points[0]),h={startcap:u,forward:e,back:n,endcap:f,bbox:ie.findbbox([u,e,n,f])};return h.intersections=function(p){return ie.shapeintersections(h,h.bbox,p,p.bbox,i)},h},getminmax:function(e,n,i){if(!i)return{min:0,max:0};let s=Pu,a=Tu,u,f;i.indexOf(0)===-1&&(i=[0].concat(i)),i.indexOf(1)===-1&&i.push(1);for(let h=0,p=i.length;h<p;h++)u=i[h],f=e.get(u),f[n]<s&&(s=f[n]),f[n]>a&&(a=f[n]);return{min:s,mid:(s+a)/2,max:a,size:a-s}},align:function(e,n){const i=n.p1.x,s=n.p1.y,a=-lo(n.p2.y-s,n.p2.x-i),u=function(f){return{x:(f.x-i)*Tn(a)-(f.y-s)*ni(a),y:(f.x-i)*ni(a)+(f.y-s)*Tn(a)}};return e.map(u)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const i=e.length-1,s=ie.align(e,n),a=function(A){return 0<=A&&A<=1};if(i===2){const A=s[0].y,L=s[1].y,W=s[2].y,X=A-2*L+W;if(X!==0){const Z=-rr(L*L-A*W),oe=-A+L,de=-(Z+oe)/X,F=-(-Z+oe)/X;return[de,F].filter(a)}else if(L!==W&&X===0)return[(2*L-W)/(2*L-2*W)].filter(a);return[]}const u=s[0].y,f=s[1].y,h=s[2].y,p=s[3].y;let g=-u+3*f-3*h+p,v=3*u-6*f+3*h,m=-3*u+3*f,x=u;if(ie.approximately(g,0)){if(ie.approximately(v,0))return ie.approximately(m,0)?[]:[-x/m].filter(a);const A=rr(m*m-4*v*x),L=2*v;return[(A-m)/L,(-m-A)/L].filter(a)}v/=g,m/=g,x/=g;const w=(3*m-v*v)/3,b=w/3,C=(2*v*v*v-9*v*m+27*x)/27,S=C/2,k=S*S+b*b*b;let O,D,P,T,z;if(k<0){const A=-w/3,L=A*A*A,W=rr(L),X=-C/(2*W),Z=X<-1?-1:X>1?1:X,oe=iS(Z),de=ao(W),F=2*de;return P=F*Tn(oe/3)-v/3,T=F*Tn((oe+nl)/3)-v/3,z=F*Tn((oe+2*nl)/3)-v/3,[P,T,z].filter(a)}else{if(k===0)return O=S<0?ao(-S):-ao(S),P=2*O-v/3,T=-O-v/3,[P,T].filter(a);{const A=rr(k);return O=ao(-S+A),D=ao(S+A),[O-D-v/3].filter(a)}}},droots:function(e){if(e.length===3){const n=e[0],i=e[1],s=e[2],a=n-2*i+s;if(a!==0){const u=-rr(i*i-n*s),f=-n+i,h=-(u+f)/a,p=-(-u+f)/a;return[h,p]}else if(i!==s&&a===0)return[(2*i-s)/(2*(i-s))];return[]}if(e.length===2){const n=e[0],i=e[1];return n!==i?[n/(n-i)]:[]}return[]},curvature:function(e,n,i,s,a){let u,f,h,p,g=0,v=0;const m=ie.compute(e,n),x=ie.compute(e,i),w=m.x*m.x+m.y*m.y;if(s?(u=rr(It(m.y*x.z-x.y*m.z,2)+It(m.z*x.x-x.z*m.x,2)+It(m.x*x.y-x.x*m.y,2)),f=It(w+m.z*m.z,3/2)):(u=m.x*x.y-m.y*x.x,f=It(w,3/2)),u===0||f===0)return{k:0,r:0};if(g=u/f,v=f/u,!a){const b=ie.curvature(e-.001,n,i,s,!0).k,C=ie.curvature(e+.001,n,i,s,!0).k;p=(C-g+(g-b))/2,h=(so(C-g)+so(g-b))/2}return{k:g,r:v,dk:p,adk:h}},inflections:function(e){if(e.length<4)return[];const n=ie.align(e,{p1:e[0],p2:e.slice(-1)[0]}),i=n[2].x*n[1].y,s=n[3].x*n[1].y,a=n[1].x*n[2].y,u=n[3].x*n[2].y,f=18*(-3*i+2*s+3*a-u),h=18*(3*i-s-3*a),p=18*(a-i);if(ie.approximately(f,0)){if(!ie.approximately(h,0)){let x=-p/h;if(0<=x&&x<=1)return[x]}return[]}const g=2*f;if(ie.approximately(g,0))return[];const v=h*h-4*f*p;if(v<0)return[];const m=Math.sqrt(v);return[(m-h)/g,-(h+m)/g].filter(function(x){return 0<=x&&x<=1})},bboxoverlap:function(e,n){const i=["x","y"],s=i.length;for(let a=0,u,f,h,p;a<s;a++)if(u=i[a],f=e[u].mid,h=n[u].mid,p=(e[u].size+n[u].size)/2,so(f-h)>=p)return!1;return!0},expandbox:function(e,n){n.x.min<e.x.min&&(e.x.min=n.x.min),n.y.min<e.y.min&&(e.y.min=n.y.min),n.z&&n.z.min<e.z.min&&(e.z.min=n.z.min),n.x.max>e.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,i){const s=e.bbox(),a=n.bbox(),u=1e5,f=i||.5;if(s.x.size+s.y.size<f&&a.x.size+a.y.size<f)return[(u*(e._t1+e._t2)/2|0)/u+"/"+(u*(n._t1+n._t2)/2|0)/u];let h=e.split(.5),p=n.split(.5),g=[{left:h.left,right:p.left},{left:h.left,right:p.right},{left:h.right,right:p.right},{left:h.right,right:p.left}];g=g.filter(function(m){return ie.bboxoverlap(m.left.bbox(),m.right.bbox())});let v=[];return g.length===0||(g.forEach(function(m){v=v.concat(ie.pairiteration(m.left,m.right,f))}),v=v.filter(function(m,x){return v.indexOf(m)===x})),v},getccenter:function(e,n,i){const s=n.x-e.x,a=n.y-e.y,u=i.x-n.x,f=i.y-n.y,h=s*Tn(ir)-a*ni(ir),p=s*ni(ir)+a*Tn(ir),g=u*Tn(ir)-f*ni(ir),v=u*ni(ir)+f*Tn(ir),m=(e.x+n.x)/2,x=(e.y+n.y)/2,w=(n.x+i.x)/2,b=(n.y+i.y)/2,C=m+h,S=x+p,k=w+g,O=b+v,D=ie.lli8(m,x,C,S,w,b,k,O),P=ie.dist(D,e);let T=lo(e.y-D.y,e.x-D.x),z=lo(n.y-D.y,n.x-D.x),A=lo(i.y-D.y,i.x-D.x),L;return T<A?((T>z||z>A)&&(T+=nl),T>A&&(L=A,A=T,T=L)):A<z&&z<T?(L=A,A=T,T=L):A+=nl,D.s=T,D.e=A,D.r=P,D},numberSort:function(e,n){return e-n}};class vo{constructor(n){this.curves=[],this._3d=!1,n&&(this.curves=n,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(n){return ie.pointsToString(n.points)}).join(", ")+"]"}addCurve(n){this.curves.push(n),this._3d=this._3d||n._3d}length(){return this.curves.map(function(n){return n.length()}).reduce(function(n,i){return n+i})}curve(n){return this.curves[n]}bbox(){const n=this.curves;for(var i=n[0].bbox(),s=1;s<n.length;s++)ie.expandbox(i,n[s].bbox());return i}offset(n){const i=[];return this.curves.forEach(function(s){i.push(...s.offset(n))}),new vo(i)}}const{abs:uo,min:Np,max:Pp,cos:lS,sin:aS,acos:uS,sqrt:co}=Math,cS=Math.PI;class ze{constructor(n){let i=n&&n.forEach?n:Array.from(arguments).slice(),s=!1;if(typeof i[0]=="object"){s=i.length;const w=[];i.forEach(function(b){["x","y","z"].forEach(function(C){typeof b[C]<"u"&&w.push(b[C])})}),i=w}let a=!1;const u=i.length;if(s){if(s>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!0}}else if(u!==6&&u!==8&&u!==9&&u!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const f=this._3d=!a&&(u===9||u===12)||n&&n[0]&&typeof n[0].z<"u",h=this.points=[];for(let w=0,b=f?3:2;w<u;w+=b){var p={x:i[w],y:i[w+1]};f&&(p.z=i[w+2]),h.push(p)}const g=this.order=h.length-1,v=this.dims=["x","y"];f&&v.push("z"),this.dimlen=v.length;const m=ie.align(h,{p1:h[0],p2:h[g]}),x=ie.dist(h[0],h[g]);this._linear=m.reduce((w,b)=>w+uo(b.y),0)<x/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,i,s,a){if(typeof a>"u"&&(a=.5),a===0)return new ze(i,i,s);if(a===1)return new ze(n,i,i);const u=ze.getABC(2,n,i,s,a);return new ze(n,u.A,s)}static cubicFromPoints(n,i,s,a,u){typeof a>"u"&&(a=.5);const f=ze.getABC(3,n,i,s,a);typeof u>"u"&&(u=ie.dist(i,f.C));const h=u*(1-a)/a,p=ie.dist(n,s),g=(s.x-n.x)/p,v=(s.y-n.y)/p,m=u*g,x=u*v,w=h*g,b=h*v,C={x:i.x-m,y:i.y-x},S={x:i.x+w,y:i.y+b},k=f.A,O={x:k.x+(C.x-k.x)/(1-a),y:k.y+(C.y-k.y)/(1-a)},D={x:k.x+(S.x-k.x)/a,y:k.y+(S.y-k.y)/a},P={x:n.x+(O.x-n.x)/a,y:n.y+(O.y-n.y)/a},T={x:s.x+(D.x-s.x)/(1-a),y:s.y+(D.y-s.y)/(1-a)};return new ze(n,P,T,s)}static getUtils(){return ie}getUtils(){return ze.getUtils()}static get PolyBezier(){return vo}valueOf(){return this.toString()}toString(){return ie.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,i=n[0].x,s=n[0].y,a=["M",i,s,this.order===2?"Q":"C"];for(let u=1,f=n.length;u<f;u++)a.push(n[u].x),a.push(n[u].y);return a.join(" ")}setRatios(n){if(n.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=n,this._lut=[]}verify(){const n=this.coordDigest();n!==this._print&&(this._print=n,this.update())}coordDigest(){return this.points.map(function(n,i){return""+i+n.x+n.y+(n.z?n.z:0)}).join("")}update(){this._lut=[],this.dpoints=ie.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,i=ie.angle(n[0],n[this.order],n[1]);this.clockwise=i>0}length(){return ie.length(this.derivative.bind(this))}static getABC(n=2,i,s,a,u=.5){const f=ie.projectionratio(u,n),h=1-f,p={x:f*i.x+h*a.x,y:f*i.y+h*a.y},g=ie.abcratio(u,n);return{A:{x:s.x+(s.x-p.x)/g,y:s.y+(s.y-p.y)/g},B:s,C:p,S:i,E:a}}getABC(n,i){i=i||this.get(n);let s=this.points[0],a=this.points[this.order];return ze.getABC(this.order,s,i,a,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let i=0,s,a;i<n;i++)a=i/(n-1),s=this.compute(a),s.t=a,this._lut.push(s);return this._lut}on(n,i){i=i||5;const s=this.getLUT(),a=[];for(let u=0,f,h=0;u<s.length;u++)f=s[u],ie.dist(f,n)<i&&(a.push(f),h+=u/s.length);return a.length?t/=a.length:!1}project(n){const i=this.getLUT(),s=i.length-1,a=ie.closest(i,n),u=a.mpos,f=(u-1)/s,h=(u+1)/s,p=.1/s;let g=a.mdist,v=f,m=v,x;g+=1;for(let w;v<h+p;v+=p)x=this.compute(v),w=ie.dist(n,x),w<g&&(g=w,m=v);return m=m<0?0:m>1?1:m,x=this.compute(m),x.t=m,x.d=g,x}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?ie.computeWithRatios(n,this.points,this.ratios,this._3d):ie.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,i=[n[0]],s=n.length;for(let a=1,u,f;a<s;a++)u=n[a],f=n[a-1],i[a]={x:(s-a)/s*u.x+a/s*f.x,y:(s-a)/s*u.y+a/s*f.y};return i[s]=n[s-1],new ze(i)}derivative(n){return ie.compute(n,this.dpoints[0],this._3d)}dderivative(n){return ie.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new ze(ie.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return ie.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return ie.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const i=this.derivative(n),s=co(i.x*i.x+i.y*i.y);return{t:n,x:-i.y/s,y:i.x/s}}__normal3(n){const i=this.derivative(n),s=this.derivative(n+.01),a=co(i.x*i.x+i.y*i.y+i.z*i.z),u=co(s.x*s.x+s.y*s.y+s.z*s.z);i.x/=a,i.y/=a,i.z/=a,s.x/=u,s.y/=u,s.z/=u;const f={x:s.y*i.z-s.z*i.y,y:s.z*i.x-s.x*i.z,z:s.x*i.y-s.y*i.x},h=co(f.x*f.x+f.y*f.y+f.z*f.z);f.x/=h,f.y/=h,f.z/=h;const p=[f.x*f.x,f.x*f.y-f.z,f.x*f.z+f.y,f.x*f.y+f.z,f.y*f.y,f.y*f.z-f.x,f.x*f.z-f.y,f.y*f.z+f.x,f.z*f.z];return{t:n,x:p[0]*i.x+p[1]*i.y+p[2]*i.z,y:p[3]*i.x+p[4]*i.y+p[5]*i.z,z:p[6]*i.x+p[7]*i.y+p[8]*i.z}}hull(n){let i=this.points,s=[],a=[],u=0;for(a[u++]=i[0],a[u++]=i[1],a[u++]=i[2],this.order===3&&(a[u++]=i[3]);i.length>1;){s=[];for(let f=0,h,p=i.length-1;f<p;f++)h=ie.lerp(n,i[f],i[f+1]),a[u++]=h,s.push(h);i=s}return a}split(n,i){if(n===0&&i)return this.split(i).left;if(i===1)return this.split(n).right;const s=this.hull(n),a={left:this.order===2?new ze([s[0],s[3],s[5]]):new ze([s[0],s[4],s[7],s[9]]),right:this.order===2?new ze([s[5],s[4],s[2]]):new ze([s[9],s[8],s[6],s[3]]),span:s};return a.left._t1=ie.map(0,0,1,this._t1,this._t2),a.left._t2=ie.map(n,0,1,this._t1,this._t2),a.right._t1=ie.map(n,0,1,this._t1,this._t2),a.right._t2=ie.map(1,0,1,this._t1,this._t2),i?(i=ie.map(i,n,1,0,1),a.right.split(i).left):a}extrema(){const n={};let i=[];return this.dims.forEach((function(s){let a=function(f){return f[s]},u=this.dpoints[0].map(a);n[s]=ie.droots(u),this.order===3&&(u=this.dpoints[1].map(a),n[s]=n[s].concat(ie.droots(u))),n[s]=n[s].filter(function(f){return f>=0&&f<=1}),i=i.concat(n[s].sort(ie.numberSort))}).bind(this)),n.values=i.sort(ie.numberSort).filter(function(s,a){return i.indexOf(s)===a}),n}bbox(){const n=this.extrema(),i={};return this.dims.forEach((function(s){i[s]=ie.getminmax(this,s,n[s])}).bind(this)),i}overlaps(n){const i=this.bbox(),s=n.bbox();return ie.bboxoverlap(i,s)}offset(n,i){if(typeof i<"u"){const s=this.get(n),a=this.normal(n),u={c:s,n:a,x:s.x+a.x*i,y:s.y+a.y*i};return this._3d&&(u.z=s.z+a.z*i),u}if(this._linear){const s=this.normal(0),a=this.points.map(function(u){const f={x:u.x+n*s.x,y:u.y+n*s.y};return u.z&&s.z&&(f.z=u.z+n*s.z),f});return[new ze(a)]}return this.reduce().map(function(s){return s._linear?s.offset(n)[0]:s.scale(n)})}simple(){if(this.order===3){const a=ie.angle(this.points[0],this.points[3],this.points[1]),u=ie.angle(this.points[0],this.points[3],this.points[2]);if(a>0&&u<0||a<0&&u>0)return!1}const n=this.normal(0),i=this.normal(1);let s=n.x*i.x+n.y*i.y;return this._3d&&(s+=n.z*i.z),uo(uS(s))<cS/3}reduce(){let n,i=0,s=0,a=.01,u,f=[],h=[],p=this.extrema().values;for(p.indexOf(0)===-1&&(p=[0].concat(p)),p.indexOf(1)===-1&&p.push(1),i=p[0],n=1;n<p.length;n++)s=p[n],u=this.split(i,s),u._t1=i,u._t2=s,f.push(u),i=s;return f.forEach(function(g){for(i=0,s=0;s<=1;)for(s=i+a;s<=1+a;s+=a)if(u=g.split(i,s),!u.simple()){if(s-=a,uo(i-s)<a)return[];u=g.split(i,s),u._t1=ie.map(i,0,1,g._t1,g._t2),u._t2=ie.map(s,0,1,g._t1,g._t2),h.push(u),i=s;break}i<1&&(u=g.split(i,1),u._t1=ie.map(i,0,1,g._t1,g._t2),u._t2=g._t2,h.push(u))}),h}translate(n,i,s){s=typeof s=="number"?s:i;const a=this.order;let u=this.points.map((f,h)=>(1-h/a)*i+h/a*s);return new ze(this.points.map((f,h)=>({x:f.x+n.x*u[h],y:f.y+n.y*u[h]})))}scale(n){const i=this.order;let s=!1;if(typeof n=="function"&&(s=n),s&&i===2)return this.raise().scale(s);const a=this.clockwise,u=this.points;if(this._linear)return this.translate(this.normal(0),s?s(0):n,s?s(1):n);const f=s?s(0):n,h=s?s(1):n,p=[this.offset(0,10),this.offset(1,10)],g=[],v=ie.lli4(p[0],p[0].c,p[1],p[1].c);if(!v)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(m){const x=g[m*i]=ie.copy(u[m*i]);x.x+=(m?h:f)*p[m].n.x,x.y+=(m?h:f)*p[m].n.y}),s?([0,1].forEach(function(m){if(!(i===2&&m)){var x=u[m+1],w={x:x.x-v.x,y:x.y-v.y},b=s?s((m+1)/i):n;s&&!a&&(b=-b);var C=co(w.x*w.x+w.y*w.y);w.x/=C,w.y/=C,g[m+1]={x:x.x+b*w.x,y:x.y+b*w.y}}}),new ze(g)):([0,1].forEach(m=>{if(i===2&&m)return;const x=g[m*i],w=this.derivative(m),b={x:x.x+w.x,y:x.y+w.y};g[m+1]=ie.lli4(x,b,v,u[m+1])}),new ze(g))}outline(n,i,s,a){if(i=i===void 0?n:i,this._linear){const T=this.normal(0),z=this.points[0],A=this.points[this.points.length-1];let L,W,X;s===void 0&&(s=n,a=i),L={x:z.x+T.x*n,y:z.y+T.y*n},X={x:A.x+T.x*s,y:A.y+T.y*s},W={x:(L.x+X.x)/2,y:(L.y+X.y)/2};const Z=[L,W,X];L={x:z.x-T.x*i,y:z.y-T.y*i},X={x:A.x-T.x*a,y:A.y-T.y*a},W={x:(L.x+X.x)/2,y:(L.y+X.y)/2};const oe=[X,W,L],de=ie.makeline(oe[2],Z[0]),F=ie.makeline(Z[2],oe[0]),ee=[de,new ze(Z),F,new ze(oe)];return new vo(ee)}const u=this.reduce(),f=u.length,h=[];let p=[],g,v=0,m=this.length();const x=typeof s<"u"&&typeof a<"u";function w(T,z,A,L,W){return function(X){const Z=L/A,oe=(L+W)/A,de=z-T;return ie.map(X,0,1,T+Z*de,T+oe*de)}}u.forEach(function(T){const z=T.length();x?(h.push(T.scale(w(n,s,m,v,z))),p.push(T.scale(w(-i,-a,m,v,z)))):(h.push(T.scale(n)),p.push(T.scale(-i))),v+=z}),p=p.map(function(T){return g=T.points,g[3]?T.points=[g[3],g[2],g[1],g[0]]:T.points=[g[2],g[1],g[0]],T}).reverse();const b=h[0].points[0],C=h[f-1].points[h[f-1].points.length-1],S=p[f-1].points[p[f-1].points.length-1],k=p[0].points[0],O=ie.makeline(S,b),D=ie.makeline(C,k),P=[O].concat(h).concat([D]).concat(p);return new vo(P)}outlineshapes(n,i,s){i=i||n;const a=this.outline(n,i).curves,u=[];for(let f=1,h=a.length;f<h/2;f++){const p=ie.makeshape(a[f],a[h-f],s);p.startcap.virtual=f>1,p.endcap.virtual=f<h/2-1,u.push(p)}return u}intersects(n,i){return n?n.p1&&n.p2?this.lineIntersects(n):(n instanceof ze&&(n=n.reduce()),this.curveintersects(this.reduce(),n,i)):this.selfintersects(i)}lineIntersects(n){const i=Np(n.p1.x,n.p2.x),s=Np(n.p1.y,n.p2.y),a=Pp(n.p1.x,n.p2.x),u=Pp(n.p1.y,n.p2.y);return ie.roots(this.points,n).filter(f=>{var h=this.get(f);return ie.between(h.x,i,a)&&ie.between(h.y,s,u)})}selfintersects(n){const i=this.reduce(),s=i.length-2,a=[];for(let u=0,f,h,p;u<s;u++)h=i.slice(u,u+1),p=i.slice(u+2),f=this.curveintersects(h,p,n),a.push(...f);return a}curveintersects(n,i,s){const a=[];n.forEach(function(f){i.forEach(function(h){f.overlaps(h)&&a.push({left:f,right:h})})});let u=[];return a.forEach(function(f){const h=ie.pairiteration(f.left,f.right,s);h.length>0&&(u=u.concat(h))}),u}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,i,s,a){const u=(a-s)/4,f=this.get(s+u),h=this.get(a-u),p=ie.dist(n,i),g=ie.dist(n,f),v=ie.dist(n,h);return uo(g-p)+uo(v-p)}_iterate(n,i){let s=0,a=1,u;do{u=0,a=1;let f=this.get(s),h,p,g,v,m=!1,x=!1,w,b=a,C=1;do if(x=m,v=g,b=(s+a)/2,h=this.get(b),p=this.get(a),g=ie.getccenter(f,h,p),g.interval={start:s,end:a},m=this._error(g,f,s,a)<=n,w=x&&!m,w||(C=a),m){if(a>=1){if(g.interval.end=C=1,v=g,a>1){let k={x:g.x+g.r*lS(g.e),y:g.y+g.r*aS(g.e)};g.e+=ie.angle({x:g.x,y:g.y},k,this.get(1))}break}a=a+(a-s)/2}else a=b;while(!w&&u++<100);if(u>=100)break;v=v||g,i.push(v),s=C}while(a<1);return i}}function rc(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function fS(e){if(Array.isArray(e))return e}function hS(e){if(Array.isArray(e))return rc(e)}function dS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pS(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,g=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function gS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
134
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
135
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yS(e,n){if(e==null)return{};var i,s,a=vS(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(s=0;s<u.length;s++)i=u[s],n.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function vS(e,n){if(e==null)return{};var i={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(n.includes(s))continue;i[s]=e[s]}return i}function xS(e,n){return fS(e)||pS(e,n)||am(e,n)||gS()}function _S(e){return hS(e)||dS(e)||am(e)||mS()}function wS(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function kS(e){var n=wS(e,"string");return typeof n=="symbol"?n:n+""}function am(e,n){if(e){if(typeof e=="string")return rc(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?rc(e,n):void 0}}var SS=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=(n instanceof Array?n.length?n:[void 0]:[n]).map(function(h){return{keyAccessor:h,isProp:!(h instanceof Function)}}),u=e.reduce(function(h,p){var g=h,v=p;return a.forEach(function(m,x){var w=m.keyAccessor,b=m.isProp,C;if(b){var S=v,k=S[w],O=yS(S,[w].map(kS));C=k,v=O}else C=w(v,x);x+1<a.length?(g.hasOwnProperty(C)||(g[C]={}),g=g[C]):i?(g.hasOwnProperty(C)||(g[C]=[]),g[C].push(v)):g[C]=v}),h},{});i instanceof Function&&function h(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;g===a.length?Object.keys(p).forEach(function(v){return p[v]=i(p[v])}):Object.values(p).forEach(function(v){return h(v,g+1)})}(u);var f=u;return s&&(f=[],function h(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];g.length===a.length?f.push({keys:g,vals:p}):Object.entries(p).forEach(function(v){var m=xS(v,2),x=m[0],w=m[1];return h(w,[].concat(_S(g),[x]))})}(u),n instanceof Array&&n.length===0&&f.length===1&&(f[0].keys=[])),f};function bS(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}const Tp=Symbol("implicit");function um(){var e=new Xd,n=[],i=[],s=Tp;function a(u){let f=e.get(u);if(f===void 0){if(s!==Tp)return s;e.set(u,f=n.push(u)-1)}return i[f%i.length]}return a.domain=function(u){if(!arguments.length)return n.slice();n=[],e=new Xd;for(const f of u)e.has(f)||e.set(f,n.push(f)-1);return a},a.range=function(u){return arguments.length?(i=Array.from(u),a):i.slice()},a.unknown=function(u){return arguments.length?(s=u,a):s},a.copy=function(){return um(n,i).unknown(s)},bS.apply(a,arguments),a}function CS(e){for(var n=e.length/6|0,i=new Array(n),s=0;s<n;)i[s]="#"+e.slice(s*6,++s*6);return i}const ES=CS("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");function NS(e,n){n===void 0&&(n={});var i=n.insertAt;if(!(typeof document>"u")){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",i==="top"&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var PS=`.force-graph-container canvas {
136
- display: block;
137
- user-select: none;
138
- outline: none;
139
- -webkit-tap-highlight-color: transparent;
140
- }
141
-
142
- .force-graph-container .clickable {
143
- cursor: pointer;
144
- }
145
-
146
- .force-graph-container .grabbable {
147
- cursor: move;
148
- cursor: grab;
149
- cursor: -moz-grab;
150
- cursor: -webkit-grab;
151
- }
152
-
153
- .force-graph-container .grabbable:active {
154
- cursor: grabbing;
155
- cursor: -moz-grabbing;
156
- cursor: -webkit-grabbing;
157
- }
158
- `;NS(PS);function ic(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function TS(e){if(Array.isArray(e))return e}function MS(e){if(Array.isArray(e))return ic(e)}function Mp(e,n,i){if(cm())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,n);var a=new(e.bind.apply(e,s));return a}function No(e,n,i){return(n=DS(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function cm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cm=function(){return!!e})()}function jS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OS(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,g=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function RS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
159
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
160
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jp(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function ri(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?jp(Object(i),!0).forEach(function(s){No(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):jp(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function xo(e,n){return TS(e)||OS(e,n)||fm(e,n)||RS()}function Ft(e){return MS(e)||jS(e)||fm(e)||AS()}function zS(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function DS(e){var n=zS(e,"string");return typeof n=="symbol"?n:n+""}function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oc(e)}function fm(e,n){if(e){if(typeof e=="string")return ic(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ic(e,n):void 0}}var IS=um(ES);function Op(e,n,i){!n||typeof i!="string"||e.filter(function(s){return!s[i]}).forEach(function(s){s[i]=IS(n(s))})}function LS(e,n){var i=e.nodes,s=e.links,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=a.nodeFilter,f=u===void 0?function(){return!0}:u,h=a.onLoopError,p=h===void 0?function(w){throw"Invalid DAG structure! Found cycle in node path: ".concat(w.join(" -> "),".")}:h,g={};i.forEach(function(w){return g[n(w)]={data:w,out:[],depth:-1,skip:!f(w)}}),s.forEach(function(w){var b=w.source,C=w.target,S=P(b),k=P(C);if(!g.hasOwnProperty(S))throw"Missing source node with id: ".concat(S);if(!g.hasOwnProperty(k))throw"Missing target node with id: ".concat(k);var O=g[S],D=g[k];O.out.push(D);function P(T){return oc(T)==="object"?n(T):T}});var v=[];x(Object.values(g));var m=Object.assign.apply(Object,[{}].concat(Ft(Object.entries(g).filter(function(w){var b=xo(w,2),C=b[1];return!C.skip}).map(function(w){var b=xo(w,2),C=b[0],S=b[1];return No({},C,S.depth)}))));return m;function x(w){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,S=function(){var P=w[k];if(b.indexOf(P)!==-1){var T=[].concat(Ft(b.slice(b.indexOf(P))),[P]).map(function(z){return n(z.data)});return v.some(function(z){return z.length===T.length&&z.every(function(A,L){return A===T[L]})})||(v.push(T),p(T)),1}C>P.depth&&(P.depth=C,x(P.out,[].concat(Ft(b),[P]),C+(P.skip?0:1)))},k=0,O=w.length;k<O;k++)S()}}var FS=2,st=function(n,i){return i.onNeedsRedraw&&i.onNeedsRedraw()},Rp=function(n,i){if(!i.isShadow){var s=Me(i.linkDirectionalParticles);i.graphData.links.forEach(function(a){var u=Math.round(Math.abs(s(a)));u?a.__photons=Ft(Array(u)).map(function(){return{}}):delete a.__photons})}},wl=_c({props:{graphData:{default:{nodes:[],links:[]},onChange:function(n,i){i.engineRunning=!1,Rp(n,i)}},dagMode:{onChange:function(n,i){!n&&(i.graphData.nodes||[]).forEach(function(s){return s.fx=s.fy=void 0})}},dagLevelDistance:{},dagNodeFilter:{default:function(n){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:st},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:st},nodeColor:{default:"color",triggerUpdate:!1,onChange:st},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:st},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:st},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:st},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:st},linkColor:{default:"color",triggerUpdate:!1,onChange:st},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:st},linkWidth:{default:1,triggerUpdate:!1,onChange:st},linkCurvature:{default:0,triggerUpdate:!1,onChange:st},linkCanvasObject:{triggerUpdate:!1,onChange:st},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:st},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:st},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:st},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:st},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:Rp},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.alphaDecay(n)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.alphaTarget(n)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.velocityDecay(n)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(n,i,s){return s===void 0?n.forceLayout.force(i):(n.forceLayout.force(i,s),this)},d3ReheatSimulation:function(n){return n.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(n){return n.cntTicks=0,n.startTickTime=new Date,n.engineRunning=!0,this},isEngineRunning:function(n){return!!n.engineRunning},tickFrame:function(n){return!n.isShadow&&i(),a(),!n.isShadow&&u(),!n.isShadow&&f(),s(),this;function i(){n.engineRunning&&(++n.cntTicks>n.cooldownTicks||new Date-n.startTickTime>n.cooldownTime||n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin?(n.engineRunning=!1,n.onEngineStop()):(n.forceLayout.tick(),n.onEngineTick()))}function s(){var h=Me(n.nodeVisibility),p=Me(n.nodeVal),g=Me(n.nodeColor),v=Me(n.nodeCanvasObjectMode),m=n.ctx,x=n.isShadow/n.globalScale,w=n.graphData.nodes.filter(h);m.save(),w.forEach(function(b){var C=v(b);if(n.nodeCanvasObject&&(C==="before"||C==="replace")&&(n.nodeCanvasObject(b,m,n.globalScale),C==="replace")){m.restore();return}var S=Math.sqrt(Math.max(0,p(b)||1))*n.nodeRelSize+x;m.beginPath(),m.arc(b.x,b.y,S,0,2*Math.PI,!1),m.fillStyle=g(b)||"rgba(31, 120, 180, 0.92)",m.fill(),n.nodeCanvasObject&&C==="after"&&n.nodeCanvasObject(b,n.ctx,n.globalScale)}),m.restore()}function a(){var h=Me(n.linkVisibility),p=Me(n.linkColor),g=Me(n.linkWidth),v=Me(n.linkLineDash),m=Me(n.linkCurvature),x=Me(n.linkCanvasObjectMode),w=n.ctx,b=n.isShadow*2,C=n.graphData.links.filter(h);C.forEach(z);var S=[],k=[],O=C;if(n.linkCanvasObject){var D=[],P=[];C.forEach(function(A){return({before:S,after:k,replace:D}[x(A)]||P).push(A)}),O=[].concat(Ft(S),k,P),S=S.concat(D)}w.save(),S.forEach(function(A){return n.linkCanvasObject(A,w,n.globalScale)}),w.restore();var T=SS(O,[p,g,v]);w.save(),Object.entries(T).forEach(function(A){var L=xo(A,2),W=L[0],X=L[1],Z=!W||W==="undefined"?"rgba(0,0,0,0.15)":W;Object.entries(X).forEach(function(oe){var de=xo(oe,2),F=de[0],ee=de[1],Q=(F||1)/n.globalScale+b;Object.entries(ee).forEach(function(ne){var V=xo(ne,2);V[0];var Y=V[1],B=v(Y[0]);w.beginPath(),Y.forEach(function(M){var q=M.source,ue=M.target;if(!(!q||!ue||!q.hasOwnProperty("x")||!ue.hasOwnProperty("x"))){w.moveTo(q.x,q.y);var fe=M.__controlPoints;fe?w[fe.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(w,Ft(fe).concat([ue.x,ue.y])):w.lineTo(ue.x,ue.y)}}),w.strokeStyle=Z,w.lineWidth=Q,w.setLineDash(B||[]),w.stroke()})})}),w.restore(),w.save(),k.forEach(function(A){return n.linkCanvasObject(A,w,n.globalScale)}),w.restore();function z(A){var L=m(A);if(!L){A.__controlPoints=null;return}var W=A.source,X=A.target;if(!(!W||!X||!W.hasOwnProperty("x")||!X.hasOwnProperty("x"))){var Z=Math.sqrt(Math.pow(X.x-W.x,2)+Math.pow(X.y-W.y,2));if(Z>0){var oe=Math.atan2(X.y-W.y,X.x-W.x),de=Z*L,F={x:(W.x+X.x)/2+de*Math.cos(oe-Math.PI/2),y:(W.y+X.y)/2+de*Math.sin(oe-Math.PI/2)};A.__controlPoints=[F.x,F.y]}else{var ee=L*70;A.__controlPoints=[X.x,X.y-ee,X.x+ee,X.y]}}}}function u(){var h=1.6,p=.2,g=Me(n.linkDirectionalArrowLength),v=Me(n.linkDirectionalArrowRelPos),m=Me(n.linkVisibility),x=Me(n.linkDirectionalArrowColor||n.linkColor),w=Me(n.nodeVal),b=n.ctx;b.save(),n.graphData.links.filter(m).forEach(function(C){var S=g(C);if(!(!S||S<0)){var k=C.source,O=C.target;if(!(!k||!O||!k.hasOwnProperty("x")||!O.hasOwnProperty("x"))){var D=Math.sqrt(Math.max(0,w(k)||1))*n.nodeRelSize,P=Math.sqrt(Math.max(0,w(O)||1))*n.nodeRelSize,T=Math.min(1,Math.max(0,v(C))),z=x(C)||"rgba(0,0,0,0.28)",A=S/h/2,L=C.__controlPoints&&Mp(ze,[k.x,k.y].concat(Ft(C.__controlPoints),[O.x,O.y])),W=L?function(Q){return L.get(Q)}:function(Q){return{x:k.x+(O.x-k.x)*Q||0,y:k.y+(O.y-k.y)*Q||0}},X=L?L.length():Math.sqrt(Math.pow(O.x-k.x,2)+Math.pow(O.y-k.y,2)),Z=D+S+(X-D-P-S)*T,oe=W(Z/X),de=W((Z-S)/X),F=W((Z-S*(1-p))/X),ee=Math.atan2(oe.y-de.y,oe.x-de.x)-Math.PI/2;b.beginPath(),b.moveTo(oe.x,oe.y),b.lineTo(de.x+A*Math.cos(ee),de.y+A*Math.sin(ee)),b.lineTo(F.x,F.y),b.lineTo(de.x-A*Math.cos(ee),de.y-A*Math.sin(ee)),b.fillStyle=z,b.fill()}}}),b.restore()}function f(){var h=Me(n.linkDirectionalParticles),p=Me(n.linkDirectionalParticleSpeed),g=Me(n.linkDirectionalParticleWidth),v=Me(n.linkVisibility),m=Me(n.linkDirectionalParticleColor||n.linkColor),x=n.ctx;x.save(),n.graphData.links.filter(v).forEach(function(w){var b=h(w);if(!(!w.hasOwnProperty("__photons")||!w.__photons.length)){var C=w.source,S=w.target;if(!(!C||!S||!C.hasOwnProperty("x")||!S.hasOwnProperty("x"))){var k=p(w),O=w.__photons||[],D=Math.max(0,g(w)/2)/Math.sqrt(n.globalScale),P=m(w)||"rgba(0,0,0,0.28)";x.fillStyle=P;var T=w.__controlPoints?Mp(ze,[C.x,C.y].concat(Ft(w.__controlPoints),[S.x,S.y])):null,z=0,A=!1;O.forEach(function(L){var W=!!L.__singleHop;if(L.hasOwnProperty("__progressRatio")||(L.__progressRatio=W?0:z/b),!W&&z++,L.__progressRatio+=k,L.__progressRatio>=1)if(!W)L.__progressRatio=L.__progressRatio%1;else{A=!0;return}var X=L.__progressRatio,Z=T?T.get(X):{x:C.x+(S.x-C.x)*X||0,y:C.y+(S.y-C.y)*X||0};x.beginPath(),x.arc(Z.x,Z.y,D,0,2*Math.PI,!1),x.fill()}),A&&(w.__photons=w.__photons.filter(function(L){return!L.__singleHop||L.__progressRatio<=1}))}}}),x.restore()}},emitParticle:function(n,i){return i&&(!i.__photons&&(i.__photons=[]),i.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:tS().force("link",Wk()).force("charge",nS()).force("center",G2()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(n,i){i.ctx=n},update:function(n,i){n.engineRunning=!1,n.onUpdate(),n.nodeAutoColorBy!==null&&Op(n.graphData.nodes,Me(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&Op(n.graphData.links,Me(n.linkAutoColorBy),n.linkColor),n.graphData.links.forEach(function(x){x.source=x[n.linkSource],x.target=x[n.linkTarget]}),n.forceLayout.stop().alpha(1).nodes(n.graphData.nodes);var s=n.forceLayout.force("link");s&&s.id(function(x){return x[n.nodeId]}).links(n.graphData.links);var a=n.dagMode&&LS(n.graphData,function(x){return x[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),u=Math.max.apply(Math,Ft(Object.values(a||[]))),f=n.dagLevelDistance||n.graphData.nodes.length/(u||1)*FS*(["radialin","radialout"].indexOf(n.dagMode)!==-1?.7:1);if(["lr","rl","td","bu"].includes(i.dagMode)){var h=["lr","rl"].includes(i.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(x){return delete x[h]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var p=["rl","bu"].includes(n.dagMode),g=function(w){return(a[w[n.nodeId]]-u/2)*f*(p?-1:1)},v=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(x){return x[v]=g(x)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?rS(function(x){var w=a[x[n.nodeId]]||-1;return(n.dagMode==="radialin"?u-w:w)*f}).strength(function(x){return n.dagNodeFilter(x)?1:0}):null);for(var m=0;m<n.warmupTicks&&!(n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin);m++)n.forceLayout.tick();this.resetCountdown(),n.onFinishUpdate()}});function hm(e,n){var i=e instanceof Array?e:[e],s=new n;return s._destructor&&s._destructor(),{linkProp:function(u){return{default:s[u](),onChange:function(h,p){i.forEach(function(g){return p[g][u](h)})},triggerUpdate:!1}},linkMethod:function(u){return function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];var v=[];return i.forEach(function(m){var x=f[m],w=x[u].apply(x,p);w!==x&&v.push(w)}),v.length?v[0]:this}}}}var $S=800,US=4,HS=5,dm=hm("forceGraph",wl),qS=hm(["forceGraph","shadowGraph"],wl),VS=Object.assign.apply(Object,Ft(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map(function(e){return No({},e,dm.linkProp(e))})).concat(Ft(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(e){return No({},e,qS.linkProp(e))})))),QS=Object.assign.apply(Object,Ft(["d3Force","d3ReheatSimulation","emitParticle"].map(function(e){return No({},e,dm.linkMethod(e))})));function Mu(e){if(e.canvas){var n=e.canvas.width,i=e.canvas.height;n===300&&i===150&&(n=i=0);var s=window.devicePixelRatio;n/=s,i/=s,[e.canvas,e.shadowCanvas].forEach(function(u){u.style.width="".concat(e.width,"px"),u.style.height="".concat(e.height,"px"),u.width=e.width*s,u.height=e.height*s,!n&&!i&&u.getContext("2d").scale(s,s)});var a=un(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-n)/2/a,(e.height-i)/2/a),e.needsRedraw=!0}}function pm(e){var n=window.devicePixelRatio;e.setTransform(n,0,0,n,0,0)}function Ap(e,n,i){e.save(),pm(e),e.clearRect(0,0,n,i),e.restore()}var BS=_c({props:ri({width:{default:window.innerWidth,onChange:function(n,i){return Mu(i)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(n,i){return Mu(i)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(n,i){[n.nodes,n.links].every(function(a){return(a||[]).every(function(u){return!u.hasOwnProperty("__indexColor")})})&&i.colorTracker.reset(),[{type:"Node",objs:n.nodes},{type:"Link",objs:n.links}].forEach(s),i.forceGraph.graphData(n),i.shadowGraph.graphData(n);function s(a){var u=a.type,f=a.objs;f.filter(function(h){if(!h.hasOwnProperty("__indexColor"))return!0;var p=i.colorTracker.lookup(h.__indexColor);return!p||!p.hasOwnProperty("d")||p.d!==h}).forEach(function(h){h.__indexColor=i.colorTracker.register({type:u,d:h})})}},triggerUpdate:!1},backgroundColor:{onChange:function(n,i){i.canvas&&n&&(i.canvas.style.background=n)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(n,i){i.shadowGraph.nodeCanvasObject(n?function(s,a,u){return n(s,s.__indexColor,a,u)}:null),i.flushShadowCanvas&&i.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(n,i){i.shadowGraph.linkCanvasObject(n?function(s,a,u){return n(s,s.__indexColor,a,u)}:null),i.flushShadowCanvas&&i.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(n,i){i.zoom.scaleExtent([n,i.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(n,i){i.zoom.scaleExtent([i.zoom.scaleExtent()[0],n])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(n,i){i.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},onZoom:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},VS),aliases:{stopAnimation:"pauseAnimation"},methods:ri({graph2ScreenCoords:function(n,i,s){var a=un(n.canvas);return{x:i*a.k+a.x,y:s*a.k+a.y}},screen2GraphCoords:function(n,i,s){var a=un(n.canvas);return{x:(i-a.x)/a.k,y:(s-a.y)/a.k}},centerAt:function(n,i,s,a){if(!n.canvas)return null;if(i!==void 0||s!==void 0){var u=Object.assign({},i!==void 0?{x:i}:{},s!==void 0?{y:s}:{});return a?n.tweenGroup.add(new rp(f()).to(u,a).easing(Er.Quadratic.Out).onUpdate(h).start()):h(u),this}return f();function f(){var p=un(n.canvas);return{x:(n.width/2-p.x)/p.k,y:(n.height/2-p.y)/p.k}}function h(p){var g=p.x,v=p.y;n.zoom.translateTo(n.zoom.__baseElem,g===void 0?f().x:g,v===void 0?f().y:v),n.needsRedraw=!0}},zoom:function(n,i,s){if(!n.canvas)return null;if(i!==void 0)return s?n.tweenGroup.add(new rp({k:a()}).to({k:i},s).easing(Er.Quadratic.Out).onUpdate(function(f){var h=f.k;return u(h)}).start()):u(i),this;return a();function a(){return un(n.canvas).k}function u(f){n.zoom.scaleTo(n.zoom.__baseElem,f),n.needsRedraw=!0}},zoomToFit:function(n){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length,u=new Array(a>3?a-3:0),f=3;f<a;f++)u[f-3]=arguments[f];var h=this.getGraphBbox.apply(this,u);if(h){var p={x:(h.x[0]+h.x[1])/2,y:(h.y[0]+h.y[1])/2},g=Math.max(1e-12,Math.min(1e12,(n.width-s*2)/(h.x[1]-h.x[0]),(n.height-s*2)/(h.y[1]-h.y[0])));this.centerAt(p.x,p.y,i),this.zoom(g,i)}return this},getGraphBbox:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},s=Me(n.nodeVal),a=function(h){return Math.sqrt(Math.max(0,s(h)||1))*n.nodeRelSize},u=n.graphData.nodes.filter(i).map(function(f){return{x:f.x,y:f.y,r:a(f)}});return u.length?{x:[Jd(u,function(f){return f.x-f.r}),Zd(u,function(f){return f.x+f.r})],y:[Jd(u,function(f){return f.y-f.r}),Zd(u,function(f){return f.y+f.r})]}:null},pauseAnimation:function(n){return n.animationFrameRequestId&&(cancelAnimationFrame(n.animationFrameRequestId),n.animationFrameRequestId=null),this},resumeAnimation:function(n){return n.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},QS),stateInit:function(){return{lastSetZoom:1,zoom:rw(),forceGraph:new wl,shadowGraph:new wl().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new N2,tweenGroup:new Dg}},init:function(n,i){var s=this;n.innerHTML="";var a=document.createElement("div");a.classList.add("force-graph-container"),a.style.position="relative",n.appendChild(a),i.canvas=document.createElement("canvas"),i.backgroundColor&&(i.canvas.style.background=i.backgroundColor),a.appendChild(i.canvas),i.shadowCanvas=document.createElement("canvas");var u=i.canvas.getContext("2d"),f=i.shadowCanvas.getContext("2d",{willReadFrequently:!0}),h={x:-1e12,y:-1e12},p=function(){var m=null,x=window.devicePixelRatio,w=h.x>0&&h.y>0?f.getImageData(h.x*x,h.y*x,1,1):null;return w&&(m=i.colorTracker.lookup(w.data)),m};Lt(i.canvas).call(dx().subject(function(){if(!i.enableNodeDrag)return null;var v=p();return v&&v.type==="Node"?v.d:null}).on("start",function(v){var m=v.subject;m.__initialDragPos={x:m.x,y:m.y,fx:m.fx,fy:m.fy},v.active||(m.fx=m.x,m.fy=m.y),i.canvas.classList.add("grabbable")}).on("drag",function(v){var m=v.subject,x=m.__initialDragPos,w=v,b=un(i.canvas).k,C={x:x.x+(w.x-x.x)/b-m.x,y:x.y+(w.y-x.y)/b-m.y};["x","y"].forEach(function(S){return m["f".concat(S)]=m[S]=x[S]+(w[S]-x[S])/b}),!(!m.__dragged&&HS>=Math.sqrt(lw(["x","y"].map(function(S){return Math.pow(v[S]-x[S],2)}))))&&(i.forceGraph.d3AlphaTarget(.3).resetCountdown(),i.isPointerDragging=!0,m.__dragged=!0,i.onNodeDrag(m,C))}).on("end",function(v){var m=v.subject,x=m.__initialDragPos,w={x:m.x-x.x,y:m.y-x.y};x.fx===void 0&&(m.fx=void 0),x.fy===void 0&&(m.fy=void 0),delete m.__initialDragPos,i.forceGraph.d3AlphaTarget()&&i.forceGraph.d3AlphaTarget(0).resetCountdown(),i.canvas.classList.remove("grabbable"),i.isPointerDragging=!1,m.__dragged&&(delete m.__dragged,i.onNodeDragEnd(m,w))})),i.zoom(i.zoom.__baseElem=Lt(i.canvas)),i.zoom.__baseElem.on("dblclick.zoom",null),i.zoom.filter(function(v){return!v.button&&i.enableZoomPanInteraction&&(v.type!=="wheel"||Me(i.enableZoomInteraction)(v))&&(v.type==="wheel"||Me(i.enablePanInteraction)(v))}).on("zoom",function(v){var m=v.transform;[u,f].forEach(function(x){pm(x),x.translate(m.x,m.y),x.scale(m.k,m.k)}),i.isPointerDragging=!0,i.onZoom&&i.onZoom(ri(ri({},m),s.centerAt())),i.needsRedraw=!0}).on("end",function(v){i.isPointerDragging=!1,i.onZoomEnd&&i.onZoomEnd(ri(ri({},v.transform),s.centerAt()))}),Mu(i),i.forceGraph.onNeedsRedraw(function(){return i.needsRedraw=!0}).onFinishUpdate(function(){un(i.canvas).k===i.lastSetZoom&&i.graphData.nodes.length&&(i.zoom.scaleTo(i.zoom.__baseElem,i.lastSetZoom=US/Math.cbrt(i.graphData.nodes.length)),i.needsRedraw=!0)}),i.tooltip=new K2(a),["pointermove","pointerdown"].forEach(function(v){return a.addEventListener(v,function(m){v==="pointerdown"&&(i.isPointerPressed=!0,i.pointerDownEvent=m),!i.isPointerDragging&&m.type==="pointermove"&&i.onBackgroundClick&&(m.pressure>0||i.isPointerPressed)&&(m.pointerType!=="touch"||m.movementX===void 0||[m.movementX,m.movementY].some(function(b){return Math.abs(b)>1}))&&(i.isPointerDragging=!0);var x=w(a);h.x=m.pageX-x.left,h.y=m.pageY-x.top;function w(b){var C=b.getBoundingClientRect(),S=window.pageXOffset||document.documentElement.scrollLeft,k=window.pageYOffset||document.documentElement.scrollTop;return{top:C.top+k,left:C.left+S}}},{passive:!0})}),a.addEventListener("pointerup",function(v){if(i.isPointerPressed){if(i.isPointerPressed=!1,i.isPointerDragging){i.isPointerDragging=!1;return}var m=[v,i.pointerDownEvent];requestAnimationFrame(function(){if(v.button===0)if(i.hoverObj){var x=i["on".concat(i.hoverObj.type,"Click")];x&&x.apply(void 0,[i.hoverObj.d].concat(m))}else i.onBackgroundClick&&i.onBackgroundClick.apply(i,m);if(v.button===2)if(i.hoverObj){var w=i["on".concat(i.hoverObj.type,"RightClick")];w&&w.apply(void 0,[i.hoverObj.d].concat(m))}else i.onBackgroundRightClick&&i.onBackgroundRightClick.apply(i,m)})}},{passive:!0}),a.addEventListener("contextmenu",function(v){return!i.onBackgroundRightClick&&!i.onNodeRightClick&&!i.onLinkRightClick?!0:(v.preventDefault(),!1)}),i.forceGraph(u),i.shadowGraph(f);var g=Aw(function(){Ap(f,i.width,i.height),i.shadowGraph.linkWidth(function(m){return Me(i.linkWidth)(m)+i.linkHoverPrecision});var v=un(i.canvas);i.shadowGraph.globalScale(v.k).tickFrame()},$S);i.flushShadowCanvas=g.flush,(this._animationCycle=function v(){var m=!i.autoPauseRedraw||!!i.needsRedraw||i.forceGraph.isEngineRunning()||i.graphData.links.some(function(D){return D.__photons&&D.__photons.length});if(i.needsRedraw=!1,i.enablePointerInteraction){var x=i.isPointerDragging?null:p();if(x!==i.hoverObj){var w=i.hoverObj,b=w?w.type:null,C=x?x.type:null;if(b&&b!==C){var S=i["on".concat(b,"Hover")];S&&S(null,w.d)}if(C){var k=i["on".concat(C,"Hover")];k&&k(x.d,b===C?w.d:null)}i.tooltip.content(x&&Me(i["".concat(x.type.toLowerCase(),"Label")])(x.d)||null),i.canvas.classList[x&&i["on".concat(C,"Click")]||!x&&i.onBackgroundClick?"add":"remove"]("clickable"),i.hoverObj=x}m&&g()}if(m){Ap(u,i.width,i.height);var O=un(i.canvas).k;i.onRenderFramePre&&i.onRenderFramePre(u,O),i.forceGraph.globalScale(O).tickFrame(),i.onRenderFramePost&&i.onRenderFramePost(u,O)}i.tweenGroup.update(),i.animationFrameRequestId=requestAnimationFrame(v)})()},update:function(n){}}),ju={exports:{}},Ou,zp;function WS(){if(zp)return Ou;zp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ou=e,Ou}var Ru,Dp;function KS(){if(Dp)return Ru;Dp=1;var e=WS();function n(){}function i(){}return i.resetWarningCache=n,Ru=function(){function s(f,h,p,g,v,m){if(m!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}s.isRequired=s;function a(){return s}var u={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:a,element:s,elementType:s,instanceOf:a,node:s,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:n};return u.PropTypes=u,u},Ru}var Ip;function GS(){return Ip||(Ip=1,ju.exports=KS()()),ju.exports}var XS=GS();const I=Qp(XS),Tl={width:I.number,height:I.number,graphData:I.shape({nodes:I.arrayOf(I.object).isRequired,links:I.arrayOf(I.object).isRequired}),backgroundColor:I.string,nodeRelSize:I.number,nodeId:I.string,nodeLabel:I.oneOfType([I.string,I.func]),nodeVal:I.oneOfType([I.number,I.string,I.func]),nodeVisibility:I.oneOfType([I.bool,I.string,I.func]),nodeColor:I.oneOfType([I.string,I.func]),nodeAutoColorBy:I.oneOfType([I.string,I.func]),onNodeHover:I.func,onNodeClick:I.func,linkSource:I.string,linkTarget:I.string,linkLabel:I.oneOfType([I.string,I.func]),linkVisibility:I.oneOfType([I.bool,I.string,I.func]),linkColor:I.oneOfType([I.string,I.func]),linkAutoColorBy:I.oneOfType([I.string,I.func]),linkWidth:I.oneOfType([I.number,I.string,I.func]),linkCurvature:I.oneOfType([I.number,I.string,I.func]),linkDirectionalArrowLength:I.oneOfType([I.number,I.string,I.func]),linkDirectionalArrowColor:I.oneOfType([I.string,I.func]),linkDirectionalArrowRelPos:I.oneOfType([I.number,I.string,I.func]),linkDirectionalParticles:I.oneOfType([I.number,I.string,I.func]),linkDirectionalParticleSpeed:I.oneOfType([I.number,I.string,I.func]),linkDirectionalParticleWidth:I.oneOfType([I.number,I.string,I.func]),linkDirectionalParticleColor:I.oneOfType([I.string,I.func]),onLinkHover:I.func,onLinkClick:I.func,dagMode:I.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:I.number,dagNodeFilter:I.func,onDagError:I.func,d3AlphaMin:I.number,d3AlphaDecay:I.number,d3VelocityDecay:I.number,warmupTicks:I.number,cooldownTicks:I.number,cooldownTime:I.number,onEngineTick:I.func,onEngineStop:I.func,getGraphBbox:I.func},gm={zoomToFit:I.func,onNodeRightClick:I.func,onNodeDrag:I.func,onNodeDragEnd:I.func,onLinkRightClick:I.func,linkHoverPrecision:I.number,onBackgroundClick:I.func,onBackgroundRightClick:I.func,enablePointerInteraction:I.bool,enableNodeDrag:I.bool},Pc={showNavInfo:I.bool,nodeOpacity:I.number,nodeResolution:I.number,nodeThreeObject:I.oneOfType([I.object,I.string,I.func]),nodeThreeObjectExtend:I.oneOfType([I.bool,I.string,I.func]),linkOpacity:I.number,linkResolution:I.number,linkCurveRotation:I.oneOfType([I.number,I.string,I.func]),linkMaterial:I.oneOfType([I.object,I.string,I.func]),linkThreeObject:I.oneOfType([I.object,I.string,I.func]),linkThreeObjectExtend:I.oneOfType([I.bool,I.string,I.func]),linkPositionUpdate:I.func,linkDirectionalArrowResolution:I.number,linkDirectionalParticleResolution:I.number,forceEngine:I.oneOf(["d3","ngraph"]),ngraphPhysics:I.object,numDimensions:I.oneOf([1,2,3])},YS=Object.assign({},Tl,gm,{linkLineDash:I.oneOfType([I.arrayOf(I.number),I.string,I.func]),nodeCanvasObjectMode:I.oneOfType([I.string,I.func]),nodeCanvasObject:I.func,nodePointerAreaPaint:I.func,linkCanvasObjectMode:I.oneOfType([I.string,I.func]),linkCanvasObject:I.func,linkPointerAreaPaint:I.func,autoPauseRedraw:I.bool,minZoom:I.number,maxZoom:I.number,enableZoomInteraction:I.oneOfType([I.bool,I.func]),enablePanInteraction:I.oneOfType([I.bool,I.func]),onZoom:I.func,onZoomEnd:I.func,onRenderFramePre:I.func,onRenderFramePost:I.func});Object.assign({},Tl,gm,Pc,{enableNavigationControls:I.bool,controlType:I.oneOf(["trackball","orbit","fly"]),rendererConfig:I.object,extraRenderers:I.arrayOf(I.shape({render:I.func.isRequired}))});Object.assign({},Tl,Pc,{nodeDesc:I.oneOfType([I.string,I.func]),linkDesc:I.oneOfType([I.string,I.func])});Object.assign({},Tl,Pc,{markerAttrs:I.object,yOffset:I.number,glScale:I.number});const Tc=Cv(BS,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Tc.displayName="ForceGraph2D";Tc.propTypes=YS;const ZS=e=>{const n=[],i=[],s=new Map;e.forEach(f=>{const h=f.metadata;if(h?.type==="fragment"&&h.documentId){const p=s.get(h.documentId)||0;s.set(h.documentId,p+1)}}),e.forEach(f=>{const h=f.metadata;if(!f.id||!h||typeof h!="object")return;const p=()=>{let v="";if(h.title?v=h.title:h.filename?v=h.filename:h.originalFilename?v=h.originalFilename:h.path?v=h.path.split("/").pop()||h.path:v=`${(h.type||"").toLowerCase()==="document"?"Doc":"Fragment"} ${f.id?f.id.substring(0,8):"Unknown"}`,h.type==="document"&&f.id){const m=s.get(f.id)||0;m>0&&(v+=` (${m} fragments)`)}return v},g={id:f.id,name:p(),memory:f,val:3,type:(h.type||"").toLowerCase()==="document"?"document":"fragment"};(h.type||"").toLowerCase()==="document"?(g.val=5,n.push(g)):(h.type||"").toLowerCase()==="fragment"||h.documentId&&(h.type||"").toLowerCase()!=="document"?(g.val=3,i.push(g)):n.push(g)});const a=[];return i.forEach(f=>{const h=f.memory.metadata;if(h.documentId){const p=n.find(g=>g.id===h.documentId);p&&a.push({source:p.id,target:f.id,value:1})}}),{nodes:[...n,...i],links:a}};function JS({memories:e,onNodeClick:n,selectedMemoryId:i}){const s=se.useRef(null),[a,u]=se.useState(!1),[f,h]=se.useState(!0),[p,g]=se.useState({nodes:[],links:[]}),v=se.useRef(null),[m,x]=se.useState({width:800,height:600}),w=4;se.useEffect(()=>{if(e.length>0){const S=ZS(e);g(S)}},[e]),se.useEffect(()=>()=>{s.current=null,u(!1),h(!1)},[]),se.useEffect(()=>{const S=()=>{if(v.current){const{offsetWidth:k,offsetHeight:O}=v.current;x({width:k,height:O})}};return S(),window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[]),se.useEffect(()=>{if(a&&s.current&&i){const S=p.nodes.find(k=>k.id===i);S&&(s.current.centerAt(S.x,S.y,1e3),s.current.zoom(2.5,1e3))}},[i,a,p.nodes]);const b=se.useCallback(S=>{if(s.current=S,S){const k=S.d3Force("charge");k&&k.strength(-120);const O=S.d3Force("link");O&&O.distance(50),S.zoomToFit(400),u(!0)}},[]),C=()=>N.jsxs("div",{className:"absolute top-4 right-4 p-3 bg-card/90 text-card-foreground border border-border rounded-md shadow-sm text-xs backdrop-blur-sm",children:[N.jsx("div",{className:"font-medium mb-2 text-xs",children:"Legend"}),N.jsxs("div",{className:"flex items-center mb-2",children:[N.jsx("div",{className:"w-3 h-3 rounded-full bg-orange-500/90 mr-2 border border-orange-600/60"}),N.jsx("span",{children:"Document"})]}),N.jsxs("div",{className:"flex items-center",children:[N.jsx("div",{className:"w-3 h-3 rounded-full bg-gray-400/90 mr-2 border border-gray-500/60"}),N.jsx("span",{children:"Fragment"})]})]});return N.jsxs("div",{ref:v,className:"w-full h-full relative",children:[C(),f&&N.jsx(Tc,{ref:S=>{s.current=S,S&&!a&&b(S)},graphData:p,width:m.width,height:m.height,backgroundColor:"hsla(var(--background), 0.8)",linkColor:()=>"hsla(var(--muted-foreground), 0.2)",linkWidth:1,linkDirectionalParticles:1,linkDirectionalParticleWidth:1,linkDirectionalParticleSpeed:.003,nodeRelSize:w,nodeVal:S=>S.val||3,nodeColor:S=>S.type==="document"?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",nodeLabel:S=>{const k=S.memory.metadata;return`${S.type==="document"?"Document":"Fragment"}: ${k.title||S.id.substring(0,8)}`},onNodeClick:S=>{n(S.memory)},onNodeDragEnd:S=>{S.fx=S.x,S.fy=S.y},cooldownTicks:100,nodeCanvasObjectMode:S=>i===S.id?"after":"replace",nodeCanvasObject:(S,k,O)=>{const{x:D,y:P}=S,T=(S.val||3)*w,z=10/O,A=i===S.id,L=S.type==="document";if(k.beginPath(),k.arc(D||0,P||0,T,0,2*Math.PI),k.fillStyle=L?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",k.fill(),k.strokeStyle=L?"hsl(30, 100%, 35%)":"hsl(210, 10%, 45%)",k.lineWidth=A?2:1,k.stroke(),O>=1.4||A){const W=S.name||S.id.substring(0,6),X=S.memory.metadata,Z=L?W:X.position!==void 0?`#${X.position}`:W;k.font=`${A?"bold ":""}${z}px Arial`,k.textAlign="center",k.textBaseline="middle",k.strokeStyle="hsla(var(--background), 0.8)",k.lineWidth=3,k.strokeText(Z,D||0,P||0),k.fillStyle="hsla(var(--foreground), 0.9)",k.fillText(Z,D||0,P||0)}if(A){k.beginPath(),k.arc(D||0,P||0,T*1.4,0,2*Math.PI),k.strokeStyle=L?"hsla(30, 100%, 60%, 0.8)":"hsla(210, 10%, 80%, 0.8)",k.lineWidth=1.5,k.stroke();const W=k.createRadialGradient(D||0,P||0,T,D||0,P||0,T*2);W.addColorStop(0,L?"hsla(30, 100%, 60%, 0.3)":"hsla(210, 10%, 80%, 0.3)"),W.addColorStop(1,"hsla(0, 0%, 0%, 0)"),k.fillStyle=W,k.beginPath(),k.arc(D||0,P||0,T*2,0,2*Math.PI),k.fill()}}})]})}const Ro=(...e)=>e.filter(Boolean).join(" "),eb=()=>({toast:({title:e,description:n,variant:i})=>{console.log(`Toast: ${e} - ${n} (${i||"default"})`)}}),Lp=({open:e,onOpenChange:n,children:i})=>e?N.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm flex items-center justify-center p-4",onClick:()=>n(!1),children:N.jsx("div",{className:"bg-card text-card-foreground rounded-lg shadow-lg max-w-full max-h-full flex flex-col border border-border",onClick:s=>s.stopPropagation(),children:i})}):null,Fp=({className:e,children:n})=>N.jsx("div",{className:Ro("p-6 flex flex-col border-border",e),children:n}),$p=({className:e,children:n})=>N.jsx("div",{className:Ro("mb-4",e),children:n}),Up=({className:e,children:n})=>N.jsx("h2",{className:Ro("text-lg font-semibold",e),children:n}),Hp=({className:e,children:n})=>N.jsx("p",{className:Ro("text-sm text-muted-foreground",e),children:n}),qp=({className:e,children:n})=>N.jsx("div",{className:Ro("flex justify-end gap-2 mt-4",e),children:n}),fo=10,mm=e=>{const i=e.name.toLowerCase().split(".").pop()||"",s=["ts","tsx","js","jsx","mjs","cjs","py","pyw","pyi","java","c","cpp","cc","cxx","h","hpp","cs","php","rb","go","rs","swift","kt","kts","scala","clj","cljs","ex","exs","r","R","m","mm","sh","bash","zsh","fish","ps1","bat","cmd","sql","lua","pl","pm","dart","hs","elm","ml","fs","fsx","vb","pas","d","nim","zig","jl","tcl","awk","sed","vue","svelte","astro","gitignore","dockerignore","editorconfig","env","cfg","conf","ini","log","txt"],a=["md","markdown"],u=["json"],f=["xml"],h=["html","htm"],p=["css","scss","sass","less"],g=["csv","tsv"],v=["yaml","yml"];return s.includes(i)?"text/plain":a.includes(i)?"text/markdown":u.includes(i)?"application/json":f.includes(i)?"application/xml":h.includes(i)?"text/html":p.includes(i)?"text/css":g.includes(i)?"text/csv":v.includes(i)?"text/yaml":i==="pdf"?"application/pdf":i==="doc"?"application/msword":i==="docx"?"application/vnd.openxmlformats-officedocument.wordprocessingml.document":e.type||"application/octet-stream"},Po={getKnowledgeDocuments:async(e,n)=>{const i=new URLSearchParams;i.append("agentId",e),n?.limit&&i.append("limit",n.limit.toString()),n?.before&&i.append("before",n.before.toString()),n?.includeEmbedding&&i.append("includeEmbedding","true");const s=await fetch(`/api/documents?${i.toString()}`);if(!s.ok){const a=await s.text();throw new Error(`Failed to fetch knowledge documents: ${s.status} ${a}`)}return await s.json()},getKnowledgeChunks:async(e,n)=>{const i=new URLSearchParams;i.append("agentId",e),n?.limit&&i.append("limit",n.limit.toString()),n?.before&&i.append("before",n.before.toString()),n?.documentId&&i.append("documentId",n.documentId),n?.documentsOnly&&i.append("documentsOnly","true");const s=await fetch(`/api/knowledges?${i.toString()}`);if(!s.ok){const a=await s.text();throw new Error(`Failed to fetch knowledge chunks: ${s.status} ${a}`)}return await s.json()},deleteKnowledgeDocument:async(e,n)=>{const i=new URLSearchParams;i.append("agentId",e);const s=await fetch(`/api/documents/${n}?${i.toString()}`,{method:"DELETE"});if(!s.ok){const a=await s.text();throw new Error(`Failed to delete knowledge document: ${s.status} ${a}`)}if(s.status!==204)return await s.json()},uploadKnowledge:async(e,n)=>{const i=new FormData;for(const a of n){const u=mm(a),f=new Blob([a],{type:u});i.append("files",f,a.name)}i.append("agentId",e);const s=await fetch("/api/documents",{method:"POST",body:i});if(!s.ok){const a=await s.text();throw new Error(`Failed to upload knowledge: ${s.status} ${a}`)}return await s.json()},searchKnowledge:async(e,n,i=.5,s=20)=>{const a=new URLSearchParams;a.append("agentId",e),a.append("q",n),a.append("threshold",i.toString()),a.append("limit",s.toString());const u=await fetch(`/api/search?${a.toString()}`);if(!u.ok){const f=await u.text();throw new Error(`Failed to search knowledge: ${u.status} ${f}`)}return await u.json()}},tb=(e,n=!0,i=!1)=>Fu({queryKey:["agents",e,"knowledge","documents",{includeEmbedding:i}],queryFn:async()=>(await Po.getKnowledgeDocuments(e,{includeEmbedding:i})).data.memories||[],enabled:n}),nb=(e,n=!0,i)=>{const{data:s=[],isLoading:a,error:u}=Fu({queryKey:["agents",e,"knowledge","documents-graph"],queryFn:async()=>(await Po.getKnowledgeDocuments(e,{includeEmbedding:!1})).data.memories||[],enabled:n&&!i}),{data:f=[],isLoading:h,error:p}=Fu({queryKey:["agents",e,"knowledge","document-fragments",i],queryFn:async()=>i?(await Po.getKnowledgeChunks(e,{documentId:i})).data.chunks||[]:[],enabled:n&&!!i}),g=i?f:s;return{data:g,isLoading:a||h,error:u||p,documents:i?s:g,fragments:i?f.filter(x=>x.metadata?.type==="fragment"):[],mode:i?"document-fragments":"documents-only"}},rb=e=>{const n=kl();return By({mutationFn:async({knowledgeId:i})=>{await Po.deleteKnowledgeDocument(e,i)},onSuccess:()=>{n.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})}})};function ib({agentId:e}){const[n,i]=se.useState(null),[s,a]=se.useState(!1),[u,f]=se.useState(fo),[h,p]=se.useState(!1),[g,v]=se.useState("list"),[m,x]=se.useState(null),[w,b]=se.useState(1),[C,S]=se.useState(!1),[k,O]=se.useState(""),[D,P]=se.useState(!1),[T,z]=se.useState(null),[A,L]=se.useState([]),[W,X]=se.useState(!1),[Z,oe]=se.useState(""),[de,F]=se.useState(.5),[ee,Q]=se.useState([]),[ne,V]=se.useState(!1),[Y,B]=se.useState(null),[M,q]=se.useState(""),[ue,fe]=se.useState(void 0),ve=se.useRef(null),xe=se.useRef(null),{toast:Se}=eb(),be=kl(),{data:Pe=[],isLoading:lt,error:Mr}=tb(e,g==="list"&&!W,!1),{data:ci=[],isLoading:lr,error:fi,documents:Ao=[],fragments:zo=[]}=nb(e,g==="graph"&&!W,ue),hi=g==="list"?lt:lr,di=g==="list"?Mr:fi,en=g==="list"?Pe:ci,tn=g==="list"?Pe.length:Ao.length,gn=g==="graph"?zo.length:0,{mutate:pi}=rb(e),mn=fc.useMemo(()=>g!=="list"||!M.trim()?en:en.filter(te=>{const _e=te.metadata||{};return(_e.filename||_e.originalFilename||_e.path||"").toLowerCase().includes(M.toLowerCase())}),[en,M,g]),Do=mn.slice(0,u),Io=u<mn.length,jr=se.useCallback(()=>{if(!xe.current||h||u>=mn.length)return;const{scrollTop:te,scrollHeight:_e,clientHeight:ke}=xe.current;te+ke>=_e-100&&(p(!0),setTimeout(()=>{f(St=>Math.min(St+fo,mn.length)),p(!1)},300))},[h,u,mn.length]);if(se.useEffect(()=>{f(fo)},[]),se.useEffect(()=>{f(fo)},[M]),se.useEffect(()=>{const te=_e=>{_e.key==="Escape"&&n&&(i(null),b(1))};if(n)return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[n]),se.useEffect(()=>{const te=xe.current;if(te)return te.addEventListener("scroll",jr),()=>te.removeEventListener("scroll",jr)},[jr]),hi&&(!en||en.length===0)&&!W)return N.jsx("div",{className:"flex items-center justify-center h-40",children:"Loading knowledge documents..."});if(di&&!W)return N.jsxs("div",{className:"flex items-center justify-center h-40 text-destructive",children:["Error loading knowledge documents: ",di.message]});const gi=te=>{const _e=new Date(te);return`${_e.toLocaleDateString()} ${_e.toLocaleTimeString()}`},Or=te=>{switch(te.split(".").pop()?.toLowerCase()){case"md":return N.jsx(vu,{className:"h-5 w-5 text-blue-500"});case"js":case"ts":case"jsx":case"tsx":return N.jsx(vu,{className:"h-5 w-5 text-yellow-500"});case"json":return N.jsx(vu,{className:"h-5 w-5 text-green-500"});case"pdf":return N.jsx(Ed,{className:"h-5 w-5 text-red-500"});default:return N.jsx(Ed,{className:"h-5 w-5 text-gray-500"})}},Lo=te=>{te&&window.confirm("Are you sure you want to delete this document?")&&(pi({knowledgeId:te}),i(null))},zn=()=>{ve.current&&ve.current.click()},ar=()=>{S(!0),O(""),L([]),z(null)},Fo=()=>{try{if(!new URL(k).protocol.startsWith("http")){z("URL must start with http:// or https://");return}if(A.includes(k)){z("This URL is already in the list");return}L([...A,k]),O(""),z(null)}catch{z("Invalid URL")}},$o=te=>{L(A.filter(_e=>_e!==te))},mi=async()=>{if(!Z.trim()){B("Please enter a search query");return}V(!0),B(null),Q([]);try{const te=await Po.searchKnowledge(e,Z,de);Q(te.data.results||[]),te.data.results.length===0&&B("No results found. Try adjusting your search query or lowering the similarity threshold.")}catch(te){B(te.message||"Failed to search knowledge"),Q([])}finally{V(!1)}},Ml=async()=>{if(k.trim())try{new URL(k).protocol.startsWith("http")&&!A.includes(k)&&L([...A,k])}catch{}if(A.length===0){z("Please add at least one valid URL");return}P(!0),z(null);try{const te=await fetch("/api/documents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileUrls:A,agentId:e})});if(!te.ok){const ke=await te.text();throw new Error(ke)}const _e=await te.json();_e.success?(Se({title:"URLs imported",description:`Successfully imported ${A.length} document(s)`}),S(!1),be.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})):z(_e.error?.message||"Error importing documents from URLs")}catch(te){z(te.message||"Error importing documents from URLs"),Se({title:"Error",description:"Failed to import documents from URLs",variant:"destructive"})}finally{P(!1)}},yi=async te=>{const _e=te.target.files;if(!(!_e||_e.length===0)){a(!0);try{const ke=Array.from(_e),kt=new FormData;for(const tt of ke){const $t=mm(tt),dt=new Blob([tt],{type:$t});kt.append("files",dt,tt.name)}kt.append("agentId",e);const St=await fetch("/api/documents",{method:"POST",body:kt});if(!St.ok)throw new Error(`Upload failed: ${St.statusText}`);const yn=(await St.json()).data||[];if(Array.isArray(yn)&&yn.every(tt=>tt.status==="success"))Se({title:"Knowledge Uploaded",description:`Successfully uploaded ${ke.length} file(s)`}),be.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]});else{const tt=yn.filter(dt=>dt.status==="success").length,$t=ke.length-tt;Se({title:$t>0?"Upload Partially Failed":"Upload Issues",description:`Uploaded ${tt} file(s). ${$t} file(s) failed. Check console for details.`,variant:$t>0?"destructive":"default"}),console.error("Upload results:",yn)}}catch(ke){Se({title:"Upload Failed",description:ke instanceof Error?ke.message:"Failed to upload knowledge files",variant:"destructive"}),console.error("Upload error:",ke)}finally{a(!1),ve.current&&(ve.current.value="")}}},vi=()=>N.jsx("div",{className:"flex justify-center p-4",children:h?N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(ti,{className:"h-4 w-4 animate-spin"}),N.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading more..."})]}):N.jsx(Ve,{variant:"ghost",size:"sm",onClick:()=>{p(!0),setTimeout(()=>{f(te=>Math.min(te+fo,mn.length)),p(!1)},100)},className:"text-xs",children:"Show more"})}),xi=()=>N.jsxs("div",{className:"text-muted-foreground text-center p-12 flex flex-col items-center gap-3 border-2 border-dashed rounded-lg mt-8",children:[N.jsx(rv,{className:"h-12 w-12 text-muted-foreground opacity-20"}),N.jsx("h3",{className:"text-lg font-medium",children:"No Knowledge Documents"}),N.jsx("p",{className:"max-w-md text-sm",children:"No Knowledge Documents found."}),N.jsxs(Ve,{variant:"outline",onClick:zn,children:[N.jsx(Nd,{className:"h-4 w-4 mr-2"}),"Upload Documents"]})]}),_i=()=>nn?N.jsxs(N.Fragment,{children:[N.jsxs(Ve,{variant:"outline",size:"sm",onClick:()=>v("list"),className:"flex-shrink-0",title:"Switch to List view to see documents only",children:[N.jsx(xu,{className:"h-4 w-4 mr-2"}),N.jsx("span",{children:"List View"})]}),N.jsxs(Ve,{variant:"outline",size:"sm",onClick:()=>{fe(void 0),x(null)},className:"flex-shrink-0",children:[N.jsx(nv,{className:"h-4 w-4 mr-2"}),N.jsx("span",{children:"Overview Graph"})]})]}):W?N.jsxs(Ve,{variant:"outline",size:"sm",onClick:()=>{X(!1),oe(""),Q([]),B(null),v("list")},className:"flex-shrink-0",title:"Exit search and return to List view",children:[N.jsx(xu,{className:"h-4 w-4 mr-2"}),N.jsx("span",{className:"hidden md:inline",children:"List View"}),N.jsx("span",{className:"md:hidden",children:"List"})]}):g==="graph"?N.jsxs(Ve,{variant:"outline",size:"sm",onClick:()=>v("list"),className:"flex-shrink-0",title:"Switch to List view to see documents only",children:[N.jsx(xu,{className:"h-4 w-4 mr-2"}),N.jsx("span",{className:"hidden md:inline",children:"List View"}),N.jsx("span",{className:"md:hidden",children:"List"})]}):N.jsxs(N.Fragment,{children:[N.jsxs(Ve,{variant:"outline",size:"sm",onClick:()=>v("graph"),className:"flex-shrink-0",title:"Switch to Graph view to see documents and fragments",children:[N.jsx(ov,{className:"h-4 w-4 mr-2"}),N.jsx("span",{className:"hidden md:inline",children:"Graph View"}),N.jsx("span",{className:"md:hidden",children:"Graph"})]}),N.jsxs("div",{className:"flex gap-2 ml-auto sm:ml-0",children:[N.jsxs(Ve,{variant:"outline",onClick:()=>X(!0),size:"sm",className:"flex-shrink-0",children:[N.jsx(_u,{className:"h-4 w-4 sm:mr-2"}),N.jsx("span",{className:"hidden sm:inline",children:"Search"})]}),N.jsxs(Ve,{variant:"outline",onClick:ar,size:"sm",className:"flex-shrink-0",children:[N.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 sm:mr-2",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[N.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),N.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]}),N.jsx("span",{className:"hidden sm:inline",children:"URL"})]}),N.jsxs(Ve,{onClick:zn,disabled:s,size:"sm",className:"flex-shrink-0",children:[s?N.jsx(ti,{className:"h-4 w-4 animate-spin sm:mr-2"}):N.jsx(Nd,{className:"h-4 w-4 sm:mr-2"}),N.jsx("span",{className:"hidden sm:inline",children:"Upload"})]})]})]}),wi=({memory:te,index:_e})=>{const ke=te.metadata||{},kt=()=>ke.title?ke.title:ke.filename?ke.filename:ke.originalFilename?ke.originalFilename:ke.path?ke.path.split("/").pop()||ke.path:te.id?`Document ${te.id.substring(0,8)}`:`Document ${_e+1}`,St=()=>ke.fileExt?ke.fileExt.toLowerCase():(ke.filename||ke.originalFilename||ke.path||"").split(".").pop()?.toLowerCase()||"doc",In=()=>ke.path?ke.path:ke.filename?ke.filename:ke.originalFilename?ke.originalFilename:ke.source?`Source: ${ke.source}`:"Knowledge Document",yn=kt(),tt=In(),$t=St();return N.jsx("button",{type:"button",className:"w-full text-left hover:bg-accent/5 transition-colors group border-b border-border/30 cursor-pointer",onClick:()=>i(te),children:N.jsxs("div",{className:"flex items-center px-1 py-2 min-h-[2rem]",children:[N.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[N.jsx("div",{className:"flex-shrink-0",children:Or(yn)}),N.jsxs("div",{className:"flex-1 min-w-0",children:[N.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[N.jsx("span",{className:"text-xs font-medium truncate",children:tt}),N.jsx(Pd,{variant:"outline",className:"px-1 py-0 h-4 text-xs flex-shrink-0",children:$t||"doc"})]}),N.jsx("div",{className:"text-xs text-muted-foreground",children:new Date(te.createdAt||0).toLocaleString(void 0,{month:"numeric",day:"numeric",year:"2-digit",hour:"numeric",minute:"numeric"})})]})]}),N.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:te.id&&N.jsx(Ve,{variant:"ghost",size:"icon",className:"size-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:dt=>{dt&&(dt.stopPropagation(),dt.preventDefault()),Lo(te.id||"")},title:"Delete knowledge",children:N.jsx(sv,{className:"h-3 w-3 text-destructive"})})})]})},te.id||_e)},Dn=({memory:te})=>{const _e=te.metadata,ke=_e?.type==="fragment";return N.jsxs("div",{className:"border-t border-border bg-card text-card-foreground h-full flex flex-col",children:[N.jsxs("div",{className:"p-4 flex justify-between items-start flex-shrink-0",children:[N.jsxs("div",{className:"space-y-1",children:[N.jsxs("h3",{className:"text-sm font-medium flex items-center gap-2",children:[ke?N.jsxs("span",{className:"flex items-center",children:[N.jsx("div",{className:"h-3 w-3 rounded-full bg-accent mr-1.5"}),"Fragment"]}):N.jsxs("span",{className:"flex items-center",children:[N.jsx("div",{className:"h-3 w-3 rounded-full bg-primary mr-1.5"}),"Document"]}),N.jsx("span",{className:"text-muted-foreground ml-2",children:_e?.title||te.id?.substring(0,8)})]}),N.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[N.jsxs("div",{className:"col-span-2",children:["ID: ",N.jsx("span",{className:"font-mono",children:te.id})]}),ke&&_e.documentId&&N.jsxs("div",{className:"col-span-2",children:["Parent Document:"," ",N.jsx("span",{className:"font-mono text-primary/80",children:_e.documentId})]}),ke&&_e.position!==void 0&&N.jsxs("div",{children:["Position: ",_e.position]}),_e.source&&N.jsxs("div",{children:["Source: ",_e.source]}),N.jsxs("div",{children:["Created on: ",gi(te.createdAt||0)]})]})]}),N.jsx(Ve,{variant:"ghost",size:"sm",onClick:()=>x(null),className:"text-xs h-7 px-2",children:"Close"})]}),N.jsxs("div",{className:"px-4 pb-4 flex-1 flex flex-col",children:[N.jsx("div",{className:"bg-background rounded border border-border p-3 text-sm overflow-auto flex-1",children:N.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs h-full",children:te.content?.text||"No content available"})}),te.embedding&&N.jsxs("div",{className:"mt-2 flex items-center text-xs text-muted-foreground flex-shrink-0",children:[N.jsx("span",{className:"bg-accent/20 text-accent-foreground px-1.5 py-0.5 rounded text-[10px] font-medium mr-1.5",children:"EMBEDDING"}),N.jsxs("span",{children:["Vector with ",te.embedding.length," dimensions"]})]})]})]})},nn=g==="graph"&&ue&&!W;return N.jsxs("div",{className:"flex flex-col h-full",children:[N.jsxs("div",{className:`flex flex-col sm:flex-row items-start sm:items-center justify-between border-b gap-3 ${nn?"p-6 pb-4":"p-4"}`,children:[N.jsxs("div",{className:"flex flex-col gap-1",children:[N.jsx("h2",{className:"text-lg font-semibold",children:"Knowledge"}),N.jsx("p",{className:"text-xs text-muted-foreground",children:W?"Searching knowledge fragments":g==="list"?`Viewing ${tn} document${tn!==1?"s":""}`:nn?`Inspecting document with ${gn} fragment${gn!==1?"s":""}`:`Viewing ${tn} document${tn!==1?"s":""}`})]}),N.jsx("div",{className:"flex items-center gap-3 w-full sm:w-auto",children:N.jsx(_i,{})})]}),W&&N.jsx("div",{className:"border-b border-border bg-muted/30 p-4",children:N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(iv,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),N.jsx("p",{className:"text-xs text-muted-foreground",children:"Search your knowledge base using semantic vector search. Adjust the similarity threshold to control how closely results must match your query."})]}),N.jsxs("div",{className:"space-y-3",children:[N.jsxs("div",{className:"flex gap-2",children:[N.jsx(wu,{placeholder:"Enter your search query...",value:Z,onChange:te=>oe(te.target.value),onKeyDown:te=>{te.key==="Enter"&&Z.trim()&&(te.preventDefault(),mi())},className:"flex-1"}),N.jsx(Ve,{onClick:mi,disabled:ne||!Z.trim(),size:"sm",className:"px-6",children:ne?N.jsx(ti,{className:"h-4 w-4 animate-spin"}):N.jsx(_u,{className:"h-4 w-4"})})]}),N.jsxs("div",{className:"space-y-2",children:[N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsx("label",{className:"text-sm font-medium",children:"Similarity Threshold"}),N.jsxs("span",{className:"text-sm text-muted-foreground",children:[de.toFixed(2)," (",Math.round(de*100),"% match)"]})]}),N.jsx("input",{type:"range",min:"0",max:"1",step:"0.05",value:de,onChange:te=>F(parseFloat(te.target.value)),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),N.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[N.jsx("span",{children:"0% (least similar)"}),N.jsx("span",{children:"100% (exact match)"})]})]})]})]})}),C&&N.jsx(Lp,{open:C,onOpenChange:S,children:N.jsxs(Fp,{className:"max-w-md w-full",children:[N.jsxs($p,{children:[N.jsx(Up,{className:"text-xl font-bold",children:"Import from URL"}),N.jsx(Hp,{children:"Enter one or more URLs of PDF, text, or other files to import into the knowledge base."})]}),N.jsxs("div",{className:"mt-6 space-y-4",children:[N.jsxs("div",{className:"flex gap-2",children:[N.jsx(wu,{placeholder:"https://example.com/document.pdf",value:k,onChange:te=>O(te.target.value),disabled:D,className:"flex-1",onKeyDown:te=>{te.key==="Enter"&&k.trim()&&(te.preventDefault(),Fo())}}),N.jsx(Ve,{variant:"outline",size:"sm",onClick:Fo,disabled:D||!k.trim(),children:"Add"})]}),T&&N.jsx("div",{className:"text-sm text-destructive bg-destructive/10 p-2 rounded-md",children:T}),A.length>0&&N.jsxs("div",{className:"border border-border rounded-md bg-card/50 p-3 mt-2",children:[N.jsxs("h4",{className:"text-sm font-medium mb-2",children:["URLs to import (",A.length,")"]}),N.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:A.map((te,_e)=>N.jsxs("div",{className:"flex items-center justify-between text-sm bg-background p-2 rounded border border-border",children:[N.jsx("span",{className:"truncate flex-1",children:te}),N.jsx(Ve,{variant:"ghost",size:"icon",className:"h-6 w-6 hover:bg-destructive/10 hover:text-destructive",onClick:()=>$o(te),disabled:D,children:N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},_e))})]})]}),N.jsxs(qp,{className:"mt-6 pt-4 border-t border-border",children:[N.jsx(Ve,{variant:"outline",onClick:()=>S(!1),disabled:D,children:"Cancel"}),N.jsx(Ve,{onClick:Ml,disabled:D||A.length===0&&!k.trim(),children:D?N.jsxs(N.Fragment,{children:[N.jsx(ti,{className:"h-4 w-4 animate-spin mr-2"}),"Importing..."]}):"Import"})]})]})}),N.jsx("input",{ref:ve,type:"file",multiple:!0,accept:".txt,.md,.markdown,.pdf,.doc,.docx,.json,.xml,.yaml,.yml,.csv,.tsv,.log,.ini,.cfg,.conf,.env,.gitignore,.dockerignore,.editorconfig,.js,.jsx,.ts,.tsx,.mjs,.cjs,.py,.pyw,.pyi,.java,.c,.cpp,.cc,.cxx,.h,.hpp,.cs,.php,.rb,.go,.rs,.swift,.kt,.kts,.scala,.clj,.cljs,.ex,.exs,.r,.R,.m,.mm,.sh,.bash,.zsh,.fish,.ps1,.bat,.cmd,.sql,.html,.htm,.css,.scss,.sass,.less,.vue,.svelte,.astro,.lua,.pl,.pm,.dart,.hs,.elm,.ml,.fs,.fsx,.vb,.pas,.d,.nim,.zig,.jl,.tcl,.awk,.sed",onChange:yi,className:"hidden"}),N.jsx("div",{className:"flex-1 overflow-hidden",children:W?N.jsxs("div",{className:"h-full overflow-y-auto p-4",children:[ne&&N.jsx("div",{className:"flex items-center justify-center h-full",children:N.jsx(ti,{className:"h-8 w-8 animate-spin text-muted-foreground"})}),Y&&!ne&&N.jsx("div",{className:"flex items-center justify-center h-full text-center",children:N.jsx("div",{className:"p-4 bg-destructive/10 text-destructive rounded-md",children:Y})}),ee.length>0&&!ne&&N.jsxs("div",{className:"space-y-3",children:[N.jsxs("h3",{className:"text-sm font-medium",children:["Found ",ee.length," result",ee.length!==1?"s":""]}),N.jsx("div",{className:"space-y-2",children:ee.map((te,_e)=>N.jsxs("div",{className:"border border-border rounded-md p-3 bg-card hover:bg-accent/10 transition-colors cursor-pointer",onClick:()=>i(te),children:[N.jsx("div",{className:"flex items-start justify-between mb-2",children:N.jsx("div",{className:"flex items-center gap-2",children:N.jsxs(Pd,{variant:"outline",className:"text-xs",children:[(te.similarity*100).toFixed(1),"% match"]})})}),N.jsx("p",{className:"text-sm line-clamp-4 mb-2",children:te.content?.text||"No content"}),N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsx("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:te.metadata?.position!==void 0&&N.jsxs("span",{children:["Fragment #",te.metadata.position]})}),N.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[N.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[N.jsx("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),N.jsx("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})]}),N.jsx("span",{children:"Read more"})]})]})]},te.id||_e))})]}),!ne&&ee.length===0&&!Y&&N.jsx("div",{className:"flex items-center justify-center h-full text-center text-muted-foreground",children:N.jsxs("div",{className:"flex flex-col items-center gap-2",children:[N.jsx(_u,{className:"h-10 w-10 opacity-30"}),N.jsx("p",{children:"Enter a query to search your knowledge base."})]})})]}):en.length===0?N.jsx(xi,{}):g==="graph"?N.jsxs("div",{className:"flex flex-col h-full",children:[N.jsxs("div",{className:`p-4 overflow-hidden ${m?"h-1/3":"flex-1"} transition-all duration-300`,children:[N.jsx(JS,{memories:ci,onNodeClick:te=>{x(te),te.metadata?.type==="document"&&fe(te.id)},selectedMemoryId:m?.id}),g==="graph"&&lr&&ue&&N.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-card/90 backdrop-blur-sm p-4 rounded-lg shadow-lg border border-border",children:N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(ti,{className:"h-5 w-5 animate-spin"}),N.jsx("span",{children:"Loading document fragments..."})]})})]}),m&&N.jsx("div",{className:"h-2/3 overflow-hidden flex-1 transition-all duration-300",children:N.jsx(Dn,{memory:m})})]}):N.jsxs("div",{className:"h-full flex flex-col",children:[N.jsx("div",{className:"flex-shrink-0 p-4 pb-2 border-b border-border/30",children:N.jsx(wu,{placeholder:"Filter by filename...",value:M,onChange:te=>q(te.target.value),className:"w-full text-sm"})}),N.jsxs("div",{ref:xe,className:"flex-1 overflow-y-auto p-4 pt-2",children:[N.jsx("div",{className:"grid gap-1.5",children:Do.map((te,_e)=>N.jsx(wi,{memory:te,index:_e},te.id||_e))}),Io&&N.jsx(vi,{})]})]})}),n&&N.jsx(Lp,{open:!!n,onOpenChange:()=>i(null),children:N.jsxs(Fp,{className:"max-w-[95vw] w-full max-h-[95vh] h-full overflow-hidden flex flex-col p-0",children:[N.jsx($p,{className:"flex-shrink-0 p-6 pb-2",children:N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsxs("div",{children:[N.jsx(Up,{className:"text-xl",children:n.metadata?.title||"Document Content"}),N.jsx(Hp,{children:n.metadata?.filename||"Knowledge document"})]}),(()=>{const te=n.metadata,_e=te?.contentType||"",ke=te?.fileExt?.toLowerCase()||"";return _e==="application/pdf"||ke==="pdf"?N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(Ve,{variant:"outline",size:"sm",onClick:()=>b(Math.max(.5,w-.25)),disabled:w<=.5,children:N.jsx("span",{className:"text-lg",children:"−"})}),N.jsxs("span",{className:"text-sm font-medium min-w-[60px] text-center",children:[Math.round(w*100),"%"]}),N.jsx(Ve,{variant:"outline",size:"sm",onClick:()=>b(Math.min(3,w+.25)),disabled:w>=3,children:N.jsx("span",{className:"text-lg",children:"+"})}),N.jsx(Ve,{variant:"outline",size:"sm",onClick:()=>b(1),children:"Reset"})]}):null})()]})}),N.jsx("div",{className:"flex-1 overflow-auto px-6 pb-2",children:(()=>{const te=n.metadata,_e=te?.contentType||"",ke=te?.fileExt?.toLowerCase()||"",kt=_e==="application/pdf"||ke==="pdf";if(kt&&n.content?.text){const St=n.content.text.trim();if(!St)return N.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6 flex items-center justify-center",children:N.jsxs("div",{className:"text-center text-muted-foreground",children:[N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-12 w-12 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.314 18.5c-.77.833.192 2.5 1.732 2.5z"})}),N.jsx("p",{className:"text-lg font-medium",children:"PDF Content Unavailable"}),N.jsx("p",{className:"text-sm",children:"The PDF content could not be loaded."})]})});const In=`data:application/pdf;base64,${St}`;return N.jsx("div",{className:"w-full h-full rounded-lg overflow-auto bg-card border border-border",children:N.jsx("div",{className:"min-w-full flex items-center justify-center p-4",style:{minHeight:"100%",transform:`scale(${w})`,transformOrigin:"top center",width:w>1?`${100/w}%`:"100%"},children:N.jsx("iframe",{src:In,className:"w-full border-0 shadow-md",style:{height:"90vh",maxWidth:"1200px",backgroundColor:"var(--background)"},title:"PDF Document",onError:()=>{console.error("Failed to load PDF in iframe")}})})})}else return kt&&!n.content?.text?N.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6 flex items-center justify-center",children:N.jsxs("div",{className:"text-center text-muted-foreground",children:[N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-12 w-12 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),N.jsx("p",{className:"text-lg font-medium",children:"PDF Not Available"}),N.jsx("p",{className:"text-sm",children:"This PDF document has no content to display."})]})}):N.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6",children:N.jsx("pre",{className:"whitespace-pre-wrap text-sm font-mono leading-relaxed text-foreground",children:n.content?.text||"No content available"})})})()}),N.jsx(qp,{className:"flex-shrink-0 p-6 pt-4 border-t border-border",children:N.jsx(Ve,{variant:"outline",onClick:()=>{i(null),b(1)},children:"Close"})})]})})]})}const ob=new Ty;function sb(){const n=window.ELIZA_CONFIG?.agentId;return fc.useEffect(()=>{document.documentElement.classList.add("dark")},[]),n?N.jsx(lb,{agentId:n}):N.jsxs("div",{className:"p-4 text-center",children:[N.jsx("div",{className:"text-red-600 font-medium",children:"Error: Agent ID not found"}),N.jsx("div",{className:"text-sm text-gray-600 mt-2",children:"The server should inject the agent ID configuration."})]})}function lb({agentId:e}){return N.jsx(Ay,{client:ob,children:N.jsx(ib,{agentId:e})})}const Vp=document.getElementById("root");Vp&&Zy.createRoot(Vp).render(N.jsx(sb,{}));