@elizaos/plugin-knowledge 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -334
- package/dist/.vite/manifest.json +2 -2
- package/dist/assets/index-DiVvUMt0.css +1 -0
- package/dist/assets/index-DlJcnv-R.js +160 -0
- package/dist/{chunk-MFXNKYBS.js → chunk-536BD2UA.js} +6 -1
- package/dist/{chunk-MFXNKYBS.js.map → chunk-536BD2UA.js.map} +1 -1
- package/dist/{docs-loader-AEQHIBO4.js → docs-loader-IBTEOAYT.js} +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.html +2 -2
- package/dist/index.js +134 -40
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/index-C77XebWS.css +0 -1
- package/dist/assets/index-DZQIX0Kb.js +0 -150
- /package/dist/{docs-loader-AEQHIBO4.js.map → docs-loader-IBTEOAYT.js.map} +0 -0
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
var _p=e=>{throw TypeError(e)};var cc=(e,n,i)=>n.has(e)||_p("Cannot "+i);var T=(e,n,i)=>(cc(e,n,"read from private field"),i?i.call(e):n.get(e)),ve=(e,n,i)=>n.has(e)?_p("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,i),ue=(e,n,i,s)=>(cc(e,n,"write to private field"),s?s.call(e,i):n.set(e,i),i),Pe=(e,n,i)=>(cc(e,n,"access private method"),i);var Dl=(e,n,i,s)=>({set _(a){ue(e,n,a,i)},get _(){return T(e,n,s)}});(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 h0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fc={exports:{}},Bo={},hc={exports:{}},Ne={};/**
|
|
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 xp;function zv(){if(xp)return Ne;xp=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"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function _(R){return R===null||typeof R!="object"?null:(R=g&&R[g]||R["@@iterator"],typeof R=="function"?R:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function S(R,q,le){this.props=R,this.context=q,this.refs=C,this.updater=le||x}S.prototype.isReactComponent={},S.prototype.setState=function(R,q){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,q,"setState")},S.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function k(){}k.prototype=S.prototype;function O(R,q,le){this.props=R,this.context=q,this.refs=C,this.updater=le||x}var j=O.prototype=new k;j.constructor=O,b(j,S.prototype),j.isPureReactComponent=!0;var P=Array.isArray,N=Object.prototype.hasOwnProperty,D={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function I(R,q,le){var ge,ke={},be=null,Ee=null;if(q!=null)for(ge in q.ref!==void 0&&(Ee=q.ref),q.key!==void 0&&(be=""+q.key),q)N.call(q,ge)&&!F.hasOwnProperty(ge)&&(ke[ge]=q[ge]);var Ce=arguments.length-2;if(Ce===1)ke.children=le;else if(1<Ce){for(var je=Array(Ce),yt=0;yt<Ce;yt++)je[yt]=arguments[yt+2];ke.children=je}if(R&&R.defaultProps)for(ge in Ce=R.defaultProps,Ce)ke[ge]===void 0&&(ke[ge]=Ce[ge]);return{$$typeof:e,type:R,key:be,ref:Ee,props:ke,_owner:D.current}}function B(R,q){return{$$typeof:e,type:R.type,key:q,ref:R.ref,props:R.props,_owner:R._owner}}function K(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function Z(R){var q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(le){return q[le]})}var ie=/\/+/g;function ce(R,q){return typeof R=="object"&&R!==null&&R.key!=null?Z(""+R.key):q.toString(36)}function $(R,q,le,ge,ke){var be=typeof R;(be==="undefined"||be==="boolean")&&(R=null);var Ee=!1;if(R===null)Ee=!0;else switch(be){case"string":case"number":Ee=!0;break;case"object":switch(R.$$typeof){case e:case n:Ee=!0}}if(Ee)return Ee=R,ke=ke(Ee),R=ge===""?"."+ce(Ee,0):ge,P(ke)?(le="",R!=null&&(le=R.replace(ie,"$&/")+"/"),$(ke,q,le,"",function(yt){return yt})):ke!=null&&(K(ke)&&(ke=B(ke,le+(!ke.key||Ee&&Ee.key===ke.key?"":(""+ke.key).replace(ie,"$&/")+"/")+R)),q.push(ke)),1;if(Ee=0,ge=ge===""?".":ge+":",P(R))for(var Ce=0;Ce<R.length;Ce++){be=R[Ce];var je=ge+ce(be,Ce);Ee+=$(be,q,le,je,ke)}else if(je=_(R),typeof je=="function")for(R=je.call(R),Ce=0;!(be=R.next()).done;)be=be.value,je=ge+ce(be,Ce++),Ee+=$(be,q,le,je,ke);else if(be==="object")throw q=String(R),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return Ee}function te(R,q,le){if(R==null)return R;var ge=[],ke=0;return $(R,ge,"","",function(be){return q.call(le,be,ke++)}),ge}function W(R){if(R._status===-1){var q=R._result;q=q(),q.then(function(le){(R._status===0||R._status===-1)&&(R._status=1,R._result=le)},function(le){(R._status===0||R._status===-1)&&(R._status=2,R._result=le)}),R._status===-1&&(R._status=0,R._result=q)}if(R._status===1)return R._result.default;throw R._result}var oe={current:null},Q={transition:null},J={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:Q,ReactCurrentOwner:D};function G(){throw Error("act(...) is not supported in production builds of React.")}return Ne.Children={map:te,forEach:function(R,q,le){te(R,function(){q.apply(this,arguments)},le)},count:function(R){var q=0;return te(R,function(){q++}),q},toArray:function(R){return te(R,function(q){return q})||[]},only:function(R){if(!K(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Ne.Component=S,Ne.Fragment=i,Ne.Profiler=a,Ne.PureComponent=O,Ne.StrictMode=s,Ne.Suspense=p,Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Ne.act=G,Ne.cloneElement=function(R,q,le){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var ge=b({},R.props),ke=R.key,be=R.ref,Ee=R._owner;if(q!=null){if(q.ref!==void 0&&(be=q.ref,Ee=D.current),q.key!==void 0&&(ke=""+q.key),R.type&&R.type.defaultProps)var Ce=R.type.defaultProps;for(je in q)N.call(q,je)&&!F.hasOwnProperty(je)&&(ge[je]=q[je]===void 0&&Ce!==void 0?Ce[je]:q[je])}var je=arguments.length-2;if(je===1)ge.children=le;else if(1<je){Ce=Array(je);for(var yt=0;yt<je;yt++)Ce[yt]=arguments[yt+2];ge.children=Ce}return{$$typeof:e,type:R.type,key:ke,ref:be,props:ge,_owner:Ee}},Ne.createContext=function(R){return R={$$typeof:f,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:u,_context:R},R.Consumer=R},Ne.createElement=I,Ne.createFactory=function(R){var q=I.bind(null,R);return q.type=R,q},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:h,render:R}},Ne.isValidElement=K,Ne.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:W}},Ne.memo=function(R,q){return{$$typeof:m,type:R,compare:q===void 0?null:q}},Ne.startTransition=function(R){var q=Q.transition;Q.transition={};try{R()}finally{Q.transition=q}},Ne.unstable_act=G,Ne.useCallback=function(R,q){return oe.current.useCallback(R,q)},Ne.useContext=function(R){return oe.current.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R){return oe.current.useDeferredValue(R)},Ne.useEffect=function(R,q){return oe.current.useEffect(R,q)},Ne.useId=function(){return oe.current.useId()},Ne.useImperativeHandle=function(R,q,le){return oe.current.useImperativeHandle(R,q,le)},Ne.useInsertionEffect=function(R,q){return oe.current.useInsertionEffect(R,q)},Ne.useLayoutEffect=function(R,q){return oe.current.useLayoutEffect(R,q)},Ne.useMemo=function(R,q){return oe.current.useMemo(R,q)},Ne.useReducer=function(R,q,le){return oe.current.useReducer(R,q,le)},Ne.useRef=function(R){return oe.current.useRef(R)},Ne.useState=function(R){return oe.current.useState(R)},Ne.useSyncExternalStore=function(R,q,le){return oe.current.useSyncExternalStore(R,q,le)},Ne.useTransition=function(){return oe.current.useTransition()},Ne.version="18.3.1",Ne}var wp;function hf(){return wp||(wp=1,hc.exports=zv()),hc.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 kp;function Dv(){if(kp)return Bo;kp=1;var e=hf(),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,m){var v,g={},_=null,x=null;m!==void 0&&(_=""+m),p.key!==void 0&&(_=""+p.key),p.ref!==void 0&&(x=p.ref);for(v in p)s.call(p,v)&&!u.hasOwnProperty(v)&&(g[v]=p[v]);if(h&&h.defaultProps)for(v in p=h.defaultProps,p)g[v]===void 0&&(g[v]=p[v]);return{$$typeof:n,type:h,key:_,ref:x,props:g,_owner:a.current}}return Bo.Fragment=i,Bo.jsx=f,Bo.jsxs=f,Bo}var Sp;function Iv(){return Sp||(Sp=1,fc.exports=Dv()),fc.exports}var A=Iv(),ro=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(){}},ai=typeof window>"u"||"Deno"in globalThis;function St(){}function Lv(e,n){return typeof e=="function"?e(n):e}function Oc(e){return typeof e=="number"&&e>=0&&e!==1/0}function d0(e,n){return Math.max(e+(n||0)-Date.now(),0)}function jr(e,n){return typeof e=="function"?e(n):e}function hn(e,n){return typeof e=="function"?e(n):e}function bp(e,n){const{type:i="all",exact:s,fetchStatus:a,predicate:u,queryKey:f,stale:h}=e;if(f){if(s){if(n.queryHash!==df(f,n.options))return!1}else if(!as(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 Cp(e,n){const{exact:i,status:s,predicate:a,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(i){if(ui(n.options.mutationKey)!==ui(u))return!1}else if(!as(n.options.mutationKey,u))return!1}return!(s&&n.state.status!==s||a&&!a(n))}function df(e,n){return((n==null?void 0:n.queryKeyHashFn)||ui)(e)}function ui(e){return JSON.stringify(e,(n,i)=>Rc(i)?Object.keys(i).sort().reduce((s,a)=>(s[a]=i[a],s),{}):i)}function as(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(i=>as(e[i],n[i])):!1}function p0(e,n){if(e===n)return e;const i=Ep(e)&&Ep(n);if(i||Rc(e)&&Rc(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 m=0;for(let v=0;v<f;v++){const g=i?v:u[v];(!i&&p.has(g)||i)&&e[g]===void 0&&n[g]===void 0?(h[g]=void 0,m++):(h[g]=p0(e[g],n[g]),h[g]===e[g]&&e[g]!==void 0&&m++)}return a===f&&m===a?e:h}return n}function Jl(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 Ep(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rc(e){if(!Pp(e))return!1;const n=e.constructor;if(n===void 0)return!0;const i=n.prototype;return!(!Pp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Pp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fv(e){return new Promise(n=>{setTimeout(n,e)})}function jc(e,n,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,n):i.structuralSharing!==!1?p0(e,n):n}function $v(e,n,i=0){const s=[...e,n];return i&&s.length>i?s.slice(1):s}function Uv(e,n,i=0){const s=[n,...e];return i&&s.length>i?s.slice(0,-1):s}var pf=Symbol();function g0(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===pf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function m0(e,n){return typeof e=="function"?e(...n):!!e}var Zr,Sr,Ui,n0,Hv=(n0=class extends ro{constructor(){super();ve(this,Zr);ve(this,Sr);ve(this,Ui);ue(this,Ui,n=>{if(!ai&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){T(this,Sr)||this.setEventListener(T(this,Ui))}onUnsubscribe(){var n;this.hasListeners()||((n=T(this,Sr))==null||n.call(this),ue(this,Sr,void 0))}setEventListener(n){var i;ue(this,Ui,n),(i=T(this,Sr))==null||i.call(this),ue(this,Sr,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){T(this,Zr)!==n&&(ue(this,Zr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){var n;return typeof T(this,Zr)=="boolean"?T(this,Zr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Zr=new WeakMap,Sr=new WeakMap,Ui=new WeakMap,n0),gf=new Hv,Hi,br,Vi,r0,Vv=(r0=class extends ro{constructor(){super();ve(this,Hi,!0);ve(this,br);ve(this,Vi);ue(this,Vi,n=>{if(!ai&&window.addEventListener){const i=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){T(this,br)||this.setEventListener(T(this,Vi))}onUnsubscribe(){var n;this.hasListeners()||((n=T(this,br))==null||n.call(this),ue(this,br,void 0))}setEventListener(n){var i;ue(this,Vi,n),(i=T(this,br))==null||i.call(this),ue(this,br,n(this.setOnline.bind(this)))}setOnline(n){T(this,Hi)!==n&&(ue(this,Hi,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return T(this,Hi)}},Hi=new WeakMap,br=new WeakMap,Vi=new WeakMap,r0),ea=new Vv;function Ac(){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 qv(e){return Math.min(1e3*2**e,3e4)}function y0(e){return(e??"online")==="online"?ea.isOnline():!0}var v0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dc(e){return e instanceof v0}function _0(e){let n=!1,i=0,s=!1,a;const u=Ac(),f=C=>{var S;s||(_(new v0(C)),(S=e.abort)==null||S.call(e))},h=()=>{n=!0},p=()=>{n=!1},m=()=>gf.isFocused()&&(e.networkMode==="always"||ea.isOnline())&&e.canRun(),v=()=>y0(e.networkMode)&&e.canRun(),g=C=>{var S;s||(s=!0,(S=e.onSuccess)==null||S.call(e,C),a==null||a(),u.resolve(C))},_=C=>{var S;s||(s=!0,(S=e.onError)==null||S.call(e,C),a==null||a(),u.reject(C))},x=()=>new Promise(C=>{var S;a=k=>{(s||m())&&C(k)},(S=e.onPause)==null||S.call(e)}).then(()=>{var C;a=void 0,s||(C=e.onContinue)==null||C.call(e)}),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(g).catch(k=>{var D;if(s)return;const O=e.retry??(ai?0:3),j=e.retryDelay??qv,P=typeof j=="function"?j(i,k):j,N=O===!0||typeof O=="number"&&i<O||typeof O=="function"&&O(i,k);if(n||!N){_(k);return}i++,(D=e.onFail)==null||D.call(e,i,k),Fv(P).then(()=>m()?void 0:x()).then(()=>{n?_(k):b()})})};return{promise:u,cancel:f,continue:()=>(a==null||a(),u),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?b():x().then(b),u)}}var Bv=e=>setTimeout(e,0);function Qv(){let e=[],n=0,i=h=>{h()},s=h=>{h()},a=Bv;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 rt=Qv(),Jr,i0,x0=(i0=class{constructor(){ve(this,Jr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oc(this.gcTime)&&ue(this,Jr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ai?1/0:5*60*1e3))}clearGcTimeout(){T(this,Jr)&&(clearTimeout(T(this,Jr)),ue(this,Jr,void 0))}},Jr=new WeakMap,i0),qi,Bi,Zt,ei,mt,ms,ti,cn,Hn,o0,Wv=(o0=class extends x0{constructor(n){super();ve(this,cn);ve(this,qi);ve(this,Bi);ve(this,Zt);ve(this,ei);ve(this,mt);ve(this,ms);ve(this,ti);ue(this,ti,!1),ue(this,ms,n.defaultOptions),this.setOptions(n.options),this.observers=[],ue(this,ei,n.client),ue(this,Zt,T(this,ei).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,ue(this,qi,Kv(this.options)),this.state=n.state??T(this,qi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=T(this,mt))==null?void 0:n.promise}setOptions(n){this.options={...T(this,ms),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Zt).remove(this)}setData(n,i){const s=jc(this.state.data,n,this.options);return Pe(this,cn,Hn).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(n,i){Pe(this,cn,Hn).call(this,{type:"setState",state:n,setStateOptions:i})}cancel(n){var s,a;const i=(s=T(this,mt))==null?void 0:s.promise;return(a=T(this,mt))==null||a.cancel(n),i?i.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,qi))}isActive(){return this.observers.some(n=>hn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>jr(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!d0(this.state.dataUpdatedAt,n)}onFocus(){var i;const n=this.observers.find(s=>s.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(i=T(this,mt))==null||i.continue()}onOnline(){var i;const n=this.observers.find(s=>s.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(i=T(this,mt))==null||i.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),T(this,Zt).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(T(this,mt)&&(T(this,ti)?T(this,mt).cancel({revert:!0}):T(this,mt).cancelRetry()),this.scheduleGc()),T(this,Zt).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,cn,Hn).call(this,{type:"invalidate"})}fetch(n,i){var m,v,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(T(this,mt))return T(this,mt).continueRetry(),T(this,mt).promise}if(n&&this.setOptions(n),!this.options.queryFn){const _=this.observers.find(x=>x.options.queryFn);_&&this.setOptions(_.options)}const s=new AbortController,a=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(ue(this,ti,!0),s.signal)})},u=()=>{const _=g0(this.options,i),b=(()=>{const C={client:T(this,ei),queryKey:this.queryKey,meta:this.meta};return a(C),C})();return ue(this,ti,!1),this.options.persister?this.options.persister(_,b,this):_(b)},h=(()=>{const _={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:T(this,ei),state:this.state,fetchFn:u};return a(_),_})();(m=this.options.behavior)==null||m.onFetch(h,this),ue(this,Bi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=h.fetchOptions)==null?void 0:v.meta))&&Pe(this,cn,Hn).call(this,{type:"fetch",meta:(g=h.fetchOptions)==null?void 0:g.meta});const p=_=>{var x,b,C,S;dc(_)&&_.silent||Pe(this,cn,Hn).call(this,{type:"error",error:_}),dc(_)||((b=(x=T(this,Zt).config).onError)==null||b.call(x,_,this),(S=(C=T(this,Zt).config).onSettled)==null||S.call(C,this.state.data,_,this)),this.scheduleGc()};return ue(this,mt,_0({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:_=>{var x,b,C,S;if(_===void 0){p(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(_)}catch(k){p(k);return}(b=(x=T(this,Zt).config).onSuccess)==null||b.call(x,_,this),(S=(C=T(this,Zt).config).onSettled)==null||S.call(C,_,this.state.error,this),this.scheduleGc()},onError:p,onFail:(_,x)=>{Pe(this,cn,Hn).call(this,{type:"failed",failureCount:_,error:x})},onPause:()=>{Pe(this,cn,Hn).call(this,{type:"pause"})},onContinue:()=>{Pe(this,cn,Hn).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),T(this,mt).start()}},qi=new WeakMap,Bi=new WeakMap,Zt=new WeakMap,ei=new WeakMap,mt=new WeakMap,ms=new WeakMap,ti=new WeakMap,cn=new WeakSet,Hn=function(n){const i=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...w0(s.data,this.options),fetchMeta:n.meta??null};case"success":return{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=n.error;return dc(a)&&a.revert&&T(this,Bi)?{...T(this,Bi),fetchStatus:"idle"}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=i(this.state),rt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),T(this,Zt).notify({query:this,type:"updated",action:n})})},o0);function w0(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:y0(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Kv(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 Sn,s0,Gv=(s0=class extends ro{constructor(n={}){super();ve(this,Sn);this.config=n,ue(this,Sn,new Map)}build(n,i,s){const a=i.queryKey,u=i.queryHash??df(a,i);let f=this.get(u);return f||(f=new Wv({client:n,queryKey:a,queryHash:u,options:n.defaultQueryOptions(i),state:s,defaultOptions:n.getQueryDefaults(a)}),this.add(f)),f}add(n){T(this,Sn).has(n.queryHash)||(T(this,Sn).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=T(this,Sn).get(n.queryHash);i&&(n.destroy(),i===n&&T(this,Sn).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){rt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return T(this,Sn).get(n)}getAll(){return[...T(this,Sn).values()]}find(n){const i={exact:!0,...n};return this.getAll().find(s=>bp(i,s))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(s=>bp(n,s)):i}notify(n){rt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){rt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){rt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Sn=new WeakMap,s0),bn,wt,ni,Cn,wr,l0,Xv=(l0=class extends x0{constructor(n){super();ve(this,Cn);ve(this,bn);ve(this,wt);ve(this,ni);this.mutationId=n.mutationId,ue(this,wt,n.mutationCache),ue(this,bn,[]),this.state=n.state||k0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){T(this,bn).includes(n)||(T(this,bn).push(n),this.clearGcTimeout(),T(this,wt).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){ue(this,bn,T(this,bn).filter(i=>i!==n)),this.scheduleGc(),T(this,wt).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){T(this,bn).length||(this.state.status==="pending"?this.scheduleGc():T(this,wt).remove(this))}continue(){var n;return((n=T(this,ni))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var u,f,h,p,m,v,g,_,x,b,C,S,k,O,j,P,N,D,F,I;const i=()=>{Pe(this,Cn,wr).call(this,{type:"continue"})};ue(this,ni,_0({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(B,K)=>{Pe(this,Cn,wr).call(this,{type:"failed",failureCount:B,error:K})},onPause:()=>{Pe(this,Cn,wr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,wt).canRun(this)}));const s=this.state.status==="pending",a=!T(this,ni).canStart();try{if(s)i();else{Pe(this,Cn,wr).call(this,{type:"pending",variables:n,isPaused:a}),await((f=(u=T(this,wt).config).onMutate)==null?void 0:f.call(u,n,this));const K=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,n));K!==this.state.context&&Pe(this,Cn,wr).call(this,{type:"pending",context:K,variables:n,isPaused:a})}const B=await T(this,ni).start();return await((v=(m=T(this,wt).config).onSuccess)==null?void 0:v.call(m,B,n,this.state.context,this)),await((_=(g=this.options).onSuccess)==null?void 0:_.call(g,B,n,this.state.context)),await((b=(x=T(this,wt).config).onSettled)==null?void 0:b.call(x,B,null,this.state.variables,this.state.context,this)),await((S=(C=this.options).onSettled)==null?void 0:S.call(C,B,null,n,this.state.context)),Pe(this,Cn,wr).call(this,{type:"success",data:B}),B}catch(B){try{throw await((O=(k=T(this,wt).config).onError)==null?void 0:O.call(k,B,n,this.state.context,this)),await((P=(j=this.options).onError)==null?void 0:P.call(j,B,n,this.state.context)),await((D=(N=T(this,wt).config).onSettled)==null?void 0:D.call(N,void 0,B,this.state.variables,this.state.context,this)),await((I=(F=this.options).onSettled)==null?void 0:I.call(F,void 0,B,n,this.state.context)),B}finally{Pe(this,Cn,wr).call(this,{type:"error",error:B})}}finally{T(this,wt).runNext(this)}}},bn=new WeakMap,wt=new WeakMap,ni=new WeakMap,Cn=new WeakSet,wr=function(n){const i=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),rt.batch(()=>{T(this,bn).forEach(s=>{s.onMutationUpdate(n)}),T(this,wt).notify({mutation:this,type:"updated",action:n})})},l0);function k0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qn,fn,ys,a0,Yv=(a0=class extends ro{constructor(n={}){super();ve(this,qn);ve(this,fn);ve(this,ys);this.config=n,ue(this,qn,new Set),ue(this,fn,new Map),ue(this,ys,0)}build(n,i,s){const a=new Xv({mutationCache:this,mutationId:++Dl(this,ys)._,options:n.defaultMutationOptions(i),state:s});return this.add(a),a}add(n){T(this,qn).add(n);const i=Il(n);if(typeof i=="string"){const s=T(this,fn).get(i);s?s.push(n):T(this,fn).set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(T(this,qn).delete(n)){const i=Il(n);if(typeof i=="string"){const s=T(this,fn).get(i);if(s)if(s.length>1){const a=s.indexOf(n);a!==-1&&s.splice(a,1)}else s[0]===n&&T(this,fn).delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Il(n);if(typeof i=="string"){const s=T(this,fn).get(i),a=s==null?void 0:s.find(u=>u.state.status==="pending");return!a||a===n}else return!0}runNext(n){var s;const i=Il(n);if(typeof i=="string"){const a=(s=T(this,fn).get(i))==null?void 0:s.find(u=>u!==n&&u.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){rt.batch(()=>{T(this,qn).forEach(n=>{this.notify({type:"removed",mutation:n})}),T(this,qn).clear(),T(this,fn).clear()})}getAll(){return Array.from(T(this,qn))}find(n){const i={exact:!0,...n};return this.getAll().find(s=>Cp(i,s))}findAll(n={}){return this.getAll().filter(i=>Cp(n,i))}notify(n){rt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return rt.batch(()=>Promise.all(n.map(i=>i.continue().catch(St))))}},qn=new WeakMap,fn=new WeakMap,ys=new WeakMap,a0);function Il(e){var n;return(n=e.options.scope)==null?void 0:n.id}function Np(e){return{onFetch:(n,i)=>{var v,g,_,x,b;const s=n.options,a=(_=(g=(v=n.fetchOptions)==null?void 0:v.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,u=((x=n.state.data)==null?void 0:x.pages)||[],f=((b=n.state.data)==null?void 0:b.pageParams)||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let C=!1;const S=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(n.signal.aborted?C=!0:n.signal.addEventListener("abort",()=>{C=!0}),n.signal)})},k=g0(n.options,n.fetchOptions),O=async(j,P,N)=>{if(C)return Promise.reject();if(P==null&&j.pages.length)return Promise.resolve(j);const F=(()=>{const Z={client:n.client,queryKey:n.queryKey,pageParam:P,direction:N?"backward":"forward",meta:n.options.meta};return S(Z),Z})(),I=await k(F),{maxPages:B}=n.options,K=N?Uv:$v;return{pages:K(j.pages,I,B),pageParams:K(j.pageParams,P,B)}};if(a&&u.length){const j=a==="backward",P=j?Zv:Tp,N={pages:u,pageParams:f},D=P(s,N);h=await O(N,D,j)}else{const j=e??u.length;do{const P=p===0?f[0]??s.initialPageParam:Tp(s,h);if(p>0&&P==null)break;h=await O(h,P),p++}while(p<j)}return h};n.options.persister?n.fetchFn=()=>{var C,S;return(S=(C=n.options).persister)==null?void 0:S.call(C,m,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},i)}:n.fetchFn=m}}}function Tp(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 Zv(e,{pages:n,pageParams:i}){var s;return n.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,n[0],n,i[0],i):void 0}var Ge,Cr,Er,Qi,Wi,Pr,Ki,Gi,u0,Jv=(u0=class{constructor(e={}){ve(this,Ge);ve(this,Cr);ve(this,Er);ve(this,Qi);ve(this,Wi);ve(this,Pr);ve(this,Ki);ve(this,Gi);ue(this,Ge,e.queryCache||new Gv),ue(this,Cr,e.mutationCache||new Yv),ue(this,Er,e.defaultOptions||{}),ue(this,Qi,new Map),ue(this,Wi,new Map),ue(this,Pr,0)}mount(){Dl(this,Pr)._++,T(this,Pr)===1&&(ue(this,Ki,gf.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ge).onFocus())})),ue(this,Gi,ea.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ge).onOnline())})))}unmount(){var e,n;Dl(this,Pr)._--,T(this,Pr)===0&&((e=T(this,Ki))==null||e.call(this),ue(this,Ki,void 0),(n=T(this,Gi))==null||n.call(this),ue(this,Gi,void 0))}isFetching(e){return T(this,Ge).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Cr).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=T(this,Ge).get(n.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),i=T(this,Ge).build(this,n),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(jr(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return T(this,Ge).findAll(e).map(({queryKey:n,state:i})=>{const s=i.data;return[n,s]})}setQueryData(e,n,i){const s=this.defaultQueryOptions({queryKey:e}),a=T(this,Ge).get(s.queryHash),u=a==null?void 0:a.state.data,f=Lv(n,u);if(f!==void 0)return T(this,Ge).build(this,s).setData(f,{...i,manual:!0})}setQueriesData(e,n,i){return rt.batch(()=>T(this,Ge).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,i)]))}getQueryState(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=T(this,Ge).get(n.queryHash))==null?void 0:i.state}removeQueries(e){const n=T(this,Ge);rt.batch(()=>{n.findAll(e).forEach(i=>{n.remove(i)})})}resetQueries(e,n){const i=T(this,Ge);return rt.batch(()=>(i.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const i={revert:!0,...n},s=rt.batch(()=>T(this,Ge).findAll(e).map(a=>a.cancel(i)));return Promise.all(s).then(St).catch(St)}invalidateQueries(e,n={}){return rt.batch(()=>(T(this,Ge).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},n)))}refetchQueries(e,n={}){const i={...n,cancelRefetch:n.cancelRefetch??!0},s=rt.batch(()=>T(this,Ge).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(St)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(St)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const i=T(this,Ge).build(this,n);return i.isStaleByTime(jr(n.staleTime,i))?i.fetch(n):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(St).catch(St)}fetchInfiniteQuery(e){return e.behavior=Np(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(St).catch(St)}ensureInfiniteQueryData(e){return e.behavior=Np(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ea.isOnline()?T(this,Cr).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ge)}getMutationCache(){return T(this,Cr)}getDefaultOptions(){return T(this,Er)}setDefaultOptions(e){ue(this,Er,e)}setQueryDefaults(e,n){T(this,Qi).set(ui(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...T(this,Qi).values()],i={};return n.forEach(s=>{as(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,n){T(this,Wi).set(ui(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...T(this,Wi).values()],i={};return n.forEach(s=>{as(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const n={...T(this,Er).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=df(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===pf&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Er).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ge).clear(),T(this,Cr).clear()}},Ge=new WeakMap,Cr=new WeakMap,Er=new WeakMap,Qi=new WeakMap,Wi=new WeakMap,Pr=new WeakMap,Ki=new WeakMap,Gi=new WeakMap,u0),Rt,Te,vs,kt,ri,Xi,Nr,Tr,_s,Yi,Zi,ii,oi,Mr,Ji,Ae,es,zc,Dc,Ic,Lc,Fc,$c,Uc,S0,c0,e1=(c0=class extends ro{constructor(n,i){super();ve(this,Ae);ve(this,Rt);ve(this,Te);ve(this,vs);ve(this,kt);ve(this,ri);ve(this,Xi);ve(this,Nr);ve(this,Tr);ve(this,_s);ve(this,Yi);ve(this,Zi);ve(this,ii);ve(this,oi);ve(this,Mr);ve(this,Ji,new Set);this.options=i,ue(this,Rt,n),ue(this,Tr,null),ue(this,Nr,Ac()),this.options.experimental_prefetchInRender||T(this,Nr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Te).addObserver(this),Mp(T(this,Te),this.options)?Pe(this,Ae,es).call(this):this.updateResult(),Pe(this,Ae,Lc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hc(T(this,Te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hc(T(this,Te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,Ae,Fc).call(this),Pe(this,Ae,$c).call(this),T(this,Te).removeObserver(this)}setOptions(n){const i=this.options,s=T(this,Te);if(this.options=T(this,Rt).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hn(this.options.enabled,T(this,Te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,Ae,Uc).call(this),T(this,Te).setOptions(this.options),i._defaulted&&!Jl(this.options,i)&&T(this,Rt).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Te),observer:this});const a=this.hasListeners();a&&Op(T(this,Te),s,this.options,i)&&Pe(this,Ae,es).call(this),this.updateResult(),a&&(T(this,Te)!==s||hn(this.options.enabled,T(this,Te))!==hn(i.enabled,T(this,Te))||jr(this.options.staleTime,T(this,Te))!==jr(i.staleTime,T(this,Te)))&&Pe(this,Ae,zc).call(this);const u=Pe(this,Ae,Dc).call(this);a&&(T(this,Te)!==s||hn(this.options.enabled,T(this,Te))!==hn(i.enabled,T(this,Te))||u!==T(this,Mr))&&Pe(this,Ae,Ic).call(this,u)}getOptimisticResult(n){const i=T(this,Rt).getQueryCache().build(T(this,Rt),n),s=this.createResult(i,n);return n1(this,s)&&(ue(this,kt,s),ue(this,Xi,this.options),ue(this,ri,T(this,Te).state)),s}getCurrentResult(){return T(this,kt)}trackResult(n,i){return new Proxy(n,{get:(s,a)=>(this.trackProp(a),i==null||i(a),Reflect.get(s,a))})}trackProp(n){T(this,Ji).add(n)}getCurrentQuery(){return T(this,Te)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=T(this,Rt).defaultQueryOptions(n),s=T(this,Rt).getQueryCache().build(T(this,Rt),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(n){return Pe(this,Ae,es).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,kt)))}createResult(n,i){var B;const s=T(this,Te),a=this.options,u=T(this,kt),f=T(this,ri),h=T(this,Xi),m=n!==s?n.state:T(this,vs),{state:v}=n;let g={...v},_=!1,x;if(i._optimisticResults){const K=this.hasListeners(),Z=!K&&Mp(n,i),ie=K&&Op(n,s,i,a);(Z||ie)&&(g={...g,...w0(v.data,n.options)}),i._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:C,status:S}=g;x=g.data;let k=!1;if(i.placeholderData!==void 0&&x===void 0&&S==="pending"){let K;u!=null&&u.isPlaceholderData&&i.placeholderData===(h==null?void 0:h.placeholderData)?(K=u.data,k=!0):K=typeof i.placeholderData=="function"?i.placeholderData((B=T(this,Zi))==null?void 0:B.state.data,T(this,Zi)):i.placeholderData,K!==void 0&&(S="success",x=jc(u==null?void 0:u.data,K,i),_=!0)}if(i.select&&x!==void 0&&!k)if(u&&x===(f==null?void 0:f.data)&&i.select===T(this,_s))x=T(this,Yi);else try{ue(this,_s,i.select),x=i.select(x),x=jc(u==null?void 0:u.data,x,i),ue(this,Yi,x),ue(this,Tr,null)}catch(K){ue(this,Tr,K)}T(this,Tr)&&(b=T(this,Tr),x=T(this,Yi),C=Date.now(),S="error");const O=g.fetchStatus==="fetching",j=S==="pending",P=S==="error",N=j&&O,D=x!==void 0,I={status:S,fetchStatus:g.fetchStatus,isPending:j,isSuccess:S==="success",isError:P,isInitialLoading:N,isLoading:N,data:x,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:C,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:O,isRefetching:O&&!j,isLoadingError:P&&!D,isPaused:g.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:P&&D,isStale:mf(n,i),refetch:this.refetch,promise:T(this,Nr)};if(this.options.experimental_prefetchInRender){const K=ce=>{I.status==="error"?ce.reject(I.error):I.data!==void 0&&ce.resolve(I.data)},Z=()=>{const ce=ue(this,Nr,I.promise=Ac());K(ce)},ie=T(this,Nr);switch(ie.status){case"pending":n.queryHash===s.queryHash&&K(ie);break;case"fulfilled":(I.status==="error"||I.data!==ie.value)&&Z();break;case"rejected":(I.status!=="error"||I.error!==ie.reason)&&Z();break}}return I}updateResult(){const n=T(this,kt),i=this.createResult(T(this,Te),this.options);if(ue(this,ri,T(this,Te).state),ue(this,Xi,this.options),T(this,ri).data!==void 0&&ue(this,Zi,T(this,Te)),Jl(i,n))return;ue(this,kt,i);const s=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,u=typeof a=="function"?a():a;if(u==="all"||!u&&!T(this,Ji).size)return!0;const f=new Set(u??T(this,Ji));return this.options.throwOnError&&f.add("error"),Object.keys(T(this,kt)).some(h=>{const p=h;return T(this,kt)[p]!==n[p]&&f.has(p)})};Pe(this,Ae,S0).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,Ae,Lc).call(this)}},Rt=new WeakMap,Te=new WeakMap,vs=new WeakMap,kt=new WeakMap,ri=new WeakMap,Xi=new WeakMap,Nr=new WeakMap,Tr=new WeakMap,_s=new WeakMap,Yi=new WeakMap,Zi=new WeakMap,ii=new WeakMap,oi=new WeakMap,Mr=new WeakMap,Ji=new WeakMap,Ae=new WeakSet,es=function(n){Pe(this,Ae,Uc).call(this);let i=T(this,Te).fetch(this.options,n);return n!=null&&n.throwOnError||(i=i.catch(St)),i},zc=function(){Pe(this,Ae,Fc).call(this);const n=jr(this.options.staleTime,T(this,Te));if(ai||T(this,kt).isStale||!Oc(n))return;const s=d0(T(this,kt).dataUpdatedAt,n)+1;ue(this,ii,setTimeout(()=>{T(this,kt).isStale||this.updateResult()},s))},Dc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Te)):this.options.refetchInterval)??!1},Ic=function(n){Pe(this,Ae,$c).call(this),ue(this,Mr,n),!(ai||hn(this.options.enabled,T(this,Te))===!1||!Oc(T(this,Mr))||T(this,Mr)===0)&&ue(this,oi,setInterval(()=>{(this.options.refetchIntervalInBackground||gf.isFocused())&&Pe(this,Ae,es).call(this)},T(this,Mr)))},Lc=function(){Pe(this,Ae,zc).call(this),Pe(this,Ae,Ic).call(this,Pe(this,Ae,Dc).call(this))},Fc=function(){T(this,ii)&&(clearTimeout(T(this,ii)),ue(this,ii,void 0))},$c=function(){T(this,oi)&&(clearInterval(T(this,oi)),ue(this,oi,void 0))},Uc=function(){const n=T(this,Rt).getQueryCache().build(T(this,Rt),this.options);if(n===T(this,Te))return;const i=T(this,Te);ue(this,Te,n),ue(this,vs,n.state),this.hasListeners()&&(i==null||i.removeObserver(this),n.addObserver(this))},S0=function(n){rt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(T(this,kt))}),T(this,Rt).getQueryCache().notify({query:T(this,Te),type:"observerResultsUpdated"})})},c0);function t1(e,n){return hn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function Mp(e,n){return t1(e,n)||e.state.data!==void 0&&Hc(e,n,n.refetchOnMount)}function Hc(e,n,i){if(hn(n.enabled,e)!==!1&&jr(n.staleTime,e)!=="static"){const s=typeof i=="function"?i(e):i;return s==="always"||s!==!1&&mf(e,n)}return!1}function Op(e,n,i,s){return(e!==n||hn(s.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&mf(e,i)}function mf(e,n){return hn(n.enabled,e)!==!1&&e.isStaleByTime(jr(n.staleTime,e))}function n1(e,n){return!Jl(e.getCurrentResult(),n)}var Or,Rr,jt,Bn,Gn,Wl,Vc,f0,r1=(f0=class extends ro{constructor(i,s){super();ve(this,Gn);ve(this,Or);ve(this,Rr);ve(this,jt);ve(this,Bn);ue(this,Or,i),this.setOptions(s),this.bindMethods(),Pe(this,Gn,Wl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var a;const s=this.options;this.options=T(this,Or).defaultMutationOptions(i),Jl(this.options,s)||T(this,Or).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,jt),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&ui(s.mutationKey)!==ui(this.options.mutationKey)?this.reset():((a=T(this,jt))==null?void 0:a.state.status)==="pending"&&T(this,jt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=T(this,jt))==null||i.removeObserver(this)}onMutationUpdate(i){Pe(this,Gn,Wl).call(this),Pe(this,Gn,Vc).call(this,i)}getCurrentResult(){return T(this,Rr)}reset(){var i;(i=T(this,jt))==null||i.removeObserver(this),ue(this,jt,void 0),Pe(this,Gn,Wl).call(this),Pe(this,Gn,Vc).call(this)}mutate(i,s){var a;return ue(this,Bn,s),(a=T(this,jt))==null||a.removeObserver(this),ue(this,jt,T(this,Or).getMutationCache().build(T(this,Or),this.options)),T(this,jt).addObserver(this),T(this,jt).execute(i)}},Or=new WeakMap,Rr=new WeakMap,jt=new WeakMap,Bn=new WeakMap,Gn=new WeakSet,Wl=function(){var s;const i=((s=T(this,jt))==null?void 0:s.state)??k0();ue(this,Rr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Vc=function(i){rt.batch(()=>{var s,a,u,f,h,p,m,v;if(T(this,Bn)&&this.hasListeners()){const g=T(this,Rr).variables,_=T(this,Rr).context;(i==null?void 0:i.type)==="success"?((a=(s=T(this,Bn)).onSuccess)==null||a.call(s,i.data,g,_),(f=(u=T(this,Bn)).onSettled)==null||f.call(u,i.data,null,g,_)):(i==null?void 0:i.type)==="error"&&((p=(h=T(this,Bn)).onError)==null||p.call(h,i.error,g,_),(v=(m=T(this,Bn)).onSettled)==null||v.call(m,void 0,i.error,g,_))}this.listeners.forEach(g=>{g(T(this,Rr))})})},f0),de=hf();const b0=h0(de);var C0=de.createContext(void 0),pa=e=>{const n=de.useContext(C0);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},i1=({client:e,children:n})=>(de.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),A.jsx(C0.Provider,{value:e,children:n})),E0=de.createContext(!1),o1=()=>de.useContext(E0);E0.Provider;function s1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var l1=de.createContext(s1()),a1=()=>de.useContext(l1),u1=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},c1=e=>{de.useEffect(()=>{e.clearReset()},[e])},f1=({result:e,errorResetBoundary:n,throwOnError:i,query:s,suspense:a})=>e.isError&&!n.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||m0(i,[e.error,s])),h1=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))}},d1=(e,n)=>e.isLoading&&e.isFetching&&!n,p1=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,Rp=(e,n,i)=>n.fetchOptimistic(e).catch(()=>{i.clearReset()});function g1(e,n,i){var g,_,x,b,C;const s=o1(),a=a1(),u=pa(),f=u.defaultQueryOptions(e);(_=(g=u.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||_.call(g,f),f._optimisticResults=s?"isRestoring":"optimistic",h1(f),u1(f,a),c1(a);const h=!u.getQueryCache().get(f.queryHash),[p]=de.useState(()=>new n(u,f)),m=p.getOptimisticResult(f),v=!s&&e.subscribed!==!1;if(de.useSyncExternalStore(de.useCallback(S=>{const k=v?p.subscribe(rt.batchCalls(S)):St;return p.updateResult(),k},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),de.useEffect(()=>{p.setOptions(f)},[f,p]),p1(f,m))throw Rp(f,p,a);if(f1({result:m,errorResetBoundary:a,throwOnError:f.throwOnError,query:u.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw m.error;if((b=(x=u.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||b.call(x,f,m),f.experimental_prefetchInRender&&!ai&&d1(m,s)){const S=h?Rp(f,p,a):(C=u.getQueryCache().get(f.queryHash))==null?void 0:C.promise;S==null||S.catch(St).finally(()=>{p.updateResult()})}return f.notifyOnChangeProps?m:p.trackResult(m)}function qc(e,n){return g1(e,e1)}function m1(e,n){const i=pa(),[s]=de.useState(()=>new r1(i,e));de.useEffect(()=>{s.setOptions(e)},[s,e]);const a=de.useSyncExternalStore(de.useCallback(f=>s.subscribe(rt.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=de.useCallback((f,h)=>{s.mutate(f,h).catch(St)},[s]);if(a.error&&m0(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}var Ll={},pc={exports:{}},Ot={},gc={exports:{}},mc={};/**
|
|
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 jp;function y1(){return jp||(jp=1,function(e){function n(Q,J){var G=Q.length;Q.push(J);e:for(;0<G;){var R=G-1>>>1,q=Q[R];if(0<a(q,J))Q[R]=J,Q[G]=q,G=R;else break e}}function i(Q){return Q.length===0?null:Q[0]}function s(Q){if(Q.length===0)return null;var J=Q[0],G=Q.pop();if(G!==J){Q[0]=G;e:for(var R=0,q=Q.length,le=q>>>1;R<le;){var ge=2*(R+1)-1,ke=Q[ge],be=ge+1,Ee=Q[be];if(0>a(ke,G))be<q&&0>a(Ee,ke)?(Q[R]=Ee,Q[be]=G,R=be):(Q[R]=ke,Q[ge]=G,R=ge);else if(be<q&&0>a(Ee,G))Q[R]=Ee,Q[be]=G,R=be;else break e}}return J}function a(Q,J){var G=Q.sortIndex-J.sortIndex;return G!==0?G:Q.id-J.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=[],m=[],v=1,g=null,_=3,x=!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 j(Q){for(var J=i(m);J!==null;){if(J.callback===null)s(m);else if(J.startTime<=Q)s(m),J.sortIndex=J.expirationTime,n(p,J);else break;J=i(m)}}function P(Q){if(C=!1,j(Q),!b)if(i(p)!==null)b=!0,W(N);else{var J=i(m);J!==null&&oe(P,J.startTime-Q)}}function N(Q,J){b=!1,C&&(C=!1,k(I),I=-1),x=!0;var G=_;try{for(j(J),g=i(p);g!==null&&(!(g.expirationTime>J)||Q&&!Z());){var R=g.callback;if(typeof R=="function"){g.callback=null,_=g.priorityLevel;var q=R(g.expirationTime<=J);J=e.unstable_now(),typeof q=="function"?g.callback=q:g===i(p)&&s(p),j(J)}else s(p);g=i(p)}if(g!==null)var le=!0;else{var ge=i(m);ge!==null&&oe(P,ge.startTime-J),le=!1}return le}finally{g=null,_=G,x=!1}}var D=!1,F=null,I=-1,B=5,K=-1;function Z(){return!(e.unstable_now()-K<B)}function ie(){if(F!==null){var Q=e.unstable_now();K=Q;var J=!0;try{J=F(!0,Q)}finally{J?ce():(D=!1,F=null)}}else D=!1}var ce;if(typeof O=="function")ce=function(){O(ie)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,te=$.port2;$.port1.onmessage=ie,ce=function(){te.postMessage(null)}}else ce=function(){S(ie,0)};function W(Q){F=Q,D||(D=!0,ce())}function oe(Q,J){I=S(function(){Q(e.unstable_now())},J)}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(Q){Q.callback=null},e.unstable_continueExecution=function(){b||x||(b=!0,W(N))},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(Q){switch(_){case 1:case 2:case 3:var J=3;break;default:J=_}var G=_;_=J;try{return Q()}finally{_=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,J){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var G=_;_=Q;try{return J()}finally{_=G}},e.unstable_scheduleCallback=function(Q,J,G){var R=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?R+G:R):G=R,Q){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=G+q,Q={id:v++,callback:J,priorityLevel:Q,startTime:G,expirationTime:q,sortIndex:-1},G>R?(Q.sortIndex=G,n(m,Q),i(p)===null&&Q===i(m)&&(C?(k(I),I=-1):C=!0,oe(P,G-R))):(Q.sortIndex=q,n(p,Q),b||x||(b=!0,W(N))),Q},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(Q){var J=_;return function(){var G=_;_=J;try{return Q.apply(this,arguments)}finally{_=G}}}}(mc)),mc}var Ap;function v1(){return Ap||(Ap=1,gc.exports=y1()),gc.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 zp;function _1(){if(zp)return Ot;zp=1;var e=hf(),n=v1();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,m=/^[: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={},g={};function _(r){return p.call(g,r)?!0:p.call(v,r)?!1:m.test(r)?g[r]=!0:(v[r]=!0,!1)}function x(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"||x(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,w){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=w}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 j(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?_(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,N=Symbol.for("react.element"),D=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),Z=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),Q=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=Q&&r[Q]||r["@@iterator"],typeof r=="function"?r:null)}var G=Object.assign,R;function q(r){if(R===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);R=o&&o[1]||""}return`
|
|
34
|
-
`+R+r}var le=!1;function ge(r,o){if(!r||le)return"";le=!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(V){var c=V}Reflect.construct(r,[],o)}else{try{o.call()}catch(V){c=V}r.call(o.prototype)}else{try{throw Error()}catch(V){c=V}r()}}catch(V){if(V&&c&&typeof V.stack=="string"){for(var d=V.stack.split(`
|
|
35
|
-
`),y=c.stack.split(`
|
|
36
|
-
`),w=d.length-1,E=y.length-1;1<=w&&0<=E&&d[w]!==y[E];)E--;for(;1<=w&&0<=E;w--,E--)if(d[w]!==y[E]){if(w!==1||E!==1)do if(w--,E--,0>E||d[w]!==y[E]){var M=`
|
|
37
|
-
`+d[w].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),M}while(1<=w&&0<=E);break}}}finally{le=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?q(r):""}function ke(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=ge(r.type,!1),r;case 11:return r=ge(r.type.render,!1),r;case 1:return r=ge(r.type,!0),r;default:return""}}function be(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 F:return"Fragment";case D:return"Portal";case B:return"Profiler";case I:return"StrictMode";case ce:return"Suspense";case $:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Z:return(r.displayName||"Context")+".Consumer";case K:return(r._context.displayName||"Context")+".Provider";case ie:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case te:return o=r.displayName||null,o!==null?o:be(r.type)||"Memo";case W:o=r._payload,r=r._init;try{return be(r(o))}catch{}}return null}function Ee(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 be(o);case 8:return o===I?"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 Ce(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function je(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function yt(r){var o=je(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(w){c=""+w,y.call(this,w)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Ar(r){r._valueTracker||(r._valueTracker=yt(r))}function Cs(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),c="";return r&&(c=je(r)?r.checked?"true":"false":r.value),r=c,r!==l?(o.setValue(r),!0):!1}function fi(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 io(r,o){var l=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Es(r,o){var l=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;l=Ce(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 Ps(r,o){o=o.checked,o!=null&&j(r,"checked",o,!1)}function oo(r,o){Ps(r,o);var l=Ce(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")?so(r,o.type,l):o.hasOwnProperty("defaultValue")&&so(r,o.type,Ce(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Ns(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 so(r,o,l){(o!=="number"||fi(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var zr=Array.isArray;function Zn(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=""+Ce(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 hi(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function lo(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(zr(l)){if(1<l.length)throw Error(i(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:Ce(l)}}function se(r,o){var l=Ce(o.value),c=Ce(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 we(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function Me(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 Je(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?Me(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Be,Jn=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(Be=Be||document.createElement("div"),Be.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Be.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function vt(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var et={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},Dt=["Webkit","ms","Moz","O"];Object.keys(et).forEach(function(r){Dt.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),et[o]=et[r]})});function Vt(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||et.hasOwnProperty(r)&&et[r]?(""+o).trim():o+"px"}function zf(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var c=l.indexOf("--")===0,d=Vt(l,o[l],c);l==="float"&&(l="cssFloat"),c?r.setProperty(l,d):r[l]=d}}var $m=G({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 ka(r,o){if(o){if($m[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 Sa(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 ba=null;function Ca(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ea=null,di=null,pi=null;function Df(r){if(r=Mo(r)){if(typeof Ea!="function")throw Error(i(280));var o=r.stateNode;o&&(o=Ys(o),Ea(r.stateNode,r.type,o))}}function If(r){di?pi?pi.push(r):pi=[r]:di=r}function Lf(){if(di){var r=di,o=pi;if(pi=di=null,Df(r),o)for(r=0;r<o.length;r++)Df(o[r])}}function Ff(r,o){return r(o)}function $f(){}var Pa=!1;function Uf(r,o,l){if(Pa)return r(o,l);Pa=!0;try{return Ff(r,o,l)}finally{Pa=!1,(di!==null||pi!==null)&&($f(),Lf())}}function ao(r,o){var l=r.stateNode;if(l===null)return null;var c=Ys(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 Na=!1;if(h)try{var uo={};Object.defineProperty(uo,"passive",{get:function(){Na=!0}}),window.addEventListener("test",uo,uo),window.removeEventListener("test",uo,uo)}catch{Na=!1}function Um(r,o,l,c,d,y,w,E,M){var V=Array.prototype.slice.call(arguments,3);try{o.apply(l,V)}catch(Y){this.onError(Y)}}var co=!1,Ts=null,Ms=!1,Ta=null,Hm={onError:function(r){co=!0,Ts=r}};function Vm(r,o,l,c,d,y,w,E,M){co=!1,Ts=null,Um.apply(Hm,arguments)}function qm(r,o,l,c,d,y,w,E,M){if(Vm.apply(this,arguments),co){if(co){var V=Ts;co=!1,Ts=null}else throw Error(i(198));Ms||(Ms=!0,Ta=V)}}function Dr(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 Hf(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 Vf(r){if(Dr(r)!==r)throw Error(i(188))}function Bm(r){var o=r.alternate;if(!o){if(o=Dr(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 Vf(d),r;if(y===c)return Vf(d),o;y=y.sibling}throw Error(i(188))}if(l.return!==c.return)l=d,c=y;else{for(var w=!1,E=d.child;E;){if(E===l){w=!0,l=d,c=y;break}if(E===c){w=!0,c=d,l=y;break}E=E.sibling}if(!w){for(E=y.child;E;){if(E===l){w=!0,l=y,c=d;break}if(E===c){w=!0,c=y,l=d;break}E=E.sibling}if(!w)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 qf(r){return r=Bm(r),r!==null?Bf(r):null}function Bf(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=Bf(r);if(o!==null)return o;r=r.sibling}return null}var Qf=n.unstable_scheduleCallback,Wf=n.unstable_cancelCallback,Qm=n.unstable_shouldYield,Wm=n.unstable_requestPaint,Xe=n.unstable_now,Km=n.unstable_getCurrentPriorityLevel,Ma=n.unstable_ImmediatePriority,Kf=n.unstable_UserBlockingPriority,Os=n.unstable_NormalPriority,Gm=n.unstable_LowPriority,Gf=n.unstable_IdlePriority,Rs=null,mn=null;function Xm(r){if(mn&&typeof mn.onCommitFiberRoot=="function")try{mn.onCommitFiberRoot(Rs,r,void 0,(r.current.flags&128)===128)}catch{}}var tn=Math.clz32?Math.clz32:Jm,Ym=Math.log,Zm=Math.LN2;function Jm(r){return r>>>=0,r===0?32:31-(Ym(r)/Zm|0)|0}var js=64,As=4194304;function fo(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 zs(r,o){var l=r.pendingLanes;if(l===0)return 0;var c=0,d=r.suspendedLanes,y=r.pingedLanes,w=l&268435455;if(w!==0){var E=w&~d;E!==0?c=fo(E):(y&=w,y!==0&&(c=fo(y)))}else w=l&~d,w!==0?c=fo(w):y!==0&&(c=fo(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-tn(o),d=1<<l,c|=r[l],o&=~d;return c}function ey(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 ty(r,o){for(var l=r.suspendedLanes,c=r.pingedLanes,d=r.expirationTimes,y=r.pendingLanes;0<y;){var w=31-tn(y),E=1<<w,M=d[w];M===-1?((E&l)===0||(E&c)!==0)&&(d[w]=ey(E,o)):M<=o&&(r.expiredLanes|=E),y&=~E}}function Oa(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Xf(){var r=js;return js<<=1,(js&4194240)===0&&(js=64),r}function Ra(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function ho(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-tn(o),r[o]=l}function ny(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-tn(l),y=1<<d;o[d]=0,c[d]=-1,r[d]=-1,l&=~y}}function ja(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var c=31-tn(l),d=1<<c;d&o|r[c]&o&&(r[c]|=o),l&=~d}}var ze=0;function Yf(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Zf,Aa,Jf,eh,th,za=!1,Ds=[],er=null,tr=null,nr=null,po=new Map,go=new Map,rr=[],ry="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 nh(r,o){switch(r){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":po.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":go.delete(o.pointerId)}}function mo(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=Mo(o),o!==null&&Aa(o)),r):(r.eventSystemFlags|=c,o=r.targetContainers,d!==null&&o.indexOf(d)===-1&&o.push(d),r)}function iy(r,o,l,c,d){switch(o){case"focusin":return er=mo(er,r,o,l,c,d),!0;case"dragenter":return tr=mo(tr,r,o,l,c,d),!0;case"mouseover":return nr=mo(nr,r,o,l,c,d),!0;case"pointerover":var y=d.pointerId;return po.set(y,mo(po.get(y)||null,r,o,l,c,d)),!0;case"gotpointercapture":return y=d.pointerId,go.set(y,mo(go.get(y)||null,r,o,l,c,d)),!0}return!1}function rh(r){var o=Ir(r.target);if(o!==null){var l=Dr(o);if(l!==null){if(o=l.tag,o===13){if(o=Hf(l),o!==null){r.blockedOn=o,th(r.priority,function(){Jf(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 Is(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=Ia(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);ba=c,l.target.dispatchEvent(c),ba=null}else return o=Mo(l),o!==null&&Aa(o),r.blockedOn=l,!1;o.shift()}return!0}function ih(r,o,l){Is(r)&&l.delete(o)}function oy(){za=!1,er!==null&&Is(er)&&(er=null),tr!==null&&Is(tr)&&(tr=null),nr!==null&&Is(nr)&&(nr=null),po.forEach(ih),go.forEach(ih)}function yo(r,o){r.blockedOn===o&&(r.blockedOn=null,za||(za=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,oy)))}function vo(r){function o(d){return yo(d,r)}if(0<Ds.length){yo(Ds[0],r);for(var l=1;l<Ds.length;l++){var c=Ds[l];c.blockedOn===r&&(c.blockedOn=null)}}for(er!==null&&yo(er,r),tr!==null&&yo(tr,r),nr!==null&&yo(nr,r),po.forEach(o),go.forEach(o),l=0;l<rr.length;l++)c=rr[l],c.blockedOn===r&&(c.blockedOn=null);for(;0<rr.length&&(l=rr[0],l.blockedOn===null);)rh(l),l.blockedOn===null&&rr.shift()}var gi=P.ReactCurrentBatchConfig,Ls=!0;function sy(r,o,l,c){var d=ze,y=gi.transition;gi.transition=null;try{ze=1,Da(r,o,l,c)}finally{ze=d,gi.transition=y}}function ly(r,o,l,c){var d=ze,y=gi.transition;gi.transition=null;try{ze=4,Da(r,o,l,c)}finally{ze=d,gi.transition=y}}function Da(r,o,l,c){if(Ls){var d=Ia(r,o,l,c);if(d===null)eu(r,o,c,Fs,l),nh(r,c);else if(iy(d,r,o,l,c))c.stopPropagation();else if(nh(r,c),o&4&&-1<ry.indexOf(r)){for(;d!==null;){var y=Mo(d);if(y!==null&&Zf(y),y=Ia(r,o,l,c),y===null&&eu(r,o,c,Fs,l),y===d)break;d=y}d!==null&&c.stopPropagation()}else eu(r,o,c,null,l)}}var Fs=null;function Ia(r,o,l,c){if(Fs=null,r=Ca(c),r=Ir(r),r!==null)if(o=Dr(r),o===null)r=null;else if(l=o.tag,l===13){if(r=Hf(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 Fs=r,null}function oh(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(Km()){case Ma:return 1;case Kf:return 4;case Os:case Gm:return 16;case Gf:return 536870912;default:return 16}default:return 16}}var ir=null,La=null,$s=null;function sh(){if($s)return $s;var r,o=La,l=o.length,c,d="value"in ir?ir.value:ir.textContent,y=d.length;for(r=0;r<l&&o[r]===d[r];r++);var w=l-r;for(c=1;c<=w&&o[l-c]===d[y-c];c++);return $s=d.slice(r,1<c?1-c:void 0)}function Us(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 Hs(){return!0}function lh(){return!1}function It(r){function o(l,c,d,y,w){this._reactName=l,this._targetInst=d,this.type=c,this.nativeEvent=y,this.target=w,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)?Hs:lh,this.isPropagationStopped=lh,this}return G(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=Hs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Hs)},persist:function(){},isPersistent:Hs}),o}var mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=It(mi),_o=G({},mi,{view:0,detail:0}),ay=It(_o),$a,Ua,xo,Vs=G({},_o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Va,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!==xo&&(xo&&r.type==="mousemove"?($a=r.screenX-xo.screenX,Ua=r.screenY-xo.screenY):Ua=$a=0,xo=r),$a)},movementY:function(r){return"movementY"in r?r.movementY:Ua}}),ah=It(Vs),uy=G({},Vs,{dataTransfer:0}),cy=It(uy),fy=G({},_o,{relatedTarget:0}),Ha=It(fy),hy=G({},mi,{animationName:0,elapsedTime:0,pseudoElement:0}),dy=It(hy),py=G({},mi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),gy=It(py),my=G({},mi,{data:0}),uh=It(my),yy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vy={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"},_y={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xy(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=_y[r])?!!o[r]:!1}function Va(){return xy}var wy=G({},_o,{key:function(r){if(r.key){var o=yy[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Us(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?vy[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Va,charCode:function(r){return r.type==="keypress"?Us(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Us(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ky=It(wy),Sy=G({},Vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ch=It(Sy),by=G({},_o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Va}),Cy=It(by),Ey=G({},mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Py=It(Ey),Ny=G({},Vs,{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}),Ty=It(Ny),My=[9,13,27,32],qa=h&&"CompositionEvent"in window,wo=null;h&&"documentMode"in document&&(wo=document.documentMode);var Oy=h&&"TextEvent"in window&&!wo,fh=h&&(!qa||wo&&8<wo&&11>=wo),hh=" ",dh=!1;function ph(r,o){switch(r){case"keyup":return My.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gh(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var yi=!1;function Ry(r,o){switch(r){case"compositionend":return gh(o);case"keypress":return o.which!==32?null:(dh=!0,hh);case"textInput":return r=o.data,r===hh&&dh?null:r;default:return null}}function jy(r,o){if(yi)return r==="compositionend"||!qa&&ph(r,o)?(r=sh(),$s=La=ir=null,yi=!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 fh&&o.locale!=="ko"?null:o.data;default:return null}}var Ay={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 mh(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!Ay[r.type]:o==="textarea"}function yh(r,o,l,c){If(c),o=Ks(o,"onChange"),0<o.length&&(l=new Fa("onChange","change",null,l,c),r.push({event:l,listeners:o}))}var ko=null,So=null;function zy(r){zh(r,0)}function qs(r){var o=ki(r);if(Cs(o))return r}function Dy(r,o){if(r==="change")return o}var vh=!1;if(h){var Ba;if(h){var Qa="oninput"in document;if(!Qa){var _h=document.createElement("div");_h.setAttribute("oninput","return;"),Qa=typeof _h.oninput=="function"}Ba=Qa}else Ba=!1;vh=Ba&&(!document.documentMode||9<document.documentMode)}function xh(){ko&&(ko.detachEvent("onpropertychange",wh),So=ko=null)}function wh(r){if(r.propertyName==="value"&&qs(So)){var o=[];yh(o,So,r,Ca(r)),Uf(zy,o)}}function Iy(r,o,l){r==="focusin"?(xh(),ko=o,So=l,ko.attachEvent("onpropertychange",wh)):r==="focusout"&&xh()}function Ly(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return qs(So)}function Fy(r,o){if(r==="click")return qs(o)}function $y(r,o){if(r==="input"||r==="change")return qs(o)}function Uy(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var nn=typeof Object.is=="function"?Object.is:Uy;function bo(r,o){if(nn(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)||!nn(r[d],o[d]))return!1}return!0}function kh(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Sh(r,o){var l=kh(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=kh(l)}}function bh(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?bh(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function Ch(){for(var r=window,o=fi();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=fi(r.document)}return o}function Wa(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 Hy(r){var o=Ch(),l=r.focusedElem,c=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&bh(l.ownerDocument.documentElement,l)){if(c!==null&&Wa(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=Sh(l,y);var w=Sh(l,c);d&&w&&(r.rangeCount!==1||r.anchorNode!==d.node||r.anchorOffset!==d.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(o=o.createRange(),o.setStart(d.node,d.offset),r.removeAllRanges(),y>c?(r.addRange(o),r.extend(w.node,w.offset)):(o.setEnd(w.node,w.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 Vy=h&&"documentMode"in document&&11>=document.documentMode,vi=null,Ka=null,Co=null,Ga=!1;function Eh(r,o,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ga||vi==null||vi!==fi(c)||(c=vi,"selectionStart"in c&&Wa(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}),Co&&bo(Co,c)||(Co=c,c=Ks(Ka,"onSelect"),0<c.length&&(o=new Fa("onSelect","select",null,o,l),r.push({event:o,listeners:c}),o.target=vi)))}function Bs(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var _i={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionend:Bs("Transition","TransitionEnd")},Xa={},Ph={};h&&(Ph=document.createElement("div").style,"AnimationEvent"in window||(delete _i.animationend.animation,delete _i.animationiteration.animation,delete _i.animationstart.animation),"TransitionEvent"in window||delete _i.transitionend.transition);function Qs(r){if(Xa[r])return Xa[r];if(!_i[r])return r;var o=_i[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in Ph)return Xa[r]=o[l];return r}var Nh=Qs("animationend"),Th=Qs("animationiteration"),Mh=Qs("animationstart"),Oh=Qs("transitionend"),Rh=new Map,jh="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 or(r,o){Rh.set(r,o),u(o,[r])}for(var Ya=0;Ya<jh.length;Ya++){var Za=jh[Ya],qy=Za.toLowerCase(),By=Za[0].toUpperCase()+Za.slice(1);or(qy,"on"+By)}or(Nh,"onAnimationEnd"),or(Th,"onAnimationIteration"),or(Mh,"onAnimationStart"),or("dblclick","onDoubleClick"),or("focusin","onFocus"),or("focusout","onBlur"),or(Oh,"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 Eo="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(" "),Qy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Eo));function Ah(r,o,l){var c=r.type||"unknown-event";r.currentTarget=l,qm(c,o,void 0,r),r.currentTarget=null}function zh(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 w=c.length-1;0<=w;w--){var E=c[w],M=E.instance,V=E.currentTarget;if(E=E.listener,M!==y&&d.isPropagationStopped())break e;Ah(d,E,V),y=M}else for(w=0;w<c.length;w++){if(E=c[w],M=E.instance,V=E.currentTarget,E=E.listener,M!==y&&d.isPropagationStopped())break e;Ah(d,E,V),y=M}}}if(Ms)throw r=Ta,Ms=!1,Ta=null,r}function Fe(r,o){var l=o[su];l===void 0&&(l=o[su]=new Set);var c=r+"__bubble";l.has(c)||(Dh(o,r,2,!1),l.add(c))}function Ja(r,o,l){var c=0;o&&(c|=4),Dh(l,r,c,o)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function Po(r){if(!r[Ws]){r[Ws]=!0,s.forEach(function(l){l!=="selectionchange"&&(Qy.has(l)||Ja(l,!1,r),Ja(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Ws]||(o[Ws]=!0,Ja("selectionchange",!1,o))}}function Dh(r,o,l,c){switch(oh(o)){case 1:var d=sy;break;case 4:d=ly;break;default:d=Da}l=d.bind(null,o,l,r),d=void 0,!Na||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 eu(r,o,l,c,d){var y=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var E=c.stateNode.containerInfo;if(E===d||E.nodeType===8&&E.parentNode===d)break;if(w===4)for(w=c.return;w!==null;){var M=w.tag;if((M===3||M===4)&&(M=w.stateNode.containerInfo,M===d||M.nodeType===8&&M.parentNode===d))return;w=w.return}for(;E!==null;){if(w=Ir(E),w===null)return;if(M=w.tag,M===5||M===6){c=y=w;continue e}E=E.parentNode}}c=c.return}Uf(function(){var V=y,Y=Ca(l),ee=[];e:{var X=Rh.get(r);if(X!==void 0){var ae=Fa,he=r;switch(r){case"keypress":if(Us(l)===0)break e;case"keydown":case"keyup":ae=ky;break;case"focusin":he="focus",ae=Ha;break;case"focusout":he="blur",ae=Ha;break;case"beforeblur":case"afterblur":ae=Ha;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":ae=ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=cy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=Cy;break;case Nh:case Th:case Mh:ae=dy;break;case Oh:ae=Py;break;case"scroll":ae=ay;break;case"wheel":ae=Ty;break;case"copy":case"cut":case"paste":ae=gy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=ch}var pe=(o&4)!==0,Ye=!pe&&r==="scroll",U=pe?X!==null?X+"Capture":null:X;pe=[];for(var z=V,H;z!==null;){H=z;var ne=H.stateNode;if(H.tag===5&&ne!==null&&(H=ne,U!==null&&(ne=ao(z,U),ne!=null&&pe.push(No(z,ne,H)))),Ye)break;z=z.return}0<pe.length&&(X=new ae(X,he,null,l,Y),ee.push({event:X,listeners:pe}))}}if((o&7)===0){e:{if(X=r==="mouseover"||r==="pointerover",ae=r==="mouseout"||r==="pointerout",X&&l!==ba&&(he=l.relatedTarget||l.fromElement)&&(Ir(he)||he[Mn]))break e;if((ae||X)&&(X=Y.window===Y?Y:(X=Y.ownerDocument)?X.defaultView||X.parentWindow:window,ae?(he=l.relatedTarget||l.toElement,ae=V,he=he?Ir(he):null,he!==null&&(Ye=Dr(he),he!==Ye||he.tag!==5&&he.tag!==6)&&(he=null)):(ae=null,he=V),ae!==he)){if(pe=ah,ne="onMouseLeave",U="onMouseEnter",z="mouse",(r==="pointerout"||r==="pointerover")&&(pe=ch,ne="onPointerLeave",U="onPointerEnter",z="pointer"),Ye=ae==null?X:ki(ae),H=he==null?X:ki(he),X=new pe(ne,z+"leave",ae,l,Y),X.target=Ye,X.relatedTarget=H,ne=null,Ir(Y)===V&&(pe=new pe(U,z+"enter",he,l,Y),pe.target=H,pe.relatedTarget=Ye,ne=pe),Ye=ne,ae&&he)t:{for(pe=ae,U=he,z=0,H=pe;H;H=xi(H))z++;for(H=0,ne=U;ne;ne=xi(ne))H++;for(;0<z-H;)pe=xi(pe),z--;for(;0<H-z;)U=xi(U),H--;for(;z--;){if(pe===U||U!==null&&pe===U.alternate)break t;pe=xi(pe),U=xi(U)}pe=null}else pe=null;ae!==null&&Ih(ee,X,ae,pe,!1),he!==null&&Ye!==null&&Ih(ee,Ye,he,pe,!0)}}e:{if(X=V?ki(V):window,ae=X.nodeName&&X.nodeName.toLowerCase(),ae==="select"||ae==="input"&&X.type==="file")var me=Dy;else if(mh(X))if(vh)me=$y;else{me=Ly;var _e=Iy}else(ae=X.nodeName)&&ae.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(me=Fy);if(me&&(me=me(r,V))){yh(ee,me,l,Y);break e}_e&&_e(r,X,V),r==="focusout"&&(_e=X._wrapperState)&&_e.controlled&&X.type==="number"&&so(X,"number",X.value)}switch(_e=V?ki(V):window,r){case"focusin":(mh(_e)||_e.contentEditable==="true")&&(vi=_e,Ka=V,Co=null);break;case"focusout":Co=Ka=vi=null;break;case"mousedown":Ga=!0;break;case"contextmenu":case"mouseup":case"dragend":Ga=!1,Eh(ee,l,Y);break;case"selectionchange":if(Vy)break;case"keydown":case"keyup":Eh(ee,l,Y)}var xe;if(qa)e:{switch(r){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else yi?ph(r,l)&&(Se="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Se="onCompositionStart");Se&&(fh&&l.locale!=="ko"&&(yi||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&yi&&(xe=sh()):(ir=Y,La="value"in ir?ir.value:ir.textContent,yi=!0)),_e=Ks(V,Se),0<_e.length&&(Se=new uh(Se,r,null,l,Y),ee.push({event:Se,listeners:_e}),xe?Se.data=xe:(xe=gh(l),xe!==null&&(Se.data=xe)))),(xe=Oy?Ry(r,l):jy(r,l))&&(V=Ks(V,"onBeforeInput"),0<V.length&&(Y=new uh("onBeforeInput","beforeinput",null,l,Y),ee.push({event:Y,listeners:V}),Y.data=xe))}zh(ee,o)})}function No(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Ks(r,o){for(var l=o+"Capture",c=[];r!==null;){var d=r,y=d.stateNode;d.tag===5&&y!==null&&(d=y,y=ao(r,l),y!=null&&c.unshift(No(r,y,d)),y=ao(r,o),y!=null&&c.push(No(r,y,d))),r=r.return}return c}function xi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Ih(r,o,l,c,d){for(var y=o._reactName,w=[];l!==null&&l!==c;){var E=l,M=E.alternate,V=E.stateNode;if(M!==null&&M===c)break;E.tag===5&&V!==null&&(E=V,d?(M=ao(l,y),M!=null&&w.unshift(No(l,M,E))):d||(M=ao(l,y),M!=null&&w.push(No(l,M,E)))),l=l.return}w.length!==0&&r.push({event:o,listeners:w})}var Wy=/\r\n?/g,Ky=/\u0000|\uFFFD/g;function Lh(r){return(typeof r=="string"?r:""+r).replace(Wy,`
|
|
38
|
-
`).replace(Ky,"")}function Gs(r,o,l){if(o=Lh(o),Lh(r)!==o&&l)throw Error(i(425))}function Xs(){}var tu=null,nu=null;function ru(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 iu=typeof setTimeout=="function"?setTimeout:void 0,Gy=typeof clearTimeout=="function"?clearTimeout:void 0,Fh=typeof Promise=="function"?Promise:void 0,Xy=typeof queueMicrotask=="function"?queueMicrotask:typeof Fh<"u"?function(r){return Fh.resolve(null).then(r).catch(Yy)}:iu;function Yy(r){setTimeout(function(){throw r})}function ou(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),vo(o);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=d}while(l);vo(o)}function sr(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 $h(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 wi=Math.random().toString(36).slice(2),yn="__reactFiber$"+wi,To="__reactProps$"+wi,Mn="__reactContainer$"+wi,su="__reactEvents$"+wi,Zy="__reactListeners$"+wi,Jy="__reactHandles$"+wi;function Ir(r){var o=r[yn];if(o)return o;for(var l=r.parentNode;l;){if(o=l[Mn]||l[yn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=$h(r);r!==null;){if(l=r[yn])return l;r=$h(r)}return o}r=l,l=r.parentNode}return null}function Mo(r){return r=r[yn]||r[Mn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function ki(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(i(33))}function Ys(r){return r[To]||null}var lu=[],Si=-1;function lr(r){return{current:r}}function $e(r){0>Si||(r.current=lu[Si],lu[Si]=null,Si--)}function Le(r,o){Si++,lu[Si]=r.current,r.current=o}var ar={},ct=lr(ar),Et=lr(!1),Lr=ar;function bi(r,o){var l=r.type.contextTypes;if(!l)return ar;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 Pt(r){return r=r.childContextTypes,r!=null}function Zs(){$e(Et),$e(ct)}function Uh(r,o,l){if(ct.current!==ar)throw Error(i(168));Le(ct,o),Le(Et,l)}function Hh(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,Ee(r)||"Unknown",d));return G({},l,c)}function Js(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||ar,Lr=ct.current,Le(ct,r),Le(Et,Et.current),!0}function Vh(r,o,l){var c=r.stateNode;if(!c)throw Error(i(169));l?(r=Hh(r,o,Lr),c.__reactInternalMemoizedMergedChildContext=r,$e(Et),$e(ct),Le(ct,r)):$e(Et),Le(Et,l)}var On=null,el=!1,au=!1;function qh(r){On===null?On=[r]:On.push(r)}function ev(r){el=!0,qh(r)}function ur(){if(!au&&On!==null){au=!0;var r=0,o=ze;try{var l=On;for(ze=1;r<l.length;r++){var c=l[r];do c=c(!0);while(c!==null)}On=null,el=!1}catch(d){throw On!==null&&(On=On.slice(r+1)),Qf(Ma,ur),d}finally{ze=o,au=!1}}return null}var Ci=[],Ei=0,tl=null,nl=0,qt=[],Bt=0,Fr=null,Rn=1,jn="";function $r(r,o){Ci[Ei++]=nl,Ci[Ei++]=tl,tl=r,nl=o}function Bh(r,o,l){qt[Bt++]=Rn,qt[Bt++]=jn,qt[Bt++]=Fr,Fr=r;var c=Rn;r=jn;var d=32-tn(c)-1;c&=~(1<<d),l+=1;var y=32-tn(o)+d;if(30<y){var w=d-d%5;y=(c&(1<<w)-1).toString(32),c>>=w,d-=w,Rn=1<<32-tn(o)+d|l<<d|c,jn=y+r}else Rn=1<<y|l<<d|c,jn=r}function uu(r){r.return!==null&&($r(r,1),Bh(r,1,0))}function cu(r){for(;r===tl;)tl=Ci[--Ei],Ci[Ei]=null,nl=Ci[--Ei],Ci[Ei]=null;for(;r===Fr;)Fr=qt[--Bt],qt[Bt]=null,jn=qt[--Bt],qt[Bt]=null,Rn=qt[--Bt],qt[Bt]=null}var Lt=null,Ft=null,He=!1,rn=null;function Qh(r,o){var l=Gt(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 Wh(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,Lt=r,Ft=sr(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,Lt=r,Ft=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=Fr!==null?{id:Rn,overflow:jn}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=Gt(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,Lt=r,Ft=null,!0):!1;default:return!1}}function fu(r){return(r.mode&1)!==0&&(r.flags&128)===0}function hu(r){if(He){var o=Ft;if(o){var l=o;if(!Wh(r,o)){if(fu(r))throw Error(i(418));o=sr(l.nextSibling);var c=Lt;o&&Wh(r,o)?Qh(c,l):(r.flags=r.flags&-4097|2,He=!1,Lt=r)}}else{if(fu(r))throw Error(i(418));r.flags=r.flags&-4097|2,He=!1,Lt=r}}}function Kh(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Lt=r}function rl(r){if(r!==Lt)return!1;if(!He)return Kh(r),He=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!ru(r.type,r.memoizedProps)),o&&(o=Ft)){if(fu(r))throw Gh(),Error(i(418));for(;o;)Qh(r,o),o=sr(o.nextSibling)}if(Kh(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){Ft=sr(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}Ft=null}}else Ft=Lt?sr(r.stateNode.nextSibling):null;return!0}function Gh(){for(var r=Ft;r;)r=sr(r.nextSibling)}function Pi(){Ft=Lt=null,He=!1}function du(r){rn===null?rn=[r]:rn.push(r)}var tv=P.ReactCurrentBatchConfig;function Oo(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(w){var E=d.refs;w===null?delete E[y]:E[y]=w},o._stringRef=y,o)}if(typeof r!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,r))}return r}function il(r,o){throw r=Object.prototype.toString.call(o),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Xh(r){var o=r._init;return o(r._payload)}function Yh(r){function o(U,z){if(r){var H=U.deletions;H===null?(U.deletions=[z],U.flags|=16):H.push(z)}}function l(U,z){if(!r)return null;for(;z!==null;)o(U,z),z=z.sibling;return null}function c(U,z){for(U=new Map;z!==null;)z.key!==null?U.set(z.key,z):U.set(z.index,z),z=z.sibling;return U}function d(U,z){return U=yr(U,z),U.index=0,U.sibling=null,U}function y(U,z,H){return U.index=H,r?(H=U.alternate,H!==null?(H=H.index,H<z?(U.flags|=2,z):H):(U.flags|=2,z)):(U.flags|=1048576,z)}function w(U){return r&&U.alternate===null&&(U.flags|=2),U}function E(U,z,H,ne){return z===null||z.tag!==6?(z=ic(H,U.mode,ne),z.return=U,z):(z=d(z,H),z.return=U,z)}function M(U,z,H,ne){var me=H.type;return me===F?Y(U,z,H.props.children,ne,H.key):z!==null&&(z.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===W&&Xh(me)===z.type)?(ne=d(z,H.props),ne.ref=Oo(U,z,H),ne.return=U,ne):(ne=Nl(H.type,H.key,H.props,null,U.mode,ne),ne.ref=Oo(U,z,H),ne.return=U,ne)}function V(U,z,H,ne){return z===null||z.tag!==4||z.stateNode.containerInfo!==H.containerInfo||z.stateNode.implementation!==H.implementation?(z=oc(H,U.mode,ne),z.return=U,z):(z=d(z,H.children||[]),z.return=U,z)}function Y(U,z,H,ne,me){return z===null||z.tag!==7?(z=Kr(H,U.mode,ne,me),z.return=U,z):(z=d(z,H),z.return=U,z)}function ee(U,z,H){if(typeof z=="string"&&z!==""||typeof z=="number")return z=ic(""+z,U.mode,H),z.return=U,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case N:return H=Nl(z.type,z.key,z.props,null,U.mode,H),H.ref=Oo(U,null,z),H.return=U,H;case D:return z=oc(z,U.mode,H),z.return=U,z;case W:var ne=z._init;return ee(U,ne(z._payload),H)}if(zr(z)||J(z))return z=Kr(z,U.mode,H,null),z.return=U,z;il(U,z)}return null}function X(U,z,H,ne){var me=z!==null?z.key:null;if(typeof H=="string"&&H!==""||typeof H=="number")return me!==null?null:E(U,z,""+H,ne);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case N:return H.key===me?M(U,z,H,ne):null;case D:return H.key===me?V(U,z,H,ne):null;case W:return me=H._init,X(U,z,me(H._payload),ne)}if(zr(H)||J(H))return me!==null?null:Y(U,z,H,ne,null);il(U,H)}return null}function ae(U,z,H,ne,me){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return U=U.get(H)||null,E(z,U,""+ne,me);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case N:return U=U.get(ne.key===null?H:ne.key)||null,M(z,U,ne,me);case D:return U=U.get(ne.key===null?H:ne.key)||null,V(z,U,ne,me);case W:var _e=ne._init;return ae(U,z,H,_e(ne._payload),me)}if(zr(ne)||J(ne))return U=U.get(H)||null,Y(z,U,ne,me,null);il(z,ne)}return null}function he(U,z,H,ne){for(var me=null,_e=null,xe=z,Se=z=0,st=null;xe!==null&&Se<H.length;Se++){xe.index>Se?(st=xe,xe=null):st=xe.sibling;var Re=X(U,xe,H[Se],ne);if(Re===null){xe===null&&(xe=st);break}r&&xe&&Re.alternate===null&&o(U,xe),z=y(Re,z,Se),_e===null?me=Re:_e.sibling=Re,_e=Re,xe=st}if(Se===H.length)return l(U,xe),He&&$r(U,Se),me;if(xe===null){for(;Se<H.length;Se++)xe=ee(U,H[Se],ne),xe!==null&&(z=y(xe,z,Se),_e===null?me=xe:_e.sibling=xe,_e=xe);return He&&$r(U,Se),me}for(xe=c(U,xe);Se<H.length;Se++)st=ae(xe,U,Se,H[Se],ne),st!==null&&(r&&st.alternate!==null&&xe.delete(st.key===null?Se:st.key),z=y(st,z,Se),_e===null?me=st:_e.sibling=st,_e=st);return r&&xe.forEach(function(vr){return o(U,vr)}),He&&$r(U,Se),me}function pe(U,z,H,ne){var me=J(H);if(typeof me!="function")throw Error(i(150));if(H=me.call(H),H==null)throw Error(i(151));for(var _e=me=null,xe=z,Se=z=0,st=null,Re=H.next();xe!==null&&!Re.done;Se++,Re=H.next()){xe.index>Se?(st=xe,xe=null):st=xe.sibling;var vr=X(U,xe,Re.value,ne);if(vr===null){xe===null&&(xe=st);break}r&&xe&&vr.alternate===null&&o(U,xe),z=y(vr,z,Se),_e===null?me=vr:_e.sibling=vr,_e=vr,xe=st}if(Re.done)return l(U,xe),He&&$r(U,Se),me;if(xe===null){for(;!Re.done;Se++,Re=H.next())Re=ee(U,Re.value,ne),Re!==null&&(z=y(Re,z,Se),_e===null?me=Re:_e.sibling=Re,_e=Re);return He&&$r(U,Se),me}for(xe=c(U,xe);!Re.done;Se++,Re=H.next())Re=ae(xe,U,Se,Re.value,ne),Re!==null&&(r&&Re.alternate!==null&&xe.delete(Re.key===null?Se:Re.key),z=y(Re,z,Se),_e===null?me=Re:_e.sibling=Re,_e=Re);return r&&xe.forEach(function(Av){return o(U,Av)}),He&&$r(U,Se),me}function Ye(U,z,H,ne){if(typeof H=="object"&&H!==null&&H.type===F&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case N:e:{for(var me=H.key,_e=z;_e!==null;){if(_e.key===me){if(me=H.type,me===F){if(_e.tag===7){l(U,_e.sibling),z=d(_e,H.props.children),z.return=U,U=z;break e}}else if(_e.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===W&&Xh(me)===_e.type){l(U,_e.sibling),z=d(_e,H.props),z.ref=Oo(U,_e,H),z.return=U,U=z;break e}l(U,_e);break}else o(U,_e);_e=_e.sibling}H.type===F?(z=Kr(H.props.children,U.mode,ne,H.key),z.return=U,U=z):(ne=Nl(H.type,H.key,H.props,null,U.mode,ne),ne.ref=Oo(U,z,H),ne.return=U,U=ne)}return w(U);case D:e:{for(_e=H.key;z!==null;){if(z.key===_e)if(z.tag===4&&z.stateNode.containerInfo===H.containerInfo&&z.stateNode.implementation===H.implementation){l(U,z.sibling),z=d(z,H.children||[]),z.return=U,U=z;break e}else{l(U,z);break}else o(U,z);z=z.sibling}z=oc(H,U.mode,ne),z.return=U,U=z}return w(U);case W:return _e=H._init,Ye(U,z,_e(H._payload),ne)}if(zr(H))return he(U,z,H,ne);if(J(H))return pe(U,z,H,ne);il(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"?(H=""+H,z!==null&&z.tag===6?(l(U,z.sibling),z=d(z,H),z.return=U,U=z):(l(U,z),z=ic(H,U.mode,ne),z.return=U,U=z),w(U)):l(U,z)}return Ye}var Ni=Yh(!0),Zh=Yh(!1),ol=lr(null),sl=null,Ti=null,pu=null;function gu(){pu=Ti=sl=null}function mu(r){var o=ol.current;$e(ol),r._currentValue=o}function yu(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 Mi(r,o){sl=r,pu=Ti=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(Nt=!0),r.firstContext=null)}function Qt(r){var o=r._currentValue;if(pu!==r)if(r={context:r,memoizedValue:o,next:null},Ti===null){if(sl===null)throw Error(i(308));Ti=r,sl.dependencies={lanes:0,firstContext:r}}else Ti=Ti.next=r;return o}var Ur=null;function vu(r){Ur===null?Ur=[r]:Ur.push(r)}function Jh(r,o,l,c){var d=o.interleaved;return d===null?(l.next=l,vu(o)):(l.next=d.next,d.next=l),o.interleaved=l,An(r,c)}function An(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 cr=!1;function _u(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ed(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 zn(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function fr(r,o,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var d=c.pending;return d===null?o.next=o:(o.next=d.next,d.next=o),c.pending=o,An(r,l)}return d=c.interleaved,d===null?(o.next=o,vu(c)):(o.next=d.next,d.next=o),c.interleaved=o,An(r,l)}function ll(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,ja(r,l)}}function td(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 w={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?d=y=w:y=y.next=w,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 al(r,o,l,c){var d=r.updateQueue;cr=!1;var y=d.firstBaseUpdate,w=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var M=E,V=M.next;M.next=null,w===null?y=V:w.next=V,w=M;var Y=r.alternate;Y!==null&&(Y=Y.updateQueue,E=Y.lastBaseUpdate,E!==w&&(E===null?Y.firstBaseUpdate=V:E.next=V,Y.lastBaseUpdate=M))}if(y!==null){var ee=d.baseState;w=0,Y=V=M=null,E=y;do{var X=E.lane,ae=E.eventTime;if((c&X)===X){Y!==null&&(Y=Y.next={eventTime:ae,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var he=r,pe=E;switch(X=o,ae=l,pe.tag){case 1:if(he=pe.payload,typeof he=="function"){ee=he.call(ae,ee,X);break e}ee=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=pe.payload,X=typeof he=="function"?he.call(ae,ee,X):he,X==null)break e;ee=G({},ee,X);break e;case 2:cr=!0}}E.callback!==null&&E.lane!==0&&(r.flags|=64,X=d.effects,X===null?d.effects=[E]:X.push(E))}else ae={eventTime:ae,lane:X,tag:E.tag,payload:E.payload,callback:E.callback,next:null},Y===null?(V=Y=ae,M=ee):Y=Y.next=ae,w|=X;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;X=E,E=X.next,X.next=null,d.lastBaseUpdate=X,d.shared.pending=null}}while(!0);if(Y===null&&(M=ee),d.baseState=M,d.firstBaseUpdate=V,d.lastBaseUpdate=Y,o=d.shared.interleaved,o!==null){d=o;do w|=d.lane,d=d.next;while(d!==o)}else y===null&&(d.shared.lanes=0);qr|=w,r.lanes=w,r.memoizedState=ee}}function nd(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 Ro={},vn=lr(Ro),jo=lr(Ro),Ao=lr(Ro);function Hr(r){if(r===Ro)throw Error(i(174));return r}function xu(r,o){switch(Le(Ao,o),Le(jo,r),Le(vn,Ro),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Je(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=Je(o,r)}$e(vn),Le(vn,o)}function Oi(){$e(vn),$e(jo),$e(Ao)}function rd(r){Hr(Ao.current);var o=Hr(vn.current),l=Je(o,r.type);o!==l&&(Le(jo,r),Le(vn,l))}function wu(r){jo.current===r&&($e(vn),$e(jo))}var Qe=lr(0);function ul(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 ku=[];function Su(){for(var r=0;r<ku.length;r++)ku[r]._workInProgressVersionPrimary=null;ku.length=0}var cl=P.ReactCurrentDispatcher,bu=P.ReactCurrentBatchConfig,Vr=0,We=null,tt=null,it=null,fl=!1,zo=!1,Do=0,nv=0;function ft(){throw Error(i(321))}function Cu(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!nn(r[l],o[l]))return!1;return!0}function Eu(r,o,l,c,d,y){if(Vr=y,We=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,cl.current=r===null||r.memoizedState===null?sv:lv,r=l(c,d),zo){y=0;do{if(zo=!1,Do=0,25<=y)throw Error(i(301));y+=1,it=tt=null,o.updateQueue=null,cl.current=av,r=l(c,d)}while(zo)}if(cl.current=pl,o=tt!==null&&tt.next!==null,Vr=0,it=tt=We=null,fl=!1,o)throw Error(i(300));return r}function Pu(){var r=Do!==0;return Do=0,r}function _n(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?We.memoizedState=it=r:it=it.next=r,it}function Wt(){if(tt===null){var r=We.alternate;r=r!==null?r.memoizedState:null}else r=tt.next;var o=it===null?We.memoizedState:it.next;if(o!==null)it=o,tt=r;else{if(r===null)throw Error(i(310));tt=r,r={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},it===null?We.memoizedState=it=r:it=it.next=r}return it}function Io(r,o){return typeof o=="function"?o(r):o}function Nu(r){var o=Wt(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=tt,d=c.baseQueue,y=l.pending;if(y!==null){if(d!==null){var w=d.next;d.next=y.next,y.next=w}c.baseQueue=d=y,l.pending=null}if(d!==null){y=d.next,c=c.baseState;var E=w=null,M=null,V=y;do{var Y=V.lane;if((Vr&Y)===Y)M!==null&&(M=M.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),c=V.hasEagerState?V.eagerState:r(c,V.action);else{var ee={lane:Y,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};M===null?(E=M=ee,w=c):M=M.next=ee,We.lanes|=Y,qr|=Y}V=V.next}while(V!==null&&V!==y);M===null?w=c:M.next=E,nn(c,o.memoizedState)||(Nt=!0),o.memoizedState=c,o.baseState=w,o.baseQueue=M,l.lastRenderedState=c}if(r=l.interleaved,r!==null){d=r;do y=d.lane,We.lanes|=y,qr|=y,d=d.next;while(d!==r)}else d===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function Tu(r){var o=Wt(),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 w=d=d.next;do y=r(y,w.action),w=w.next;while(w!==d);nn(y,o.memoizedState)||(Nt=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),l.lastRenderedState=y}return[y,c]}function id(){}function od(r,o){var l=We,c=Wt(),d=o(),y=!nn(c.memoizedState,d);if(y&&(c.memoizedState=d,Nt=!0),c=c.queue,Mu(ad.bind(null,l,c,r),[r]),c.getSnapshot!==o||y||it!==null&&it.memoizedState.tag&1){if(l.flags|=2048,Lo(9,ld.bind(null,l,c,d,o),void 0,null),ot===null)throw Error(i(349));(Vr&30)!==0||sd(l,o,d)}return d}function sd(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=We.updateQueue,o===null?(o={lastEffect:null,stores:null},We.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function ld(r,o,l,c){o.value=l,o.getSnapshot=c,ud(o)&&cd(r)}function ad(r,o,l){return l(function(){ud(o)&&cd(r)})}function ud(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!nn(r,l)}catch{return!0}}function cd(r){var o=An(r,1);o!==null&&an(o,r,1,-1)}function fd(r){var o=_n();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:r},o.queue=r,r=r.dispatch=ov.bind(null,We,r),[o.memoizedState,r]}function Lo(r,o,l,c){return r={tag:r,create:o,destroy:l,deps:c,next:null},o=We.updateQueue,o===null?(o={lastEffect:null,stores:null},We.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 hd(){return Wt().memoizedState}function hl(r,o,l,c){var d=_n();We.flags|=r,d.memoizedState=Lo(1|o,l,void 0,c===void 0?null:c)}function dl(r,o,l,c){var d=Wt();c=c===void 0?null:c;var y=void 0;if(tt!==null){var w=tt.memoizedState;if(y=w.destroy,c!==null&&Cu(c,w.deps)){d.memoizedState=Lo(o,l,y,c);return}}We.flags|=r,d.memoizedState=Lo(1|o,l,y,c)}function dd(r,o){return hl(8390656,8,r,o)}function Mu(r,o){return dl(2048,8,r,o)}function pd(r,o){return dl(4,2,r,o)}function gd(r,o){return dl(4,4,r,o)}function md(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 yd(r,o,l){return l=l!=null?l.concat([r]):null,dl(4,4,md.bind(null,o,r),l)}function Ou(){}function vd(r,o){var l=Wt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&Cu(o,c[1])?c[0]:(l.memoizedState=[r,o],r)}function _d(r,o){var l=Wt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&Cu(o,c[1])?c[0]:(r=r(),l.memoizedState=[r,o],r)}function xd(r,o,l){return(Vr&21)===0?(r.baseState&&(r.baseState=!1,Nt=!0),r.memoizedState=l):(nn(l,o)||(l=Xf(),We.lanes|=l,qr|=l,r.baseState=!0),o)}function rv(r,o){var l=ze;ze=l!==0&&4>l?l:4,r(!0);var c=bu.transition;bu.transition={};try{r(!1),o()}finally{ze=l,bu.transition=c}}function wd(){return Wt().memoizedState}function iv(r,o,l){var c=gr(r);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},kd(r))Sd(o,l);else if(l=Jh(r,o,l,c),l!==null){var d=xt();an(l,r,c,d),bd(l,o,c)}}function ov(r,o,l){var c=gr(r),d={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(kd(r))Sd(o,d);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var w=o.lastRenderedState,E=y(w,l);if(d.hasEagerState=!0,d.eagerState=E,nn(E,w)){var M=o.interleaved;M===null?(d.next=d,vu(o)):(d.next=M.next,M.next=d),o.interleaved=d;return}}catch{}finally{}l=Jh(r,o,d,c),l!==null&&(d=xt(),an(l,r,c,d),bd(l,o,c))}}function kd(r){var o=r.alternate;return r===We||o!==null&&o===We}function Sd(r,o){zo=fl=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function bd(r,o,l){if((l&4194240)!==0){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,ja(r,l)}}var pl={readContext:Qt,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},sv={readContext:Qt,useCallback:function(r,o){return _n().memoizedState=[r,o===void 0?null:o],r},useContext:Qt,useEffect:dd,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,hl(4194308,4,md.bind(null,o,r),l)},useLayoutEffect:function(r,o){return hl(4194308,4,r,o)},useInsertionEffect:function(r,o){return hl(4,2,r,o)},useMemo:function(r,o){var l=_n();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var c=_n();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=iv.bind(null,We,r),[c.memoizedState,r]},useRef:function(r){var o=_n();return r={current:r},o.memoizedState=r},useState:fd,useDebugValue:Ou,useDeferredValue:function(r){return _n().memoizedState=r},useTransition:function(){var r=fd(!1),o=r[0];return r=rv.bind(null,r[1]),_n().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var c=We,d=_n();if(He){if(l===void 0)throw Error(i(407));l=l()}else{if(l=o(),ot===null)throw Error(i(349));(Vr&30)!==0||sd(c,o,l)}d.memoizedState=l;var y={value:l,getSnapshot:o};return d.queue=y,dd(ad.bind(null,c,y,r),[r]),c.flags|=2048,Lo(9,ld.bind(null,c,y,l,o),void 0,null),l},useId:function(){var r=_n(),o=ot.identifierPrefix;if(He){var l=jn,c=Rn;l=(c&~(1<<32-tn(c)-1)).toString(32)+l,o=":"+o+"R"+l,l=Do++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=nv++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},lv={readContext:Qt,useCallback:vd,useContext:Qt,useEffect:Mu,useImperativeHandle:yd,useInsertionEffect:pd,useLayoutEffect:gd,useMemo:_d,useReducer:Nu,useRef:hd,useState:function(){return Nu(Io)},useDebugValue:Ou,useDeferredValue:function(r){var o=Wt();return xd(o,tt.memoizedState,r)},useTransition:function(){var r=Nu(Io)[0],o=Wt().memoizedState;return[r,o]},useMutableSource:id,useSyncExternalStore:od,useId:wd,unstable_isNewReconciler:!1},av={readContext:Qt,useCallback:vd,useContext:Qt,useEffect:Mu,useImperativeHandle:yd,useInsertionEffect:pd,useLayoutEffect:gd,useMemo:_d,useReducer:Tu,useRef:hd,useState:function(){return Tu(Io)},useDebugValue:Ou,useDeferredValue:function(r){var o=Wt();return tt===null?o.memoizedState=r:xd(o,tt.memoizedState,r)},useTransition:function(){var r=Tu(Io)[0],o=Wt().memoizedState;return[r,o]},useMutableSource:id,useSyncExternalStore:od,useId:wd,unstable_isNewReconciler:!1};function on(r,o){if(r&&r.defaultProps){o=G({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function Ru(r,o,l,c){o=r.memoizedState,l=l(c,o),l=l==null?o:G({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var gl={isMounted:function(r){return(r=r._reactInternals)?Dr(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var c=xt(),d=gr(r),y=zn(c,d);y.payload=o,l!=null&&(y.callback=l),o=fr(r,y,d),o!==null&&(an(o,r,d,c),ll(o,r,d))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var c=xt(),d=gr(r),y=zn(c,d);y.tag=1,y.payload=o,l!=null&&(y.callback=l),o=fr(r,y,d),o!==null&&(an(o,r,d,c),ll(o,r,d))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=xt(),c=gr(r),d=zn(l,c);d.tag=2,o!=null&&(d.callback=o),o=fr(r,d,c),o!==null&&(an(o,r,c,l),ll(o,r,c))}};function Cd(r,o,l,c,d,y,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,w):o.prototype&&o.prototype.isPureReactComponent?!bo(l,c)||!bo(d,y):!0}function Ed(r,o,l){var c=!1,d=ar,y=o.contextType;return typeof y=="object"&&y!==null?y=Qt(y):(d=Pt(o)?Lr:ct.current,c=o.contextTypes,y=(c=c!=null)?bi(r,d):ar),o=new o(l,y),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=gl,r.stateNode=o,o._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=d,r.__reactInternalMemoizedMaskedChildContext=y),o}function Pd(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&&gl.enqueueReplaceState(o,o.state,null)}function ju(r,o,l,c){var d=r.stateNode;d.props=l,d.state=r.memoizedState,d.refs={},_u(r);var y=o.contextType;typeof y=="object"&&y!==null?d.context=Qt(y):(y=Pt(o)?Lr:ct.current,d.context=bi(r,y)),d.state=r.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(Ru(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&&gl.enqueueReplaceState(d,d.state,null),al(r,l,d,c),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308)}function Ri(r,o){try{var l="",c=o;do l+=ke(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 Au(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function zu(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var uv=typeof WeakMap=="function"?WeakMap:Map;function Nd(r,o,l){l=zn(-1,l),l.tag=3,l.payload={element:null};var c=o.value;return l.callback=function(){kl||(kl=!0,Xu=c),zu(r,o)},l}function Td(r,o,l){l=zn(-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(){zu(r,o)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){zu(r,o),typeof c!="function"&&(dr===null?dr=new Set([this]):dr.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})}),l}function Md(r,o,l){var c=r.pingCache;if(c===null){c=r.pingCache=new uv;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=Sv.bind(null,r,o,l),o.then(r,r))}function Od(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 Rd(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=zn(-1,1),o.tag=2,fr(l,o,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=d,r)}var cv=P.ReactCurrentOwner,Nt=!1;function _t(r,o,l,c){o.child=r===null?Zh(o,null,l,c):Ni(o,r.child,l,c)}function jd(r,o,l,c,d){l=l.render;var y=o.ref;return Mi(o,d),c=Eu(r,o,l,c,y,d),l=Pu(),r!==null&&!Nt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,Dn(r,o,d)):(He&&l&&uu(o),o.flags|=1,_t(r,o,c,d),o.child)}function Ad(r,o,l,c,d){if(r===null){var y=l.type;return typeof y=="function"&&!rc(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=y,zd(r,o,y,c,d)):(r=Nl(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 w=y.memoizedProps;if(l=l.compare,l=l!==null?l:bo,l(w,c)&&r.ref===o.ref)return Dn(r,o,d)}return o.flags|=1,r=yr(y,c),r.ref=o.ref,r.return=o,o.child=r}function zd(r,o,l,c,d){if(r!==null){var y=r.memoizedProps;if(bo(y,c)&&r.ref===o.ref)if(Nt=!1,o.pendingProps=c=y,(r.lanes&d)!==0)(r.flags&131072)!==0&&(Nt=!0);else return o.lanes=r.lanes,Dn(r,o,d)}return Du(r,o,l,c,d)}function Dd(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},Le(Ai,$t),$t|=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,Le(Ai,$t),$t|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=y!==null?y.baseLanes:l,Le(Ai,$t),$t|=c}else y!==null?(c=y.baseLanes|l,o.memoizedState=null):c=l,Le(Ai,$t),$t|=c;return _t(r,o,d,l),o.child}function Id(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function Du(r,o,l,c,d){var y=Pt(l)?Lr:ct.current;return y=bi(o,y),Mi(o,d),l=Eu(r,o,l,c,y,d),c=Pu(),r!==null&&!Nt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,Dn(r,o,d)):(He&&c&&uu(o),o.flags|=1,_t(r,o,l,d),o.child)}function Ld(r,o,l,c,d){if(Pt(l)){var y=!0;Js(o)}else y=!1;if(Mi(o,d),o.stateNode===null)yl(r,o),Ed(o,l,c),ju(o,l,c,d),c=!0;else if(r===null){var w=o.stateNode,E=o.memoizedProps;w.props=E;var M=w.context,V=l.contextType;typeof V=="object"&&V!==null?V=Qt(V):(V=Pt(l)?Lr:ct.current,V=bi(o,V));var Y=l.getDerivedStateFromProps,ee=typeof Y=="function"||typeof w.getSnapshotBeforeUpdate=="function";ee||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(E!==c||M!==V)&&Pd(o,w,c,V),cr=!1;var X=o.memoizedState;w.state=X,al(o,c,w,d),M=o.memoizedState,E!==c||X!==M||Et.current||cr?(typeof Y=="function"&&(Ru(o,l,Y,c),M=o.memoizedState),(E=cr||Cd(o,l,E,c,X,M,V))?(ee||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(o.flags|=4194308)):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=M),w.props=c,w.state=M,w.context=V,c=E):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{w=o.stateNode,ed(r,o),E=o.memoizedProps,V=o.type===o.elementType?E:on(o.type,E),w.props=V,ee=o.pendingProps,X=w.context,M=l.contextType,typeof M=="object"&&M!==null?M=Qt(M):(M=Pt(l)?Lr:ct.current,M=bi(o,M));var ae=l.getDerivedStateFromProps;(Y=typeof ae=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(E!==ee||X!==M)&&Pd(o,w,c,M),cr=!1,X=o.memoizedState,w.state=X,al(o,c,w,d);var he=o.memoizedState;E!==ee||X!==he||Et.current||cr?(typeof ae=="function"&&(Ru(o,l,ae,c),he=o.memoizedState),(V=cr||Cd(o,l,V,c,X,he,M)||!1)?(Y||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(c,he,M),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(c,he,M)),typeof w.componentDidUpdate=="function"&&(o.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof w.componentDidUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=he),w.props=c,w.state=he,w.context=M,c=V):(typeof w.componentDidUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=1024),c=!1)}return Iu(r,o,l,c,y,d)}function Iu(r,o,l,c,d,y){Id(r,o);var w=(o.flags&128)!==0;if(!c&&!w)return d&&Vh(o,l,!1),Dn(r,o,y);c=o.stateNode,cv.current=o;var E=w&&typeof l.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,r!==null&&w?(o.child=Ni(o,r.child,null,y),o.child=Ni(o,null,E,y)):_t(r,o,E,y),o.memoizedState=c.state,d&&Vh(o,l,!0),o.child}function Fd(r){var o=r.stateNode;o.pendingContext?Uh(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Uh(r,o.context,!1),xu(r,o.containerInfo)}function $d(r,o,l,c,d){return Pi(),du(d),o.flags|=256,_t(r,o,l,c),o.child}var Lu={dehydrated:null,treeContext:null,retryLane:0};function Fu(r){return{baseLanes:r,cachePool:null,transitions:null}}function Ud(r,o,l){var c=o.pendingProps,d=Qe.current,y=!1,w=(o.flags&128)!==0,E;if((E=w)||(E=r!==null&&r.memoizedState===null?!1:(d&2)!==0),E?(y=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(d|=1),Le(Qe,d&1),r===null)return hu(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):(w=c.children,r=c.fallback,y?(c=o.mode,y=o.child,w={mode:"hidden",children:w},(c&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=w):y=Tl(w,c,0,null),r=Kr(r,c,l,null),y.return=o,r.return=o,y.sibling=r,o.child=y,o.child.memoizedState=Fu(l),o.memoizedState=Lu,r):$u(o,w));if(d=r.memoizedState,d!==null&&(E=d.dehydrated,E!==null))return fv(r,o,w,c,E,d,l);if(y){y=c.fallback,w=o.mode,d=r.child,E=d.sibling;var M={mode:"hidden",children:c.children};return(w&1)===0&&o.child!==d?(c=o.child,c.childLanes=0,c.pendingProps=M,o.deletions=null):(c=yr(d,M),c.subtreeFlags=d.subtreeFlags&14680064),E!==null?y=yr(E,y):(y=Kr(y,w,l,null),y.flags|=2),y.return=o,c.return=o,c.sibling=y,o.child=c,c=y,y=o.child,w=r.child.memoizedState,w=w===null?Fu(l):{baseLanes:w.baseLanes|l,cachePool:null,transitions:w.transitions},y.memoizedState=w,y.childLanes=r.childLanes&~l,o.memoizedState=Lu,c}return y=r.child,r=y.sibling,c=yr(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 $u(r,o){return o=Tl({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function ml(r,o,l,c){return c!==null&&du(c),Ni(o,r.child,null,l),r=$u(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function fv(r,o,l,c,d,y,w){if(l)return o.flags&256?(o.flags&=-257,c=Au(Error(i(422))),ml(r,o,w,c)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(y=c.fallback,d=o.mode,c=Tl({mode:"visible",children:c.children},d,0,null),y=Kr(y,d,w,null),y.flags|=2,c.return=o,y.return=o,c.sibling=y,o.child=c,(o.mode&1)!==0&&Ni(o,r.child,null,w),o.child.memoizedState=Fu(w),o.memoizedState=Lu,y);if((o.mode&1)===0)return ml(r,o,w,null);if(d.data==="$!"){if(c=d.nextSibling&&d.nextSibling.dataset,c)var E=c.dgst;return c=E,y=Error(i(419)),c=Au(y,c,void 0),ml(r,o,w,c)}if(E=(w&r.childLanes)!==0,Nt||E){if(c=ot,c!==null){switch(w&-w){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|w))!==0?0:d,d!==0&&d!==y.retryLane&&(y.retryLane=d,An(r,d),an(c,r,d,-1))}return nc(),c=Au(Error(i(421))),ml(r,o,w,c)}return d.data==="$?"?(o.flags|=128,o.child=r.child,o=bv.bind(null,r),d._reactRetry=o,null):(r=y.treeContext,Ft=sr(d.nextSibling),Lt=o,He=!0,rn=null,r!==null&&(qt[Bt++]=Rn,qt[Bt++]=jn,qt[Bt++]=Fr,Rn=r.id,jn=r.overflow,Fr=o),o=$u(o,c.children),o.flags|=4096,o)}function Hd(r,o,l){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o),yu(r.return,o,l)}function Uu(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 Vd(r,o,l){var c=o.pendingProps,d=c.revealOrder,y=c.tail;if(_t(r,o,c.children,l),c=Qe.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&&Hd(r,l,o);else if(r.tag===19)Hd(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(Le(Qe,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&&ul(r)===null&&(d=l),l=l.sibling;l=d,l===null?(d=o.child,o.child=null):(d=l.sibling,l.sibling=null),Uu(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&&ul(r)===null){o.child=d;break}r=d.sibling,d.sibling=l,l=d,d=r}Uu(o,!0,l,null,y);break;case"together":Uu(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function yl(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function Dn(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),qr|=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=yr(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=yr(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function hv(r,o,l){switch(o.tag){case 3:Fd(o),Pi();break;case 5:rd(o);break;case 1:Pt(o.type)&&Js(o);break;case 4:xu(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,d=o.memoizedProps.value;Le(ol,c._currentValue),c._currentValue=d;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(Le(Qe,Qe.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?Ud(r,o,l):(Le(Qe,Qe.current&1),r=Dn(r,o,l),r!==null?r.sibling:null);Le(Qe,Qe.current&1);break;case 19:if(c=(l&o.childLanes)!==0,(r.flags&128)!==0){if(c)return Vd(r,o,l);o.flags|=128}if(d=o.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Le(Qe,Qe.current),c)break;return null;case 22:case 23:return o.lanes=0,Dd(r,o,l)}return Dn(r,o,l)}var qd,Hu,Bd,Qd;qd=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}},Hu=function(){},Bd=function(r,o,l,c){var d=r.memoizedProps;if(d!==c){r=o.stateNode,Hr(vn.current);var y=null;switch(l){case"input":d=io(r,d),c=io(r,c),y=[];break;case"select":d=G({},d,{value:void 0}),c=G({},c,{value:void 0}),y=[];break;case"textarea":d=hi(r,d),c=hi(r,c),y=[];break;default:typeof d.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Xs)}ka(l,c);var w;l=null;for(V in d)if(!c.hasOwnProperty(V)&&d.hasOwnProperty(V)&&d[V]!=null)if(V==="style"){var E=d[V];for(w in E)E.hasOwnProperty(w)&&(l||(l={}),l[w]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(a.hasOwnProperty(V)?y||(y=[]):(y=y||[]).push(V,null));for(V in c){var M=c[V];if(E=d!=null?d[V]:void 0,c.hasOwnProperty(V)&&M!==E&&(M!=null||E!=null))if(V==="style")if(E){for(w in E)!E.hasOwnProperty(w)||M&&M.hasOwnProperty(w)||(l||(l={}),l[w]="");for(w in M)M.hasOwnProperty(w)&&E[w]!==M[w]&&(l||(l={}),l[w]=M[w])}else l||(y||(y=[]),y.push(V,l)),l=M;else V==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,E=E?E.__html:void 0,M!=null&&E!==M&&(y=y||[]).push(V,M)):V==="children"?typeof M!="string"&&typeof M!="number"||(y=y||[]).push(V,""+M):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(a.hasOwnProperty(V)?(M!=null&&V==="onScroll"&&Fe("scroll",r),y||E===M||(y=[])):(y=y||[]).push(V,M))}l&&(y=y||[]).push("style",l);var V=y;(o.updateQueue=V)&&(o.flags|=4)}},Qd=function(r,o,l,c){l!==c&&(o.flags|=4)};function Fo(r,o){if(!He)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 ht(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 dv(r,o,l){var c=o.pendingProps;switch(cu(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(o),null;case 1:return Pt(o.type)&&Zs(),ht(o),null;case 3:return c=o.stateNode,Oi(),$e(Et),$e(ct),Su(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(rl(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,rn!==null&&(Ju(rn),rn=null))),Hu(r,o),ht(o),null;case 5:wu(o);var d=Hr(Ao.current);if(l=o.type,r!==null&&o.stateNode!=null)Bd(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 ht(o),null}if(r=Hr(vn.current),rl(o)){c=o.stateNode,l=o.type;var y=o.memoizedProps;switch(c[yn]=o,c[To]=y,r=(o.mode&1)!==0,l){case"dialog":Fe("cancel",c),Fe("close",c);break;case"iframe":case"object":case"embed":Fe("load",c);break;case"video":case"audio":for(d=0;d<Eo.length;d++)Fe(Eo[d],c);break;case"source":Fe("error",c);break;case"img":case"image":case"link":Fe("error",c),Fe("load",c);break;case"details":Fe("toggle",c);break;case"input":Es(c,y),Fe("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!y.multiple},Fe("invalid",c);break;case"textarea":lo(c,y),Fe("invalid",c)}ka(l,y),d=null;for(var w in y)if(y.hasOwnProperty(w)){var E=y[w];w==="children"?typeof E=="string"?c.textContent!==E&&(y.suppressHydrationWarning!==!0&&Gs(c.textContent,E,r),d=["children",E]):typeof E=="number"&&c.textContent!==""+E&&(y.suppressHydrationWarning!==!0&&Gs(c.textContent,E,r),d=["children",""+E]):a.hasOwnProperty(w)&&E!=null&&w==="onScroll"&&Fe("scroll",c)}switch(l){case"input":Ar(c),Ns(c,y,!0);break;case"textarea":Ar(c),we(c);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(c.onclick=Xs)}c=d,o.updateQueue=c,c!==null&&(o.flags|=4)}else{w=d.nodeType===9?d:d.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Me(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=w.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=w.createElement(l,{is:c.is}):(r=w.createElement(l),l==="select"&&(w=r,c.multiple?w.multiple=!0:c.size&&(w.size=c.size))):r=w.createElementNS(r,l),r[yn]=o,r[To]=c,qd(r,o,!1,!1),o.stateNode=r;e:{switch(w=Sa(l,c),l){case"dialog":Fe("cancel",r),Fe("close",r),d=c;break;case"iframe":case"object":case"embed":Fe("load",r),d=c;break;case"video":case"audio":for(d=0;d<Eo.length;d++)Fe(Eo[d],r);d=c;break;case"source":Fe("error",r),d=c;break;case"img":case"image":case"link":Fe("error",r),Fe("load",r),d=c;break;case"details":Fe("toggle",r),d=c;break;case"input":Es(r,c),d=io(r,c),Fe("invalid",r);break;case"option":d=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},d=G({},c,{value:void 0}),Fe("invalid",r);break;case"textarea":lo(r,c),d=hi(r,c),Fe("invalid",r);break;default:d=c}ka(l,d),E=d;for(y in E)if(E.hasOwnProperty(y)){var M=E[y];y==="style"?zf(r,M):y==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Jn(r,M)):y==="children"?typeof M=="string"?(l!=="textarea"||M!=="")&&vt(r,M):typeof M=="number"&&vt(r,""+M):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(a.hasOwnProperty(y)?M!=null&&y==="onScroll"&&Fe("scroll",r):M!=null&&j(r,y,M,w))}switch(l){case"input":Ar(r),Ns(r,c,!1);break;case"textarea":Ar(r),we(r);break;case"option":c.value!=null&&r.setAttribute("value",""+Ce(c.value));break;case"select":r.multiple=!!c.multiple,y=c.value,y!=null?Zn(r,!!c.multiple,y,!1):c.defaultValue!=null&&Zn(r,!!c.multiple,c.defaultValue,!0);break;default:typeof d.onClick=="function"&&(r.onclick=Xs)}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 ht(o),null;case 6:if(r&&o.stateNode!=null)Qd(r,o,r.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(i(166));if(l=Hr(Ao.current),Hr(vn.current),rl(o)){if(c=o.stateNode,l=o.memoizedProps,c[yn]=o,(y=c.nodeValue!==l)&&(r=Lt,r!==null))switch(r.tag){case 3:Gs(c.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Gs(c.nodeValue,l,(r.mode&1)!==0)}y&&(o.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[yn]=o,o.stateNode=c}return ht(o),null;case 13:if($e(Qe),c=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(He&&Ft!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Gh(),Pi(),o.flags|=98560,y=!1;else if(y=rl(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[yn]=o}else Pi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ht(o),y=!1}else rn!==null&&(Ju(rn),rn=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||(Qe.current&1)!==0?nt===0&&(nt=3):nc())),o.updateQueue!==null&&(o.flags|=4),ht(o),null);case 4:return Oi(),Hu(r,o),r===null&&Po(o.stateNode.containerInfo),ht(o),null;case 10:return mu(o.type._context),ht(o),null;case 17:return Pt(o.type)&&Zs(),ht(o),null;case 19:if($e(Qe),y=o.memoizedState,y===null)return ht(o),null;if(c=(o.flags&128)!==0,w=y.rendering,w===null)if(c)Fo(y,!1);else{if(nt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(w=ul(r),w!==null){for(o.flags|=128,Fo(y,!1),c=w.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,w=y.alternate,w===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=w.childLanes,y.lanes=w.lanes,y.child=w.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=w.memoizedProps,y.memoizedState=w.memoizedState,y.updateQueue=w.updateQueue,y.type=w.type,r=w.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Le(Qe,Qe.current&1|2),o.child}r=r.sibling}y.tail!==null&&Xe()>zi&&(o.flags|=128,c=!0,Fo(y,!1),o.lanes=4194304)}else{if(!c)if(r=ul(w),r!==null){if(o.flags|=128,c=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Fo(y,!0),y.tail===null&&y.tailMode==="hidden"&&!w.alternate&&!He)return ht(o),null}else 2*Xe()-y.renderingStartTime>zi&&l!==1073741824&&(o.flags|=128,c=!0,Fo(y,!1),o.lanes=4194304);y.isBackwards?(w.sibling=o.child,o.child=w):(l=y.last,l!==null?l.sibling=w:o.child=w,y.last=w)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=Xe(),o.sibling=null,l=Qe.current,Le(Qe,c?l&1|2:l&1),o):(ht(o),null);case 22:case 23:return tc(),c=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?($t&1073741824)!==0&&(ht(o),o.subtreeFlags&6&&(o.flags|=8192)):ht(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function pv(r,o){switch(cu(o),o.tag){case 1:return Pt(o.type)&&Zs(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Oi(),$e(Et),$e(ct),Su(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return wu(o),null;case 13:if($e(Qe),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Pi()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return $e(Qe),null;case 4:return Oi(),null;case 10:return mu(o.type._context),null;case 22:case 23:return tc(),null;case 24:return null;default:return null}}var vl=!1,dt=!1,gv=typeof WeakSet=="function"?WeakSet:Set,fe=null;function ji(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){Ke(r,o,c)}else l.current=null}function Vu(r,o,l){try{l()}catch(c){Ke(r,o,c)}}var Wd=!1;function mv(r,o){if(tu=Ls,r=Ch(),Wa(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 w=0,E=-1,M=-1,V=0,Y=0,ee=r,X=null;t:for(;;){for(var ae;ee!==l||d!==0&&ee.nodeType!==3||(E=w+d),ee!==y||c!==0&&ee.nodeType!==3||(M=w+c),ee.nodeType===3&&(w+=ee.nodeValue.length),(ae=ee.firstChild)!==null;)X=ee,ee=ae;for(;;){if(ee===r)break t;if(X===l&&++V===d&&(E=w),X===y&&++Y===c&&(M=w),(ae=ee.nextSibling)!==null)break;ee=X,X=ee.parentNode}ee=ae}l=E===-1||M===-1?null:{start:E,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(nu={focusedElem:r,selectionRange:l},Ls=!1,fe=o;fe!==null;)if(o=fe,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,fe=r;else for(;fe!==null;){o=fe;try{var he=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var pe=he.memoizedProps,Ye=he.memoizedState,U=o.stateNode,z=U.getSnapshotBeforeUpdate(o.elementType===o.type?pe:on(o.type,pe),Ye);U.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var H=o.stateNode.containerInfo;H.nodeType===1?H.textContent="":H.nodeType===9&&H.documentElement&&H.removeChild(H.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ne){Ke(o,o.return,ne)}if(r=o.sibling,r!==null){r.return=o.return,fe=r;break}fe=o.return}return he=Wd,Wd=!1,he}function $o(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&&Vu(o,l,y)}d=d.next}while(d!==c)}}function _l(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 qu(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 Kd(r){var o=r.alternate;o!==null&&(r.alternate=null,Kd(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[yn],delete o[To],delete o[su],delete o[Zy],delete o[Jy])),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 Gd(r){return r.tag===5||r.tag===3||r.tag===4}function Xd(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Gd(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 Bu(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=Xs));else if(c!==4&&(r=r.child,r!==null))for(Bu(r,o,l),r=r.sibling;r!==null;)Bu(r,o,l),r=r.sibling}function Qu(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(Qu(r,o,l),r=r.sibling;r!==null;)Qu(r,o,l),r=r.sibling}var lt=null,sn=!1;function hr(r,o,l){for(l=l.child;l!==null;)Yd(r,o,l),l=l.sibling}function Yd(r,o,l){if(mn&&typeof mn.onCommitFiberUnmount=="function")try{mn.onCommitFiberUnmount(Rs,l)}catch{}switch(l.tag){case 5:dt||ji(l,o);case 6:var c=lt,d=sn;lt=null,hr(r,o,l),lt=c,sn=d,lt!==null&&(sn?(r=lt,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):lt.removeChild(l.stateNode));break;case 18:lt!==null&&(sn?(r=lt,l=l.stateNode,r.nodeType===8?ou(r.parentNode,l):r.nodeType===1&&ou(r,l),vo(r)):ou(lt,l.stateNode));break;case 4:c=lt,d=sn,lt=l.stateNode.containerInfo,sn=!0,hr(r,o,l),lt=c,sn=d;break;case 0:case 11:case 14:case 15:if(!dt&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var y=d,w=y.destroy;y=y.tag,w!==void 0&&((y&2)!==0||(y&4)!==0)&&Vu(l,o,w),d=d.next}while(d!==c)}hr(r,o,l);break;case 1:if(!dt&&(ji(l,o),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(E){Ke(l,o,E)}hr(r,o,l);break;case 21:hr(r,o,l);break;case 22:l.mode&1?(dt=(c=dt)||l.memoizedState!==null,hr(r,o,l),dt=c):hr(r,o,l);break;default:hr(r,o,l)}}function Zd(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new gv),o.forEach(function(c){var d=Cv.bind(null,r,c);l.has(c)||(l.add(c),c.then(d,d))})}}function ln(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,w=o,E=w;e:for(;E!==null;){switch(E.tag){case 5:lt=E.stateNode,sn=!1;break e;case 3:lt=E.stateNode.containerInfo,sn=!0;break e;case 4:lt=E.stateNode.containerInfo,sn=!0;break e}E=E.return}if(lt===null)throw Error(i(160));Yd(y,w,d),lt=null,sn=!1;var M=d.alternate;M!==null&&(M.return=null),d.return=null}catch(V){Ke(d,o,V)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Jd(o,r),o=o.sibling}function Jd(r,o){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(ln(o,r),xn(r),c&4){try{$o(3,r,r.return),_l(3,r)}catch(pe){Ke(r,r.return,pe)}try{$o(5,r,r.return)}catch(pe){Ke(r,r.return,pe)}}break;case 1:ln(o,r),xn(r),c&512&&l!==null&&ji(l,l.return);break;case 5:if(ln(o,r),xn(r),c&512&&l!==null&&ji(l,l.return),r.flags&32){var d=r.stateNode;try{vt(d,"")}catch(pe){Ke(r,r.return,pe)}}if(c&4&&(d=r.stateNode,d!=null)){var y=r.memoizedProps,w=l!==null?l.memoizedProps:y,E=r.type,M=r.updateQueue;if(r.updateQueue=null,M!==null)try{E==="input"&&y.type==="radio"&&y.name!=null&&Ps(d,y),Sa(E,w);var V=Sa(E,y);for(w=0;w<M.length;w+=2){var Y=M[w],ee=M[w+1];Y==="style"?zf(d,ee):Y==="dangerouslySetInnerHTML"?Jn(d,ee):Y==="children"?vt(d,ee):j(d,Y,ee,V)}switch(E){case"input":oo(d,y);break;case"textarea":se(d,y);break;case"select":var X=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!y.multiple;var ae=y.value;ae!=null?Zn(d,!!y.multiple,ae,!1):X!==!!y.multiple&&(y.defaultValue!=null?Zn(d,!!y.multiple,y.defaultValue,!0):Zn(d,!!y.multiple,y.multiple?[]:"",!1))}d[To]=y}catch(pe){Ke(r,r.return,pe)}}break;case 6:if(ln(o,r),xn(r),c&4){if(r.stateNode===null)throw Error(i(162));d=r.stateNode,y=r.memoizedProps;try{d.nodeValue=y}catch(pe){Ke(r,r.return,pe)}}break;case 3:if(ln(o,r),xn(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{vo(o.containerInfo)}catch(pe){Ke(r,r.return,pe)}break;case 4:ln(o,r),xn(r);break;case 13:ln(o,r),xn(r),d=r.child,d.flags&8192&&(y=d.memoizedState!==null,d.stateNode.isHidden=y,!y||d.alternate!==null&&d.alternate.memoizedState!==null||(Gu=Xe())),c&4&&Zd(r);break;case 22:if(Y=l!==null&&l.memoizedState!==null,r.mode&1?(dt=(V=dt)||Y,ln(o,r),dt=V):ln(o,r),xn(r),c&8192){if(V=r.memoizedState!==null,(r.stateNode.isHidden=V)&&!Y&&(r.mode&1)!==0)for(fe=r,Y=r.child;Y!==null;){for(ee=fe=Y;fe!==null;){switch(X=fe,ae=X.child,X.tag){case 0:case 11:case 14:case 15:$o(4,X,X.return);break;case 1:ji(X,X.return);var he=X.stateNode;if(typeof he.componentWillUnmount=="function"){c=X,l=X.return;try{o=c,he.props=o.memoizedProps,he.state=o.memoizedState,he.componentWillUnmount()}catch(pe){Ke(c,l,pe)}}break;case 5:ji(X,X.return);break;case 22:if(X.memoizedState!==null){np(ee);continue}}ae!==null?(ae.return=X,fe=ae):np(ee)}Y=Y.sibling}e:for(Y=null,ee=r;;){if(ee.tag===5){if(Y===null){Y=ee;try{d=ee.stateNode,V?(y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(E=ee.stateNode,M=ee.memoizedProps.style,w=M!=null&&M.hasOwnProperty("display")?M.display:null,E.style.display=Vt("display",w))}catch(pe){Ke(r,r.return,pe)}}}else if(ee.tag===6){if(Y===null)try{ee.stateNode.nodeValue=V?"":ee.memoizedProps}catch(pe){Ke(r,r.return,pe)}}else if((ee.tag!==22&&ee.tag!==23||ee.memoizedState===null||ee===r)&&ee.child!==null){ee.child.return=ee,ee=ee.child;continue}if(ee===r)break e;for(;ee.sibling===null;){if(ee.return===null||ee.return===r)break e;Y===ee&&(Y=null),ee=ee.return}Y===ee&&(Y=null),ee.sibling.return=ee.return,ee=ee.sibling}}break;case 19:ln(o,r),xn(r),c&4&&Zd(r);break;case 21:break;default:ln(o,r),xn(r)}}function xn(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(Gd(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&&(vt(d,""),c.flags&=-33);var y=Xd(r);Qu(r,y,d);break;case 3:case 4:var w=c.stateNode.containerInfo,E=Xd(r);Bu(r,E,w);break;default:throw Error(i(161))}}catch(M){Ke(r,r.return,M)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function yv(r,o,l){fe=r,ep(r)}function ep(r,o,l){for(var c=(r.mode&1)!==0;fe!==null;){var d=fe,y=d.child;if(d.tag===22&&c){var w=d.memoizedState!==null||vl;if(!w){var E=d.alternate,M=E!==null&&E.memoizedState!==null||dt;E=vl;var V=dt;if(vl=w,(dt=M)&&!V)for(fe=d;fe!==null;)w=fe,M=w.child,w.tag===22&&w.memoizedState!==null?rp(d):M!==null?(M.return=w,fe=M):rp(d);for(;y!==null;)fe=y,ep(y),y=y.sibling;fe=d,vl=E,dt=V}tp(r)}else(d.subtreeFlags&8772)!==0&&y!==null?(y.return=d,fe=y):tp(r)}}function tp(r){for(;fe!==null;){var o=fe;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:dt||_l(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!dt)if(l===null)c.componentDidMount();else{var d=o.elementType===o.type?l.memoizedProps:on(o.type,l.memoizedProps);c.componentDidUpdate(d,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var y=o.updateQueue;y!==null&&nd(o,y,c);break;case 3:var w=o.updateQueue;if(w!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}nd(o,w,l)}break;case 5:var E=o.stateNode;if(l===null&&o.flags&4){l=E;var M=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&l.focus();break;case"img":M.src&&(l.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var V=o.alternate;if(V!==null){var Y=V.memoizedState;if(Y!==null){var ee=Y.dehydrated;ee!==null&&vo(ee)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}dt||o.flags&512&&qu(o)}catch(X){Ke(o,o.return,X)}}if(o===r){fe=null;break}if(l=o.sibling,l!==null){l.return=o.return,fe=l;break}fe=o.return}}function np(r){for(;fe!==null;){var o=fe;if(o===r){fe=null;break}var l=o.sibling;if(l!==null){l.return=o.return,fe=l;break}fe=o.return}}function rp(r){for(;fe!==null;){var o=fe;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{_l(4,o)}catch(M){Ke(o,l,M)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var d=o.return;try{c.componentDidMount()}catch(M){Ke(o,d,M)}}var y=o.return;try{qu(o)}catch(M){Ke(o,y,M)}break;case 5:var w=o.return;try{qu(o)}catch(M){Ke(o,w,M)}}}catch(M){Ke(o,o.return,M)}if(o===r){fe=null;break}var E=o.sibling;if(E!==null){E.return=o.return,fe=E;break}fe=o.return}}var vv=Math.ceil,xl=P.ReactCurrentDispatcher,Wu=P.ReactCurrentOwner,Kt=P.ReactCurrentBatchConfig,Oe=0,ot=null,Ze=null,at=0,$t=0,Ai=lr(0),nt=0,Uo=null,qr=0,wl=0,Ku=0,Ho=null,Tt=null,Gu=0,zi=1/0,In=null,kl=!1,Xu=null,dr=null,Sl=!1,pr=null,bl=0,Vo=0,Yu=null,Cl=-1,El=0;function xt(){return(Oe&6)!==0?Xe():Cl!==-1?Cl:Cl=Xe()}function gr(r){return(r.mode&1)===0?1:(Oe&2)!==0&&at!==0?at&-at:tv.transition!==null?(El===0&&(El=Xf()),El):(r=ze,r!==0||(r=window.event,r=r===void 0?16:oh(r.type)),r)}function an(r,o,l,c){if(50<Vo)throw Vo=0,Yu=null,Error(i(185));ho(r,l,c),((Oe&2)===0||r!==ot)&&(r===ot&&((Oe&2)===0&&(wl|=l),nt===4&&mr(r,at)),Mt(r,c),l===1&&Oe===0&&(o.mode&1)===0&&(zi=Xe()+500,el&&ur()))}function Mt(r,o){var l=r.callbackNode;ty(r,o);var c=zs(r,r===ot?at:0);if(c===0)l!==null&&Wf(l),r.callbackNode=null,r.callbackPriority=0;else if(o=c&-c,r.callbackPriority!==o){if(l!=null&&Wf(l),o===1)r.tag===0?ev(op.bind(null,r)):qh(op.bind(null,r)),Xy(function(){(Oe&6)===0&&ur()}),l=null;else{switch(Yf(c)){case 1:l=Ma;break;case 4:l=Kf;break;case 16:l=Os;break;case 536870912:l=Gf;break;default:l=Os}l=dp(l,ip.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function ip(r,o){if(Cl=-1,El=0,(Oe&6)!==0)throw Error(i(327));var l=r.callbackNode;if(Di()&&r.callbackNode!==l)return null;var c=zs(r,r===ot?at:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||o)o=Pl(r,c);else{o=c;var d=Oe;Oe|=2;var y=lp();(ot!==r||at!==o)&&(In=null,zi=Xe()+500,Qr(r,o));do try{wv();break}catch(E){sp(r,E)}while(!0);gu(),xl.current=y,Oe=d,Ze!==null?o=0:(ot=null,at=0,o=nt)}if(o!==0){if(o===2&&(d=Oa(r),d!==0&&(c=d,o=Zu(r,d))),o===1)throw l=Uo,Qr(r,0),mr(r,c),Mt(r,Xe()),l;if(o===6)mr(r,c);else{if(d=r.current.alternate,(c&30)===0&&!_v(d)&&(o=Pl(r,c),o===2&&(y=Oa(r),y!==0&&(c=y,o=Zu(r,y))),o===1))throw l=Uo,Qr(r,0),mr(r,c),Mt(r,Xe()),l;switch(r.finishedWork=d,r.finishedLanes=c,o){case 0:case 1:throw Error(i(345));case 2:Wr(r,Tt,In);break;case 3:if(mr(r,c),(c&130023424)===c&&(o=Gu+500-Xe(),10<o)){if(zs(r,0)!==0)break;if(d=r.suspendedLanes,(d&c)!==c){xt(),r.pingedLanes|=r.suspendedLanes&d;break}r.timeoutHandle=iu(Wr.bind(null,r,Tt,In),o);break}Wr(r,Tt,In);break;case 4:if(mr(r,c),(c&4194240)===c)break;for(o=r.eventTimes,d=-1;0<c;){var w=31-tn(c);y=1<<w,w=o[w],w>d&&(d=w),c&=~y}if(c=d,c=Xe()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*vv(c/1960))-c,10<c){r.timeoutHandle=iu(Wr.bind(null,r,Tt,In),c);break}Wr(r,Tt,In);break;case 5:Wr(r,Tt,In);break;default:throw Error(i(329))}}}return Mt(r,Xe()),r.callbackNode===l?ip.bind(null,r):null}function Zu(r,o){var l=Ho;return r.current.memoizedState.isDehydrated&&(Qr(r,o).flags|=256),r=Pl(r,o),r!==2&&(o=Tt,Tt=l,o!==null&&Ju(o)),r}function Ju(r){Tt===null?Tt=r:Tt.push.apply(Tt,r)}function _v(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(!nn(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 mr(r,o){for(o&=~Ku,o&=~wl,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-tn(o),c=1<<l;r[l]=-1,o&=~c}}function op(r){if((Oe&6)!==0)throw Error(i(327));Di();var o=zs(r,0);if((o&1)===0)return Mt(r,Xe()),null;var l=Pl(r,o);if(r.tag!==0&&l===2){var c=Oa(r);c!==0&&(o=c,l=Zu(r,c))}if(l===1)throw l=Uo,Qr(r,0),mr(r,o),Mt(r,Xe()),l;if(l===6)throw Error(i(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Wr(r,Tt,In),Mt(r,Xe()),null}function ec(r,o){var l=Oe;Oe|=1;try{return r(o)}finally{Oe=l,Oe===0&&(zi=Xe()+500,el&&ur())}}function Br(r){pr!==null&&pr.tag===0&&(Oe&6)===0&&Di();var o=Oe;Oe|=1;var l=Kt.transition,c=ze;try{if(Kt.transition=null,ze=1,r)return r()}finally{ze=c,Kt.transition=l,Oe=o,(Oe&6)===0&&ur()}}function tc(){$t=Ai.current,$e(Ai)}function Qr(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,Gy(l)),Ze!==null)for(l=Ze.return;l!==null;){var c=l;switch(cu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Zs();break;case 3:Oi(),$e(Et),$e(ct),Su();break;case 5:wu(c);break;case 4:Oi();break;case 13:$e(Qe);break;case 19:$e(Qe);break;case 10:mu(c.type._context);break;case 22:case 23:tc()}l=l.return}if(ot=r,Ze=r=yr(r.current,null),at=$t=o,nt=0,Uo=null,Ku=wl=qr=0,Tt=Ho=null,Ur!==null){for(o=0;o<Ur.length;o++)if(l=Ur[o],c=l.interleaved,c!==null){l.interleaved=null;var d=c.next,y=l.pending;if(y!==null){var w=y.next;y.next=d,c.next=w}l.pending=c}Ur=null}return r}function sp(r,o){do{var l=Ze;try{if(gu(),cl.current=pl,fl){for(var c=We.memoizedState;c!==null;){var d=c.queue;d!==null&&(d.pending=null),c=c.next}fl=!1}if(Vr=0,it=tt=We=null,zo=!1,Do=0,Wu.current=null,l===null||l.return===null){nt=1,Uo=o,Ze=null;break}e:{var y=r,w=l.return,E=l,M=o;if(o=at,E.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var V=M,Y=E,ee=Y.tag;if((Y.mode&1)===0&&(ee===0||ee===11||ee===15)){var X=Y.alternate;X?(Y.updateQueue=X.updateQueue,Y.memoizedState=X.memoizedState,Y.lanes=X.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var ae=Od(w);if(ae!==null){ae.flags&=-257,Rd(ae,w,E,y,o),ae.mode&1&&Md(y,V,o),o=ae,M=V;var he=o.updateQueue;if(he===null){var pe=new Set;pe.add(M),o.updateQueue=pe}else he.add(M);break e}else{if((o&1)===0){Md(y,V,o),nc();break e}M=Error(i(426))}}else if(He&&E.mode&1){var Ye=Od(w);if(Ye!==null){(Ye.flags&65536)===0&&(Ye.flags|=256),Rd(Ye,w,E,y,o),du(Ri(M,E));break e}}y=M=Ri(M,E),nt!==4&&(nt=2),Ho===null?Ho=[y]:Ho.push(y),y=w;do{switch(y.tag){case 3:y.flags|=65536,o&=-o,y.lanes|=o;var U=Nd(y,M,o);td(y,U);break e;case 1:E=M;var z=y.type,H=y.stateNode;if((y.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(dr===null||!dr.has(H)))){y.flags|=65536,o&=-o,y.lanes|=o;var ne=Td(y,E,o);td(y,ne);break e}}y=y.return}while(y!==null)}up(l)}catch(me){o=me,Ze===l&&l!==null&&(Ze=l=l.return);continue}break}while(!0)}function lp(){var r=xl.current;return xl.current=pl,r===null?pl:r}function nc(){(nt===0||nt===3||nt===2)&&(nt=4),ot===null||(qr&268435455)===0&&(wl&268435455)===0||mr(ot,at)}function Pl(r,o){var l=Oe;Oe|=2;var c=lp();(ot!==r||at!==o)&&(In=null,Qr(r,o));do try{xv();break}catch(d){sp(r,d)}while(!0);if(gu(),Oe=l,xl.current=c,Ze!==null)throw Error(i(261));return ot=null,at=0,nt}function xv(){for(;Ze!==null;)ap(Ze)}function wv(){for(;Ze!==null&&!Qm();)ap(Ze)}function ap(r){var o=hp(r.alternate,r,$t);r.memoizedProps=r.pendingProps,o===null?up(r):Ze=o,Wu.current=null}function up(r){var o=r;do{var l=o.alternate;if(r=o.return,(o.flags&32768)===0){if(l=dv(l,o,$t),l!==null){Ze=l;return}}else{if(l=pv(l,o),l!==null){l.flags&=32767,Ze=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{nt=6,Ze=null;return}}if(o=o.sibling,o!==null){Ze=o;return}Ze=o=r}while(o!==null);nt===0&&(nt=5)}function Wr(r,o,l){var c=ze,d=Kt.transition;try{Kt.transition=null,ze=1,kv(r,o,l,c)}finally{Kt.transition=d,ze=c}return null}function kv(r,o,l,c){do Di();while(pr!==null);if((Oe&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(ny(r,y),r===ot&&(Ze=ot=null,at=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Sl||(Sl=!0,dp(Os,function(){return Di(),null})),y=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||y){y=Kt.transition,Kt.transition=null;var w=ze;ze=1;var E=Oe;Oe|=4,Wu.current=null,mv(r,l),Jd(l,r),Hy(nu),Ls=!!tu,nu=tu=null,r.current=l,yv(l),Wm(),Oe=E,ze=w,Kt.transition=y}else r.current=l;if(Sl&&(Sl=!1,pr=r,bl=d),y=r.pendingLanes,y===0&&(dr=null),Xm(l.stateNode),Mt(r,Xe()),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(kl)throw kl=!1,r=Xu,Xu=null,r;return(bl&1)!==0&&r.tag!==0&&Di(),y=r.pendingLanes,(y&1)!==0?r===Yu?Vo++:(Vo=0,Yu=r):Vo=0,ur(),null}function Di(){if(pr!==null){var r=Yf(bl),o=Kt.transition,l=ze;try{if(Kt.transition=null,ze=16>r?16:r,pr===null)var c=!1;else{if(r=pr,pr=null,bl=0,(Oe&6)!==0)throw Error(i(331));var d=Oe;for(Oe|=4,fe=r.current;fe!==null;){var y=fe,w=y.child;if((fe.flags&16)!==0){var E=y.deletions;if(E!==null){for(var M=0;M<E.length;M++){var V=E[M];for(fe=V;fe!==null;){var Y=fe;switch(Y.tag){case 0:case 11:case 15:$o(8,Y,y)}var ee=Y.child;if(ee!==null)ee.return=Y,fe=ee;else for(;fe!==null;){Y=fe;var X=Y.sibling,ae=Y.return;if(Kd(Y),Y===V){fe=null;break}if(X!==null){X.return=ae,fe=X;break}fe=ae}}}var he=y.alternate;if(he!==null){var pe=he.child;if(pe!==null){he.child=null;do{var Ye=pe.sibling;pe.sibling=null,pe=Ye}while(pe!==null)}}fe=y}}if((y.subtreeFlags&2064)!==0&&w!==null)w.return=y,fe=w;else e:for(;fe!==null;){if(y=fe,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:$o(9,y,y.return)}var U=y.sibling;if(U!==null){U.return=y.return,fe=U;break e}fe=y.return}}var z=r.current;for(fe=z;fe!==null;){w=fe;var H=w.child;if((w.subtreeFlags&2064)!==0&&H!==null)H.return=w,fe=H;else e:for(w=z;fe!==null;){if(E=fe,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:_l(9,E)}}catch(me){Ke(E,E.return,me)}if(E===w){fe=null;break e}var ne=E.sibling;if(ne!==null){ne.return=E.return,fe=ne;break e}fe=E.return}}if(Oe=d,ur(),mn&&typeof mn.onPostCommitFiberRoot=="function")try{mn.onPostCommitFiberRoot(Rs,r)}catch{}c=!0}return c}finally{ze=l,Kt.transition=o}}return!1}function cp(r,o,l){o=Ri(l,o),o=Nd(r,o,1),r=fr(r,o,1),o=xt(),r!==null&&(ho(r,1,o),Mt(r,o))}function Ke(r,o,l){if(r.tag===3)cp(r,r,l);else for(;o!==null;){if(o.tag===3){cp(o,r,l);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(dr===null||!dr.has(c))){r=Ri(l,r),r=Td(o,r,1),o=fr(o,r,1),r=xt(),o!==null&&(ho(o,1,r),Mt(o,r));break}}o=o.return}}function Sv(r,o,l){var c=r.pingCache;c!==null&&c.delete(o),o=xt(),r.pingedLanes|=r.suspendedLanes&l,ot===r&&(at&l)===l&&(nt===4||nt===3&&(at&130023424)===at&&500>Xe()-Gu?Qr(r,0):Ku|=l),Mt(r,o)}function fp(r,o){o===0&&((r.mode&1)===0?o=1:(o=As,As<<=1,(As&130023424)===0&&(As=4194304)));var l=xt();r=An(r,o),r!==null&&(ho(r,o,l),Mt(r,l))}function bv(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),fp(r,l)}function Cv(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),fp(r,l)}var hp;hp=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||Et.current)Nt=!0;else{if((r.lanes&l)===0&&(o.flags&128)===0)return Nt=!1,hv(r,o,l);Nt=(r.flags&131072)!==0}else Nt=!1,He&&(o.flags&1048576)!==0&&Bh(o,nl,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;yl(r,o),r=o.pendingProps;var d=bi(o,ct.current);Mi(o,l),d=Eu(null,o,c,r,d,l);var y=Pu();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,Pt(c)?(y=!0,Js(o)):y=!1,o.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,_u(o),d.updater=gl,o.stateNode=d,d._reactInternals=o,ju(o,c,r,l),o=Iu(null,o,c,!0,y,l)):(o.tag=0,He&&y&&uu(o),_t(null,o,d,l),o=o.child),o;case 16:c=o.elementType;e:{switch(yl(r,o),r=o.pendingProps,d=c._init,c=d(c._payload),o.type=c,d=o.tag=Pv(c),r=on(c,r),d){case 0:o=Du(null,o,c,r,l);break e;case 1:o=Ld(null,o,c,r,l);break e;case 11:o=jd(null,o,c,r,l);break e;case 14:o=Ad(null,o,c,on(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:on(c,d),Du(r,o,c,d,l);case 1:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:on(c,d),Ld(r,o,c,d,l);case 3:e:{if(Fd(o),r===null)throw Error(i(387));c=o.pendingProps,y=o.memoizedState,d=y.element,ed(r,o),al(o,c,null,l);var w=o.memoizedState;if(c=w.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){d=Ri(Error(i(423)),o),o=$d(r,o,c,l,d);break e}else if(c!==d){d=Ri(Error(i(424)),o),o=$d(r,o,c,l,d);break e}else for(Ft=sr(o.stateNode.containerInfo.firstChild),Lt=o,He=!0,rn=null,l=Zh(o,null,c,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Pi(),c===d){o=Dn(r,o,l);break e}_t(r,o,c,l)}o=o.child}return o;case 5:return rd(o),r===null&&hu(o),c=o.type,d=o.pendingProps,y=r!==null?r.memoizedProps:null,w=d.children,ru(c,d)?w=null:y!==null&&ru(c,y)&&(o.flags|=32),Id(r,o),_t(r,o,w,l),o.child;case 6:return r===null&&hu(o),null;case 13:return Ud(r,o,l);case 4:return xu(o,o.stateNode.containerInfo),c=o.pendingProps,r===null?o.child=Ni(o,null,c,l):_t(r,o,c,l),o.child;case 11:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:on(c,d),jd(r,o,c,d,l);case 7:return _t(r,o,o.pendingProps,l),o.child;case 8:return _t(r,o,o.pendingProps.children,l),o.child;case 12:return _t(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(c=o.type._context,d=o.pendingProps,y=o.memoizedProps,w=d.value,Le(ol,c._currentValue),c._currentValue=w,y!==null)if(nn(y.value,w)){if(y.children===d.children&&!Et.current){o=Dn(r,o,l);break e}}else for(y=o.child,y!==null&&(y.return=o);y!==null;){var E=y.dependencies;if(E!==null){w=y.child;for(var M=E.firstContext;M!==null;){if(M.context===c){if(y.tag===1){M=zn(-1,l&-l),M.tag=2;var V=y.updateQueue;if(V!==null){V=V.shared;var Y=V.pending;Y===null?M.next=M:(M.next=Y.next,Y.next=M),V.pending=M}}y.lanes|=l,M=y.alternate,M!==null&&(M.lanes|=l),yu(y.return,l,o),E.lanes|=l;break}M=M.next}}else if(y.tag===10)w=y.type===o.type?null:y.child;else if(y.tag===18){if(w=y.return,w===null)throw Error(i(341));w.lanes|=l,E=w.alternate,E!==null&&(E.lanes|=l),yu(w,l,o),w=y.sibling}else w=y.child;if(w!==null)w.return=y;else for(w=y;w!==null;){if(w===o){w=null;break}if(y=w.sibling,y!==null){y.return=w.return,w=y;break}w=w.return}y=w}_t(r,o,d.children,l),o=o.child}return o;case 9:return d=o.type,c=o.pendingProps.children,Mi(o,l),d=Qt(d),c=c(d),o.flags|=1,_t(r,o,c,l),o.child;case 14:return c=o.type,d=on(c,o.pendingProps),d=on(c.type,d),Ad(r,o,c,d,l);case 15:return zd(r,o,o.type,o.pendingProps,l);case 17:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:on(c,d),yl(r,o),o.tag=1,Pt(c)?(r=!0,Js(o)):r=!1,Mi(o,l),Ed(o,c,d),ju(o,c,d,l),Iu(null,o,c,!0,r,l);case 19:return Vd(r,o,l);case 22:return Dd(r,o,l)}throw Error(i(156,o.tag))};function dp(r,o){return Qf(r,o)}function Ev(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 Gt(r,o,l,c){return new Ev(r,o,l,c)}function rc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Pv(r){if(typeof r=="function")return rc(r)?1:0;if(r!=null){if(r=r.$$typeof,r===ie)return 11;if(r===te)return 14}return 2}function yr(r,o){var l=r.alternate;return l===null?(l=Gt(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 Nl(r,o,l,c,d,y){var w=2;if(c=r,typeof r=="function")rc(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case F:return Kr(l.children,d,y,o);case I:w=8,d|=8;break;case B:return r=Gt(12,l,o,d|2),r.elementType=B,r.lanes=y,r;case ce:return r=Gt(13,l,o,d),r.elementType=ce,r.lanes=y,r;case $:return r=Gt(19,l,o,d),r.elementType=$,r.lanes=y,r;case oe:return Tl(l,d,y,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case K:w=10;break e;case Z:w=9;break e;case ie:w=11;break e;case te:w=14;break e;case W:w=16,c=null;break e}throw Error(i(130,r==null?r:typeof r,""))}return o=Gt(w,l,o,d),o.elementType=r,o.type=c,o.lanes=y,o}function Kr(r,o,l,c){return r=Gt(7,r,c,o),r.lanes=l,r}function Tl(r,o,l,c){return r=Gt(22,r,c,o),r.elementType=oe,r.lanes=l,r.stateNode={isHidden:!1},r}function ic(r,o,l){return r=Gt(6,r,null,o),r.lanes=l,r}function oc(r,o,l){return o=Gt(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function Nv(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=Ra(0),this.expirationTimes=Ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ra(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function sc(r,o,l,c,d,y,w,E,M){return r=new Nv(r,o,l,E,M),o===1?(o=1,y===!0&&(o|=8)):o=0,y=Gt(3,null,null,o),r.current=y,y.stateNode=r,y.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},_u(y),r}function Tv(r,o,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:c==null?null:""+c,children:r,containerInfo:o,implementation:l}}function pp(r){if(!r)return ar;r=r._reactInternals;e:{if(Dr(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(Pt(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(Pt(l))return Hh(r,l,o)}return o}function gp(r,o,l,c,d,y,w,E,M){return r=sc(l,c,!0,r,d,y,w,E,M),r.context=pp(null),l=r.current,c=xt(),d=gr(l),y=zn(c,d),y.callback=o??null,fr(l,y,d),r.current.lanes=d,ho(r,d,c),Mt(r,c),r}function Ml(r,o,l,c){var d=o.current,y=xt(),w=gr(d);return l=pp(l),o.context===null?o.context=l:o.pendingContext=l,o=zn(y,w),o.payload={element:r},c=c===void 0?null:c,c!==null&&(o.callback=c),r=fr(d,o,w),r!==null&&(an(r,d,w,y),ll(r,d,w)),w}function Ol(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 mp(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function lc(r,o){mp(r,o),(r=r.alternate)&&mp(r,o)}function Mv(){return null}var yp=typeof reportError=="function"?reportError:function(r){console.error(r)};function ac(r){this._internalRoot=r}Rl.prototype.render=ac.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(i(409));Ml(r,o,null,null)},Rl.prototype.unmount=ac.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Br(function(){Ml(null,r,null,null)}),o[Mn]=null}};function Rl(r){this._internalRoot=r}Rl.prototype.unstable_scheduleHydration=function(r){if(r){var o=eh();r={blockedOn:null,target:r,priority:o};for(var l=0;l<rr.length&&o!==0&&o<rr[l].priority;l++);rr.splice(l,0,r),l===0&&rh(r)}};function uc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function jl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function vp(){}function Ov(r,o,l,c,d){if(d){if(typeof c=="function"){var y=c;c=function(){var V=Ol(w);y.call(V)}}var w=gp(o,c,r,0,null,!1,!1,"",vp);return r._reactRootContainer=w,r[Mn]=w.current,Po(r.nodeType===8?r.parentNode:r),Br(),w}for(;d=r.lastChild;)r.removeChild(d);if(typeof c=="function"){var E=c;c=function(){var V=Ol(M);E.call(V)}}var M=sc(r,0,!1,null,null,!1,!1,"",vp);return r._reactRootContainer=M,r[Mn]=M.current,Po(r.nodeType===8?r.parentNode:r),Br(function(){Ml(o,M,l,c)}),M}function Al(r,o,l,c,d){var y=l._reactRootContainer;if(y){var w=y;if(typeof d=="function"){var E=d;d=function(){var M=Ol(w);E.call(M)}}Ml(o,w,r,d)}else w=Ov(l,o,r,d,c);return Ol(w)}Zf=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=fo(o.pendingLanes);l!==0&&(ja(o,l|1),Mt(o,Xe()),(Oe&6)===0&&(zi=Xe()+500,ur()))}break;case 13:Br(function(){var c=An(r,1);if(c!==null){var d=xt();an(c,r,1,d)}}),lc(r,1)}},Aa=function(r){if(r.tag===13){var o=An(r,134217728);if(o!==null){var l=xt();an(o,r,134217728,l)}lc(r,134217728)}},Jf=function(r){if(r.tag===13){var o=gr(r),l=An(r,o);if(l!==null){var c=xt();an(l,r,o,c)}lc(r,o)}},eh=function(){return ze},th=function(r,o){var l=ze;try{return ze=r,o()}finally{ze=l}},Ea=function(r,o,l){switch(o){case"input":if(oo(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=Ys(c);if(!d)throw Error(i(90));Cs(c),oo(c,d)}}}break;case"textarea":se(r,l);break;case"select":o=l.value,o!=null&&Zn(r,!!l.multiple,o,!1)}},Ff=ec,$f=Br;var Rv={usingClientEntryPoint:!1,Events:[Mo,ki,Ys,If,Lf,ec]},qo={findFiberByHostInstance:Ir,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jv={bundleType:qo.bundleType,version:qo.version,rendererPackageName:qo.rendererPackageName,rendererConfig:qo.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=qf(r),r===null?null:r.stateNode},findFiberByHostInstance:qo.findFiberByHostInstance||Mv,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 zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zl.isDisabled&&zl.supportsFiber)try{Rs=zl.inject(jv),mn=zl}catch{}}return Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rv,Ot.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uc(o))throw Error(i(200));return Tv(r,o,null,l)},Ot.createRoot=function(r,o){if(!uc(r))throw Error(i(299));var l=!1,c="",d=yp;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(d=o.onRecoverableError)),o=sc(r,1,!1,null,null,l,!1,c,d),r[Mn]=o.current,Po(r.nodeType===8?r.parentNode:r),new ac(o)},Ot.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=qf(o),r=r===null?null:r.stateNode,r},Ot.flushSync=function(r){return Br(r)},Ot.hydrate=function(r,o,l){if(!jl(o))throw Error(i(200));return Al(null,r,o,!0,l)},Ot.hydrateRoot=function(r,o,l){if(!uc(r))throw Error(i(405));var c=l!=null&&l.hydratedSources||null,d=!1,y="",w=yp;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),o=gp(o,null,r,1,l??null,d,!1,y,w),r[Mn]=o.current,Po(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 Rl(o)},Ot.render=function(r,o,l){if(!jl(o))throw Error(i(200));return Al(null,r,o,!1,l)},Ot.unmountComponentAtNode=function(r){if(!jl(r))throw Error(i(40));return r._reactRootContainer?(Br(function(){Al(null,null,r,!1,function(){r._reactRootContainer=null,r[Mn]=null})}),!0):!1},Ot.unstable_batchedUpdates=ec,Ot.unstable_renderSubtreeIntoContainer=function(r,o,l,c){if(!jl(l))throw Error(i(200));if(r==null||r._reactInternals===void 0)throw Error(i(38));return Al(r,o,l,!1,c)},Ot.version="18.3.1-next-f1338f8080-20240426",Ot}var Dp;function x1(){if(Dp)return pc.exports;Dp=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(),pc.exports=_1(),pc.exports}var Ip;function w1(){if(Ip)return Ll;Ip=1;var e=x1();return Ll.createRoot=e.createRoot,Ll.hydrateRoot=e.hydrateRoot,Ll}var k1=w1();/**
|
|
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 S1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P0=(...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 b1={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 C1=de.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,iconNode:f,...h},p)=>de.createElement("svg",{ref:p,...b1,width:n,height:n,stroke:e,strokeWidth:s?Number(i)*24/Number(n):i,className:P0("lucide",a),...h},[...f.map(([m,v])=>de.createElement(m,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 Yn=(e,n)=>{const i=de.forwardRef(({className:s,...a},u)=>de.createElement(C1,{ref:u,iconNode:n,className:P0(`lucide-${S1(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 E1=Yn("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"}]]);/**
|
|
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 P1=Yn("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
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 Lp=Yn("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 yc=Yn("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 N1=Yn("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"}]]);/**
|
|
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 vc=Yn("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"}]]);/**
|
|
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 T1=Yn("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"}]]);/**
|
|
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 M1=Yn("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"}]]);/**
|
|
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 Fp=Yn("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 O1({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 A.jsx("span",{className:`${s} ${a[n]} ${i}`,children:e})}function pt({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",m={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",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"};return A.jsx("button",{type:h,className:`${p} ${m[n]} ${v[i]} ${s}`,onClick:a,disabled:u,title:f,children:e})}function R1({children:e,className:n=""}){return A.jsx("div",{className:`rounded-lg border bg-card text-card-foreground shadow-sm ${n}`,children:e})}function j1({children:e,className:n=""}){return A.jsx("div",{className:`flex flex-col space-y-1.5 p-6 ${n}`,children:e})}function A1({children:e,className:n=""}){return A.jsx("div",{className:`flex items-center p-6 pt-0 ${n}`,children:e})}function z1({type:e="text",placeholder:n,value:i,onChange:s,className:a="",disabled:u=!1,ref:f,multiple:h,accept:p,...m}){return A.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}`,...m})}function D1(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,m=!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){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function I1(e,n,i){return n=B1(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function $p(e,n){return $1(e)||D1(e,n)||N0(e,n)||V1()}function L1(e){return F1(e)||U1(e)||N0(e)||H1()}function F1(e){if(Array.isArray(e))return Bc(e)}function $1(e){if(Array.isArray(e))return e}function U1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N0(e,n){if(e){if(typeof e=="string")return Bc(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 Bc(e,n)}}function Bc(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 H1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
106
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
107
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q1(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 B1(e){var n=q1(e,"string");return typeof n=="symbol"?n:String(n)}var Q1=function(n,i){var s=new Set(i);return Object.assign.apply(Object,[{}].concat(L1(Object.entries(n).filter(function(a){var u=$p(a,1),f=u[0];return!s.has(f)}).map(function(a){var u=$p(a,2),f=u[0],h=u[1];return I1({},f,h)}))))};function Qc(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 W1(e){if(Array.isArray(e))return e}function K1(e){if(Array.isArray(e))return Qc(e)}function G1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X1(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,m=!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){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function Y1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
108
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
109
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J1(e,n){return W1(e)||X1(e,n)||T0(e,n)||Y1()}function Up(e){return K1(e)||G1(e)||T0(e)||Z1()}function T0(e,n){if(e){if(typeof e=="string")return Qc(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)?Qc(e,n):void 0}}function e_(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,m=p===void 0?[]:p;return de.forwardRef(function(v,g){var _=de.useRef(),x=de.useMemo(function(){var S=Object.fromEntries(m.filter(function(k){return v.hasOwnProperty(k)}).map(function(k){return[k,v[k]]}));return e(S)},[]);Hp(function(){x(u(_.current))},de.useLayoutEffect),Hp(function(){return x._destructor instanceof Function?x._destructor:void 0});var b=de.useCallback(function(S){for(var k=arguments.length,O=new Array(k>1?k-1:0),j=1;j<k;j++)O[j-1]=arguments[j];return x[S]instanceof Function?x[S].apply(x,O):void 0},[x]),C=de.useRef({});return Object.keys(Q1(v,[].concat(Up(h),Up(m)))).filter(function(S){return C.current[S]!==v[S]}).forEach(function(S){return b(S,v[S])}),C.current=v,de.useImperativeHandle(g,function(){return Object.fromEntries(h.map(function(S){return[S,function(){for(var k=arguments.length,O=new Array(k),j=0;j<k;j++)O[j]=arguments[j];return b.apply(void 0,[S].concat(O))}]}))},[b]),b0.createElement(s,{ref:_})})}function Hp(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de.useEffect,i=de.useRef(),s=de.useRef(!1),a=de.useRef(!1),u=de.useState(0),f=J1(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 Wc="http://www.w3.org/1999/xhtml";const Vp={svg:"http://www.w3.org/2000/svg",xhtml:Wc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ga(e){var n=e+="",i=n.indexOf(":");return i>=0&&(n=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Vp.hasOwnProperty(n)?{space:Vp[n],local:e}:e}function t_(e){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Wc&&n.documentElement.namespaceURI===Wc?n.createElement(e):n.createElementNS(i,e)}}function n_(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function M0(e){var n=ga(e);return(n.local?n_:t_)(n)}function r_(){}function yf(e){return e==null?r_:function(){return this.querySelector(e)}}function i_(e){typeof e!="function"&&(e=yf(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,m,v=0;v<f;++v)(p=u[v])&&(m=e.call(p,p.__data__,v,u))&&("__data__"in p&&(m.__data__=p.__data__),h[v]=m);return new Ht(s,this._parents)}function o_(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function s_(){return[]}function O0(e){return e==null?s_:function(){return this.querySelectorAll(e)}}function l_(e){return function(){return o_(e.apply(this,arguments))}}function a_(e){typeof e=="function"?e=l_(e):e=O0(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,m=0;m<h;++m)(p=f[m])&&(s.push(e.call(p,p.__data__,m,f)),a.push(p));return new Ht(s,a)}function R0(e){return function(){return this.matches(e)}}function j0(e){return function(n){return n.matches(e)}}var u_=Array.prototype.find;function c_(e){return function(){return u_.call(this.children,e)}}function f_(){return this.firstElementChild}function h_(e){return this.select(e==null?f_:c_(typeof e=="function"?e:j0(e)))}var d_=Array.prototype.filter;function p_(){return Array.from(this.children)}function g_(e){return function(){return d_.call(this.children,e)}}function m_(e){return this.selectAll(e==null?p_:g_(typeof e=="function"?e:j0(e)))}function y_(e){typeof e!="function"&&(e=R0(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,m=0;m<f;++m)(p=u[m])&&e.call(p,p.__data__,m,u)&&h.push(p);return new Ht(s,this._parents)}function A0(e){return new Array(e.length)}function v_(){return new Ht(this._enter||this._groups.map(A0),this._parents)}function ta(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}ta.prototype={constructor:ta,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 __(e){return function(){return e}}function x_(e,n,i,s,a,u){for(var f=0,h,p=n.length,m=u.length;f<m;++f)(h=n[f])?(h.__data__=u[f],s[f]=h):i[f]=new ta(e,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function w_(e,n,i,s,a,u,f){var h,p,m=new Map,v=n.length,g=u.length,_=new Array(v),x;for(h=0;h<v;++h)(p=n[h])&&(_[h]=x=f.call(p,p.__data__,h,n)+"",m.has(x)?a[h]=p:m.set(x,p));for(h=0;h<g;++h)x=f.call(e,u[h],h,u)+"",(p=m.get(x))?(s[h]=p,p.__data__=u[h],m.delete(x)):i[h]=new ta(e,u[h]);for(h=0;h<v;++h)(p=n[h])&&m.get(_[h])===p&&(a[h]=p)}function k_(e){return e.__data__}function S_(e,n){if(!arguments.length)return Array.from(this,k_);var i=n?w_:x_,s=this._parents,a=this._groups;typeof e!="function"&&(e=__(e));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),m=0;m<u;++m){var v=s[m],g=a[m],_=g.length,x=b_(e.call(v,v&&v.__data__,m,s)),b=x.length,C=h[m]=new Array(b),S=f[m]=new Array(b),k=p[m]=new Array(_);i(v,g,C,S,k,x,n);for(var O=0,j=0,P,N;O<b;++O)if(P=C[O]){for(O>=j&&(j=O+1);!(N=S[j])&&++j<b;);P._next=N||null}}return f=new Ht(f,s),f._enter=h,f._exit=p,f}function b_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function C_(){return new Ht(this._exit||this._groups.map(A0),this._parents)}function E_(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 P_(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 m=i[p],v=s[p],g=m.length,_=h[p]=new Array(g),x,b=0;b<g;++b)(x=m[b]||v[b])&&(_[b]=x);for(;p<a;++p)h[p]=i[p];return new Ht(h,this._parents)}function N_(){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 T_(e){e||(e=M_);function n(g,_){return g&&_?e(g.__data__,_.__data__):!g-!_}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),m,v=0;v<h;++v)(m=f[v])&&(p[v]=m);p.sort(n)}return new Ht(a,this._parents).order()}function M_(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function O_(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function R_(){return Array.from(this)}function j_(){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 A_(){let e=0;for(const n of this)++e;return e}function z_(){return!this.node()}function D_(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 I_(e){return function(){this.removeAttribute(e)}}function L_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function F_(e,n){return function(){this.setAttribute(e,n)}}function $_(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function U_(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttribute(e):this.setAttribute(e,i)}}function H_(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 V_(e,n){var i=ga(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?L_:I_:typeof n=="function"?i.local?H_:U_:i.local?$_:F_)(i,n))}function z0(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function q_(e){return function(){this.style.removeProperty(e)}}function B_(e,n,i){return function(){this.style.setProperty(e,n,i)}}function Q_(e,n,i){return function(){var s=n.apply(this,arguments);s==null?this.style.removeProperty(e):this.style.setProperty(e,s,i)}}function W_(e,n,i){return arguments.length>1?this.each((n==null?q_:typeof n=="function"?Q_:B_)(e,n,i??"")):eo(this.node(),e)}function eo(e,n){return e.style.getPropertyValue(n)||z0(e).getComputedStyle(e,null).getPropertyValue(n)}function K_(e){return function(){delete this[e]}}function G_(e,n){return function(){this[e]=n}}function X_(e,n){return function(){var i=n.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function Y_(e,n){return arguments.length>1?this.each((n==null?K_:typeof n=="function"?X_:G_)(e,n)):this.node()[e]}function D0(e){return e.trim().split(/^|\s+/)}function vf(e){return e.classList||new I0(e)}function I0(e){this._node=e,this._names=D0(e.getAttribute("class")||"")}I0.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 L0(e,n){for(var i=vf(e),s=-1,a=n.length;++s<a;)i.add(n[s])}function F0(e,n){for(var i=vf(e),s=-1,a=n.length;++s<a;)i.remove(n[s])}function Z_(e){return function(){L0(this,e)}}function J_(e){return function(){F0(this,e)}}function ex(e,n){return function(){(n.apply(this,arguments)?L0:F0)(this,e)}}function tx(e,n){var i=D0(e+"");if(arguments.length<2){for(var s=vf(this.node()),a=-1,u=i.length;++a<u;)if(!s.contains(i[a]))return!1;return!0}return this.each((typeof n=="function"?ex:n?Z_:J_)(i,n))}function nx(){this.textContent=""}function rx(e){return function(){this.textContent=e}}function ix(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function ox(e){return arguments.length?this.each(e==null?nx:(typeof e=="function"?ix:rx)(e)):this.node().textContent}function sx(){this.innerHTML=""}function lx(e){return function(){this.innerHTML=e}}function ax(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function ux(e){return arguments.length?this.each(e==null?sx:(typeof e=="function"?ax:lx)(e)):this.node().innerHTML}function cx(){this.nextSibling&&this.parentNode.appendChild(this)}function fx(){return this.each(cx)}function hx(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function dx(){return this.each(hx)}function px(e){var n=typeof e=="function"?e:M0(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function gx(){return null}function mx(e,n){var i=typeof e=="function"?e:M0(e),s=n==null?gx:typeof n=="function"?n:yf(n);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function yx(){var e=this.parentNode;e&&e.removeChild(this)}function vx(){return this.each(yx)}function _x(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function xx(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function wx(e){return this.select(e?xx:_x)}function kx(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Sx(e){return function(n){e.call(this,n,this.__data__)}}function bx(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 Cx(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 Ex(e,n,i){return function(){var s=this.__on,a,u=Sx(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 Px(e,n,i){var s=bx(e+""),a,u=s.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,m=h.length,v;p<m;++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?Ex:Cx,a=0;a<u;++a)this.each(h(s[a],n,i));return this}function $0(e,n,i){var s=z0(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 Nx(e,n){return function(){return $0(this,e,n)}}function Tx(e,n){return function(){return $0(this,e,n.apply(this,arguments))}}function Mx(e,n){return this.each((typeof n=="function"?Tx:Nx)(e,n))}function*Ox(){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 U0=[null];function Ht(e,n){this._groups=e,this._parents=n}function xs(){return new Ht([[document.documentElement]],U0)}function Rx(){return this}Ht.prototype=xs.prototype={constructor:Ht,select:i_,selectAll:a_,selectChild:h_,selectChildren:m_,filter:y_,data:S_,enter:v_,exit:C_,join:E_,merge:P_,selection:Rx,order:N_,sort:T_,call:O_,nodes:R_,node:j_,size:A_,empty:z_,each:D_,attr:V_,style:W_,property:Y_,classed:tx,text:ox,html:ux,raise:fx,lower:dx,append:px,insert:mx,remove:vx,clone:wx,datum:kx,on:Px,dispatch:Mx,[Symbol.iterator]:Ox};function Jt(e){return typeof e=="string"?new Ht([[document.querySelector(e)]],[document.documentElement]):new Ht([[e]],U0)}function jx(e){let n;for(;n=e.sourceEvent;)e=n;return e}function kn(e,n){if(e=jx(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 Ax={value:()=>{}};function ws(){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 Kl(i)}function Kl(e){this._=e}function zx(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}})}Kl.prototype=ws.prototype={constructor:Kl,on:function(e,n){var i=this._,s=zx(e+"",i),a,u=-1,f=s.length;if(arguments.length<2){for(;++u<f;)if((a=(e=s[u]).type)&&(a=Dx(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]=qp(i[a],e.name,n);else if(n==null)for(a in i)i[a]=qp(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 Kl(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 Dx(e,n){for(var i=0,s=e.length,a;i<s;++i)if((a=e[i]).name===n)return a.value}function qp(e,n,i){for(var s=0,a=e.length;s<a;++s)if(e[s].name===n){e[s]=Ax,e=e.slice(0,s).concat(e.slice(s+1));break}return i!=null&&e.push({name:n,value:i}),e}const Ix={passive:!1},us={capture:!0,passive:!1};function _c(e){e.stopImmediatePropagation()}function Fi(e){e.preventDefault(),e.stopImmediatePropagation()}function H0(e){var n=e.document.documentElement,i=Jt(e).on("dragstart.drag",Fi,us);"onselectstart"in n?i.on("selectstart.drag",Fi,us):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function V0(e,n){var i=e.document.documentElement,s=Jt(e).on("dragstart.drag",null);n&&(s.on("click.drag",Fi,us),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 Fl=e=>()=>e;function Kc(e,{sourceEvent:n,subject:i,target:s,identifier:a,active:u,x:f,y:h,dx:p,dy:m,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:m,enumerable:!0,configurable:!0},_:{value:v}})}Kc.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Lx(e){return!e.ctrlKey&&!e.button}function Fx(){return this.parentNode}function $x(e,n){return n??{x:e.x,y:e.y}}function Ux(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hx(){var e=Lx,n=Fx,i=$x,s=Ux,a={},u=ws("start","drag","end"),f=0,h,p,m,v,g=0;function _(P){P.on("mousedown.drag",x).filter(s).on("touchstart.drag",S).on("touchmove.drag",k,Ix).on("touchend.drag touchcancel.drag",O).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(P,N){if(!(v||!e.call(this,P,N))){var D=j(this,n.call(this,P,N),P,N,"mouse");D&&(Jt(P.view).on("mousemove.drag",b,us).on("mouseup.drag",C,us),H0(P.view),_c(P),m=!1,h=P.clientX,p=P.clientY,D("start",P))}}function b(P){if(Fi(P),!m){var N=P.clientX-h,D=P.clientY-p;m=N*N+D*D>g}a.mouse("drag",P)}function C(P){Jt(P.view).on("mousemove.drag mouseup.drag",null),V0(P.view,m),Fi(P),a.mouse("end",P)}function S(P,N){if(e.call(this,P,N)){var D=P.changedTouches,F=n.call(this,P,N),I=D.length,B,K;for(B=0;B<I;++B)(K=j(this,F,P,N,D[B].identifier,D[B]))&&(_c(P),K("start",P,D[B]))}}function k(P){var N=P.changedTouches,D=N.length,F,I;for(F=0;F<D;++F)(I=a[N[F].identifier])&&(Fi(P),I("drag",P,N[F]))}function O(P){var N=P.changedTouches,D=N.length,F,I;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),F=0;F<D;++F)(I=a[N[F].identifier])&&(_c(P),I("end",P,N[F]))}function j(P,N,D,F,I,B){var K=u.copy(),Z=kn(B||D,N),ie,ce,$;if(($=i.call(P,new Kc("beforestart",{sourceEvent:D,target:_,identifier:I,active:f,x:Z[0],y:Z[1],dx:0,dy:0,dispatch:K}),F))!=null)return ie=$.x-Z[0]||0,ce=$.y-Z[1]||0,function te(W,oe,Q){var J=Z,G;switch(W){case"start":a[I]=te,G=f++;break;case"end":delete a[I],--f;case"drag":Z=kn(Q||oe,N),G=f;break}K.call(W,P,new Kc(W,{sourceEvent:oe,subject:$,target:_,identifier:I,active:G,x:Z[0]+ie,y:Z[1]+ce,dx:Z[0]-J[0],dy:Z[1]-J[1],dispatch:K}),F)}}return _.filter=function(P){return arguments.length?(e=typeof P=="function"?P:Fl(!!P),_):e},_.container=function(P){return arguments.length?(n=typeof P=="function"?P:Fl(P),_):n},_.subject=function(P){return arguments.length?(i=typeof P=="function"?P:Fl(P),_):i},_.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:Fl(!!P),_):s},_.on=function(){var P=u.on.apply(u,arguments);return P===u?_:P},_.clickDistance=function(P){return arguments.length?(g=(P=+P)*P,_):Math.sqrt(g)},_}function _f(e,n,i){e.prototype=n.prototype=i,i.constructor=e}function q0(e,n){var i=Object.create(e.prototype);for(var s in n)i[s]=n[s];return i}function ks(){}var cs=.7,na=1/cs,$i="\\s*([+-]?\\d+)\\s*",fs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vx=/^#([0-9a-f]{3,8})$/,qx=new RegExp(`^rgb\\(${$i},${$i},${$i}\\)$`),Bx=new RegExp(`^rgb\\(${Pn},${Pn},${Pn}\\)$`),Qx=new RegExp(`^rgba\\(${$i},${$i},${$i},${fs}\\)$`),Wx=new RegExp(`^rgba\\(${Pn},${Pn},${Pn},${fs}\\)$`),Kx=new RegExp(`^hsl\\(${fs},${Pn},${Pn}\\)$`),Gx=new RegExp(`^hsla\\(${fs},${Pn},${Pn},${fs}\\)$`),Bp={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};_f(ks,hs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qp,formatHex:Qp,formatHex8:Xx,formatHsl:Yx,formatRgb:Wp,toString:Wp});function Qp(){return this.rgb().formatHex()}function Xx(){return this.rgb().formatHex8()}function Yx(){return B0(this).formatHsl()}function Wp(){return this.rgb().formatRgb()}function hs(e){var n,i;return e=(e+"").trim().toLowerCase(),(n=Vx.exec(e))?(i=n[1].length,n=parseInt(n[1],16),i===6?Kp(n):i===3?new At(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?$l(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?$l(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=qx.exec(e))?new At(n[1],n[2],n[3],1):(n=Bx.exec(e))?new At(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Qx.exec(e))?$l(n[1],n[2],n[3],n[4]):(n=Wx.exec(e))?$l(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Kx.exec(e))?Yp(n[1],n[2]/100,n[3]/100,1):(n=Gx.exec(e))?Yp(n[1],n[2]/100,n[3]/100,n[4]):Bp.hasOwnProperty(e)?Kp(Bp[e]):e==="transparent"?new At(NaN,NaN,NaN,0):null}function Kp(e){return new At(e>>16&255,e>>8&255,e&255,1)}function $l(e,n,i,s){return s<=0&&(e=n=i=NaN),new At(e,n,i,s)}function Zx(e){return e instanceof ks||(e=hs(e)),e?(e=e.rgb(),new At(e.r,e.g,e.b,e.opacity)):new At}function Gc(e,n,i,s){return arguments.length===1?Zx(e):new At(e,n,i,s??1)}function At(e,n,i,s){this.r=+e,this.g=+n,this.b=+i,this.opacity=+s}_f(At,Gc,q0(ks,{brighter(e){return e=e==null?na:Math.pow(na,e),new At(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cs:Math.pow(cs,e),new At(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new At(si(this.r),si(this.g),si(this.b),ra(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:Gp,formatHex:Gp,formatHex8:Jx,formatRgb:Xp,toString:Xp}));function Gp(){return`#${Yr(this.r)}${Yr(this.g)}${Yr(this.b)}`}function Jx(){return`#${Yr(this.r)}${Yr(this.g)}${Yr(this.b)}${Yr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xp(){const e=ra(this.opacity);return`${e===1?"rgb(":"rgba("}${si(this.r)}, ${si(this.g)}, ${si(this.b)}${e===1?")":`, ${e})`}`}function ra(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function si(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yr(e){return e=si(e),(e<16?"0":"")+e.toString(16)}function Yp(e,n,i,s){return s<=0?e=n=i=NaN:i<=0||i>=1?e=n=NaN:n<=0&&(e=NaN),new dn(e,n,i,s)}function B0(e){if(e instanceof dn)return new dn(e.h,e.s,e.l,e.opacity);if(e instanceof ks||(e=hs(e)),!e)return new dn;if(e instanceof dn)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 dn(f,h,p,e.opacity)}function ew(e,n,i,s){return arguments.length===1?B0(e):new dn(e,n,i,s??1)}function dn(e,n,i,s){this.h=+e,this.s=+n,this.l=+i,this.opacity=+s}_f(dn,ew,q0(ks,{brighter(e){return e=e==null?na:Math.pow(na,e),new dn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cs:Math.pow(cs,e),new dn(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 At(xc(e>=240?e-240:e+120,a,s),xc(e,a,s),xc(e<120?e+240:e-120,a,s),this.opacity)},clamp(){return new dn(Zp(this.h),Ul(this.s),Ul(this.l),ra(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=ra(this.opacity);return`${e===1?"hsl(":"hsla("}${Zp(this.h)}, ${Ul(this.s)*100}%, ${Ul(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zp(e){return e=(e||0)%360,e<0?e+360:e}function Ul(e){return Math.max(0,Math.min(1,e||0))}function xc(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 Q0=e=>()=>e;function tw(e,n){return function(i){return e+i*n}}function nw(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 rw(e){return(e=+e)==1?W0:function(n,i){return i-n?nw(n,i,e):Q0(isNaN(n)?i:n)}}function W0(e,n){var i=n-e;return i?tw(e,i):Q0(isNaN(e)?n:e)}const Jp=function e(n){var i=rw(n);function s(a,u){var f=i((a=Gc(a)).r,(u=Gc(u)).r),h=i(a.g,u.g),p=i(a.b,u.b),m=W0(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=p(v),a.opacity=m(v),a+""}}return s.gamma=e,s}(1);function kr(e,n){return e=+e,n=+n,function(i){return e*(1-i)+n*i}}var Xc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wc=new RegExp(Xc.source,"g");function iw(e){return function(){return e}}function ow(e){return function(n){return e(n)+""}}function sw(e,n){var i=Xc.lastIndex=wc.lastIndex=0,s,a,u,f=-1,h=[],p=[];for(e=e+"",n=n+"";(s=Xc.exec(e))&&(a=wc.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:kr(s,a)})),i=wc.lastIndex;return i<n.length&&(u=n.slice(i),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?ow(p[0].x):iw(n):(n=p.length,function(m){for(var v=0,g;v<n;++v)h[(g=p[v]).i]=g.x(m);return h.join("")})}var eg=180/Math.PI,Yc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function K0(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)*eg,skewX:Math.atan(p)*eg,scaleX:f,scaleY:h}}var Hl;function lw(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Yc:K0(n.a,n.b,n.c,n.d,n.e,n.f)}function aw(e){return e==null||(Hl||(Hl=document.createElementNS("http://www.w3.org/2000/svg","g")),Hl.setAttribute("transform",e),!(e=Hl.transform.baseVal.consolidate()))?Yc:(e=e.matrix,K0(e.a,e.b,e.c,e.d,e.e,e.f))}function G0(e,n,i,s){function a(m){return m.length?m.pop()+" ":""}function u(m,v,g,_,x,b){if(m!==g||v!==_){var C=x.push("translate(",null,n,null,i);b.push({i:C-4,x:kr(m,g)},{i:C-2,x:kr(v,_)})}else(g||_)&&x.push("translate("+g+n+_+i)}function f(m,v,g,_){m!==v?(m-v>180?v+=360:v-m>180&&(m+=360),_.push({i:g.push(a(g)+"rotate(",null,s)-2,x:kr(m,v)})):v&&g.push(a(g)+"rotate("+v+s)}function h(m,v,g,_){m!==v?_.push({i:g.push(a(g)+"skewX(",null,s)-2,x:kr(m,v)}):v&&g.push(a(g)+"skewX("+v+s)}function p(m,v,g,_,x,b){if(m!==g||v!==_){var C=x.push(a(x)+"scale(",null,",",null,")");b.push({i:C-4,x:kr(m,g)},{i:C-2,x:kr(v,_)})}else(g!==1||_!==1)&&x.push(a(x)+"scale("+g+","+_+")")}return function(m,v){var g=[],_=[];return m=e(m),v=e(v),u(m.translateX,m.translateY,v.translateX,v.translateY,g,_),f(m.rotate,v.rotate,g,_),h(m.skewX,v.skewX,g,_),p(m.scaleX,m.scaleY,v.scaleX,v.scaleY,g,_),m=v=null,function(x){for(var b=-1,C=_.length,S;++b<C;)g[(S=_[b]).i]=S.x(x);return g.join("")}}}var uw=G0(lw,"px, ","px)","deg)"),cw=G0(aw,", ",")",")"),fw=1e-12;function tg(e){return((e=Math.exp(e))+1/e)/2}function hw(e){return((e=Math.exp(e))-1/e)/2}function dw(e){return((e=Math.exp(2*e))-1)/(e+1)}const pw=function e(n,i,s){function a(u,f){var h=u[0],p=u[1],m=u[2],v=f[0],g=f[1],_=f[2],x=v-h,b=g-p,C=x*x+b*b,S,k;if(C<fw)k=Math.log(_/m)/n,S=function(F){return[h+F*x,p+F*b,m*Math.exp(n*F*k)]};else{var O=Math.sqrt(C),j=(_*_-m*m+s*C)/(2*m*i*O),P=(_*_-m*m-s*C)/(2*_*i*O),N=Math.log(Math.sqrt(j*j+1)-j),D=Math.log(Math.sqrt(P*P+1)-P);k=(D-N)/n,S=function(F){var I=F*k,B=tg(N),K=m/(i*O)*(B*dw(n*I+N)-hw(N));return[h+K*x,p+K*b,m*B/tg(n*I+N)]}}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 to=0,ts=0,Qo=0,X0=1e3,ia,ns,oa=0,ci=0,ma=0,ds=typeof performance=="object"&&performance.now?performance:Date,Y0=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function xf(){return ci||(Y0(gw),ci=ds.now()+ma)}function gw(){ci=0}function sa(){this._call=this._time=this._next=null}sa.prototype=wf.prototype={constructor:sa,restart:function(e,n,i){if(typeof e!="function")throw new TypeError("callback is not a function");i=(i==null?xf():+i)+(n==null?0:+n),!this._next&&ns!==this&&(ns?ns._next=this:ia=this,ns=this),this._call=e,this._time=i,Zc()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zc())}};function wf(e,n,i){var s=new sa;return s.restart(e,n,i),s}function mw(){xf(),++to;for(var e=ia,n;e;)(n=ci-e._time)>=0&&e._call.call(void 0,n),e=e._next;--to}function ng(){ci=(oa=ds.now())+ma,to=ts=0;try{mw()}finally{to=0,vw(),ci=0}}function yw(){var e=ds.now(),n=e-oa;n>X0&&(ma-=n,oa=e)}function vw(){for(var e,n=ia,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:ia=i);ns=e,Zc(s)}function Zc(e){if(!to){ts&&(ts=clearTimeout(ts));var n=e-ci;n>24?(e<1/0&&(ts=setTimeout(ng,e-ds.now()-ma)),Qo&&(Qo=clearInterval(Qo))):(Qo||(oa=ds.now(),Qo=setInterval(yw,X0)),to=1,Y0(ng))}}function rg(e,n,i){var s=new sa;return n=n==null?0:+n,s.restart(a=>{s.stop(),e(a+n)},n,i),s}var _w=ws("start","end","cancel","interrupt"),xw=[],Z0=0,ig=1,Jc=2,Gl=3,og=4,ef=5,Xl=6;function ya(e,n,i,s,a,u){var f=e.__transition;if(!f)e.__transition={};else if(i in f)return;ww(e,i,{name:n,index:s,group:a,on:_w,tween:xw,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Z0})}function kf(e,n){var i=gn(e,n);if(i.state>Z0)throw new Error("too late; already scheduled");return i}function Tn(e,n){var i=gn(e,n);if(i.state>Gl)throw new Error("too late; already running");return i}function gn(e,n){var i=e.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function ww(e,n,i){var s=e.__transition,a;s[n]=i,i.timer=wf(u,0,i.time);function u(m){i.state=ig,i.timer.restart(f,i.delay,i.time),i.delay<=m&&f(m-i.delay)}function f(m){var v,g,_,x;if(i.state!==ig)return p();for(v in s)if(x=s[v],x.name===i.name){if(x.state===Gl)return rg(f);x.state===og?(x.state=Xl,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete s[v]):+v<n&&(x.state=Xl,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete s[v])}if(rg(function(){i.state===Gl&&(i.state=og,i.timer.restart(h,i.delay,i.time),h(m))}),i.state=Jc,i.on.call("start",e,e.__data__,i.index,i.group),i.state===Jc){for(i.state=Gl,a=new Array(_=i.tween.length),v=0,g=-1;v<_;++v)(x=i.tween[v].value.call(e,e.__data__,i.index,i.group))&&(a[++g]=x);a.length=g+1}}function h(m){for(var v=m<i.duration?i.ease.call(null,m/i.duration):(i.timer.restart(p),i.state=ef,1),g=-1,_=a.length;++g<_;)a[g].call(e,v);i.state===ef&&(i.on.call("end",e,e.__data__,i.index,i.group),p())}function p(){i.state=Xl,i.timer.stop(),delete s[n];for(var m in s)return;delete e.__transition}}function Yl(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>Jc&&s.state<ef,s.state=Xl,s.timer.stop(),s.on.call(a?"interrupt":"cancel",e,e.__data__,s.index,s.group),delete i[f]}u&&delete e.__transition}}function kw(e){return this.each(function(){Yl(this,e)})}function Sw(e,n){var i,s;return function(){var a=Tn(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 bw(e,n,i){var s,a;if(typeof i!="function")throw new Error;return function(){var u=Tn(this,e),f=u.tween;if(f!==s){a=(s=f).slice();for(var h={name:n,value:i},p=0,m=a.length;p<m;++p)if(a[p].name===n){a[p]=h;break}p===m&&a.push(h)}u.tween=a}}function Cw(e,n){var i=this._id;if(e+="",arguments.length<2){for(var s=gn(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?Sw:bw)(i,e,n))}function Sf(e,n,i){var s=e._id;return e.each(function(){var a=Tn(this,s);(a.value||(a.value={}))[n]=i.apply(this,arguments)}),function(a){return gn(a,s).value[n]}}function J0(e,n){var i;return(typeof n=="number"?kr:n instanceof hs?Jp:(i=hs(n))?(n=i,Jp):sw)(e,n)}function Ew(e){return function(){this.removeAttribute(e)}}function Pw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nw(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 Tw(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 Mw(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 Ow(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 Rw(e,n){var i=ga(e),s=i==="transform"?cw:J0;return this.attrTween(e,typeof n=="function"?(i.local?Ow:Mw)(i,s,Sf(this,"attr."+e,n)):n==null?(i.local?Pw:Ew)(i):(i.local?Tw:Nw)(i,s,n))}function jw(e,n){return function(i){this.setAttribute(e,n.call(this,i))}}function Aw(e,n){return function(i){this.setAttributeNS(e.space,e.local,n.call(this,i))}}function zw(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&Aw(e,u)),i}return a._value=n,a}function Dw(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&jw(e,u)),i}return a._value=n,a}function Iw(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=ga(e);return this.tween(i,(s.local?zw:Dw)(s,n))}function Lw(e,n){return function(){kf(this,e).delay=+n.apply(this,arguments)}}function Fw(e,n){return n=+n,function(){kf(this,e).delay=n}}function $w(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?Lw:Fw)(n,e)):gn(this.node(),n).delay}function Uw(e,n){return function(){Tn(this,e).duration=+n.apply(this,arguments)}}function Hw(e,n){return n=+n,function(){Tn(this,e).duration=n}}function Vw(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?Uw:Hw)(n,e)):gn(this.node(),n).duration}function qw(e,n){if(typeof n!="function")throw new Error;return function(){Tn(this,e).ease=n}}function Bw(e){var n=this._id;return arguments.length?this.each(qw(n,e)):gn(this.node(),n).ease}function Qw(e,n){return function(){var i=n.apply(this,arguments);if(typeof i!="function")throw new Error;Tn(this,e).ease=i}}function Ww(e){if(typeof e!="function")throw new Error;return this.each(Qw(this._id,e))}function Kw(e){typeof e!="function"&&(e=R0(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,m=0;m<f;++m)(p=u[m])&&e.call(p,p.__data__,m,u)&&h.push(p);return new Xn(s,this._parents,this._name,this._id)}function Gw(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],m=i[h],v=p.length,g=f[h]=new Array(v),_,x=0;x<v;++x)(_=p[x]||m[x])&&(g[x]=_);for(;h<s;++h)f[h]=n[h];return new Xn(f,this._parents,this._name,this._id)}function Xw(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 Yw(e,n,i){var s,a,u=Xw(n)?kf:Tn;return function(){var f=u(this,e),h=f.on;h!==s&&(a=(s=h).copy()).on(n,i),f.on=a}}function Zw(e,n){var i=this._id;return arguments.length<2?gn(this.node(),i).on.on(e):this.each(Yw(i,e,n))}function Jw(e){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==e)return;n&&n.removeChild(this)}}function e2(){return this.on("end.remove",Jw(this._id))}function t2(e){var n=this._name,i=this._id;typeof e!="function"&&(e=yf(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,m=u[f]=new Array(p),v,g,_=0;_<p;++_)(v=h[_])&&(g=e.call(v,v.__data__,_,h))&&("__data__"in v&&(g.__data__=v.__data__),m[_]=g,ya(m[_],n,i,_,m,gn(v,i)));return new Xn(u,this._parents,n,i)}function n2(e){var n=this._name,i=this._id;typeof e!="function"&&(e=O0(e));for(var s=this._groups,a=s.length,u=[],f=[],h=0;h<a;++h)for(var p=s[h],m=p.length,v,g=0;g<m;++g)if(v=p[g]){for(var _=e.call(v,v.__data__,g,p),x,b=gn(v,i),C=0,S=_.length;C<S;++C)(x=_[C])&&ya(x,n,i,C,_,b);u.push(_),f.push(v)}return new Xn(u,f,n,i)}var r2=xs.prototype.constructor;function i2(){return new r2(this._groups,this._parents)}function o2(e,n){var i,s,a;return function(){var u=eo(this,e),f=(this.style.removeProperty(e),eo(this,e));return u===f?null:u===i&&f===s?a:a=n(i=u,s=f)}}function em(e){return function(){this.style.removeProperty(e)}}function s2(e,n,i){var s,a=i+"",u;return function(){var f=eo(this,e);return f===a?null:f===s?u:u=n(s=f,i)}}function l2(e,n,i){var s,a,u;return function(){var f=eo(this,e),h=i(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(e),eo(this,e))),f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h))}}function a2(e,n){var i,s,a,u="style."+n,f="end."+u,h;return function(){var p=Tn(this,e),m=p.on,v=p.value[u]==null?h||(h=em(n)):void 0;(m!==i||a!==v)&&(s=(i=m).copy()).on(f,a=v),p.on=s}}function u2(e,n,i){var s=(e+="")=="transform"?uw:J0;return n==null?this.styleTween(e,o2(e,s)).on("end.style."+e,em(e)):typeof n=="function"?this.styleTween(e,l2(e,s,Sf(this,"style."+e,n))).each(a2(this._id,e)):this.styleTween(e,s2(e,s,n),i).on("end.style."+e,null)}function c2(e,n,i){return function(s){this.style.setProperty(e,n.call(this,s),i)}}function f2(e,n,i){var s,a;function u(){var f=n.apply(this,arguments);return f!==a&&(s=(a=f)&&c2(e,f,i)),s}return u._value=n,u}function h2(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,f2(e,n,i??""))}function d2(e){return function(){this.textContent=e}}function p2(e){return function(){var n=e(this);this.textContent=n??""}}function g2(e){return this.tween("text",typeof e=="function"?p2(Sf(this,"text",e)):d2(e==null?"":e+""))}function m2(e){return function(n){this.textContent=e.call(this,n)}}function y2(e){var n,i;function s(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&m2(a)),n}return s._value=e,s}function v2(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,y2(e))}function _2(){for(var e=this._name,n=this._id,i=tm(),s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,m=0;m<h;++m)if(p=f[m]){var v=gn(p,n);ya(p,e,i,m,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Xn(s,this._parents,e,i)}function x2(){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 m=Tn(this,s),v=m.on;v!==e&&(n=(e=v).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),m.on=n}),a===0&&u()})}var w2=0;function Xn(e,n,i,s){this._groups=e,this._parents=n,this._name=i,this._id=s}function tm(){return++w2}var Ln=xs.prototype;Xn.prototype={constructor:Xn,select:t2,selectAll:n2,selectChild:Ln.selectChild,selectChildren:Ln.selectChildren,filter:Kw,merge:Gw,selection:i2,transition:_2,call:Ln.call,nodes:Ln.nodes,node:Ln.node,size:Ln.size,empty:Ln.empty,each:Ln.each,on:Zw,attr:Rw,attrTween:Iw,style:u2,styleTween:h2,text:g2,textTween:v2,remove:e2,tween:Cw,delay:$w,duration:Vw,ease:Bw,easeVarying:Ww,end:x2,[Symbol.iterator]:Ln[Symbol.iterator]};function k2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var S2={time:null,delay:0,duration:250,ease:k2};function b2(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 C2(e){var n,i;e instanceof Xn?(n=e._id,e=e._name):(n=tm(),(i=S2).time=xf(),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,m=0;m<h;++m)(p=f[m])&&ya(p,e,n,m,f,i||b2(p,n));return new Xn(s,this._parents,e,n)}xs.prototype.interrupt=kw;xs.prototype.transition=C2;const Vl=e=>()=>e;function E2(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 Qn(e,n,i){this.k=e,this.x=n,this.y=i}Qn.prototype={constructor:Qn,scale:function(e){return e===1?this:new Qn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Qn(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 bf=new Qn(1,0,0);wn.prototype=Qn.prototype;function wn(e){for(;!e.__zoom;)if(!(e=e.parentNode))return bf;return e.__zoom}function kc(e){e.stopImmediatePropagation()}function Wo(e){e.preventDefault(),e.stopImmediatePropagation()}function P2(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function N2(){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 sg(){return this.__zoom||bf}function T2(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function M2(){return navigator.maxTouchPoints||"ontouchstart"in this}function O2(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 R2(){var e=P2,n=N2,i=O2,s=T2,a=M2,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=pw,m=ws("start","zoom","end"),v,g,_,x=500,b=150,C=0,S=10;function k($){$.property("__zoom",sg).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",B).on("dblclick.zoom",K).filter(a).on("touchstart.zoom",Z).on("touchmove.zoom",ie).on("touchend.zoom touchcancel.zoom",ce).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function($,te,W,oe){var Q=$.selection?$.selection():$;Q.property("__zoom",sg),$!==Q?N($,te,W,oe):Q.interrupt().each(function(){D(this,arguments).event(oe).start().zoom(null,typeof te=="function"?te.apply(this,arguments):te).end()})},k.scaleBy=function($,te,W,oe){k.scaleTo($,function(){var Q=this.__zoom.k,J=typeof te=="function"?te.apply(this,arguments):te;return Q*J},W,oe)},k.scaleTo=function($,te,W,oe){k.transform($,function(){var Q=n.apply(this,arguments),J=this.__zoom,G=W==null?P(Q):typeof W=="function"?W.apply(this,arguments):W,R=J.invert(G),q=typeof te=="function"?te.apply(this,arguments):te;return i(j(O(J,q),G,R),Q,f)},W,oe)},k.translateBy=function($,te,W,oe){k.transform($,function(){return i(this.__zoom.translate(typeof te=="function"?te.apply(this,arguments):te,typeof W=="function"?W.apply(this,arguments):W),n.apply(this,arguments),f)},null,oe)},k.translateTo=function($,te,W,oe,Q){k.transform($,function(){var J=n.apply(this,arguments),G=this.__zoom,R=oe==null?P(J):typeof oe=="function"?oe.apply(this,arguments):oe;return i(bf.translate(R[0],R[1]).scale(G.k).translate(typeof te=="function"?-te.apply(this,arguments):-te,typeof W=="function"?-W.apply(this,arguments):-W),J,f)},oe,Q)};function O($,te){return te=Math.max(u[0],Math.min(u[1],te)),te===$.k?$:new Qn(te,$.x,$.y)}function j($,te,W){var oe=te[0]-W[0]*$.k,Q=te[1]-W[1]*$.k;return oe===$.x&&Q===$.y?$:new Qn($.k,oe,Q)}function P($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function N($,te,W,oe){$.on("start.zoom",function(){D(this,arguments).event(oe).start()}).on("interrupt.zoom end.zoom",function(){D(this,arguments).event(oe).end()}).tween("zoom",function(){var Q=this,J=arguments,G=D(Q,J).event(oe),R=n.apply(Q,J),q=W==null?P(R):typeof W=="function"?W.apply(Q,J):W,le=Math.max(R[1][0]-R[0][0],R[1][1]-R[0][1]),ge=Q.__zoom,ke=typeof te=="function"?te.apply(Q,J):te,be=p(ge.invert(q).concat(le/ge.k),ke.invert(q).concat(le/ke.k));return function(Ee){if(Ee===1)Ee=ke;else{var Ce=be(Ee),je=le/Ce[2];Ee=new Qn(je,q[0]-Ce[0]*je,q[1]-Ce[1]*je)}G.zoom(null,Ee)}})}function D($,te,W){return!W&&$.__zooming||new F($,te)}function F($,te){this.that=$,this.args=te,this.active=0,this.sourceEvent=null,this.extent=n.apply($,te),this.taps=0}F.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,te){return this.mouse&&$!=="mouse"&&(this.mouse[1]=te.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=te.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=te.invert(this.touch1[0])),this.that.__zoom=te,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var te=Jt(this.that).datum();m.call($,this.that,new E2($,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:m}),te)}};function I($,...te){if(!e.apply(this,arguments))return;var W=D(this,te).event($),oe=this.__zoom,Q=Math.max(u[0],Math.min(u[1],oe.k*Math.pow(2,s.apply(this,arguments)))),J=kn($);if(W.wheel)(W.mouse[0][0]!==J[0]||W.mouse[0][1]!==J[1])&&(W.mouse[1]=oe.invert(W.mouse[0]=J)),clearTimeout(W.wheel);else{if(oe.k===Q)return;W.mouse=[J,oe.invert(J)],Yl(this),W.start()}Wo($),W.wheel=setTimeout(G,b),W.zoom("mouse",i(j(O(oe,Q),W.mouse[0],W.mouse[1]),W.extent,f));function G(){W.wheel=null,W.end()}}function B($,...te){if(_||!e.apply(this,arguments))return;var W=$.currentTarget,oe=D(this,te,!0).event($),Q=Jt($.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",le,!0),J=kn($,W),G=$.clientX,R=$.clientY;H0($.view),kc($),oe.mouse=[J,this.__zoom.invert(J)],Yl(this),oe.start();function q(ge){if(Wo(ge),!oe.moved){var ke=ge.clientX-G,be=ge.clientY-R;oe.moved=ke*ke+be*be>C}oe.event(ge).zoom("mouse",i(j(oe.that.__zoom,oe.mouse[0]=kn(ge,W),oe.mouse[1]),oe.extent,f))}function le(ge){Q.on("mousemove.zoom mouseup.zoom",null),V0(ge.view,oe.moved),Wo(ge),oe.event(ge).end()}}function K($,...te){if(e.apply(this,arguments)){var W=this.__zoom,oe=kn($.changedTouches?$.changedTouches[0]:$,this),Q=W.invert(oe),J=W.k*($.shiftKey?.5:2),G=i(j(O(W,J),oe,Q),n.apply(this,te),f);Wo($),h>0?Jt(this).transition().duration(h).call(N,G,oe,$):Jt(this).call(k.transform,G,oe,$)}}function Z($,...te){if(e.apply(this,arguments)){var W=$.touches,oe=W.length,Q=D(this,te,$.changedTouches.length===oe).event($),J,G,R,q;for(kc($),G=0;G<oe;++G)R=W[G],q=kn(R,this),q=[q,this.__zoom.invert(q),R.identifier],Q.touch0?!Q.touch1&&Q.touch0[2]!==q[2]&&(Q.touch1=q,Q.taps=0):(Q.touch0=q,J=!0,Q.taps=1+!!v);v&&(v=clearTimeout(v)),J&&(Q.taps<2&&(g=q[0],v=setTimeout(function(){v=null},x)),Yl(this),Q.start())}}function ie($,...te){if(this.__zooming){var W=D(this,te).event($),oe=$.changedTouches,Q=oe.length,J,G,R,q;for(Wo($),J=0;J<Q;++J)G=oe[J],R=kn(G,this),W.touch0&&W.touch0[2]===G.identifier?W.touch0[0]=R:W.touch1&&W.touch1[2]===G.identifier&&(W.touch1[0]=R);if(G=W.that.__zoom,W.touch1){var le=W.touch0[0],ge=W.touch0[1],ke=W.touch1[0],be=W.touch1[1],Ee=(Ee=ke[0]-le[0])*Ee+(Ee=ke[1]-le[1])*Ee,Ce=(Ce=be[0]-ge[0])*Ce+(Ce=be[1]-ge[1])*Ce;G=O(G,Math.sqrt(Ee/Ce)),R=[(le[0]+ke[0])/2,(le[1]+ke[1])/2],q=[(ge[0]+be[0])/2,(ge[1]+be[1])/2]}else if(W.touch0)R=W.touch0[0],q=W.touch0[1];else return;W.zoom("touch",i(j(G,R,q),W.extent,f))}}function ce($,...te){if(this.__zooming){var W=D(this,te).event($),oe=$.changedTouches,Q=oe.length,J,G;for(kc($),_&&clearTimeout(_),_=setTimeout(function(){_=null},x),J=0;J<Q;++J)G=oe[J],W.touch0&&W.touch0[2]===G.identifier?delete W.touch0:W.touch1&&W.touch1[2]===G.identifier&&delete W.touch1;if(W.touch1&&!W.touch0&&(W.touch0=W.touch1,delete W.touch1),W.touch0)W.touch0[1]=this.__zoom.invert(W.touch0[0]);else if(W.end(),W.taps===2&&(G=kn(G,this),Math.hypot(g[0]-G[0],g[1]-G[1])<S)){var R=Jt(this).on("dblclick.zoom");R&&R.apply(this,arguments)}}}return k.wheelDelta=function($){return arguments.length?(s=typeof $=="function"?$:Vl(+$),k):s},k.filter=function($){return arguments.length?(e=typeof $=="function"?$:Vl(!!$),k):e},k.touchable=function($){return arguments.length?(a=typeof $=="function"?$:Vl(!!$),k):a},k.extent=function($){return arguments.length?(n=typeof $=="function"?$:Vl([[+$[0][0],+$[0][1]],[+$[1][0],+$[1][1]]]),k):n},k.scaleExtent=function($){return arguments.length?(u[0]=+$[0],u[1]=+$[1],k):[u[0],u[1]]},k.translateExtent=function($){return arguments.length?(f[0][0]=+$[0][0],f[1][0]=+$[1][0],f[0][1]=+$[0][1],f[1][1]=+$[1][1],k):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},k.constrain=function($){return arguments.length?(i=$,k):i},k.duration=function($){return arguments.length?(h=+$,k):h},k.interpolate=function($){return arguments.length?(p=$,k):p},k.on=function(){var $=m.on.apply(m,arguments);return $===m?k:$},k.clickDistance=function($){return arguments.length?(C=($=+$)*$,k):Math.sqrt(C)},k.tapDistance=function($){return arguments.length?(S=+$,k):S},k}class lg extends Map{constructor(n,i=z2){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(ag(this,n))}has(n){return super.has(ag(this,n))}set(n,i){return super.set(j2(this,n),i)}delete(n){return super.delete(A2(this,n))}}function ag({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):i}function j2({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):(e.set(s,i),i)}function A2({_intern:e,_key:n},i){const s=n(i);return e.has(s)&&(i=e.get(s),e.delete(s)),i}function z2(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ug(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 cg(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 D2(e,n){let i=0;for(let s of e)(s=+s)&&(i+=s);return i}var I2=typeof global=="object"&&global&&global.Object===Object&&global,L2=typeof self=="object"&&self&&self.Object===Object&&self,nm=I2||L2||Function("return this")(),la=nm.Symbol,rm=Object.prototype,F2=rm.hasOwnProperty,$2=rm.toString,Ko=la?la.toStringTag:void 0;function U2(e){var n=F2.call(e,Ko),i=e[Ko];try{e[Ko]=void 0;var s=!0}catch{}var a=$2.call(e);return s&&(n?e[Ko]=i:delete e[Ko]),a}var H2=Object.prototype,V2=H2.toString;function q2(e){return V2.call(e)}var B2="[object Null]",Q2="[object Undefined]",fg=la?la.toStringTag:void 0;function W2(e){return e==null?e===void 0?Q2:B2:fg&&fg in Object(e)?U2(e):q2(e)}function K2(e){return e!=null&&typeof e=="object"}var G2="[object Symbol]";function X2(e){return typeof e=="symbol"||K2(e)&&W2(e)==G2}var Y2=/\s/;function Z2(e){for(var n=e.length;n--&&Y2.test(e.charAt(n)););return n}var J2=/^\s+/;function ek(e){return e&&e.slice(0,Z2(e)+1).replace(J2,"")}function aa(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var hg=NaN,tk=/^[-+]0x[0-9a-f]+$/i,nk=/^0b[01]+$/i,rk=/^0o[0-7]+$/i,ik=parseInt;function dg(e){if(typeof e=="number")return e;if(X2(e))return hg;if(aa(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=aa(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=ek(e);var i=nk.test(e);return i||rk.test(e)?ik(e.slice(2),i?2:8):tk.test(e)?hg:+e}var Sc=function(){return nm.Date.now()},ok="Expected a function",sk=Math.max,lk=Math.min;function im(e,n,i){var s,a,u,f,h,p,m=0,v=!1,g=!1,_=!0;if(typeof e!="function")throw new TypeError(ok);n=dg(n)||0,aa(i)&&(v=!!i.leading,g="maxWait"in i,u=g?sk(dg(i.maxWait)||0,n):u,_="trailing"in i?!!i.trailing:_);function x(D){var F=s,I=a;return s=a=void 0,m=D,f=e.apply(I,F),f}function b(D){return m=D,h=setTimeout(k,n),v?x(D):f}function C(D){var F=D-p,I=D-m,B=n-F;return g?lk(B,u-I):B}function S(D){var F=D-p,I=D-m;return p===void 0||F>=n||F<0||g&&I>=u}function k(){var D=Sc();if(S(D))return O(D);h=setTimeout(k,C(D))}function O(D){return h=void 0,_&&s?x(D):(s=a=void 0,f)}function j(){h!==void 0&&clearTimeout(h),m=0,s=p=a=h=void 0}function P(){return h===void 0?f:O(Sc())}function N(){var D=Sc(),F=S(D);if(s=arguments,a=this,p=D,F){if(h===void 0)return b(p);if(g)return clearTimeout(h),h=setTimeout(k,n),x(p)}return h===void 0&&(h=setTimeout(k,n)),f}return N.cancel=j,N.flush=P,N}var ak="Expected a function";function uk(e,n,i){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(ak);return aa(i)&&(s="leading"in i?!!i.leading:s,a="trailing"in i?!!i.trailing:a),im(e,n,{leading:s,maxWait:n,trailing:a})}var li=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-li.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?li.Bounce.In(e*2)*.5:li.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}}}}),rs=function(){return performance.now()},om=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=rs()),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}(),tf={Linear:function(e,n){var i=e.length-1,s=i*n,a=Math.floor(s),u=tf.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}}},sm=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),nf=new om,pg=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=li.Linear.None,this._interpolationFunction=tf.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=sm.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=nf,nf.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=rs()),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),m=p?"array":typeof h,v=!p&&Array.isArray(s[f]);if(!(m==="undefined"||m==="function")){if(v){var g=s[f];if(g.length===0)continue;for(var _=[h],x=0,b=g.length;x<b;x+=1){var C=this._handleRelativeValue(h,g[x]);if(isNaN(C)){v=!1,console.warn("Found invalid interpolation list. Skipping.");break}_.push(C)}v&&(s[f]=_)}if((m==="object"||p)&&h&&!v){i[f]=p?[]:{};var S=h;for(var k in S)i[f][k]=S[k];a[f]=p?[]:{};var g=s[f];if(!this._isDynamic){var O={};for(var k in g)O[k]=g[k];s[f]=g=O}this._setupProperties(S,i[f],g,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=rs()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=rs()),!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=li.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=tf.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=rs()),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,m=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=m(),g=this._easingFunction(v);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,g),this._onUpdateCallback&&this._onUpdateCallback(this._object,v),this._duration===0||f>=this._duration)if(this._repeat>0){var _=Math.min(Math.trunc((f-this._duration)/h)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=_);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*_,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var x=0,b=this._chainedTweens.length;x<b;x++)this._chainedTweens[x].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]),m=Array.isArray(h),v=!p&&m;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}();sm.nextId;var Nn=nf;Nn.getAll.bind(Nn);Nn.removeAll.bind(Nn);Nn.add.bind(Nn);Nn.remove.bind(Nn);Nn.update.bind(Nn);function gg(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 ck(e){if(Array.isArray(e))return e}function fk(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function hk(e,n,i){return Object.defineProperty(e,"prototype",{writable:!1}),e}function dk(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,m=!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){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function pk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
110
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gk(e,n){return ck(e)||dk(e,n)||mk(e,n)||pk()}function mk(e,n){if(e){if(typeof e=="string")return gg(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)?gg(e,n):void 0}}var yk=hk(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(m,v){}:h;fk(this,e),this.name=n,this.defaultVal=a,this.triggerUpdate=f,this.onChange=p});function Cf(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,m=e.init,v=m===void 0?function(){}:m,g=e.update,_=g===void 0?function(){}:g,x=Object.keys(a).map(function(b){return new yk(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),j=O?S.shift():void 0,P=S[0],N=P===void 0?{}:P,D=Object.assign({},i instanceof Function?i(N):i,{initialised:!1}),F={};function I(Z){return B(Z,N),K(),I}var B=function(ie,ce){v.call(I,ie,D,ce),D.initialised=!0},K=im(function(){D.initialised&&(_.call(I,D,F),F={})},1);return x.forEach(function(Z){I[Z.name]=ie(Z);function ie(ce){var $=ce.name,te=ce.triggerUpdate,W=te===void 0?!1:te,oe=ce.onChange,Q=oe===void 0?function(R,q){}:oe,J=ce.defaultVal,G=J===void 0?null:J;return function(R){var q=D[$];if(!arguments.length)return q;var le=R===void 0?G:R;return D[$]=le,Q.call(I,le,D,q),!F.hasOwnProperty($)&&(F[$]=q),W&&K(),I}}}),Object.keys(f).forEach(function(Z){I[Z]=function(){for(var ie,ce=arguments.length,$=new Array(ce),te=0;te<ce;te++)$[te]=arguments[te];return(ie=f[Z]).call.apply(ie,[I,D].concat($))}}),Object.entries(p).forEach(function(Z){var ie=gk(Z,2),ce=ie[0],$=ie[1];return I[ce]=I[$]}),I.resetProps=function(){return x.forEach(function(Z){I[Z.name](Z.defaultVal)}),I},I.resetProps(),D._rerender=K,O&&j&&I(j),I}}var De=function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}};function ua(e){"@babel/helpers - typeof";return ua=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},ua(e)}var vk=/^\s+/,_k=/\s+$/;function ye(e,n){if(e=e||"",n=n||{},e instanceof ye)return e;if(!(this instanceof ye))return new ye(e,n);var i=xk(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}ye.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=lm(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=yg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=yg(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=mg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=mg(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 vg(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return bk(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(Ve(this._r,255)*100)+"%",g:Math.round(Ve(this._g,255)*100)+"%",b:Math.round(Ve(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ve(this._r,255)*100)+"%, "+Math.round(Ve(this._g,255)*100)+"%, "+Math.round(Ve(this._b,255)*100)+"%)":"rgba("+Math.round(Ve(this._r,255)*100)+"%, "+Math.round(Ve(this._g,255)*100)+"%, "+Math.round(Ve(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Dk[vg(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var i="#"+_g(this._r,this._g,this._b,this._a),s=i,a=this._gradientType?"GradientType = 1, ":"";if(n){var u=ye(n);s="#"+_g(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 ye(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(Nk,arguments)},brighten:function(){return this._applyModification(Tk,arguments)},darken:function(){return this._applyModification(Mk,arguments)},desaturate:function(){return this._applyModification(Ck,arguments)},saturate:function(){return this._applyModification(Ek,arguments)},greyscale:function(){return this._applyModification(Pk,arguments)},spin:function(){return this._applyModification(Ok,arguments)},_applyCombination:function(n,i){return n.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(Ak,arguments)},complement:function(){return this._applyCombination(Rk,arguments)},monochromatic:function(){return this._applyCombination(zk,arguments)},splitcomplement:function(){return this._applyCombination(jk,arguments)},triad:function(){return this._applyCombination(xg,[3])},tetrad:function(){return this._applyCombination(xg,[4])}};ye.fromRatio=function(e,n){if(ua(e)=="object"){var i={};for(var s in e)e.hasOwnProperty(s)&&(s==="a"?i[s]=e[s]:i[s]=is(e[s]));e=i}return ye(e,n)};function xk(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=$k(e)),ua(e)=="object"&&(Fn(e.r)&&Fn(e.g)&&Fn(e.b)?(n=wk(e.r,e.g,e.b),f=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fn(e.h)&&Fn(e.s)&&Fn(e.v)?(s=is(e.s),a=is(e.v),n=Sk(e.h,s,a),f=!0,h="hsv"):Fn(e.h)&&Fn(e.s)&&Fn(e.l)&&(s=is(e.s),u=is(e.l),n=kk(e.h,s,u),f=!0,h="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=lm(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 wk(e,n,i){return{r:Ve(e,255)*255,g:Ve(n,255)*255,b:Ve(i,255)*255}}function mg(e,n,i){e=Ve(e,255),n=Ve(n,255),i=Ve(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 kk(e,n,i){var s,a,u;e=Ve(e,360),n=Ve(n,100),i=Ve(i,100);function f(m,v,g){return g<0&&(g+=1),g>1&&(g-=1),g<1/6?m+(v-m)*6*g:g<1/2?v:g<2/3?m+(v-m)*(2/3-g)*6:m}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 yg(e,n,i){e=Ve(e,255),n=Ve(n,255),i=Ve(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 Sk(e,n,i){e=Ve(e,360)*6,n=Ve(n,100),i=Ve(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,m=[i,f,u,u,h,i][p],v=[h,i,i,f,u,u][p],g=[u,u,h,i,i,f][p];return{r:m*255,g:v*255,b:g*255}}function vg(e,n,i,s){var a=[pn(Math.round(e).toString(16)),pn(Math.round(n).toString(16)),pn(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 bk(e,n,i,s,a){var u=[pn(Math.round(e).toString(16)),pn(Math.round(n).toString(16)),pn(Math.round(i).toString(16)),pn(am(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 _g(e,n,i,s){var a=[pn(am(s)),pn(Math.round(e).toString(16)),pn(Math.round(n).toString(16)),pn(Math.round(i).toString(16))];return a.join("")}ye.equals=function(e,n){return!e||!n?!1:ye(e).toRgbString()==ye(n).toRgbString()};ye.random=function(){return ye.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Ck(e,n){n=n===0?0:n||10;var i=ye(e).toHsl();return i.s-=n/100,i.s=va(i.s),ye(i)}function Ek(e,n){n=n===0?0:n||10;var i=ye(e).toHsl();return i.s+=n/100,i.s=va(i.s),ye(i)}function Pk(e){return ye(e).desaturate(100)}function Nk(e,n){n=n===0?0:n||10;var i=ye(e).toHsl();return i.l+=n/100,i.l=va(i.l),ye(i)}function Tk(e,n){n=n===0?0:n||10;var i=ye(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)))),ye(i)}function Mk(e,n){n=n===0?0:n||10;var i=ye(e).toHsl();return i.l-=n/100,i.l=va(i.l),ye(i)}function Ok(e,n){var i=ye(e).toHsl(),s=(i.h+n)%360;return i.h=s<0?360+s:s,ye(i)}function Rk(e){var n=ye(e).toHsl();return n.h=(n.h+180)%360,ye(n)}function xg(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var i=ye(e).toHsl(),s=[ye(e)],a=360/n,u=1;u<n;u++)s.push(ye({h:(i.h+u*a)%360,s:i.s,l:i.l}));return s}function jk(e){var n=ye(e).toHsl(),i=n.h;return[ye(e),ye({h:(i+72)%360,s:n.s,l:n.l}),ye({h:(i+216)%360,s:n.s,l:n.l})]}function Ak(e,n,i){n=n||6,i=i||30;var s=ye(e).toHsl(),a=360/i,u=[ye(e)];for(s.h=(s.h-(a*n>>1)+720)%360;--n;)s.h=(s.h+a)%360,u.push(ye(s));return u}function zk(e,n){n=n||6;for(var i=ye(e).toHsv(),s=i.h,a=i.s,u=i.v,f=[],h=1/n;n--;)f.push(ye({h:s,s:a,v:u})),u=(u+h)%1;return f}ye.mix=function(e,n,i){i=i===0?0:i||50;var s=ye(e).toRgb(),a=ye(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 ye(f)};ye.readability=function(e,n){var i=ye(e),s=ye(n);return(Math.max(i.getLuminance(),s.getLuminance())+.05)/(Math.min(i.getLuminance(),s.getLuminance())+.05)};ye.isReadable=function(e,n,i){var s=ye.readability(e,n),a,u;switch(u=!1,a=Uk(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};ye.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 m=0;m<n.length;m++)u=ye.readability(e,n[m]),u>a&&(a=u,s=ye(n[m]));return ye.isReadable(e,s,{level:h,size:p})||!f?s:(i.includeFallbackColors=!1,ye.mostReadable(e,["#fff","#000"],i))};var rf=ye.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"},Dk=ye.hexNames=Ik(rf);function Ik(e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[e[i]]=i);return n}function lm(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ve(e,n){Lk(e)&&(e="100%");var i=Fk(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 va(e){return Math.min(1,Math.max(0,e))}function Ut(e){return parseInt(e,16)}function Lk(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Fk(e){return typeof e=="string"&&e.indexOf("%")!=-1}function pn(e){return e.length==1?"0"+e:""+e}function is(e){return e<=1&&(e=e*100+"%"),e}function am(e){return Math.round(parseFloat(e)*255).toString(16)}function wg(e){return Ut(e)/255}var un=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 Fn(e){return!!un.CSS_UNIT.exec(e)}function $k(e){e=e.replace(vk,"").replace(_k,"").toLowerCase();var n=!1;if(rf[e])e=rf[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i;return(i=un.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=un.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=un.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=un.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=un.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=un.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=un.hex8.exec(e))?{r:Ut(i[1]),g:Ut(i[2]),b:Ut(i[3]),a:wg(i[4]),format:n?"name":"hex8"}:(i=un.hex6.exec(e))?{r:Ut(i[1]),g:Ut(i[2]),b:Ut(i[3]),format:n?"name":"hex"}:(i=un.hex4.exec(e))?{r:Ut(i[1]+""+i[1]),g:Ut(i[2]+""+i[2]),b:Ut(i[3]+""+i[3]),a:wg(i[4]+""+i[4]),format:n?"name":"hex8"}:(i=un.hex3.exec(e))?{r:Ut(i[1]+""+i[1]),g:Ut(i[2]+""+i[2]),b:Ut(i[3]+""+i[3]),format:n?"name":"hex"}:!1}function Uk(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 of(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 Hk(e){if(Array.isArray(e))return of(e)}function um(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 Vk(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qk(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Xt(e,n){return e.get(um(e,n))}function kg(e,n,i){Vk(e,n),n.set(e,i)}function Sg(e,n,i){return e.set(um(e,n),i),i}function Bk(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,Yk(s.key),s)}}function Qk(e,n,i){return n&&Bk(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
111
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gk(e){return Hk(e)||Wk(e)||Zk(e)||Kk()}function Xk(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 Yk(e){var n=Xk(e,"string");return typeof n=="symbol"?n:n+""}function Zk(e,n){if(e){if(typeof e=="string")return of(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)?of(e,n):void 0}}var Jk=123,eS=function(n){return"#".concat(Math.min(n,Math.pow(2,24)).toString(16).padStart(6,"0"))},cm=function(n,i,s){return(n<<16)+(i<<8)+s},tS=function(n){var i=ye(n).toRgb(),s=i.r,a=i.g,u=i.b;return cm(s,a,u)},bg=function(n,i){return n*Jk%Math.pow(2,i)},Gr=new WeakMap,$n=new WeakMap,nS=function(){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;qk(this,e),kg(this,Gr,void 0),kg(this,$n,void 0),Sg($n,this,n),this.reset()}return Qk(e,[{key:"reset",value:function(){Sg(Gr,this,["__reserved for background__"])}},{key:"register",value:function(i){if(Xt(Gr,this).length>=Math.pow(2,24-Xt($n,this)))return null;var s=Xt(Gr,this).length,a=bg(s,Xt($n,this)),u=eS(s+(a<<24-Xt($n,this)));return Xt(Gr,this).push(i),u}},{key:"lookup",value:function(i){if(!i)return null;var s=typeof i=="string"?tS(i):cm.apply(void 0,Gk(i));if(!s)return null;var a=s&Math.pow(2,24-Xt($n,this))-1,u=s>>24-Xt($n,this)&Math.pow(2,Xt($n,this))-1;return bg(a,Xt($n,this))!==u||a>=Xt(Gr,this).length?null:Xt(Gr,this)[a]}}])}(),Ss,qe,fm,hm,Xr,Cg,dm,pm,gm,Ef,sf,lf,ps={},mm=[],rS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_a=Array.isArray;function En(e,n){for(var i in n)e[i]=n[i];return e}function Pf(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function iS(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?Ss.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 os(e,f,s,a,null)}function os(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??++fm,__i:-1,__u:0};return a==null&&qe.vnode!=null&&qe.vnode(u),u}function xa(e){return e.children}function Zl(e,n){this.props=e,this.context=n}function no(e,n){if(n==null)return e.__?no(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"?no(e):null}function ym(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 ym(e)}}function Eg(e){(!e.__d&&(e.__d=!0)&&Xr.push(e)&&!ca.__r++||Cg!=qe.debounceRendering)&&((Cg=qe.debounceRendering)||dm)(ca)}function ca(){for(var e,n,i,s,a,u,f,h=1;Xr.length;)Xr.length>h&&Xr.sort(pm),e=Xr.shift(),h=Xr.length,e.__d&&(i=void 0,a=(s=(n=e).__v).__e,u=[],f=[],n.__P&&((i=En({},s)).__v=s.__v+1,qe.vnode&&qe.vnode(i),Nf(n.__P,i,s,n.__n,n.__P.namespaceURI,32&s.__u?[a]:null,u,a??no(s),!!(32&s.__u),f),i.__v=s.__v,i.__.__k[i.__i]=i,xm(u,i,f),i.__e!=a&&ym(i)));ca.__r=0}function vm(e,n,i,s,a,u,f,h,p,m,v){var g,_,x,b,C,S,k=s&&s.__k||mm,O=n.length;for(p=oS(i,n,k,p,O),g=0;g<O;g++)(x=i.__k[g])!=null&&(_=x.__i==-1?ps:k[x.__i]||ps,x.__i=g,S=Nf(e,x,_,a,u,f,h,p,m,v),b=x.__e,x.ref&&_.ref!=x.ref&&(_.ref&&Tf(_.ref,null,x),v.push(x.ref,x.__c||b,x)),C==null&&b!=null&&(C=b),4&x.__u||_.__k===x.__k?p=_m(x,p,e):typeof x.type=="function"&&S!==void 0?p=S:b&&(p=b.nextSibling),x.__u&=-7);return i.__e=C,p}function oS(e,n,i,s,a){var u,f,h,p,m,v=i.length,g=v,_=0;for(e.__k=new Array(a),u=0;u<a;u++)(f=n[u])!=null&&typeof f!="boolean"&&typeof f!="function"?(p=u+_,(f=e.__k[u]=typeof f=="string"||typeof f=="number"||typeof f=="bigint"||f.constructor==String?os(null,f,null,null,null):_a(f)?os(xa,{children:f},null,null,null):f.constructor==null&&f.__b>0?os(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=e,f.__b=e.__b+1,h=null,(m=f.__i=sS(f,i,p,g))!=-1&&(g--,(h=i[m])&&(h.__u|=2)),h==null||h.__v==null?(m==-1&&(a>v?_--:a<v&&_++),typeof f.type!="function"&&(f.__u|=4)):m!=p&&(m==p-1?_--:m==p+1?_++:(m>p?_--:_++,f.__u|=4))):e.__k[u]=null;if(g)for(u=0;u<v;u++)(h=i[u])!=null&&(2&h.__u)==0&&(h.__e==s&&(s=no(h)),km(h,h));return s}function _m(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=_m(s[a],n,i));return n}e.__e!=n&&(n&&e.type&&!i.contains(n)&&(n=no(e)),i.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function sS(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 Pg(e,n,i){n[0]=="-"?e.setProperty(n,i??""):e[n]=i==null?"":typeof i!="number"||rS.test(n)?i:i+"px"}function ql(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||Pg(e.style,n,"");if(i)for(n in i)s&&i[n]==s[n]||Pg(e.style,n,i[n])}else if(n[0]=="o"&&n[1]=="n")u=n!=(n=n.replace(gm,"$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=Ef,e.addEventListener(n,u?lf:sf,u)):e.removeEventListener(n,u?lf:sf,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 Ng(e){return function(n){if(this.l){var i=this.l[n.type+e];if(n.t==null)n.t=Ef++;else if(n.t<i.u)return;return i(qe.event?qe.event(n):n)}}}function Nf(e,n,i,s,a,u,f,h,p,m){var v,g,_,x,b,C,S,k,O,j,P,N,D,F,I,B,K,Z=n.type;if(n.constructor!=null)return null;128&i.__u&&(p=!!(32&i.__u),u=[h=n.__e=i.__e]),(v=qe.__b)&&v(n);e:if(typeof Z=="function")try{if(k=n.props,O="prototype"in Z&&Z.prototype.render,j=(v=Z.contextType)&&s[v.__c],P=v?j?j.props.value:v.__:s,i.__c?S=(g=n.__c=i.__c).__=g.__E:(O?n.__c=g=new Z(k,P):(n.__c=g=new Zl(k,P),g.constructor=Z,g.render=aS),j&&j.sub(g),g.props=k,g.state||(g.state={}),g.context=P,g.__n=s,_=g.__d=!0,g.__h=[],g._sb=[]),O&&g.__s==null&&(g.__s=g.state),O&&Z.getDerivedStateFromProps!=null&&(g.__s==g.state&&(g.__s=En({},g.__s)),En(g.__s,Z.getDerivedStateFromProps(k,g.__s))),x=g.props,b=g.state,g.__v=n,_)O&&Z.getDerivedStateFromProps==null&&g.componentWillMount!=null&&g.componentWillMount(),O&&g.componentDidMount!=null&&g.__h.push(g.componentDidMount);else{if(O&&Z.getDerivedStateFromProps==null&&k!==x&&g.componentWillReceiveProps!=null&&g.componentWillReceiveProps(k,P),!g.__e&&g.shouldComponentUpdate!=null&&g.shouldComponentUpdate(k,g.__s,P)===!1||n.__v==i.__v){for(n.__v!=i.__v&&(g.props=k,g.state=g.__s,g.__d=!1),n.__e=i.__e,n.__k=i.__k,n.__k.some(function(ie){ie&&(ie.__=n)}),N=0;N<g._sb.length;N++)g.__h.push(g._sb[N]);g._sb=[],g.__h.length&&f.push(g);break e}g.componentWillUpdate!=null&&g.componentWillUpdate(k,g.__s,P),O&&g.componentDidUpdate!=null&&g.__h.push(function(){g.componentDidUpdate(x,b,C)})}if(g.context=P,g.props=k,g.__P=e,g.__e=!1,D=qe.__r,F=0,O){for(g.state=g.__s,g.__d=!1,D&&D(n),v=g.render(g.props,g.state,g.context),I=0;I<g._sb.length;I++)g.__h.push(g._sb[I]);g._sb=[]}else do g.__d=!1,D&&D(n),v=g.render(g.props,g.state,g.context),g.state=g.__s;while(g.__d&&++F<25);g.state=g.__s,g.getChildContext!=null&&(s=En(En({},s),g.getChildContext())),O&&!_&&g.getSnapshotBeforeUpdate!=null&&(C=g.getSnapshotBeforeUpdate(x,b)),B=v,v!=null&&v.type===xa&&v.key==null&&(B=wm(v.props.children)),h=vm(e,_a(B)?B:[B],n,i,s,a,u,f,h,p,m),g.base=n.__e,n.__u&=-161,g.__h.length&&f.push(g),S&&(g.__E=g.__=null)}catch(ie){if(n.__v=null,p||u!=null)if(ie.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(K=u.length;K--;)Pf(u[K]);else n.__e=i.__e,n.__k=i.__k;qe.__e(ie,n,i)}else u==null&&n.__v==i.__v?(n.__k=i.__k,n.__e=i.__e):h=n.__e=lS(i.__e,n,i,s,a,u,f,p,m);return(v=qe.diffed)&&v(n),128&n.__u?void 0:h}function xm(e,n,i){for(var s=0;s<i.length;s++)Tf(i[s],i[++s],i[++s]);qe.__c&&qe.__c(n,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(u){u.call(a)})}catch(u){qe.__e(u,a.__v)}})}function wm(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:_a(e)?e.map(wm):En({},e)}function lS(e,n,i,s,a,u,f,h,p){var m,v,g,_,x,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(m=0;m<u.length;m++)if((x=u[m])&&"setAttribute"in x==!!O&&(O?x.localName==O:x.nodeType==3)){e=x,u[m]=null;break}}if(e==null){if(O==null)return document.createTextNode(k);e=document.createElementNS(a,O,k.is&&k),h&&(qe.__m&&qe.__m(n,u),h=!1),u=null}if(O==null)S===k||h&&e.data==k||(e.data=k);else{if(u=u&&Ss.call(e.childNodes),S=i.props||ps,!h&&u!=null)for(S={},m=0;m<e.attributes.length;m++)S[(x=e.attributes[m]).name]=x.value;for(m in S)if(x=S[m],m!="children"){if(m=="dangerouslySetInnerHTML")g=x;else if(!(m in k)){if(m=="value"&&"defaultValue"in k||m=="checked"&&"defaultChecked"in k)continue;ql(e,m,null,x,a)}}for(m in k)x=k[m],m=="children"?_=x:m=="dangerouslySetInnerHTML"?v=x:m=="value"?b=x:m=="checked"?C=x:h&&typeof x!="function"||S[m]===x||ql(e,m,x,S[m],a);if(v)h||g&&(v.__html==g.__html||v.__html==e.innerHTML)||(e.innerHTML=v.__html),n.__k=[];else if(g&&(e.innerHTML=""),vm(n.type=="template"?e.content:e,_a(_)?_:[_],n,i,s,O=="foreignObject"?"http://www.w3.org/1999/xhtml":a,u,f,u?u[0]:i.__k&&no(i,0),h,p),u!=null)for(m=u.length;m--;)Pf(u[m]);h||(m="value",O=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[m]||O=="progress"&&!b||O=="option"&&b!=S[m])&&ql(e,m,b,S[m],a),m="checked",C!=null&&C!=e[m]&&ql(e,m,C,S[m],a))}return e}function Tf(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){qe.__e(a,i)}}function km(e,n,i){var s,a;if(qe.unmount&&qe.unmount(e),(s=e.ref)&&(s.current&&s.current!=e.__e||Tf(s,null,n)),(s=e.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(u){qe.__e(u,n)}s.base=s.__P=null}if(s=e.__k)for(a=0;a<s.length;a++)s[a]&&km(s[a],n,i||typeof e.type!="function");i||Pf(e.__e),e.__c=e.__=e.__e=void 0}function aS(e,n,i){return this.constructor(e,i)}function uS(e,n,i){var s,a,u,f;n==document&&(n=document.documentElement),qe.__&&qe.__(e,n),a=(s=!1)?null:n.__k,u=[],f=[],Nf(n,e=n.__k=iS(xa,null,[e]),a||ps,ps,n.namespaceURI,a?null:n.firstChild?Ss.call(n.childNodes):null,u,a?a.__e:n.firstChild,s,f),xm(u,e,f)}function Sm(e,n,i){var s,a,u,f,h=En({},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?Ss.call(arguments,2):i),os(e.type,h,s||e.key,a||e.ref,null)}Ss=mm.slice,qe={__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}},fm=0,hm=function(e){return e!=null&&e.constructor==null},Zl.prototype.setState=function(e,n){var i;i=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=En({},this.state),typeof e=="function"&&(e=e(En({},i),this.props)),e&&En(i,e),e!=null&&this.__v&&(n&&this._sb.push(n),Eg(this))},Zl.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Eg(this))},Zl.prototype.render=xa,Xr=[],dm=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pm=function(e,n){return e.__v.__b-n.__v.__b},ca.__r=0,gm=/(PointerCapture)$|Capture$/i,Ef=0,sf=Ng(!1),lf=Ng(!0);function Tg(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 cS(e){if(Array.isArray(e))return e}function fS(e,n,i){return(n=yS(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function hS(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,m=!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){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function dS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
112
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mg(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 pS(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Mg(Object(i),!0).forEach(function(s){fS(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Mg(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function gS(e,n){return cS(e)||hS(e,n)||vS(e,n)||dS()}function mS(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 yS(e){var n=mS(e,"string");return typeof n=="symbol"?n:n+""}function fa(e){"@babel/helpers - typeof";return fa=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},fa(e)}function vS(e,n){if(e){if(typeof e=="string")return Tg(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)?Tg(e,n):void 0}}var af=function(n){if(fa(n)!=="object")return n;var i=Sm(n);if(i.props){var s;i.props=pS({},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(af):af(i.props.children))}return i},_S=function(n){return hm(Sm(n))},xS=function(n,i){delete i.__k,uS(af(n),i)};function wS(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 kS=`.float-tooltip-kap {
|
|
113
|
-
position: absolute;
|
|
114
|
-
width: max-content; /* prevent shrinking near right edge */
|
|
115
|
-
max-width: max(50%, 150px);
|
|
116
|
-
padding: 3px 5px;
|
|
117
|
-
border-radius: 3px;
|
|
118
|
-
font: 12px sans-serif;
|
|
119
|
-
color: #eee;
|
|
120
|
-
background: rgba(0,0,0,0.6);
|
|
121
|
-
pointer-events: none;
|
|
122
|
-
}
|
|
123
|
-
`;wS(kS);var SS=Cf({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&&fa(n)==="object"&&!!n.node&&typeof n.node=="function",h=Jt(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(m){var v=gS(m,2),g=v[0],_=v[1];return i.tooltipEl.style(g,_)}),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(m){i.mouseInside=!0;var v=kn(m),g=h.node(),_=g.offsetWidth,x=g.offsetHeight,b=[i.offsetX===null||i.offsetX===void 0?"-".concat(v[0]/_*100,"%"):typeof i.offsetX=="number"?"calc(-50% + ".concat(i.offsetX,"px)"):i.offsetX,i.offsetY===null||i.offsetY===void 0?x>130&&x-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):_S(n.content)?(n.tooltipEl.text(""),xS(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 bS(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,m=0,v=0,g=0;for(f=0;f<h;++f)p=s[f],m+=p.x||0,v+=p.y||0,g+=p.z||0;for(m=(m/h-e)*a,v=(v/h-n)*a,g=(g/h-i)*a,f=0;f<h;++f)p=s[f],m&&(p.x-=m),v&&(p.y-=v),g&&(p.z-=g)}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 CS(e){const n=+this._x.call(null,e);return bm(this.cover(n),n,e)}function bm(e,n,i){if(isNaN(n))return e;var s,a=e._root,u={data:i},f=e._x0,h=e._x1,p,m,v,g,_;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[g=+v]))return s[g]=u,e;if(m=+e._x.call(null,a.data),n===m)return u.next=a,s?s[g]=u:e._root=u,e;do s=s?s[g]=new Array(2):e._root=new Array(2),(v=n>=(p=(f+h)/2))?f=p:h=p;while((g=+v)==(_=+(m>=p)));return s[_]=a,s[g]=u,e}function ES(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)bm(this,i[u],e[u]);return this}function PS(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 NS(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function TS(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Kn(e,n,i){this.node=e,this.x0=n,this.x1=i}function MS(e,n){var i,s=this._x0,a,u,f=this._x1,h=[],p=this._root,m,v;for(p&&h.push(new Kn(p,s,f)),n==null?n=1/0:(s=e-n,f=e+n);m=h.pop();)if(!(!(p=m.node)||(a=m.x0)>f||(u=m.x1)<s))if(p.length){var g=(a+u)/2;h.push(new Kn(p[1],g,u),new Kn(p[0],a,g)),(v=+(e>=g))&&(m=h[h.length-1],h[h.length-1]=h[h.length-1-v],h[h.length-1-v]=m)}else{var _=Math.abs(e-+this._x.call(null,p.data));_<n&&(n=_,s=e-_,f=e+_,i=p.data)}return i}function OS(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,m,v,g,_;if(!i)return this;if(i.length)for(;;){if((v=p>=(m=(f+h)/2))?f=m:h=m,n=i,!(i=i[g=+v]))return this;if(!i.length)break;n[g+1&1]&&(s=n,_=g)}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[g]=u:delete n[g],(i=n[0]||n[1])&&i===(n[1]||n[0])&&!i.length&&(s?s[_]=i:this._root=i),this):(this._root=u,this)}function RS(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function jS(){return this._root}function AS(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function zS(e){var n=[],i,s=this._root,a,u,f;for(s&&n.push(new Kn(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 Kn(a,h,f)),(a=s[0])&&n.push(new Kn(a,u,h))}return this}function DS(e){var n=[],i=[],s;for(this._root&&n.push(new Kn(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 Kn(u,f,p)),(u=a[1])&&n.push(new Kn(u,p,h))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.x1);return this}function IS(e){return e[0]}function LS(e){return arguments.length?(this._x=e,this):this._x}function Cm(e,n){var i=new Mf(n??IS,NaN,NaN);return e==null?i:i.addAll(e)}function Mf(e,n,i){this._x=e,this._x0=n,this._x1=i,this._root=void 0}function Og(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var zt=Cm.prototype=Mf.prototype;zt.copy=function(){var e=new Mf(this._x,this._x0,this._x1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Og(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]=Og(s));return e};zt.add=CS;zt.addAll=ES;zt.cover=PS;zt.data=NS;zt.extent=TS;zt.find=MS;zt.remove=OS;zt.removeAll=RS;zt.root=jS;zt.size=AS;zt.visit=zS;zt.visitAfter=DS;zt.x=LS;function FS(e){const n=+this._x.call(null,e),i=+this._y.call(null,e);return Em(this.cover(n,i),n,i,e)}function Em(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,m=e._x1,v=e._y1,g,_,x,b,C,S,k,O;if(!u)return e._root=f,e;for(;u.length;)if((C=n>=(g=(h+m)/2))?h=g:m=g,(S=i>=(_=(p+v)/2))?p=_:v=_,a=u,!(u=u[k=S<<1|C]))return a[k]=f,e;if(x=+e._x.call(null,u.data),b=+e._y.call(null,u.data),n===x&&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>=(g=(h+m)/2))?h=g:m=g,(S=i>=(_=(p+v)/2))?p=_:v=_;while((k=S<<1|C)===(O=(b>=_)<<1|x>=g));return a[O]=u,a[k]=f,e}function $S(e){var n,i,s=e.length,a,u,f=new Array(s),h=new Array(s),p=1/0,m=1/0,v=-1/0,g=-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<m&&(m=u),u>g&&(g=u));if(p>v||m>g)return this;for(this.cover(p,m).cover(v,g),i=0;i<s;++i)Em(this,f[i],h[i],e[i]);return this}function US(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,m;i>e||e>=a||s>n||n>=u;)switch(m=(n<s)<<1|e<i,p=new Array(4),p[m]=h,h=p,f*=2,m){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 HS(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function VS(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 bt(e,n,i,s,a){this.node=e,this.x0=n,this.y0=i,this.x1=s,this.y1=a}function qS(e,n,i){var s,a=this._x0,u=this._y0,f,h,p,m,v=this._x1,g=this._y1,_=[],x=this._root,b,C;for(x&&_.push(new bt(x,a,u,v,g)),i==null?i=1/0:(a=e-i,u=n-i,v=e+i,g=n+i,i*=i);b=_.pop();)if(!(!(x=b.node)||(f=b.x0)>v||(h=b.y0)>g||(p=b.x1)<a||(m=b.y1)<u))if(x.length){var S=(f+p)/2,k=(h+m)/2;_.push(new bt(x[3],S,k,p,m),new bt(x[2],f,k,S,m),new bt(x[1],S,h,p,k),new bt(x[0],f,h,S,k)),(C=(n>=k)<<1|e>=S)&&(b=_[_.length-1],_[_.length-1]=_[_.length-1-C],_[_.length-1-C]=b)}else{var O=e-+this._x.call(null,x.data),j=n-+this._y.call(null,x.data),P=O*O+j*j;if(P<i){var N=Math.sqrt(i=P);a=e-N,u=n-N,v=e+N,g=n+N,s=x.data}}return s}function BS(e){if(isNaN(v=+this._x.call(null,e))||isNaN(g=+this._y.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._x1,m=this._y1,v,g,_,x,b,C,S,k;if(!i)return this;if(i.length)for(;;){if((b=v>=(_=(f+p)/2))?f=_:p=_,(C=g>=(x=(h+m)/2))?h=x:m=x,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 QS(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function WS(){return this._root}function KS(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function GS(e){var n=[],i,s=this._root,a,u,f,h,p;for(s&&n.push(new bt(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 m=(u+h)/2,v=(f+p)/2;(a=s[3])&&n.push(new bt(a,m,v,h,p)),(a=s[2])&&n.push(new bt(a,u,v,m,p)),(a=s[1])&&n.push(new bt(a,m,f,h,v)),(a=s[0])&&n.push(new bt(a,u,f,m,v))}return this}function XS(e){var n=[],i=[],s;for(this._root&&n.push(new bt(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,m=s.y1,v=(f+p)/2,g=(h+m)/2;(u=a[0])&&n.push(new bt(u,f,h,v,g)),(u=a[1])&&n.push(new bt(u,v,h,p,g)),(u=a[2])&&n.push(new bt(u,f,g,v,m)),(u=a[3])&&n.push(new bt(u,v,g,p,m))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.x1,s.y1);return this}function YS(e){return e[0]}function ZS(e){return arguments.length?(this._x=e,this):this._x}function JS(e){return e[1]}function eb(e){return arguments.length?(this._y=e,this):this._y}function Pm(e,n,i){var s=new Of(n??YS,i??JS,NaN,NaN,NaN,NaN);return e==null?s:s.addAll(e)}function Of(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 Rg(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var Ct=Pm.prototype=Of.prototype;Ct.copy=function(){var e=new Of(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=Rg(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]=Rg(s));return e};Ct.add=FS;Ct.addAll=$S;Ct.cover=US;Ct.data=HS;Ct.extent=VS;Ct.find=qS;Ct.remove=BS;Ct.removeAll=QS;Ct.root=WS;Ct.size=KS;Ct.visit=GS;Ct.visitAfter=XS;Ct.x=ZS;Ct.y=eb;function tb(e){const n=+this._x.call(null,e),i=+this._y.call(null,e),s=+this._z.call(null,e);return Nm(this.cover(n,i,s),n,i,s,e)}function Nm(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,m=e._y0,v=e._z0,g=e._x1,_=e._y1,x=e._z1,b,C,S,k,O,j,P,N,D,F,I;if(!f)return e._root=h,e;for(;f.length;)if((P=n>=(b=(p+g)/2))?p=b:g=b,(N=i>=(C=(m+_)/2))?m=C:_=C,(D=s>=(S=(v+x)/2))?v=S:x=S,u=f,!(f=f[F=D<<2|N<<1|P]))return u[F]=h,e;if(k=+e._x.call(null,f.data),O=+e._y.call(null,f.data),j=+e._z.call(null,f.data),n===k&&i===O&&s===j)return h.next=f,u?u[F]=h:e._root=h,e;do u=u?u[F]=new Array(8):e._root=new Array(8),(P=n>=(b=(p+g)/2))?p=b:g=b,(N=i>=(C=(m+_)/2))?m=C:_=C,(D=s>=(S=(v+x)/2))?v=S:x=S;while((F=D<<2|N<<1|P)===(I=(j>=S)<<2|(O>=C)<<1|k>=b));return u[I]=f,u[F]=h,e}function nb(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,m=-1/0,v=-1/0;for(let g=0,_,x,b,C;g<n;++g)isNaN(x=+this._x.call(null,_=e[g]))||isNaN(b=+this._y.call(null,_))||isNaN(C=+this._z.call(null,_))||(i[g]=x,s[g]=b,a[g]=C,x<u&&(u=x),x>p&&(p=x),b<f&&(f=b),b>m&&(m=b),C<h&&(h=C),C>v&&(v=C));if(u>p||f>m||h>v)return this;this.cover(u,f,h).cover(p,m,v);for(let g=0;g<n;++g)Nm(this,i[g],s[g],a[g],e[g]);return this}function rb(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 m=f-s||1,v=this._root,g,_;s>e||e>=f||a>n||n>=h||u>i||i>=p;)switch(_=(i<u)<<2|(n<a)<<1|e<s,g=new Array(8),g[_]=v,v=g,m*=2,_){case 0:f=s+m,h=a+m,p=u+m;break;case 1:s=f-m,h=a+m,p=u+m;break;case 2:f=s+m,a=h-m,p=u+m;break;case 3:s=f-m,a=h-m,p=u+m;break;case 4:f=s+m,h=a+m,u=p-m;break;case 5:s=f-m,h=a+m,u=p-m;break;case 6:f=s+m,a=h-m,u=p-m;break;case 7:s=f-m,a=h-m,u=p-m;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 ib(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function ob(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 Ie(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 sb(e,n,i,s){var a,u=this._x0,f=this._y0,h=this._z0,p,m,v,g,_,x,b=this._x1,C=this._y1,S=this._z1,k=[],O=this._root,j,P;for(O&&k.push(new Ie(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);j=k.pop();)if(!(!(O=j.node)||(p=j.x0)>b||(m=j.y0)>C||(v=j.z0)>S||(g=j.x1)<u||(_=j.y1)<f||(x=j.z1)<h))if(O.length){var N=(p+g)/2,D=(m+_)/2,F=(v+x)/2;k.push(new Ie(O[7],N,D,F,g,_,x),new Ie(O[6],p,D,F,N,_,x),new Ie(O[5],N,m,F,g,D,x),new Ie(O[4],p,m,F,N,D,x),new Ie(O[3],N,D,v,g,_,F),new Ie(O[2],p,D,v,N,_,F),new Ie(O[1],N,m,v,g,D,F),new Ie(O[0],p,m,v,N,D,F)),(P=(i>=F)<<2|(n>=D)<<1|e>=N)&&(j=k[k.length-1],k[k.length-1]=k[k.length-1-P],k[k.length-1-P]=j)}else{var I=e-+this._x.call(null,O.data),B=n-+this._y.call(null,O.data),K=i-+this._z.call(null,O.data),Z=I*I+B*B+K*K;if(Z<s){var ie=Math.sqrt(s=Z);u=e-ie,f=n-ie,h=i-ie,b=e+ie,C=n+ie,S=i+ie,a=O.data}}return a}const lb=(e,n,i,s,a,u)=>Math.sqrt((e-s)**2+(n-a)**2+(i-u)**2);function ab(e,n,i,s){const a=[],u=e-s,f=n-s,h=i-s,p=e+s,m=n+s,v=i+s;return this.visit((g,_,x,b,C,S,k)=>{if(!g.length)do{const O=g.data;lb(e,n,i,this._x(O),this._y(O),this._z(O))<=s&&a.push(O)}while(g=g.next);return _>p||x>m||b>v||C<u||S<f||k<h}),a}function ub(e){if(isNaN(_=+this._x.call(null,e))||isNaN(x=+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,m=this._x1,v=this._y1,g=this._z1,_,x,b,C,S,k,O,j,P,N,D;if(!i)return this;if(i.length)for(;;){if((O=_>=(C=(f+m)/2))?f=C:m=C,(j=x>=(S=(h+v)/2))?h=S:v=S,(P=b>=(k=(p+g)/2))?p=k:g=k,n=i,!(i=i[N=P<<2|j<<1|O]))return this;if(!i.length)break;(n[N+1&7]||n[N+2&7]||n[N+3&7]||n[N+4&7]||n[N+5&7]||n[N+6&7]||n[N+7&7])&&(s=n,D=N)}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[N]=u:delete n[N],(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[D]=i:this._root=i),this):(this._root=u,this)}function cb(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function fb(){return this._root}function hb(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function db(e){var n=[],i,s=this._root,a,u,f,h,p,m,v;for(s&&n.push(new Ie(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,m=i.y1,v=i.z1)&&s.length){var g=(u+p)/2,_=(f+m)/2,x=(h+v)/2;(a=s[7])&&n.push(new Ie(a,g,_,x,p,m,v)),(a=s[6])&&n.push(new Ie(a,u,_,x,g,m,v)),(a=s[5])&&n.push(new Ie(a,g,f,x,p,_,v)),(a=s[4])&&n.push(new Ie(a,u,f,x,g,_,v)),(a=s[3])&&n.push(new Ie(a,g,_,h,p,m,x)),(a=s[2])&&n.push(new Ie(a,u,_,h,g,m,x)),(a=s[1])&&n.push(new Ie(a,g,f,h,p,_,x)),(a=s[0])&&n.push(new Ie(a,u,f,h,g,_,x))}return this}function pb(e){var n=[],i=[],s;for(this._root&&n.push(new Ie(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,m=s.x1,v=s.y1,g=s.z1,_=(f+m)/2,x=(h+v)/2,b=(p+g)/2;(u=a[0])&&n.push(new Ie(u,f,h,p,_,x,b)),(u=a[1])&&n.push(new Ie(u,_,h,p,m,x,b)),(u=a[2])&&n.push(new Ie(u,f,x,p,_,v,b)),(u=a[3])&&n.push(new Ie(u,_,x,p,m,v,b)),(u=a[4])&&n.push(new Ie(u,f,h,b,_,x,g)),(u=a[5])&&n.push(new Ie(u,_,h,b,m,x,g)),(u=a[6])&&n.push(new Ie(u,f,x,b,_,v,g)),(u=a[7])&&n.push(new Ie(u,_,x,b,m,v,g))}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 gb(e){return e[0]}function mb(e){return arguments.length?(this._x=e,this):this._x}function yb(e){return e[1]}function vb(e){return arguments.length?(this._y=e,this):this._y}function _b(e){return e[2]}function xb(e){return arguments.length?(this._z=e,this):this._z}function Tm(e,n,i,s){var a=new Rf(n??gb,i??yb,s??_b,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?a:a.addAll(e)}function Rf(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 jg(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var ut=Tm.prototype=Rf.prototype;ut.copy=function(){var e=new Rf(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=jg(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]=jg(s));return e};ut.add=tb;ut.addAll=nb;ut.cover=rb;ut.data=ib;ut.extent=ob;ut.find=sb;ut.findAllWithinRadius=ab;ut.remove=ub;ut.removeAll=cb;ut.root=fb;ut.size=hb;ut.visit=db;ut.visitAfter=pb;ut.x=mb;ut.y=vb;ut.z=xb;function Wn(e){return function(){return e}}function Vn(e){return(e()-.5)*1e-6}function wb(e){return e.index}function Ag(e,n){var i=e.get(n);if(!i)throw new Error("node not found: "+n);return i}function kb(e){var n=wb,i=_,s,a=Wn(30),u,f,h,p,m,v,g=1;e==null&&(e=[]);function _(k){return 1/Math.min(p[k.source.index],p[k.target.index])}function x(k){for(var O=0,j=e.length;O<g;++O)for(var P=0,N,D,F,I=0,B=0,K=0,Z,ie;P<j;++P)N=e[P],D=N.source,F=N.target,I=F.x+F.vx-D.x-D.vx||Vn(v),h>1&&(B=F.y+F.vy-D.y-D.vy||Vn(v)),h>2&&(K=F.z+F.vz-D.z-D.vz||Vn(v)),Z=Math.sqrt(I*I+B*B+K*K),Z=(Z-u[P])/Z*k*s[P],I*=Z,B*=Z,K*=Z,F.vx-=I*(ie=m[P]),h>1&&(F.vy-=B*ie),h>2&&(F.vz-=K*ie),D.vx+=I*(ie=1-ie),h>1&&(D.vy+=B*ie),h>2&&(D.vz+=K*ie)}function b(){if(f){var k,O=f.length,j=e.length,P=new Map(f.map((D,F)=>[n(D,F,f),D])),N;for(k=0,p=new Array(O);k<j;++k)N=e[k],N.index=k,typeof N.source!="object"&&(N.source=Ag(P,N.source)),typeof N.target!="object"&&(N.target=Ag(P,N.target)),p[N.source.index]=(p[N.source.index]||0)+1,p[N.target.index]=(p[N.target.index]||0)+1;for(k=0,m=new Array(j);k<j;++k)N=e[k],m[k]=p[N.source.index]/(p[N.source.index]+p[N.target.index]);s=new Array(j),C(),u=new Array(j),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 x.initialize=function(k,...O){f=k,v=O.find(j=>typeof j=="function")||Math.random,h=O.find(j=>[1,2,3].includes(j))||2,b()},x.links=function(k){return arguments.length?(e=k,b(),x):e},x.id=function(k){return arguments.length?(n=k,x):n},x.iterations=function(k){return arguments.length?(g=+k,x):g},x.strength=function(k){return arguments.length?(i=typeof k=="function"?k:Wn(+k),C(),x):i},x.distance=function(k){return arguments.length?(a=typeof k=="function"?k:Wn(+k),S(),x):a},x}const Sb=1664525,bb=1013904223,zg=4294967296;function Cb(){let e=1;return()=>(e=(Sb*e+bb)%zg)/zg}var Dg=3;function bc(e){return e.x}function Ig(e){return e.y}function Eb(e){return e.z}var Pb=10,Nb=Math.PI*(3-Math.sqrt(5)),Tb=Math.PI*20/(9+Math.sqrt(221));function Mb(e,n){n=n||2;var i=Math.min(Dg,Math.max(1,Math.round(n))),s,a=1,u=.001,f=1-Math.pow(u,1/300),h=0,p=.6,m=new Map,v=wf(x),g=ws("tick","end"),_=Cb();e==null&&(e=[]);function x(){b(),g.call("tick",s),a<u&&(v.stop(),g.call("end",s))}function b(k){var O,j=e.length,P;k===void 0&&(k=1);for(var N=0;N<k;++N)for(a+=(h-a)*f,m.forEach(function(D){D(a)}),O=0;O<j;++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,j;k<O;++k){if(j=e[k],j.index=k,j.fx!=null&&(j.x=j.fx),j.fy!=null&&(j.y=j.fy),j.fz!=null&&(j.z=j.fz),isNaN(j.x)||i>1&&isNaN(j.y)||i>2&&isNaN(j.z)){var P=Pb*(i>2?Math.cbrt(.5+k):i>1?Math.sqrt(.5+k):k),N=k*Nb,D=k*Tb;i===1?j.x=P:i===2?(j.x=P*Math.cos(N),j.y=P*Math.sin(N)):(j.x=P*Math.sin(N)*Math.cos(D),j.y=P*Math.cos(N),j.z=P*Math.sin(N)*Math.sin(D))}(isNaN(j.vx)||i>1&&isNaN(j.vy)||i>2&&isNaN(j.vz))&&(j.vx=0,i>1&&(j.vy=0),i>2&&(j.vz=0))}}function S(k){return k.initialize&&k.initialize(e,_,i),k}return C(),s={tick:b,restart:function(){return v.restart(x),s},stop:function(){return v.stop(),s},numDimensions:function(k){return arguments.length?(i=Math.min(Dg,Math.max(1,Math.round(k))),m.forEach(S),s):i},nodes:function(k){return arguments.length?(e=k,C(),m.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?(_=k,m.forEach(S),s):_},force:function(k,O){return arguments.length>1?(O==null?m.delete(k):m.set(k,S(O)),s):m.get(k)},find:function(){var k=Array.prototype.slice.call(arguments),O=k.shift()||0,j=(i>1?k.shift():null)||0,P=(i>2?k.shift():null)||0,N=k.shift()||1/0,D=0,F=e.length,I,B,K,Z,ie,ce;for(N*=N,D=0;D<F;++D)ie=e[D],I=O-ie.x,B=j-(ie.y||0),K=P-(ie.z||0),Z=I*I+B*B+K*K,Z<N&&(ce=ie,N=Z);return ce},on:function(k,O){return arguments.length>1?(g.on(k,O),s):g.on(k)}}}function Ob(){var e,n,i,s,a,u=Wn(-30),f,h=1,p=1/0,m=.81;function v(b){var C,S=e.length,k=(n===1?Cm(e,bc):n===2?Pm(e,bc,Ig):n===3?Tm(e,bc,Ig,Eb):null).visitAfter(_);for(a=b,C=0;C<S;++C)i=e[C],k.visit(x)}function g(){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 _(b){var C=0,S,k,O=0,j,P,N,D,F=b.length;if(F){for(j=P=N=D=0;D<F;++D)(S=b[D])&&(k=Math.abs(S.value))&&(C+=S.value,O+=k,j+=k*(S.x||0),P+=k*(S.y||0),N+=k*(S.z||0));C*=Math.sqrt(4/F),b.x=j/O,n>1&&(b.y=P/O),n>2&&(b.z=N/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 x(b,C,S,k,O){if(!b.value)return!0;var j=[S,k,O][n-1],P=b.x-i.x,N=n>1?b.y-i.y:0,D=n>2?b.z-i.z:0,F=j-C,I=P*P+N*N+D*D;if(F*F/m<I)return I<p&&(P===0&&(P=Vn(s),I+=P*P),n>1&&N===0&&(N=Vn(s),I+=N*N),n>2&&D===0&&(D=Vn(s),I+=D*D),I<h&&(I=Math.sqrt(h*I)),i.vx+=P*b.value*a/I,n>1&&(i.vy+=N*b.value*a/I),n>2&&(i.vz+=D*b.value*a/I)),!0;if(b.length||I>=p)return;(b.data!==i||b.next)&&(P===0&&(P=Vn(s),I+=P*P),n>1&&N===0&&(N=Vn(s),I+=N*N),n>2&&D===0&&(D=Vn(s),I+=D*D),I<h&&(I=Math.sqrt(h*I)));do b.data!==i&&(F=f[b.data.index]*a/I,i.vx+=P*F,n>1&&(i.vy+=N*F),n>2&&(i.vz+=D*F));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,g()},v.strength=function(b){return arguments.length?(u=typeof b=="function"?b:Wn(+b),g(),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?(m=b*b,v):Math.sqrt(m)},v}function Rb(e,n,i,s){var a,u,f=Wn(.1),h,p;typeof e!="function"&&(e=Wn(+e)),n==null&&(n=0),i==null&&(i=0),s==null&&(s=0);function m(g){for(var _=0,x=a.length;_<x;++_){var b=a[_],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),j=(p[_]-O)*h[_]*g/O;b.vx+=C*j,u>1&&(b.vy+=S*j),u>2&&(b.vz+=k*j)}}function v(){if(a){var g,_=a.length;for(h=new Array(_),p=new Array(_),g=0;g<_;++g)p[g]=+e(a[g],g,a),h[g]=isNaN(p[g])?0:+f(a[g],g,a)}}return m.initialize=function(g,..._){a=g,u=_.find(x=>[1,2,3].includes(x))||2,v()},m.strength=function(g){return arguments.length?(f=typeof g=="function"?g:Wn(+g),v(),m):f},m.radius=function(g){return arguments.length?(e=typeof g=="function"?g:Wn(+g),v(),m):e},m.x=function(g){return arguments.length?(n=+g,m):n},m.y=function(g){return arguments.length?(i=+g,m):i},m.z=function(g){return arguments.length?(s=+g,m):s},m}const{abs:Go,cos:Un,sin:Ii,acos:jb,atan2:Xo,sqrt:_r,pow:Yt}=Math;function Yo(e){return e<0?-Yt(-e,1/3):Yt(e,1/3)}const Mm=Math.PI,Bl=2*Mm,xr=Mm/2,Ab=1e-6,Cc=Number.MAX_SAFE_INTEGER||9007199254740991,Ec=Number.MIN_SAFE_INTEGER||-9007199254740991,zb={x:0,y:0,z:0},re={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),_r(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,m,v,g,_=0;s===2?(u=[u[0],u[1],u[2],zb],m=h,v=a*e*2,g=p):s===3&&(m=h*a,v=h*e*3,g=a*p*3,_=e*p);const x={x:m*u[0].x+v*u[1].x+g*u[2].x+_*u[3].x,y:m*u[0].y+v*u[1].y+g*u[2].y+_*u[3].y,t:e};return i&&(x.z=m*u[0].z+v*u[1].z+g*u[2].z+_*u[3].z),x}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],m=u[2],v=u[3],g;if(h*=a,p*=e,f.length===2)return g=h+p,{x:(h*f[0].x+p*f[1].x)/g,y:(h*f[0].y+p*f[1].y)/g,z:s?(h*f[0].z+p*f[1].z)/g:!1,t:e};if(h*=a,p*=2*a,m*=e*e,f.length===3)return g=h+p+m,{x:(h*f[0].x+p*f[1].x+m*f[2].x)/g,y:(h*f[0].y+p*f[1].y+m*f[2].y)/g,z:s?(h*f[0].z+p*f[1].z+m*f[2].z)/g:!1,t:e};if(h*=a,p*=1.5*a,m*=3*a,v*=e*e*e,f.length===4)return g=h+p+m+v,{x:(h*f[0].x+p*f[1].x+m*f[2].x+v*f[3].x)/g,y:(h*f[0].y+p*f[1].y+m*f[2].y+v*f[3].y)/g,z:s?(h*f[0].z+p*f[1].z+m*f[2].z+v*f[3].z)/g:!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||re.approximately(e,n)||re.approximately(e,i)},approximately:function(e,n,i){return Go(e-n)<=(i||Ab)},length:function(e){const i=re.Tvalues.length;let s=0;for(let a=0,u;a<i;a++)u=.5*re.Tvalues[a]+.5,s+=re.Cvalues[a]*re.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(re.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 Xo(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 _r(i*i+s*s)},closest:function(e,n){let i=Yt(2,63),s,a;return e.forEach(function(u,f){a=re.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=Yt(e,n)+Yt(1-e,n),s=i-1;return Go(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=Yt(1-e,n),s=Yt(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),m=(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:m/v}},lli4:function(e,n,i,s){const a=e.x,u=e.y,f=n.x,h=n.y,p=i.x,m=i.y,v=s.x,g=s.y;return re.lli8(a,u,f,h,p,m,v,g)},lli:function(e,n){return re.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new Ue(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=Cc,i=Cc,s=Ec,a=Ec;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(!re.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(m){if(m.virtual)return;const v=p.intersects(m,a);v.length>0&&(v.c1=p,v.c2=m,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=re.makeline(n.points[s-1],e.points[0]),f=re.makeline(e.points[a-1],n.points[0]),h={startcap:u,forward:e,back:n,endcap:f,bbox:re.findbbox([u,e,n,f])};return h.intersections=function(p){return re.shapeintersections(h,h.bbox,p,p.bbox,i)},h},getminmax:function(e,n,i){if(!i)return{min:0,max:0};let s=Cc,a=Ec,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=-Xo(n.p2.y-s,n.p2.x-i),u=function(f){return{x:(f.x-i)*Un(a)-(f.y-s)*Ii(a),y:(f.x-i)*Ii(a)+(f.y-s)*Un(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=re.align(e,n),a=function(F){return 0<=F&&F<=1};if(i===2){const F=s[0].y,I=s[1].y,B=s[2].y,K=F-2*I+B;if(K!==0){const Z=-_r(I*I-F*B),ie=-F+I,ce=-(Z+ie)/K,$=-(-Z+ie)/K;return[ce,$].filter(a)}else if(I!==B&&K===0)return[(2*I-B)/(2*I-2*B)].filter(a);return[]}const u=s[0].y,f=s[1].y,h=s[2].y,p=s[3].y;let m=-u+3*f-3*h+p,v=3*u-6*f+3*h,g=-3*u+3*f,_=u;if(re.approximately(m,0)){if(re.approximately(v,0))return re.approximately(g,0)?[]:[-_/g].filter(a);const F=_r(g*g-4*v*_),I=2*v;return[(F-g)/I,(-g-F)/I].filter(a)}v/=m,g/=m,_/=m;const x=(3*g-v*v)/3,b=x/3,C=(2*v*v*v-9*v*g+27*_)/27,S=C/2,k=S*S+b*b*b;let O,j,P,N,D;if(k<0){const F=-x/3,I=F*F*F,B=_r(I),K=-C/(2*B),Z=K<-1?-1:K>1?1:K,ie=jb(Z),ce=Yo(B),$=2*ce;return P=$*Un(ie/3)-v/3,N=$*Un((ie+Bl)/3)-v/3,D=$*Un((ie+2*Bl)/3)-v/3,[P,N,D].filter(a)}else{if(k===0)return O=S<0?Yo(-S):-Yo(S),P=2*O-v/3,N=-O-v/3,[P,N].filter(a);{const F=_r(k);return O=Yo(-S+F),j=Yo(S+F),[O-j-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=-_r(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,m=0,v=0;const g=re.compute(e,n),_=re.compute(e,i),x=g.x*g.x+g.y*g.y;if(s?(u=_r(Yt(g.y*_.z-_.y*g.z,2)+Yt(g.z*_.x-_.z*g.x,2)+Yt(g.x*_.y-_.x*g.y,2)),f=Yt(x+g.z*g.z,3/2)):(u=g.x*_.y-g.y*_.x,f=Yt(x,3/2)),u===0||f===0)return{k:0,r:0};if(m=u/f,v=f/u,!a){const b=re.curvature(e-.001,n,i,s,!0).k,C=re.curvature(e+.001,n,i,s,!0).k;p=(C-m+(m-b))/2,h=(Go(C-m)+Go(m-b))/2}return{k:m,r:v,dk:p,adk:h}},inflections:function(e){if(e.length<4)return[];const n=re.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(re.approximately(f,0)){if(!re.approximately(h,0)){let _=-p/h;if(0<=_&&_<=1)return[_]}return[]}const m=2*f;if(re.approximately(m,0))return[];const v=h*h-4*f*p;if(v<0)return[];const g=Math.sqrt(v);return[(g-h)/m,-(h+g)/m].filter(function(_){return 0<=_&&_<=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,Go(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),m=[{left:h.left,right:p.left},{left:h.left,right:p.right},{left:h.right,right:p.right},{left:h.right,right:p.left}];m=m.filter(function(g){return re.bboxoverlap(g.left.bbox(),g.right.bbox())});let v=[];return m.length===0||(m.forEach(function(g){v=v.concat(re.pairiteration(g.left,g.right,f))}),v=v.filter(function(g,_){return v.indexOf(g)===_})),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*Un(xr)-a*Ii(xr),p=s*Ii(xr)+a*Un(xr),m=u*Un(xr)-f*Ii(xr),v=u*Ii(xr)+f*Un(xr),g=(e.x+n.x)/2,_=(e.y+n.y)/2,x=(n.x+i.x)/2,b=(n.y+i.y)/2,C=g+h,S=_+p,k=x+m,O=b+v,j=re.lli8(g,_,C,S,x,b,k,O),P=re.dist(j,e);let N=Xo(e.y-j.y,e.x-j.x),D=Xo(n.y-j.y,n.x-j.x),F=Xo(i.y-j.y,i.x-j.x),I;return N<F?((N>D||D>F)&&(N+=Bl),N>F&&(I=F,F=N,N=I)):F<D&&D<N?(I=F,F=N,N=I):F+=Bl,j.s=N,j.e=F,j.r=P,j},numberSort:function(e,n){return e-n}};class ss{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 re.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++)re.expandbox(i,n[s].bbox());return i}offset(n){const i=[];return this.curves.forEach(function(s){i.push(...s.offset(n))}),new ss(i)}}const{abs:Zo,min:Lg,max:Fg,cos:Db,sin:Ib,acos:Lb,sqrt:Jo}=Math,Fb=Math.PI;class Ue{constructor(n){let i=n&&n.forEach?n:Array.from(arguments).slice(),s=!1;if(typeof i[0]=="object"){s=i.length;const x=[];i.forEach(function(b){["x","y","z"].forEach(function(C){typeof b[C]<"u"&&x.push(b[C])})}),i=x}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 x=0,b=f?3:2;x<u;x+=b){var p={x:i[x],y:i[x+1]};f&&(p.z=i[x+2]),h.push(p)}const m=this.order=h.length-1,v=this.dims=["x","y"];f&&v.push("z"),this.dimlen=v.length;const g=re.align(h,{p1:h[0],p2:h[m]}),_=re.dist(h[0],h[m]);this._linear=g.reduce((x,b)=>x+Zo(b.y),0)<_/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 Ue(i,i,s);if(a===1)return new Ue(n,i,i);const u=Ue.getABC(2,n,i,s,a);return new Ue(n,u.A,s)}static cubicFromPoints(n,i,s,a,u){typeof a>"u"&&(a=.5);const f=Ue.getABC(3,n,i,s,a);typeof u>"u"&&(u=re.dist(i,f.C));const h=u*(1-a)/a,p=re.dist(n,s),m=(s.x-n.x)/p,v=(s.y-n.y)/p,g=u*m,_=u*v,x=h*m,b=h*v,C={x:i.x-g,y:i.y-_},S={x:i.x+x,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)},j={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},N={x:s.x+(j.x-s.x)/(1-a),y:s.y+(j.y-s.y)/(1-a)};return new Ue(n,P,N,s)}static getUtils(){return re}getUtils(){return Ue.getUtils()}static get PolyBezier(){return ss}valueOf(){return this.toString()}toString(){return re.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=re.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,i=re.angle(n[0],n[this.order],n[1]);this.clockwise=i>0}length(){return re.length(this.derivative.bind(this))}static getABC(n=2,i,s,a,u=.5){const f=re.projectionratio(u,n),h=1-f,p={x:f*i.x+h*a.x,y:f*i.y+h*a.y},m=re.abcratio(u,n);return{A:{x:s.x+(s.x-p.x)/m,y:s.y+(s.y-p.y)/m},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 Ue.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],re.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=re.closest(i,n),u=a.mpos,f=(u-1)/s,h=(u+1)/s,p=.1/s;let m=a.mdist,v=f,g=v,_;m+=1;for(let x;v<h+p;v+=p)_=this.compute(v),x=re.dist(n,_),x<m&&(m=x,g=v);return g=g<0?0:g>1?1:g,_=this.compute(g),_.t=g,_.d=m,_}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?re.computeWithRatios(n,this.points,this.ratios,this._3d):re.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 Ue(i)}derivative(n){return re.compute(n,this.dpoints[0],this._3d)}dderivative(n){return re.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new Ue(re.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return re.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return re.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const i=this.derivative(n),s=Jo(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=Jo(i.x*i.x+i.y*i.y+i.z*i.z),u=Jo(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=Jo(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=re.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 Ue([s[0],s[3],s[5]]):new Ue([s[0],s[4],s[7],s[9]]),right:this.order===2?new Ue([s[5],s[4],s[2]]):new Ue([s[9],s[8],s[6],s[3]]),span:s};return a.left._t1=re.map(0,0,1,this._t1,this._t2),a.left._t2=re.map(n,0,1,this._t1,this._t2),a.right._t1=re.map(n,0,1,this._t1,this._t2),a.right._t2=re.map(1,0,1,this._t1,this._t2),i?(i=re.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]=re.droots(u),this.order===3&&(u=this.dpoints[1].map(a),n[s]=n[s].concat(re.droots(u))),n[s]=n[s].filter(function(f){return f>=0&&f<=1}),i=i.concat(n[s].sort(re.numberSort))}).bind(this)),n.values=i.sort(re.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]=re.getminmax(this,s,n[s])}).bind(this)),i}overlaps(n){const i=this.bbox(),s=n.bbox();return re.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 Ue(a)]}return this.reduce().map(function(s){return s._linear?s.offset(n)[0]:s.scale(n)})}simple(){if(this.order===3){const a=re.angle(this.points[0],this.points[3],this.points[1]),u=re.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),Zo(Lb(s))<Fb/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(m){for(i=0,s=0;s<=1;)for(s=i+a;s<=1+a;s+=a)if(u=m.split(i,s),!u.simple()){if(s-=a,Zo(i-s)<a)return[];u=m.split(i,s),u._t1=re.map(i,0,1,m._t1,m._t2),u._t2=re.map(s,0,1,m._t1,m._t2),h.push(u),i=s;break}i<1&&(u=m.split(i,1),u._t1=re.map(i,0,1,m._t1,m._t2),u._t2=m._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 Ue(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)],m=[],v=re.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(g){const _=m[g*i]=re.copy(u[g*i]);_.x+=(g?h:f)*p[g].n.x,_.y+=(g?h:f)*p[g].n.y}),s?([0,1].forEach(function(g){if(!(i===2&&g)){var _=u[g+1],x={x:_.x-v.x,y:_.y-v.y},b=s?s((g+1)/i):n;s&&!a&&(b=-b);var C=Jo(x.x*x.x+x.y*x.y);x.x/=C,x.y/=C,m[g+1]={x:_.x+b*x.x,y:_.y+b*x.y}}}),new Ue(m)):([0,1].forEach(g=>{if(i===2&&g)return;const _=m[g*i],x=this.derivative(g),b={x:_.x+x.x,y:_.y+x.y};m[g+1]=re.lli4(_,b,v,u[g+1])}),new Ue(m))}outline(n,i,s,a){if(i=i===void 0?n:i,this._linear){const N=this.normal(0),D=this.points[0],F=this.points[this.points.length-1];let I,B,K;s===void 0&&(s=n,a=i),I={x:D.x+N.x*n,y:D.y+N.y*n},K={x:F.x+N.x*s,y:F.y+N.y*s},B={x:(I.x+K.x)/2,y:(I.y+K.y)/2};const Z=[I,B,K];I={x:D.x-N.x*i,y:D.y-N.y*i},K={x:F.x-N.x*a,y:F.y-N.y*a},B={x:(I.x+K.x)/2,y:(I.y+K.y)/2};const ie=[K,B,I],ce=re.makeline(ie[2],Z[0]),$=re.makeline(Z[2],ie[0]),te=[ce,new Ue(Z),$,new Ue(ie)];return new ss(te)}const u=this.reduce(),f=u.length,h=[];let p=[],m,v=0,g=this.length();const _=typeof s<"u"&&typeof a<"u";function x(N,D,F,I,B){return function(K){const Z=I/F,ie=(I+B)/F,ce=D-N;return re.map(K,0,1,N+Z*ce,N+ie*ce)}}u.forEach(function(N){const D=N.length();_?(h.push(N.scale(x(n,s,g,v,D))),p.push(N.scale(x(-i,-a,g,v,D)))):(h.push(N.scale(n)),p.push(N.scale(-i))),v+=D}),p=p.map(function(N){return m=N.points,m[3]?N.points=[m[3],m[2],m[1],m[0]]:N.points=[m[2],m[1],m[0]],N}).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=re.makeline(S,b),j=re.makeline(C,k),P=[O].concat(h).concat([j]).concat(p);return new ss(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=re.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 Ue&&(n=n.reduce()),this.curveintersects(this.reduce(),n,i)):this.selfintersects(i)}lineIntersects(n){const i=Lg(n.p1.x,n.p2.x),s=Lg(n.p1.y,n.p2.y),a=Fg(n.p1.x,n.p2.x),u=Fg(n.p1.y,n.p2.y);return re.roots(this.points,n).filter(f=>{var h=this.get(f);return re.between(h.x,i,a)&&re.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=re.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=re.dist(n,i),m=re.dist(n,f),v=re.dist(n,h);return Zo(m-p)+Zo(v-p)}_iterate(n,i){let s=0,a=1,u;do{u=0,a=1;let f=this.get(s),h,p,m,v,g=!1,_=!1,x,b=a,C=1;do if(_=g,v=m,b=(s+a)/2,h=this.get(b),p=this.get(a),m=re.getccenter(f,h,p),m.interval={start:s,end:a},g=this._error(m,f,s,a)<=n,x=_&&!g,x||(C=a),g){if(a>=1){if(m.interval.end=C=1,v=m,a>1){let k={x:m.x+m.r*Db(m.e),y:m.y+m.r*Ib(m.e)};m.e+=re.angle({x:m.x,y:m.y},k,this.get(1))}break}a=a+(a-s)/2}else a=b;while(!x&&u++<100);if(u>=100)break;v=v||m,i.push(v),s=C}while(a<1);return i}}function uf(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 $b(e){if(Array.isArray(e))return e}function Ub(e){if(Array.isArray(e))return uf(e)}function Hb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vb(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,m=!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){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function qb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
124
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
125
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qb(e,n){if(e==null)return{};var i,s,a=Wb(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 Wb(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 Kb(e,n){return $b(e)||Vb(e,n)||Om(e,n)||qb()}function Gb(e){return Ub(e)||Hb(e)||Om(e)||Bb()}function Xb(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 Yb(e){var n=Xb(e,"string");return typeof n=="symbol"?n:n+""}function Om(e,n){if(e){if(typeof e=="string")return uf(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)?uf(e,n):void 0}}var Zb=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 m=h,v=p;return a.forEach(function(g,_){var x=g.keyAccessor,b=g.isProp,C;if(b){var S=v,k=S[x],O=Qb(S,[x].map(Yb));C=k,v=O}else C=x(v,_);_+1<a.length?(m.hasOwnProperty(C)||(m[C]={}),m=m[C]):i?(m.hasOwnProperty(C)||(m[C]=[]),m[C].push(v)):m[C]=v}),h},{});i instanceof Function&&function h(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;m===a.length?Object.keys(p).forEach(function(v){return p[v]=i(p[v])}):Object.values(p).forEach(function(v){return h(v,m+1)})}(u);var f=u;return s&&(f=[],function h(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];m.length===a.length?f.push({keys:m,vals:p}):Object.entries(p).forEach(function(v){var g=Kb(v,2),_=g[0],x=g[1];return h(x,[].concat(Gb(m),[_]))})}(u),n instanceof Array&&n.length===0&&f.length===1&&(f[0].keys=[])),f};function Jb(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}const $g=Symbol("implicit");function Rm(){var e=new lg,n=[],i=[],s=$g;function a(u){let f=e.get(u);if(f===void 0){if(s!==$g)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 lg;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 Rm(n,i).unknown(s)},Jb.apply(a,arguments),a}function eC(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 tC=eC("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");function nC(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 rC=`.force-graph-container canvas {
|
|
126
|
-
display: block;
|
|
127
|
-
user-select: none;
|
|
128
|
-
outline: none;
|
|
129
|
-
-webkit-tap-highlight-color: transparent;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.force-graph-container .clickable {
|
|
133
|
-
cursor: pointer;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.force-graph-container .grabbable {
|
|
137
|
-
cursor: move;
|
|
138
|
-
cursor: grab;
|
|
139
|
-
cursor: -moz-grab;
|
|
140
|
-
cursor: -webkit-grab;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.force-graph-container .grabbable:active {
|
|
144
|
-
cursor: grabbing;
|
|
145
|
-
cursor: -moz-grabbing;
|
|
146
|
-
cursor: -webkit-grabbing;
|
|
147
|
-
}
|
|
148
|
-
`;nC(rC);function cf(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 iC(e){if(Array.isArray(e))return e}function oC(e){if(Array.isArray(e))return cf(e)}function Ug(e,n,i){if(jm())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 gs(e,n,i){return(n=fC(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function jm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jm=function(){return!!e})()}function sC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lC(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,m=!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){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function aC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
149
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
150
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hg(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 Li(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Hg(Object(i),!0).forEach(function(s){gs(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Hg(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function ls(e,n){return iC(e)||lC(e,n)||Am(e,n)||aC()}function en(e){return oC(e)||sC(e)||Am(e)||uC()}function cC(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 fC(e){var n=cC(e,"string");return typeof n=="symbol"?n:n+""}function ff(e){"@babel/helpers - typeof";return ff=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},ff(e)}function Am(e,n){if(e){if(typeof e=="string")return cf(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)?cf(e,n):void 0}}var hC=Rm(tC);function Vg(e,n,i){!n||typeof i!="string"||e.filter(function(s){return!s[i]}).forEach(function(s){s[i]=hC(n(s))})}function dC(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(x){throw"Invalid DAG structure! Found cycle in node path: ".concat(x.join(" -> "),".")}:h,m={};i.forEach(function(x){return m[n(x)]={data:x,out:[],depth:-1,skip:!f(x)}}),s.forEach(function(x){var b=x.source,C=x.target,S=P(b),k=P(C);if(!m.hasOwnProperty(S))throw"Missing source node with id: ".concat(S);if(!m.hasOwnProperty(k))throw"Missing target node with id: ".concat(k);var O=m[S],j=m[k];O.out.push(j);function P(N){return ff(N)==="object"?n(N):N}});var v=[];_(Object.values(m));var g=Object.assign.apply(Object,[{}].concat(en(Object.entries(m).filter(function(x){var b=ls(x,2),C=b[1];return!C.skip}).map(function(x){var b=ls(x,2),C=b[0],S=b[1];return gs({},C,S.depth)}))));return g;function _(x){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=x[k];if(b.indexOf(P)!==-1){var N=[].concat(en(b.slice(b.indexOf(P))),[P]).map(function(D){return n(D.data)});return v.some(function(D){return D.length===N.length&&D.every(function(F,I){return F===N[I]})})||(v.push(N),p(N)),1}C>P.depth&&(P.depth=C,_(P.out,[].concat(en(b),[P]),C+(P.skip?0:1)))},k=0,O=x.length;k<O;k++)S()}}var pC=2,gt=function(n,i){return i.onNeedsRedraw&&i.onNeedsRedraw()},qg=function(n,i){if(!i.isShadow){var s=De(i.linkDirectionalParticles);i.graphData.links.forEach(function(a){var u=Math.round(Math.abs(s(a)));u?a.__photons=en(Array(u)).map(function(){return{}}):delete a.__photons})}},ha=Cf({props:{graphData:{default:{nodes:[],links:[]},onChange:function(n,i){i.engineRunning=!1,qg(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:gt},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:gt},nodeColor:{default:"color",triggerUpdate:!1,onChange:gt},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:gt},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:gt},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:gt},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:gt},linkColor:{default:"color",triggerUpdate:!1,onChange:gt},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:gt},linkWidth:{default:1,triggerUpdate:!1,onChange:gt},linkCurvature:{default:0,triggerUpdate:!1,onChange:gt},linkCanvasObject:{triggerUpdate:!1,onChange:gt},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:gt},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:gt},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:gt},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:gt},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:qg},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=De(n.nodeVisibility),p=De(n.nodeVal),m=De(n.nodeColor),v=De(n.nodeCanvasObjectMode),g=n.ctx,_=n.isShadow/n.globalScale,x=n.graphData.nodes.filter(h);g.save(),x.forEach(function(b){var C=v(b);if(n.nodeCanvasObject&&(C==="before"||C==="replace")&&(n.nodeCanvasObject(b,g,n.globalScale),C==="replace")){g.restore();return}var S=Math.sqrt(Math.max(0,p(b)||1))*n.nodeRelSize+_;g.beginPath(),g.arc(b.x,b.y,S,0,2*Math.PI,!1),g.fillStyle=m(b)||"rgba(31, 120, 180, 0.92)",g.fill(),n.nodeCanvasObject&&C==="after"&&n.nodeCanvasObject(b,n.ctx,n.globalScale)}),g.restore()}function a(){var h=De(n.linkVisibility),p=De(n.linkColor),m=De(n.linkWidth),v=De(n.linkLineDash),g=De(n.linkCurvature),_=De(n.linkCanvasObjectMode),x=n.ctx,b=n.isShadow*2,C=n.graphData.links.filter(h);C.forEach(D);var S=[],k=[],O=C;if(n.linkCanvasObject){var j=[],P=[];C.forEach(function(F){return({before:S,after:k,replace:j}[_(F)]||P).push(F)}),O=[].concat(en(S),k,P),S=S.concat(j)}x.save(),S.forEach(function(F){return n.linkCanvasObject(F,x,n.globalScale)}),x.restore();var N=Zb(O,[p,m,v]);x.save(),Object.entries(N).forEach(function(F){var I=ls(F,2),B=I[0],K=I[1],Z=!B||B==="undefined"?"rgba(0,0,0,0.15)":B;Object.entries(K).forEach(function(ie){var ce=ls(ie,2),$=ce[0],te=ce[1],W=($||1)/n.globalScale+b;Object.entries(te).forEach(function(oe){var Q=ls(oe,2);Q[0];var J=Q[1],G=v(J[0]);x.beginPath(),J.forEach(function(R){var q=R.source,le=R.target;if(!(!q||!le||!q.hasOwnProperty("x")||!le.hasOwnProperty("x"))){x.moveTo(q.x,q.y);var ge=R.__controlPoints;ge?x[ge.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(x,en(ge).concat([le.x,le.y])):x.lineTo(le.x,le.y)}}),x.strokeStyle=Z,x.lineWidth=W,x.setLineDash(G||[]),x.stroke()})})}),x.restore(),x.save(),k.forEach(function(F){return n.linkCanvasObject(F,x,n.globalScale)}),x.restore();function D(F){var I=g(F);if(!I){F.__controlPoints=null;return}var B=F.source,K=F.target;if(!(!B||!K||!B.hasOwnProperty("x")||!K.hasOwnProperty("x"))){var Z=Math.sqrt(Math.pow(K.x-B.x,2)+Math.pow(K.y-B.y,2));if(Z>0){var ie=Math.atan2(K.y-B.y,K.x-B.x),ce=Z*I,$={x:(B.x+K.x)/2+ce*Math.cos(ie-Math.PI/2),y:(B.y+K.y)/2+ce*Math.sin(ie-Math.PI/2)};F.__controlPoints=[$.x,$.y]}else{var te=I*70;F.__controlPoints=[K.x,K.y-te,K.x+te,K.y]}}}}function u(){var h=1.6,p=.2,m=De(n.linkDirectionalArrowLength),v=De(n.linkDirectionalArrowRelPos),g=De(n.linkVisibility),_=De(n.linkDirectionalArrowColor||n.linkColor),x=De(n.nodeVal),b=n.ctx;b.save(),n.graphData.links.filter(g).forEach(function(C){var S=m(C);if(!(!S||S<0)){var k=C.source,O=C.target;if(!(!k||!O||!k.hasOwnProperty("x")||!O.hasOwnProperty("x"))){var j=Math.sqrt(Math.max(0,x(k)||1))*n.nodeRelSize,P=Math.sqrt(Math.max(0,x(O)||1))*n.nodeRelSize,N=Math.min(1,Math.max(0,v(C))),D=_(C)||"rgba(0,0,0,0.28)",F=S/h/2,I=C.__controlPoints&&Ug(Ue,[k.x,k.y].concat(en(C.__controlPoints),[O.x,O.y])),B=I?function(W){return I.get(W)}:function(W){return{x:k.x+(O.x-k.x)*W||0,y:k.y+(O.y-k.y)*W||0}},K=I?I.length():Math.sqrt(Math.pow(O.x-k.x,2)+Math.pow(O.y-k.y,2)),Z=j+S+(K-j-P-S)*N,ie=B(Z/K),ce=B((Z-S)/K),$=B((Z-S*(1-p))/K),te=Math.atan2(ie.y-ce.y,ie.x-ce.x)-Math.PI/2;b.beginPath(),b.moveTo(ie.x,ie.y),b.lineTo(ce.x+F*Math.cos(te),ce.y+F*Math.sin(te)),b.lineTo($.x,$.y),b.lineTo(ce.x-F*Math.cos(te),ce.y-F*Math.sin(te)),b.fillStyle=D,b.fill()}}}),b.restore()}function f(){var h=De(n.linkDirectionalParticles),p=De(n.linkDirectionalParticleSpeed),m=De(n.linkDirectionalParticleWidth),v=De(n.linkVisibility),g=De(n.linkDirectionalParticleColor||n.linkColor),_=n.ctx;_.save(),n.graphData.links.filter(v).forEach(function(x){var b=h(x);if(!(!x.hasOwnProperty("__photons")||!x.__photons.length)){var C=x.source,S=x.target;if(!(!C||!S||!C.hasOwnProperty("x")||!S.hasOwnProperty("x"))){var k=p(x),O=x.__photons||[],j=Math.max(0,m(x)/2)/Math.sqrt(n.globalScale),P=g(x)||"rgba(0,0,0,0.28)";_.fillStyle=P;var N=x.__controlPoints?Ug(Ue,[C.x,C.y].concat(en(x.__controlPoints),[S.x,S.y])):null,D=0,F=!1;O.forEach(function(I){var B=!!I.__singleHop;if(I.hasOwnProperty("__progressRatio")||(I.__progressRatio=B?0:D/b),!B&&D++,I.__progressRatio+=k,I.__progressRatio>=1)if(!B)I.__progressRatio=I.__progressRatio%1;else{F=!0;return}var K=I.__progressRatio,Z=N?N.get(K):{x:C.x+(S.x-C.x)*K||0,y:C.y+(S.y-C.y)*K||0};_.beginPath(),_.arc(Z.x,Z.y,j,0,2*Math.PI,!1),_.fill()}),F&&(x.__photons=x.__photons.filter(function(I){return!I.__singleHop||I.__progressRatio<=1}))}}}),_.restore()}},emitParticle:function(n,i){return i&&(!i.__photons&&(i.__photons=[]),i.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:Mb().force("link",kb()).force("charge",Ob()).force("center",bS()).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&&Vg(n.graphData.nodes,De(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&Vg(n.graphData.links,De(n.linkAutoColorBy),n.linkColor),n.graphData.links.forEach(function(_){_.source=_[n.linkSource],_.target=_[n.linkTarget]}),n.forceLayout.stop().alpha(1).nodes(n.graphData.nodes);var s=n.forceLayout.force("link");s&&s.id(function(_){return _[n.nodeId]}).links(n.graphData.links);var a=n.dagMode&&dC(n.graphData,function(_){return _[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),u=Math.max.apply(Math,en(Object.values(a||[]))),f=n.dagLevelDistance||n.graphData.nodes.length/(u||1)*pC*(["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(_){return delete _[h]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var p=["rl","bu"].includes(n.dagMode),m=function(x){return(a[x[n.nodeId]]-u/2)*f*(p?-1:1)},v=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(_){return _[v]=m(_)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?Rb(function(_){var x=a[_[n.nodeId]]||-1;return(n.dagMode==="radialin"?u-x:x)*f}).strength(function(_){return n.dagNodeFilter(_)?1:0}):null);for(var g=0;g<n.warmupTicks&&!(n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin);g++)n.forceLayout.tick();this.resetCountdown(),n.onFinishUpdate()}});function zm(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(m){return p[m][u](h)})},triggerUpdate:!1}},linkMethod:function(u){return function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];var v=[];return i.forEach(function(g){var _=f[g],x=_[u].apply(_,p);x!==_&&v.push(x)}),v.length?v[0]:this}}}}var gC=800,mC=4,yC=5,Dm=zm("forceGraph",ha),vC=zm(["forceGraph","shadowGraph"],ha),_C=Object.assign.apply(Object,en(["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 gs({},e,Dm.linkProp(e))})).concat(en(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(e){return gs({},e,vC.linkProp(e))})))),xC=Object.assign.apply(Object,en(["d3Force","d3ReheatSimulation","emitParticle"].map(function(e){return gs({},e,Dm.linkMethod(e))})));function Pc(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=wn(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-n)/2/a,(e.height-i)/2/a),e.needsRedraw=!0}}function Im(e){var n=window.devicePixelRatio;e.setTransform(n,0,0,n,0,0)}function Bg(e,n,i){e.save(),Im(e),e.clearRect(0,0,n,i),e.restore()}var wC=Cf({props:Li({width:{default:window.innerWidth,onChange:function(n,i){return Pc(i)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(n,i){return Pc(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}},_C),aliases:{stopAnimation:"pauseAnimation"},methods:Li({graph2ScreenCoords:function(n,i,s){var a=wn(n.canvas);return{x:i*a.k+a.x,y:s*a.k+a.y}},screen2GraphCoords:function(n,i,s){var a=wn(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 pg(f()).to(u,a).easing(li.Quadratic.Out).onUpdate(h).start()):h(u),this}return f();function f(){var p=wn(n.canvas);return{x:(n.width/2-p.x)/p.k,y:(n.height/2-p.y)/p.k}}function h(p){var m=p.x,v=p.y;n.zoom.translateTo(n.zoom.__baseElem,m===void 0?f().x:m,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 pg({k:a()}).to({k:i},s).easing(li.Quadratic.Out).onUpdate(function(f){var h=f.k;return u(h)}).start()):u(i),this;return a();function a(){return wn(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},m=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(m,i)}return this},getGraphBbox:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},s=De(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:[cg(u,function(f){return f.x-f.r}),ug(u,function(f){return f.x+f.r})],y:[cg(u,function(f){return f.y-f.r}),ug(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:[]})}},xC),stateInit:function(){return{lastSetZoom:1,zoom:R2(),forceGraph:new ha,shadowGraph:new ha().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new nS,tweenGroup:new om}},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 g=null,_=window.devicePixelRatio,x=h.x>0&&h.y>0?f.getImageData(h.x*_,h.y*_,1,1):null;return x&&(g=i.colorTracker.lookup(x.data)),g};Jt(i.canvas).call(Hx().subject(function(){if(!i.enableNodeDrag)return null;var v=p();return v&&v.type==="Node"?v.d:null}).on("start",function(v){var g=v.subject;g.__initialDragPos={x:g.x,y:g.y,fx:g.fx,fy:g.fy},v.active||(g.fx=g.x,g.fy=g.y),i.canvas.classList.add("grabbable")}).on("drag",function(v){var g=v.subject,_=g.__initialDragPos,x=v,b=wn(i.canvas).k,C={x:_.x+(x.x-_.x)/b-g.x,y:_.y+(x.y-_.y)/b-g.y};["x","y"].forEach(function(S){return g["f".concat(S)]=g[S]=_[S]+(x[S]-_[S])/b}),!(!g.__dragged&&yC>=Math.sqrt(D2(["x","y"].map(function(S){return Math.pow(v[S]-_[S],2)}))))&&(i.forceGraph.d3AlphaTarget(.3).resetCountdown(),i.isPointerDragging=!0,g.__dragged=!0,i.onNodeDrag(g,C))}).on("end",function(v){var g=v.subject,_=g.__initialDragPos,x={x:g.x-_.x,y:g.y-_.y};_.fx===void 0&&(g.fx=void 0),_.fy===void 0&&(g.fy=void 0),delete g.__initialDragPos,i.forceGraph.d3AlphaTarget()&&i.forceGraph.d3AlphaTarget(0).resetCountdown(),i.canvas.classList.remove("grabbable"),i.isPointerDragging=!1,g.__dragged&&(delete g.__dragged,i.onNodeDragEnd(g,x))})),i.zoom(i.zoom.__baseElem=Jt(i.canvas)),i.zoom.__baseElem.on("dblclick.zoom",null),i.zoom.filter(function(v){return!v.button&&i.enableZoomPanInteraction&&(v.type!=="wheel"||De(i.enableZoomInteraction)(v))&&(v.type==="wheel"||De(i.enablePanInteraction)(v))}).on("zoom",function(v){var g=v.transform;[u,f].forEach(function(_){Im(_),_.translate(g.x,g.y),_.scale(g.k,g.k)}),i.isPointerDragging=!0,i.onZoom&&i.onZoom(Li(Li({},g),s.centerAt())),i.needsRedraw=!0}).on("end",function(v){i.isPointerDragging=!1,i.onZoomEnd&&i.onZoomEnd(Li(Li({},v.transform),s.centerAt()))}),Pc(i),i.forceGraph.onNeedsRedraw(function(){return i.needsRedraw=!0}).onFinishUpdate(function(){wn(i.canvas).k===i.lastSetZoom&&i.graphData.nodes.length&&(i.zoom.scaleTo(i.zoom.__baseElem,i.lastSetZoom=mC/Math.cbrt(i.graphData.nodes.length)),i.needsRedraw=!0)}),i.tooltip=new SS(a),["pointermove","pointerdown"].forEach(function(v){return a.addEventListener(v,function(g){v==="pointerdown"&&(i.isPointerPressed=!0,i.pointerDownEvent=g),!i.isPointerDragging&&g.type==="pointermove"&&i.onBackgroundClick&&(g.pressure>0||i.isPointerPressed)&&(g.pointerType!=="touch"||g.movementX===void 0||[g.movementX,g.movementY].some(function(b){return Math.abs(b)>1}))&&(i.isPointerDragging=!0);var _=x(a);h.x=g.pageX-_.left,h.y=g.pageY-_.top;function x(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 g=[v,i.pointerDownEvent];requestAnimationFrame(function(){if(v.button===0)if(i.hoverObj){var _=i["on".concat(i.hoverObj.type,"Click")];_&&_.apply(void 0,[i.hoverObj.d].concat(g))}else i.onBackgroundClick&&i.onBackgroundClick.apply(i,g);if(v.button===2)if(i.hoverObj){var x=i["on".concat(i.hoverObj.type,"RightClick")];x&&x.apply(void 0,[i.hoverObj.d].concat(g))}else i.onBackgroundRightClick&&i.onBackgroundRightClick.apply(i,g)})}},{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 m=uk(function(){Bg(f,i.width,i.height),i.shadowGraph.linkWidth(function(g){return De(i.linkWidth)(g)+i.linkHoverPrecision});var v=wn(i.canvas);i.shadowGraph.globalScale(v.k).tickFrame()},gC);i.flushShadowCanvas=m.flush,(this._animationCycle=function v(){var g=!i.autoPauseRedraw||!!i.needsRedraw||i.forceGraph.isEngineRunning()||i.graphData.links.some(function(j){return j.__photons&&j.__photons.length});if(i.needsRedraw=!1,i.enablePointerInteraction){var _=i.isPointerDragging?null:p();if(_!==i.hoverObj){var x=i.hoverObj,b=x?x.type:null,C=_?_.type:null;if(b&&b!==C){var S=i["on".concat(b,"Hover")];S&&S(null,x.d)}if(C){var k=i["on".concat(C,"Hover")];k&&k(_.d,b===C?x.d:null)}i.tooltip.content(_&&De(i["".concat(_.type.toLowerCase(),"Label")])(_.d)||null),i.canvas.classList[_&&i["on".concat(C,"Click")]||!_&&i.onBackgroundClick?"add":"remove"]("clickable"),i.hoverObj=_}g&&m()}if(g){Bg(u,i.width,i.height);var O=wn(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){}}),Nc={exports:{}},Tc,Qg;function kC(){if(Qg)return Tc;Qg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tc=e,Tc}var Mc,Wg;function SC(){if(Wg)return Mc;Wg=1;var e=kC();function n(){}function i(){}return i.resetWarningCache=n,Mc=function(){function s(f,h,p,m,v,g){if(g!==e){var _=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 _.name="Invariant Violation",_}}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},Mc}var Kg;function bC(){return Kg||(Kg=1,Nc.exports=SC()()),Nc.exports}var CC=bC();const L=h0(CC),wa={width:L.number,height:L.number,graphData:L.shape({nodes:L.arrayOf(L.object).isRequired,links:L.arrayOf(L.object).isRequired}),backgroundColor:L.string,nodeRelSize:L.number,nodeId:L.string,nodeLabel:L.oneOfType([L.string,L.func]),nodeVal:L.oneOfType([L.number,L.string,L.func]),nodeVisibility:L.oneOfType([L.bool,L.string,L.func]),nodeColor:L.oneOfType([L.string,L.func]),nodeAutoColorBy:L.oneOfType([L.string,L.func]),onNodeHover:L.func,onNodeClick:L.func,linkSource:L.string,linkTarget:L.string,linkLabel:L.oneOfType([L.string,L.func]),linkVisibility:L.oneOfType([L.bool,L.string,L.func]),linkColor:L.oneOfType([L.string,L.func]),linkAutoColorBy:L.oneOfType([L.string,L.func]),linkWidth:L.oneOfType([L.number,L.string,L.func]),linkCurvature:L.oneOfType([L.number,L.string,L.func]),linkDirectionalArrowLength:L.oneOfType([L.number,L.string,L.func]),linkDirectionalArrowColor:L.oneOfType([L.string,L.func]),linkDirectionalArrowRelPos:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticles:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticleSpeed:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticleWidth:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticleColor:L.oneOfType([L.string,L.func]),onLinkHover:L.func,onLinkClick:L.func,dagMode:L.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:L.number,dagNodeFilter:L.func,onDagError:L.func,d3AlphaMin:L.number,d3AlphaDecay:L.number,d3VelocityDecay:L.number,warmupTicks:L.number,cooldownTicks:L.number,cooldownTime:L.number,onEngineTick:L.func,onEngineStop:L.func,getGraphBbox:L.func},Lm={zoomToFit:L.func,onNodeRightClick:L.func,onNodeDrag:L.func,onNodeDragEnd:L.func,onLinkRightClick:L.func,linkHoverPrecision:L.number,onBackgroundClick:L.func,onBackgroundRightClick:L.func,enablePointerInteraction:L.bool,enableNodeDrag:L.bool},jf={showNavInfo:L.bool,nodeOpacity:L.number,nodeResolution:L.number,nodeThreeObject:L.oneOfType([L.object,L.string,L.func]),nodeThreeObjectExtend:L.oneOfType([L.bool,L.string,L.func]),linkOpacity:L.number,linkResolution:L.number,linkCurveRotation:L.oneOfType([L.number,L.string,L.func]),linkMaterial:L.oneOfType([L.object,L.string,L.func]),linkThreeObject:L.oneOfType([L.object,L.string,L.func]),linkThreeObjectExtend:L.oneOfType([L.bool,L.string,L.func]),linkPositionUpdate:L.func,linkDirectionalArrowResolution:L.number,linkDirectionalParticleResolution:L.number,forceEngine:L.oneOf(["d3","ngraph"]),ngraphPhysics:L.object,numDimensions:L.oneOf([1,2,3])},EC=Object.assign({},wa,Lm,{linkLineDash:L.oneOfType([L.arrayOf(L.number),L.string,L.func]),nodeCanvasObjectMode:L.oneOfType([L.string,L.func]),nodeCanvasObject:L.func,nodePointerAreaPaint:L.func,linkCanvasObjectMode:L.oneOfType([L.string,L.func]),linkCanvasObject:L.func,linkPointerAreaPaint:L.func,autoPauseRedraw:L.bool,minZoom:L.number,maxZoom:L.number,enableZoomInteraction:L.oneOfType([L.bool,L.func]),enablePanInteraction:L.oneOfType([L.bool,L.func]),onZoom:L.func,onZoomEnd:L.func,onRenderFramePre:L.func,onRenderFramePost:L.func});Object.assign({},wa,Lm,jf,{enableNavigationControls:L.bool,controlType:L.oneOf(["trackball","orbit","fly"]),rendererConfig:L.object,extraRenderers:L.arrayOf(L.shape({render:L.func.isRequired}))});Object.assign({},wa,jf,{nodeDesc:L.oneOfType([L.string,L.func]),linkDesc:L.oneOfType([L.string,L.func])});Object.assign({},wa,jf,{markerAttrs:L.object,yOffset:L.number,glScale:L.number});const Af=e_(wC,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Af.displayName="ForceGraph2D";Af.propTypes=EC;const PC=e=>{const n=[],i=[];e.forEach(u=>{const f=u.metadata;if(!u.id||!f||typeof f!="object")return;const h={id:u.id,name:f.title||u.id.substring(0,8),memory:u,val:3,type:(f.type||"").toLowerCase()==="document"?"document":"fragment"};(f.type||"").toLowerCase()==="document"?(h.val=5,n.push(h)):(f.type||"").toLowerCase()==="fragment"||f.documentId&&(f.type||"").toLowerCase()!=="document"?(h.val=3,i.push(h)):n.push(h)});const s=[];return i.forEach(u=>{const f=u.memory.metadata;if(f.documentId){const h=n.find(p=>p.id===f.documentId);h&&s.push({source:h.id,target:u.id,value:1})}}),{nodes:[...n,...i],links:s}};function NC({memories:e,onNodeClick:n,selectedMemoryId:i}){const s=de.useRef(null),[a,u]=de.useState(!1),[f,h]=de.useState(!0),[p,m]=de.useState({nodes:[],links:[]}),v=de.useRef(null),[g,_]=de.useState({width:800,height:600}),x=4;de.useEffect(()=>{if(e.length>0){const S=PC(e);m(S)}},[e]),de.useEffect(()=>()=>{s.current=null,u(!1),h(!1)},[]),de.useEffect(()=>{const S=()=>{if(v.current){const{offsetWidth:k,offsetHeight:O}=v.current;_({width:k,height:O})}};return S(),window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[]),de.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=de.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=()=>A.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:[A.jsx("div",{className:"font-medium mb-2 text-xs",children:"Legend"}),A.jsxs("div",{className:"flex items-center mb-2",children:[A.jsx("div",{className:"w-3 h-3 rounded-full bg-orange-500/90 mr-2 border border-orange-600/60"}),A.jsx("span",{children:"Document"})]}),A.jsxs("div",{className:"flex items-center",children:[A.jsx("div",{className:"w-3 h-3 rounded-full bg-gray-400/90 mr-2 border border-gray-500/60"}),A.jsx("span",{children:"Fragment"})]})]});return A.jsxs("div",{ref:v,className:"w-full h-full relative",children:[C(),f&&A.jsx(Af,{ref:b,graphData:p,width:g.width,height:g.height,backgroundColor:"hsla(var(--background), 0.8)",linkColor:()=>"hsla(var(--muted-foreground), 0.2)",linkWidth:1,linkDirectionalParticles:1,linkDirectionalParticleWidth:1,linkDirectionalParticleSpeed:.003,nodeRelSize:x,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:j,y:P}=S,N=(S.val||3)*x,D=10/O,F=i===S.id,I=S.type==="document";if(k.beginPath(),k.arc(j||0,P||0,N,0,2*Math.PI),k.fillStyle=I?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",k.fill(),k.strokeStyle=I?"hsl(30, 100%, 35%)":"hsl(210, 10%, 45%)",k.lineWidth=F?2:1,k.stroke(),O>=1.4||F){const B=S.name||S.id.substring(0,6),K=S.memory.metadata,Z=I?B:K.position!==void 0?`#${K.position}`:B;k.font=`${F?"bold ":""}${D}px Arial`,k.textAlign="center",k.textBaseline="middle",k.strokeStyle="hsla(var(--background), 0.8)",k.lineWidth=3,k.strokeText(Z,j||0,P||0),k.fillStyle="hsla(var(--foreground), 0.9)",k.fillText(Z,j||0,P||0)}if(F){k.beginPath(),k.arc(j||0,P||0,N*1.4,0,2*Math.PI),k.strokeStyle=I?"hsla(30, 100%, 60%, 0.8)":"hsla(210, 10%, 80%, 0.8)",k.lineWidth=1.5,k.stroke();const B=k.createRadialGradient(j||0,P||0,N,j||0,P||0,N*2);B.addColorStop(0,I?"hsla(30, 100%, 60%, 0.3)":"hsla(210, 10%, 80%, 0.3)"),B.addColorStop(1,"hsla(0, 0%, 0%, 0)"),k.fillStyle=B,k.beginPath(),k.arc(j||0,P||0,N*2,0,2*Math.PI),k.fill()}}})]})}const bs=(...e)=>e.filter(Boolean).join(" "),TC=()=>({toast:({title:e,description:n,variant:i})=>{console.log(`Toast: ${e} - ${n} (${i||"default"})`)}}),Gg=({open:e,onOpenChange:n,children:i})=>e?A.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:A.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,Xg=({className:e,children:n})=>A.jsx("div",{className:bs("p-6 flex flex-col border-border",e),children:n}),Yg=({className:e,children:n})=>A.jsx("div",{className:bs("mb-4",e),children:n}),Zg=({className:e,children:n})=>A.jsx("h2",{className:bs("text-lg font-semibold",e),children:n}),Jg=({className:e,children:n})=>A.jsx("p",{className:bs("text-sm text-muted-foreground",e),children:n}),e0=({className:e,children:n})=>A.jsx("div",{className:bs("flex justify-end gap-2 mt-4",e),children:n}),Ql=10,Fm=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"],m=["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":m.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"},da={getKnowledgeDocuments:async(e,n)=>{const i=new URLSearchParams;i.append("agentId",e),n!=null&&n.limit&&i.append("limit",n.limit.toString()),n!=null&&n.before&&i.append("before",n.before.toString()),n!=null&&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!=null&&n.limit&&i.append("limit",n.limit.toString()),n!=null&&n.before&&i.append("before",n.before.toString()),n!=null&&n.documentId&&i.append("documentId",n.documentId);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=Fm(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()}},MC=(e,n=!0,i=!1)=>qc({queryKey:["agents",e,"knowledge","documents",{includeEmbedding:i}],queryFn:async()=>(await da.getKnowledgeDocuments(e,{includeEmbedding:i})).data.memories||[],enabled:n}),OC=(e,n=!0,i)=>{const{data:s=[],isLoading:a,error:u}=qc({queryKey:["agents",e,"knowledge","chunks",{documentIdFilter:i}],queryFn:async()=>(await da.getKnowledgeChunks(e,{documentId:i})).data.chunks||[],enabled:n}),{data:f=[],isLoading:h,error:p}=qc({queryKey:["agents",e,"knowledge","documents-for-graph"],queryFn:async()=>(await da.getKnowledgeDocuments(e,{includeEmbedding:!1})).data.memories||[],enabled:n}),m=[...f,...s],v=a||h,g=u||p;return console.log(`Documents: ${f.length}, Fragments: ${s.length}, Total: ${m.length}`),{data:m,isLoading:v,error:g}},RC=e=>{const n=pa();return m1({mutationFn:async({knowledgeId:i})=>{await da.deleteKnowledgeDocument(e,i)},onSuccess:()=>{n.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})}})};function jC({agentId:e}){var hi,lo;const[n,i]=de.useState(null),[s,a]=de.useState(!1),[u,f]=de.useState(Ql),[h,p]=de.useState(!1),[m,v]=de.useState("list"),[g,_]=de.useState(null),[x,b]=de.useState(void 0),[C,S]=de.useState(1),[k,O]=de.useState(!1),[j,P]=de.useState(""),[N,D]=de.useState(!1),[F,I]=de.useState(null),[B,K]=de.useState([]),Z=de.useRef(null),ie=de.useRef(null),{toast:ce}=TC(),$=pa(),{data:te=[],isLoading:W,error:oe}=MC(e,m==="list",!1),{data:Q=[],isLoading:J,error:G}=OC(e,m==="graph",x),R=m==="list"?W:J,q=m==="list"?oe:G,le=m==="list"?te:Q,{mutate:ge}=RC(e),ke=de.useCallback(()=>{if(!ie.current||h||u>=le.length)return;const{scrollTop:se,scrollHeight:we,clientHeight:Me}=ie.current;se+Me>=we-100&&(p(!0),setTimeout(()=>{f(Be=>Math.min(Be+Ql,le.length)),p(!1)},300))},[h,u,le.length]);if(de.useEffect(()=>{f(Ql)},[]),de.useEffect(()=>{const se=ie.current;if(se)return se.addEventListener("scroll",ke),()=>se.removeEventListener("scroll",ke)},[ke]),R&&(!le||le.length===0))return A.jsx("div",{className:"flex items-center justify-center h-40",children:"Loading knowledge documents..."});if(q)return A.jsxs("div",{className:"flex items-center justify-center h-40 text-destructive",children:["Error loading knowledge documents: ",q.message]});const be=se=>{const we=new Date(se);return`${we.toLocaleDateString()} ${we.toLocaleTimeString()}`},Ee=se=>{var Me;switch((Me=se.split(".").pop())==null?void 0:Me.toLowerCase()){case"md":return A.jsx(yc,{className:"h-4 w-4 text-blue-500"});case"js":case"ts":case"jsx":case"tsx":return A.jsx(yc,{className:"h-4 w-4 text-yellow-500"});case"json":return A.jsx(yc,{className:"h-4 w-4 text-green-500"});case"pdf":return A.jsx(Lp,{className:"h-4 w-4 text-red-500"});default:return A.jsx(Lp,{className:"h-4 w-4 text-gray-500"})}},Ce=se=>{se&&window.confirm("Are you sure you want to delete this document?")&&(ge({knowledgeId:se}),i(null))},je=()=>{Z.current&&Z.current.click()},yt=()=>{O(!0),P(""),K([]),I(null)},Ar=()=>{try{if(!new URL(j).protocol.startsWith("http")){I("URL must start with http:// or https://");return}if(B.includes(j)){I("This URL is already in the list");return}K([...B,j]),P(""),I(null)}catch{I("Invalid URL")}},Cs=se=>{K(B.filter(we=>we!==se))},fi=async()=>{var se;if(j.trim())try{new URL(j).protocol.startsWith("http")&&!B.includes(j)&&K([...B,j])}catch{}if(B.length===0){I("Please add at least one valid URL");return}D(!0),I(null);try{const we=await fetch("/api/documents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileUrls:B,agentId:e})});if(!we.ok){const Je=await we.text();throw new Error(Je)}const Me=await we.json();Me.success?(ce({title:"URLs imported",description:`Successfully imported ${B.length} document(s)`}),O(!1),$.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})):I(((se=Me.error)==null?void 0:se.message)||"Error importing documents from URLs")}catch(we){I(we.message||"Error importing documents from URLs"),ce({title:"Error",description:"Failed to import documents from URLs",variant:"destructive"})}finally{D(!1)}},io=async se=>{const we=se.target.files;if(!(!we||we.length===0)){a(!0);try{const Me=Array.from(we),Je=new FormData;for(const et of Me){const Dt=Fm(et),Vt=new Blob([et],{type:Dt});Je.append("files",Vt,et.name)}Je.append("agentId",e);const Be=await fetch("/api/documents",{method:"POST",body:Je});if(!Be.ok)throw new Error(`Upload failed: ${Be.statusText}`);const vt=(await Be.json()).data||[];if(Array.isArray(vt)&&vt.every(et=>et.status==="success"))ce({title:"Knowledge Uploaded",description:`Successfully uploaded ${Me.length} file(s)`}),$.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]});else{const et=vt.filter(Vt=>Vt.status==="success").length,Dt=Me.length-et;ce({title:Dt>0?"Upload Partially Failed":"Upload Issues",description:`Uploaded ${et} file(s). ${Dt} file(s) failed. Check console for details.`,variant:Dt>0?"destructive":"default"}),console.error("Upload results:",vt)}}catch(Me){ce({title:"Upload Failed",description:Me instanceof Error?Me.message:"Failed to upload knowledge files",variant:"destructive"}),console.error("Upload error:",Me)}finally{a(!1),Z.current&&(Z.current.value="")}}},Es=le.slice(0,u),Ps=u<le.length,oo=()=>A.jsx("div",{className:"flex justify-center p-4",children:h?A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx(vc,{className:"h-4 w-4 animate-spin"}),A.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading more..."})]}):A.jsx(pt,{variant:"ghost",size:"sm",onClick:()=>f(se=>se+Ql),className:"text-xs",children:"Show more"})}),Ns=()=>A.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:[A.jsx(E1,{className:"h-12 w-12 text-muted-foreground opacity-20"}),A.jsx("h3",{className:"text-lg font-medium",children:"No Knowledge Documents"}),A.jsx("p",{className:"max-w-md text-sm",children:"No Knowledge Documents found."}),A.jsxs(pt,{variant:"outline",onClick:je,children:[A.jsx(Fp,{className:"h-4 w-4 mr-2"}),"Upload Documents"]})]}),so=({memory:se,index:we})=>{var Dt;const Me=se.metadata||{},Je=Me.title||se.id||"Unknown Document",Be=Me.filename||"Unknown Document",Jn=Me.fileExt||((Dt=Be.split(".").pop())==null?void 0:Dt.toLowerCase())||"",vt=Je,et=Me.path||Be;return A.jsx("button",{type:"button",className:"w-full text-left",onClick:()=>i(se),children:A.jsxs(R1,{className:"hover:bg-accent/10 transition-colors relative group",children:[A.jsx("div",{className:"absolute top-3 left-3 opacity-70",children:Ee(Be)}),A.jsxs(j1,{className:"p-3 pb-2 pl-10",children:[A.jsx("div",{className:"text-xs text-muted-foreground mb-1 line-clamp-1",children:et}),A.jsxs("div",{className:"mb-2",children:[A.jsx("div",{className:"text-sm font-medium mb-1",children:vt}),Me.description&&A.jsx("div",{className:"text-xs text-muted-foreground line-clamp-2",children:Me.description})]})]}),A.jsx(A1,{className:"p-2 border-t bg-muted/30 text-xs text-muted-foreground",children:A.jsxs("div",{className:"flex justify-between items-center w-full",children:[A.jsxs("div",{className:"flex items-center",children:[A.jsx(P1,{className:"h-3 w-3 mr-1.5"}),A.jsx("span",{children:new Date(se.createdAt||0).toLocaleString(void 0,{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"})})]}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx(O1,{variant:"outline",className:"px-1.5 py-0 h-5",children:Jn||"unknown document"}),se.id&&A.jsx(pt,{variant:"ghost",size:"icon",className:"size-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:Vt=>{Vt&&(Vt.stopPropagation(),Vt.preventDefault()),Ce(se.id||"")},title:"Delete knowledge",children:A.jsx(M1,{className:"h-3.5 w-3.5 text-destructive"})})]})]})})]})},se.id||we)},zr=se=>{b(se===x?void 0:se)},Zn=({memory:se})=>{var Je,Be;const we=se.metadata,Me=(we==null?void 0:we.type)==="fragment";return we==null||we.type,A.jsxs("div",{className:"border-t border-border bg-card text-card-foreground h-full flex flex-col",children:[A.jsxs("div",{className:"p-4 flex justify-between items-start flex-shrink-0",children:[A.jsxs("div",{className:"space-y-1",children:[A.jsxs("h3",{className:"text-sm font-medium flex items-center gap-2",children:[Me?A.jsxs("span",{className:"flex items-center",children:[A.jsx("div",{className:"h-3 w-3 rounded-full bg-accent mr-1.5"}),"Fragment"]}):A.jsxs("span",{className:"flex items-center",children:[A.jsx("div",{className:"h-3 w-3 rounded-full bg-primary mr-1.5"}),"Document"]}),A.jsx("span",{className:"text-muted-foreground ml-2",children:(we==null?void 0:we.title)||((Je=se.id)==null?void 0:Je.substring(0,8))})]}),A.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[A.jsxs("div",{className:"col-span-2",children:["ID: ",A.jsx("span",{className:"font-mono",children:se.id})]}),Me&&we.documentId&&A.jsxs("div",{className:"col-span-2",children:["Parent Document: ",A.jsx("span",{className:"font-mono text-primary/80",children:we.documentId})]}),Me&&we.position!==void 0&&A.jsxs("div",{children:["Position: ",we.position]}),we.source&&A.jsxs("div",{children:["Source: ",we.source]}),A.jsxs("div",{children:["Created on: ",be(se.createdAt||0)]})]})]}),A.jsx(pt,{variant:"ghost",size:"sm",onClick:()=>_(null),className:"text-xs h-7 px-2",children:"Close"})]}),A.jsxs("div",{className:"px-4 pb-4 flex-1 flex flex-col",children:[A.jsx("div",{className:"bg-background rounded border border-border p-3 text-sm overflow-auto flex-1",children:A.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs h-full",children:((Be=se.content)==null?void 0:Be.text)||"No content available"})}),se.embedding&&A.jsxs("div",{className:"mt-2 flex items-center text-xs text-muted-foreground flex-shrink-0",children:[A.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"}),A.jsxs("span",{children:["Vector with ",se.embedding.length," dimensions"]})]})]})]})};return A.jsxs("div",{className:"flex flex-col h-full",children:[A.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between p-4 border-b gap-3",children:[A.jsxs("div",{className:"flex flex-col gap-1",children:[A.jsx("h2",{className:"text-lg font-semibold",children:"Knowledge"}),A.jsx("p",{className:"text-xs text-muted-foreground",children:m==="list"?"Viewing documents only":"Viewing documents and their fragments"})]}),A.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[A.jsx(pt,{variant:"outline",size:"sm",onClick:()=>v(m==="list"?"graph":"list"),className:"flex-shrink-0",title:m==="list"?"Switch to Graph view to see documents and fragments":"Switch to List view to see documents only",children:m==="list"?A.jsxs(A.Fragment,{children:[A.jsx(T1,{className:"h-4 w-4 mr-2"}),A.jsx("span",{className:"hidden md:inline",children:"Graph View"}),A.jsx("span",{className:"md:hidden",children:"Graph"})]}):A.jsxs(A.Fragment,{children:[A.jsx(N1,{className:"h-4 w-4 mr-2"}),A.jsx("span",{className:"hidden md:inline",children:"List View"}),A.jsx("span",{className:"md:hidden",children:"List"})]})}),m==="graph"&&x&&A.jsxs(pt,{variant:"outline",size:"sm",onClick:()=>b(void 0),className:"flex-shrink-0",children:[A.jsx("span",{className:"hidden sm:inline",children:"Clear Filter"}),A.jsx("span",{className:"sm:hidden",children:"Clear"})]}),A.jsxs("div",{className:"flex gap-2 ml-auto sm:ml-0",children:[A.jsxs(pt,{variant:"outline",onClick:yt,size:"sm",className:"flex-shrink-0",children:[A.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:[A.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"}),A.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"})]}),A.jsx("span",{className:"hidden sm:inline",children:"URL"})]}),A.jsxs(pt,{onClick:je,disabled:s,size:"sm",className:"flex-shrink-0",children:[s?A.jsx(vc,{className:"h-4 w-4 animate-spin sm:mr-2"}):A.jsx(Fp,{className:"h-4 w-4 sm:mr-2"}),A.jsx("span",{className:"hidden sm:inline",children:"Upload"})]})]})]})]}),k&&A.jsx(Gg,{open:k,onOpenChange:O,children:A.jsxs(Xg,{className:"max-w-md w-full",children:[A.jsxs(Yg,{children:[A.jsx(Zg,{className:"text-xl font-bold",children:"Import from URL"}),A.jsx(Jg,{children:"Enter one or more URLs of PDF, text, or other files to import into the knowledge base."})]}),A.jsxs("div",{className:"mt-6 space-y-4",children:[A.jsxs("div",{className:"flex gap-2",children:[A.jsx(z1,{placeholder:"https://example.com/document.pdf",value:j,onChange:se=>P(se.target.value),disabled:N,className:"flex-1",onKeyDown:se=>{se.key==="Enter"&&j.trim()&&(se.preventDefault(),Ar())}}),A.jsx(pt,{variant:"outline",size:"sm",onClick:Ar,disabled:N||!j.trim(),children:"Add"})]}),F&&A.jsx("div",{className:"text-sm text-destructive bg-destructive/10 p-2 rounded-md",children:F}),B.length>0&&A.jsxs("div",{className:"border border-border rounded-md bg-card/50 p-3 mt-2",children:[A.jsxs("h4",{className:"text-sm font-medium mb-2",children:["URLs to import (",B.length,")"]}),A.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:B.map((se,we)=>A.jsxs("div",{className:"flex items-center justify-between text-sm bg-background p-2 rounded border border-border",children:[A.jsx("span",{className:"truncate flex-1",children:se}),A.jsx(pt,{variant:"ghost",size:"icon",className:"h-6 w-6 hover:bg-destructive/10 hover:text-destructive",onClick:()=>Cs(se),disabled:N,children:A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},we))})]})]}),A.jsxs(e0,{className:"mt-6 pt-4 border-t border-border",children:[A.jsx(pt,{variant:"outline",onClick:()=>O(!1),disabled:N,children:"Cancel"}),A.jsx(pt,{onClick:fi,disabled:N||B.length===0&&!j.trim(),children:N?A.jsxs(A.Fragment,{children:[A.jsx(vc,{className:"h-4 w-4 animate-spin mr-2"}),"Importing..."]}):"Import"})]})]})}),A.jsx("input",{ref:Z,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:io,className:"hidden"}),A.jsx("div",{className:"flex-1 overflow-hidden",children:le.length===0?A.jsx(Ns,{}):m==="graph"?A.jsxs("div",{className:"flex flex-col h-full",children:[A.jsxs("div",{className:`p-4 overflow-hidden ${g?"h-1/3":"flex-1"} transition-all duration-300`,children:[A.jsx(NC,{memories:le,onNodeClick:se=>{_(se),se.metadata&&typeof se.metadata=="object"&&"type"in se.metadata&&(se.metadata.type||"").toLowerCase()==="document"&&!("documentId"in se.metadata)&&zr(se.id)},selectedMemoryId:g==null?void 0:g.id}),x&&A.jsx("div",{className:"absolute top-16 left-4 bg-card/90 backdrop-blur-sm text-card-foreground p-2 rounded-md shadow-sm border border-border",children:A.jsxs("span",{className:"text-xs text-muted-foreground flex items-center",children:[A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3 mr-1.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:A.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),"Filtering by document ID: ",A.jsxs("span",{className:"font-mono ml-1",children:[x.substring(0,8),"..."]})]})})]}),g&&A.jsx("div",{className:"h-2/3 overflow-hidden flex-1 transition-all duration-300",children:A.jsx(Zn,{memory:g})})]}):A.jsxs("div",{ref:ie,className:"h-full overflow-y-auto p-4",children:[A.jsx("div",{className:"grid gap-3",children:Es.map((se,we)=>A.jsx(so,{memory:se,index:we},se.id||we))}),Ps&&A.jsx(oo,{})]})}),n&&A.jsx(Gg,{open:!!n,onOpenChange:()=>i(null),children:A.jsxs(Xg,{className:"max-w-[95vw] w-full max-h-[95vh] h-full overflow-hidden flex flex-col p-0",children:[A.jsx(Yg,{className:"flex-shrink-0 p-6 pb-2",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx(Zg,{className:"text-xl",children:((hi=n.metadata)==null?void 0:hi.title)||"Document Content"}),A.jsx(Jg,{children:((lo=n.metadata)==null?void 0:lo.filename)||"Knowledge document"})]}),(()=>{var Be;const se=n.metadata,we=(se==null?void 0:se.contentType)||"",Me=((Be=se==null?void 0:se.fileExt)==null?void 0:Be.toLowerCase())||"";return we==="application/pdf"||Me==="pdf"?A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx(pt,{variant:"outline",size:"sm",onClick:()=>S(Math.max(.5,C-.25)),disabled:C<=.5,children:A.jsx("span",{className:"text-lg",children:"−"})}),A.jsxs("span",{className:"text-sm font-medium min-w-[60px] text-center",children:[Math.round(C*100),"%"]}),A.jsx(pt,{variant:"outline",size:"sm",onClick:()=>S(Math.min(3,C+.25)),disabled:C>=3,children:A.jsx("span",{className:"text-lg",children:"+"})}),A.jsx(pt,{variant:"outline",size:"sm",onClick:()=>S(1),children:"Reset"})]}):null})()]})}),A.jsx("div",{className:"flex-1 overflow-auto px-6 pb-2",children:(()=>{var Be,Jn,vt,et;const se=n.metadata,we=(se==null?void 0:se.contentType)||"",Me=((Be=se==null?void 0:se.fileExt)==null?void 0:Be.toLowerCase())||"",Je=we==="application/pdf"||Me==="pdf";if(Je&&((Jn=n.content)!=null&&Jn.text)){const Dt=n.content.text.trim();if(!Dt)return A.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6 flex items-center justify-center",children:A.jsxs("div",{className:"text-center text-muted-foreground",children:[A.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:A.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"})}),A.jsx("p",{className:"text-lg font-medium",children:"PDF Content Unavailable"}),A.jsx("p",{className:"text-sm",children:"The PDF content could not be loaded."})]})});const Vt=`data:application/pdf;base64,${Dt}`;return A.jsx("div",{className:"w-full h-full rounded-lg overflow-auto bg-card border border-border",children:A.jsx("div",{className:"min-w-full flex items-center justify-center p-4",style:{minHeight:"100%",transform:`scale(${C})`,transformOrigin:"top center",width:C>1?`${100/C}%`:"100%"},children:A.jsx("iframe",{src:Vt,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 Je&&!((vt=n.content)!=null&&vt.text)?A.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6 flex items-center justify-center",children:A.jsxs("div",{className:"text-center text-muted-foreground",children:[A.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:A.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"})}),A.jsx("p",{className:"text-lg font-medium",children:"PDF Not Available"}),A.jsx("p",{className:"text-sm",children:"This PDF document has no content to display."})]})}):A.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6",children:A.jsx("pre",{className:"whitespace-pre-wrap text-sm font-mono leading-relaxed text-foreground",children:((et=n.content)==null?void 0:et.text)||"No content available"})})})()}),A.jsx(e0,{className:"flex-shrink-0 p-6 pt-4 border-t border-border",children:A.jsx(pt,{variant:"outline",onClick:()=>{i(null),S(1)},children:"Close"})})]})})]})}const AC=new Jv;function zC(){const e=window.ELIZA_CONFIG,n=e==null?void 0:e.agentId;return b0.useEffect(()=>{document.documentElement.classList.add("dark")},[]),n?A.jsx(DC,{agentId:n}):A.jsxs("div",{className:"p-4 text-center",children:[A.jsx("div",{className:"text-red-600 font-medium",children:"Error: Agent ID not found"}),A.jsx("div",{className:"text-sm text-gray-600 mt-2",children:"The server should inject the agent ID configuration."})]})}function DC({agentId:e}){return A.jsx(i1,{client:AC,children:A.jsx(jC,{agentId:e})})}const t0=document.getElementById("root");t0&&k1.createRoot(t0).render(A.jsx(zC,{}));
|