diff --git a/assets/index-840296d2.css b/assets/index-840296d2.css
deleted file mode 100644
index 8dd6243..0000000
--- a/assets/index-840296d2.css
+++ /dev/null
@@ -1 +0,0 @@
-:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;background-image:url("data:image/svg+xml,");-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}body{margin:0;display:flex;place-items:center;min-height:100vh}body #root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}*{box-sizing:border-box}
diff --git a/assets/index-8f04c5f7.js b/assets/index-8f04c5f7.js
deleted file mode 100644
index d119891..0000000
--- a/assets/index-8f04c5f7.js
+++ /dev/null
@@ -1 +0,0 @@
-import{b as a,a as o,T as r}from"./index-456e1910.js";export{a as ThemeContextProvider,o as ThemeSwitchButton,r as default};
diff --git a/assets/index-91ec5f9d.js b/assets/index-91ec5f9d.js
new file mode 100644
index 0000000..8a02deb
--- /dev/null
+++ b/assets/index-91ec5f9d.js
@@ -0,0 +1 @@
+import{b as a,a as o,T as r}from"./index-e10349a0.js";export{a as ThemeContextProvider,o as ThemeSwitchButton,r as default};
diff --git a/assets/index-d091f9e0.css b/assets/index-d091f9e0.css
new file mode 100644
index 0000000..8d8cef7
--- /dev/null
+++ b/assets/index-d091f9e0.css
@@ -0,0 +1 @@
+@font-face{font-family:Iosevka Etoile;font-style:normal;font-display:swap;font-weight:400;src:url(/guessing-game/assets/iosevka-etoile-latin-400-normal-27c295bc.woff2) format("woff2"),url(/guessing-game/assets/iosevka-etoile-latin-400-normal-58900047.woff) format("woff")}:root{line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;background-image:url("data:image/svg+xml,");-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}body{margin:0;display:flex;place-items:center;min-height:100vh}body #root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}*{box-sizing:border-box;font-family:Iosevka Etoile,Inter,system-ui,Avenir,Helvetica,Arial,sans-serif}
diff --git a/assets/index-456e1910.js b/assets/index-e10349a0.js
similarity index 50%
rename from assets/index-456e1910.js
rename to assets/index-e10349a0.js
index d542e2a..40f7263 100644
--- a/assets/index-456e1910.js
+++ b/assets/index-e10349a0.js
@@ -1,4 +1,4 @@
-var xl=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var x=(t,e,n)=>(xl(t,e,"read from private field"),n?n.call(t):e.get(t)),A=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},T=(t,e,n,i)=>(xl(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);var go=(t,e,n,i)=>({set _(r){T(t,e,r,n)},get _(){return x(t,e,i)}}),q=(t,e,n)=>(xl(t,e,"access private method"),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();var Hm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var up={exports:{}},Ua={},cp={exports:{}},Q={};/**
+var Cl=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var x=(t,e,n)=>(Cl(t,e,"read from private field"),n?n.call(t):e.get(t)),F=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},I=(t,e,n,i)=>(Cl(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);var vo=(t,e,n,i)=>({set _(r){I(t,e,r,n)},get _(){return x(t,e,i)}}),V=(t,e,n)=>(Cl(t,e,"access private method"),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();var Km=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pp={exports:{}},Wa={},mp={exports:{}},q={};/**
* @license React
* react.production.min.js
*
@@ -6,7 +6,7 @@ var xl=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var x=(t,e,n)=>(xl(t
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var ao=Symbol.for("react.element"),Gm=Symbol.for("react.portal"),Wm=Symbol.for("react.fragment"),qm=Symbol.for("react.strict_mode"),Qm=Symbol.for("react.profiler"),Vm=Symbol.for("react.provider"),Km=Symbol.for("react.context"),Ym=Symbol.for("react.forward_ref"),Xm=Symbol.for("react.suspense"),Zm=Symbol.for("react.memo"),Jm=Symbol.for("react.lazy"),Zf=Symbol.iterator;function ey(t){return t===null||typeof t!="object"?null:(t=Zf&&t[Zf]||t["@@iterator"],typeof t=="function"?t:null)}var fp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dp=Object.assign,hp={};function Vr(t,e,n){this.props=t,this.context=e,this.refs=hp,this.updater=n||fp}Vr.prototype.isReactComponent={};Vr.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Vr.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function pp(){}pp.prototype=Vr.prototype;function Fc(t,e,n){this.props=t,this.context=e,this.refs=hp,this.updater=n||fp}var Nc=Fc.prototype=new pp;Nc.constructor=Fc;dp(Nc,Vr.prototype);Nc.isPureReactComponent=!0;var Jf=Array.isArray,mp=Object.prototype.hasOwnProperty,$c={current:null},yp={key:!0,ref:!0,__self:!0,__source:!0};function gp(t,e,n){var i,r={},s=null,o=null;if(e!=null)for(i in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)mp.call(e,i)&&!yp.hasOwnProperty(i)&&(r[i]=e[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1{if(!e.has(t))throw TypeError("Cannot "+n)};var x=(t,e,n)=>(xl(t
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var sy=R,oy=Symbol.for("react.element"),ay=Symbol.for("react.fragment"),ly=Object.prototype.hasOwnProperty,uy=sy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cy={key:!0,ref:!0,__self:!0,__source:!0};function vp(t,e,n){var i,r={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(i in e)ly.call(e,i)&&!cy.hasOwnProperty(i)&&(r[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps,e)r[i]===void 0&&(r[i]=e[i]);return{$$typeof:oy,type:t,key:s,ref:o,props:r,_owner:uy.current}}Ua.Fragment=ay;Ua.jsx=vp;Ua.jsxs=vp;up.exports=Ua;var F=up.exports,gu={},wp={exports:{}},xt={},xp={exports:{}},kp={};/**
+ */var fy=T,dy=Symbol.for("react.element"),hy=Symbol.for("react.fragment"),py=Object.prototype.hasOwnProperty,my=fy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yy={key:!0,ref:!0,__self:!0,__source:!0};function Cp(t,e,n){var i,r={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(i in e)py.call(e,i)&&!yy.hasOwnProperty(i)&&(r[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps,e)r[i]===void 0&&(r[i]=e[i]);return{$$typeof:dy,type:t,key:s,ref:o,props:r,_owner:my.current}}Wa.Fragment=hy;Wa.jsx=Cp;Wa.jsxs=Cp;pp.exports=Wa;var z=pp.exports,xu={},bp={exports:{}},kt={},_p={exports:{}},Ep={};/**
* @license React
* scheduler.production.min.js
*
@@ -22,7 +22,7 @@ var xl=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var x=(t,e,n)=>(xl(t
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */(function(t){function e(D,$){var j=D.length;D.push($);e:for(;0>>1,J=D[Z];if(0>>1;Zr(Ct,j))Der(Ve,Ct)?(D[Z]=Ve,D[De]=j,Z=De):(D[Z]=Ct,D[Qe]=j,Z=Qe);else if(Der(Ve,j))D[Z]=Ve,D[De]=j,Z=De;else break e}}return $}function r(D,$){var j=D.sortIndex-$.sortIndex;return j!==0?j:D.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var $=n(u);$!==null;){if($.callback===null)i(u);else if($.startTime<=D)i(u),$.sortIndex=$.expirationTime,e(l,$);else break;$=n(u)}}function w(D){if(v=!1,y(D),!g)if(n(l)!==null)g=!0,mn(S);else{var $=n(u);$!==null&&nt(w,$.startTime-D)}}function S(D,$){g=!1,v&&(v=!1,p(z),z=-1),h=!0;var j=d;try{for(y($),f=n(l);f!==null&&(!(f.expirationTime>$)||D&&!we());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,d=f.priorityLevel;var J=Z(f.expirationTime<=$);$=t.unstable_now(),typeof J=="function"?f.callback=J:f===n(l)&&i(l),y($)}else i(l);f=n(l)}if(f!==null)var qe=!0;else{var Qe=n(u);Qe!==null&&nt(w,Qe.startTime-$),qe=!1}return qe}finally{f=null,d=j,h=!1}}var _=!1,C=null,z=-1,B=5,U=-1;function we(){return!(t.unstable_now()-UD||125Z?(D.sortIndex=j,e(u,D),n(l)===null&&D===n(u)&&(v?(p(z),z=-1):v=!0,nt(w,j-Z))):(D.sortIndex=J,e(l,D),g||h||(g=!0,mn(S))),D},t.unstable_shouldYield=we,t.unstable_wrapCallback=function(D){var $=d;return function(){var j=d;d=$;try{return D.apply(this,arguments)}finally{d=j}}}})(kp);xp.exports=kp;var fy=xp.exports;/**
+ */(function(t){function e(D,$){var j=D.length;D.push($);e:for(;0>>1,J=D[Z];if(0>>1;Zr(_t,j))Ler(Xe,_t)?(D[Z]=Xe,D[Le]=j,Z=Le):(D[Z]=_t,D[Ye]=j,Z=Ye);else if(Ler(Xe,j))D[Z]=Xe,D[Le]=j,Z=Le;else break e}}return $}function r(D,$){var j=D.sortIndex-$.sortIndex;return j!==0?j:D.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var $=n(u);$!==null;){if($.callback===null)i(u);else if($.startTime<=D)i(u),$.sortIndex=$.expirationTime,e(l,$);else break;$=n(u)}}function w(D){if(v=!1,y(D),!g)if(n(l)!==null)g=!0,gn(k);else{var $=n(u);$!==null&&rt(w,$.startTime-D)}}function k(D,$){g=!1,v&&(v=!1,p(R),R=-1),h=!0;var j=d;try{for(y($),f=n(l);f!==null&&(!(f.expirationTime>$)||D&&!xe());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,d=f.priorityLevel;var J=Z(f.expirationTime<=$);$=t.unstable_now(),typeof J=="function"?f.callback=J:f===n(l)&&i(l),y($)}else i(l);f=n(l)}if(f!==null)var Ke=!0;else{var Ye=n(u);Ye!==null&&rt(w,Ye.startTime-$),Ke=!1}return Ke}finally{f=null,d=j,h=!1}}var _=!1,C=null,R=-1,B=5,U=-1;function xe(){return!(t.unstable_now()-UD||125Z?(D.sortIndex=j,e(u,D),n(l)===null&&D===n(u)&&(v?(p(R),R=-1):v=!0,rt(w,j-Z))):(D.sortIndex=J,e(l,D),g||h||(g=!0,gn(k))),D},t.unstable_shouldYield=xe,t.unstable_wrapCallback=function(D){var $=d;return function(){var j=d;d=$;try{return D.apply(this,arguments)}finally{d=j}}}})(Ep);_p.exports=Ep;var gy=_p.exports;/**
* @license React
* react-dom.production.min.js
*
@@ -30,14 +30,14 @@ var xl=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var x=(t,e,n)=>(xl(t
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var Sp=R,wt=fy;function M(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vu=Object.prototype.hasOwnProperty,dy=/^[: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]*$/,td={},nd={};function hy(t){return vu.call(nd,t)?!0:vu.call(td,t)?!1:dy.test(t)?nd[t]=!0:(td[t]=!0,!1)}function py(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function my(t,e,n,i){if(e===null||typeof e>"u"||py(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function et(t,e,n,i,r,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Fe[t]=new et(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Fe[e]=new et(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Fe[t]=new et(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Fe[t]=new et(t,2,!1,t,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(t){Fe[t]=new et(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Fe[t]=new et(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Fe[t]=new et(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Fe[t]=new et(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Fe[t]=new et(t,5,!1,t.toLowerCase(),null,!1,!1)});var Bc=/[\-:]([a-z])/g;function Uc(t){return t[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(t){var e=t.replace(Bc,Uc);Fe[e]=new et(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Bc,Uc);Fe[e]=new et(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Bc,Uc);Fe[e]=new et(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Fe[t]=new et(t,1,!1,t.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Fe[t]=new et(t,1,!1,t.toLowerCase(),null,!0,!0)});function Hc(t,e,n,i){var r=Fe.hasOwnProperty(e)?Fe[e]:null;(r!==null?r.type!==0:i||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Su=Object.prototype.hasOwnProperty,vy=/^[: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]*$/,sd={},od={};function wy(t){return Su.call(od,t)?!0:Su.call(sd,t)?!1:vy.test(t)?od[t]=!0:(sd[t]=!0,!1)}function xy(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Sy(t,e,n,i){if(e===null||typeof e>"u"||xy(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function nt(t,e,n,i,r,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){je[t]=new nt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];je[e]=new nt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){je[t]=new nt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){je[t]=new nt(t,2,!1,t,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(t){je[t]=new nt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){je[t]=new nt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){je[t]=new nt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){je[t]=new nt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){je[t]=new nt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Gc=/[\-:]([a-z])/g;function Wc(t){return t[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(t){var e=t.replace(Gc,Wc);je[e]=new nt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Gc,Wc);je[e]=new nt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Gc,Wc);je[e]=new nt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){je[t]=new nt(t,1,!1,t.toLowerCase(),null,!1,!1)});je.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){je[t]=new nt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Vc(t,e,n,i){var r=je.hasOwnProperty(e)?je[e]:null;(r!==null?r.type!==0:i||!(2a||r[o]!==s[a]){var l=`
-`+r[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{Cl=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?ls(t):""}function yy(t){switch(t.tag){case 5:return ls(t.type);case 16:return ls("Lazy");case 13:return ls("Suspense");case 19:return ls("SuspenseList");case 0:case 2:case 15:return t=bl(t.type,!1),t;case 11:return t=bl(t.type.render,!1),t;case 1:return t=bl(t.type,!0),t;default:return""}}function Su(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Zi:return"Fragment";case Xi:return"Portal";case wu:return"Profiler";case Gc:return"StrictMode";case xu:return"Suspense";case ku:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case _p:return(t.displayName||"Context")+".Consumer";case bp:return(t._context.displayName||"Context")+".Provider";case Wc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case qc:return e=t.displayName||null,e!==null?e:Su(t.type)||"Memo";case An:e=t._payload,t=t._init;try{return Su(t(e))}catch{}}return null}function gy(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Su(e);case 8:return e===Gc?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function li(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Pp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function vy(t){var e=Pp(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function xo(t){t._valueTracker||(t._valueTracker=vy(t))}function Op(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Pp(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function oa(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Cu(t,e){var n=e.checked;return pe({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function rd(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=li(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Mp(t,e){e=e.checked,e!=null&&Hc(t,"checked",e,!1)}function bu(t,e){Mp(t,e);var n=li(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?_u(t,e.type,n):e.hasOwnProperty("defaultValue")&&_u(t,e.type,li(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function sd(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function _u(t,e,n){(e!=="number"||oa(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var us=Array.isArray;function dr(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=ko.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Os(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ms={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},wy=["Webkit","ms","Moz","O"];Object.keys(ms).forEach(function(t){wy.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ms[e]=ms[t]})});function Dp(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||ms.hasOwnProperty(t)&&ms[t]?(""+e).trim():e+"px"}function Ip(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=Dp(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var xy=pe({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 Ou(t,e){if(e){if(xy[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(M(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(M(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(M(61))}if(e.style!=null&&typeof e.style!="object")throw Error(M(62))}}function Mu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 zu=null;function Qc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ru=null,hr=null,pr=null;function ld(t){if(t=co(t)){if(typeof Ru!="function")throw Error(M(280));var e=t.stateNode;e&&(e=Qa(e),Ru(t.stateNode,t.type,e))}}function Lp(t){hr?pr?pr.push(t):pr=[t]:hr=t}function Ap(){if(hr){var t=hr,e=pr;if(pr=hr=null,ld(t),e)for(t=0;t>>=0,t===0?32:31-(Ry(t)/Ty|0)|0}var So=64,Co=4194304;function cs(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function ca(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~r;a!==0?i=cs(a):(s&=o,s!==0&&(i=cs(s)))}else o=n&~r,o!==0?i=cs(o):s!==0&&(i=cs(s));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,s=e&-e,r>=s||r===16&&(s&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function lo(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-qt(e),t[e]=n}function Ay(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=gs),gd=String.fromCharCode(32),vd=!1;function n1(t,e){switch(t){case"keyup":return cg.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function i1(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ji=!1;function dg(t,e){switch(t){case"compositionend":return i1(e);case"keypress":return e.which!==32?null:(vd=!0,gd);case"textInput":return t=e.data,t===gd&&vd?null:t;default:return null}}function hg(t,e){if(Ji)return t==="compositionend"||!tf&&n1(t,e)?(t=e1(),Bo=Zc=Vn=null,Ji=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sd(n)}}function a1(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?a1(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function l1(){for(var t=window,e=oa();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=oa(t.document)}return e}function nf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Sg(t){var e=l1(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&a1(n.ownerDocument.documentElement,n)){if(i!==null&&nf(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!t.extend&&s>i&&(r=i,i=s,s=r),r=Cd(n,s);var o=Cd(n,i);r&&o&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),s>i?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,er=null,Fu=null,ws=null,Nu=!1;function bd(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nu||er==null||er!==oa(i)||(i=er,"selectionStart"in i&&nf(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ws&&Is(ws,i)||(ws=i,i=ha(Fu,"onSelect"),0ir||(t.current=Gu[ir],Gu[ir]=null,ir--)}function te(t,e){ir++,Gu[ir]=t.current,t.current=e}var ui={},We=di(ui),lt=di(!1),Fi=ui;function Ir(t,e){var n=t.type.contextTypes;if(!n)return ui;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=e[s];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function ut(t){return t=t.childContextTypes,t!=null}function ma(){oe(lt),oe(We)}function Rd(t,e,n){if(We.current!==ui)throw Error(M(168));te(We,e),te(lt,n)}function g1(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(M(108,gy(t)||"Unknown",r));return pe({},n,i)}function ya(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ui,Fi=We.current,te(We,t),te(lt,lt.current),!0}function Td(t,e,n){var i=t.stateNode;if(!i)throw Error(M(169));n?(t=g1(t,e,Fi),i.__reactInternalMemoizedMergedChildContext=t,oe(lt),oe(We),te(We,t)):oe(lt),te(lt,n)}var kn=null,Va=!1,Nl=!1;function v1(t){kn===null?kn=[t]:kn.push(t)}function Ig(t){Va=!0,v1(t)}function hi(){if(!Nl&&kn!==null){Nl=!0;var t=0,e=X;try{var n=kn;for(X=1;t>=o,r-=o,Sn=1<<32-qt(e)+r|n<z?(B=C,C=null):B=C.sibling;var U=d(p,C,y[z],w);if(U===null){C===null&&(C=B);break}t&&C&&U.alternate===null&&e(p,C),m=s(U,m,z),_===null?S=U:_.sibling=U,_=U,C=B}if(z===y.length)return n(p,C),le&&vi(p,z),S;if(C===null){for(;zz?(B=C,C=null):B=C.sibling;var we=d(p,C,U.value,w);if(we===null){C===null&&(C=B);break}t&&C&&we.alternate===null&&e(p,C),m=s(we,m,z),_===null?S=we:_.sibling=we,_=we,C=B}if(U.done)return n(p,C),le&&vi(p,z),S;if(C===null){for(;!U.done;z++,U=y.next())U=f(p,U.value,w),U!==null&&(m=s(U,m,z),_===null?S=U:_.sibling=U,_=U);return le&&vi(p,z),S}for(C=i(p,C);!U.done;z++,U=y.next())U=h(C,p,z,U.value,w),U!==null&&(t&&U.alternate!==null&&C.delete(U.key===null?z:U.key),m=s(U,m,z),_===null?S=U:_.sibling=U,_=U);return t&&C.forEach(function(St){return e(p,St)}),le&&vi(p,z),S}function k(p,m,y,w){if(typeof y=="object"&&y!==null&&y.type===Zi&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case wo:e:{for(var S=y.key,_=m;_!==null;){if(_.key===S){if(S=y.type,S===Zi){if(_.tag===7){n(p,_.sibling),m=r(_,y.props.children),m.return=p,p=m;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===An&&$d(S)===_.type){n(p,_.sibling),m=r(_,y.props),m.ref=ss(p,_,y),m.return=p,p=m;break e}n(p,_);break}else e(p,_);_=_.sibling}y.type===Zi?(m=Ii(y.props.children,p.mode,w,y.key),m.return=p,p=m):(w=Ko(y.type,y.key,y.props,null,p.mode,w),w.ref=ss(p,m,y),w.return=p,p=w)}return o(p);case Xi:e:{for(_=y.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(p,m.sibling),m=r(m,y.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else e(p,m);m=m.sibling}m=ql(y,p.mode,w),m.return=p,p=m}return o(p);case An:return _=y._init,k(p,m,_(y._payload),w)}if(us(y))return g(p,m,y,w);if(es(y))return v(p,m,y,w);zo(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(p,m.sibling),m=r(m,y),m.return=p,p=m):(n(p,m),m=Wl(y,p.mode,w),m.return=p,p=m),o(p)):n(p,m)}return k}var Ar=E1(!0),P1=E1(!1),fo={},hn=di(fo),Ns=di(fo),$s=di(fo);function Si(t){if(t===fo)throw Error(M(174));return t}function df(t,e){switch(te($s,e),te(Ns,t),te(hn,fo),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Pu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Pu(e,t)}oe(hn),te(hn,e)}function Fr(){oe(hn),oe(Ns),oe($s)}function O1(t){Si($s.current);var e=Si(hn.current),n=Pu(e,t.type);e!==n&&(te(Ns,t),te(hn,n))}function hf(t){Ns.current===t&&(oe(hn),oe(Ns))}var fe=di(0);function Sa(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var $l=[];function pf(){for(var t=0;t<$l.length;t++)$l[t]._workInProgressVersionPrimary=null;$l.length=0}var Go=Tn.ReactCurrentDispatcher,jl=Tn.ReactCurrentBatchConfig,$i=0,he=null,Ce=null,Oe=null,Ca=!1,xs=!1,js=0,Ag=0;function $e(){throw Error(M(321))}function mf(t,e){if(e===null)return!1;for(var n=0;nn?n:4,t(!0);var i=jl.transition;jl.transition={};try{t(!1),e()}finally{X=n,jl.transition=i}}function G1(){return Lt().memoizedState}function Ng(t,e,n){var i=ii(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},W1(t))q1(e,n);else if(n=S1(t,e,n,i),n!==null){var r=Xe();Qt(n,t,i,r),Q1(n,e,i)}}function $g(t,e,n){var i=ii(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(W1(t))q1(e,r);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(r.hasEagerState=!0,r.eagerState=a,Zt(a,o)){var l=e.interleaved;l===null?(r.next=r,cf(e)):(r.next=l.next,l.next=r),e.interleaved=r;return}}catch{}finally{}n=S1(t,e,r,i),n!==null&&(r=Xe(),Qt(n,t,i,r),Q1(n,e,i))}}function W1(t){var e=t.alternate;return t===he||e!==null&&e===he}function q1(t,e){xs=Ca=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Q1(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Kc(t,n)}}var ba={readContext:It,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},jg={readContext:It,useCallback:function(t,e){return rn().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:Bd,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Wo(4194308,4,$1.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Wo(4194308,4,t,e)},useInsertionEffect:function(t,e){return Wo(4,2,t,e)},useMemo:function(t,e){var n=rn();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=rn();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=Ng.bind(null,he,t),[i.memoizedState,t]},useRef:function(t){var e=rn();return t={current:t},e.memoizedState=t},useState:jd,useDebugValue:wf,useDeferredValue:function(t){return rn().memoizedState=t},useTransition:function(){var t=jd(!1),e=t[0];return t=Fg.bind(null,t[1]),rn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=he,r=rn();if(le){if(n===void 0)throw Error(M(407));n=n()}else{if(n=e(),ze===null)throw Error(M(349));$i&30||R1(i,e,n)}r.memoizedState=n;var s={value:n,getSnapshot:e};return r.queue=s,Bd(D1.bind(null,i,s,t),[t]),i.flags|=2048,Us(9,T1.bind(null,i,s,n,e),void 0,null),n},useId:function(){var t=rn(),e=ze.identifierPrefix;if(le){var n=Cn,i=Sn;n=(i&~(1<<32-qt(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=js++,0")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{El=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?us(t):""}function ky(t){switch(t.tag){case 5:return us(t.type);case 16:return us("Lazy");case 13:return us("Suspense");case 19:return us("SuspenseList");case 0:case 2:case 15:return t=Pl(t.type,!1),t;case 11:return t=Pl(t.type.render,!1),t;case 1:return t=Pl(t.type,!0),t;default:return""}}function _u(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ji:return"Fragment";case Zi:return"Portal";case ku:return"Profiler";case qc:return"StrictMode";case Cu:return"Suspense";case bu:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Rp:return(t.displayName||"Context")+".Consumer";case Mp:return(t._context.displayName||"Context")+".Provider";case Qc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Kc:return e=t.displayName||null,e!==null?e:_u(t.type)||"Memo";case Nn:e=t._payload,t=t._init;try{return _u(t(e))}catch{}}return null}function Cy(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _u(e);case 8:return e===qc?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ci(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Tp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function by(t){var e=Tp(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function So(t){t._valueTracker||(t._valueTracker=by(t))}function Ip(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Tp(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function la(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Eu(t,e){var n=e.checked;return pe({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function ld(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=ci(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Dp(t,e){e=e.checked,e!=null&&Vc(t,"checked",e,!1)}function Pu(t,e){Dp(t,e);var n=ci(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ou(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ou(t,e.type,ci(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ud(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ou(t,e,n){(e!=="number"||la(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var cs=Array.isArray;function hr(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=ko.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Ms(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ys={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},_y=["Webkit","ms","Moz","O"];Object.keys(ys).forEach(function(t){_y.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ys[e]=ys[t]})});function Np(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||ys.hasOwnProperty(t)&&ys[t]?(""+e).trim():e+"px"}function $p(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=Np(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var Ey=pe({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 zu(t,e){if(e){if(Ey[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(M(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(M(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(M(61))}if(e.style!=null&&typeof e.style!="object")throw Error(M(62))}}function Tu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Iu=null;function Yc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Du=null,pr=null,mr=null;function dd(t){if(t=fo(t)){if(typeof Du!="function")throw Error(M(280));var e=t.stateNode;e&&(e=Ya(e),Du(t.stateNode,t.type,e))}}function jp(t){pr?mr?mr.push(t):mr=[t]:pr=t}function Bp(){if(pr){var t=pr,e=mr;if(mr=pr=null,dd(t),e)for(t=0;t>>=0,t===0?32:31-(Fy(t)/Ny|0)|0}var Co=64,bo=4194304;function fs(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function da(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~r;a!==0?i=fs(a):(s&=o,s!==0&&(i=fs(s)))}else o=n&~r,o!==0?i=fs(o):s!==0&&(i=fs(s));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,s=e&-e,r>=s||r===16&&(s&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function uo(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Qt(e),t[e]=n}function Uy(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=vs),Sd=String.fromCharCode(32),kd=!1;function a1(t,e){switch(t){case"keyup":return yg.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function l1(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var er=!1;function vg(t,e){switch(t){case"compositionend":return l1(e);case"keypress":return e.which!==32?null:(kd=!0,Sd);case"textInput":return t=e.data,t===Sd&&kd?null:t;default:return null}}function wg(t,e){if(er)return t==="compositionend"||!sf&&a1(t,e)?(t=s1(),Ho=tf=Yn=null,er=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ed(n)}}function d1(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?d1(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function h1(){for(var t=window,e=la();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=la(t.document)}return e}function of(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Og(t){var e=h1(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&d1(n.ownerDocument.documentElement,n)){if(i!==null&&of(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!t.extend&&s>i&&(r=i,i=s,s=r),r=Pd(n,s);var o=Pd(n,i);r&&o&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),s>i?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,tr=null,ju=null,xs=null,Bu=!1;function Od(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bu||tr==null||tr!==la(i)||(i=tr,"selectionStart"in i&&of(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),xs&&Ls(xs,i)||(xs=i,i=ma(ju,"onSelect"),0rr||(t.current=qu[rr],qu[rr]=null,rr--)}function te(t,e){rr++,qu[rr]=t.current,t.current=e}var fi={},Qe=hi(fi),ct=hi(!1),Ni=fi;function Lr(t,e){var n=t.type.contextTypes;if(!n)return fi;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=e[s];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function ft(t){return t=t.childContextTypes,t!=null}function ga(){oe(ct),oe(Qe)}function Ld(t,e,n){if(Qe.current!==fi)throw Error(M(168));te(Qe,e),te(ct,n)}function k1(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(M(108,Cy(t)||"Unknown",r));return pe({},n,i)}function va(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||fi,Ni=Qe.current,te(Qe,t),te(ct,ct.current),!0}function Ad(t,e,n){var i=t.stateNode;if(!i)throw Error(M(169));n?(t=k1(t,e,Ni),i.__reactInternalMemoizedMergedChildContext=t,oe(ct),oe(Qe),te(Qe,t)):oe(ct),te(ct,n)}var Cn=null,Xa=!1,Bl=!1;function C1(t){Cn===null?Cn=[t]:Cn.push(t)}function jg(t){Xa=!0,C1(t)}function pi(){if(!Bl&&Cn!==null){Bl=!0;var t=0,e=X;try{var n=Cn;for(X=1;t>=o,r-=o,bn=1<<32-Qt(e)+r|n<R?(B=C,C=null):B=C.sibling;var U=d(p,C,y[R],w);if(U===null){C===null&&(C=B);break}t&&C&&U.alternate===null&&e(p,C),m=s(U,m,R),_===null?k=U:_.sibling=U,_=U,C=B}if(R===y.length)return n(p,C),ue&&wi(p,R),k;if(C===null){for(;RR?(B=C,C=null):B=C.sibling;var xe=d(p,C,U.value,w);if(xe===null){C===null&&(C=B);break}t&&C&&xe.alternate===null&&e(p,C),m=s(xe,m,R),_===null?k=xe:_.sibling=xe,_=xe,C=B}if(U.done)return n(p,C),ue&&wi(p,R),k;if(C===null){for(;!U.done;R++,U=y.next())U=f(p,U.value,w),U!==null&&(m=s(U,m,R),_===null?k=U:_.sibling=U,_=U);return ue&&wi(p,R),k}for(C=i(p,C);!U.done;R++,U=y.next())U=h(C,p,R,U.value,w),U!==null&&(t&&U.alternate!==null&&C.delete(U.key===null?R:U.key),m=s(U,m,R),_===null?k=U:_.sibling=U,_=U);return t&&C.forEach(function(bt){return e(p,bt)}),ue&&wi(p,R),k}function S(p,m,y,w){if(typeof y=="object"&&y!==null&&y.type===Ji&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case xo:e:{for(var k=y.key,_=m;_!==null;){if(_.key===k){if(k=y.type,k===Ji){if(_.tag===7){n(p,_.sibling),m=r(_,y.props.children),m.return=p,p=m;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Nn&&Hd(k)===_.type){n(p,_.sibling),m=r(_,y.props),m.ref=os(p,_,y),m.return=p,p=m;break e}n(p,_);break}else e(p,_);_=_.sibling}y.type===Ji?(m=Li(y.props.children,p.mode,w,y.key),m.return=p,p=m):(w=Xo(y.type,y.key,y.props,null,p.mode,w),w.ref=os(p,m,y),w.return=p,p=w)}return o(p);case Zi:e:{for(_=y.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(p,m.sibling),m=r(m,y.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else e(p,m);m=m.sibling}m=Kl(y,p.mode,w),m.return=p,p=m}return o(p);case Nn:return _=y._init,S(p,m,_(y._payload),w)}if(cs(y))return g(p,m,y,w);if(ts(y))return v(p,m,y,w);zo(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(p,m.sibling),m=r(m,y),m.return=p,p=m):(n(p,m),m=Ql(y,p.mode,w),m.return=p,p=m),o(p)):n(p,m)}return S}var Fr=z1(!0),T1=z1(!1),ho={},mn=hi(ho),$s=hi(ho),js=hi(ho);function Ci(t){if(t===ho)throw Error(M(174));return t}function mf(t,e){switch(te(js,e),te($s,t),te(mn,ho),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ru(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ru(e,t)}oe(mn),te(mn,e)}function Nr(){oe(mn),oe($s),oe(js)}function I1(t){Ci(js.current);var e=Ci(mn.current),n=Ru(e,t.type);e!==n&&(te($s,t),te(mn,n))}function yf(t){$s.current===t&&(oe(mn),oe($s))}var fe=hi(0);function ba(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ul=[];function gf(){for(var t=0;tn?n:4,t(!0);var i=Hl.transition;Hl.transition={};try{t(!1),e()}finally{X=n,Hl.transition=i}}function K1(){return Ft().memoizedState}function Gg(t,e,n){var i=si(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Y1(t))X1(e,n);else if(n=P1(t,e,n,i),n!==null){var r=Je();Kt(n,t,i,r),Z1(n,e,i)}}function Wg(t,e,n){var i=si(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Y1(t))X1(e,r);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(r.hasEagerState=!0,r.eagerState=a,en(a,o)){var l=e.interleaved;l===null?(r.next=r,hf(e)):(r.next=l.next,l.next=r),e.interleaved=r;return}}catch{}finally{}n=P1(t,e,r,i),n!==null&&(r=Je(),Kt(n,t,i,r),Z1(n,e,i))}}function Y1(t){var e=t.alternate;return t===he||e!==null&&e===he}function X1(t,e){Ss=_a=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Z1(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Zc(t,n)}}var Ea={readContext:At,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},Vg={readContext:At,useCallback:function(t,e){return on().memoizedState=[t,e===void 0?null:e],t},useContext:At,useEffect:Wd,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,qo(4194308,4,G1.bind(null,e,t),n)},useLayoutEffect:function(t,e){return qo(4194308,4,t,e)},useInsertionEffect:function(t,e){return qo(4,2,t,e)},useMemo:function(t,e){var n=on();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=on();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=Gg.bind(null,he,t),[i.memoizedState,t]},useRef:function(t){var e=on();return t={current:t},e.memoizedState=t},useState:Gd,useDebugValue:kf,useDeferredValue:function(t){return on().memoizedState=t},useTransition:function(){var t=Gd(!1),e=t[0];return t=Hg.bind(null,t[1]),on().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=he,r=on();if(ue){if(n===void 0)throw Error(M(407));n=n()}else{if(n=e(),Te===null)throw Error(M(349));ji&30||A1(i,e,n)}r.memoizedState=n;var s={value:n,getSnapshot:e};return r.queue=s,Wd(N1.bind(null,i,s,t),[t]),i.flags|=2048,Hs(9,F1.bind(null,i,s,n,e),void 0,null),n},useId:function(){var t=on(),e=Te.identifierPrefix;if(ue){var n=_n,i=bn;n=(i&~(1<<32-Qt(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=Bs++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=o.createElement(n,{is:i.is}):(t=o.createElement(n),n==="select"&&(o=t,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):t=o.createElementNS(t,n),t[fn]=e,t[Fs]=i,n0(t,e,!1,!1),e.stateNode=t;e:{switch(o=Mu(n,i),n){case"dialog":re("cancel",t),re("close",t),r=i;break;case"iframe":case"object":case"embed":re("load",t),r=i;break;case"video":case"audio":for(r=0;r$r&&(e.flags|=128,i=!0,os(s,!1),e.lanes=4194304)}else{if(!i)if(t=Sa(o),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),os(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!le)return je(e),null}else 2*ge()-s.renderingStartTime>$r&&n!==1073741824&&(e.flags|=128,i=!0,os(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=ge(),e.sibling=null,n=fe.current,te(fe,i?n&1|2:n&1),e):(je(e),null);case 22:case 23:return _f(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?ht&1073741824&&(je(e),e.subtreeFlags&6&&(e.flags|=8192)):je(e),null;case 24:return null;case 25:return null}throw Error(M(156,e.tag))}function Vg(t,e){switch(sf(e),e.tag){case 1:return ut(e.type)&&ma(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Fr(),oe(lt),oe(We),pf(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return hf(e),null;case 13:if(oe(fe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(M(340));Lr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return oe(fe),null;case 4:return Fr(),null;case 10:return uf(e.type._context),null;case 22:case 23:return _f(),null;case 24:return null;default:return null}}var To=!1,Ue=!1,Kg=typeof WeakSet=="function"?WeakSet:Set,I=null;function ar(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){ye(t,e,i)}else n.current=null}function nc(t,e,n){try{n()}catch(i){ye(t,e,i)}}var Yd=!1;function Yg(t,e){if($u=fa,t=l1(),nf(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,f=t,d=null;t:for(;;){for(var h;f!==n||r!==0&&f.nodeType!==3||(a=o+r),f!==s||i!==0&&f.nodeType!==3||(l=o+i),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===t)break t;if(d===n&&++u===r&&(a=o),d===s&&++c===i&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ju={focusedElem:t,selectionRange:n},fa=!1,I=e;I!==null;)if(e=I,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,I=t;else for(;I!==null;){e=I;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,k=g.memoizedState,p=e.stateNode,m=p.getSnapshotBeforeUpdate(e.elementType===e.type?v:Ut(e.type,v),k);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(w){ye(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,I=t;break}I=e.return}return g=Yd,Yd=!1,g}function ks(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var s=r.destroy;r.destroy=void 0,s!==void 0&&nc(e,n,s)}r=r.next}while(r!==i)}}function Xa(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function ic(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function s0(t){var e=t.alternate;e!==null&&(t.alternate=null,s0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[fn],delete e[Fs],delete e[Hu],delete e[Tg],delete e[Dg])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function o0(t){return t.tag===5||t.tag===3||t.tag===4}function Xd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||o0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function rc(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=pa));else if(i!==4&&(t=t.child,t!==null))for(rc(t,e,n),t=t.sibling;t!==null;)rc(t,e,n),t=t.sibling}function sc(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(sc(t,e,n),t=t.sibling;t!==null;)sc(t,e,n),t=t.sibling}var Ie=null,Gt=!1;function Dn(t,e,n){for(n=n.child;n!==null;)a0(t,e,n),n=n.sibling}function a0(t,e,n){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(Ha,n)}catch{}switch(n.tag){case 5:Ue||ar(n,e);case 6:var i=Ie,r=Gt;Ie=null,Dn(t,e,n),Ie=i,Gt=r,Ie!==null&&(Gt?(t=Ie,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Ie.removeChild(n.stateNode));break;case 18:Ie!==null&&(Gt?(t=Ie,n=n.stateNode,t.nodeType===8?Fl(t.parentNode,n):t.nodeType===1&&Fl(t,n),Ts(t)):Fl(Ie,n.stateNode));break;case 4:i=Ie,r=Gt,Ie=n.stateNode.containerInfo,Gt=!0,Dn(t,e,n),Ie=i,Gt=r;break;case 0:case 11:case 14:case 15:if(!Ue&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&nc(n,e,o),r=r.next}while(r!==i)}Dn(t,e,n);break;case 1:if(!Ue&&(ar(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){ye(n,e,a)}Dn(t,e,n);break;case 21:Dn(t,e,n);break;case 22:n.mode&1?(Ue=(i=Ue)||n.memoizedState!==null,Dn(t,e,n),Ue=i):Dn(t,e,n);break;default:Dn(t,e,n)}}function Zd(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Kg),e.forEach(function(i){var r=s2.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Bt(t,e){var n=e.deletions;if(n!==null)for(var i=0;ir&&(r=o),i&=~s}if(i=r,i=ge()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Zg(i/1960))-i,10t?16:t,Kn===null)var i=!1;else{if(t=Kn,Kn=null,Pa=0,V&6)throw Error(M(331));var r=V;for(V|=4,I=t.current;I!==null;){var s=I,o=s.child;if(I.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lge()-Cf?Di(t,0):Sf|=n),ct(t,e)}function m0(t,e){e===0&&(t.mode&1?(e=Co,Co<<=1,!(Co&130023424)&&(Co=4194304)):e=1);var n=Xe();t=Mn(t,e),t!==null&&(lo(t,e,n),ct(t,n))}function r2(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),m0(t,n)}function s2(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(M(314))}i!==null&&i.delete(e),m0(t,n)}var y0;y0=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||lt.current)st=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return st=!1,qg(t,e,n);st=!!(t.flags&131072)}else st=!1,le&&e.flags&1048576&&w1(e,va,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;qo(t,e),t=e.pendingProps;var r=Ir(e,We.current);yr(e,n),r=yf(null,e,i,t,r,n);var s=gf();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ut(i)?(s=!0,ya(e)):s=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,ff(e),r.updater=Ka,e.stateNode=r,r._reactInternals=e,Ku(e,i,t,n),e=Zu(null,e,i,!0,s,n)):(e.tag=0,le&&s&&rf(e),Ke(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(qo(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=a2(i),t=Ut(i,t),r){case 0:e=Xu(null,e,i,t,n);break e;case 1:e=Qd(null,e,i,t,n);break e;case 11:e=Wd(null,e,i,t,n);break e;case 14:e=qd(null,e,i,Ut(i.type,t),n);break e}throw Error(M(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ut(i,r),Xu(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ut(i,r),Qd(t,e,i,r,n);case 3:e:{if(J1(e),t===null)throw Error(M(387));i=e.pendingProps,s=e.memoizedState,r=s.element,C1(t,e),ka(e,i,null,n);var o=e.memoizedState;if(i=o.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){r=Nr(Error(M(423)),e),e=Vd(t,e,i,n,r);break e}else if(i!==r){r=Nr(Error(M(424)),e),e=Vd(t,e,i,n,r);break e}else for(pt=ei(e.stateNode.containerInfo.firstChild),yt=e,le=!0,Wt=null,n=P1(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lr(),i===r){e=zn(t,e,n);break e}Ke(t,e,i,n)}e=e.child}return e;case 5:return O1(e),t===null&&qu(e),i=e.type,r=e.pendingProps,s=t!==null?t.memoizedProps:null,o=r.children,Bu(i,r)?o=null:s!==null&&Bu(i,s)&&(e.flags|=32),Z1(t,e),Ke(t,e,o,n),e.child;case 6:return t===null&&qu(e),null;case 13:return e0(t,e,n);case 4:return df(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Ar(e,null,i,n):Ke(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ut(i,r),Wd(t,e,i,r,n);case 7:return Ke(t,e,e.pendingProps,n),e.child;case 8:return Ke(t,e,e.pendingProps.children,n),e.child;case 12:return Ke(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value,te(wa,i._currentValue),i._currentValue=o,s!==null)if(Zt(s.value,o)){if(s.children===r.children&&!lt.current){e=zn(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(s.tag===1){l=bn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Qu(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(M(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Qu(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ke(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,yr(e,n),r=It(r),i=i(r),e.flags|=1,Ke(t,e,i,n),e.child;case 14:return i=e.type,r=Ut(i,e.pendingProps),r=Ut(i.type,r),qd(t,e,i,r,n);case 15:return Y1(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ut(i,r),qo(t,e),e.tag=1,ut(i)?(t=!0,ya(e)):t=!1,yr(e,n),_1(e,i,r),Ku(e,i,r,n),Zu(null,e,i,!0,t,n);case 19:return t0(t,e,n);case 22:return X1(t,e,n)}throw Error(M(156,e.tag))};function g0(t,e){return Hp(t,e)}function o2(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(t,e,n,i){return new o2(t,e,n,i)}function Pf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function a2(t){if(typeof t=="function")return Pf(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Wc)return 11;if(t===qc)return 14}return 2}function ri(t,e){var n=t.alternate;return n===null?(n=Rt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Ko(t,e,n,i,r,s){var o=2;if(i=t,typeof t=="function")Pf(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Zi:return Ii(n.children,r,s,e);case Gc:o=8,r|=8;break;case wu:return t=Rt(12,n,e,r|2),t.elementType=wu,t.lanes=s,t;case xu:return t=Rt(13,n,e,r),t.elementType=xu,t.lanes=s,t;case ku:return t=Rt(19,n,e,r),t.elementType=ku,t.lanes=s,t;case Ep:return Ja(n,r,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case bp:o=10;break e;case _p:o=9;break e;case Wc:o=11;break e;case qc:o=14;break e;case An:o=16,i=null;break e}throw Error(M(130,t==null?t:typeof t,""))}return e=Rt(o,n,e,r),e.elementType=t,e.type=i,e.lanes=s,e}function Ii(t,e,n,i){return t=Rt(7,t,i,e),t.lanes=n,t}function Ja(t,e,n,i){return t=Rt(22,t,i,e),t.elementType=Ep,t.lanes=n,t.stateNode={isHidden:!1},t}function Wl(t,e,n){return t=Rt(6,t,null,e),t.lanes=n,t}function ql(t,e,n){return e=Rt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function l2(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=El(0),this.expirationTimes=El(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=El(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Of(t,e,n,i,r,s,o,a,l){return t=new l2(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Rt(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ff(s),t}function u2(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(k0)}catch(t){console.error(t)}}k0(),wp.exports=xt;var p2=wp.exports,oh=p2;gu.createRoot=oh.createRoot,gu.hydrateRoot=oh.hydrateRoot;const m2="modulepreload",y2=function(t){return"/guessing-game/"+t},ah={},g2=function(e,n,i){if(!n||n.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=y2(s),s in ah)return;ah[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!i)for(let c=r.length-1;c>=0;c--){const f=r[c];if(f.href===s&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":m2,o||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};let v2={data:""},w2=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||v2,x2=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,k2=/\/\*[^]*?\*\/| +/g,lh=/\n+/g,jn=(t,e)=>{let n="",i="",r="";for(let s in t){let o=t[s];s[0]=="@"?s[1]=="i"?n=s+" "+o+";":i+=s[1]=="f"?jn(o,s):s+"{"+jn(o,s[1]=="k"?"":e)+"}":typeof o=="object"?i+=jn(o,e?e.replace(/([^,])+/g,a=>s.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):o!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=jn.p?jn.p(s,o):s+":"+o+";")}return n+(e&&r?e+"{"+r+"}":r)+i},gn={},S0=t=>{if(typeof t=="object"){let e="";for(let n in t)e+=n+S0(t[n]);return e}return t},S2=(t,e,n,i,r)=>{let s=S0(t),o=gn[s]||(gn[s]=(l=>{let u=0,c=11;for(;u>>0;return"go"+c})(s));if(!gn[o]){let l=s!==t?t:(u=>{let c,f,d=[{}];for(;c=x2.exec(u.replace(k2,""));)c[4]?d.shift():c[3]?(f=c[3].replace(lh," ").trim(),d.unshift(d[0][f]=d[0][f]||{})):d[0][c[1]]=c[2].replace(lh," ").trim();return d[0]})(t);gn[o]=jn(r?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&gn.g?gn.g:null;return n&&(gn.g=gn[o]),((l,u,c,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(gn[o],e,i,a),o},C2=(t,e,n)=>t.reduce((i,r,s)=>{let o=e[s];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":jn(a,""):a===!1?"":a}return i+r+(o??"")},"");function rl(t){let e=this||{},n=t.call?t(e.p):t;return S2(n.unshift?n.raw?C2(n,[].slice.call(arguments,1),e.p):n.reduce((i,r)=>Object.assign(i,r&&r.call?r(e.p):r),{}):n,w2(e.target),e.g,e.o,e.k)}let C0,cc,fc;rl.bind({g:1});let Rn=rl.bind({k:1});function b2(t,e,n,i){jn.p=e,C0=t,cc=n,fc=i}function pi(t,e){let n=this||{};return function(){let i=arguments;function r(s,o){let a=Object.assign({},s),l=a.className||r.className;n.p=Object.assign({theme:cc&&cc()},a),n.o=/ *go\d+/.test(l),a.className=rl.apply(n,i)+(l?" "+l:""),e&&(a.ref=o);let u=t;return t[0]&&(u=a.as||t,delete a.as),fc&&u[0]&&fc(a),C0(u,a)}return e?e(r):r}}var _2=t=>typeof t=="function",za=(t,e)=>_2(t)?t(e):t,E2=(()=>{let t=0;return()=>(++t).toString()})(),b0=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),P2=20,Yo=new Map,O2=1e3,uh=t=>{if(Yo.has(t))return;let e=setTimeout(()=>{Yo.delete(t),Qi({type:4,toastId:t})},O2);Yo.set(t,e)},M2=t=>{let e=Yo.get(t);e&&clearTimeout(e)},dc=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,P2)};case 1:return e.toast.id&&M2(e.toast.id),{...t,toasts:t.toasts.map(s=>s.id===e.toast.id?{...s,...e.toast}:s)};case 2:let{toast:n}=e;return t.toasts.find(s=>s.id===n.id)?dc(t,{type:1,toast:n}):dc(t,{type:0,toast:n});case 3:let{toastId:i}=e;return i?uh(i):t.toasts.forEach(s=>{uh(s.id)}),{...t,toasts:t.toasts.map(s=>s.id===i||i===void 0?{...s,visible:!1}:s)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(s=>s.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let r=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+r}))}}},Xo=[],Zo={toasts:[],pausedAt:void 0},Qi=t=>{Zo=dc(Zo,t),Xo.forEach(e=>{e(Zo)})},z2={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},R2=(t={})=>{let[e,n]=R.useState(Zo);R.useEffect(()=>(Xo.push(n),()=>{let r=Xo.indexOf(n);r>-1&&Xo.splice(r,1)}),[e]);let i=e.toasts.map(r=>{var s,o;return{...t,...t[r.type],...r,duration:r.duration||((s=t[r.type])==null?void 0:s.duration)||(t==null?void 0:t.duration)||z2[r.type],style:{...t.style,...(o=t[r.type])==null?void 0:o.style,...r.style}}});return{...e,toasts:i}},T2=(t,e="blank",n)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...n,id:(n==null?void 0:n.id)||E2()}),ho=t=>(e,n)=>{let i=T2(e,t,n);return Qi({type:2,toast:i}),i.id},mt=(t,e)=>ho("blank")(t,e);mt.error=ho("error");mt.success=ho("success");mt.loading=ho("loading");mt.custom=ho("custom");mt.dismiss=t=>{Qi({type:3,toastId:t})};mt.remove=t=>Qi({type:4,toastId:t});mt.promise=(t,e,n)=>{let i=mt.loading(e.loading,{...n,...n==null?void 0:n.loading});return t.then(r=>(mt.success(za(e.success,r),{id:i,...n,...n==null?void 0:n.success}),r)).catch(r=>{mt.error(za(e.error,r),{id:i,...n,...n==null?void 0:n.error})}),t};var D2=(t,e)=>{Qi({type:1,toast:{id:t,height:e}})},I2=()=>{Qi({type:5,time:Date.now()})},L2=t=>{let{toasts:e,pausedAt:n}=R2(t);R.useEffect(()=>{if(n)return;let s=Date.now(),o=e.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&mt.dismiss(a.id);return}return setTimeout(()=>mt.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[e,n]);let i=R.useCallback(()=>{n&&Qi({type:6,time:Date.now()})},[n]),r=R.useCallback((s,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=e.filter(h=>(h.position||u)===(s.position||u)&&h.height),f=c.findIndex(h=>h.id===s.id),d=c.filter((h,g)=>gh.visible).slice(...a?[d+1]:[0,d]).reduce((h,g)=>h+(g.height||0)+l,0)},[e]);return{toasts:e,handlers:{updateHeight:D2,startPause:I2,endPause:i,calculateOffset:r}}},A2=Rn`
+`+s.stack}return{value:t,source:e,stack:r,digest:null}}function Vl(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Ju(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Kg=typeof WeakMap=="function"?WeakMap:Map;function J1(t,e,n){n=En(-1,n),n.tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){Oa||(Oa=!0,uc=i),Ju(t,e)},n}function e0(t,e,n){n=En(-1,n),n.tag=3;var i=t.type.getDerivedStateFromError;if(typeof i=="function"){var r=e.value;n.payload=function(){return i(r)},n.callback=function(){Ju(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ju(t,e),typeof i!="function"&&(ri===null?ri=new Set([this]):ri.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function Vd(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new Kg;var r=new Set;i.set(e,r)}else r=i.get(e),r===void 0&&(r=new Set,i.set(e,r));r.has(n)||(r.add(n),t=u2.bind(null,t,e,n),e.then(t,t))}function qd(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Qd(t,e,n,i,r){return t.mode&1?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=En(-1,1),e.tag=2,ii(n,e,1))),n.lanes|=1),t)}var Yg=Dn.ReactCurrentOwner,at=!1;function Ze(t,e,n,i){e.child=t===null?T1(e,null,n,i):Fr(e,t.child,n,i)}function Kd(t,e,n,i,r){n=n.render;var s=e.ref;return gr(e,r),i=wf(t,e,n,i,s,r),n=xf(),t!==null&&!at?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,Tn(t,e,r)):(ue&&n&&af(e),e.flags|=1,Ze(t,e,i,r),e.child)}function Yd(t,e,n,i,r){if(t===null){var s=n.type;return typeof s=="function"&&!Rf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,t0(t,e,s,i,r)):(t=Xo(n.type,null,i,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&r)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ls,n(o,i)&&t.ref===e.ref)return Tn(t,e,r)}return e.flags|=1,t=oi(s,i),t.ref=e.ref,t.return=e,e.child=t}function t0(t,e,n,i,r){if(t!==null){var s=t.memoizedProps;if(Ls(s,i)&&t.ref===e.ref)if(at=!1,e.pendingProps=i=s,(t.lanes&r)!==0)t.flags&131072&&(at=!0);else return e.lanes=t.lanes,Tn(t,e,r)}return ec(t,e,n,i,r)}function n0(t,e,n){var i=e.pendingProps,r=i.children,s=t!==null?t.memoizedState:null;if(i.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},te(ur,mt),mt|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,te(ur,mt),mt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=s!==null?s.baseLanes:n,te(ur,mt),mt|=i}else s!==null?(i=s.baseLanes|n,e.memoizedState=null):i=n,te(ur,mt),mt|=i;return Ze(t,e,r,n),e.child}function i0(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function ec(t,e,n,i,r){var s=ft(n)?Ni:Qe.current;return s=Lr(e,s),gr(e,r),n=wf(t,e,n,i,s,r),i=xf(),t!==null&&!at?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,Tn(t,e,r)):(ue&&i&&af(e),e.flags|=1,Ze(t,e,n,r),e.child)}function Xd(t,e,n,i,r){if(ft(n)){var s=!0;va(e)}else s=!1;if(gr(e,r),e.stateNode===null)Qo(t,e),R1(e,n,i),Zu(e,n,i,r),i=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=At(u):(u=ft(n)?Ni:Qe.current,u=Lr(e,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==i||l!==u)&&Ud(e,o,i,u),$n=!1;var d=e.memoizedState;o.state=d,Ca(e,i,o,r),l=e.memoizedState,a!==i||d!==l||ct.current||$n?(typeof c=="function"&&(Xu(e,n,c,i),l=e.memoizedState),(a=$n||Bd(e,n,a,i,d,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=l),o.props=i,o.state=l,o.context=u,i=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,O1(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Gt(e.type,a),o.props=u,f=e.pendingProps,d=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=At(l):(l=ft(n)?Ni:Qe.current,l=Lr(e,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Ud(e,o,i,l),$n=!1,d=e.memoizedState,o.state=d,Ca(e,i,o,r);var g=e.memoizedState;a!==f||d!==g||ct.current||$n?(typeof h=="function"&&(Xu(e,n,h,i),g=e.memoizedState),(u=$n||Bd(e,n,u,i,d,g,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,g,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=g),o.props=i,o.state=g,o.context=l,i=u):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),i=!1)}return tc(t,e,n,i,s,r)}function tc(t,e,n,i,r,s){i0(t,e);var o=(e.flags&128)!==0;if(!i&&!o)return r&&Ad(e,n,!1),Tn(t,e,s);i=e.stateNode,Yg.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:i.render();return e.flags|=1,t!==null&&o?(e.child=Fr(e,t.child,null,s),e.child=Fr(e,null,a,s)):Ze(t,e,a,s),e.memoizedState=i.state,r&&Ad(e,n,!0),e.child}function r0(t){var e=t.stateNode;e.pendingContext?Ld(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Ld(t,e.context,!1),mf(t,e.containerInfo)}function Zd(t,e,n,i,r){return Ar(),uf(r),e.flags|=256,Ze(t,e,n,i),e.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function ic(t){return{baseLanes:t,cachePool:null,transitions:null}}function s0(t,e,n){var i=e.pendingProps,r=fe.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(r&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(r|=1),te(fe,r&1),t===null)return Ku(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=i.children,t=i.fallback,s?(i=e.mode,s=e.child,o={mode:"hidden",children:o},!(i&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=nl(o,i,0,null),t=Li(t,i,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=ic(n),e.memoizedState=nc,t):Cf(e,o));if(r=t.memoizedState,r!==null&&(a=r.dehydrated,a!==null))return Xg(t,e,o,i,a,r,n);if(s){s=i.fallback,o=e.mode,r=t.child,a=r.sibling;var l={mode:"hidden",children:i.children};return!(o&1)&&e.child!==r?(i=e.child,i.childLanes=0,i.pendingProps=l,e.deletions=null):(i=oi(r,l),i.subtreeFlags=r.subtreeFlags&14680064),a!==null?s=oi(a,s):(s=Li(s,o,n,null),s.flags|=2),s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,o=t.child.memoizedState,o=o===null?ic(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=nc,i}return s=t.child,t=s.sibling,i=oi(s,{mode:"visible",children:i.children}),!(e.mode&1)&&(i.lanes=n),i.return=e,i.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function Cf(t,e){return e=nl({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function To(t,e,n,i){return i!==null&&uf(i),Fr(e,t.child,null,n),t=Cf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Xg(t,e,n,i,r,s,o){if(n)return e.flags&256?(e.flags&=-257,i=Vl(Error(M(422))),To(t,e,o,i)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=i.fallback,r=e.mode,i=nl({mode:"visible",children:i.children},r,0,null),s=Li(s,r,o,null),s.flags|=2,i.return=e,s.return=e,i.sibling=s,e.child=i,e.mode&1&&Fr(e,t.child,null,o),e.child.memoizedState=ic(o),e.memoizedState=nc,s);if(!(e.mode&1))return To(t,e,o,null);if(r.data==="$!"){if(i=r.nextSibling&&r.nextSibling.dataset,i)var a=i.dgst;return i=a,s=Error(M(419)),i=Vl(s,i,void 0),To(t,e,o,i)}if(a=(o&t.childLanes)!==0,at||a){if(i=Te,i!==null){switch(o&-o){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(i.suspendedLanes|o)?0:r,r!==0&&r!==s.retryLane&&(s.retryLane=r,zn(t,r),Kt(i,t,r,-1))}return Mf(),i=Vl(Error(M(421))),To(t,e,o,i)}return r.data==="$?"?(e.flags|=128,e.child=t.child,e=c2.bind(null,t),r._reactRetry=e,null):(t=s.treeContext,yt=ni(r.nextSibling),vt=e,ue=!0,qt=null,t!==null&&(zt[Tt++]=bn,zt[Tt++]=_n,zt[Tt++]=$i,bn=t.id,_n=t.overflow,$i=e),e=Cf(e,i.children),e.flags|=4096,e)}function Jd(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Yu(t.return,e,n)}function ql(t,e,n,i,r){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=n,s.tailMode=r)}function o0(t,e,n){var i=e.pendingProps,r=i.revealOrder,s=i.tail;if(Ze(t,e,i.children,n),i=fe.current,i&2)i=i&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Jd(t,n,e);else if(t.tag===19)Jd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(te(fe,i),!(e.mode&1))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&ba(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),ql(e,!1,r,n,s);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&ba(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}ql(e,!0,n,null,s);break;case"together":ql(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Qo(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Tn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Bi|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(M(153));if(e.child!==null){for(t=e.child,n=oi(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=oi(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Zg(t,e,n){switch(e.tag){case 3:r0(e),Ar();break;case 5:I1(e);break;case 1:ft(e.type)&&va(e);break;case 4:mf(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,r=e.memoizedProps.value;te(Sa,i._currentValue),i._currentValue=r;break;case 13:if(i=e.memoizedState,i!==null)return i.dehydrated!==null?(te(fe,fe.current&1),e.flags|=128,null):n&e.child.childLanes?s0(t,e,n):(te(fe,fe.current&1),t=Tn(t,e,n),t!==null?t.sibling:null);te(fe,fe.current&1);break;case 19:if(i=(n&e.childLanes)!==0,t.flags&128){if(i)return o0(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),te(fe,fe.current),i)break;return null;case 22:case 23:return e.lanes=0,n0(t,e,n)}return Tn(t,e,n)}var a0,rc,l0,u0;a0=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};rc=function(){};l0=function(t,e,n,i){var r=t.memoizedProps;if(r!==i){t=e.stateNode,Ci(mn.current);var s=null;switch(n){case"input":r=Eu(t,r),i=Eu(t,i),s=[];break;case"select":r=pe({},r,{value:void 0}),i=pe({},i,{value:void 0}),s=[];break;case"textarea":r=Mu(t,r),i=Mu(t,i),s=[];break;default:typeof r.onClick!="function"&&typeof i.onClick=="function"&&(t.onclick=ya)}zu(n,i);var o;n=null;for(u in r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var a=r[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Os.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in i){var l=i[u];if(a=r!=null?r[u]:void 0,i.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Os.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&re("scroll",t),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};u0=function(t,e,n,i){n!==i&&(e.flags|=4)};function as(t,e){if(!ue)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function He(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&14680064,i|=r.flags&14680064,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function Jg(t,e,n){var i=e.pendingProps;switch(lf(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(e),null;case 1:return ft(e.type)&&ga(),He(e),null;case 3:return i=e.stateNode,Nr(),oe(ct),oe(Qe),gf(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Ro(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,qt!==null&&(dc(qt),qt=null))),rc(t,e),He(e),null;case 5:yf(e);var r=Ci(js.current);if(n=e.type,t!==null&&e.stateNode!=null)l0(t,e,n,i,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(e.stateNode===null)throw Error(M(166));return He(e),null}if(t=Ci(mn.current),Ro(e)){i=e.stateNode,n=e.type;var s=e.memoizedProps;switch(i[hn]=e,i[Ns]=s,t=(e.mode&1)!==0,n){case"dialog":re("cancel",i),re("close",i);break;case"iframe":case"object":case"embed":re("load",i);break;case"video":case"audio":for(r=0;r<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=o.createElement(n,{is:i.is}):(t=o.createElement(n),n==="select"&&(o=t,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):t=o.createElementNS(t,n),t[hn]=e,t[Ns]=i,a0(t,e,!1,!1),e.stateNode=t;e:{switch(o=Tu(n,i),n){case"dialog":re("cancel",t),re("close",t),r=i;break;case"iframe":case"object":case"embed":re("load",t),r=i;break;case"video":case"audio":for(r=0;rjr&&(e.flags|=128,i=!0,as(s,!1),e.lanes=4194304)}else{if(!i)if(t=ba(o),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),as(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ue)return He(e),null}else 2*ve()-s.renderingStartTime>jr&&n!==1073741824&&(e.flags|=128,i=!0,as(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=ve(),e.sibling=null,n=fe.current,te(fe,i?n&1|2:n&1),e):(He(e),null);case 22:case 23:return Of(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?mt&1073741824&&(He(e),e.subtreeFlags&6&&(e.flags|=8192)):He(e),null;case 24:return null;case 25:return null}throw Error(M(156,e.tag))}function e2(t,e){switch(lf(e),e.tag){case 1:return ft(e.type)&&ga(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Nr(),oe(ct),oe(Qe),gf(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return yf(e),null;case 13:if(oe(fe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(M(340));Ar()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return oe(fe),null;case 4:return Nr(),null;case 10:return df(e.type._context),null;case 22:case 23:return Of(),null;case 24:return null;default:return null}}var Io=!1,We=!1,t2=typeof WeakSet=="function"?WeakSet:Set,L=null;function lr(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){ye(t,e,i)}else n.current=null}function sc(t,e,n){try{n()}catch(i){ye(t,e,i)}}var eh=!1;function n2(t,e){if(Uu=ha,t=h1(),of(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,f=t,d=null;t:for(;;){for(var h;f!==n||r!==0&&f.nodeType!==3||(a=o+r),f!==s||i!==0&&f.nodeType!==3||(l=o+i),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===t)break t;if(d===n&&++u===r&&(a=o),d===s&&++c===i&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hu={focusedElem:t,selectionRange:n},ha=!1,L=e;L!==null;)if(e=L,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,L=t;else for(;L!==null;){e=L;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,S=g.memoizedState,p=e.stateNode,m=p.getSnapshotBeforeUpdate(e.elementType===e.type?v:Gt(e.type,v),S);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(w){ye(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,L=t;break}L=e.return}return g=eh,eh=!1,g}function ks(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var s=r.destroy;r.destroy=void 0,s!==void 0&&sc(e,n,s)}r=r.next}while(r!==i)}}function el(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function oc(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function c0(t){var e=t.alternate;e!==null&&(t.alternate=null,c0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[hn],delete e[Ns],delete e[Vu],delete e[Ng],delete e[$g])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function f0(t){return t.tag===5||t.tag===3||t.tag===4}function th(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||f0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ac(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ya));else if(i!==4&&(t=t.child,t!==null))for(ac(t,e,n),t=t.sibling;t!==null;)ac(t,e,n),t=t.sibling}function lc(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(lc(t,e,n),t=t.sibling;t!==null;)lc(t,e,n),t=t.sibling}var Fe=null,Vt=!1;function Ln(t,e,n){for(n=n.child;n!==null;)d0(t,e,n),n=n.sibling}function d0(t,e,n){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Va,n)}catch{}switch(n.tag){case 5:We||lr(n,e);case 6:var i=Fe,r=Vt;Fe=null,Ln(t,e,n),Fe=i,Vt=r,Fe!==null&&(Vt?(t=Fe,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Vt?(t=Fe,n=n.stateNode,t.nodeType===8?jl(t.parentNode,n):t.nodeType===1&&jl(t,n),Is(t)):jl(Fe,n.stateNode));break;case 4:i=Fe,r=Vt,Fe=n.stateNode.containerInfo,Vt=!0,Ln(t,e,n),Fe=i,Vt=r;break;case 0:case 11:case 14:case 15:if(!We&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&sc(n,e,o),r=r.next}while(r!==i)}Ln(t,e,n);break;case 1:if(!We&&(lr(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){ye(n,e,a)}Ln(t,e,n);break;case 21:Ln(t,e,n);break;case 22:n.mode&1?(We=(i=We)||n.memoizedState!==null,Ln(t,e,n),We=i):Ln(t,e,n);break;default:Ln(t,e,n)}}function nh(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new t2),e.forEach(function(i){var r=f2.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Ht(t,e){var n=e.deletions;if(n!==null)for(var i=0;ir&&(r=o),i&=~s}if(i=r,i=ve()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*r2(i/1960))-i,10t?16:t,Xn===null)var i=!1;else{if(t=Xn,Xn=null,Ma=0,Q&6)throw Error(M(331));var r=Q;for(Q|=4,L=t.current;L!==null;){var s=L,o=s.child;if(L.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lve()-Ef?Di(t,0):_f|=n),dt(t,e)}function x0(t,e){e===0&&(t.mode&1?(e=bo,bo<<=1,!(bo&130023424)&&(bo=4194304)):e=1);var n=Je();t=zn(t,e),t!==null&&(uo(t,e,n),dt(t,n))}function c2(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),x0(t,n)}function f2(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(M(314))}i!==null&&i.delete(e),x0(t,n)}var S0;S0=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||ct.current)at=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return at=!1,Zg(t,e,n);at=!!(t.flags&131072)}else at=!1,ue&&e.flags&1048576&&b1(e,xa,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;Qo(t,e),t=e.pendingProps;var r=Lr(e,Qe.current);gr(e,n),r=wf(null,e,i,t,r,n);var s=xf();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ft(i)?(s=!0,va(e)):s=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,pf(e),r.updater=Za,e.stateNode=r,r._reactInternals=e,Zu(e,i,t,n),e=tc(null,e,i,!0,s,n)):(e.tag=0,ue&&s&&af(e),Ze(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(Qo(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=h2(i),t=Gt(i,t),r){case 0:e=ec(null,e,i,t,n);break e;case 1:e=Xd(null,e,i,t,n);break e;case 11:e=Kd(null,e,i,t,n);break e;case 14:e=Yd(null,e,i,Gt(i.type,t),n);break e}throw Error(M(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Gt(i,r),ec(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Gt(i,r),Xd(t,e,i,r,n);case 3:e:{if(r0(e),t===null)throw Error(M(387));i=e.pendingProps,s=e.memoizedState,r=s.element,O1(t,e),Ca(e,i,null,n);var o=e.memoizedState;if(i=o.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){r=$r(Error(M(423)),e),e=Zd(t,e,i,n,r);break e}else if(i!==r){r=$r(Error(M(424)),e),e=Zd(t,e,i,n,r);break e}else for(yt=ni(e.stateNode.containerInfo.firstChild),vt=e,ue=!0,qt=null,n=T1(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ar(),i===r){e=Tn(t,e,n);break e}Ze(t,e,i,n)}e=e.child}return e;case 5:return I1(e),t===null&&Ku(e),i=e.type,r=e.pendingProps,s=t!==null?t.memoizedProps:null,o=r.children,Gu(i,r)?o=null:s!==null&&Gu(i,s)&&(e.flags|=32),i0(t,e),Ze(t,e,o,n),e.child;case 6:return t===null&&Ku(e),null;case 13:return s0(t,e,n);case 4:return mf(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Fr(e,null,i,n):Ze(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Gt(i,r),Kd(t,e,i,r,n);case 7:return Ze(t,e,e.pendingProps,n),e.child;case 8:return Ze(t,e,e.pendingProps.children,n),e.child;case 12:return Ze(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value,te(Sa,i._currentValue),i._currentValue=o,s!==null)if(en(s.value,o)){if(s.children===r.children&&!ct.current){e=Tn(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(s.tag===1){l=En(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Yu(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(M(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Yu(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ze(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,gr(e,n),r=At(r),i=i(r),e.flags|=1,Ze(t,e,i,n),e.child;case 14:return i=e.type,r=Gt(i,e.pendingProps),r=Gt(i.type,r),Yd(t,e,i,r,n);case 15:return t0(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Gt(i,r),Qo(t,e),e.tag=1,ft(i)?(t=!0,va(e)):t=!1,gr(e,n),R1(e,i,r),Zu(e,i,r,n),tc(null,e,i,!0,t,n);case 19:return o0(t,e,n);case 22:return n0(t,e,n)}throw Error(M(156,e.tag))};function k0(t,e){return Qp(t,e)}function d2(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(t,e,n,i){return new d2(t,e,n,i)}function Rf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function h2(t){if(typeof t=="function")return Rf(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Qc)return 11;if(t===Kc)return 14}return 2}function oi(t,e){var n=t.alternate;return n===null?(n=It(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Xo(t,e,n,i,r,s){var o=2;if(i=t,typeof t=="function")Rf(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ji:return Li(n.children,r,s,e);case qc:o=8,r|=8;break;case ku:return t=It(12,n,e,r|2),t.elementType=ku,t.lanes=s,t;case Cu:return t=It(13,n,e,r),t.elementType=Cu,t.lanes=s,t;case bu:return t=It(19,n,e,r),t.elementType=bu,t.lanes=s,t;case zp:return nl(n,r,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Mp:o=10;break e;case Rp:o=9;break e;case Qc:o=11;break e;case Kc:o=14;break e;case Nn:o=16,i=null;break e}throw Error(M(130,t==null?t:typeof t,""))}return e=It(o,n,e,r),e.elementType=t,e.type=i,e.lanes=s,e}function Li(t,e,n,i){return t=It(7,t,i,e),t.lanes=n,t}function nl(t,e,n,i){return t=It(22,t,i,e),t.elementType=zp,t.lanes=n,t.stateNode={isHidden:!1},t}function Ql(t,e,n){return t=It(6,t,null,e),t.lanes=n,t}function Kl(t,e,n){return e=It(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function p2(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function zf(t,e,n,i,r,s,o,a,l){return t=new p2(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=It(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pf(s),t}function m2(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(E0)}catch(t){console.error(t)}}E0(),bp.exports=kt;var x2=bp.exports,ch=x2;xu.createRoot=ch.createRoot,xu.hydrateRoot=ch.hydrateRoot;const S2="modulepreload",k2=function(t){return"/guessing-game/"+t},fh={},C2=function(e,n,i){if(!n||n.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=k2(s),s in fh)return;fh[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!i)for(let c=r.length-1;c>=0;c--){const f=r[c];if(f.href===s&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":S2,o||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};let b2={data:""},_2=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||b2,E2=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,P2=/\/\*[^]*?\*\/| +/g,dh=/\n+/g,Un=(t,e)=>{let n="",i="",r="";for(let s in t){let o=t[s];s[0]=="@"?s[1]=="i"?n=s+" "+o+";":i+=s[1]=="f"?Un(o,s):s+"{"+Un(o,s[1]=="k"?"":e)+"}":typeof o=="object"?i+=Un(o,e?e.replace(/([^,])+/g,a=>s.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):o!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=Un.p?Un.p(s,o):s+":"+o+";")}return n+(e&&r?e+"{"+r+"}":r)+i},wn={},P0=t=>{if(typeof t=="object"){let e="";for(let n in t)e+=n+P0(t[n]);return e}return t},O2=(t,e,n,i,r)=>{let s=P0(t),o=wn[s]||(wn[s]=(l=>{let u=0,c=11;for(;u>>0;return"go"+c})(s));if(!wn[o]){let l=s!==t?t:(u=>{let c,f,d=[{}];for(;c=E2.exec(u.replace(P2,""));)c[4]?d.shift():c[3]?(f=c[3].replace(dh," ").trim(),d.unshift(d[0][f]=d[0][f]||{})):d[0][c[1]]=c[2].replace(dh," ").trim();return d[0]})(t);wn[o]=Un(r?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&wn.g?wn.g:null;return n&&(wn.g=wn[o]),((l,u,c,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(wn[o],e,i,a),o},M2=(t,e,n)=>t.reduce((i,r,s)=>{let o=e[s];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":Un(a,""):a===!1?"":a}return i+r+(o??"")},"");function al(t){let e=this||{},n=t.call?t(e.p):t;return O2(n.unshift?n.raw?M2(n,[].slice.call(arguments,1),e.p):n.reduce((i,r)=>Object.assign(i,r&&r.call?r(e.p):r),{}):n,_2(e.target),e.g,e.o,e.k)}let O0,hc,pc;al.bind({g:1});let In=al.bind({k:1});function R2(t,e,n,i){Un.p=e,O0=t,hc=n,pc=i}function mi(t,e){let n=this||{};return function(){let i=arguments;function r(s,o){let a=Object.assign({},s),l=a.className||r.className;n.p=Object.assign({theme:hc&&hc()},a),n.o=/ *go\d+/.test(l),a.className=al.apply(n,i)+(l?" "+l:""),e&&(a.ref=o);let u=t;return t[0]&&(u=a.as||t,delete a.as),pc&&u[0]&&pc(a),O0(u,a)}return e?e(r):r}}var z2=t=>typeof t=="function",Ta=(t,e)=>z2(t)?t(e):t,T2=(()=>{let t=0;return()=>(++t).toString()})(),M0=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),I2=20,Zo=new Map,D2=1e3,hh=t=>{if(Zo.has(t))return;let e=setTimeout(()=>{Zo.delete(t),Qi({type:4,toastId:t})},D2);Zo.set(t,e)},L2=t=>{let e=Zo.get(t);e&&clearTimeout(e)},mc=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,I2)};case 1:return e.toast.id&&L2(e.toast.id),{...t,toasts:t.toasts.map(s=>s.id===e.toast.id?{...s,...e.toast}:s)};case 2:let{toast:n}=e;return t.toasts.find(s=>s.id===n.id)?mc(t,{type:1,toast:n}):mc(t,{type:0,toast:n});case 3:let{toastId:i}=e;return i?hh(i):t.toasts.forEach(s=>{hh(s.id)}),{...t,toasts:t.toasts.map(s=>s.id===i||i===void 0?{...s,visible:!1}:s)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(s=>s.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let r=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+r}))}}},Jo=[],ea={toasts:[],pausedAt:void 0},Qi=t=>{ea=mc(ea,t),Jo.forEach(e=>{e(ea)})},A2={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},F2=(t={})=>{let[e,n]=T.useState(ea);T.useEffect(()=>(Jo.push(n),()=>{let r=Jo.indexOf(n);r>-1&&Jo.splice(r,1)}),[e]);let i=e.toasts.map(r=>{var s,o;return{...t,...t[r.type],...r,duration:r.duration||((s=t[r.type])==null?void 0:s.duration)||(t==null?void 0:t.duration)||A2[r.type],style:{...t.style,...(o=t[r.type])==null?void 0:o.style,...r.style}}});return{...e,toasts:i}},N2=(t,e="blank",n)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...n,id:(n==null?void 0:n.id)||T2()}),po=t=>(e,n)=>{let i=N2(e,t,n);return Qi({type:2,toast:i}),i.id},gt=(t,e)=>po("blank")(t,e);gt.error=po("error");gt.success=po("success");gt.loading=po("loading");gt.custom=po("custom");gt.dismiss=t=>{Qi({type:3,toastId:t})};gt.remove=t=>Qi({type:4,toastId:t});gt.promise=(t,e,n)=>{let i=gt.loading(e.loading,{...n,...n==null?void 0:n.loading});return t.then(r=>(gt.success(Ta(e.success,r),{id:i,...n,...n==null?void 0:n.success}),r)).catch(r=>{gt.error(Ta(e.error,r),{id:i,...n,...n==null?void 0:n.error})}),t};var $2=(t,e)=>{Qi({type:1,toast:{id:t,height:e}})},j2=()=>{Qi({type:5,time:Date.now()})},B2=t=>{let{toasts:e,pausedAt:n}=F2(t);T.useEffect(()=>{if(n)return;let s=Date.now(),o=e.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&>.dismiss(a.id);return}return setTimeout(()=>gt.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[e,n]);let i=T.useCallback(()=>{n&&Qi({type:6,time:Date.now()})},[n]),r=T.useCallback((s,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=e.filter(h=>(h.position||u)===(s.position||u)&&h.height),f=c.findIndex(h=>h.id===s.id),d=c.filter((h,g)=>gh.visible).slice(...a?[d+1]:[0,d]).reduce((h,g)=>h+(g.height||0)+l,0)},[e]);return{toasts:e,handlers:{updateHeight:$2,startPause:j2,endPause:i,calculateOffset:r}}},U2=In`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
@@ -45,7 +45,7 @@ from {
to {
transform: scale(1) rotate(45deg);
opacity: 1;
-}`,F2=Rn`
+}`,H2=In`
from {
transform: scale(0);
opacity: 0;
@@ -53,7 +53,7 @@ from {
to {
transform: scale(1);
opacity: 1;
-}`,N2=Rn`
+}`,G2=In`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
@@ -61,7 +61,7 @@ from {
to {
transform: scale(1) rotate(90deg);
opacity: 1;
-}`,$2=pi("div")`
+}`,W2=mi("div")`
width: 20px;
opacity: 0;
height: 20px;
@@ -70,14 +70,14 @@ to {
position: relative;
transform: rotate(45deg);
- animation: ${A2} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+ animation: ${U2} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
- animation: ${F2} 0.15s ease-out forwards;
+ animation: ${H2} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
@@ -90,18 +90,18 @@ to {
}
&:before {
- animation: ${N2} 0.15s ease-out forwards;
+ animation: ${G2} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
-`,j2=Rn`
+`,V2=In`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
-`,B2=pi("div")`
+`,q2=mi("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
@@ -109,8 +109,8 @@ to {
border-radius: 100%;
border-color: ${t=>t.secondary||"#e0e0e0"};
border-right-color: ${t=>t.primary||"#616161"};
- animation: ${j2} 1s linear infinite;
-`,U2=Rn`
+ animation: ${V2} 1s linear infinite;
+`,Q2=In`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
@@ -118,7 +118,7 @@ from {
to {
transform: scale(1) rotate(45deg);
opacity: 1;
-}`,H2=Rn`
+}`,K2=In`
0% {
height: 0;
width: 0;
@@ -132,7 +132,7 @@ to {
100% {
opacity: 1;
height: 10px;
-}`,G2=pi("div")`
+}`,Y2=mi("div")`
width: 20px;
opacity: 0;
height: 20px;
@@ -141,13 +141,13 @@ to {
position: relative;
transform: rotate(45deg);
- animation: ${U2} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+ animation: ${Q2} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
- animation: ${H2} 0.2s ease-out forwards;
+ animation: ${K2} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
@@ -159,16 +159,16 @@ to {
height: 10px;
width: 6px;
}
-`,W2=pi("div")`
+`,X2=mi("div")`
position: absolute;
-`,q2=pi("div")`
+`,Z2=mi("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
-`,Q2=Rn`
+`,J2=In`
from {
transform: scale(0.6);
opacity: 0.4;
@@ -176,20 +176,20 @@ from {
to {
transform: scale(1);
opacity: 1;
-}`,V2=pi("div")`
+}`,ev=mi("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
- animation: ${Q2} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+ animation: ${J2} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
-`,K2=({toast:t})=>{let{icon:e,type:n,iconTheme:i}=t;return e!==void 0?typeof e=="string"?R.createElement(V2,null,e):e:n==="blank"?null:R.createElement(q2,null,R.createElement(B2,{...i}),n!=="loading"&&R.createElement(W2,null,n==="error"?R.createElement($2,{...i}):R.createElement(G2,{...i})))},Y2=t=>`
+`,tv=({toast:t})=>{let{icon:e,type:n,iconTheme:i}=t;return e!==void 0?typeof e=="string"?T.createElement(ev,null,e):e:n==="blank"?null:T.createElement(Z2,null,T.createElement(q2,{...i}),n!=="loading"&&T.createElement(X2,null,n==="error"?T.createElement(W2,{...i}):T.createElement(Y2,{...i})))},nv=t=>`
0% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
-`,X2=t=>`
+`,iv=t=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;}
-`,Z2="0%{opacity:0;} 100%{opacity:1;}",J2="0%{opacity:1;} 100%{opacity:0;}",ev=pi("div")`
+`,rv="0%{opacity:0;} 100%{opacity:1;}",sv="0%{opacity:1;} 100%{opacity:0;}",ov=mi("div")`
display: flex;
align-items: center;
background: #fff;
@@ -201,32 +201,32 @@ to {
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
-`,tv=pi("div")`
+`,av=mi("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
-`,nv=(t,e)=>{let n=t.includes("top")?1:-1,[i,r]=b0()?[Z2,J2]:[Y2(n),X2(n)];return{animation:e?`${Rn(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Rn(r)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},iv=R.memo(({toast:t,position:e,style:n,children:i})=>{let r=t.height?nv(t.position||e||"top-center",t.visible):{opacity:0},s=R.createElement(K2,{toast:t}),o=R.createElement(tv,{...t.ariaProps},za(t.message,t));return R.createElement(ev,{className:t.className,style:{...r,...n,...t.style}},typeof i=="function"?i({icon:s,message:o}):R.createElement(R.Fragment,null,s,o))});b2(R.createElement);var rv=({id:t,className:e,style:n,onHeightUpdate:i,children:r})=>{let s=R.useCallback(o=>{if(o){let a=()=>{let l=o.getBoundingClientRect().height;i(t,l)};a(),new MutationObserver(a).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[t,i]);return R.createElement("div",{ref:s,className:e,style:n},r)},sv=(t,e)=>{let n=t.includes("top"),i=n?{top:0}:{bottom:0},r=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:b0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(n?1:-1)}px)`,...i,...r}},ov=rl`
+`,lv=(t,e)=>{let n=t.includes("top")?1:-1,[i,r]=M0()?[rv,sv]:[nv(n),iv(n)];return{animation:e?`${In(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${In(r)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},uv=T.memo(({toast:t,position:e,style:n,children:i})=>{let r=t.height?lv(t.position||e||"top-center",t.visible):{opacity:0},s=T.createElement(tv,{toast:t}),o=T.createElement(av,{...t.ariaProps},Ta(t.message,t));return T.createElement(ov,{className:t.className,style:{...r,...n,...t.style}},typeof i=="function"?i({icon:s,message:o}):T.createElement(T.Fragment,null,s,o))});R2(T.createElement);var cv=({id:t,className:e,style:n,onHeightUpdate:i,children:r})=>{let s=T.useCallback(o=>{if(o){let a=()=>{let l=o.getBoundingClientRect().height;i(t,l)};a(),new MutationObserver(a).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[t,i]);return T.createElement("div",{ref:s,className:e,style:n},r)},fv=(t,e)=>{let n=t.includes("top"),i=n?{top:0}:{bottom:0},r=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:M0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(n?1:-1)}px)`,...i,...r}},dv=al`
z-index: 9999;
> * {
pointer-events: auto;
}
-`,Lo=16,av=({reverseOrder:t,position:e="top-center",toastOptions:n,gutter:i,children:r,containerStyle:s,containerClassName:o})=>{let{toasts:a,handlers:l}=L2(n);return R.createElement("div",{style:{position:"fixed",zIndex:9999,top:Lo,left:Lo,right:Lo,bottom:Lo,pointerEvents:"none",...s},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||e,f=l.calculateOffset(u,{reverseOrder:t,gutter:i,defaultPosition:e}),d=sv(c,f);return R.createElement(rv,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?ov:"",style:d},u.type==="custom"?za(u.message,u):r?r(u):R.createElement(iv,{toast:u,position:c}))}))},_0=mt,po=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jr=typeof window>"u"||"Deno"in window;function Ot(){}function lv(t,e){return typeof t=="function"?t(e):t}function hc(t){return typeof t=="number"&&t>=0&&t!==1/0}function E0(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ch(t,e){const{type:n="all",exact:i,fetchStatus:r,predicate:s,queryKey:o,stale:a}=t;if(o){if(i){if(e.queryHash!==Tf(o,e.options))return!1}else if(!Ws(e.queryKey,o))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||typeof r<"u"&&r!==e.state.fetchStatus||s&&!s(e))}function fh(t,e){const{exact:n,status:i,predicate:r,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(Gs(e.options.mutationKey)!==Gs(s))return!1}else if(!Ws(e.options.mutationKey,s))return!1}return!(i&&e.state.status!==i||r&&!r(e))}function Tf(t,e){return((e==null?void 0:e.queryKeyHashFn)||Gs)(t)}function Gs(t){return JSON.stringify(t,(e,n)=>mc(n)?Object.keys(n).sort().reduce((i,r)=>(i[r]=n[r],i),{}):n)}function Ws(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!Ws(t[n],e[n])):!1}function P0(t,e){if(t===e)return t;const n=dh(t)&&dh(e);if(n||mc(t)&&mc(e)){const i=n?t.length:Object.keys(t).length,r=n?e:Object.keys(e),s=r.length,o=n?[]:{};let a=0;for(let l=0;l"u")return!0;const n=e.prototype;return!(!hh(n)||!n.hasOwnProperty("isPrototypeOf"))}function hh(t){return Object.prototype.toString.call(t)==="[object Object]"}function O0(t){return new Promise(e=>{setTimeout(e,t)})}function ph(t){O0(0).then(t)}function yc(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?P0(t,e):e}function uv(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function cv(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var bi,Bn,vr,Jh,fv=(Jh=class extends po{constructor(){super();A(this,bi,void 0);A(this,Bn,void 0);A(this,vr,void 0);T(this,vr,e=>{if(!jr&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,Bn)||this.setEventListener(x(this,vr))}onUnsubscribe(){var e;this.hasListeners()||((e=x(this,Bn))==null||e.call(this),T(this,Bn,void 0))}setEventListener(e){var n;T(this,vr,e),(n=x(this,Bn))==null||n.call(this),T(this,Bn,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){x(this,bi)!==e&&(T(this,bi,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof x(this,bi)=="boolean"?x(this,bi):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},bi=new WeakMap,Bn=new WeakMap,vr=new WeakMap,Jh),Ra=new fv,wr,Un,xr,ep,dv=(ep=class extends po{constructor(){super();A(this,wr,!0);A(this,Un,void 0);A(this,xr,void 0);T(this,xr,e=>{if(!jr&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){x(this,Un)||this.setEventListener(x(this,xr))}onUnsubscribe(){var e;this.hasListeners()||((e=x(this,Un))==null||e.call(this),T(this,Un,void 0))}setEventListener(e){var n;T(this,xr,e),(n=x(this,Un))==null||n.call(this),T(this,Un,e(this.setOnline.bind(this)))}setOnline(e){x(this,wr)!==e&&(T(this,wr,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return x(this,wr)}},wr=new WeakMap,Un=new WeakMap,xr=new WeakMap,ep),Ta=new dv;function hv(t){return Math.min(1e3*2**t,3e4)}function sl(t){return(t??"online")==="online"?Ta.isOnline():!0}var M0=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Ql(t){return t instanceof M0}function z0(t){let e=!1,n=0,i=!1,r,s,o;const a=new Promise((k,p)=>{s=k,o=p}),l=k=>{var p;i||(h(new M0(k)),(p=t.abort)==null||p.call(t))},u=()=>{e=!0},c=()=>{e=!1},f=()=>!Ra.isFocused()||t.networkMode!=="always"&&!Ta.isOnline(),d=k=>{var p;i||(i=!0,(p=t.onSuccess)==null||p.call(t,k),r==null||r(),s(k))},h=k=>{var p;i||(i=!0,(p=t.onError)==null||p.call(t,k),r==null||r(),o(k))},g=()=>new Promise(k=>{var p;r=m=>{const y=i||!f();return y&&k(m),y},(p=t.onPause)==null||p.call(t)}).then(()=>{var k;r=void 0,i||(k=t.onContinue)==null||k.call(t)}),v=()=>{if(i)return;let k;try{k=t.fn()}catch(p){k=Promise.reject(p)}Promise.resolve(k).then(d).catch(p=>{var _;if(i)return;const m=t.retry??(jr?0:3),y=t.retryDelay??hv,w=typeof y=="function"?y(n,p):y,S=m===!0||typeof m=="number"&&n{if(f())return g()}).then(()=>{e?h(p):v()})})};return sl(t.networkMode)?v():g().then(v),{promise:a,cancel:l,continue:()=>(r==null?void 0:r())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}function pv(){let t=[],e=0,n=c=>{c()},i=c=>{c()};const r=c=>{let f;e++;try{f=c()}finally{e--,e||a()}return f},s=c=>{e?t.push(c):ph(()=>{n(c)})},o=c=>(...f)=>{s(()=>{c(...f)})},a=()=>{const c=t;t=[],c.length&&ph(()=>{i(()=>{c.forEach(f=>{n(f)})})})};return{batch:r,batchCalls:o,schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{i=c}}}var Le=pv(),_i,tp,R0=(tp=class{constructor(){A(this,_i,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hc(this.gcTime)&&T(this,_i,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(jr?1/0:5*60*1e3))}clearGcTimeout(){x(this,_i)&&(clearTimeout(x(this,_i)),T(this,_i,void 0))}},_i=new WeakMap,tp),kr,Sr,_t,Hn,Et,Pe,Ys,Ei,Cr,Jo,Ht,vn,np,mv=(np=class extends R0{constructor(e){super();A(this,Cr);A(this,Ht);A(this,kr,void 0);A(this,Sr,void 0);A(this,_t,void 0);A(this,Hn,void 0);A(this,Et,void 0);A(this,Pe,void 0);A(this,Ys,void 0);A(this,Ei,void 0);T(this,Ei,!1),T(this,Ys,e.defaultOptions),q(this,Cr,Jo).call(this,e.options),T(this,Pe,[]),T(this,_t,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,T(this,kr,e.state||yv(this.options)),this.state=x(this,kr),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!x(this,Pe).length&&this.state.fetchStatus==="idle"&&x(this,_t).remove(this)}setData(e,n){const i=yc(this.state.data,e,this.options);return q(this,Ht,vn).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){q(this,Ht,vn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i;const n=x(this,Hn);return(i=x(this,Et))==null||i.cancel(e),n?n.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,kr))}isActive(){return x(this,Pe).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||x(this,Pe).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!E0(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=x(this,Pe).find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=x(this,Et))==null||n.continue()}onOnline(){var n;const e=x(this,Pe).find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=x(this,Et))==null||n.continue()}addObserver(e){x(this,Pe).includes(e)||(x(this,Pe).push(e),this.clearGcTimeout(),x(this,_t).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){x(this,Pe).includes(e)&&(T(this,Pe,x(this,Pe).filter(n=>n!==e)),x(this,Pe).length||(x(this,Et)&&(x(this,Ei)?x(this,Et).cancel({revert:!0}):x(this,Et).cancelRetry()),this.scheduleGc()),x(this,_t).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return x(this,Pe).length}invalidate(){this.state.isInvalidated||q(this,Ht,vn).call(this,{type:"invalidate"})}fetch(e,n){var u,c,f,d;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,Hn))return(u=x(this,Et))==null||u.continueRetry(),x(this,Hn)}if(e&&q(this,Cr,Jo).call(this,e),!this.options.queryFn){const h=x(this,Pe).find(g=>g.options.queryFn);h&&q(this,Cr,Jo).call(this,h.options)}const i=new AbortController,r={queryKey:this.queryKey,meta:this.meta},s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(T(this,Ei,!0),i.signal)})};s(r);const o=()=>this.options.queryFn?(T(this,Ei,!1),this.options.persister?this.options.persister(this.options.queryFn,r,this):this.options.queryFn(r)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};s(a),(c=this.options.behavior)==null||c.onFetch(a,this),T(this,Sr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&q(this,Ht,vn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var g,v,k,p;Ql(h)&&h.silent||q(this,Ht,vn).call(this,{type:"error",error:h}),Ql(h)||((v=(g=x(this,_t).config).onError)==null||v.call(g,h,this),(p=(k=x(this,_t).config).onSettled)==null||p.call(k,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return T(this,Et,z0({fn:a.fetchFn,abort:i.abort.bind(i),onSuccess:h=>{var g,v,k,p;if(typeof h>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(v=(g=x(this,_t).config).onSuccess)==null||v.call(g,h,this),(p=(k=x(this,_t).config).onSettled)==null||p.call(k,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,g)=>{q(this,Ht,vn).call(this,{type:"failed",failureCount:h,error:g})},onPause:()=>{q(this,Ht,vn).call(this,{type:"pause"})},onContinue:()=>{q(this,Ht,vn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),T(this,Hn,x(this,Et).promise),x(this,Hn)}},kr=new WeakMap,Sr=new WeakMap,_t=new WeakMap,Hn=new WeakMap,Et=new WeakMap,Pe=new WeakMap,Ys=new WeakMap,Ei=new WeakMap,Cr=new WeakSet,Jo=function(e){this.options={...x(this,Ys),...e},this.updateGcTime(this.options.gcTime)},Ht=new WeakSet,vn=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:sl(this.options.networkMode)?"fetching":"paused",...!i.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...i,data:e.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Ql(r)&&r.revert&&x(this,Sr)?{...x(this,Sr),fetchStatus:"idle"}:{...i,error:r,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),Le.batch(()=>{x(this,Pe).forEach(i=>{i.onQueryUpdate()}),x(this,_t).notify({query:this,type:"updated",action:e})})},np);function yv(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=typeof e<"u",i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var on,ip,gv=(ip=class extends po{constructor(e={}){super();A(this,on,void 0);this.config=e,T(this,on,new Map)}build(e,n,i){const r=n.queryKey,s=n.queryHash??Tf(r,n);let o=this.get(s);return o||(o=new mv({cache:this,queryKey:r,queryHash:s,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){x(this,on).has(e.queryHash)||(x(this,on).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=x(this,on).get(e.queryHash);n&&(e.destroy(),n===e&&x(this,on).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Le.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return x(this,on).get(e)}getAll(){return[...x(this,on).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>ch(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>ch(e,i)):n}notify(e){Le.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Le.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Le.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},on=new WeakMap,ip),an,Xs,ft,br,ln,In,rp,vv=(rp=class extends R0{constructor(e){super();A(this,ln);A(this,an,void 0);A(this,Xs,void 0);A(this,ft,void 0);A(this,br,void 0);this.mutationId=e.mutationId,T(this,Xs,e.defaultOptions),T(this,ft,e.mutationCache),T(this,an,[]),this.state=e.state||wv(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...x(this,Xs),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){x(this,an).includes(e)||(x(this,an).push(e),this.clearGcTimeout(),x(this,ft).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){T(this,an,x(this,an).filter(n=>n!==e)),this.scheduleGc(),x(this,ft).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){x(this,an).length||(this.state.status==="pending"?this.scheduleGc():x(this,ft).remove(this))}continue(){var e;return((e=x(this,br))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var r,s,o,a,l,u,c,f,d,h,g,v,k,p,m,y,w,S,_,C;const n=()=>(T(this,br,z0({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(z,B)=>{q(this,ln,In).call(this,{type:"failed",failureCount:z,error:B})},onPause:()=>{q(this,ln,In).call(this,{type:"pause"})},onContinue:()=>{q(this,ln,In).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),x(this,br).promise),i=this.state.status==="pending";try{if(!i){q(this,ln,In).call(this,{type:"pending",variables:e}),await((s=(r=x(this,ft).config).onMutate)==null?void 0:s.call(r,e,this));const B=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,e));B!==this.state.context&&q(this,ln,In).call(this,{type:"pending",context:B,variables:e})}const z=await n();return await((u=(l=x(this,ft).config).onSuccess)==null?void 0:u.call(l,z,e,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,z,e,this.state.context)),await((h=(d=x(this,ft).config).onSettled)==null?void 0:h.call(d,z,null,this.state.variables,this.state.context,this)),await((v=(g=this.options).onSettled)==null?void 0:v.call(g,z,null,e,this.state.context)),q(this,ln,In).call(this,{type:"success",data:z}),z}catch(z){try{throw await((p=(k=x(this,ft).config).onError)==null?void 0:p.call(k,z,e,this.state.context,this)),await((y=(m=this.options).onError)==null?void 0:y.call(m,z,e,this.state.context)),await((S=(w=x(this,ft).config).onSettled)==null?void 0:S.call(w,void 0,z,this.state.variables,this.state.context,this)),await((C=(_=this.options).onSettled)==null?void 0:C.call(_,void 0,z,e,this.state.context)),z}finally{q(this,ln,In).call(this,{type:"error",error:z})}}}},an=new WeakMap,Xs=new WeakMap,ft=new WeakMap,br=new WeakMap,ln=new WeakSet,In=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!sl(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Le.batch(()=>{x(this,an).forEach(i=>{i.onMutationUpdate(e)}),x(this,ft).notify({mutation:this,type:"updated",action:e})})},rp);function wv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pt,Zs,Pi,sp,xv=(sp=class extends po{constructor(e={}){super();A(this,Pt,void 0);A(this,Zs,void 0);A(this,Pi,void 0);this.config=e,T(this,Pt,[]),T(this,Zs,0)}build(e,n,i){const r=new vv({mutationCache:this,mutationId:++go(this,Zs)._,options:e.defaultMutationOptions(n),state:i});return this.add(r),r}add(e){x(this,Pt).push(e),this.notify({type:"added",mutation:e})}remove(e){T(this,Pt,x(this,Pt).filter(n=>n!==e)),this.notify({type:"removed",mutation:e})}clear(){Le.batch(()=>{x(this,Pt).forEach(e=>{this.remove(e)})})}getAll(){return x(this,Pt)}find(e){const n={exact:!0,...e};return x(this,Pt).find(i=>fh(n,i))}findAll(e={}){return x(this,Pt).filter(n=>fh(e,n))}notify(e){Le.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){return T(this,Pi,(x(this,Pi)??Promise.resolve()).then(()=>{const e=x(this,Pt).filter(n=>n.state.isPaused);return Le.batch(()=>e.reduce((n,i)=>n.then(()=>i.continue().catch(Ot)),Promise.resolve()))}).then(()=>{T(this,Pi,void 0)})),x(this,Pi)}},Pt=new WeakMap,Zs=new WeakMap,Pi=new WeakMap,sp);function kv(t){return{onFetch:(e,n)=>{const i=async()=>{var g,v,k,p,m;const r=e.options,s=(k=(v=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:v.fetchMore)==null?void 0:k.direction,o=((p=e.state.data)==null?void 0:p.pages)||[],a=((m=e.state.data)==null?void 0:m.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(e.signal.aborted?u=!0:e.signal.addEventListener("abort",()=>{u=!0}),e.signal)})},f=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),d=async(y,w,S)=>{if(u)return Promise.reject();if(w==null&&y.pages.length)return Promise.resolve(y);const _={queryKey:e.queryKey,pageParam:w,direction:S?"backward":"forward",meta:e.options.meta};c(_);const C=await f(_),{maxPages:z}=e.options,B=S?cv:uv;return{pages:B(y.pages,C,z),pageParams:B(y.pageParams,w,z)}};let h;if(s&&o.length){const y=s==="backward",w=y?Sv:mh,S={pages:o,pageParams:a},_=w(r,S);h=await d(S,_,y)}else{h=await d(l,a[0]??r.initialPageParam);const y=t??o.length;for(let w=1;w{var r,s;return(s=(r=e.options).persister)==null?void 0:s.call(r,i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=i}}}function mh(t,{pages:e,pageParams:n}){const i=e.length-1;return t.getNextPageParam(e[i],e,n[i],n)}function Sv(t,{pages:e,pageParams:n}){var i;return(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n)}var Se,Gn,Wn,_r,Er,qn,Pr,Or,op,Cv=(op=class{constructor(t={}){A(this,Se,void 0);A(this,Gn,void 0);A(this,Wn,void 0);A(this,_r,void 0);A(this,Er,void 0);A(this,qn,void 0);A(this,Pr,void 0);A(this,Or,void 0);T(this,Se,t.queryCache||new gv),T(this,Gn,t.mutationCache||new xv),T(this,Wn,t.defaultOptions||{}),T(this,_r,new Map),T(this,Er,new Map),T(this,qn,0)}mount(){go(this,qn)._++,x(this,qn)===1&&(T(this,Pr,Ra.subscribe(()=>{Ra.isFocused()&&(this.resumePausedMutations(),x(this,Se).onFocus())})),T(this,Or,Ta.subscribe(()=>{Ta.isOnline()&&(this.resumePausedMutations(),x(this,Se).onOnline())})))}unmount(){var t,e;go(this,qn)._--,x(this,qn)===0&&((t=x(this,Pr))==null||t.call(this),T(this,Pr,void 0),(e=x(this,Or))==null||e.call(this),T(this,Or,void 0))}isFetching(t){return x(this,Se).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return x(this,Gn).findAll({...t,status:"pending"}).length}getQueryData(t){var e;return(e=x(this,Se).find({queryKey:t}))==null?void 0:e.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);return e?Promise.resolve(e):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=x(this,Se).find({queryKey:t}),r=i==null?void 0:i.state.data,s=lv(e,r);if(typeof s>"u")return;const o=this.defaultQueryOptions({queryKey:t});return x(this,Se).build(this,o).setData(s,{...n,manual:!0})}setQueriesData(t,e,n){return Le.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var e;return(e=x(this,Se).find({queryKey:t}))==null?void 0:e.state}removeQueries(t){const e=x(this,Se);Le.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=x(this,Se),i={type:"active",...t};return Le.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries(i,e)))}cancelQueries(t={},e={}){const n={revert:!0,...e},i=Le.batch(()=>x(this,Se).findAll(t).map(r=>r.cancel(n)));return Promise.all(i).then(Ot).catch(Ot)}invalidateQueries(t={},e={}){return Le.batch(()=>{if(x(this,Se).findAll(t).forEach(i=>{i.invalidate()}),t.refetchType==="none")return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){const n={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},i=Le.batch(()=>x(this,Se).findAll(t).filter(r=>!r.isDisabled()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ot)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(Ot)}fetchQuery(t){const e=this.defaultQueryOptions(t);typeof e.retry>"u"&&(e.retry=!1);const n=x(this,Se).build(this,e);return n.isStaleByTime(e.staleTime)?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ot).catch(Ot)}fetchInfiniteQuery(t){return t.behavior=kv(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ot).catch(Ot)}resumePausedMutations(){return x(this,Gn).resumePausedMutations()}getQueryCache(){return x(this,Se)}getMutationCache(){return x(this,Gn)}getDefaultOptions(){return x(this,Wn)}setDefaultOptions(t){T(this,Wn,t)}setQueryDefaults(t,e){x(this,_r).set(Gs(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...x(this,_r).values()];let n={};return e.forEach(i=>{Ws(t,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(t,e){x(this,Er).set(Gs(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...x(this,Er).values()];let n={};return e.forEach(i=>{Ws(t,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const e={...x(this,Wn).queries,...(t==null?void 0:t.queryKey)&&this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Tf(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...x(this,Wn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){x(this,Se).clear(),x(this,Gn).clear()}},Se=new WeakMap,Gn=new WeakMap,Wn=new WeakMap,_r=new WeakMap,Er=new WeakMap,qn=new WeakMap,Pr=new WeakMap,Or=new WeakMap,op),it,ee,Mr,Be,Oi,zr,un,Js,Rr,Tr,Mi,zi,Qn,Ri,Ti,ds,eo,gc,to,vc,no,wc,io,xc,ro,kc,so,Sc,oo,Cc,Ba,T0,ap,bv=(ap=class extends po{constructor(e,n){super();A(this,Ti);A(this,eo);A(this,to);A(this,no);A(this,io);A(this,ro);A(this,so);A(this,oo);A(this,Ba);A(this,it,void 0);A(this,ee,void 0);A(this,Mr,void 0);A(this,Be,void 0);A(this,Oi,void 0);A(this,zr,void 0);A(this,un,void 0);A(this,Js,void 0);A(this,Rr,void 0);A(this,Tr,void 0);A(this,Mi,void 0);A(this,zi,void 0);A(this,Qn,void 0);A(this,Ri,void 0);T(this,ee,void 0),T(this,Mr,void 0),T(this,Be,void 0),T(this,Ri,new Set),T(this,it,e),this.options=n,T(this,un,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(x(this,ee).addObserver(this),yh(x(this,ee),this.options)&&q(this,Ti,ds).call(this),q(this,io,xc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bc(x(this,ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bc(x(this,ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,q(this,ro,kc).call(this),q(this,so,Sc).call(this),x(this,ee).removeObserver(this)}setOptions(e,n){const i=this.options,r=x(this,ee);if(this.options=x(this,it).defaultQueryOptions(e),pc(i,this.options)||x(this,it).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,ee),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),q(this,oo,Cc).call(this);const s=this.hasListeners();s&&gh(x(this,ee),r,this.options,i)&&q(this,Ti,ds).call(this),this.updateResult(n),s&&(x(this,ee)!==r||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&q(this,eo,gc).call(this);const o=q(this,to,vc).call(this);s&&(x(this,ee)!==r||this.options.enabled!==i.enabled||o!==x(this,Qn))&&q(this,no,wc).call(this,o)}getOptimisticResult(e){const n=x(this,it).getQueryCache().build(x(this,it),e),i=this.createResult(n,e);return Ev(this,i)&&(T(this,Be,i),T(this,zr,this.options),T(this,Oi,x(this,ee).state)),i}getCurrentResult(){return x(this,Be)}trackResult(e){const n={};return Object.keys(e).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(x(this,Ri).add(i),e[i])})}),n}getCurrentQuery(){return x(this,ee)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=x(this,it).defaultQueryOptions(e),i=x(this,it).getQueryCache().build(x(this,it),n);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,n))}fetch(e){return q(this,Ti,ds).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,Be)))}createResult(e,n){var _;const i=x(this,ee),r=this.options,s=x(this,Be),o=x(this,Oi),a=x(this,zr),u=e!==i?e.state:x(this,Mr),{state:c}=e;let{error:f,errorUpdatedAt:d,fetchStatus:h,status:g}=c,v=!1,k;if(n._optimisticResults){const C=this.hasListeners(),z=!C&&yh(e,n),B=C&&gh(e,i,n,r);(z||B)&&(h=sl(e.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(g="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(s&&c.data===(o==null?void 0:o.data)&&n.select===x(this,Js))k=x(this,Rr);else try{T(this,Js,n.select),k=n.select(c.data),k=yc(s==null?void 0:s.data,k,n),T(this,Rr,k),T(this,un,null)}catch(C){T(this,un,C)}else k=c.data;if(typeof n.placeholderData<"u"&&typeof k>"u"&&g==="pending"){let C;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))C=s.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((_=x(this,Tr))==null?void 0:_.state.data,x(this,Tr)):n.placeholderData,n.select&&typeof C<"u")try{C=n.select(C),T(this,un,null)}catch(z){T(this,un,z)}typeof C<"u"&&(g="success",k=yc(s==null?void 0:s.data,C,n),v=!0)}x(this,un)&&(f=x(this,un),k=x(this,Rr),d=Date.now(),g="error");const p=h==="fetching",m=g==="pending",y=g==="error",w=m&&p;return{status:g,fetchStatus:h,isPending:m,isSuccess:g==="success",isError:y,isInitialLoading:w,isLoading:w,data:k,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:d,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:p,isRefetching:p&&!m,isLoadingError:y&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:v,isRefetchError:y&&c.dataUpdatedAt!==0,isStale:Df(e,n),refetch:this.refetch}}updateResult(e){const n=x(this,Be),i=this.createResult(x(this,ee),this.options);if(T(this,Oi,x(this,ee).state),T(this,zr,this.options),pc(i,n))return;x(this,Oi).data!==void 0&&T(this,Tr,x(this,ee)),T(this,Be,i);const r={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!x(this,Ri).size)return!0;const l=new Set(a??x(this,Ri));return this.options.throwOnError&&l.add("error"),Object.keys(x(this,Be)).some(u=>{const c=u;return x(this,Be)[c]!==n[c]&&l.has(c)})};(e==null?void 0:e.listeners)!==!1&&s()&&(r.listeners=!0),q(this,Ba,T0).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&q(this,io,xc).call(this)}},it=new WeakMap,ee=new WeakMap,Mr=new WeakMap,Be=new WeakMap,Oi=new WeakMap,zr=new WeakMap,un=new WeakMap,Js=new WeakMap,Rr=new WeakMap,Tr=new WeakMap,Mi=new WeakMap,zi=new WeakMap,Qn=new WeakMap,Ri=new WeakMap,Ti=new WeakSet,ds=function(e){q(this,oo,Cc).call(this);let n=x(this,ee).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Ot)),n},eo=new WeakSet,gc=function(){if(q(this,ro,kc).call(this),jr||x(this,Be).isStale||!hc(this.options.staleTime))return;const n=E0(x(this,Be).dataUpdatedAt,this.options.staleTime)+1;T(this,Mi,setTimeout(()=>{x(this,Be).isStale||this.updateResult()},n))},to=new WeakSet,vc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,ee)):this.options.refetchInterval)??!1},no=new WeakSet,wc=function(e){q(this,so,Sc).call(this),T(this,Qn,e),!(jr||this.options.enabled===!1||!hc(x(this,Qn))||x(this,Qn)===0)&&T(this,zi,setInterval(()=>{(this.options.refetchIntervalInBackground||Ra.isFocused())&&q(this,Ti,ds).call(this)},x(this,Qn)))},io=new WeakSet,xc=function(){q(this,eo,gc).call(this),q(this,no,wc).call(this,q(this,to,vc).call(this))},ro=new WeakSet,kc=function(){x(this,Mi)&&(clearTimeout(x(this,Mi)),T(this,Mi,void 0))},so=new WeakSet,Sc=function(){x(this,zi)&&(clearInterval(x(this,zi)),T(this,zi,void 0))},oo=new WeakSet,Cc=function(){const e=x(this,it).getQueryCache().build(x(this,it),this.options);if(e===x(this,ee))return;const n=x(this,ee);T(this,ee,e),T(this,Mr,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Ba=new WeakSet,T0=function(e){Le.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(x(this,Be))}),x(this,it).getQueryCache().notify({query:x(this,ee),type:"observerResultsUpdated"})})},ap);function _v(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function yh(t,e){return _v(t,e)||t.state.dataUpdatedAt>0&&bc(t,e,e.refetchOnMount)}function bc(t,e,n){if(e.enabled!==!1){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&Df(t,e)}return!1}function gh(t,e,n,i){return n.enabled!==!1&&(t!==e||i.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&Df(t,n)}function Df(t,e){return t.isStaleByTime(e.staleTime)}function Ev(t,e){return!pc(t.getCurrentResult(),e)}var D0=R.createContext(void 0),Pv=t=>{const e=R.useContext(D0);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Ov=({client:t,children:e})=>(R.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),R.createElement(D0.Provider,{value:t},e)),I0=R.createContext(!1),Mv=()=>R.useContext(I0);I0.Provider;function zv(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Rv=R.createContext(zv()),Tv=()=>R.useContext(Rv);function Dv(t,e){return typeof t=="function"?t(...e):!!t}var Iv=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},Lv=t=>{R.useEffect(()=>{t.clearReset()},[t])},Av=({result:t,errorResetBoundary:e,throwOnError:n,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&Dv(n,[t.error,i]),Fv=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},Nv=(t,e)=>t.isLoading&&t.isFetching&&!e,$v=(t,e,n)=>(t==null?void 0:t.suspense)&&Nv(e,n),jv=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Bv(t,e,n){const i=Pv(n),r=Mv(),s=Tv(),o=i.defaultQueryOptions(t);o._optimisticResults=r?"isRestoring":"optimistic",Fv(o),Iv(o,s),Lv(s);const[a]=R.useState(()=>new e(i,o)),l=a.getOptimisticResult(o);if(R.useSyncExternalStore(R.useCallback(u=>{const c=r?()=>{}:a.subscribe(Le.batchCalls(u));return a.updateResult(),c},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),R.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),$v(o,l,r))throw jv(o,a,s);if(Av({result:l,errorResetBoundary:s,throwOnError:o.throwOnError,query:a.getCurrentQuery()}))throw l.error;return o.notifyOnChangeProps?l:a.trackResult(l)}function Uv(t,e){return Bv(t,bv,e)}var Ye=(t=>(t.NOT_STARTED="not_started",t.IN_PROGRESS="in_progress",t.PAUSED="paused",t.DONE="done",t))(Ye||{});const Hv=t=>[Ye.DONE,Ye.NOT_STARTED].includes(t),Gv=t=>[Ye.PAUSED].includes(t),Wv=t=>[Ye.IN_PROGRESS].includes(t),qv=t=>[Ye.IN_PROGRESS].includes(t),Qv=t=>{const[e,n]=R.useState(t),i=Hv(e)?()=>n(Ye.IN_PROGRESS):null,r=Gv(e)?()=>n(Ye.IN_PROGRESS):null,s=Wv(e)?()=>n(Ye.PAUSED):null,o=qv(e)?()=>n(Ye.DONE):null;return{isIdle:e===Ye.NOT_STARTED,isRunning:e===Ye.IN_PROGRESS,isPaused:e===Ye.PAUSED,isFinished:e===Ye.DONE,startGame:i,resumeGame:r,pauseGame:s,finishGame:o}};var ot=function(){return ot=Object.assign||function(e){for(var n,i=1,r=arguments.length;i0?Me(Xr,--At):0,Ur--,xe===10&&(Ur=1,al--),xe}function Vt(){return xe=At<$0?Me(Xr,At++):0,Ur++,xe===10&&(Ur=1,al++),xe}function Li(){return Me(Xr,At)}function ta(){return At}function ul(t,e){return Br(Xr,t,e)}function Ec(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function t3(t){return al=Ur=1,$0=cn(Xr=t),At=0,[]}function n3(t){return Xr="",t}function Vl(t){return F0(ul(At-1,Pc(t===91?t+2:t===40?t+1:t)))}function i3(t){for(;(xe=Li())&&xe<33;)Vt();return Ec(t)>2||Ec(xe)>3?"":" "}function r3(t,e){for(;--e&&Vt()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return ul(t,ta()+(e<6&&Li()==32&&Vt()==32))}function Pc(t){for(;Vt();)switch(xe){case t:return At;case 34:case 39:t!==34&&t!==39&&Pc(xe);break;case 40:t===41&&Pc(t);break;case 92:Vt();break}return At}function s3(t,e){for(;Vt()&&t+xe!==47+10;)if(t+xe===42+42&&Li()===47)break;return"/*"+ul(e,At-1)+"*"+Lf(t===47?t:Vt())}function o3(t){for(;!Ec(Li());)Vt();return ul(t,At)}function a3(t){return n3(na("",null,null,null,[""],t=t3(t),0,[0],t))}function na(t,e,n,i,r,s,o,a,l){for(var u=0,c=0,f=o,d=0,h=0,g=0,v=1,k=1,p=1,m=0,y="",w=r,S=s,_=i,C=y;k;)switch(g=m,m=Vt()){case 40:if(g!=108&&Me(C,f-1)==58){ea(C+=H(Vl(m),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:C+=Vl(m);break;case 9:case 10:case 13:case 32:C+=i3(g);break;case 92:C+=r3(ta()-1,7);continue;case 47:switch(Li()){case 42:case 47:hs(l3(s3(Vt(),ta()),e,n,l),l);break;default:C+="/"}break;case 123*v:a[u++]=cn(C)*p;case 125*v:case 59:case 0:switch(m){case 0:case 125:k=0;case 59+c:p==-1&&(C=H(C,/\f/g,"")),h>0&&cn(C)-f&&hs(h>32?xh(C+";",i,n,f-1,l):xh(H(C," ","")+";",i,n,f-2,l),l);break;case 59:C+=";";default:if(hs(_=wh(C,e,n,u,c,r,a,y,w=[],S=[],f,s),s),m===123)if(c===0)na(C,e,_,_,w,s,f,a,S);else switch(d===99&&Me(C,3)===110?100:d){case 100:case 108:case 109:case 115:na(t,_,_,i&&hs(wh(t,_,_,0,0,r,a,y,r,w=[],f,S),S),r,S,f,a,i?w:S);break;default:na(C,_,_,_,[""],S,0,a,S)}}u=c=h=0,v=p=1,y=C="",f=o;break;case 58:f=1+cn(C),h=g;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&e3()==125)continue}switch(C+=Lf(m),m*v){case 38:p=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(cn(C)-1)*p,p=1;break;case 64:Li()===45&&(C+=Vl(Vt())),d=Li(),c=f=cn(y=C+=o3(ta())),m++;break;case 45:g===45&&cn(C)==2&&(v=0)}}return s}function wh(t,e,n,i,r,s,o,a,l,u,c,f){for(var d=r-1,h=r===0?s:[""],g=N0(h),v=0,k=0,p=0;v0?h[m]+" "+y:H(y,/&\f/g,h[m])))&&(l[p++]=w);return ll(t,e,n,r===0?ol:a,l,u,c,f)}function l3(t,e,n,i){return ll(t,e,n,L0,Lf(Jv()),Br(t,2,-2),0,i)}function xh(t,e,n,i,r){return ll(t,e,n,If,Br(t,0,i),Br(t,i+1,-1),i,r)}function j0(t,e,n){switch(Xv(t,e)){case 5103:return K+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return K+t+t;case 4789:return bs+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return K+t+bs+t+se+t+t;case 5936:switch(Me(t,e+11)){case 114:return K+t+se+H(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return K+t+se+H(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return K+t+se+H(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return K+t+se+t+t;case 6165:return K+t+se+"flex-"+t+t;case 5187:return K+t+H(t,/(\w+).+(:[^]+)/,K+"box-$1$2"+se+"flex-$1$2")+t;case 5443:return K+t+se+"flex-item-"+H(t,/flex-|-self/g,"")+(xn(t,/flex-|baseline/)?"":se+"grid-row-"+H(t,/flex-|-self/g,""))+t;case 4675:return K+t+se+"flex-line-pack"+H(t,/align-content|flex-|-self/g,"")+t;case 5548:return K+t+se+H(t,"shrink","negative")+t;case 5292:return K+t+se+H(t,"basis","preferred-size")+t;case 6060:return K+"box-"+H(t,"-grow","")+K+t+se+H(t,"grow","positive")+t;case 4554:return K+H(t,/([^-])(transform)/g,"$1"+K+"$2")+t;case 6187:return H(H(H(t,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),t,"")+t;case 5495:case 3959:return H(t,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return H(H(t,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+t+t;case 4200:if(!xn(t,/flex-|baseline/))return se+"grid-column-align"+Br(t,e)+t;break;case 2592:case 3360:return se+H(t,"template-","")+t;case 4384:case 3616:return n&&n.some(function(i,r){return e=r,xn(i.props,/grid-\w+-end/)})?~ea(t+(n=n[e].value),"span")?t:se+H(t,"-start","")+t+se+"grid-row-span:"+(~ea(n,"span")?xn(n,/\d+/):+xn(n,/\d+/)-+xn(t,/\d+/))+";":se+H(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(i){return xn(i.props,/grid-\w+-start/)})?t:se+H(H(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return H(t,/(.+)-inline(.+)/,K+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(cn(t)-1-e>6)switch(Me(t,e+1)){case 109:if(Me(t,e+4)!==45)break;case 102:return H(t,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+bs+(Me(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ea(t,"stretch")?j0(H(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return H(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,r,s,o,a,l,u){return se+r+":"+s+u+(o?se+r+"-span:"+(a?l:+l-+s)+u:"")+t});case 4949:if(Me(t,e+6)===121)return H(t,":",":"+K)+t;break;case 6444:switch(Me(t,Me(t,14)===45?18:11)){case 120:return H(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+K+(Me(t,14)===45?"inline-":"")+"box$3$1"+K+"$2$3$1"+se+"$2box$3")+t;case 100:return H(t,":",":"+se)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return H(t,"scroll-","scroll-snap-")+t}return t}function Ia(t,e){for(var n="",i=0;i-1&&!t.return)switch(t.type){case If:t.return=j0(t.value,t.length,n);return;case A0:return Ia([Ln(t,{value:H(t.value,"@","@"+K)})],i);case ol:if(t.length)return Zv(n=t.props,function(r){switch(xn(r,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ki(Ln(t,{props:[H(r,/:(read-\w+)/,":"+bs+"$1")]})),Ki(Ln(t,{props:[r]})),_c(t,{props:vh(n,i)});break;case"::placeholder":Ki(Ln(t,{props:[H(r,/:(plac\w+)/,":"+K+"input-$1")]})),Ki(Ln(t,{props:[H(r,/:(plac\w+)/,":"+bs+"$1")]})),Ki(Ln(t,{props:[H(r,/:(plac\w+)/,se+"input-$1")]})),Ki(Ln(t,{props:[r]})),_c(t,{props:vh(n,i)});break}return""})}}var h3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hr=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Af=typeof window<"u"&&"HTMLElement"in window,p3=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),cl=Object.freeze([]),Gr=Object.freeze({});function m3(t,e,n){return n===void 0&&(n=Gr),t.theme!==n.theme&&t.theme||e||n.theme}var B0=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),y3=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,g3=/(^-|-$)/g;function kh(t){return t.replace(y3,"-").replace(g3,"")}var v3=/(a)(d)/gi,Sh=function(t){return String.fromCharCode(t+(t>25?39:97))};function Oc(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=Sh(e%52)+n;return(Sh(e%52)+n).replace(v3,"$1-$2")}var Kl,ur=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},U0=function(t){return ur(5381,t)};function w3(t){return Oc(U0(t)>>>0)}function x3(t){return t.displayName||t.name||"Component"}function Yl(t){return typeof t=="string"&&!0}var H0=typeof Symbol=="function"&&Symbol.for,G0=H0?Symbol.for("react.memo"):60115,k3=H0?Symbol.for("react.forward_ref"):60112,S3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},C3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},W0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b3=((Kl={})[k3]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kl[G0]=W0,Kl);function Ch(t){return("type"in(e=t)&&e.type.$$typeof)===G0?W0:"$$typeof"in t?b3[t.$$typeof]:S3;var e}var _3=Object.defineProperty,E3=Object.getOwnPropertyNames,bh=Object.getOwnPropertySymbols,P3=Object.getOwnPropertyDescriptor,O3=Object.getPrototypeOf,_h=Object.prototype;function q0(t,e,n){if(typeof e!="string"){if(_h){var i=O3(e);i&&i!==_h&&q0(t,i,n)}var r=E3(e);bh&&(r=r.concat(bh(e)));for(var s=Ch(t),o=Ch(e),a=0;a0?" Args: ".concat(e.join(", ")):""))}var M3=function(){function t(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return t.prototype.indexOfGroup=function(e){for(var n=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,r=i.length,s=r;e>=s;)if((s<<=1)<0)throw mo(16,"".concat(e));this.groupSizes=new Uint32Array(s),this.groupSizes.set(i),this.length=s;for(var o=r;o=this.length||this.groupSizes[e]===0)return n;for(var i=this.groupSizes[e],r=this.indexOfGroup(e),s=r+i,o=r;o=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[e]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.prototype.getRule=function(e){return e0&&(k+="".concat(p,","))}),l+="".concat(g).concat(v,'{content:"').concat(k,'"}').concat(`/*!sc*/
-`)},c=0;c0?".".concat(e):d},c=l.slice();c.push(function(d){d.type===ol&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(j3,n).replace(i,u))}),o.prefix&&c.push(d3),c.push(u3);var f=function(d,h,g,v){h===void 0&&(h=""),g===void 0&&(g=""),v===void 0&&(v="&"),e=v,n=h,i=new RegExp("\\".concat(n,"\\b"),"g");var k=d.replace(B3,""),p=a3(g||h?"".concat(g," ").concat(h," { ").concat(k," }"):k);o.namespace&&(p=K0(p,o.namespace));var m=[];return Ia(p,c3(c.concat(f3(function(y){return m.push(y)})))),m};return f.hash=l.length?l.reduce(function(d,h){return h.name||mo(15),ur(d,h.name)},5381).toString():"",f}var H3=new V0,zc=U3(),Y0=_e.createContext({shouldForwardProp:void 0,styleSheet:H3,stylis:zc});Y0.Consumer;_e.createContext(void 0);function Oh(){return R.useContext(Y0)}var G3=function(){function t(e,n){var i=this;this.inject=function(r,s){s===void 0&&(s=zc);var o=i.name+s.hash;r.hasNameForId(i.id,o)||r.insertRules(i.id,o,s(i.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=n,Nf(this,function(){throw mo(12,String(i.name))})}return t.prototype.getName=function(e){return e===void 0&&(e=zc),this.name+e.hash},t}(),W3=function(t){return t>="A"&&t<="Z"};function Mh(t){for(var e="",n=0;n>>0);if(!n.hasNameForId(this.componentId,o)){var a=i(s,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,a)}r=Ci(r,o),this.staticRulesId=o}else{for(var l=ur(this.baseHash,i.hash),u="",c=0;c>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,i(u,".".concat(h),void 0,this.componentId)),r=Ci(r,h)}}return r},t}(),J0=_e.createContext(void 0);J0.Consumer;var Zl={};function K3(t,e,n){var i=Ff(t),r=t,s=!Yl(t),o=e.attrs,a=o===void 0?cl:o,l=e.componentId,u=l===void 0?function(y,w){var S=typeof y!="string"?"sc":kh(y);Zl[S]=(Zl[S]||0)+1;var _="".concat(S,"-").concat(w3("6.0.8"+S+Zl[S]));return w?"".concat(w,"-").concat(_):_}(e.displayName,e.parentComponentId):l,c=e.displayName;c===void 0&&function(y){return Yl(y)?"styled.".concat(y):"Styled(".concat(x3(y),")")}(t);var f=e.displayName&&e.componentId?"".concat(kh(e.displayName),"-").concat(e.componentId):e.componentId||u,d=i&&r.attrs?r.attrs.concat(a).filter(Boolean):a,h=e.shouldForwardProp;if(i&&r.shouldForwardProp){var g=r.shouldForwardProp;if(e.shouldForwardProp){var v=e.shouldForwardProp;h=function(y,w){return g(y,w)&&v(y,w)}}else h=g}var k=new V3(n,f,i?r.componentStyle:void 0);function p(y,w){return function(S,_,C){var z=S.attrs,B=S.componentStyle,U=S.defaultProps,we=S.foldedComponentIds,St=S.styledComponentId,Nt=S.target,yi=_e.useContext(J0),gi=Oh(),mn=S.shouldForwardProp||gi.shouldForwardProp,nt=function(qe,Qe,Ct){for(var De,Ve=ot(ot({},Qe),{className:void 0,theme:Ct}),b=0;b(t.FB="facebook",t.DOCKER="docker",t.REACT="react",t.RUST="rust",t.SNAPCHAT="snapchat",t.TELEGRAM="telegram",t.LINUX="linux",t.GITHUB="github",t.REDHAT="redhat",t.PYTHON="python",t.APP_STORE="app_store",t.TIKTOK="tiktok",t.JAVA="java",t.GITLAB="gitlab",t.GOLANG="golang",t.CHROME="chrome",t))(Ee||{});const w4=t=>({[Ee.FB]:t4,[Ee.DOCKER]:e4,[Ee.REACT]:l4,[Ee.RUST]:c4,[Ee.SNAPCHAT]:f4,[Ee.TELEGRAM]:d4,[Ee.LINUX]:o4,[Ee.GITHUB]:n4,[Ee.REDHAT]:u4,[Ee.PYTHON]:a4,[Ee.APP_STORE]:Z3,[Ee.TIKTOK]:h4,[Ee.JAVA]:s4,[Ee.GITLAB]:i4,[Ee.GOLANG]:r4,[Ee.CHROME]:J3})[t],x4=()=>v4,ps=112,k4=86,S4=72,C4=8,b4=({iconName:t,isClosed:e,animation:n,bgColor:i,highlightColor:r,iconColor:s,onClick:o})=>{const a=w4(t),l=x4();return F.jsx(rm,{onClick:o,children:F.jsxs(_4,{isClosed:e,children:[F.jsx(E4,{bgColor:i,highlightColor:r,children:F.jsx(Dh,{animation:n,children:F.jsx(a,{size:k4,color:s})})}),F.jsx(P4,{bgColor:i,highlightColor:r,children:F.jsx(Dh,{animation:n,children:F.jsx(l,{size:S4,color:s})})})]})})},rm=tt.div`
- width: ${ps}px;
- height: ${ps}px;
- max-width: ${ps}px;
- max-height: ${ps}px;
-
- border-radius: ${C4}px;
+`,Ao=16,hv=({reverseOrder:t,position:e="top-center",toastOptions:n,gutter:i,children:r,containerStyle:s,containerClassName:o})=>{let{toasts:a,handlers:l}=B2(n);return T.createElement("div",{style:{position:"fixed",zIndex:9999,top:Ao,left:Ao,right:Ao,bottom:Ao,pointerEvents:"none",...s},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||e,f=l.calculateOffset(u,{reverseOrder:t,gutter:i,defaultPosition:e}),d=fv(c,f);return T.createElement(cv,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?dv:"",style:d},u.type==="custom"?Ta(u.message,u):r?r(u):T.createElement(uv,{toast:u,position:c}))}))},Ia=gt,mo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Br=typeof window>"u"||"Deno"in window;function Rt(){}function pv(t,e){return typeof t=="function"?t(e):t}function yc(t){return typeof t=="number"&&t>=0&&t!==1/0}function R0(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ph(t,e){const{type:n="all",exact:i,fetchStatus:r,predicate:s,queryKey:o,stale:a}=t;if(o){if(i){if(e.queryHash!==Lf(o,e.options))return!1}else if(!Vs(e.queryKey,o))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||typeof r<"u"&&r!==e.state.fetchStatus||s&&!s(e))}function mh(t,e){const{exact:n,status:i,predicate:r,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(Ws(e.options.mutationKey)!==Ws(s))return!1}else if(!Vs(e.options.mutationKey,s))return!1}return!(i&&e.state.status!==i||r&&!r(e))}function Lf(t,e){return((e==null?void 0:e.queryKeyHashFn)||Ws)(t)}function Ws(t){return JSON.stringify(t,(e,n)=>vc(n)?Object.keys(n).sort().reduce((i,r)=>(i[r]=n[r],i),{}):n)}function Vs(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!Vs(t[n],e[n])):!1}function z0(t,e){if(t===e)return t;const n=yh(t)&&yh(e);if(n||vc(t)&&vc(e)){const i=n?t.length:Object.keys(t).length,r=n?e:Object.keys(e),s=r.length,o=n?[]:{};let a=0;for(let l=0;l"u")return!0;const n=e.prototype;return!(!gh(n)||!n.hasOwnProperty("isPrototypeOf"))}function gh(t){return Object.prototype.toString.call(t)==="[object Object]"}function T0(t){return new Promise(e=>{setTimeout(e,t)})}function vh(t){T0(0).then(t)}function wc(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?z0(t,e):e}function mv(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function yv(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var _i,Hn,wr,rp,gv=(rp=class extends mo{constructor(){super();F(this,_i,void 0);F(this,Hn,void 0);F(this,wr,void 0);I(this,wr,e=>{if(!Br&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,Hn)||this.setEventListener(x(this,wr))}onUnsubscribe(){var e;this.hasListeners()||((e=x(this,Hn))==null||e.call(this),I(this,Hn,void 0))}setEventListener(e){var n;I(this,wr,e),(n=x(this,Hn))==null||n.call(this),I(this,Hn,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){x(this,_i)!==e&&(I(this,_i,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof x(this,_i)=="boolean"?x(this,_i):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},_i=new WeakMap,Hn=new WeakMap,wr=new WeakMap,rp),Da=new gv,xr,Gn,Sr,sp,vv=(sp=class extends mo{constructor(){super();F(this,xr,!0);F(this,Gn,void 0);F(this,Sr,void 0);I(this,Sr,e=>{if(!Br&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){x(this,Gn)||this.setEventListener(x(this,Sr))}onUnsubscribe(){var e;this.hasListeners()||((e=x(this,Gn))==null||e.call(this),I(this,Gn,void 0))}setEventListener(e){var n;I(this,Sr,e),(n=x(this,Gn))==null||n.call(this),I(this,Gn,e(this.setOnline.bind(this)))}setOnline(e){x(this,xr)!==e&&(I(this,xr,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return x(this,xr)}},xr=new WeakMap,Gn=new WeakMap,Sr=new WeakMap,sp),La=new vv;function wv(t){return Math.min(1e3*2**t,3e4)}function ll(t){return(t??"online")==="online"?La.isOnline():!0}var I0=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Yl(t){return t instanceof I0}function D0(t){let e=!1,n=0,i=!1,r,s,o;const a=new Promise((S,p)=>{s=S,o=p}),l=S=>{var p;i||(h(new I0(S)),(p=t.abort)==null||p.call(t))},u=()=>{e=!0},c=()=>{e=!1},f=()=>!Da.isFocused()||t.networkMode!=="always"&&!La.isOnline(),d=S=>{var p;i||(i=!0,(p=t.onSuccess)==null||p.call(t,S),r==null||r(),s(S))},h=S=>{var p;i||(i=!0,(p=t.onError)==null||p.call(t,S),r==null||r(),o(S))},g=()=>new Promise(S=>{var p;r=m=>{const y=i||!f();return y&&S(m),y},(p=t.onPause)==null||p.call(t)}).then(()=>{var S;r=void 0,i||(S=t.onContinue)==null||S.call(t)}),v=()=>{if(i)return;let S;try{S=t.fn()}catch(p){S=Promise.reject(p)}Promise.resolve(S).then(d).catch(p=>{var _;if(i)return;const m=t.retry??(Br?0:3),y=t.retryDelay??wv,w=typeof y=="function"?y(n,p):y,k=m===!0||typeof m=="number"&&n{if(f())return g()}).then(()=>{e?h(p):v()})})};return ll(t.networkMode)?v():g().then(v),{promise:a,cancel:l,continue:()=>(r==null?void 0:r())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}function xv(){let t=[],e=0,n=c=>{c()},i=c=>{c()};const r=c=>{let f;e++;try{f=c()}finally{e--,e||a()}return f},s=c=>{e?t.push(c):vh(()=>{n(c)})},o=c=>(...f)=>{s(()=>{c(...f)})},a=()=>{const c=t;t=[],c.length&&vh(()=>{i(()=>{c.forEach(f=>{n(f)})})})};return{batch:r,batchCalls:o,schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{i=c}}}var Ne=xv(),Ei,op,L0=(op=class{constructor(){F(this,Ei,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yc(this.gcTime)&&I(this,Ei,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Br?1/0:5*60*1e3))}clearGcTimeout(){x(this,Ei)&&(clearTimeout(x(this,Ei)),I(this,Ei,void 0))}},Ei=new WeakMap,op),kr,Cr,Pt,Wn,Ot,Me,Xs,Pi,br,ta,Wt,xn,ap,Sv=(ap=class extends L0{constructor(e){super();F(this,br);F(this,Wt);F(this,kr,void 0);F(this,Cr,void 0);F(this,Pt,void 0);F(this,Wn,void 0);F(this,Ot,void 0);F(this,Me,void 0);F(this,Xs,void 0);F(this,Pi,void 0);I(this,Pi,!1),I(this,Xs,e.defaultOptions),V(this,br,ta).call(this,e.options),I(this,Me,[]),I(this,Pt,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,I(this,kr,e.state||kv(this.options)),this.state=x(this,kr),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!x(this,Me).length&&this.state.fetchStatus==="idle"&&x(this,Pt).remove(this)}setData(e,n){const i=wc(this.state.data,e,this.options);return V(this,Wt,xn).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){V(this,Wt,xn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i;const n=x(this,Wn);return(i=x(this,Ot))==null||i.cancel(e),n?n.then(Rt).catch(Rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,kr))}isActive(){return x(this,Me).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||x(this,Me).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!R0(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=x(this,Me).find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=x(this,Ot))==null||n.continue()}onOnline(){var n;const e=x(this,Me).find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=x(this,Ot))==null||n.continue()}addObserver(e){x(this,Me).includes(e)||(x(this,Me).push(e),this.clearGcTimeout(),x(this,Pt).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){x(this,Me).includes(e)&&(I(this,Me,x(this,Me).filter(n=>n!==e)),x(this,Me).length||(x(this,Ot)&&(x(this,Pi)?x(this,Ot).cancel({revert:!0}):x(this,Ot).cancelRetry()),this.scheduleGc()),x(this,Pt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return x(this,Me).length}invalidate(){this.state.isInvalidated||V(this,Wt,xn).call(this,{type:"invalidate"})}fetch(e,n){var u,c,f,d;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,Wn))return(u=x(this,Ot))==null||u.continueRetry(),x(this,Wn)}if(e&&V(this,br,ta).call(this,e),!this.options.queryFn){const h=x(this,Me).find(g=>g.options.queryFn);h&&V(this,br,ta).call(this,h.options)}const i=new AbortController,r={queryKey:this.queryKey,meta:this.meta},s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(I(this,Pi,!0),i.signal)})};s(r);const o=()=>this.options.queryFn?(I(this,Pi,!1),this.options.persister?this.options.persister(this.options.queryFn,r,this):this.options.queryFn(r)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};s(a),(c=this.options.behavior)==null||c.onFetch(a,this),I(this,Cr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&V(this,Wt,xn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var g,v,S,p;Yl(h)&&h.silent||V(this,Wt,xn).call(this,{type:"error",error:h}),Yl(h)||((v=(g=x(this,Pt).config).onError)==null||v.call(g,h,this),(p=(S=x(this,Pt).config).onSettled)==null||p.call(S,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return I(this,Ot,D0({fn:a.fetchFn,abort:i.abort.bind(i),onSuccess:h=>{var g,v,S,p;if(typeof h>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(v=(g=x(this,Pt).config).onSuccess)==null||v.call(g,h,this),(p=(S=x(this,Pt).config).onSettled)==null||p.call(S,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,g)=>{V(this,Wt,xn).call(this,{type:"failed",failureCount:h,error:g})},onPause:()=>{V(this,Wt,xn).call(this,{type:"pause"})},onContinue:()=>{V(this,Wt,xn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),I(this,Wn,x(this,Ot).promise),x(this,Wn)}},kr=new WeakMap,Cr=new WeakMap,Pt=new WeakMap,Wn=new WeakMap,Ot=new WeakMap,Me=new WeakMap,Xs=new WeakMap,Pi=new WeakMap,br=new WeakSet,ta=function(e){this.options={...x(this,Xs),...e},this.updateGcTime(this.options.gcTime)},Wt=new WeakSet,xn=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:ll(this.options.networkMode)?"fetching":"paused",...!i.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...i,data:e.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Yl(r)&&r.revert&&x(this,Cr)?{...x(this,Cr),fetchStatus:"idle"}:{...i,error:r,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),Ne.batch(()=>{x(this,Me).forEach(i=>{i.onQueryUpdate()}),x(this,Pt).notify({query:this,type:"updated",action:e})})},ap);function kv(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=typeof e<"u",i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ln,lp,Cv=(lp=class extends mo{constructor(e={}){super();F(this,ln,void 0);this.config=e,I(this,ln,new Map)}build(e,n,i){const r=n.queryKey,s=n.queryHash??Lf(r,n);let o=this.get(s);return o||(o=new Sv({cache:this,queryKey:r,queryHash:s,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){x(this,ln).has(e.queryHash)||(x(this,ln).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=x(this,ln).get(e.queryHash);n&&(e.destroy(),n===e&&x(this,ln).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ne.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return x(this,ln).get(e)}getAll(){return[...x(this,ln).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>ph(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>ph(e,i)):n}notify(e){Ne.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Ne.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ne.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ln=new WeakMap,lp),un,Zs,ht,_r,cn,An,up,bv=(up=class extends L0{constructor(e){super();F(this,cn);F(this,un,void 0);F(this,Zs,void 0);F(this,ht,void 0);F(this,_r,void 0);this.mutationId=e.mutationId,I(this,Zs,e.defaultOptions),I(this,ht,e.mutationCache),I(this,un,[]),this.state=e.state||_v(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...x(this,Zs),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){x(this,un).includes(e)||(x(this,un).push(e),this.clearGcTimeout(),x(this,ht).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){I(this,un,x(this,un).filter(n=>n!==e)),this.scheduleGc(),x(this,ht).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){x(this,un).length||(this.state.status==="pending"?this.scheduleGc():x(this,ht).remove(this))}continue(){var e;return((e=x(this,_r))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var r,s,o,a,l,u,c,f,d,h,g,v,S,p,m,y,w,k,_,C;const n=()=>(I(this,_r,D0({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(R,B)=>{V(this,cn,An).call(this,{type:"failed",failureCount:R,error:B})},onPause:()=>{V(this,cn,An).call(this,{type:"pause"})},onContinue:()=>{V(this,cn,An).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),x(this,_r).promise),i=this.state.status==="pending";try{if(!i){V(this,cn,An).call(this,{type:"pending",variables:e}),await((s=(r=x(this,ht).config).onMutate)==null?void 0:s.call(r,e,this));const B=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,e));B!==this.state.context&&V(this,cn,An).call(this,{type:"pending",context:B,variables:e})}const R=await n();return await((u=(l=x(this,ht).config).onSuccess)==null?void 0:u.call(l,R,e,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,R,e,this.state.context)),await((h=(d=x(this,ht).config).onSettled)==null?void 0:h.call(d,R,null,this.state.variables,this.state.context,this)),await((v=(g=this.options).onSettled)==null?void 0:v.call(g,R,null,e,this.state.context)),V(this,cn,An).call(this,{type:"success",data:R}),R}catch(R){try{throw await((p=(S=x(this,ht).config).onError)==null?void 0:p.call(S,R,e,this.state.context,this)),await((y=(m=this.options).onError)==null?void 0:y.call(m,R,e,this.state.context)),await((k=(w=x(this,ht).config).onSettled)==null?void 0:k.call(w,void 0,R,this.state.variables,this.state.context,this)),await((C=(_=this.options).onSettled)==null?void 0:C.call(_,void 0,R,e,this.state.context)),R}finally{V(this,cn,An).call(this,{type:"error",error:R})}}}},un=new WeakMap,Zs=new WeakMap,ht=new WeakMap,_r=new WeakMap,cn=new WeakSet,An=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ll(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ne.batch(()=>{x(this,un).forEach(i=>{i.onMutationUpdate(e)}),x(this,ht).notify({mutation:this,type:"updated",action:e})})},up);function _v(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Mt,Js,Oi,cp,Ev=(cp=class extends mo{constructor(e={}){super();F(this,Mt,void 0);F(this,Js,void 0);F(this,Oi,void 0);this.config=e,I(this,Mt,[]),I(this,Js,0)}build(e,n,i){const r=new bv({mutationCache:this,mutationId:++vo(this,Js)._,options:e.defaultMutationOptions(n),state:i});return this.add(r),r}add(e){x(this,Mt).push(e),this.notify({type:"added",mutation:e})}remove(e){I(this,Mt,x(this,Mt).filter(n=>n!==e)),this.notify({type:"removed",mutation:e})}clear(){Ne.batch(()=>{x(this,Mt).forEach(e=>{this.remove(e)})})}getAll(){return x(this,Mt)}find(e){const n={exact:!0,...e};return x(this,Mt).find(i=>mh(n,i))}findAll(e={}){return x(this,Mt).filter(n=>mh(e,n))}notify(e){Ne.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){return I(this,Oi,(x(this,Oi)??Promise.resolve()).then(()=>{const e=x(this,Mt).filter(n=>n.state.isPaused);return Ne.batch(()=>e.reduce((n,i)=>n.then(()=>i.continue().catch(Rt)),Promise.resolve()))}).then(()=>{I(this,Oi,void 0)})),x(this,Oi)}},Mt=new WeakMap,Js=new WeakMap,Oi=new WeakMap,cp);function Pv(t){return{onFetch:(e,n)=>{const i=async()=>{var g,v,S,p,m;const r=e.options,s=(S=(v=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:v.fetchMore)==null?void 0:S.direction,o=((p=e.state.data)==null?void 0:p.pages)||[],a=((m=e.state.data)==null?void 0:m.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(e.signal.aborted?u=!0:e.signal.addEventListener("abort",()=>{u=!0}),e.signal)})},f=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),d=async(y,w,k)=>{if(u)return Promise.reject();if(w==null&&y.pages.length)return Promise.resolve(y);const _={queryKey:e.queryKey,pageParam:w,direction:k?"backward":"forward",meta:e.options.meta};c(_);const C=await f(_),{maxPages:R}=e.options,B=k?yv:mv;return{pages:B(y.pages,C,R),pageParams:B(y.pageParams,w,R)}};let h;if(s&&o.length){const y=s==="backward",w=y?Ov:wh,k={pages:o,pageParams:a},_=w(r,k);h=await d(k,_,y)}else{h=await d(l,a[0]??r.initialPageParam);const y=t??o.length;for(let w=1;w{var r,s;return(s=(r=e.options).persister)==null?void 0:s.call(r,i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=i}}}function wh(t,{pages:e,pageParams:n}){const i=e.length-1;return t.getNextPageParam(e[i],e,n[i],n)}function Ov(t,{pages:e,pageParams:n}){var i;return(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n)}var be,Vn,qn,Er,Pr,Qn,Or,Mr,fp,Mv=(fp=class{constructor(t={}){F(this,be,void 0);F(this,Vn,void 0);F(this,qn,void 0);F(this,Er,void 0);F(this,Pr,void 0);F(this,Qn,void 0);F(this,Or,void 0);F(this,Mr,void 0);I(this,be,t.queryCache||new Cv),I(this,Vn,t.mutationCache||new Ev),I(this,qn,t.defaultOptions||{}),I(this,Er,new Map),I(this,Pr,new Map),I(this,Qn,0)}mount(){vo(this,Qn)._++,x(this,Qn)===1&&(I(this,Or,Da.subscribe(()=>{Da.isFocused()&&(this.resumePausedMutations(),x(this,be).onFocus())})),I(this,Mr,La.subscribe(()=>{La.isOnline()&&(this.resumePausedMutations(),x(this,be).onOnline())})))}unmount(){var t,e;vo(this,Qn)._--,x(this,Qn)===0&&((t=x(this,Or))==null||t.call(this),I(this,Or,void 0),(e=x(this,Mr))==null||e.call(this),I(this,Mr,void 0))}isFetching(t){return x(this,be).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return x(this,Vn).findAll({...t,status:"pending"}).length}getQueryData(t){var e;return(e=x(this,be).find({queryKey:t}))==null?void 0:e.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);return e?Promise.resolve(e):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=x(this,be).find({queryKey:t}),r=i==null?void 0:i.state.data,s=pv(e,r);if(typeof s>"u")return;const o=this.defaultQueryOptions({queryKey:t});return x(this,be).build(this,o).setData(s,{...n,manual:!0})}setQueriesData(t,e,n){return Ne.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var e;return(e=x(this,be).find({queryKey:t}))==null?void 0:e.state}removeQueries(t){const e=x(this,be);Ne.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=x(this,be),i={type:"active",...t};return Ne.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries(i,e)))}cancelQueries(t={},e={}){const n={revert:!0,...e},i=Ne.batch(()=>x(this,be).findAll(t).map(r=>r.cancel(n)));return Promise.all(i).then(Rt).catch(Rt)}invalidateQueries(t={},e={}){return Ne.batch(()=>{if(x(this,be).findAll(t).forEach(i=>{i.invalidate()}),t.refetchType==="none")return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){const n={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},i=Ne.batch(()=>x(this,be).findAll(t).filter(r=>!r.isDisabled()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(Rt)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(Rt)}fetchQuery(t){const e=this.defaultQueryOptions(t);typeof e.retry>"u"&&(e.retry=!1);const n=x(this,be).build(this,e);return n.isStaleByTime(e.staleTime)?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Rt).catch(Rt)}fetchInfiniteQuery(t){return t.behavior=Pv(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Rt).catch(Rt)}resumePausedMutations(){return x(this,Vn).resumePausedMutations()}getQueryCache(){return x(this,be)}getMutationCache(){return x(this,Vn)}getDefaultOptions(){return x(this,qn)}setDefaultOptions(t){I(this,qn,t)}setQueryDefaults(t,e){x(this,Er).set(Ws(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...x(this,Er).values()];let n={};return e.forEach(i=>{Vs(t,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(t,e){x(this,Pr).set(Ws(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...x(this,Pr).values()];let n={};return e.forEach(i=>{Vs(t,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const e={...x(this,qn).queries,...(t==null?void 0:t.queryKey)&&this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Lf(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...x(this,qn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){x(this,be).clear(),x(this,Vn).clear()}},be=new WeakMap,Vn=new WeakMap,qn=new WeakMap,Er=new WeakMap,Pr=new WeakMap,Qn=new WeakMap,Or=new WeakMap,Mr=new WeakMap,fp),st,ee,Rr,Ge,Mi,zr,fn,eo,Tr,Ir,Ri,zi,Kn,Ti,Ii,hs,to,xc,no,Sc,io,kc,ro,Cc,so,bc,oo,_c,ao,Ec,Ga,A0,dp,Rv=(dp=class extends mo{constructor(e,n){super();F(this,Ii);F(this,to);F(this,no);F(this,io);F(this,ro);F(this,so);F(this,oo);F(this,ao);F(this,Ga);F(this,st,void 0);F(this,ee,void 0);F(this,Rr,void 0);F(this,Ge,void 0);F(this,Mi,void 0);F(this,zr,void 0);F(this,fn,void 0);F(this,eo,void 0);F(this,Tr,void 0);F(this,Ir,void 0);F(this,Ri,void 0);F(this,zi,void 0);F(this,Kn,void 0);F(this,Ti,void 0);I(this,ee,void 0),I(this,Rr,void 0),I(this,Ge,void 0),I(this,Ti,new Set),I(this,st,e),this.options=n,I(this,fn,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(x(this,ee).addObserver(this),xh(x(this,ee),this.options)&&V(this,Ii,hs).call(this),V(this,ro,Cc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pc(x(this,ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pc(x(this,ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,V(this,so,bc).call(this),V(this,oo,_c).call(this),x(this,ee).removeObserver(this)}setOptions(e,n){const i=this.options,r=x(this,ee);if(this.options=x(this,st).defaultQueryOptions(e),gc(i,this.options)||x(this,st).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,ee),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),V(this,ao,Ec).call(this);const s=this.hasListeners();s&&Sh(x(this,ee),r,this.options,i)&&V(this,Ii,hs).call(this),this.updateResult(n),s&&(x(this,ee)!==r||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&V(this,to,xc).call(this);const o=V(this,no,Sc).call(this);s&&(x(this,ee)!==r||this.options.enabled!==i.enabled||o!==x(this,Kn))&&V(this,io,kc).call(this,o)}getOptimisticResult(e){const n=x(this,st).getQueryCache().build(x(this,st),e),i=this.createResult(n,e);return Tv(this,i)&&(I(this,Ge,i),I(this,zr,this.options),I(this,Mi,x(this,ee).state)),i}getCurrentResult(){return x(this,Ge)}trackResult(e){const n={};return Object.keys(e).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(x(this,Ti).add(i),e[i])})}),n}getCurrentQuery(){return x(this,ee)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=x(this,st).defaultQueryOptions(e),i=x(this,st).getQueryCache().build(x(this,st),n);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,n))}fetch(e){return V(this,Ii,hs).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,Ge)))}createResult(e,n){var _;const i=x(this,ee),r=this.options,s=x(this,Ge),o=x(this,Mi),a=x(this,zr),u=e!==i?e.state:x(this,Rr),{state:c}=e;let{error:f,errorUpdatedAt:d,fetchStatus:h,status:g}=c,v=!1,S;if(n._optimisticResults){const C=this.hasListeners(),R=!C&&xh(e,n),B=C&&Sh(e,i,n,r);(R||B)&&(h=ll(e.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(g="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(s&&c.data===(o==null?void 0:o.data)&&n.select===x(this,eo))S=x(this,Tr);else try{I(this,eo,n.select),S=n.select(c.data),S=wc(s==null?void 0:s.data,S,n),I(this,Tr,S),I(this,fn,null)}catch(C){I(this,fn,C)}else S=c.data;if(typeof n.placeholderData<"u"&&typeof S>"u"&&g==="pending"){let C;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))C=s.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((_=x(this,Ir))==null?void 0:_.state.data,x(this,Ir)):n.placeholderData,n.select&&typeof C<"u")try{C=n.select(C),I(this,fn,null)}catch(R){I(this,fn,R)}typeof C<"u"&&(g="success",S=wc(s==null?void 0:s.data,C,n),v=!0)}x(this,fn)&&(f=x(this,fn),S=x(this,Tr),d=Date.now(),g="error");const p=h==="fetching",m=g==="pending",y=g==="error",w=m&&p;return{status:g,fetchStatus:h,isPending:m,isSuccess:g==="success",isError:y,isInitialLoading:w,isLoading:w,data:S,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:d,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:p,isRefetching:p&&!m,isLoadingError:y&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:v,isRefetchError:y&&c.dataUpdatedAt!==0,isStale:Af(e,n),refetch:this.refetch}}updateResult(e){const n=x(this,Ge),i=this.createResult(x(this,ee),this.options);if(I(this,Mi,x(this,ee).state),I(this,zr,this.options),gc(i,n))return;x(this,Mi).data!==void 0&&I(this,Ir,x(this,ee)),I(this,Ge,i);const r={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!x(this,Ti).size)return!0;const l=new Set(a??x(this,Ti));return this.options.throwOnError&&l.add("error"),Object.keys(x(this,Ge)).some(u=>{const c=u;return x(this,Ge)[c]!==n[c]&&l.has(c)})};(e==null?void 0:e.listeners)!==!1&&s()&&(r.listeners=!0),V(this,Ga,A0).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&V(this,ro,Cc).call(this)}},st=new WeakMap,ee=new WeakMap,Rr=new WeakMap,Ge=new WeakMap,Mi=new WeakMap,zr=new WeakMap,fn=new WeakMap,eo=new WeakMap,Tr=new WeakMap,Ir=new WeakMap,Ri=new WeakMap,zi=new WeakMap,Kn=new WeakMap,Ti=new WeakMap,Ii=new WeakSet,hs=function(e){V(this,ao,Ec).call(this);let n=x(this,ee).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Rt)),n},to=new WeakSet,xc=function(){if(V(this,so,bc).call(this),Br||x(this,Ge).isStale||!yc(this.options.staleTime))return;const n=R0(x(this,Ge).dataUpdatedAt,this.options.staleTime)+1;I(this,Ri,setTimeout(()=>{x(this,Ge).isStale||this.updateResult()},n))},no=new WeakSet,Sc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,ee)):this.options.refetchInterval)??!1},io=new WeakSet,kc=function(e){V(this,oo,_c).call(this),I(this,Kn,e),!(Br||this.options.enabled===!1||!yc(x(this,Kn))||x(this,Kn)===0)&&I(this,zi,setInterval(()=>{(this.options.refetchIntervalInBackground||Da.isFocused())&&V(this,Ii,hs).call(this)},x(this,Kn)))},ro=new WeakSet,Cc=function(){V(this,to,xc).call(this),V(this,io,kc).call(this,V(this,no,Sc).call(this))},so=new WeakSet,bc=function(){x(this,Ri)&&(clearTimeout(x(this,Ri)),I(this,Ri,void 0))},oo=new WeakSet,_c=function(){x(this,zi)&&(clearInterval(x(this,zi)),I(this,zi,void 0))},ao=new WeakSet,Ec=function(){const e=x(this,st).getQueryCache().build(x(this,st),this.options);if(e===x(this,ee))return;const n=x(this,ee);I(this,ee,e),I(this,Rr,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Ga=new WeakSet,A0=function(e){Ne.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(x(this,Ge))}),x(this,st).getQueryCache().notify({query:x(this,ee),type:"observerResultsUpdated"})})},dp);function zv(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function xh(t,e){return zv(t,e)||t.state.dataUpdatedAt>0&&Pc(t,e,e.refetchOnMount)}function Pc(t,e,n){if(e.enabled!==!1){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&Af(t,e)}return!1}function Sh(t,e,n,i){return n.enabled!==!1&&(t!==e||i.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&Af(t,n)}function Af(t,e){return t.isStaleByTime(e.staleTime)}function Tv(t,e){return!gc(t.getCurrentResult(),e)}var F0=T.createContext(void 0),Iv=t=>{const e=T.useContext(F0);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Dv=({client:t,children:e})=>(T.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),T.createElement(F0.Provider,{value:t},e)),N0=T.createContext(!1),Lv=()=>T.useContext(N0);N0.Provider;function Av(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Fv=T.createContext(Av()),Nv=()=>T.useContext(Fv);function $v(t,e){return typeof t=="function"?t(...e):!!t}var jv=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},Bv=t=>{T.useEffect(()=>{t.clearReset()},[t])},Uv=({result:t,errorResetBoundary:e,throwOnError:n,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&$v(n,[t.error,i]),Hv=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},Gv=(t,e)=>t.isLoading&&t.isFetching&&!e,Wv=(t,e,n)=>(t==null?void 0:t.suspense)&&Gv(e,n),Vv=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function qv(t,e,n){const i=Iv(n),r=Lv(),s=Nv(),o=i.defaultQueryOptions(t);o._optimisticResults=r?"isRestoring":"optimistic",Hv(o),jv(o,s),Bv(s);const[a]=T.useState(()=>new e(i,o)),l=a.getOptimisticResult(o);if(T.useSyncExternalStore(T.useCallback(u=>{const c=r?()=>{}:a.subscribe(Ne.batchCalls(u));return a.updateResult(),c},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),T.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),Wv(o,l,r))throw Vv(o,a,s);if(Uv({result:l,errorResetBoundary:s,throwOnError:o.throwOnError,query:a.getCurrentQuery()}))throw l.error;return o.notifyOnChangeProps?l:a.trackResult(l)}function Qv(t,e){return qv(t,Rv,e)}var _e=(t=>(t.NOT_STARTED="not_started",t.IN_PROGRESS="in_progress",t.ABOUT_TO_RESTART="about_to_restart",t.PAUSED="paused",t.DONE="done",t))(_e||{});const Kv=t=>[_e.DONE,_e.NOT_STARTED,_e.ABOUT_TO_RESTART].includes(t),Yv=t=>[_e.PAUSED].includes(t),Xv=t=>[_e.IN_PROGRESS].includes(t),Zv=t=>[_e.IN_PROGRESS].includes(t),Jv=t=>[_e.IN_PROGRESS].includes(t),e3=t=>{const[e,n]=T.useState(t),i=Kv(e)?()=>n(_e.IN_PROGRESS):null,r=Yv(e)?()=>n(_e.IN_PROGRESS):null,s=Xv(e)?()=>n(_e.PAUSED):null,o=Zv(e)?()=>n(_e.DONE):null,a=Jv(e)?()=>n(_e.ABOUT_TO_RESTART):null;return{isIdle:e===_e.NOT_STARTED,isRunning:e===_e.IN_PROGRESS,isPaused:e===_e.PAUSED,isFinished:e===_e.DONE,isAboutToRestart:e===_e.ABOUT_TO_RESTART,startGame:i,resumeGame:r,pauseGame:s,finishGame:o,prepareToRestart:a}};var lt=function(){return lt=Object.assign||function(e){for(var n,i=1,r=arguments.length;i0?ze(Zr,--Nt):0,Hr--,Se===10&&(Hr=1,cl--),Se}function Yt(){return Se=Nt2||Mc(Se)>3?"":" "}function f3(t,e){for(;--e&&Yt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return dl(t,ia()+(e<6&&Ai()==32&&Yt()==32))}function Rc(t){for(;Yt();)switch(Se){case t:return Nt;case 34:case 39:t!==34&&t!==39&&Rc(Se);break;case 40:t===41&&Rc(t);break;case 92:Yt();break}return Nt}function d3(t,e){for(;Yt()&&t+Se!==47+10;)if(t+Se===42+42&&Ai()===47)break;return"/*"+dl(e,Nt-1)+"*"+Nf(t===47?t:Yt())}function h3(t){for(;!Mc(Ai());)Yt();return dl(t,Nt)}function p3(t){return u3(ra("",null,null,null,[""],t=l3(t),0,[0],t))}function ra(t,e,n,i,r,s,o,a,l){for(var u=0,c=0,f=o,d=0,h=0,g=0,v=1,S=1,p=1,m=0,y="",w=r,k=s,_=i,C=y;S;)switch(g=m,m=Yt()){case 40:if(g!=108&&ze(C,f-1)==58){na(C+=H(Xl(m),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:C+=Xl(m);break;case 9:case 10:case 13:case 32:C+=c3(g);break;case 92:C+=f3(ia()-1,7);continue;case 47:switch(Ai()){case 42:case 47:ps(m3(d3(Yt(),ia()),e,n,l),l);break;default:C+="/"}break;case 123*v:a[u++]=dn(C)*p;case 125*v:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+c:p==-1&&(C=H(C,/\f/g,"")),h>0&&dn(C)-f&&ps(h>32?bh(C+";",i,n,f-1,l):bh(H(C," ","")+";",i,n,f-2,l),l);break;case 59:C+=";";default:if(ps(_=Ch(C,e,n,u,c,r,a,y,w=[],k=[],f,s),s),m===123)if(c===0)ra(C,e,_,_,w,s,f,a,k);else switch(d===99&&ze(C,3)===110?100:d){case 100:case 108:case 109:case 115:ra(t,_,_,i&&ps(Ch(t,_,_,0,0,r,a,y,r,w=[],f,k),k),r,k,f,a,i?w:k);break;default:ra(C,_,_,_,[""],k,0,a,k)}}u=c=h=0,v=p=1,y=C="",f=o;break;case 58:f=1+dn(C),h=g;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&a3()==125)continue}switch(C+=Nf(m),m*v){case 38:p=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(dn(C)-1)*p,p=1;break;case 64:Ai()===45&&(C+=Xl(Yt())),d=Ai(),c=f=dn(y=C+=h3(ia())),m++;break;case 45:g===45&&dn(C)==2&&(v=0)}}return s}function Ch(t,e,n,i,r,s,o,a,l,u,c,f){for(var d=r-1,h=r===0?s:[""],g=U0(h),v=0,S=0,p=0;v0?h[m]+" "+y:H(y,/&\f/g,h[m])))&&(l[p++]=w);return fl(t,e,n,r===0?ul:a,l,u,c,f)}function m3(t,e,n,i){return fl(t,e,n,$0,Nf(o3()),Ur(t,2,-2),0,i)}function bh(t,e,n,i,r){return fl(t,e,n,Ff,Ur(t,0,i),Ur(t,i+1,-1),i,r)}function G0(t,e,n){switch(r3(t,e)){case 5103:return K+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return K+t+t;case 4789:return _s+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return K+t+_s+t+se+t+t;case 5936:switch(ze(t,e+11)){case 114:return K+t+se+H(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return K+t+se+H(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return K+t+se+H(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return K+t+se+t+t;case 6165:return K+t+se+"flex-"+t+t;case 5187:return K+t+H(t,/(\w+).+(:[^]+)/,K+"box-$1$2"+se+"flex-$1$2")+t;case 5443:return K+t+se+"flex-item-"+H(t,/flex-|-self/g,"")+(kn(t,/flex-|baseline/)?"":se+"grid-row-"+H(t,/flex-|-self/g,""))+t;case 4675:return K+t+se+"flex-line-pack"+H(t,/align-content|flex-|-self/g,"")+t;case 5548:return K+t+se+H(t,"shrink","negative")+t;case 5292:return K+t+se+H(t,"basis","preferred-size")+t;case 6060:return K+"box-"+H(t,"-grow","")+K+t+se+H(t,"grow","positive")+t;case 4554:return K+H(t,/([^-])(transform)/g,"$1"+K+"$2")+t;case 6187:return H(H(H(t,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),t,"")+t;case 5495:case 3959:return H(t,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return H(H(t,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+t+t;case 4200:if(!kn(t,/flex-|baseline/))return se+"grid-column-align"+Ur(t,e)+t;break;case 2592:case 3360:return se+H(t,"template-","")+t;case 4384:case 3616:return n&&n.some(function(i,r){return e=r,kn(i.props,/grid-\w+-end/)})?~na(t+(n=n[e].value),"span")?t:se+H(t,"-start","")+t+se+"grid-row-span:"+(~na(n,"span")?kn(n,/\d+/):+kn(n,/\d+/)-+kn(t,/\d+/))+";":se+H(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(i){return kn(i.props,/grid-\w+-start/)})?t:se+H(H(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return H(t,/(.+)-inline(.+)/,K+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dn(t)-1-e>6)switch(ze(t,e+1)){case 109:if(ze(t,e+4)!==45)break;case 102:return H(t,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+_s+(ze(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~na(t,"stretch")?G0(H(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return H(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,r,s,o,a,l,u){return se+r+":"+s+u+(o?se+r+"-span:"+(a?l:+l-+s)+u:"")+t});case 4949:if(ze(t,e+6)===121)return H(t,":",":"+K)+t;break;case 6444:switch(ze(t,ze(t,14)===45?18:11)){case 120:return H(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+K+(ze(t,14)===45?"inline-":"")+"box$3$1"+K+"$2$3$1"+se+"$2box$3")+t;case 100:return H(t,":",":"+se)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return H(t,"scroll-","scroll-snap-")+t}return t}function Fa(t,e){for(var n="",i=0;i-1&&!t.return)switch(t.type){case Ff:t.return=G0(t.value,t.length,n);return;case j0:return Fa([Fn(t,{value:H(t.value,"@","@"+K)})],i);case ul:if(t.length)return s3(n=t.props,function(r){switch(kn(r,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Yi(Fn(t,{props:[H(r,/:(read-\w+)/,":"+_s+"$1")]})),Yi(Fn(t,{props:[r]})),Oc(t,{props:kh(n,i)});break;case"::placeholder":Yi(Fn(t,{props:[H(r,/:(plac\w+)/,":"+K+"input-$1")]})),Yi(Fn(t,{props:[H(r,/:(plac\w+)/,":"+_s+"$1")]})),Yi(Fn(t,{props:[H(r,/:(plac\w+)/,se+"input-$1")]})),Yi(Fn(t,{props:[r]})),Oc(t,{props:kh(n,i)});break}return""})}}var x3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gr=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",$f=typeof window<"u"&&"HTMLElement"in window,S3=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),hl=Object.freeze([]),Wr=Object.freeze({});function k3(t,e,n){return n===void 0&&(n=Wr),t.theme!==n.theme&&t.theme||e||n.theme}var W0=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),C3=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,b3=/(^-|-$)/g;function _h(t){return t.replace(C3,"-").replace(b3,"")}var _3=/(a)(d)/gi,Eh=function(t){return String.fromCharCode(t+(t>25?39:97))};function zc(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=Eh(e%52)+n;return(Eh(e%52)+n).replace(_3,"$1-$2")}var Zl,cr=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},V0=function(t){return cr(5381,t)};function E3(t){return zc(V0(t)>>>0)}function P3(t){return t.displayName||t.name||"Component"}function Jl(t){return typeof t=="string"&&!0}var q0=typeof Symbol=="function"&&Symbol.for,Q0=q0?Symbol.for("react.memo"):60115,O3=q0?Symbol.for("react.forward_ref"):60112,M3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},R3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z3=((Zl={})[O3]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zl[Q0]=K0,Zl);function Ph(t){return("type"in(e=t)&&e.type.$$typeof)===Q0?K0:"$$typeof"in t?z3[t.$$typeof]:M3;var e}var T3=Object.defineProperty,I3=Object.getOwnPropertyNames,Oh=Object.getOwnPropertySymbols,D3=Object.getOwnPropertyDescriptor,L3=Object.getPrototypeOf,Mh=Object.prototype;function Y0(t,e,n){if(typeof e!="string"){if(Mh){var i=L3(e);i&&i!==Mh&&Y0(t,i,n)}var r=I3(e);Oh&&(r=r.concat(Oh(e)));for(var s=Ph(t),o=Ph(e),a=0;a0?" Args: ".concat(e.join(", ")):""))}var A3=function(){function t(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return t.prototype.indexOfGroup=function(e){for(var n=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,r=i.length,s=r;e>=s;)if((s<<=1)<0)throw yo(16,"".concat(e));this.groupSizes=new Uint32Array(s),this.groupSizes.set(i),this.length=s;for(var o=r;o=this.length||this.groupSizes[e]===0)return n;for(var i=this.groupSizes[e],r=this.indexOfGroup(e),s=r+i,o=r;o=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[e]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.prototype.getRule=function(e){return e0&&(S+="".concat(p,","))}),l+="".concat(g).concat(v,'{content:"').concat(S,'"}').concat(`/*!sc*/
+`)},c=0;c0?".".concat(e):d},c=l.slice();c.push(function(d){d.type===ul&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(q3,n).replace(i,u))}),o.prefix&&c.push(w3),c.push(y3);var f=function(d,h,g,v){h===void 0&&(h=""),g===void 0&&(g=""),v===void 0&&(v="&"),e=v,n=h,i=new RegExp("\\".concat(n,"\\b"),"g");var S=d.replace(Q3,""),p=p3(g||h?"".concat(g," ").concat(h," { ").concat(S," }"):S);o.namespace&&(p=J0(p,o.namespace));var m=[];return Fa(p,g3(c.concat(v3(function(y){return m.push(y)})))),m};return f.hash=l.length?l.reduce(function(d,h){return h.name||yo(15),cr(d,h.name)},5381).toString():"",f}var Y3=new Z0,Ic=K3(),em=Oe.createContext({shouldForwardProp:void 0,styleSheet:Y3,stylis:Ic});em.Consumer;Oe.createContext(void 0);function Th(){return T.useContext(em)}var X3=function(){function t(e,n){var i=this;this.inject=function(r,s){s===void 0&&(s=Ic);var o=i.name+s.hash;r.hasNameForId(i.id,o)||r.insertRules(i.id,o,s(i.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=n,Bf(this,function(){throw yo(12,String(i.name))})}return t.prototype.getName=function(e){return e===void 0&&(e=Ic),this.name+e.hash},t}(),Z3=function(t){return t>="A"&&t<="Z"};function Ih(t){for(var e="",n=0;n>>0);if(!n.hasNameForId(this.componentId,o)){var a=i(s,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,a)}r=bi(r,o),this.staticRulesId=o}else{for(var l=cr(this.baseHash,i.hash),u="",c=0;c>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,i(u,".".concat(h),void 0,this.componentId)),r=bi(r,h)}}return r},t}(),im=Oe.createContext(void 0);im.Consumer;var tu={};function n4(t,e,n){var i=jf(t),r=t,s=!Jl(t),o=e.attrs,a=o===void 0?hl:o,l=e.componentId,u=l===void 0?function(y,w){var k=typeof y!="string"?"sc":_h(y);tu[k]=(tu[k]||0)+1;var _="".concat(k,"-").concat(E3("6.0.8"+k+tu[k]));return w?"".concat(w,"-").concat(_):_}(e.displayName,e.parentComponentId):l,c=e.displayName;c===void 0&&function(y){return Jl(y)?"styled.".concat(y):"Styled(".concat(P3(y),")")}(t);var f=e.displayName&&e.componentId?"".concat(_h(e.displayName),"-").concat(e.componentId):e.componentId||u,d=i&&r.attrs?r.attrs.concat(a).filter(Boolean):a,h=e.shouldForwardProp;if(i&&r.shouldForwardProp){var g=r.shouldForwardProp;if(e.shouldForwardProp){var v=e.shouldForwardProp;h=function(y,w){return g(y,w)&&v(y,w)}}else h=g}var S=new t4(n,f,i?r.componentStyle:void 0);function p(y,w){return function(k,_,C){var R=k.attrs,B=k.componentStyle,U=k.defaultProps,xe=k.foldedComponentIds,bt=k.styledComponentId,jt=k.target,gi=Oe.useContext(im),vi=Th(),gn=k.shouldForwardProp||vi.shouldForwardProp,rt=function(Ke,Ye,_t){for(var Le,Xe=lt(lt({},Ye),{className:void 0,theme:_t}),b=0;b(t.FB="facebook",t.DOCKER="docker",t.REACT="react",t.RUST="rust",t.SNAPCHAT="snapchat",t.TELEGRAM="telegram",t.LINUX="linux",t.GITHUB="github",t.REDHAT="redhat",t.PYTHON="python",t.APP_STORE="app_store",t.TIKTOK="tiktok",t.JAVA="java",t.GITLAB="gitlab",t.GOLANG="golang",t.CHROME="chrome",t))(Ce||{});const lm=t=>({[Ce.FB]:l4,[Ce.DOCKER]:a4,[Ce.REACT]:m4,[Ce.RUST]:g4,[Ce.SNAPCHAT]:v4,[Ce.TELEGRAM]:w4,[Ce.LINUX]:h4,[Ce.GITHUB]:u4,[Ce.REDHAT]:y4,[Ce.PYTHON]:p4,[Ce.APP_STORE]:s4,[Ce.TIKTOK]:x4,[Ce.JAVA]:d4,[Ce.GITLAB]:c4,[Ce.GOLANG]:f4,[Ce.CHROME]:o4})[t],E4=()=>_4,ms=112,P4=86,O4=72,M4=8,R4=({iconName:t,isClosed:e,animation:n,bgColor:i,highlightColor:r,iconColor:s,onClick:o})=>{const a=lm(t),l=E4();return z.jsx(um,{onClick:o,children:z.jsxs(z4,{isClosed:e,children:[z.jsx(T4,{bgColor:i,highlightColor:r,children:z.jsx(Fh,{animation:n,children:z.jsx(a,{size:P4,color:s})})}),z.jsx(I4,{bgColor:i,highlightColor:r,children:z.jsx(Fh,{animation:n,children:z.jsx(l,{size:O4,color:s})})})]})})},um=ge.div`
+ width: ${ms}px;
+ height: ${ms}px;
+ max-width: ${ms}px;
+ max-height: ${ms}px;
+
+ border-radius: ${M4}px;
cursor: pointer;
background: transparent;
-`,_4=tt.div`
+`,z4=ge.div`
position: relative;
width: 100%;
height: 100%;
@@ -234,14 +234,14 @@ to {
transition: transform 0.4s;
transform-style: preserve-3d;
- ${t=>t.isClosed&&ci`
+ ${t=>t.isClosed&&tn`
transform: rotateY(180deg);
`}
-`,Dh=tt.span`
- ${t=>t.animation==="shake"&&ci`
+`,Fh=ge.span`
+ ${t=>t.animation==="shake"&&tn`
animation: shake 0.2s;
`}
- ${t=>t.animation==="infinite-shake"&&ci`
+ ${t=>t.animation==="infinite-shake"&&tn`
animation: infinite shake 0.5s;
`}
@@ -280,7 +280,7 @@ to {
transform: translate(1px, -2px);
}
}
-`,sm=tt(rm)`
+`,cm=ge(um)`
position: absolute;
display: flex;
align-items: center;
@@ -291,49 +291,55 @@ to {
background: ${t=>t.bgColor};
&:hover {
- filter: brightness(.95);
+ filter: brightness(0.95);
}
- transition: filter .2s ease-in-out;
+ transition: filter 0.2s ease-in-out;
- ${t=>t.highlightColor&&ci`
+ ${t=>t.highlightColor&&tn`
box-shadow: 0px 0px 6px 0 ${t.highlightColor};
`}
-`,E4=tt(sm)``,P4=tt(sm)`
+`,T4=ge(cm)``,I4=ge(cm)`
transform: rotateY(180deg);
outline: 1px dashed #44444488;
-`,Dt={cardsForSingleGuess:2,cardsAmount:16,autoSolveLastGuess:!0,maxColumns:4,crazyMode:!1,wrongGuessDisplayMs:700,iconsToChooseFrom:Object.values(Ee),initialGameState:Ye.NOT_STARTED,autoRestartOnFinish:!0,autoRestartDelay:2500,displayDebugStats:!1},O4=()=>{const[t,e]=R.useState(Dt),n=R.useCallback(i=>{e(r=>({...r,...i}))},[]);return{config:t,updateConfigWith:n}};var de=(t=>(t.CLOSED="closed",t.PICKED="picked",t.GUESSED="guessed",t.GUESSED_WRONG="guessed_wrong",t.SOLVED="solved",t))(de||{});const M4=({cardsAmount:t,cardsForSingleGuess:e})=>{const n=e>0&&t>=e,i=t%e===0;return n&&i},z4=({cardsAmount:t,cardsForSingleGuess:e,iconsToChooseFrom:n})=>e>0&&n.length>=t/e,R4=t=>{if(!t.length)return null;const e=Math.floor(Math.random()*t.length);return t[e]},T4=t=>t!==null,Ih=t=>{if(!t.length)return null;const e=Math.floor(Math.random()*t.length),n=t[e];return t.splice(e,1),n},D4=(t,e=n=>n)=>t.every(n=>e(n)===e(t[0]));var oi=(t=>(t[t.DEV=0]="DEV",t[t.INFO=1]="INFO",t[t.ERROR=2]="ERROR",t))(oi||{});const I4=[oi.DEV],L4={[oi.DEV]:m4,[oi.INFO]:g4,[oi.ERROR]:p4},$f=({icon:t,level:e,requirePrefix:n=!1})=>{const i=I4.includes(e),r=t??L4[e],s=o=>{console.log(o,i,!1),!i&&_0(o,{icon:F.jsx(r,{})})};return n?(o,a)=>s(`${o}: ${a}`):s};$f({level:oi.INFO});$f({level:oi.DEV});$f({level:oi.ERROR});const A4=t=>e=>null,F4=t=>{if(!M4(t))throw new Error("Invalid amount of cards to play guessing game!");if(!z4(t))throw new Error("Not enough icons to choose from!");const e=[...t.iconsToChooseFrom],n=Array.from({length:t.cardsAmount}).map(()=>null),i=Array.from({length:t.cardsAmount}).map((o,a)=>a);let r=i.length,s=1;for(;r;){const o=Ih(e);Array.from({length:t.cardsForSingleGuess}).map(()=>Ih(i)).forEach(l=>{const u={icon:o,state:de.CLOSED,id:s++};n[l]=u}),r-=t.cardsForSingleGuess}return n.filter(T4)},N4=t=>{const[e,n]=R.useState(t),i=R.useCallback(c=>e.find(f=>f.id===c),[e]),r=R.useCallback(c=>{n(f=>f.map(d=>c.find(h=>h.id===d.id)??d))},[]),s=R.useCallback(c=>{n(f=>f.map(d=>d.id===c.id?c:d))},[]),o=R.useMemo(()=>e.filter(c=>c.state===de.PICKED),[e]),a=R.useMemo(()=>e.filter(c=>c.state!==de.GUESSED),[e]),l=R.useCallback(c=>{const f=i(c),d=o.length===Dt.cardsForSingleGuess;f.state===de.CLOSED&&!d&&s({...f,state:de.PICKED})},[o,s,i]),u=R.useCallback(()=>{n(t())},[t]);return{allCards:e,pickCard:l,pickedCards:o,nonGuessedCards:a,updateCard:s,updateCards:r,reset:u}},om=_e.createContext({}),$4=({children:t})=>{const e=O4(),n=Qv(Dt.initialGameState),i=N4(()=>F4(Dt));return F.jsx(om.Provider,{value:{state:n,cards:i,config:e},children:t})},tn=()=>R.useContext(om),Jl=()=>{},jf=({onGuessed:t=Jl,onLastGuessLeft:e=Jl,onGameFinished:n=Jl})=>{const{cards:{pickedCards:i,nonGuessedCards:r},state:{isFinished:s}}=tn();R.useEffect(()=>{if(i.length===Dt.cardsForSingleGuess){const a=D4(i,l=>l.icon);t(a,i)}},[i,t]),R.useEffect(()=>{s&&n()},[s,n]),R.useEffect(()=>{Dt.autoSolveLastGuess&&r.length===Dt.cardsForSingleGuess&&e(r)},[r,e])},j4=t=>t?de.GUESSED:de.GUESSED_WRONG,B4=()=>{H4(),q4(),G4(),W4(),U4()},U4=()=>{const{cards:{reset:t},state:{startGame:e}}=tn();jf({onGameFinished:()=>{Dt.autoRestartOnFinish&&setTimeout(()=>{e&&(e(),t())},Dt.autoRestartDelay)}})},H4=()=>{const{cards:{updateCard:t}}=tn();jf({onGuessed:(e,n)=>{const i=j4(e);n.forEach(r=>{t({...r,state:i})}),e||setTimeout(()=>{n.forEach(r=>{t({...r,state:de.CLOSED})})},Dt.wrongGuessDisplayMs)}})},G4=()=>{const{state:{isIdle:t,startGame:e}}=tn();R.useEffect(()=>{t&&e&&e()},[t,e])},W4=()=>{const{cards:{nonGuessedCards:t},state:{finishGame:e}}=tn();R.useEffect(()=>{t.length===0&&e&&e()},[t,e])},q4=()=>{const{cards:{updateCard:t}}=tn();jf({onLastGuessLeft:e=>{Dt.autoSolveLastGuess&&e.forEach(n=>{t({...n,state:de.GUESSED})})}})},eu={BG:"#b993d6",BG_GRADIENT:["#b993d6","#8ca6db"],BORDER:"#ffffff22"},am=16,lm=16,Q4=({maxColumns:t})=>{const e=ps*t,n=am*(t-1),i=lm*2;return e+n+i},V4=({maxColumns:t,children:e,colors:n})=>F.jsx(K4,{maxColumns:t,colors:n,children:e}),K4=tt.div`
+`,Lt={cardsForSingleGuess:2,cardsAmount:16,autoSolveLastGuess:!0,maxColumns:4,crazyMode:!1,wrongGuessDisplayMs:700,iconsToChooseFrom:Object.values(Ce),initialGameState:_e.NOT_STARTED,autoRestartOnFinish:!0,autoRestartDelay:2500,displayDebugStats:!1},D4=()=>{const[t,e]=T.useState(Lt),n=T.useCallback(i=>{e(r=>({...r,...i}))},[]);return{config:t,updateConfigWith:n}};var de=(t=>(t.CLOSED="closed",t.PICKED="picked",t.GUESSED="guessed",t.GUESSED_WRONG="guessed_wrong",t.SOLVED="solved",t))(de||{});const L4=({cardsAmount:t,cardsForSingleGuess:e})=>{const n=e>0&&t>=e,i=t%e===0;return n&&i},A4=({cardsAmount:t,cardsForSingleGuess:e,iconsToChooseFrom:n})=>e>0&&n.length>=t/e,F4=t=>{if(!t.length)return null;const e=Math.floor(Math.random()*t.length);return t[e]},N4=t=>t!==null,Nh=t=>{if(!t.length)return null;const e=Math.floor(Math.random()*t.length),n=t[e];return t.splice(e,1),n},$4=(t,e=n=>n)=>t.every(n=>e(n)===e(t[0]));var li=(t=>(t[t.DEV=0]="DEV",t[t.INFO=1]="INFO",t[t.ERROR=2]="ERROR",t))(li||{});const j4=[li.DEV],B4={[li.DEV]:k4,[li.INFO]:b4,[li.ERROR]:S4},Uf=({icon:t,level:e,requirePrefix:n=!1})=>{const i=j4.includes(e),r=t??B4[e],s=o=>{console.log(o,i,!1),!i&&Ia(o,{icon:z.jsx(r,{})})};return n?(o,a)=>s(`${o}: ${a}`):s};Uf({level:li.INFO});Uf({level:li.DEV});Uf({level:li.ERROR});let No;const U4=new Uint8Array(16);function H4(){if(!No&&(No=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!No))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return No(U4)}const Ae=[];for(let t=0;t<256;++t)Ae.push((t+256).toString(16).slice(1));function G4(t,e=0){return Ae[t[e+0]]+Ae[t[e+1]]+Ae[t[e+2]]+Ae[t[e+3]]+"-"+Ae[t[e+4]]+Ae[t[e+5]]+"-"+Ae[t[e+6]]+Ae[t[e+7]]+"-"+Ae[t[e+8]]+Ae[t[e+9]]+"-"+Ae[t[e+10]]+Ae[t[e+11]]+Ae[t[e+12]]+Ae[t[e+13]]+Ae[t[e+14]]+Ae[t[e+15]]}const W4=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$h={randomUUID:W4};function V4(t,e,n){if($h.randomUUID&&!e&&!t)return $h.randomUUID();t=t||{};const i=t.random||(t.rng||H4)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){n=n||0;for(let r=0;r<16;++r)e[n+r]=i[r];return e}return G4(i)}const q4=({message:t,icon:e,duration:n=2500,position:i,strategy:r="decrease-batched"})=>{const s=V4();let o=0,a;const l=()=>{r==="decrease-batched"?o=0:o=Math.max(0,o-1)},u=()=>o++,c=()=>{const f=o>1?` (x${o})`:"";return`${t}${f}`};return f=>{f?Ia(f,{icon:e,id:s,duration:n,position:i}):(r==="decrease-batched"&&clearTimeout(a),u(),a=setTimeout(l,n),Ia(c(),{icon:e,id:s,duration:n,position:i}))}},Q4=t=>null,K4=t=>(e,n)=>t[e]===!0?n:i=>null,Y4=t=>{if(!L4(t))throw new Error("Invalid amount of cards to play guessing game!");if(!A4(t))throw new Error("Not enough icons to choose from!");const e=[...t.iconsToChooseFrom],n=Array.from({length:t.cardsAmount}).map(()=>null),i=Array.from({length:t.cardsAmount}).map((o,a)=>a);let r=i.length,s=1;for(;r;){const o=Nh(e);Array.from({length:t.cardsForSingleGuess}).map(()=>Nh(i)).forEach(l=>{const u={icon:o,state:de.CLOSED,id:s++};n[l]=u}),r-=t.cardsForSingleGuess}return n.filter(N4)},X4=t=>{const[e,n]=T.useState(t),i=T.useCallback(c=>e.find(f=>f.id===c),[e]),r=T.useCallback(c=>{n(f=>f.map(d=>c.find(h=>h.id===d.id)??d))},[]),s=T.useCallback(c=>{n(f=>f.map(d=>d.id===c.id?c:d))},[]),o=T.useMemo(()=>e.filter(c=>c.state===de.PICKED),[e]),a=T.useMemo(()=>e.filter(c=>c.state!==de.GUESSED),[e]),l=T.useCallback(c=>{const f=i(c),d=o.length===Lt.cardsForSingleGuess;f.state===de.CLOSED&&!d&&s({...f,state:de.PICKED})},[o,s,i]),u=T.useCallback(()=>{n(t())},[t]);return{allCards:e,pickCard:l,pickedCards:o,nonGuessedCards:a,updateCard:s,updateCards:r,reinitialize:u}},fm=Oe.createContext({}),Z4=({children:t})=>{const e=D4(),n=e3(Lt.initialGameState),i=X4(()=>Y4(Lt));return z.jsx(fm.Provider,{value:{state:n,cards:i,config:e},children:t})},it=()=>T.useContext(fm),nu=()=>{},Hf=({onGuessed:t=nu,onLastGuessLeft:e=nu,onGameFinished:n=nu})=>{const{cards:{pickedCards:i,nonGuessedCards:r},state:{isFinished:s}}=it();T.useEffect(()=>{if(i.length===Lt.cardsForSingleGuess){const a=$4(i,l=>l.icon);t(a,i)}},[i,t]),T.useEffect(()=>{s&&n()},[s,n]),T.useEffect(()=>{Lt.autoSolveLastGuess&&r.length===Lt.cardsForSingleGuess&&e(r)},[r,e])},J4=t=>t?de.GUESSED:de.GUESSED_WRONG,e5=q4({message:"Game Restarted!",duration:2500}),t5=()=>{r5(),a5(),s5(),o5(),i5(),n5()},n5=()=>{const{state:{isAboutToRestart:t,startGame:e},cards:{reinitialize:n}}=it(),i=1e3;T.useEffect(()=>{t&&e&&setTimeout(()=>{e(),n(),e5()},i)},[t,n,e])},i5=()=>{const{cards:{reinitialize:t},state:{startGame:e}}=it();Hf({onGameFinished:()=>{Lt.autoRestartOnFinish&&setTimeout(()=>{e&&(e(),t())},Lt.autoRestartDelay)}})},r5=()=>{const{cards:{updateCard:t}}=it();Hf({onGuessed:(e,n)=>{const i=J4(e);n.forEach(r=>{t({...r,state:i})}),e||setTimeout(()=>{n.forEach(r=>{t({...r,state:de.CLOSED})})},Lt.wrongGuessDisplayMs)}})},s5=()=>{const{state:{isIdle:t,startGame:e}}=it();T.useEffect(()=>{t&&e&&e()},[t,e])},o5=()=>{const{cards:{nonGuessedCards:t},state:{finishGame:e}}=it();T.useEffect(()=>{t.length===0&&e&&e()},[t,e])},a5=()=>{const{cards:{updateCard:t}}=it();Hf({onLastGuessLeft:e=>{Lt.autoSolveLastGuess&&e.forEach(n=>{t({...n,state:de.GUESSED})})}})};function l5(t){return le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}}]})(t)}function u5(t){return le({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor"}}]})(t)}const iu={BG:"#b993d6",BG_GRADIENT:["#b993d6","#8ca6db"],BORDER:"#ffffff22"},dm=16,hm=16,c5=({maxColumns:t})=>{const e=ms*t,n=dm*(t-1),i=hm*2;return e+n+i},f5=({maxColumns:t,children:e,colors:n,isDisabled:i})=>z.jsx(d5,{maxColumns:t,colors:n,isDisabled:i,children:e}),d5=ge.div`
display: flex;
- max-width: ${Q4}px;
+ max-width: ${c5}px;
align: auto;
flex-wrap: wrap;
- gap: ${am}px;
- padding: ${lm}px;
+ gap: ${dm}px;
+ padding: ${hm}px;
border-radius: 8px;
box-shadow: 10px 10px 10px 0px rgba(0, 0, 0, 0.4);
- outline: 2px solid ${eu.BORDER};
+ outline: 2px solid ${iu.BORDER};
- background: ${eu.BG};
- background: linear-gradient(to right, ${eu.BG_GRADIENT.join(", ")});
+ background: ${iu.BG};
+ background: linear-gradient(to right, ${iu.BG_GRADIENT.join(", ")});
- ${t=>{var e;return((e=t.colors)==null?void 0:e.BG)&&ci`
+ ${t=>t.isDisabled&&tn`
+ pointer-events: none;
+ filter: brightness(.7);
+ `}
+
+ ${t=>{var e;return((e=t.colors)==null?void 0:e.BG)&&tn`
${typeof t.colors.BG=="string"&&`background: ${t.colors.BG};`}
${Array.isArray(t.colors.BG)&&`background: linear-gradient(
to right, ${t.colors.BG.join(", ")}
);`}
`}}
-`,Y4=t=>t===!0?"TRUE":"FALSE",X4=t=>t===!0?"lightgreen":"red",Fo=({children:t})=>{const e=Y4(t),n=X4(t);return F.jsx(Z4,{color:n,children:e})},Z4=tt.span`
+`,h5=t=>t===!0?"TRUE":"FALSE",p5=t=>t===!0?"lightgreen":"red",$o=({children:t})=>{const e=h5(t),n=p5(t);return z.jsx(m5,{color:n,children:e})},m5=ge.span`
color: ${t=>t.color};
-`;var um={exports:{}};(function(t,e){(function(n,i){t.exports=i(R)})(typeof self<"u"?self:Hm,function(n){return function(i){var r={};function s(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return i[o].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=i,s.c=r,s.d=function(o,a,l){s.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:l})},s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},s.t=function(o,a){if(1&a&&(o=s(o)),8&a||4&a&&typeof o=="object"&&o&&o.__esModule)return o;var l=Object.create(null);if(s.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:o}),2&a&&typeof o!="string")for(var u in o)s.d(l,u,(function(c){return o[c]}).bind(null,u));return l},s.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(a,"a",a),a},s.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},s.p="",s(s.s=2)}([function(i,r){i.exports=n},function(i,r,s){var o={linear:function(a,l,u,c){return(u-l)*a/c+l},easeInQuad:function(a,l,u,c){return(u-l)*(a/=c)*a+l},easeOutQuad:function(a,l,u,c){return-(u-l)*(a/=c)*(a-2)+l},easeInOutQuad:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?f/2*a*a+l:-f/2*(--a*(a-2)-1)+l},easeInCubic:function(a,l,u,c){return(u-l)*(a/=c)*a*a+l},easeOutCubic:function(a,l,u,c){return(u-l)*((a=a/c-1)*a*a+1)+l},easeInOutCubic:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?f/2*a*a*a+l:f/2*((a-=2)*a*a+2)+l},easeInQuart:function(a,l,u,c){return(u-l)*(a/=c)*a*a*a+l},easeOutQuart:function(a,l,u,c){return-(u-l)*((a=a/c-1)*a*a*a-1)+l},easeInOutQuart:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?f/2*a*a*a*a+l:-f/2*((a-=2)*a*a*a-2)+l},easeInQuint:function(a,l,u,c){return(u-l)*(a/=c)*a*a*a*a+l},easeOutQuint:function(a,l,u,c){return(u-l)*((a=a/c-1)*a*a*a*a+1)+l},easeInOutQuint:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?f/2*a*a*a*a*a+l:f/2*((a-=2)*a*a*a*a+2)+l},easeInSine:function(a,l,u,c){var f=u-l;return-f*Math.cos(a/c*(Math.PI/2))+f+l},easeOutSine:function(a,l,u,c){return(u-l)*Math.sin(a/c*(Math.PI/2))+l},easeInOutSine:function(a,l,u,c){return-(u-l)/2*(Math.cos(Math.PI*a/c)-1)+l},easeInExpo:function(a,l,u,c){return a==0?l:(u-l)*Math.pow(2,10*(a/c-1))+l},easeOutExpo:function(a,l,u,c){var f=u-l;return a==c?l+f:f*(1-Math.pow(2,-10*a/c))+l},easeInOutExpo:function(a,l,u,c){var f=u-l;return a===0?l:a===c?l+f:(a/=c/2)<1?f/2*Math.pow(2,10*(a-1))+l:f/2*(2-Math.pow(2,-10*--a))+l},easeInCirc:function(a,l,u,c){return-(u-l)*(Math.sqrt(1-(a/=c)*a)-1)+l},easeOutCirc:function(a,l,u,c){return(u-l)*Math.sqrt(1-(a=a/c-1)*a)+l},easeInOutCirc:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?-f/2*(Math.sqrt(1-a*a)-1)+l:f/2*(Math.sqrt(1-(a-=2)*a)+1)+l},easeInElastic:function(a,l,u,c){var f,d,h,g=u-l;return h=1.70158,a===0?l:(a/=c)==1?l+g:((d=0)||(d=.3*c),(f=g)=1&&this.rotationDirection===a.Positive?this.rotationDirection=a.Negative:this.rotateY<=-1&&this.rotationDirection===a.Negative&&(this.rotationDirection=a.Positive);var ie=.1*this.rotationDirection;if(this.rotateY+=ie,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=ne,this.context.lineCap="round",this.context.lineWidth=2,me&&typeof me=="function")me.call(this,this.context);else switch(this.shape){case o.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case o.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case o.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&h(E.prototype,O),b}();function k(b,E,O){return E in b?Object.defineProperty(b,E,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[E]=O,b}var p=function b(E,O){var P=this;(function(L,W){if(!(L instanceof W))throw new TypeError("Cannot call a class as a function")})(this,b),k(this,"canvas",void 0),k(this,"context",void 0),k(this,"getOptions",void 0),k(this,"x",0),k(this,"y",0),k(this,"w",0),k(this,"h",0),k(this,"lastNumberOfPieces",0),k(this,"tweenInitTime",Date.now()),k(this,"particles",[]),k(this,"particlesGenerated",0),k(this,"removeParticleAt",function(L){P.particles.splice(L,1)}),k(this,"getParticle",function(){var L=d(P.x,P.w+P.x),W=d(P.y,P.h+P.y);return new v(P.context,P.getOptions,L,W)}),k(this,"animate",function(){var L=P.canvas,W=P.context,ne=P.particlesGenerated,me=P.lastNumberOfPieces,ie=P.getOptions(),yn=ie.run,$t=ie.recycle,jt=ie.numberOfPieces,ml=ie.debug,yl=ie.tweenFunction,gl=ie.tweenDuration;if(!yn)return!1;var vl=P.particles.length,Zr=$t?vl:ne,wl=Date.now();if(Zrgl?gl:Math.max(0,wl-Vf),Zr,jt,gl),Kf=Math.round(Um-Zr),Yf=0;YfL.height||Jr.y<-100||Jr.x>L.width+100||Jr.x<-100)&&($t&&Zr<=jt?P.particles[Xf]=P.getParticle():P.removeParticleAt(Xf))}),vl>0||Zr0&&ie.call(L,L),L._options.run=!1)}),S(this,"reset",function(){L.generator&&L.generator.particlesGenerated>0&&(L.generator.particlesGenerated=0,L.generator.particles=[],L.generator.lastNumberOfPieces=0)}),S(this,"stop",function(){L.options={run:!1},L.rafId&&(cancelAnimationFrame(L.rafId),L.rafId=void 0)}),this.canvas=P;var W=this.canvas.getContext("2d");if(!W)throw new Error("Could not get canvas context");this.context=W,this.generator=new p(this.canvas,function(){return L.options}),this.options=Y,this.update()}var E,O;return E=b,(O=[{key:"options",get:function(){return this._options},set:function(P){var Y=this._options&&this._options.run,L=this._options&&this._options.recycle;this.setOptionsWithDefaults(P),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof P.recycle=="boolean"&&P.recycle&&L===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof P.run=="boolean"&&P.run&&Y===!1&&this.update()}}])&&w(E.prototype,O),b}();function z(b){return function(E){if(Array.isArray(E))return gi(E)}(b)||function(E){if(typeof Symbol<"u"&&Symbol.iterator in Object(E))return Array.from(E)}(b)||yi(b)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function B(b){return(B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(b)}function U(){return(U=Object.assign||function(b){for(var E=1;E"u"||!(Symbol.iterator in Object(O)))){var Y=[],L=!0,W=!1,ne=void 0;try{for(var me,ie=O[Symbol.iterator]();!(L=(me=ie.next()).done)&&(Y.push(me.value),!P||Y.length!==P);L=!0);}catch(yn){W=!0,ne=yn}finally{try{L||ie.return==null||ie.return()}finally{if(W)throw ne}}return Y}}(b,E)||yi(b,E)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yi(b,E){if(b){if(typeof b=="string")return gi(b,E);var O=Object.prototype.toString.call(b).slice(8,-1);return O==="Object"&&b.constructor&&(O=b.constructor.name),O==="Map"||O==="Set"?Array.from(b):O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?gi(b,E):void 0}}function gi(b,E){(E==null||E>b.length)&&(E=b.length);for(var O=0,P=new Array(E);O"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var O,P=J(b);if(E){var Y=J(this).constructor;O=Reflect.construct(P,arguments,Y)}else O=P.apply(this,arguments);return j(this,O)}}function j(b,E){return!E||B(E)!=="object"&&typeof E!="function"?Z(b):E}function Z(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function J(b){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(b)}function qe(b,E,O){return E in b?Object.defineProperty(b,E,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[E]=O,b}var Qe=u.a.createRef(),Ct=function(b){(function(L,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(W&&W.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),W&&D(L,W)})(Y,b);var E,O,P=$(Y);function Y(L){var W;mn(this,Y);for(var ne=arguments.length,me=new Array(ne>1?ne-1:0),ie=1;ieF.jsx(e5,{width:t,height:e,recycle:!n,gravity:.75}),n5=tt.button`
+`;var pm={exports:{}};(function(t,e){(function(n,i){t.exports=i(T)})(typeof self<"u"?self:Km,function(n){return function(i){var r={};function s(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return i[o].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=i,s.c=r,s.d=function(o,a,l){s.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:l})},s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},s.t=function(o,a){if(1&a&&(o=s(o)),8&a||4&a&&typeof o=="object"&&o&&o.__esModule)return o;var l=Object.create(null);if(s.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:o}),2&a&&typeof o!="string")for(var u in o)s.d(l,u,(function(c){return o[c]}).bind(null,u));return l},s.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(a,"a",a),a},s.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},s.p="",s(s.s=2)}([function(i,r){i.exports=n},function(i,r,s){var o={linear:function(a,l,u,c){return(u-l)*a/c+l},easeInQuad:function(a,l,u,c){return(u-l)*(a/=c)*a+l},easeOutQuad:function(a,l,u,c){return-(u-l)*(a/=c)*(a-2)+l},easeInOutQuad:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?f/2*a*a+l:-f/2*(--a*(a-2)-1)+l},easeInCubic:function(a,l,u,c){return(u-l)*(a/=c)*a*a+l},easeOutCubic:function(a,l,u,c){return(u-l)*((a=a/c-1)*a*a+1)+l},easeInOutCubic:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?f/2*a*a*a+l:f/2*((a-=2)*a*a+2)+l},easeInQuart:function(a,l,u,c){return(u-l)*(a/=c)*a*a*a+l},easeOutQuart:function(a,l,u,c){return-(u-l)*((a=a/c-1)*a*a*a-1)+l},easeInOutQuart:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?f/2*a*a*a*a+l:-f/2*((a-=2)*a*a*a-2)+l},easeInQuint:function(a,l,u,c){return(u-l)*(a/=c)*a*a*a*a+l},easeOutQuint:function(a,l,u,c){return(u-l)*((a=a/c-1)*a*a*a*a+1)+l},easeInOutQuint:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?f/2*a*a*a*a*a+l:f/2*((a-=2)*a*a*a*a+2)+l},easeInSine:function(a,l,u,c){var f=u-l;return-f*Math.cos(a/c*(Math.PI/2))+f+l},easeOutSine:function(a,l,u,c){return(u-l)*Math.sin(a/c*(Math.PI/2))+l},easeInOutSine:function(a,l,u,c){return-(u-l)/2*(Math.cos(Math.PI*a/c)-1)+l},easeInExpo:function(a,l,u,c){return a==0?l:(u-l)*Math.pow(2,10*(a/c-1))+l},easeOutExpo:function(a,l,u,c){var f=u-l;return a==c?l+f:f*(1-Math.pow(2,-10*a/c))+l},easeInOutExpo:function(a,l,u,c){var f=u-l;return a===0?l:a===c?l+f:(a/=c/2)<1?f/2*Math.pow(2,10*(a-1))+l:f/2*(2-Math.pow(2,-10*--a))+l},easeInCirc:function(a,l,u,c){return-(u-l)*(Math.sqrt(1-(a/=c)*a)-1)+l},easeOutCirc:function(a,l,u,c){return(u-l)*Math.sqrt(1-(a=a/c-1)*a)+l},easeInOutCirc:function(a,l,u,c){var f=u-l;return(a/=c/2)<1?-f/2*(Math.sqrt(1-a*a)-1)+l:f/2*(Math.sqrt(1-(a-=2)*a)+1)+l},easeInElastic:function(a,l,u,c){var f,d,h,g=u-l;return h=1.70158,a===0?l:(a/=c)==1?l+g:((d=0)||(d=.3*c),(f=g)=1&&this.rotationDirection===a.Positive?this.rotationDirection=a.Negative:this.rotateY<=-1&&this.rotationDirection===a.Negative&&(this.rotationDirection=a.Positive);var ie=.1*this.rotationDirection;if(this.rotateY+=ie,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=ne,this.context.lineCap="round",this.context.lineWidth=2,me&&typeof me=="function")me.call(this,this.context);else switch(this.shape){case o.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case o.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case o.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&h(E.prototype,O),b}();function S(b,E,O){return E in b?Object.defineProperty(b,E,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[E]=O,b}var p=function b(E,O){var P=this;(function(A,W){if(!(A instanceof W))throw new TypeError("Cannot call a class as a function")})(this,b),S(this,"canvas",void 0),S(this,"context",void 0),S(this,"getOptions",void 0),S(this,"x",0),S(this,"y",0),S(this,"w",0),S(this,"h",0),S(this,"lastNumberOfPieces",0),S(this,"tweenInitTime",Date.now()),S(this,"particles",[]),S(this,"particlesGenerated",0),S(this,"removeParticleAt",function(A){P.particles.splice(A,1)}),S(this,"getParticle",function(){var A=d(P.x,P.w+P.x),W=d(P.y,P.h+P.y);return new v(P.context,P.getOptions,A,W)}),S(this,"animate",function(){var A=P.canvas,W=P.context,ne=P.particlesGenerated,me=P.lastNumberOfPieces,ie=P.getOptions(),vn=ie.run,Bt=ie.recycle,Ut=ie.numberOfPieces,vl=ie.debug,wl=ie.tweenFunction,xl=ie.tweenDuration;if(!vn)return!1;var Sl=P.particles.length,Jr=Bt?Sl:ne,kl=Date.now();if(Jrxl?xl:Math.max(0,kl-Zf),Jr,Ut,xl),Jf=Math.round(Qm-Jr),ed=0;edA.height||es.y<-100||es.x>A.width+100||es.x<-100)&&(Bt&&Jr<=Ut?P.particles[td]=P.getParticle():P.removeParticleAt(td))}),Sl>0||Jr0&&ie.call(A,A),A._options.run=!1)}),k(this,"reset",function(){A.generator&&A.generator.particlesGenerated>0&&(A.generator.particlesGenerated=0,A.generator.particles=[],A.generator.lastNumberOfPieces=0)}),k(this,"stop",function(){A.options={run:!1},A.rafId&&(cancelAnimationFrame(A.rafId),A.rafId=void 0)}),this.canvas=P;var W=this.canvas.getContext("2d");if(!W)throw new Error("Could not get canvas context");this.context=W,this.generator=new p(this.canvas,function(){return A.options}),this.options=Y,this.update()}var E,O;return E=b,(O=[{key:"options",get:function(){return this._options},set:function(P){var Y=this._options&&this._options.run,A=this._options&&this._options.recycle;this.setOptionsWithDefaults(P),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof P.recycle=="boolean"&&P.recycle&&A===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof P.run=="boolean"&&P.run&&Y===!1&&this.update()}}])&&w(E.prototype,O),b}();function R(b){return function(E){if(Array.isArray(E))return vi(E)}(b)||function(E){if(typeof Symbol<"u"&&Symbol.iterator in Object(E))return Array.from(E)}(b)||gi(b)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function B(b){return(B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(b)}function U(){return(U=Object.assign||function(b){for(var E=1;E"u"||!(Symbol.iterator in Object(O)))){var Y=[],A=!0,W=!1,ne=void 0;try{for(var me,ie=O[Symbol.iterator]();!(A=(me=ie.next()).done)&&(Y.push(me.value),!P||Y.length!==P);A=!0);}catch(vn){W=!0,ne=vn}finally{try{A||ie.return==null||ie.return()}finally{if(W)throw ne}}return Y}}(b,E)||gi(b,E)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function gi(b,E){if(b){if(typeof b=="string")return vi(b,E);var O=Object.prototype.toString.call(b).slice(8,-1);return O==="Object"&&b.constructor&&(O=b.constructor.name),O==="Map"||O==="Set"?Array.from(b):O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?vi(b,E):void 0}}function vi(b,E){(E==null||E>b.length)&&(E=b.length);for(var O=0,P=new Array(E);O"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var O,P=J(b);if(E){var Y=J(this).constructor;O=Reflect.construct(P,arguments,Y)}else O=P.apply(this,arguments);return j(this,O)}}function j(b,E){return!E||B(E)!=="object"&&typeof E!="function"?Z(b):E}function Z(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function J(b){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(b)}function Ke(b,E,O){return E in b?Object.defineProperty(b,E,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[E]=O,b}var Ye=u.a.createRef(),_t=function(b){(function(A,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(W&&W.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),W&&D(A,W)})(Y,b);var E,O,P=$(Y);function Y(A){var W;gn(this,Y);for(var ne=arguments.length,me=new Array(ne>1?ne-1:0),ie=1;iez.jsx(g5,{width:t,height:e,recycle:!n,gravity:.75}),Gf=ge.button`
display: flex;
gap: 8px;
padding: 8px 32px;
align-items: center;
background: transparent;
+ user-select: none;
cursor: pointer;
@@ -347,7 +353,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
backdrop-filter: blur(8px) brightness(0.95);
- ${t=>t.isLoading&&ci`
+ ${t=>t.isEnabled===!1&&tn`
+ pointer-events: none;
+ filter: brightness(0.8);
+ `}
+
+ ${t=>t.isLoading&&tn`
pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23565656' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
@@ -359,32 +370,74 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
}
}
`}
-`,i5=A4();tt.div``;const r5=({additionalButtons:t=[]})=>F.jsxs(s5,{children:[F.jsx(i5,{}),t]}),s5=tt.div`
+`,w5=Object.values(Ce),x5=({minEnabledIconsRequired:t})=>{const{config:{updateConfigWith:e,config:n}}=it(),[i,r]=T.useState(n.iconsToChooseFrom),s=u=>!!i.find(c=>c===u),o=u=>{s(u)?r(c=>c.filter(f=>f!==u)):r(c=>[...c,u])},a=i.length>=t,l=t-i.length;return z.jsxs(S5,{isError:!a,children:[z.jsx("h1",{children:"Icons:"}),z.jsx(k5,{children:w5.map(u=>{const c=lm(u);return z.jsx(C5,{isEnabled:s(u),onClick:()=>o(u),children:z.jsx(c,{})})})}),!a&&z.jsxs(b5,{children:["Not enough icons! Please select ",l," ","more"]})]})},S5=ge.div`
+ padding: 8px 16px;
+ border-radius: 16px;
+
+ ${t=>t.isError&&tn`
+ outline: 1px solid red;
+ `}
+`,k5=ge.div`
display: flex;
- flex-direction: column;
- place-items: center;
- gap: 8px;
-`,o5=()=>{const{state:{isIdle:t,isPaused:e,isRunning:n,isFinished:i}}=tn();return F.jsxs("div",{children:[F.jsx("h2",{children:"Debug info"}),F.jsxs("p",{children:["isIdle? ",F.jsx(Fo,{children:t})]}),F.jsxs("p",{children:["isPaused? ",F.jsx(Fo,{children:e})]}),F.jsxs("p",{children:["isRunning? ",F.jsx(Fo,{children:n})]}),F.jsxs("p",{children:["isFinished? ",F.jsx(Fo,{children:i})]})]})},a5=(t,e)=>({[de.CLOSED]:e.CLOSED??"grey",[de.PICKED]:"lightblue",[de.GUESSED]:"lightgreen",[de.GUESSED_WRONG]:"indianred",[de.SOLVED]:"white"})[t],l5=t=>({[de.CLOSED]:void 0,[de.PICKED]:"#ffffff88",[de.GUESSED]:"#00ff0055",[de.GUESSED_WRONG]:"#ff000055",[de.SOLVED]:void 0})[t],u5=t=>{switch(t){case de.GUESSED:return"shake";case de.GUESSED_WRONG:return"infinite-shake";default:return}},c5=t=>{const{cards:{allCards:e}}=tn();return e.find(n=>n.id===t)},f5=t=>{const{cards:{pickCard:e}}=tn(),n=c5(t),i=n.state===de.CLOSED,r=R.useMemo(()=>u5(n.state),[n.state]);return{pickCard:()=>e(n.id),icon:n.icon,state:n.state,isCardClosed:i,cardAnimation:r}};var sn=(t=>(t.SNOW="snow.json",t.NYAN_CAT="nyan-cat.json",t.AMOGUS="amogus.json",t.SPARKLES="sparkles.json",t.NASA="nasa.json",t.COLLISION="collision.json",t.TRIANGLES="triangles.json",t))(sn||{});const Bf={defaultVariant:sn.NYAN_CAT,allowedOptions:Object.values(sn).sort(),switchButtonStrategy:"next",enableInteractivity:!1},cm="ts-particles/bg",d5={[sn.SNOW]:{BOARD:{BG:["#607fbd","#335dac"]},ICON_CARD:{CLOSED:"#b8b8b8"}},[sn.NYAN_CAT]:{BOARD:{BG:["#0c4883","#382986"]},ICON_CARD:{CLOSED:"#5e7ea1"}},[sn.AMOGUS]:{BOARD:{BG:"transparent"},ICON_CARD:{CLOSED:"transparent"}},[sn.SPARKLES]:{BOARD:{BG:["#8686ab","#7070aa"]},ICON_CARD:{CLOSED:"#a7a7c4"}},[sn.NASA]:{BOARD:{BG:["#56569d","#545e9c"]},ICON_CARD:{}},[sn.COLLISION]:{BOARD:{BG:["#1e3c75","#474687"]},ICON_CARD:{}},[sn.TRIANGLES]:{BOARD:{BG:["#2e3469","#233182"]},ICON_CARD:{}}},fm=t=>{const e=R.useMemo(()=>localStorage.getItem(t),[t]),n=R.useCallback(i=>{localStorage.setItem(t,i)},[t]);return{initialLSValue:e,updateLSValue:n}},dm=_e.createContext({}),h5=({children:t})=>{const{initialLSValue:e}=fm(cm),[n,i]=R.useState(e??Bf.defaultVariant),r=R.useMemo(()=>d5[n],[n]);return F.jsx(dm.Provider,{value:{variant:n,setVariant:i,theme:r},children:t})},fl=()=>R.useContext(dm),p5=({id:t})=>{const{icon:e,state:n,pickCard:i,isCardClosed:r,cardAnimation:s}=f5(t),{theme:o}=fl();return F.jsx(b4,{iconName:e,onClick:i,isClosed:r,bgColor:a5(n,o.ICON_CARD),highlightColor:l5(n),animation:s,iconColor:"black"})},m5=()=>{const{cards:{allCards:t},config:{config:e}}=tn(),{theme:n}=fl();return F.jsx(V4,{maxColumns:e.maxColumns,colors:n.BOARD,children:t.map(i=>F.jsx(p5,{id:i.id},i.id))})};function y5(t){return ue({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}},{tag:"path",attr:{d:"M3 15l2.5 -3.8"}},{tag:"path",attr:{d:"M21 14.976l-2.492 -3.776"}},{tag:"path",attr:{d:"M9 17l.5 -4"}},{tag:"path",attr:{d:"M15 17l-.5 -4"}}]})(t)}function g5(t){return ue({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}},{tag:"path",attr:{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"}}]})(t)}const v5=({isGameHidden:t,onToggle:e})=>{const n=t?y5:g5;return F.jsx(w5,{title:"Hide/Show game",onClick:e,children:F.jsx(n,{})})},w5=tt.div`
- position: absolute;
- z-index: 2000;
- font-size: 3rem;
+ gap: 32px;
+ flex-wrap: wrap;
+
+ svg {
+ font-size: 4em;
+ }
+`,C5=ge.span`
cursor: pointer;
+ border-radius: 4px;
+ padding: 16px;
+
+ color: ${t=>t.isEnabled?"lightgreen":""};
+
+ ${t=>t.isEnabled&&tn`
+ outline: 1px solid lightgreen;
+ `}
+`,b5=ge.p`
+ color: red;
+ text-decoration: underline;
+ font-weight: 700;
+`,_5=()=>{const{config:{config:{cardsAmount:t,cardsForSingleGuess:e}}}=it();return z.jsxs(E5,{children:[z.jsx(x5,{minEnabledIconsRequired:t/e}),z.jsx("p",{children:"Form body stuff"}),z.jsx("p",{children:"Form body stuff"}),z.jsx("p",{children:"Form body stuff"}),z.jsx("p",{children:"Form body stuff"}),z.jsx("p",{children:"Form body stuff"}),z.jsx("p",{children:"Form body stuff"}),z.jsx("p",{children:"Form body stuff"}),z.jsx("p",{children:"Form body stuff"})]})},E5=ge.div``,P5=({onCloseRequested:t})=>z.jsx(O5,{children:z.jsxs(M5,{children:[z.jsxs(R5,{children:[z.jsx("h1",{children:"Game configuration"}),z.jsx("span",{onClick:t,children:z.jsx(u5,{})})]}),z.jsx(_5,{})]})}),O5=ge.div`
+ position: fixed;
+ z-index: 6000;
+ background: #2c2c2cf5;
+ height: calc(100vh - 64px);
+ width: calc(100vw - 64px);
+
+ padding: 12px;
+ border-radius: 12px;
- right: 32px;
top: 32px;
- opacity: 0.2;
+`,M5=ge.div`
+ padding: 32px;
+`,R5=ge.div`
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 1em;
- transition: opacity 0.2s ease-out;
+ h1 {
+ justify-self: center;
+ width: 100%;
+ }
- &:hover {
- opacity: 1;
+ svg {
+ cursor: pointer;
+ font-size: 2em;
}
-`,x5=({additionalButtons:t})=>{const{state:{isFinished:e}}=tn(),[n,i]=R.useState(!1);return F.jsxs(F.Fragment,{children:[F.jsx(v5,{isGameHidden:n,onToggle:()=>i(r=>!r)}),F.jsxs(S5,{isHidden:n,children:[F.jsx(k5,{children:"Guessing game"}),F.jsx(m5,{}),F.jsx(r5,{additionalButtons:t})]}),Dt.displayDebugStats&&F.jsx(o5,{}),e&&F.jsx(t5,{})]})},k5=tt.h1`
+`,z5={restartGameButton:!0,configureGameButton:Q4()??!1},mm=K4(z5),T5=mm("configureGameButton",()=>{const[t,e]=T.useState(!1),n=()=>e(!0),i=()=>e(!1);return z.jsxs(z.Fragment,{children:[z.jsx(I5,{children:z.jsxs(Gf,{onClick:n,children:["Configure ",z.jsx(l5,{})]})}),t&&z.jsx(P5,{onCloseRequested:i})]})}),I5=ge.div``,D5=({additionalButtons:t=[]})=>z.jsxs(L5,{children:[z.jsx(T5,{}),t]}),L5=ge.div`
+ display: flex;
+ flex-direction: column;
+ place-items: center;
+ gap: 8px;
+`,A5=()=>{const{state:{isIdle:t,isPaused:e,isRunning:n,isFinished:i}}=it();return z.jsxs("div",{children:[z.jsx("h2",{children:"Debug info"}),z.jsxs("p",{children:["isIdle? ",z.jsx($o,{children:t})]}),z.jsxs("p",{children:["isPaused? ",z.jsx($o,{children:e})]}),z.jsxs("p",{children:["isRunning? ",z.jsx($o,{children:n})]}),z.jsxs("p",{children:["isFinished? ",z.jsx($o,{children:i})]})]})},F5=(t,e)=>({[de.CLOSED]:e.CLOSED??"grey",[de.PICKED]:"lightblue",[de.GUESSED]:"lightgreen",[de.GUESSED_WRONG]:"indianred",[de.SOLVED]:"white"})[t],N5=t=>({[de.CLOSED]:void 0,[de.PICKED]:"#ffffff88",[de.GUESSED]:"#00ff0055",[de.GUESSED_WRONG]:"#ff000055",[de.SOLVED]:void 0})[t],$5=t=>{switch(t){case de.GUESSED:return"shake";case de.GUESSED_WRONG:return"infinite-shake";default:return}},j5=t=>{const{cards:{allCards:e}}=it();return e.find(n=>n.id===t)},B5=t=>{const{cards:{pickCard:e}}=it(),n=j5(t),i=n.state===de.CLOSED,r=T.useMemo(()=>$5(n.state),[n.state]);return{pickCard:()=>e(n.id),icon:n.icon,state:n.state,isCardClosed:i,cardAnimation:r}};var an=(t=>(t.SNOW="snow.json",t.NYAN_CAT="nyan-cat.json",t.AMOGUS="amogus.json",t.SPARKLES="sparkles.json",t.NASA="nasa.json",t.COLLISION="collision.json",t.TRIANGLES="triangles.json",t))(an||{});const Wf={defaultVariant:an.NYAN_CAT,allowedOptions:Object.values(an).sort(),switchButtonStrategy:"next",enableInteractivity:!1},ym="ts-particles/bg",U5={[an.SNOW]:{BOARD:{BG:["#607fbd","#335dac"]},ICON_CARD:{CLOSED:"#b8b8b8"}},[an.NYAN_CAT]:{BOARD:{BG:["#0c4883","#382986"]},ICON_CARD:{CLOSED:"#5e7ea1"}},[an.AMOGUS]:{BOARD:{BG:"transparent"},ICON_CARD:{CLOSED:"transparent"}},[an.SPARKLES]:{BOARD:{BG:["#8686ab","#7070aa"]},ICON_CARD:{CLOSED:"#a7a7c4"}},[an.NASA]:{BOARD:{BG:["#56569d","#545e9c"]},ICON_CARD:{}},[an.COLLISION]:{BOARD:{BG:["#1e3c75","#474687"]},ICON_CARD:{}},[an.TRIANGLES]:{BOARD:{BG:["#2e3469","#233182"]},ICON_CARD:{}}},gm=t=>{const e=T.useMemo(()=>localStorage.getItem(t),[t]),n=T.useCallback(i=>{localStorage.setItem(t,i)},[t]);return{initialLSValue:e,updateLSValue:n}},vm=Oe.createContext({}),H5=({children:t})=>{const{initialLSValue:e}=gm(ym),[n,i]=T.useState(e??Wf.defaultVariant),r=T.useMemo(()=>U5[n],[n]);return z.jsx(vm.Provider,{value:{variant:n,setVariant:i,theme:r},children:t})},pl=()=>T.useContext(vm),G5=({id:t})=>{const{icon:e,state:n,pickCard:i,isCardClosed:r,cardAnimation:s}=B5(t),{theme:o}=pl();return z.jsx(R4,{iconName:e,onClick:i,isClosed:r,bgColor:F5(n,o.ICON_CARD),highlightColor:N5(n),animation:s,iconColor:"black"})},W5=()=>{const{cards:{allCards:t},config:{config:e},state:{isRunning:n}}=it(),{theme:i}=pl();return z.jsx(f5,{maxColumns:e.maxColumns,colors:i.BOARD,isDisabled:!n,children:t.map(r=>z.jsx(G5,{id:r.id},r.id))})};function V5(t){return le({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12.75 8a4.5 4.5 0 0 1-8.61 1.834l-1.391.565A6.001 6.001 0 0 0 14.25 8 6 6 0 0 0 3.5 4.334V2.5H2v4l.75.75h3.5v-1.5H4.352A4.5 4.5 0 0 1 12.75 8z"}}]})(t)}const q5=()=>{const{state:{isAboutToRestart:t,prepareToRestart:e}}=it();return{isDisabled:!e,isLoading:t,text:t?"Restarting...":"Restart",restartGame:e??void 0}},Q5=mm("restartGameButton",()=>{const{isDisabled:t,restartGame:e,isLoading:n,text:i}=q5();return z.jsxs(Gf,{isEnabled:!t,isLoading:n,onClick:e,children:[i," ",z.jsx(V5,{})]})}),K5=({additionalButtons:t})=>{const{state:{isFinished:e}}=it();return z.jsxs(z.Fragment,{children:[z.jsxs(X5,{children:[z.jsx(Y5,{children:"Guessing game"}),z.jsx(Q5,{}),z.jsx(W5,{}),z.jsx(D5,{additionalButtons:t})]}),Lt.displayDebugStats&&z.jsx(A5,{}),e&&z.jsx(v5,{})]})},Y5=ge.h1`
color: #d9d9d9;
text-shadow:
-1px -1px 1px rgba(255, 255, 255, 0.1),
1px 1px 1px rgba(0, 0, 0, 0.5);
-`,S5=tt.div`
+`,X5=ge.div`
width: 100%;
height: 100%;
display: flex;
@@ -395,11 +448,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
position: relative;
z-index: 2000;
- transition: opacity .5s ease-in;
-
- ${t=>t.isHidden&&ci`
- pointer-events: none;
- opacity: 0;
- `}
-`,C5=({additionalButtons:t})=>F.jsx($4,{children:F.jsx(b5,{additionalButtons:t})}),b5=_e.memo(({additionalButtons:t=[]})=>(B4(),F.jsx(x5,{additionalButtons:t}))),_s="generated",_5="pointerdown",E5="pointerup",Tc="pointerleave",P5="pointerout",Ui="pointermove",O5="touchstart",Lh="touchend",M5="touchmove",z5="touchcancel",R5="resize",T5="visibilitychange",Ft="tsParticles - Error";class dt{constructor(e,n,i){if(this._updateFromAngle=(r,s)=>{this.x=Math.cos(r)*s,this.y=Math.sin(r)*s},!Yt(e)&&e){this.x=e.x,this.y=e.y;const r=e;this.z=r.z?r.z:0}else if(e!==void 0&&n!==void 0)this.x=e,this.y=n,this.z=i??0;else throw new Error(`${Ft} Vector3d not initialized correctly`)}static get origin(){return dt.create(0,0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return dt.create(e.x,e.y,e.z)}static create(e,n,i){return new dt(e,n,i)}add(e){return dt.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return dt.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return dt.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**2+this.y**2}mult(e){return dt.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){const e=this.length;e!=0&&this.multTo(1/e)}rotate(e){return dt.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),0)}setTo(e){this.x=e.x,this.y=e.y;const n=e;this.z=n.z?n.z:0}sub(e){return dt.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}}class Re extends dt{constructor(e,n){super(e,n,0)}static get origin(){return Re.create(0,0)}static clone(e){return Re.create(e.x,e.y)}static create(e,n){return new Re(e,n)}}let D5=Math.random;const Dc=new Map;function tu(t,e){Dc.get(t)||Dc.set(t,e)}function hm(t){return Dc.get(t)||(e=>e)}function ae(){return Jt(D5(),0,1-1e-16)}function Jt(t,e,n){return Math.min(Math.max(t,e),n)}function nu(t,e,n,i){return Math.floor((t*n+e*i)/(n+i))}function at(t){const e=Yn(t);let n=Uf(t);return e===n&&(n=0),ae()*(e-n)+n}function N(t){return Yt(t)?t:at(t)}function Uf(t){return Yt(t)?t:t.min}function Yn(t){return Yt(t)?t:t.max}function G(t,e){if(t===e||e===void 0&&Yt(t))return t;const n=Uf(t),i=Yn(t);return e!==void 0?{min:Math.min(n,e),max:Math.max(i,e)}:G(n,i)}function Hi(t){const e=t.random,{enable:n,minimumValue:i}=ai(e)?{enable:e,minimumValue:0}:e;return N(n?G(t.value,i):t.value)}function Ze(t,e){const n=t.x-e.x,i=t.y-e.y;return{dx:n,dy:i,distance:Math.sqrt(n**2+i**2)}}function gt(t,e){return Ze(t,e).distance}function I5(t,e,n){if(Yt(t))return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"inside":return Math.atan2(n.y-e.y,n.x-e.x);case"outside":return Math.atan2(e.y-n.y,e.x-n.x);default:return ae()*Math.PI*2}}function L5(t){const e=Re.origin;return e.length=1,e.angle=t,e}function Ah(t,e,n,i){return Re.create(t.x*(n-i)/(n+i)+e.x*2*i/(n+i),t.y)}function A5(t){var e,n;return{x:((e=t.position)==null?void 0:e.x)??ae()*t.size.width,y:((n=t.position)==null?void 0:n.y)??ae()*t.size.height}}function pm(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}const F5={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function Gi(){return F5}function Fh(t){const e={bounced:!1},{pSide:n,pOtherSide:i,rectSide:r,rectOtherSide:s,velocity:o,factor:a}=t;return i.mins.max||i.maxs.max||(n.max>=r.min&&n.max<=(r.max+r.min)/2&&o>0||n.min<=r.max&&n.min>(r.max+r.min)/2&&o<0)&&(e.velocity=o*-a,e.bounced=!0),e}function N5(t,e){const n=Te(e,i=>t.matches(i));return vt(n)?n.some(i=>i):n}function qr(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function $5(){return!qr()&&typeof matchMedia<"u"}function mm(t){if($5())return matchMedia(t)}function j5(t){if(!(qr()||typeof MutationObserver>"u"))return new MutationObserver(t)}function ve(t,e){return t===e||vt(e)&&e.indexOf(t)>-1}async function B5(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function U5(t){return Math.floor(ae()*t.length)}function dl(t,e,n=!0){return t[e!==void 0&&n?e%t.length:U5(t)]}function Hf(t,e,n,i,r){return H5(yo(t,i??0),e,n,r)}function H5(t,e,n,i){let r=!0;return(!i||i==="bottom")&&(r=t.topn.x),r&&(!i||i==="right")&&(r=t.leftn.y),r}function yo(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function He(t,...e){for(const n of e){if(n==null)continue;if(!cr(n)){t=n;continue}const i=Array.isArray(n);i&&(cr(t)||!t||!Array.isArray(t))?t=[]:!i&&(cr(t)||!t||Array.isArray(t))&&(t={});for(const r in n){if(r==="__proto__")continue;const s=n,o=s[r],a=t;a[r]=cr(o)&&Array.isArray(o)?o.map(l=>He(a[r],l)):He(a[r],o)}}return t}function Gf(t,e){return!!vm(e,n=>n.enable&&ve(t,n.mode))}function Wf(t,e,n){Te(e,i=>{const r=i.mode;i.enable&&ve(t,r)&&G5(i,n)})}function G5(t,e){const n=t.selectors;Te(n,i=>{e(i,t)})}function ym(t,e){if(!(!e||!t))return vm(t,n=>N5(e,n.selectors))}function Ic(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:Re.create(Hi(t.options.bounce.horizontal),Hi(t.options.bounce.vertical))}}function gm(t,e){const{x:n,y:i}=t.velocity.sub(e.velocity),[r,s]=[t.position,e.position],{dx:o,dy:a}=Ze(s,r);if(n*o+i*a<0)return;const l=-Math.atan2(a,o),u=t.mass,c=e.mass,f=t.velocity.rotate(l),d=e.velocity.rotate(l),h=Ah(f,d,u,c),g=Ah(d,f,u,c),v=h.rotate(-l),k=g.rotate(-l);t.velocity.x=v.x*t.factor.x,t.velocity.y=v.y*t.factor.y,e.velocity.x=k.x*e.factor.x,e.velocity.y=k.y*e.factor.y}function W5(t,e){const n=t.getPosition(),i=t.getRadius(),r=yo(n,i),s=Fh({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:Hi(t.options.bounce.horizontal)});s.bounced&&(s.velocity!==void 0&&(t.velocity.x=s.velocity),s.position!==void 0&&(t.position.x=s.position));const o=Fh({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:Hi(t.options.bounce.vertical)});o.bounced&&(o.velocity!==void 0&&(t.velocity.y=o.velocity),o.position!==void 0&&(t.position.y=o.position))}function Te(t,e){return vt(t)?t.map((n,i)=>e(n,i)):e(t,0)}function _n(t,e,n){return vt(t)?dl(t,e,n):t}function vm(t,e){return vt(t)?t.find((n,i)=>e(n,i)):e(t,0)?t:void 0}function wm(t,e){const n=t.value,i=t.animation,r={delayTime:N(i.delay)*1e3,enable:i.enable,value:N(t.value)*e,max:Yn(n)*e,min:Uf(n)*e,loops:0,maxLoops:N(i.count),time:0};if(i.enable){switch(r.decay=1-N(i.decay),i.mode){case"increase":r.status="increasing";break;case"decrease":r.status="decreasing";break;case"random":r.status=ae()>=.5?"increasing":"decreasing";break}const s=i.mode==="auto";switch(i.startValue){case"min":r.value=r.min,s&&(r.status="increasing");break;case"max":r.value=r.max,s&&(r.status="decreasing");break;case"random":default:r.value=at(r),s&&(r.status=ae()>=.5?"increasing":"decreasing");break}}return r.initialValue=r.value,r}function q5(t,e){if(!(t.mode==="percent")){const{mode:r,...s}=t;return s}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}function xm(t,e){return q5(t,e)}function ai(t){return typeof t=="boolean"}function Kt(t){return typeof t=="string"}function Yt(t){return typeof t=="number"}function km(t){return typeof t=="function"}function cr(t){return typeof t=="object"&&t!==null}function vt(t){return Array.isArray(t)}const Aa="random",ra="mid",hl=new Map;function Nh(t){hl.set(t.key,t)}function iu(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Q5(t){for(const[,s]of hl)if(t.startsWith(s.stringPrefix))return s.parseString(t);const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=t.replace(e,(s,o,a,l,u)=>o+o+a+a+l+l+(u!==void 0?u+u:"")),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,r=i.exec(n);return r?{a:r[4]!==void 0?parseInt(r[4],16)/255:1,b:parseInt(r[3],16),g:parseInt(r[2],16),r:parseInt(r[1],16)}:void 0}function Xt(t,e,n=!0){if(!t)return;const i=Kt(t)?{value:t}:t;if(Kt(i.value))return Sm(i.value,e,n);if(vt(i.value))return Xt({value:dl(i.value,e,n)});for(const[,r]of hl){const s=r.handleRangeColor(i);if(s)return s}}function Sm(t,e,n=!0){if(!t)return;const i=Kt(t)?{value:t}:t;if(Kt(i.value))return i.value===Aa?bm():V5(i.value);if(vt(i.value))return Sm({value:dl(i.value,e,n)});for(const[,r]of hl){const s=r.handleColor(i);if(s)return s}}function Qs(t,e,n=!0){const i=Xt(t,e,n);return i?Cm(i):void 0}function Cm(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),s=Math.min(e,n,i),o={h:0,l:(r+s)/2,s:0};return r!==s&&(o.s=o.l<.5?(r-s)/(r+s):(r-s)/(2-r-s),o.h=e===r?(n-i)/(r-s):o.h=n===r?2+(i-e)/(r-s):4+(e-n)/(r-s)),o.l*=100,o.s*=100,o.h*=60,o.h<0&&(o.h+=360),o.h>=360&&(o.h-=360),o}function V5(t){return Q5(t)}function Qr(t){const e={b:0,g:0,r:0},n={h:t.h/360,l:t.l/100,s:t.s/100};if(!n.s)e.r=e.g=e.b=n.l;else{const i=n.l<.5?n.l*(1+n.s):n.l+n.s-n.l*n.s,r=2*n.l-i;e.r=iu(r,i,n.h+1/3),e.g=iu(r,i,n.h),e.b=iu(r,i,n.h-1/3)}return e.r=Math.floor(e.r*255),e.g=Math.floor(e.g*255),e.b=Math.floor(e.b*255),e}function K5(t){const e=Qr(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function bm(t){const e=t??0;return{b:Math.floor(at(G(e,256))),g:Math.floor(at(G(e,256))),r:Math.floor(at(G(e,256)))}}function En(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function Vs(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function qf(t,e,n,i){let r=t,s=e;return r.r===void 0&&(r=Qr(t)),s.r===void 0&&(s=Qr(e)),{b:nu(r.b,s.b,n,i),g:nu(r.g,s.g,n,i),r:nu(r.r,s.r,n,i)}}function Lc(t,e,n){if(n===Aa)return bm();if(n===ra){const i=t.getFillColor()??t.getStrokeColor(),r=(e==null?void 0:e.getFillColor())??(e==null?void 0:e.getStrokeColor());if(i&&r&&e)return qf(i,r,t.getRadius(),e.getRadius());{const s=i??r;if(s)return Qr(s)}}else return n}function _m(t,e,n){const i=Kt(t)?t:t.value;return i===Aa?n?Xt({value:i}):e?Aa:ra:i===ra?ra:Xt({value:i})}function $h(t){return t!==void 0?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function Em(t,e,n){const i={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(ru(i.h,e.h,n),ru(i.s,e.s,n),ru(i.l,e.l,n)),i}function ru(t,e,n){t.enable=e.enable,t.enable?(t.velocity=N(e.speed)/100*n,t.decay=1-N(e.decay),t.status="increasing",t.loops=0,t.maxLoops=N(e.count),t.time=0,t.delayTime=N(e.delay)*1e3,e.sync||(t.velocity*=ae(),t.value*=ae()),t.initialValue=t.value):t.velocity=0}function Es(t,e,n){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.closePath()}function Y5(t,e,n,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.lineTo(i.x,i.y),t.closePath()}function X5(t,e,n){t.fillStyle=n??"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height)}function Z5(t,e,n,i){n&&(t.globalAlpha=i,t.drawImage(n,0,0,e.width,e.height),t.globalAlpha=1)}function su(t,e){t.clearRect(0,0,e.width,e.height)}function J5(t){const{container:e,context:n,particle:i,delta:r,colorStyles:s,backgroundMask:o,composite:a,radius:l,opacity:u,shadow:c,transform:f}=t,d=i.getPosition(),h=i.rotation+(i.pathRotation?i.velocity.angle:0),g={sin:Math.sin(h),cos:Math.cos(h)},v={a:g.cos*(f.a??1),b:g.sin*(f.b??1),c:-g.sin*(f.c??1),d:g.cos*(f.d??1)};n.setTransform(v.a,v.b,v.c,v.d,d.x,d.y),n.beginPath(),o&&(n.globalCompositeOperation=a);const k=i.shadowColor;c.enable&&k&&(n.shadowBlur=c.blur,n.shadowColor=En(k),n.shadowOffsetX=c.offset.x,n.shadowOffsetY=c.offset.y),s.fill&&(n.fillStyle=s.fill);const p=i.strokeWidth??0;n.lineWidth=p,s.stroke&&(n.strokeStyle=s.stroke),ew(e,n,i,l,u,r),p>0&&n.stroke(),i.close&&n.closePath(),i.fill&&n.fill(),tw(e,n,i,l,u,r),n.globalCompositeOperation="source-over",n.setTransform(1,0,0,1,0,0)}function ew(t,e,n,i,r,s){if(!n.shape)return;const o=t.drawers.get(n.shape);o&&o.draw(e,n,i,r,s,t.retina.pixelRatio)}function tw(t,e,n,i,r,s){if(!n.shape)return;const o=t.drawers.get(n.shape);!o||!o.afterEffect||o.afterEffect(e,n,i,r,s,t.retina.pixelRatio)}function nw(t,e,n){e.draw&&e.draw(t,n)}function iw(t,e,n,i){e.drawParticle&&e.drawParticle(t,n,i)}function rw(t,e,n){return{h:t.h,s:t.s,l:t.l+(e==="darken"?-1:1)*n}}function sw(t,e,n){const i=e[n];i!==void 0&&(t[n]=(t[n]??1)*i)}class ow{constructor(e){this.container=e,this._applyPostDrawUpdaters=n=>{for(const i of this._postDrawUpdaters)i.afterDraw&&i.afterDraw(n)},this._applyPreDrawUpdaters=(n,i,r,s,o,a)=>{for(const l of this._preDrawUpdaters){if(l.getColorStyles){const{fill:u,stroke:c}=l.getColorStyles(i,n,r,s);u&&(o.fill=u),c&&(o.stroke=c)}if(l.getTransformValues){const u=l.getTransformValues(i);for(const c in u)sw(a,u,c)}l.beforeDraw&&l.beforeDraw(i)}},this._applyResizePlugins=()=>{for(const n of this._resizePlugins)n.resize&&n.resize()},this._getPluginParticleColors=n=>{let i,r;for(const s of this._colorPlugins)if(!i&&s.particleFillColor&&(i=Qs(s.particleFillColor(n))),!r&&s.particleStrokeColor&&(r=Qs(s.particleStrokeColor(n))),i&&r)break;return[i,r]},this._initCover=()=>{const n=this.container.actualOptions,i=n.backgroundMask.cover,r=i.color,s=Xt(r);if(s){const o={...s,a:i.opacity};this._coverColorStyle=En(o,o.a)}},this._initStyle=()=>{const n=this.element,i=this.container.actualOptions;if(n){this._fullScreen?(this._originalStyle=He({},n.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const r in i.style){if(!r||!i.style)continue;const s=i.style[r];s&&n.style.setProperty(r,s,"important")}}},this._initTrail=async()=>{const n=this.container.actualOptions,i=n.particles.move.trail,r=i.fill;if(i.enable)if(r.color){const s=Xt(r.color);if(!s)return;const o=n.particles.move.trail;this._trailFill={color:{...s},opacity:1/o.length}}else await new Promise((s,o)=>{if(!r.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._trailFill={image:a,opacity:1/i.length},s()}),a.addEventListener("error",l=>{o(l.error)}),a.src=r.image})},this._paintBase=n=>{this.draw(i=>X5(i,this.size,n))},this._paintImage=(n,i)=>{this.draw(r=>Z5(r,this.size,n,i))},this._repairStyle=()=>{const n=this.element;n&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>i.observe(n,{attributes:!0})))},this._resetOriginalStyle=()=>{const n=this.element,i=this._originalStyle;if(!(n&&i))return;const r=n.style;r.position=i.position,r.zIndex=i.zIndex,r.top=i.top,r.left=i.left,r.width=i.width,r.height=i.height},this._safeMutationObserver=n=>{this._mutationObserver&&n(this._mutationObserver)},this._setFullScreenStyle=()=>{const n=this.element;if(!n)return;const i="important",r=n.style;r.setProperty("position","fixed",i),r.setProperty("z-index",this.container.actualOptions.fullScreen.zIndex.toString(10),i),r.setProperty("top","0",i),r.setProperty("left","0",i),r.setProperty("width","100%",i),r.setProperty("height","100%",i)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,n=e.particles.move.trail,i=this._trailFill;e.backgroundMask.enable?this.paint():n.enable&&n.length>0&&i?i.color?this._paintBase(En(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):this.draw(r=>{su(r,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e&&e.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const n=this._context;if(n)return e(n)}drawParticle(e,n){if(e.spawning||e.destroyed)return;const i=e.getRadius();if(i<=0)return;const r=e.getFillColor(),s=e.getStrokeColor()??r;let[o,a]=this._getPluginParticleColors(e);o||(o=r),a||(a=s),!(!o&&!a)&&this.draw(l=>{var y;const u=this.container,c=u.actualOptions,f=e.options.zIndex,d=(1-e.zIndexFactor)**f.opacityRate,h=e.bubble.opacity??((y=e.opacity)==null?void 0:y.value)??1,g=e.strokeOpacity??h,v=h*d,k=g*d,p={},m={fill:o?Vs(o,v):void 0};m.stroke=a?Vs(a,k):m.fill,this._applyPreDrawUpdaters(l,e,i,v,m,p),J5({container:u,context:l,particle:e,delta:n,colorStyles:m,backgroundMask:c.backgroundMask.enable,composite:c.backgroundMask.composite,radius:i*(1-e.zIndexFactor)**f.sizeRate,opacity:v,shadow:e.options.shadow,transform:p}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,n,i){this.draw(r=>iw(r,e,n,i))}drawPlugin(e,n){this.draw(i=>nw(i,e,n))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=j5(e=>{for(const n of e)n.type==="attributes"&&n.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),this._initCover();try{await this._initTrail()}catch(e){Gi().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions,n=e.background,i=this.element;if(!i)return;const r=i.style;if(r){if(n.color){const s=Xt(n.color);r.backgroundColor=s?En(s,n.opacity):""}else r.backgroundColor="";r.backgroundImage=n.image||"",r.backgroundPosition=n.position||"",r.backgroundRepeat=n.repeat||"",r.backgroundSize=n.size||""}}initPlugins(){this._resizePlugins=[];for(const[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor||e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles||e.getTransformValues||e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&_s in e.dataset?e.dataset[_s]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=He({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(n=>{this.element&&n.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const e=this.container.actualOptions;this.draw(n=>{e.backgroundMask.enable&&e.backgroundMask.cover?(su(n,this.size),this._paintBase(this._coverColorStyle)):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,n=e.retina.pixelRatio,i=e.canvas.size,r={width:this.element.offsetWidth*n,height:this.element.offsetHeight*n};if(r.height===i.height&&r.width===i.width&&r.height===this.element.height&&r.width===this.element.width)return!1;const s={...i};return this.element.width=i.width=this.element.offsetWidth*n,this.element.height=i.height=this.element.offsetHeight*n,this.container.started&&(this.resizeFactor={width:i.width/s.width,height:i.height/s.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>su(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,n=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),n&&await e.refresh()}}function bt(t,e,n,i,r){if(i){let s={passive:!0};ai(r)?s.capture=r:r!==void 0&&(s=r),t.addEventListener(e,n,s)}else{const s=r;t.removeEventListener(e,n,s)}}class aw{constructor(e){this.container=e,this._doMouseTouchClick=n=>{const i=this.container,r=i.actualOptions;if(this._canPush){const s=i.interactivity.mouse,o=s.position;if(!o)return;s.clickPosition={...o},s.clickTime=new Date().getTime();const a=r.interactivity.events.onClick;Te(a.mode,l=>this.container.handleClickMode(l))}n.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=n=>{const i=n,r=this.container,s=r.options,o=s.defaultThemes,a=i.matches?o.dark:o.light,l=s.themes.find(u=>u.name===a);l&&l.default.auto&&r.loadTheme(a)},this._handleVisibilityChange=()=>{const n=this.container,i=n.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document&&document.hidden?(n.pageHidden=!0,n.pause()):(n.pageHidden=!1,n.getAnimationStatus()?n.play(!0):n.draw(!0)))},this._handleWindowResize=async()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout),this._resizeTimeout=setTimeout(async()=>{const n=this.container.canvas;n&&await n.windowResize()},this.container.actualOptions.interactivity.events.resize.delay*1e3)},this._manageInteractivityListeners=(n,i)=>{const r=this._handlers,s=this.container,o=s.actualOptions,a=s.interactivity.element;if(!a)return;const l=a,u=s.canvas.element;u&&(u.style.pointerEvents=l===u?"initial":"none"),(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(bt(a,Ui,r.mouseMove,i),bt(a,O5,r.touchStart,i),bt(a,M5,r.touchMove,i),o.interactivity.events.onClick.enable?(bt(a,Lh,r.touchEndClick,i),bt(a,E5,r.mouseUp,i),bt(a,_5,r.mouseDown,i)):bt(a,Lh,r.touchEnd,i),bt(a,n,r.mouseLeave,i),bt(a,z5,r.touchCancel,i))},this._manageListeners=n=>{const i=this._handlers,r=this.container,s=r.actualOptions,o=s.interactivity.detectsOn,a=r.canvas.element;let l=Tc;o==="window"?(r.interactivity.element=window,l=P5):o==="parent"&&a?r.interactivity.element=a.parentElement??a.parentNode:r.interactivity.element=a,this._manageMediaMatch(n),this._manageResize(n),this._manageInteractivityListeners(l,n),document&&bt(document,T5,i.visibilityChange,n,!1)},this._manageMediaMatch=n=>{const i=this._handlers,r=mm("(prefers-color-scheme: dark)");if(r){if(r.addEventListener!==void 0){bt(r,"change",i.themeChange,n);return}r.addListener!==void 0&&(n?r.addListener(i.oldThemeChange):r.removeListener(i.oldThemeChange))}},this._manageResize=n=>{const i=this._handlers,r=this.container;if(!r.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){bt(window,R5,i.resize,n);return}const o=r.canvas.element;this._resizeObserver&&!n?(o&&this._resizeObserver.unobserve(o),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&n&&o&&(this._resizeObserver=new ResizeObserver(async a=>{a.find(u=>u.target===o)&&await this._handleWindowResize()}),this._resizeObserver.observe(o))},this._mouseDown=()=>{const{interactivity:n}=this.container;if(!n)return;const{mouse:i}=n;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=n=>{const i=this.container,r=i.actualOptions,{mouse:s}=i.interactivity;s.inside=!0;let o=!1;const a=s.position;if(!(!a||!r.interactivity.events.onClick.enable)){for(const[,l]of i.plugins)if(l.clickPositionValid&&(o=l.clickPositionValid(a),o))break;o||this._doMouseTouchClick(n),s.clicking=!1}},this._mouseTouchFinish=()=>{const n=this.container.interactivity;if(!n)return;const i=n.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,n.status=Tc,i.inside=!1,i.clicking=!1},this._mouseTouchMove=n=>{const i=this.container,r=i.actualOptions,s=i.interactivity,o=i.canvas.element;if(!s||!s.element)return;s.mouse.inside=!0;let a;if(n.type.startsWith("pointer")){this._canPush=!0;const u=n;if(s.element===window){if(o){const c=o.getBoundingClientRect();a={x:u.clientX-c.left,y:u.clientY-c.top}}}else if(r.interactivity.detectsOn==="parent"){const c=u.target,f=u.currentTarget;if(c&&f&&o){const d=c.getBoundingClientRect(),h=f.getBoundingClientRect(),g=o.getBoundingClientRect();a={x:u.offsetX+2*d.left-(h.left+g.left),y:u.offsetY+2*d.top-(h.top+g.top)}}else a={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY}}else u.target===o&&(a={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY})}else if(this._canPush=n.type!=="touchmove",o){const u=n,c=u.touches[u.touches.length-1],f=o.getBoundingClientRect();a={x:c.clientX-(f.left??0),y:c.clientY-(f.top??0)}}const l=i.retina.pixelRatio;a&&(a.x*=l,a.y*=l),s.mouse.position=a,s.status=Ui},this._touchEnd=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.delete(s.identifier);this._mouseTouchFinish()},this._touchEndClick=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.delete(s.identifier);this._mouseTouchClick(n)},this._touchStart=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.set(s.identifier,performance.now());this._mouseTouchMove(n)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:n=>this._mouseTouchMove(n),mouseUp:n=>this._mouseTouchClick(n),touchStart:n=>this._touchStart(n),touchMove:n=>this._mouseTouchMove(n),touchEnd:n=>this._touchEnd(n),touchCancel:n=>this._touchEnd(n),touchEndClick:n=>this._touchEndClick(n),visibilityChange:()=>this._handleVisibilityChange(),themeChange:n=>this._handleThemeChange(n),oldThemeChange:n=>this._handleThemeChange(n),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class Ne{constructor(){this.value=""}static create(e,n){const i=new Ne;return i.load(e),n!==void 0&&(Kt(n)||vt(n)?i.load({value:n}):i.load(n)),i}load(e){(e==null?void 0:e.value)!==void 0&&(this.value=e.value)}}class lw{constructor(){this.color=new Ne,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=Ne.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}class uw{constructor(){this.color=new Ne,this.color.value="#fff",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=Ne.create(this.color,e.color)),e.opacity!==void 0&&(this.opacity=e.opacity))}}class cw{constructor(){this.composite="destination-out",this.cover=new uw,this.enable=!1}load(e){if(e){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){const n=e.cover,i=Kt(e.cover)?{color:e.cover}:e.cover;this.cover.load(n.color!==void 0?n:{color:i})}e.enable!==void 0&&(this.enable=e.enable)}}}class fw{constructor(){this.enable=!0,this.zIndex=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}class dw{constructor(){this.enable=!1,this.mode=[]}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}class jh{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get el(){return this.elementId}set el(e){this.elementId=e}get elementId(){return this.ids}set elementId(e){this.ids=e}get ids(){return Te(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=Te(e,n=>`#${n}`)}load(e){if(!e)return;const n=e.ids??e.elementId??e.el;n!==void 0&&(this.ids=n),e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type)}}class hw{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}class pw{constructor(){this.enable=!1,this.mode=[],this.parallax=new hw}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}class mw{constructor(){this.delay=.5,this.enable=!0}load(e){e!==void 0&&(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}class yw{constructor(){this.onClick=new dw,this.onDiv=new jh,this.onHover=new pw,this.resize=new mw}get onclick(){return this.onClick}set onclick(e){this.onClick=e}get ondiv(){return this.onDiv}set ondiv(e){this.onDiv=e}get onhover(){return this.onHover}set onhover(e){this.onHover=e}load(e){if(!e)return;this.onClick.load(e.onClick??e.onclick);const n=e.onDiv??e.ondiv;n!==void 0&&(this.onDiv=Te(n,i=>{const r=new jh;return r.load(i),r})),this.onHover.load(e.onHover??e.onhover),ai(e.resize)?this.resize.enable=e.resize:this.resize.load(e.resize)}}class gw{constructor(e,n){this._engine=e,this._container=n}load(e){if(!e||!this._container)return;const n=this._engine.plugins.interactors.get(this._container);if(n)for(const i of n)i.loadModeOptions&&i.loadModeOptions(this,e)}}class Pm{constructor(e,n){this.detectsOn="window",this.events=new yw,this.modes=new gw(e,n)}get detect_on(){return this.detectsOn}set detect_on(e){this.detectsOn=e}load(e){if(!e)return;const n=e.detectsOn??e.detect_on;n!==void 0&&(this.detectsOn=n),this.events.load(e.events),this.modes.load(e.modes)}}class vw{load(e){e&&(e.position&&(this.position={x:e.position.x??50,y:e.position.y??50,mode:e.position.mode??"percent"}),e.options&&(this.options=He({},e.options)))}}class ww{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=He({},e.options)))}}class xw{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class kw{constructor(){this.name="",this.default=new xw}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=He({},e.options)))}}class ou{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.delay=0,this.decay=0,this.sync=!0}load(e){e&&(e.count!==void 0&&(this.count=G(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(this.offset=G(e.offset)),e.speed!==void 0&&(this.speed=G(e.speed)),e.decay!==void 0&&(this.decay=G(e.decay)),e.delay!==void 0&&(this.delay=G(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class Sw{constructor(){this.h=new ou,this.s=new ou,this.l=new ou}load(e){e&&(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}class Ks extends Ne{constructor(){super(),this.animation=new Sw}static create(e,n){const i=new Ks;return i.load(e),n!==void 0&&(Kt(n)||vt(n)?i.load({value:n}):i.load(n)),i}load(e){if(super.load(e),!e)return;const n=e.animation;n!==void 0&&(n.enable!==void 0?this.animation.h.load(n):this.animation.load(e.animation))}}class Cw{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}class bw{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}class _w{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=G(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=G(e.speed)),e.decay!==void 0&&(this.decay=G(e.decay)),e.delay!==void 0&&(this.delay=G(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class Om extends _w{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.minimumValue!==void 0&&(this.minimumValue=e.minimumValue),e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}class Ew{constructor(){this.enable=!1,this.minimumValue=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.minimumValue!==void 0&&(this.minimumValue=e.minimumValue))}}class mi{constructor(){this.random=new Ew,this.value=0}load(e){e&&(ai(e.random)?this.random.enable=e.random:this.random.load(e.random),e.value!==void 0&&(this.value=G(e.value,this.random.enable?this.random.minimumValue:void 0)))}}class Bh extends mi{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class Mm{constructor(){this.horizontal=new Bh,this.vertical=new Bh}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class Pw{constructor(){this.absorb=new Cw,this.bounce=new Mm,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new bw}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=G(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class Ow{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=G(e.offset)),e.value!==void 0&&(this.value=G(e.value)))}}class Mw{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(e){this.rotate.x=e}get rotateY(){return this.rotate.y}set rotateY(e){this.rotate.y=e}load(e){var r,s;if(!e)return;e.distance!==void 0&&(this.distance=G(e.distance)),e.enable!==void 0&&(this.enable=e.enable);const n=((r=e.rotate)==null?void 0:r.x)??e.rotateX;n!==void 0&&(this.rotate.x=n);const i=((s=e.rotate)==null?void 0:s.y)??e.rotateY;i!==void 0&&(this.rotate.y=i)}}class zw{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}class Rw{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=G(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=G(e.maxSpeed)))}}class Tw{constructor(){this.clamp=!0,this.delay=new mi,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=He(this.options,e.options)))}}class Dw{load(e){e&&(e.color!==void 0&&(this.color=Ne.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}class Iw{constructor(){this.enable=!1,this.length=10,this.fill=new Dw}get fillColor(){return this.fill.color}set fillColor(e){this.fill.load({color:e})}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),(e.fill!==void 0||e.fillColor!==void 0)&&this.fill.load(e.fill||{color:e.fillColor}),e.length!==void 0&&(this.length=e.length))}}class Lw{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class Aw{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=G(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=He({},e.position)))}}class Fw{constructor(){this.angle=new Ow,this.attract=new Mw,this.center=new zw,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Rw,this.path=new Tw,this.outModes=new Lw,this.random=!1,this.size=!1,this.speed=2,this.spin=new Aw,this.straight=!1,this.trail=new Iw,this.vibrate=!1,this.warp=!1}get bounce(){return this.collisions}set bounce(e){this.collisions=e}get collisions(){return!1}set collisions(e){}get noise(){return this.path}set noise(e){this.path=e}get outMode(){return this.outModes.default}set outMode(e){this.outModes.default=e}get out_mode(){return this.outMode}set out_mode(e){this.outMode=e}load(e){if(!e)return;this.angle.load(Yt(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=G(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=Yt(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=G(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);const n=e.outModes??e.outMode??e.out_mode;n!==void 0&&(cr(n)?this.outModes.load(n):this.outModes.load({default:n})),this.path.load(e.path??e.noise),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=G(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}class Nw extends Om{constructor(){super(),this.destroy="none",this.speed=2}get opacity_min(){return this.minimumValue}set opacity_min(e){this.minimumValue=e}load(e){(e==null?void 0:e.opacity_min)!==void 0&&e.minimumValue===void 0&&(e.minimumValue=e.opacity_min),super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class $w extends mi{constructor(){super(),this.animation=new Nw,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(e){this.animation=e}load(e){if(!e)return;super.load(e);const n=e.animation??e.anim;n!==void 0&&(this.animation.load(n),this.value=G(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class jw{constructor(){this.enable=!1,this.width=1920,this.height=1080}get area(){return this.width}set area(e){this.width=e}get factor(){return this.height}set factor(e){this.height=e}get value_area(){return this.area}set value_area(e){this.area=e}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);const n=e.width??e.area??e.value_area;n!==void 0&&(this.width=n);const i=e.height??e.factor;i!==void 0&&(this.height=i)}}class Bw{constructor(){this.density=new jw,this.limit=0,this.value=0}get max(){return this.limit}set max(e){this.limit=e}load(e){if(!e)return;this.density.load(e.density);const n=e.limit??e.max;n!==void 0&&(this.limit=n),e.value!==void 0&&(this.value=e.value)}}class Uw{constructor(){this.blur=0,this.color=new Ne,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=Ne.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}const au="character",lu="char",uu="image",cu="images",fu="polygon",du="star";class Hw{constructor(){this.loadShape=(e,n,i,r)=>{if(!e)return;const s=vt(e),o=s?[]:{},a=s!==vt(this.options[n]),l=s!==vt(this.options[i]);a&&(this.options[n]=o),l&&r&&(this.options[i]=o),this.options[n]=He(this.options[n]??o,e),(!this.options[i]||r)&&(this.options[i]=He(this.options[i]??o,e))},this.close=!0,this.fill=!0,this.options={},this.type="circle"}get character(){return this.options[au]??this.options[lu]}set character(e){this.options[lu]=this.options[au]=e}get custom(){return this.options}set custom(e){this.options=e}get image(){return this.options[uu]??this.options[cu]}set image(e){this.options[cu]=this.options[uu]=e}get images(){return this.image}set images(e){this.image=e}get polygon(){return this.options[fu]??this.options[du]}set polygon(e){this.options[du]=this.options[fu]=e}get stroke(){return[]}set stroke(e){}load(e){if(!e)return;const n=e.options??e.custom;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=He(this.options[i]??{},r))}this.loadShape(e.character,au,lu,!0),this.loadShape(e.polygon,fu,du,!1),this.loadShape(e.image??e.images,uu,cu,!0),e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class Gw extends Om{constructor(){super(),this.destroy="none",this.speed=5}get size_min(){return this.minimumValue}set size_min(e){this.minimumValue=e}load(e){(e==null?void 0:e.size_min)!==void 0&&e.minimumValue===void 0&&(e.minimumValue=e.size_min),super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Ww extends mi{constructor(){super(),this.animation=new Gw,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(e){this.animation=e}load(e){if(super.load(e),!e)return;const n=e.animation??e.anim;n!==void 0&&(this.animation.load(n),this.value=G(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Uh{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=Ks.create(this.color,e.color)),e.width!==void 0&&(this.width=G(e.width)),e.opacity!==void 0&&(this.opacity=G(e.opacity)))}}class qw extends mi{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}class Qw{constructor(e,n){this._engine=e,this._container=n,this.bounce=new Mm,this.collisions=new Pw,this.color=new Ks,this.color.value="#fff",this.groups={},this.move=new Fw,this.number=new Bw,this.opacity=new $w,this.reduceDuplicates=!1,this.shadow=new Uw,this.shape=new Hw,this.size=new Ww,this.stroke=new Uh,this.zIndex=new qw}load(e){var r,s,o;if(!e)return;if(this.bounce.load(e.bounce),this.color.load(Ks.create(this.color,e.color)),e.groups!==void 0)for(const a in e.groups){const l=e.groups[a];l!==void 0&&(this.groups[a]=He(this.groups[a]??{},l))}this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex);const n=((r=e.move)==null?void 0:r.collisions)??((s=e.move)==null?void 0:s.bounce);n!==void 0&&(this.collisions.enable=n),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=He({},e.interactivity));const i=e.stroke??((o=e.shape)==null?void 0:o.stroke);if(i&&(this.stroke=Te(i,a=>{const l=new Uh;return l.load(a),l})),this._container){const a=this._engine.plugins.updaters.get(this._container);if(a)for(const u of a)u.loadOptions&&u.loadOptions(this,e);const l=this._engine.plugins.interactors.get(this._container);if(l)for(const u of l)u.loadParticlesOptions&&u.loadParticlesOptions(this,e)}}}function zm(t,...e){for(const n of e)t.load(n)}function Rm(t,e,...n){const i=new Qw(t,e);return zm(i,...n),i}class Vw{constructor(e,n){this._findDefaultTheme=i=>this.themes.find(r=>r.default.value&&r.default.mode===i)??this.themes.find(r=>r.default.value&&r.default.mode==="any"),this._importPreset=i=>{this.load(this._engine.plugins.getPreset(i))},this._engine=e,this._container=n,this.autoPlay=!0,this.background=new lw,this.backgroundMask=new cw,this.defaultThemes={},this.delay=0,this.fullScreen=new fw,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Pm(e,n),this.manualParticles=[],this.particles=Rm(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}get backgroundMode(){return this.fullScreen}set backgroundMode(e){this.fullScreen.load(e)}get fps_limit(){return this.fpsLimit}set fps_limit(e){this.fpsLimit=e}get retina_detect(){return this.detectRetina}set retina_detect(e){this.detectRetina=e}load(e){var o,a;if(!e)return;e.preset!==void 0&&Te(e.preset,l=>this._importPreset(l)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.delay!==void 0&&(this.delay=G(e.delay));const n=e.detectRetina??e.retina_detect;n!==void 0&&(this.detectRetina=n),e.duration!==void 0&&(this.duration=G(e.duration));const i=e.fpsLimit??e.fps_limit;i!==void 0&&(this.fpsLimit=i),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);const r=e.fullScreen??e.backgroundMode;ai(r)?this.fullScreen.enable=r:this.fullScreen.load(r),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(l=>{const u=new vw;return u.load(l),u})),this.particles.load(e.particles),this.style=He(this.style,e.style),this._engine.plugins.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);const s=this._engine.plugins.interactors.get(this._container);if(s)for(const l of s)l.loadOptions&&l.loadOptions(this,e);if(e.responsive!==void 0)for(const l of e.responsive){const u=new ww;u.load(l),this.responsive.push(u)}if(this.responsive.sort((l,u)=>l.maxWidth-u.maxWidth),e.themes!==void 0)for(const l of e.themes){const u=this.themes.find(c=>c.name===l.name);if(u)u.load(l);else{const c=new kw;c.load(l),this.themes.push(c)}}this.defaultThemes.dark=(o=this._findDefaultTheme("dark"))==null?void 0:o.name,this.defaultThemes.light=(a=this._findDefaultTheme("light"))==null?void 0:a.name}setResponsive(e,n,i){this.load(i);const r=this.responsive.find(s=>s.mode==="screen"&&screen?s.maxWidth>screen.availWidth:s.maxWidth*n>e);return this.load(r==null?void 0:r.options),r==null?void 0:r.maxWidth}setTheme(e){if(e){const n=this.themes.find(i=>i.name===e);n&&this.load(n.options)}else{const n=mm("(prefers-color-scheme: dark)"),i=n&&n.matches,r=this._findDefaultTheme(i?"dark":"light");r&&this.load(r.options)}}}class Kw{constructor(e,n){this.container=n,this._engine=e,this._interactors=e.plugins.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[]}async externalInteract(e){for(const n of this._externalInteractors)n.isEnabled()&&await n.interact(e)}handleClickMode(e){for(const n of this._externalInteractors)n.handleClickMode&&n.handleClickMode(e)}init(){this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}async particlesInteract(e,n){for(const i of this._externalInteractors)i.clear(e,n);for(const i of this._particleInteractors)i.isEnabled(e)&&await i.interact(e,n)}async reset(e){for(const n of this._externalInteractors)n.isEnabled()&&n.reset(e);for(const n of this._particleInteractors)n.isEnabled(e)&&n.reset(e)}}const Hh=t=>{if(!ve(t.outMode,t.checkModes))return;const e=t.radius*2;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord{for(const[,m]of a.plugins){const y=m.particlePosition!==void 0?m.particlePosition(l,this):void 0;if(y)return dt.create(y.x,y.y,u)}const f=a.canvas.size,d=A5({size:f,position:l}),h=dt.create(d.x,d.y,u),g=this.getRadius(),v=this.options.move.outModes,k=m=>{Hh({outMode:m,checkModes:["bounce","bounce-horizontal"],coord:h.x,maxCoord:a.canvas.size.width,setCb:y=>h.x+=y,radius:g})},p=m=>{Hh({outMode:m,checkModes:["bounce","bounce-vertical"],coord:h.y,maxCoord:a.canvas.size.height,setCb:y=>h.y+=y,radius:g})};return k(v.left??v.default),k(v.right??v.default),p(v.top??v.default),p(v.bottom??v.default),this._checkOverlap(h,c)?this._calcPosition(a,void 0,u,c+1):h},this._calculateVelocity=()=>{const a=L5(this.direction),l=a.copy(),u=this.options.move;if(u.direction==="inside"||u.direction==="outside")return l;const c=Math.PI/180*N(u.angle.value),f=Math.PI/180*N(u.angle.offset),d={left:f-c/2,right:f+c/2};return u.straight||(l.angle+=at(G(d.left,d.right))),u.random&&typeof u.speed=="number"&&(l.length*=ae()),l},this._checkOverlap=(a,l=0)=>{const u=this.options.collisions,c=this.getRadius();if(!u.enable)return!1;const f=u.overlap;if(f.enable)return!1;const d=f.retries;if(d>=0&&l>d)throw new Error(`${Ft} particle is overlapping and can't be placed`);return!!this.container.particles.find(h=>gt(a,h.position){if(!a||!this.roll||!this.backColor&&!this.roll.alter)return a;const l=this.roll.horizontal&&this.roll.vertical?2:1,u=this.roll.horizontal?Math.PI/2:0;return Math.floor(((this.roll.angle??0)+u)/(Math.PI/l))%2?this.backColor?this.backColor:this.roll.alter?rw(a,this.roll.alter.type,this.roll.alter.value):a:a},this._initPosition=a=>{const l=this.container,u=N(this.options.zIndex.value);this.position=this._calcPosition(l,a,Jt(u,0,l.zLayers)),this.initialPosition=this.position.copy();const c=l.canvas.size;switch(this.moveCenter={...xm(this.options.move.center,c),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??"percent"},this.direction=I5(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=Re.origin},this._loadShapeData=(a,l)=>{const u=a.options[this.shape];if(u)return He({close:a.close,fill:a.fill},_n(u,this.id,l))},this._engine=e,this.init(n,r,s,o)}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const n=this.container,i=this.pathGenerator;for(const[,r]of n.plugins)r.particleDestroyed&&r.particleDestroyed(this,e);for(const r of n.particles.updaters)r.particleDestroyed&&r.particleDestroyed(this,e);i&&i.reset(this)}draw(e){const n=this.container;for(const[,i]of n.plugins)n.canvas.drawParticlePlugin(i,this,e);n.canvas.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??$h(this.color))}getMass(){return this.getRadius()**2*Math.PI/2}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??$h(this.strokeColor))}init(e,n,i,r){const s=this.container,o=this._engine;this.id=e,this.group=r,this.fill=!0,this.pathRotation=!1,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const a=s.retina.pixelRatio,l=s.actualOptions,u=Rm(this._engine,s,l.particles),c=u.shape.type,{reduceDuplicates:f}=u;this.shape=_n(c,this.id,f);const d=u.shape;if(i&&i.shape&&i.shape.type){const y=i.shape.type,w=_n(y,this.id,f);w&&(this.shape=w,d.load(i.shape))}this.shapeData=this._loadShapeData(d,f),u.load(i);const h=this.shapeData;h&&u.load(h.particles);const g=new Pm(o,s);g.load(s.actualOptions.interactivity),g.load(u.interactivity),this.interactivity=g,this.fill=(h==null?void 0:h.fill)??u.shape.fill,this.close=(h==null?void 0:h.close)??u.shape.close,this.options=u;const v=this.options.move.path;this.pathDelay=Hi(v.delay)*1e3,v.generator&&(this.pathGenerator=this._engine.plugins.getPathGenerator(v.generator),this.pathGenerator&&s.addPath(v.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=wm(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(n),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-N(this.options.move.decay);const k=s.particles;k.needsSort=k.needsSort||k.lastZIndex=-e&&i.y>=-e&&i.y<=n.height+e&&i.x<=n.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const e of this.container.particles.updaters)e.reset&&e.reset(this)}}class Xw{constructor(e,n){this.position=e,this.particle=n}}class Tm{constructor(e,n){this.position={x:e,y:n}}}class en extends Tm{constructor(e,n,i,r){super(e,n),this.size={height:r,width:i}}contains(e){const n=this.size.width,i=this.size.height,r=this.position;return e.x>=r.x&&e.x<=r.x+n&&e.y>=r.y&&e.y<=r.y+i}intersects(e){e instanceof Ge&&e.intersects(this);const n=this.size.width,i=this.size.height,r=this.position,s=e.position,o=e instanceof en?e.size:{width:0,height:0},a=o.width,l=o.height;return s.xr.x&&s.yr.y}}class Ge extends Tm{constructor(e,n,i){super(e,n),this.radius=i}contains(e){return gt(e,this.position)<=this.radius}intersects(e){const n=this.position,i=e.position,r={x:Math.abs(i.x-n.x),y:Math.abs(i.y-n.y)},s=this.radius;if(e instanceof Ge){const o=s+e.radius,a=Math.sqrt(r.x**2+r.y**2);return o>a}else if(e instanceof en){const{width:o,height:a}=e.size;return Math.pow(r.x-o,2)+Math.pow(r.y-a,2)<=s**2||r.x<=s+o&&r.y<=s+a||r.x<=o||r.y<=a}return!1}}class Fa{constructor(e,n){this.rectangle=e,this.capacity=n,this._subdivide=()=>{const{x:i,y:r}=this.rectangle.position,{width:s,height:o}=this.rectangle.size,{capacity:a}=this;for(let l=0;l<4;l++)this._subs.push(new Fa(new en(i+s/2*(l%2),r+o/2*(Math.round(l/2)-l%2),s/2,o/2),a));this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return this.rectangle.contains(e.position)?this._points.lengthn.insert(e))):!1}query(e,n,i){const r=i||[];if(!e.intersects(this.rectangle))return[];for(const s of this._points)!e.contains(s.position)&>(e.position,s.position)>s.particle.getRadius()&&(!n||n(s.particle))||r.push(s.particle);if(this._divided)for(const s of this._subs)s.query(e,n,r);return r}queryCircle(e,n,i){return this.query(new Ge(e.x,e.y,n),i)}queryRectangle(e,n,i){return this.query(new en(e.x,e.y,n.width,n.height),i)}}const Gh=4,Wh=t=>new en(-t.width/4,-t.height/4,t.width*3/2,t.height*3/2);let Zw=class{constructor(e,n){this._applyDensity=(r,s,o)=>{var h;if(!((h=r.number.density)!=null&&h.enable))return;const a=r.number,l=this._initDensityFactor(a.density),u=a.value,c=a.limit>0?a.limit:u,f=Math.min(u,c)*l+s,d=Math.min(this.count,this.filter(g=>g.group===o).length);this.limit=a.limit*l,df&&this.removeQuantity(d-f,o)},this._initDensityFactor=r=>{const s=this._container;if(!s.canvas.element||!r.enable)return 1;const o=s.canvas.element,a=s.retina.pixelRatio;return o.width*o.height/(r.factor*a**2*r.area)},this._pushParticle=(r,s,o,a)=>{try{let l=this.pool.pop();l?l.init(this._nextId,r,s,o):l=new Yw(this._engine,this._nextId,this._container,r,s,o);let u=!0;return a&&(u=a(l)),u?(this._array.push(l),this._zArray.push(l),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:l}}),l):void 0}catch(l){Gi().warning(`${Ft} adding particle: ${l}`);return}},this._removeParticle=(r,s,o)=>{const a=this._array[r];if(!a||a.group!==s)return!1;a.destroy(o);const l=this._zArray.indexOf(a);return this._array.splice(r,1),this._zArray.splice(l,1),this.pool.push(a),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:a}}),!0},this._engine=e,this._container=n,this._nextId=0,this._array=[],this._zArray=[],this.pool=[],this.limit=0,this.needsSort=!1,this.lastZIndex=0,this._interactionManager=new Kw(e,n);const i=n.canvas.size;this.quadTree=new Fa(Wh(i),Gh),this.movers=this._engine.plugins.getMovers(n,!0),this.updaters=this._engine.plugins.getUpdaters(n,!0)}get count(){return this._array.length}addManualParticles(){const e=this._container,n=e.actualOptions;for(const i of n.manualParticles)this.addParticle(i.position?xm(i.position,e.canvas.size):void 0,i.options)}addParticle(e,n,i,r){const s=this._container,o=s.actualOptions,a=o.particles.number.limit;if(a>0){const l=this.count+1-a;l>0&&this.removeQuantity(l)}return this._pushParticle(e,n,i,r)}clear(){this._array=[],this._zArray=[]}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}async draw(e){const n=this._container;n.canvas.clear(),await this.update(e);for(const[,i]of n.plugins)n.canvas.drawPlugin(i,e);for(const i of this._zArray)i.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}handleClickMode(e){this._interactionManager.handleClickMode(e)}init(){var r;const e=this._container,n=e.actualOptions;this.lastZIndex=0,this.needsSort=!1;let i=!1;this.updaters=this._engine.plugins.getUpdaters(e,!0),this._interactionManager.init();for(const[,s]of e.plugins)if(s.particlesInitialization!==void 0&&(i=s.particlesInitialization()),i)break;this._interactionManager.init();for(const[,s]of e.pathGenerators)s.init(e);if(this.addManualParticles(),!i){for(const s in n.particles.groups){const o=n.particles.groups[s];for(let a=this.count,l=0;l<((r=o.number)==null?void 0:r.value)&&athis.count)return;let s=0;for(let o=e;s!i.has(s);this._array=this.filter(r),this._zArray=this._zArray.filter(r),this.pool.push(...i)}await this._interactionManager.externalInteract(e);for(const r of this._array){for(const s of this.updaters)s.update(r,e);!r.destroyed&&!r.spawning&&await this._interactionManager.particlesInteract(r,e)}if(delete n.canvas.resizeFactor,this.needsSort){const r=this._zArray;r.sort((s,o)=>o.position.z-s.position.z||s.id-o.id),this.lastZIndex=r[r.length-1].position.z,this.needsSort=!1}}};class Jw{constructor(e){this.container=e,this.pixelRatio=1,this.reduceFactor=1}init(){const e=this.container,n=e.actualOptions;this.pixelRatio=!n.detectRetina||qr()?1:window.devicePixelRatio,this.reduceFactor=1;const i=this.pixelRatio;if(e.canvas.element){const o=e.canvas.element;e.canvas.size.width=o.offsetWidth*i,e.canvas.size.height=o.offsetHeight*i}const r=n.particles,s=r.move;this.attractDistance=N(s.attract.distance)*i,this.maxSpeed=N(s.gravity.maxSpeed)*i,this.sizeAnimationSpeed=N(r.size.animation.speed)*i}initParticle(e){const n=e.options,i=this.pixelRatio,r=n.move,s=r.distance,o=e.retina;o.attractDistance=N(r.attract.distance)*i,o.moveDrift=N(r.drift)*i,o.moveSpeed=N(r.speed)*i,o.sizeAnimationSpeed=N(n.size.animation.speed)*i;const a=o.maxDistance;a.horizontal=s.horizontal!==void 0?s.horizontal*i:void 0,a.vertical=s.vertical!==void 0?s.vertical*i:void 0,o.maxSpeed=N(r.gravity.maxSpeed)*i}}function ce(t){return t&&!t.destroyed}function e6(t,e=60,n=!1){return{value:t,factor:n?60/e:60*t/1e3}}function Yi(t,e,...n){const i=new Vw(t,e);return zm(i,...n),i}const t6="default",qh={generate:t=>t.velocity,init:()=>{},update:()=>{},reset:()=>{}};class n6{constructor(e,n,i){this.id=n,this._intersectionManager=r=>{if(!(!ce(this)||!this.actualOptions.pauseOnOutsideViewport))for(const s of r)s.target===this.interactivity.element&&(s.isIntersecting?this.play:this.pause)()},this._nextFrame=async r=>{try{if(!this.smooth&&this.lastFrameTime!==void 0&&r1e3){this.draw(!1);return}if(await this.particles.draw(s),!this.alive()){this.destroy();return}this.getAnimationStatus()&&this.draw(!1)}catch(s){Gi().error(`${Ft} in animation loop`,s)}},this._engine=e,this.fpsLimit=120,this.smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Jw(this),this.canvas=new ow(this),this.particles=new Zw(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.drawers=new Map,this._options=Yi(this._engine,this),this.actualOptions=Yi(this._engine,this),this._eventListeners=new aw(this),typeof IntersectionObserver<"u"&&IntersectionObserver&&(this._intersectionObserver=new IntersectionObserver(r=>this._intersectionManager(r))),this._engine.dispatchEvent("containerBuilt",{container:this})}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!ce(this))return;const n=this.interactivity.element;if(!n)return;const i=(f,d,h)=>{if(!ce(this))return;const g=this.retina.pixelRatio,v={x:d.x*g,y:d.y*g},k=this.particles.quadTree.queryCircle(v,h*g);e(f,k)},r=f=>{if(!ce(this))return;const d=f,h={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};i(f,h,1)},s=()=>{ce(this)&&(u=!0,c=!1)},o=()=>{ce(this)&&(c=!0)},a=f=>{if(ce(this)){if(u&&!c){const d=f;let h=d.touches[d.touches.length-1];if(!h&&(h=d.changedTouches[d.changedTouches.length-1],!h))return;const g=this.canvas.element,v=g?g.getBoundingClientRect():void 0,k={x:h.clientX-(v?v.left:0),y:h.clientY-(v?v.top:0)};i(f,k,Math.max(h.radiusX,h.radiusY))}u=!1,c=!1}},l=()=>{ce(this)&&(u=!1,c=!1)};let u=!1,c=!1;n.addEventListener("click",r),n.addEventListener("touchstart",s),n.addEventListener("touchmove",o),n.addEventListener("touchend",a),n.addEventListener("touchcancel",l)}addLifeTime(e){this._lifeTime+=e}addPath(e,n,i=!1){return!ce(this)||!i&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,n??qh),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!ce(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,i]of this.drawers)i.destroy&&i.destroy(this);for(const i of this.drawers.keys())this.drawers.delete(i);this._engine.plugins.destroy(this),this.destroyed=!0;const e=this._engine.dom(),n=e.findIndex(i=>i===this);n>=0&&e.splice(n,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!ce(this))return;let n=e;this._drawAnimationFrame=requestAnimationFrame(async i=>{n&&(this.lastFrameTime=void 0,n=!1),await this._nextFrame(i)})}async export(e,n={}){for(const[,i]of this.plugins){if(!i.export)continue;const r=await i.export(e,n);if(r.supported)return r.blob}Gi().error(`${Ft} - Export plugin with type ${e} not found`)}getAnimationStatus(){return!this._paused&&!this.pageHidden&&ce(this)}handleClickMode(e){if(ce(this)){this.particles.handleClickMode(e);for(const[,n]of this.plugins)n.handleClickMode&&n.handleClickMode(e)}}async init(){if(!ce(this))return;const e=this._engine.plugins.getSupportedShapes();for(const i of e){const r=this._engine.plugins.getShapeDrawer(i);r&&this.drawers.set(i,r)}this._options=Yi(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Yi(this._engine,this,this._options);const n=this._engine.plugins.getAvailablePlugins(this);for(const[i,r]of n)this.plugins.set(i,r);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=N(this.actualOptions.duration)*1e3,this._delay=N(this.actualOptions.delay)*1e3,this._lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120,this.smooth=this.actualOptions.smooth;for(const[,i]of this.drawers)i.init&&await i.init(this);for(const[,i]of this.plugins)i.init&&await i.init();this._engine.dispatchEvent("containerInit",{container:this}),this.particles.init(),this.particles.setDensity();for(const[,i]of this.plugins)i.particlesSetup&&i.particlesSetup();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){ce(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(ce(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,e]of this.plugins)e.pause&&e.pause();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!ce(this))return;const n=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),n)for(const[,i]of this.plugins)i.play&&i.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(n||!1)}async refresh(){if(ce(this))return this.stop(),this.start()}async reset(){if(ce(this))return this._initialSourceOptions=void 0,this._options=Yi(this._engine,this),this.actualOptions=Yi(this._engine,this,this._options),this.refresh()}setNoise(e,n,i){ce(this)&&this.setPath(e,n,i)}setPath(e,n,i){if(!e||!ce(this))return;const r={...qh};if(km(e))r.generate=e,n&&(r.init=n),i&&(r.update=i);else{const s=r;r.generate=e.generate||s.generate,r.init=e.init||s.init,r.update=e.update||s.update}this.addPath(t6,r,!0)}async start(){!ce(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{this._delayTimeout=setTimeout(async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,n]of this.plugins)n.start&&await n.start();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()},this._delay)}))}stop(){if(!(!ce(this)||!this.started)){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,e]of this.plugins)e.stop&&e.stop();for(const e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this.responsiveMaxWidth===e?!1:(this.responsiveMaxWidth=e,!0)}}class i6{constructor(){this._listeners=new Map}addEventListener(e,n){this.removeEventListener(e,n);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(n)}dispatchEvent(e,n){const i=this._listeners.get(e);i&&i.forEach(r=>r(n))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,n){const i=this._listeners.get(e);if(!i)return;const r=i.length,s=i.indexOf(n);s<0||(r===1?this._listeners.delete(e):i.splice(s,1))}}function hu(t,e,n,i=!1){let r=e.get(t);return(!r||i)&&(r=[...n.values()].map(s=>s(t)),e.set(t,r)),r}class r6{constructor(e){this._engine=e,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}addInteractor(e,n){this._initializers.interactors.set(e,n)}addParticleMover(e,n){this._initializers.movers.set(e,n)}addParticleUpdater(e,n){this._initializers.updaters.set(e,n)}addPathGenerator(e,n){!this.getPathGenerator(e)&&this.pathGenerators.set(e,n)}addPlugin(e){!this.getPlugin(e.id)&&this.plugins.push(e)}addPreset(e,n,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,n)}addShapeDrawer(e,n){Te(e,i=>{!this.getShapeDrawer(i)&&this.drawers.set(i,n)})}destroy(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}getAvailablePlugins(e){const n=new Map;for(const i of this.plugins)i.needsPlugin(e.actualOptions)&&n.set(i.id,i.getPlugin(e));return n}getInteractors(e,n=!1){return hu(e,this.interactors,this._initializers.interactors,n)}getMovers(e,n=!1){return hu(e,this.movers,this._initializers.movers,n)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(n=>n.id===e)}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.drawers.get(e)}getSupportedShapes(){return this.drawers.keys()}getUpdaters(e,n=!1){return hu(e,this.updaters,this._initializers.updaters,n)}loadOptions(e,n){for(const i of this.plugins)i.loadOptions(e,n)}loadParticlesOptions(e,n,...i){const r=this.updaters.get(e);if(r)for(const s of r)s.loadOptions&&s.loadOptions(n,...i)}}async function s6(t){const e=_n(t.url,t.index);if(!e)return t.fallback;const n=await fetch(e);return n.ok?n.json():(Gi().error(`${Ft} ${n.status} while retrieving config file`),t.fallback)}function o6(t){return!t.id&&!t.element&&!t.url&&!t.options}function a6(t){return!o6(t)}class l6{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new i6,this._initialized=!1,this.plugins=new r6(this)}get configs(){const e={};for(const[n,i]of this._configs)e[n]=i;return e}get version(){return"2.12.0"}addConfig(e,n){Kt(e)?n&&(n.name=e,this._configs.set(e,n)):this._configs.set(e.name??"default",e)}addEventListener(e,n){this._eventDispatcher.addEventListener(e,n)}async addInteractor(e,n,i=!0){this.plugins.addInteractor(e,n),await this.refresh(i)}async addMover(e,n,i=!0){this.plugins.addParticleMover(e,n),await this.refresh(i)}async addParticleUpdater(e,n,i=!0){this.plugins.addParticleUpdater(e,n),await this.refresh(i)}async addPathGenerator(e,n,i=!0){this.plugins.addPathGenerator(e,n),await this.refresh(i)}async addPlugin(e,n=!0){this.plugins.addPlugin(e),await this.refresh(n)}async addPreset(e,n,i=!1,r=!0){this.plugins.addPreset(e,n,i),await this.refresh(r)}async addShape(e,n,i,r,s,o=!0){let a,l=o,u,c,f;ai(i)?(l=i,u=void 0):u=i,ai(r)?(l=r,c=void 0):c=r,ai(s)?(l=s,f=void 0):f=s,km(n)?a={afterEffect:c,destroy:f,draw:n,init:u}:a=n,this.plugins.addShapeDrawer(e,a),await this.refresh(l)}dispatchEvent(e,n){this._eventDispatcher.dispatchEvent(e,n)}dom(){return this._domArray}domItem(e){const n=this.dom(),i=n[e];if(!i||i.destroyed){n.splice(e,1);return}return i}init(){this._initialized||(this._initialized=!0)}async load(e,n){return this.loadFromArray(e,n)}async loadFromArray(e,n,i){let r;return a6(e)?r=e:(r={},Kt(e)?r.id=e:r.options=e,Yt(n)?r.index=n:r.options=n??r.options,r.index=i??r.index),this._loadParams(r)}async loadJSON(e,n,i){let r,s;return Yt(n)||n===void 0?r=e:(s=e,r=n),this._loadParams({id:s,url:r,index:i})}async refresh(e=!0){e&&this.dom().forEach(n=>n.refresh())}removeEventListener(e,n){this._eventDispatcher.removeEventListener(e,n)}async set(e,n,i,r){const s={index:r};return Kt(e)?s.id=e:s.element=e,n instanceof HTMLElement?s.element=n:s.options=n,Yt(i)?s.index=i:s.options=i??s.options,this._loadParams(s)}async setJSON(e,n,i,r){const s={};return e instanceof HTMLElement?(s.element=e,s.url=n,s.index=i):(s.id=e,s.element=n,s.url=i,s.index=r),this._loadParams(s)}setOnClickHandler(e){const n=this.dom();if(!n.length)throw new Error(`${Ft} can only set click handlers after calling tsParticles.load()`);for(const i of n)i.addClickHandler(e)}async _loadParams(e){const n=e.id??`tsparticles${Math.floor(ae()*1e4)}`,{index:i,url:r}=e,s=r?await s6({fallback:e.options,url:r,index:i}):e.options;let o=e.element??document.getElementById(n);o||(o=document.createElement("div"),o.id=n,document.body.append(o));const a=_n(s,i),l=this.dom(),u=l.findIndex(d=>d.id===n);if(u>=0){const d=this.domItem(u);d&&!d.destroyed&&(d.destroy(),l.splice(u,1))}let c;if(o.tagName.toLowerCase()==="canvas")c=o,c.dataset[_s]="false";else{const d=o.getElementsByTagName("canvas");d.length?(c=d[0],c.dataset[_s]="false"):(c=document.createElement("canvas"),c.dataset[_s]="true",o.appendChild(c))}c.style.width||(c.style.width="100%"),c.style.height||(c.style.height="100%");const f=new n6(this,n,a);return u>=0?l.splice(u,0,f):l.push(f),f.canvas.loadCanvas(c),await f.start(),f}}class u6{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){const n=e.value,i=n.hsl??e.value;if(i.h!==void 0&&i.s!==void 0&&i.l!==void 0)return Qr(i)}handleRangeColor(e){const n=e.value,i=n.hsl??e.value;if(i.h!==void 0&&i.l!==void 0)return Qr({h:N(i.h),l:N(i.l),s:N(i.s)})}parseString(e){if(!e.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,i=n.exec(e);return i?K5({a:i.length>4?pm(i[5]):1,h:parseInt(i[1],10),l:parseInt(i[3],10),s:parseInt(i[2],10)}):void 0}}class c6{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){const n=e.value,i=n.rgb??e.value;if(i.r!==void 0)return i}handleRangeColor(e){const n=e.value,i=n.rgb??e.value;if(i.r!==void 0)return{r:N(i.r),g:N(i.g),b:N(i.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,i=n.exec(e);return i?{a:i.length>4?pm(i[5]):1,b:parseInt(i[3],10),g:parseInt(i[2],10),r:parseInt(i[1],10)}:void 0}}function f6(){const t=new c6,e=new u6;Nh(t),Nh(e);const n=new l6;return n.init(),n}class pn{constructor(e){this.container=e,this.type="external"}}class Qf{constructor(e){this.container=e,this.type="particles"}}const Na=f6();qr()||(window.tsParticles=Na);const fr=t=>typeof t=="object"&&t!==null;function $a(t,e,n=()=>!1){if(!fr(t)||!fr(e))return t===e;const i=Object.keys(t).filter(s=>!n(s)),r=Object.keys(e).filter(s=>!n(s));if(i.length!==r.length)return!1;for(const s of i){const o=t[s],a=e[s];if(fr(o)&&fr(a)){if(o===e&&a===t)continue;if(!$a(o,a,n))return!1}else if(Array.isArray(o)&&Array.isArray(a)){if(!Dm(o,a,n))return!1}else if(o!==a)return!1}return!0}function Dm(t,e,n){if(t.length!==e.length)return!1;for(let i=0;ir.startsWith("_"))}componentDidUpdate(){this.refresh()}forceUpdate(){this.refresh().then(()=>{super.forceUpdate()})}componentDidMount(){(async()=>(this.props.init&&await this.props.init(Na),this.setState({init:!0},async()=>{await this.loadParticles()})))()}componentWillUnmount(){this.destroy()}render(){const{width:e,height:n,className:i,canvasClassName:r,id:s}=this.props;return _e.createElement("div",{className:i,id:s},_e.createElement("canvas",{className:r,style:{...this.props.style,width:e,height:n}}))}async refresh(){this.destroy(),await this.loadParticles()}async loadParticles(){if(!this.state.init)return;const e=this.props.id??Am.defaultProps.id??Im,n=await Na.load({url:this.props.url,id:e,options:this.props.options??this.props.params});this.props.container&&(this.props.container.current=n),this.setState({library:n}),this.props.loaded&&await this.props.loaded(n)}};Lm.defaultProps={width:"100%",height:"100%",options:{},style:{},url:void 0,id:Im};class ja{static init(e){var s;const n=new ja,i=e.selector;if(!i)throw new Error("No selector provided");const r=document.querySelector(i);if(!r)throw new Error("No element found for selector");return Na.set(i.replace(".","").replace("!",""),r,{fullScreen:{enable:!1},particles:{color:{value:e.color??"!000000"},links:{color:"random",distance:e.minDistance??120,enable:e.connectParticles??!1},move:{enable:!0,speed:e.speed??.5},number:{value:e.maxParticles??100},size:{value:{min:1,max:e.sizeVariations??3}}},responsive:(s=e.responsive)==null?void 0:s.map(o=>{var a,l,u,c,f;return{maxWidth:o.breakpoint,options:{particles:{color:{value:(a=o.options)==null?void 0:a.color},links:{distance:(l=o.options)==null?void 0:l.minDistance,enable:(u=o.options)==null?void 0:u.connectParticles},number:{value:e.maxParticles},move:{enable:!0,speed:(c=o.options)==null?void 0:c.speed},size:{value:(f=o.options)==null?void 0:f.sizeVariations}}}}})}).then(o=>{n._container=o}),n}destroy(){const e=this._container;e&&e.destroy()}pauseAnimation(){const e=this._container;e&&e.pause()}resumeAnimation(){const e=this._container;e&&e.play()}}const d6=t=>{const e=(i,r)=>t.load(i,r);e.load=(i,r,s)=>{t.loadJSON(i,r).then(o=>{o&&s(o)}).catch(()=>{s(void 0)})},e.setOnClickHandler=i=>{t.setOnClickHandler(i)};const n=t.dom();return{particlesJS:e,pJSDom:n}},h6=t=>{const{particlesJS:e,pJSDom:n}=d6(t);return window.particlesJS=e,window.pJSDom=n,window.Particles=ja,{particlesJS:e,pJSDom:n,Particles:ja}};function p6(t){const e=t.initialPosition,{dx:n,dy:i}=Ze(e,t.position),r=Math.abs(n),s=Math.abs(i),{maxDistance:o}=t.retina,a=o.horizontal,l=o.vertical;if(!(!a&&!l)){if((a&&r>=a||l&&s>=l)&&!t.misplaced)t.misplaced=!!a&&r>a||!!l&&s>l,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),l&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||re.x&&c.x>0)&&(c.x*=-ae()),l&&(u.ye.y&&c.y>0)&&(c.y*=-ae())}}}function m6(t,e,n,i,r,s){g6(t,s);const o=t.gravity,a=o!=null&&o.enable&&o.inverse?-1:1;r&&n&&(t.velocity.x+=r*s.factor/(60*n)),o!=null&&o.enable&&n&&(t.velocity.y+=a*(o.acceleration*s.factor)/(60*n));const l=t.moveDecay;t.velocity.multTo(l);const u=t.velocity.mult(n);o!=null&&o.enable&&i>0&&(!o.inverse&&u.y>=0&&u.y>=i||o.inverse&&u.y<=0&&u.y<=-i)&&(u.y=a*i,n&&(t.velocity.y=u.y/n));const c=t.options.zIndex,f=(1-t.zIndexFactor)**c.velocityRate;u.multTo(f);const{position:d}=t;d.addTo(u),e.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function y6(t,e){const n=t.container;if(!t.spin)return;const i={x:t.spin.direction==="clockwise"?Math.cos:Math.sin,y:t.spin.direction==="clockwise"?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*i.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*i.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const r=Math.max(n.canvas.size.width,n.canvas.size.height);t.spin.radius>r/2?(t.spin.radius=r/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/r)}function g6(t,e){var o;const n=t.options,i=n.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}const s=(o=t.pathGenerator)==null?void 0:o.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=Jt(t.velocity.x,-1,1),t.velocity.y=Jt(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}function v6(t){return t.slow.inRange?t.slow.factor:1}const w6=2;class x6{constructor(){this._initSpin=e=>{const n=e.container,i=e.options,r=i.move.spin;if(!r.enable)return;const s=r.position??{x:50,y:50},o={x:s.x/100*n.canvas.size.width,y:s.y/100*n.canvas.size.height},a=e.getPosition(),l=gt(a,o),u=N(r.acceleration);e.retina.spinAcceleration=u*n.retina.pixelRatio,e.spin={center:o,direction:e.velocity.x>=0?"clockwise":"counter-clockwise",angle:e.velocity.angle,radius:l,acceleration:e.retina.spinAcceleration}}}init(e){const n=e.options,i=n.move.gravity;e.gravity={enable:i.enable,acceleration:N(i.acceleration),inverse:i.inverse},this._initSpin(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,n){var g,v;const i=e.options,r=i.move;if(!r.enable)return;const s=e.container,o=s.retina.pixelRatio,a=v6(e),l=((g=e.retina).moveSpeed??(g.moveSpeed=N(r.speed)*o))*s.retina.reduceFactor,u=(v=e.retina).moveDrift??(v.moveDrift=N(e.options.move.drift)*o),c=Yn(i.size.value)*o,f=r.size?e.getRadius()/c:1,d=l*f*a*(n.factor||1)/w6,h=e.retina.maxSpeed??s.retina.maxSpeed;r.spin.enable?y6(e,d):m6(e,r,d,h,u,n),p6(e)}}async function k6(t,e=!0){await t.addMover("base",()=>new x6,e)}class S6{draw(e,n,i){n.circleRange||(n.circleRange={min:0,max:Math.PI*2});const r=n.circleRange;e.arc(0,0,i,r.min,r.max,!1)}getSidesCount(){return 12}particleInit(e,n){const i=n.shapeData,r=(i==null?void 0:i.angle)??{max:360,min:0};n.circleRange=cr(r)?{min:r.min*Math.PI/180,max:r.max*Math.PI/180}:{min:0,max:r*Math.PI/180}}}async function C6(t,e=!0){await t.addShape("circle",new S6,e)}function pu(t,e,n,i,r){if(!e||!n.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const s=at(n.offset),o=(e.velocity??0)*t.factor+s*3.6,a=e.decay??1;!r||e.status==="increasing"?(e.value+=o,e.value>i&&(e.loops||(e.loops=0),e.loops++,r&&(e.status="decreasing",e.value-=e.value%i))):(e.value-=o,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)),e.velocity&&a!==1&&(e.velocity*=a),e.value>i&&(e.value%=i)}function b6(t,e){const{h:n,s:i,l:r}=t.options.color.animation,{color:s}=t;if(!s)return;const{h:o,s:a,l}=s;o&&pu(e,o,n,360,!1),a&&pu(e,a,i,100,!0),l&&pu(e,l,r,100,!0)}class _6{constructor(e){this.container=e}init(e){const n=Qs(e.options.color,e.id,e.options.reduceDuplicates);n&&(e.color=Em(n,e.options.color.animation,this.container.retina.reduceFactor))}isEnabled(e){const{h:n,s:i,l:r}=e.options.color.animation,{color:s}=e;return!e.destroyed&&!e.spawning&&((s==null?void 0:s.h.value)!==void 0&&n.enable||(s==null?void 0:s.s.value)!==void 0&&i.enable||(s==null?void 0:s.l.value)!==void 0&&r.enable)}update(e,n){b6(e,n)}}async function E6(t,e=!0){await t.addParticleUpdater("color",n=>new _6(n),e)}function P6(t,e,n,i){switch(t.options.opacity.animation.destroy){case"max":e>=i&&t.destroy();break;case"min":e<=n&&t.destroy();break}}function O6(t,e){const n=t.opacity;if(t.destroyed||!(n!=null&&n.enable)||(n.maxLoops??0)>0&&(n.loops??0)>(n.maxLoops??0))return;const i=n.min,r=n.max,s=n.decay??1;if(n.time||(n.time=0),(n.delayTime??0)>0&&n.time<(n.delayTime??0)&&(n.time+=e.value),!((n.delayTime??0)>0&&n.time<(n.delayTime??0))){switch(n.status){case"increasing":n.value>=r?(n.status="decreasing",n.loops||(n.loops=0),n.loops++):n.value+=(n.velocity??0)*e.factor;break;case"decreasing":n.value<=i?(n.status="increasing",n.loops||(n.loops=0),n.loops++):n.value-=(n.velocity??0)*e.factor;break}n.velocity&&n.decay!==1&&(n.velocity*=s),P6(t,n.value,i,r),t.destroyed||(n.value=Jt(n.value,i,r))}}class M6{constructor(e){this.container=e}init(e){const n=e.options.opacity;e.opacity=wm(n,1);const i=n.animation;i.enable&&(e.opacity.velocity=N(i.speed)/100*this.container.retina.reduceFactor,i.sync||(e.opacity.velocity*=ae()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,n){this.isEnabled(e)&&O6(e,n)}}async function z6(t,e=!0){await t.addParticleUpdater("opacity",n=>new M6(n),e)}function R6(t){if(t.outMode!=="bounce"&&t.outMode!=="bounce-horizontal"&&t.outMode!=="bounceHorizontal"&&t.outMode!=="split"||t.direction!=="left"&&t.direction!=="right")return;t.bounds.right<0&&t.direction==="left"?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction==="right"&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let n=!1;if(t.direction==="right"&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction==="left"&&t.bounds.left<=0&&e<0){const r=Hi(t.particle.options.bounce.horizontal);t.particle.velocity.x*=-r,n=!0}if(!n)return;const i=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction==="right"?t.particle.position.x=t.canvasSize.width-i:t.bounds.left<=0&&t.direction==="left"&&(t.particle.position.x=i),t.outMode==="split"&&t.particle.destroy()}function T6(t){if(t.outMode!=="bounce"&&t.outMode!=="bounce-vertical"&&t.outMode!=="bounceVertical"&&t.outMode!=="split"||t.direction!=="bottom"&&t.direction!=="top")return;t.bounds.bottom<0&&t.direction==="top"?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction==="bottom"&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let n=!1;if(t.direction==="bottom"&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction==="top"&&t.bounds.top<=0&&e<0){const r=Hi(t.particle.options.bounce.vertical);t.particle.velocity.y*=-r,n=!0}if(!n)return;const i=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction==="bottom"?t.particle.position.y=t.canvasSize.height-i:t.bounds.top<=0&&t.direction==="top"&&(t.particle.position.y=i),t.outMode==="split"&&t.particle.destroy()}class D6{constructor(e){this.container=e,this.modes=["bounce","bounce-vertical","bounce-horizontal","bounceVertical","bounceHorizontal","split"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;let o=!1;for(const[,d]of s.plugins)if(d.particleBounce!==void 0&&(o=d.particleBounce(e,i,n)),o)break;if(o)return;const a=e.getPosition(),l=e.offset,u=e.getRadius(),c=yo(a,u),f=s.canvas.size;R6({particle:e,outMode:r,direction:n,bounds:c,canvasSize:f,offset:l,size:u}),T6({particle:e,outMode:r,direction:n,bounds:c,canvasSize:f,offset:l,size:u})}}class I6{constructor(e){this.container=e,this.modes=["destroy"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;switch(e.outType){case"normal":case"outside":if(Hf(e.position,s.canvas.size,Re.origin,e.getRadius(),n))return;break;case"inside":{const{dx:o,dy:a}=Ze(e.position,e.moveCenter),{x:l,y:u}=e.velocity;if(l<0&&o>e.moveCenter.radius||u<0&&a>e.moveCenter.radius||l>=0&&o<-e.moveCenter.radius||u>=0&&a<-e.moveCenter.radius)return;break}}s.particles.remove(e,void 0,!0)}}class L6{constructor(e){this.container=e,this.modes=["none"]}update(e,n,i,r){if(!this.modes.includes(r)||e.options.move.distance.horizontal&&(n==="left"||n==="right")||e.options.move.distance.vertical&&(n==="top"||n==="bottom"))return;const s=e.options.move.gravity,o=this.container,a=o.canvas.size,l=e.getRadius();if(s.enable){const u=e.position;(!s.inverse&&u.y>a.height+l&&n==="bottom"||s.inverse&&u.y<-l&&n==="top")&&o.particles.remove(e)}else{if(e.velocity.y>0&&e.position.y<=a.height+l||e.velocity.y<0&&e.position.y>=-l||e.velocity.x>0&&e.position.x<=a.width+l||e.velocity.x<0&&e.position.x>=-l)return;Hf(e.position,o.canvas.size,Re.origin,l,n)||o.particles.remove(e)}}}class A6{constructor(e){this.container=e,this.modes=["out"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;switch(e.outType){case"inside":{const{x:o,y:a}=e.velocity,l=Re.origin;l.length=e.moveCenter.radius,l.angle=e.velocity.angle+Math.PI,l.addTo(Re.create(e.moveCenter));const{dx:u,dy:c}=Ze(e.position,l);if(o<=0&&u>=0||a<=0&&c>=0||o>=0&&u<=0||a>=0&&c<=0)return;e.position.x=Math.floor(at({min:0,max:s.canvas.size.width})),e.position.y=Math.floor(at({min:0,max:s.canvas.size.height}));const{dx:f,dy:d}=Ze(e.position,e.moveCenter);e.direction=Math.atan2(-d,-f),e.velocity.angle=e.direction;break}default:{if(Hf(e.position,s.canvas.size,Re.origin,e.getRadius(),n))return;switch(e.outType){case"outside":{e.position.x=Math.floor(at({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor(at({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;const{dx:o,dy:a}=Ze(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(a,o),e.velocity.angle=e.direction);break}case"normal":{const o=e.options.move.warp,a=s.canvas.size,l={bottom:a.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:a.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},u=e.getRadius(),c=yo(e.position,u);n==="right"&&c.left>a.width+e.offset.x?(e.position.x=l.left,e.initialPosition.x=e.position.x,o||(e.position.y=ae()*a.height,e.initialPosition.y=e.position.y)):n==="left"&&c.right<-e.offset.x&&(e.position.x=l.right,e.initialPosition.x=e.position.x,o||(e.position.y=ae()*a.height,e.initialPosition.y=e.position.y)),n==="bottom"&&c.top>a.height+e.offset.y?(o||(e.position.x=ae()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.top,e.initialPosition.y=e.position.y):n==="top"&&c.bottom<-e.offset.y&&(o||(e.position.x=ae()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.bottom,e.initialPosition.y=e.position.y);break}}break}}}}class F6{constructor(e){this.container=e,this._updateOutMode=(n,i,r,s)=>{for(const o of this.updaters)o.update(n,s,i,r)},this.updaters=[new D6(e),new I6(e),new A6(e),new L6(e)]}init(){}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,n){const i=e.options.move.outModes;this._updateOutMode(e,n,i.bottom??i.default,"bottom"),this._updateOutMode(e,n,i.left??i.default,"left"),this._updateOutMode(e,n,i.right??i.default,"right"),this._updateOutMode(e,n,i.top??i.default,"top")}}async function N6(t,e=!0){await t.addParticleUpdater("outModes",n=>new F6(n),e)}function $6(t,e,n,i){switch(t.options.size.animation.destroy){case"max":e>=i&&t.destroy();break;case"min":e<=n&&t.destroy();break}}function j6(t,e){const n=t.size;if(t.destroyed||!n||!n.enable||(n.maxLoops??0)>0&&(n.loops??0)>(n.maxLoops??0))return;const i=(n.velocity??0)*e.factor,r=n.min,s=n.max,o=n.decay??1;if(n.time||(n.time=0),(n.delayTime??0)>0&&n.time<(n.delayTime??0)&&(n.time+=e.value),!((n.delayTime??0)>0&&n.time<(n.delayTime??0))){switch(n.status){case"increasing":n.value>=s?(n.status="decreasing",n.loops||(n.loops=0),n.loops++):n.value+=i;break;case"decreasing":n.value<=r?(n.status="increasing",n.loops||(n.loops=0),n.loops++):n.value-=i}n.velocity&&o!==1&&(n.velocity*=o),$6(t,n.value,r,s),t.destroyed||(n.value=Jt(n.value,r,s))}}class B6{init(e){const n=e.container,i=e.options.size,r=i.animation;r.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??n.retina.sizeAnimationSpeed)/100*n.retina.reduceFactor,r.sync||(e.size.velocity*=ae()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,n){this.isEnabled(e)&&j6(e,n)}}async function U6(t,e=!0){await t.addParticleUpdater("size",()=>new B6,e)}async function H6(t,e=!0){await k6(t,!1),await C6(t,!1),await E6(t,!1),await z6(t,!1),await N6(t,!1),await U6(t,!1),await t.refresh(e)}async function G6(){tu("ease-in-quad",t=>t**2),tu("ease-out-quad",t=>1-(1-t)**2),tu("ease-in-out-quad",t=>t<.5?2*t**2:1-(-2*t+2)**2/2)}class W6{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}let q6=class extends pn{constructor(e,n){super(n),this._clickAttract=()=>{const i=this.container;i.attract||(i.attract={particles:[]});const{attract:r}=i;if(r.finish||(r.count||(r.count=0),r.count++,r.count===i.particles.count&&(r.finish=!0)),r.clicking){const s=i.interactivity.mouse.clickPosition,o=i.retina.attractModeDistance;if(!o||o<0||!s)return;this._processAttract(s,o,new Ge(s.x,s.y,o))}else r.clicking===!1&&(r.particles=[])},this._hoverAttract=()=>{const i=this.container,r=i.interactivity.mouse.position,s=i.retina.attractModeDistance;!s||s<0||!r||this._processAttract(r,s,new Ge(r.x,r.y,s))},this._processAttract=(i,r,s)=>{const o=this.container,a=o.actualOptions.interactivity.modes.attract;if(!a)return;const l=o.particles.quadTree.query(s,u=>this.isEnabled(u));for(const u of l){const{dx:c,dy:f,distance:d}=Ze(u.position,i),h=a.speed*a.factor,g=Jt(hm(a.easing)(1-d/r)*h,0,a.maxSpeed),v=Re.create(d===0?h:c/d*g,d===0?h:f/d*g);u.position.subFrom(v)}},this._engine=e,n.attract||(n.attract={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,s=r.interactivity.modes.attract;if(!(!s||i!=="attract")){n.attract||(n.attract={particles:[]}),n.attract.clicking=!0,n.attract.count=0;for(const o of n.attract.particles)this.isEnabled(o)&&o.velocity.setTo(o.initialVelocity);n.attract.particles=[],n.attract.finish=!1,setTimeout(()=>{n.destroyed||(n.attract||(n.attract={particles:[]}),n.attract.clicking=!1)},s.duration*1e3)}}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.attract;n&&(e.retina.attractModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=e.interactivity.status===Ui,r=n.interactivity.events,s=r.onHover.enable,o=r.onHover.mode,a=r.onClick.enable,l=r.onClick.mode;i&&s&&ve("attract",o)?this._hoverAttract():a&&ve("attract",l)&&this._clickAttract()}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events;if((!r.position||!s.onHover.enable)&&(!r.clickPosition||!s.onClick.enable))return!1;const o=s.onHover.mode,a=s.onClick.mode;return ve("attract",o)||ve("attract",a)}loadModeOptions(e,...n){e.attract||(e.attract=new W6);for(const i of n)e.attract.load(i==null?void 0:i.attract)}reset(){}};async function Q6(t,e=!0){await t.addInteractor("externalAttract",n=>new q6(t,n),e)}class V6{constructor(){this.distance=200}load(e){e&&e.distance!==void 0&&(this.distance=e.distance)}}class K6 extends pn{constructor(e){super(e),this._processBounce=(n,i,r)=>{const s=this.container.particles.quadTree.query(r,o=>this.isEnabled(o));for(const o of s)r instanceof Ge?gm(Ic(o),{position:n,radius:i,mass:i**2*Math.PI/2,velocity:Re.origin,factor:Re.origin}):r instanceof en&&W5(o,yo(n,i))},this._processMouseBounce=()=>{const n=this.container,i=n.retina.pixelRatio,r=10*i,s=n.interactivity.mouse.position,o=n.retina.bounceModeDistance;!o||o<0||!s||this._processBounce(s,o,new Ge(s.x,s.y,o+r))},this._singleSelectorBounce=(n,i)=>{const r=this.container,s=document.querySelectorAll(n);s.length&&s.forEach(o=>{const a=o,l=r.retina.pixelRatio,u={x:(a.offsetLeft+a.offsetWidth/2)*l,y:(a.offsetTop+a.offsetHeight/2)*l},c=a.offsetWidth/2*l,f=10*l,d=i.type==="circle"?new Ge(u.x,u.y,c+f):new en(a.offsetLeft*l-f,a.offsetTop*l-f,a.offsetWidth*l+f*2,a.offsetHeight*l+f*2);this._processBounce(u,c,d)})}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.bounce;n&&(e.retina.bounceModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=n.interactivity.events,r=e.interactivity.status===Ui,s=i.onHover.enable,o=i.onHover.mode,a=i.onDiv;r&&s&&ve("bounce",o)?this._processMouseBounce():Wf("bounce",a,(l,u)=>this._singleSelectorBounce(l,u))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,o=s.onDiv;return r.position&&s.onHover.enable&&ve("bounce",s.onHover.mode)||Gf("bounce",o)}loadModeOptions(e,...n){e.bounce||(e.bounce=new V6);for(const i of n)e.bounce.load(i==null?void 0:i.bounce)}reset(){}}async function Y6(t,e=!0){await t.addInteractor("externalBounce",n=>new K6(n),e)}class Fm{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){const n=vt(this.color)?void 0:this.color;this.color=Te(e.color,i=>Ne.create(n,i))}e.size!==void 0&&(this.size=e.size)}}}class X6 extends Fm{constructor(){super(),this.selectors=[]}get ids(){return Te(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=Te(e,n=>`#${n}`)}load(e){super.load(e),e&&(e.ids!==void 0&&(this.ids=e.ids),e.selectors!==void 0&&(this.selectors=e.selectors))}}class Z6 extends Fm{load(e){super.load(e),e&&(this.divs=Te(e.divs,n=>{const i=new X6;return i.load(n),i}))}}function Qh(t,e,n,i){if(e>=n){const r=t+(e-n)*i;return Jt(r,t,e)}else if(e{var u;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.clickPosition,s=i.interactivity.modes.bubble;if(!s||!r)return;n.bubble||(n.bubble={});const o=n.retina.bubbleModeDistance;if(!o||o<0)return;const a=n.particles.quadTree.queryCircle(r,o,c=>this.isEnabled(c)),{bubble:l}=n;for(const c of a){if(!l.clicking)continue;c.bubble.inRange=!l.durationEnd;const f=c.getPosition(),d=gt(f,r),h=(new Date().getTime()-(n.interactivity.mouse.clickTime||0))/1e3;h>s.duration&&(l.durationEnd=!0),h>s.duration*2&&(l.clicking=!1,l.durationEnd=!1);const g={bubbleObj:{optValue:n.retina.bubbleModeSize,value:c.bubble.radius},particlesObj:{optValue:Yn(c.options.size.value)*n.retina.pixelRatio,value:c.size.value},type:"size"};this._process(c,d,h,g);const v={bubbleObj:{optValue:s.opacity,value:c.bubble.opacity},particlesObj:{optValue:Yn(c.options.opacity.value),value:((u=c.opacity)==null?void 0:u.value)??1},type:"opacity"};this._process(c,d,h,v),!l.durationEnd&&d<=o?this._hoverBubbleColor(c,d):delete c.bubble.color}},this._hoverBubble=()=>{const n=this.container,i=n.interactivity.mouse.position,r=n.retina.bubbleModeDistance;if(!r||r<0||i===void 0)return;const s=n.particles.quadTree.queryCircle(i,r,o=>this.isEnabled(o));for(const o of s){o.bubble.inRange=!0;const a=o.getPosition(),l=gt(a,i),u=1-l/r;l<=r?u>=0&&n.interactivity.status===Ui&&(this._hoverBubbleSize(o,u),this._hoverBubbleOpacity(o,u),this._hoverBubbleColor(o,u)):this.reset(o),n.interactivity.status===Tc&&this.reset(o)}},this._hoverBubbleColor=(n,i,r)=>{const s=this.container.actualOptions,o=r??s.interactivity.modes.bubble;if(o){if(!n.bubble.finalColor){const a=o.color;if(!a)return;const l=_n(a);n.bubble.finalColor=Qs(l)}if(n.bubble.finalColor)if(o.mix){n.bubble.color=void 0;const a=n.getFillColor();n.bubble.color=a?Cm(qf(a,n.bubble.finalColor,1-i,i)):n.bubble.finalColor}else n.bubble.color=n.bubble.finalColor}},this._hoverBubbleOpacity=(n,i,r)=>{var f,d;const s=this.container,o=s.actualOptions,a=(r==null?void 0:r.opacity)??((f=o.interactivity.modes.bubble)==null?void 0:f.opacity);if(!a)return;const l=n.options.opacity.value,u=((d=n.opacity)==null?void 0:d.value)??1,c=Qh(u,a,Yn(l),i);c!==void 0&&(n.bubble.opacity=c)},this._hoverBubbleSize=(n,i,r)=>{const s=this.container,o=r!=null&&r.size?r.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(o===void 0)return;const a=Yn(n.options.size.value)*s.retina.pixelRatio,l=n.size.value,u=Qh(l,o,a,i);u!==void 0&&(n.bubble.radius=u)},this._process=(n,i,r,s)=>{const o=this.container,a=s.bubbleObj.optValue,l=o.actualOptions,u=l.interactivity.modes.bubble;if(!u||a===void 0)return;const c=u.duration,f=o.retina.bubbleModeDistance,d=s.particlesObj.optValue,h=s.bubbleObj.value,g=s.particlesObj.value||0,v=s.type;if(!(!f||f<0||a===d))if(o.bubble||(o.bubble={}),o.bubble.durationEnd)h&&(v==="size"&&delete n.bubble.radius,v==="opacity"&&delete n.bubble.opacity);else if(i<=f){if((h??g)!==a){const p=g-r*(g-a)/c;v==="size"&&(n.bubble.radius=p),v==="opacity"&&(n.bubble.opacity=p)}}else v==="size"&&delete n.bubble.radius,v==="opacity"&&delete n.bubble.opacity},this._singleSelectorHover=(n,i,r)=>{const s=this.container,o=document.querySelectorAll(i),a=s.actualOptions.interactivity.modes.bubble;!a||!o.length||o.forEach(l=>{const u=l,c=s.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth/2)*c,y:(u.offsetTop+u.offsetHeight/2)*c},d=u.offsetWidth/2*c,h=r.type==="circle"?new Ge(f.x,f.y,d):new en(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),g=s.particles.quadTree.query(h,v=>this.isEnabled(v));for(const v of g){if(!h.contains(v.getPosition()))continue;v.bubble.inRange=!0;const k=a.divs,p=ym(k,u);(!v.bubble.div||v.bubble.div!==u)&&(this.clear(v,n,!0),v.bubble.div=u),this._hoverBubbleSize(v,1,p),this._hoverBubbleOpacity(v,1,p),this._hoverBubbleColor(v,1,p)}})},e.bubble||(e.bubble={}),this.handleClickMode=n=>{n==="bubble"&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,n,i){e.bubble.inRange&&!i||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){const e=this.container,n=e.actualOptions.interactivity.modes.bubble;n&&(e.retina.bubbleModeDistance=n.distance*e.retina.pixelRatio,n.size!==void 0&&(e.retina.bubbleModeSize=n.size*e.retina.pixelRatio))}async interact(e){const n=this.container.actualOptions,i=n.interactivity.events,r=i.onHover,s=i.onClick,o=r.enable,a=r.mode,l=s.enable,u=s.mode,c=i.onDiv;o&&ve("bubble",a)?this._hoverBubble():l&&ve("bubble",u)?this._clickBubble():Wf("bubble",c,(f,d)=>this._singleSelectorHover(e,f,d))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,{onClick:o,onDiv:a,onHover:l}=s,u=Gf("bubble",a);return u||l.enable&&r.position||o.enable&&r.clickPosition?ve("bubble",l.mode)||ve("bubble",o.mode)||u:!1}loadModeOptions(e,...n){e.bubble||(e.bubble=new Z6);for(const i of n)e.bubble.load(i==null?void 0:i.bubble)}reset(e){e.bubble.inRange=!1}}async function e8(t,e=!0){await t.addInteractor("externalBubble",n=>new J6(n),e)}class t8{constructor(){this.opacity=.5}load(e){e&&e.opacity!==void 0&&(this.opacity=e.opacity)}}class n8{constructor(){this.distance=80,this.links=new t8,this.radius=60}get lineLinked(){return this.links}set lineLinked(e){this.links=e}get line_linked(){return this.links}set line_linked(e){this.links=e}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links??e.lineLinked??e.line_linked),e.radius!==void 0&&(this.radius=e.radius))}}function i8(t,e,n,i){const r=Math.floor(n.getRadius()/e.getRadius()),s=e.getFillColor(),o=n.getFillColor();if(!s||!o)return;const a=e.getPosition(),l=n.getPosition(),u=qf(s,o,e.getRadius(),n.getRadius()),c=t.createLinearGradient(a.x,a.y,l.x,l.y);return c.addColorStop(0,Vs(s,i)),c.addColorStop(r>1?1:r,En(u,i)),c.addColorStop(1,Vs(o,i)),c}function r8(t,e,n,i,r){Es(t,i,r),t.lineWidth=e,t.strokeStyle=n,t.stroke()}function s8(t,e,n,i){const r=t.actualOptions,s=r.interactivity.modes.connect;if(s)return i8(e,n,i,s.links.opacity)}function o8(t,e,n){t.canvas.draw(i=>{const r=s8(t,i,e,n);if(!r)return;const s=e.getPosition(),o=n.getPosition();r8(i,e.retina.linksWidth??0,r,s,o)})}class a8 extends pn{constructor(e){super(e)}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.connect;n&&(e.retina.connectModeDistance=n.distance*e.retina.pixelRatio,e.retina.connectModeRadius=n.radius*e.retina.pixelRatio)}async interact(){const e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&e.interactivity.status==="pointermove"){const i=e.interactivity.mouse.position;if(!e.retina.connectModeDistance||e.retina.connectModeDistance<0||!e.retina.connectModeRadius||e.retina.connectModeRadius<0||!i)return;const r=Math.abs(e.retina.connectModeRadius),s=e.particles.quadTree.queryCircle(i,r,a=>this.isEnabled(a));let o=0;for(const a of s){const l=a.getPosition();for(const u of s.slice(o+1)){const c=u.getPosition(),f=Math.abs(e.retina.connectModeDistance),d=Math.abs(l.x-c.x),h=Math.abs(l.y-c.y);dnew a8(n),e)}class u8{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){e&&(e.blink!==void 0&&(this.blink=e.blink),e.color!==void 0&&(this.color=Ne.create(this.color,e.color)),e.consent!==void 0&&(this.consent=e.consent),e.opacity!==void 0&&(this.opacity=e.opacity))}}class c8{constructor(){this.distance=100,this.links=new u8}get lineLinked(){return this.links}set lineLinked(e){this.links=e}get line_linked(){return this.links}set line_linked(e){this.links=e}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links??e.lineLinked??e.line_linked))}}function f8(t,e,n,i,r,s){Es(t,n,i),t.strokeStyle=En(r,s),t.lineWidth=e,t.stroke()}function d8(t,e,n,i,r){t.canvas.draw(s=>{const o=e.getPosition();f8(s,e.retina.linksWidth??0,o,r,n,i)})}class h8 extends pn{constructor(e){super(e)}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.grab;n&&(e.retina.grabModeDistance=n.distance*e.retina.pixelRatio)}async interact(){var a;const e=this.container,n=e.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||e.interactivity.status!==Ui)return;const r=e.interactivity.mouse.position;if(!r)return;const s=e.retina.grabModeDistance;if(!s||s<0)return;const o=e.particles.quadTree.queryCircle(r,s,l=>this.isEnabled(l));for(const l of o){const u=l.getPosition(),c=gt(u,r);if(c>s)continue;const f=i.modes.grab.links,d=f.opacity,h=d-c*d/s;if(h<=0)continue;const g=f.color??((a=l.options.links)==null?void 0:a.color);if(!e.particles.grabLineColor&&g){const k=i.modes.grab.links;e.particles.grabLineColor=_m(g,k.blink,k.consent)}const v=Lc(l,void 0,e.particles.grabLineColor);v&&d8(e,l,v,h,r)}}isEnabled(e){const n=this.container,i=n.interactivity.mouse,r=((e==null?void 0:e.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&ve("grab",r.onHover.mode)}loadModeOptions(e,...n){e.grab||(e.grab=new c8);for(const i of n)e.grab.load(i==null?void 0:i.grab)}reset(){}}async function p8(t,e=!0){await t.addInteractor("externalGrab",n=>new h8(n),e)}class m8 extends pn{constructor(e){super(e),this.handleClickMode=n=>{if(n!=="pause")return;const i=this.container;i.getAnimationStatus()?i.pause():i.play()}}clear(){}init(){}async interact(){}isEnabled(){return!0}reset(){}}async function y8(t,e=!0){await t.addInteractor("externalPause",n=>new m8(n),e)}class g8{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=G(e)}load(e){if(!e)return;e.default!==void 0&&(this.default=e.default),e.groups!==void 0&&(this.groups=e.groups.map(i=>i)),this.groups.length||(this.default=!0);const n=e.quantity??e.particles_nb;n!==void 0&&(this.quantity=G(n))}}class v8 extends pn{constructor(e){super(e),this.handleClickMode=n=>{if(n!=="push")return;const i=this.container,r=i.actualOptions,s=r.interactivity.modes.push;if(!s)return;const o=N(s.quantity);if(o<=0)return;const a=dl([void 0,...s.groups]),l=a!==void 0?i.actualOptions.particles.groups[a]:void 0;i.particles.push(o,i.interactivity.mouse,l,a)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.push||(e.push=new g8);for(const i of n)e.push.load(i==null?void 0:i.push)}reset(){}}async function w8(t,e=!0){await t.addInteractor("externalPush",n=>new v8(n),e)}class x8{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=G(e)}load(e){if(!e)return;const n=e.quantity??e.particles_nb;n!==void 0&&(this.quantity=G(n))}}class k8 extends pn{constructor(e){super(e),this.handleClickMode=n=>{const i=this.container,r=i.actualOptions;if(!r.interactivity.modes.remove||n!=="remove")return;const s=N(r.interactivity.modes.remove.quantity);i.particles.removeQuantity(s)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.remove||(e.remove=new x8);for(const i of n)e.remove.load(i==null?void 0:i.remove)}reset(){}}async function S8(t,e=!0){await t.addInteractor("externalRemove",n=>new k8(n),e)}class Nm{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}class C8 extends Nm{constructor(){super(),this.selectors=[]}get ids(){return Te(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=Te(e,n=>`#${n}`)}load(e){super.load(e),e&&(e.ids!==void 0&&(this.ids=e.ids),e.selectors!==void 0&&(this.selectors=e.selectors))}}class b8 extends Nm{load(e){super.load(e),e&&(this.divs=Te(e.divs,n=>{const i=new C8;return i.load(n),i}))}}class _8 extends pn{constructor(e,n){super(n),this._clickRepulse=()=>{const i=this.container,r=i.actualOptions.interactivity.modes.repulse;if(!r)return;const s=i.repulse||{particles:[]};if(s.finish||(s.count||(s.count=0),s.count++,s.count===i.particles.count&&(s.finish=!0)),s.clicking){const o=i.retina.repulseModeDistance;if(!o||o<0)return;const a=Math.pow(o/6,3),l=i.interactivity.mouse.clickPosition;if(l===void 0)return;const u=new Ge(l.x,l.y,a),c=i.particles.quadTree.query(u,f=>this.isEnabled(f));for(const f of c){const{dx:d,dy:h,distance:g}=Ze(l,f.position),v=g**2,k=r.speed,p=-a*k/v;if(v<=a){s.particles.push(f);const m=Re.create(d,h);m.length=p,f.velocity.setTo(m)}}}else if(s.clicking===!1){for(const o of s.particles)o.velocity.setTo(o.initialVelocity);s.particles=[]}},this._hoverRepulse=()=>{const i=this.container,r=i.interactivity.mouse.position,s=i.retina.repulseModeDistance;!s||s<0||!r||this._processRepulse(r,s,new Ge(r.x,r.y,s))},this._processRepulse=(i,r,s,o)=>{const a=this.container,l=a.particles.quadTree.query(s,c=>this.isEnabled(c)),u=a.actualOptions.interactivity.modes.repulse;if(u)for(const c of l){const{dx:f,dy:d,distance:h}=Ze(c.position,i),g=((o==null?void 0:o.speed)??u.speed)*u.factor,v=Jt(hm(u.easing)(1-h/r)*g,0,u.maxSpeed),k=Re.create(h===0?g:f/h*v,h===0?g:d/h*v);c.position.addTo(k)}},this._singleSelectorRepulse=(i,r)=>{const s=this.container,o=s.actualOptions.interactivity.modes.repulse;if(!o)return;const a=document.querySelectorAll(i);a.length&&a.forEach(l=>{const u=l,c=s.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth/2)*c,y:(u.offsetTop+u.offsetHeight/2)*c},d=u.offsetWidth/2*c,h=r.type==="circle"?new Ge(f.x,f.y,d):new en(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),g=o.divs,v=ym(g,u);this._processRepulse(f,d,h,v)})},this._engine=e,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,s=r.interactivity.modes.repulse;if(!s||i!=="repulse")return;n.repulse||(n.repulse={particles:[]});const o=n.repulse;o.clicking=!0,o.count=0;for(const a of n.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);o.particles=[],o.finish=!1,setTimeout(()=>{n.destroyed||(o.clicking=!1)},s.duration*1e3)}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.repulse;n&&(e.retina.repulseModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=e.interactivity.status===Ui,r=n.interactivity.events,s=r.onHover,o=s.enable,a=s.mode,l=r.onClick,u=l.enable,c=l.mode,f=r.onDiv;i&&o&&ve("repulse",a)?this._hoverRepulse():u&&ve("repulse",c)?this._clickRepulse():Wf("repulse",f,(d,h)=>this._singleSelectorRepulse(d,h))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,o=s.onDiv,a=s.onHover,l=s.onClick,u=Gf("repulse",o);if(!(u||a.enable&&r.position||l.enable&&r.clickPosition))return!1;const c=a.mode,f=l.mode;return ve("repulse",c)||ve("repulse",f)||u}loadModeOptions(e,...n){e.repulse||(e.repulse=new b8);for(const i of n)e.repulse.load(i==null?void 0:i.repulse)}reset(){}}async function E8(t,e=!0){await t.addInteractor("externalRepulse",n=>new _8(t,n),e)}class P8{constructor(){this.factor=3,this.radius=200}load(e){e&&(e.factor!==void 0&&(this.factor=e.factor),e.radius!==void 0&&(this.radius=e.radius))}}class O8 extends pn{constructor(e){super(e)}clear(e,n,i){e.slow.inRange&&!i||(e.slow.factor=1)}init(){const e=this.container,n=e.actualOptions.interactivity.modes.slow;n&&(e.retina.slowModeRadius=n.radius*e.retina.pixelRatio)}async interact(){}isEnabled(e){const n=this.container,i=n.interactivity.mouse,r=((e==null?void 0:e.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&ve("slow",r.onHover.mode)}loadModeOptions(e,...n){e.slow||(e.slow=new P8);for(const i of n)e.slow.load(i==null?void 0:i.slow)}reset(e){e.slow.inRange=!1;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.position,s=n.retina.slowModeRadius,o=i.interactivity.modes.slow;if(!o||!s||s<0||!r)return;const a=e.getPosition(),l=gt(r,a),u=l/s,c=o.factor,{slow:f}=e;l>s||(f.inRange=!0,f.factor=u/c)}}async function M8(t,e=!0){await t.addInteractor("externalSlow",n=>new O8(n),e)}const mu=[0,4,2,1],Vh=[8,8,4,2];class z8{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){const n=this.data.slice(this.pos,this.pos+e);return this.pos+=n.length,n.reduce((i,r)=>i+String.fromCharCode(r),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",n=0;do{n=this.data[this.pos++];for(let i=n;--i>=0;e+=String.fromCharCode(this.data[this.pos++]));}while(n!==0);return e}readSubBlocksBin(){let e=0,n=0;for(let r=0;(e=this.data[this.pos+r])!==0;r+=e+1)n+=e;const i=new Uint8Array(n);for(let r=0;(e=this.data[this.pos++])!==0;)for(let s=e;--s>=0;i[r++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;this.data[this.pos]!==0;this.pos+=this.data[this.pos]+1);this.pos++}}function $m(t,e){const n=[];for(let i=0;i>>5,r.disposalMethod=(s&28)>>>2,r.userInputDelayFlag=(s&2)===2;const o=(s&1)===1;r.delayTime=t.nextTwoBytes()*10;const a=t.nextByte();o&&i(a),t.pos++;break}case 255:{t.pos++;const r={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(r);break}case 254:{e.comments.push([n(!1),t.readSubBlocks()]);break}case 1:{if(e.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,e.frames[n(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break}default:t.skipSubBlocks();break}}async function T8(t,e,n,i,r,s){const o=e.frames[i(!0)];o.left=t.nextTwoBytes(),o.top=t.nextTwoBytes(),o.width=t.nextTwoBytes(),o.height=t.nextTwoBytes();const a=t.nextByte(),l=(a&128)===128,u=(a&64)===64;o.sortFlag=(a&32)===32,o.reserved=(a&24)>>>3;const c=1<<(a&7)+1;l&&(o.localColorTable=$m(t,c));const f=p=>{const{r:m,g:y,b:w}=(l?o.localColorTable:e.globalColorTable)[p];return{r:m,g:y,b:w,a:p===r(null)?n?~~((m+y+w)/3):0:255}},d=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(p){if(p instanceof DOMException&&p.name==="IndexSizeError")return null;throw p}})();if(d==null)throw new EvalError("GIF frame size is to large");const h=t.nextByte(),g=t.readSubBlocksBin(),v=1<{const y=p>>>3,w=p&7;return(g[y]+(g[y+1]<<8)+(g[y+2]<<16)&(1<>>w};if(u){for(let p=0,m=h+1,y=0,w=[[0]],S=0;S<4;S++){if(mu[S]=w.length?w.push(w[z].concat(w[z][0])):z!==v&&w.push(w[z].concat(w[p][0]));for(let B=0;B=o.height))break}s==null||s(t.pos/(t.data.length-1),i(!1)+1,d,{x:o.left,y:o.top},{width:e.width,height:e.height})}o.image=d,o.bitmap=await createImageBitmap(d)}else{for(let p=0,m=h+1,y=0,w=[[0]],S=-4;;){const _=p;if(p=k(y,m),y+=m,p===v){m=h+1,w.length=v+2;for(let C=0;C=w.length?w.push(w[_].concat(w[_][0])):_!==v&&w.push(w[_].concat(w[p][0]));for(let C=0;C=1<>>4,s.sortFlag=(a&8)===8;const u=1<<(a&7)+1,c=o.nextByte();s.pixelAspectRatio=o.nextByte(),s.pixelAspectRatio!==0&&(s.pixelAspectRatio=(s.pixelAspectRatio+15)/64),l&&(s.globalColorTable=$m(o,u));const f=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(w){if(w instanceof DOMException&&w.name==="IndexSizeError")return null;throw w}})();if(f==null)throw new Error("GIF frame size is to large");const{r:d,g:h,b:g}=s.globalColorTable[c];f.data.set(l?[d,h,g,255]:[0,0,0,0]);for(let w=4;w(w&&(k=!0),v),y=w=>(w!=null&&(p=w),p);try{do k&&(s.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),v++,p=-1,k=!1);while(!await D8(o,s,n,m,y,e));s.frames.length--;for(const w of s.frames){if(w.userInputDelayFlag&&w.delayTime===0){s.totalTime=1/0;break}s.totalTime+=w.delayTime}return s}catch(w){throw w instanceof EvalError?new Error(`error while parsing frame ${v} "${w.message}"`):w}}const A8=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function F8(t,e,n){const{svgData:i}=t;if(!i)return"";const r=Vs(e,n);if(i.includes("fill"))return i.replace(A8,()=>r);const s=i.indexOf(">");return`${i.substring(0,s)} fill="${r}"${i.substring(s)}`}async function pl(t){return new Promise(e=>{t.loading=!0;const n=new Image;t.element=n,n.addEventListener("load",()=>{t.loading=!1,e()}),n.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,Gi().error(`${Ft} loading image: ${t.source}`),e()}),n.src=t.source})}async function N8(t){if(t.type!=="gif"){await pl(t);return}t.loading=!0;try{t.gifData=await L8(t.source),t.gifLoopCount=I8(t.gifData)??0,t.gifLoopCount===0&&(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}async function $8(t){if(t.type!=="svg"){await pl(t);return}t.loading=!0;const e=await fetch(t.source);e.ok?t.svgData=await e.text():(Gi().error(`${Ft} Image not found`),t.error=!0),t.loading=!1}function j8(t,e,n,i){var o;const r=F8(t,n,((o=i.opacity)==null?void 0:o.value)??1),s={color:n,gif:e.gif,data:{...t,svgData:r},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor??e.replace_color,source:e.src};return new Promise(a=>{const l=new Blob([r],{type:"image/svg+xml"}),u=URL||window.URL||window.webkitURL||window,c=u.createObjectURL(l),f=new Image;f.addEventListener("load",()=>{s.loaded=!0,s.element=f,a(s),u.revokeObjectURL(c)}),f.addEventListener("error",async()=>{u.revokeObjectURL(c);const d={...t,error:!1,loading:!0};await pl(d),s.loaded=!0,s.element=d.element,a(s)}),f.src=c})}class B8{constructor(e){this.loadImageShape=async n=>{if(!this._engine.loadImage)throw new Error(`${Ft} image shape not initialized`);await this._engine.loadImage({gif:n.gif,name:n.name,replaceColor:n.replaceColor??n.replace_color??!1,src:n.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e,n,i,r,s){const o=n.image,a=o==null?void 0:o.element;if(o){if(e.globalAlpha=r,o.gif&&o.gifData){const l=new OffscreenCanvas(o.gifData.width,o.gifData.height),u=l.getContext("2d");if(!u)throw new Error("could not create offscreen canvas context");u.imageSmoothingQuality="low",u.imageSmoothingEnabled=!1,u.clearRect(0,0,l.width,l.height),n.gifLoopCount===void 0&&(n.gifLoopCount=o.gifLoopCount??0);let c=n.gifFrame??0;const f={x:-o.gifData.width*.5,y:-o.gifData.height*.5},d=o.gifData.frames[c];if(n.gifTime===void 0&&(n.gifTime=0),!d.bitmap)return;switch(e.scale(i/o.gifData.width,i/o.gifData.height),d.disposalMethod){case 4:case 5:case 6:case 7:case 0:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(l,f.x,f.y),u.clearRect(0,0,l.width,l.height);break;case 1:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(l,f.x,f.y);break;case 2:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(l,f.x,f.y),u.clearRect(0,0,l.width,l.height),o.gifData.globalColorTable.length===0?u.putImageData(o.gifData.frames[0].image,f.x+d.left,f.y+d.top):u.putImageData(o.gifData.backgroundImage,f.x,f.y);break;case 3:{const h=u.getImageData(0,0,l.width,l.height);u.drawImage(d.bitmap,d.left,d.top),e.drawImage(l,f.x,f.y),u.clearRect(0,0,l.width,l.height),u.putImageData(h,0,0)}break}if(n.gifTime+=s.value,n.gifTime>d.delayTime){if(n.gifTime-=d.delayTime,++c>=o.gifData.frames.length){if(--n.gifLoopCount<=0)return;c=0,u.clearRect(0,0,l.width,l.height)}n.gifFrame=c}e.scale(o.gifData.width/i,o.gifData.height/i)}else if(a){const l=o.ratio,u={x:-i,y:-i};e.drawImage(a,u.x,u.y,i*2,i*2/l)}e.globalAlpha=1}}getSidesCount(){return 12}async init(e){const n=e.actualOptions;if(!(!n.preload||!this._engine.loadImage))for(const i of n.preload)await this._engine.loadImage(i)}loadShape(e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);const n=e.shapeData;this._engine.images.find(r=>r.name===n.name||r.source===n.src)||this.loadImageShape(n).then(()=>{this.loadShape(e)})}particleInit(e,n){if(n.shape!=="image"&&n.shape!=="images")return;this._engine.images||(this._engine.images=[]);const i=this._engine.images,r=n.shapeData,s=n.getFillColor(),o=i.find(l=>l.name===r.name||l.source===r.src);if(!o)return;const a=r.replaceColor??r.replace_color??o.replaceColor;if(o.loading){setTimeout(()=>{this.particleInit(e,n)});return}(async()=>{let l;o.svgData&&s?l=await j8(o,r,s,n):l={color:s,data:o,element:o.element,gif:o.gif,gifData:o.gifData,gifLoopCount:o.gifLoopCount,loaded:!0,ratio:r.width&&r.height?r.width/r.height:o.ratio??1,replaceColor:a,source:r.src},l.ratio||(l.ratio=1);const u=r.fill??n.fill,c=r.close??n.close,f={image:l,fill:u,close:c};n.image=f.image,n.fill=f.fill,n.close=f.close})()}}class U8{constructor(){this.src="",this.gif=!1}load(e){e&&(e.gif!==void 0&&(this.gif=e.gif),e.height!==void 0&&(this.height=e.height),e.name!==void 0&&(this.name=e.name),e.replaceColor!==void 0&&(this.replaceColor=e.replaceColor),e.src!==void 0&&(this.src=e.src),e.width!==void 0&&(this.width=e.width))}}class H8{constructor(e){this.id="imagePreloader",this._engine=e}getPlugin(){return{}}loadOptions(e,n){if(!n||!n.preload)return;e.preload||(e.preload=[]);const i=e.preload;for(const r of n.preload){const s=i.find(o=>o.name===r.name||o.src===r.src);if(s)s.load(r);else{const o=new U8;o.load(r),i.push(o)}}}needsPlugin(){return!0}}function G8(t){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${Ft} no image source provided`);if(t.images||(t.images=[]),!t.images.find(n=>n.name===e.name||n.source===e.src))try{const n={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-3),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(n),await(e.gif?N8:e.replaceColor?$8:pl)(n)}catch{throw new Error(`${Ft} ${e.name??e.src} not found`)}})}async function W8(t,e=!0){G8(t);const n=new H8(t);await t.addPlugin(n,e),await t.addShape(["image","images"],new B8(t),e)}class q8 extends mi{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class Q8 extends mi{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class V8{constructor(){this.count=0,this.delay=new q8,this.duration=new Q8}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}class K8{constructor(e){this.container=e}init(e){const n=this.container,i=e.options,r=i.life;r&&(e.life={delay:n.retina.reduceFactor?N(r.delay.value)*(r.delay.sync?1:ae())/n.retina.reduceFactor*1e3:0,delayTime:0,duration:n.retina.reduceFactor?N(r.duration.value)*(r.duration.sync?1:ae())/n.retina.reduceFactor*1e3:0,time:0,count:r.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.life&&(e.spawning=e.life.delay>0))}isEnabled(e){return!e.destroyed}loadOptions(e,...n){e.life||(e.life=new V8);for(const i of n)e.life.load(i==null?void 0:i.life)}update(e,n){if(!this.isEnabled(e)||!e.life)return;const i=e.life;let r=!1;if(e.spawning)if(i.delayTime+=n.value,i.delayTime>=e.life.delay)r=!0,e.spawning=!1,i.delayTime=0,i.time=0;else return;if(i.duration===-1||e.spawning||(r?i.time=0:i.time+=n.value,i.time0&&e.life.count--,e.life.count===0){e.destroy();return}const s=this.container.canvas.size,o=G(0,s.width),a=G(0,s.width);e.position.x=at(o),e.position.y=at(a),e.spawning=!0,i.delayTime=0,i.time=0,e.reset();const l=e.options.life;l&&(i.delay=N(l.delay.value)*1e3,i.duration=N(l.duration.value)*1e3)}}async function Y8(t,e=!0){await t.addParticleUpdater("life",n=>new K8(n),e)}class X8{draw(e,n,i){const r=n.shapeData;e.moveTo(-i/2,0),e.lineTo(i/2,0),e.lineCap=(r==null?void 0:r.cap)??"butt"}getSidesCount(){return 1}}async function Z8(t,e=!0){await t.addShape("line",new X8,e)}class J8{init(){}isEnabled(e){return!qr()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){const n=e.container,i=n.actualOptions,r=i.interactivity.events.onHover.parallax;if(qr()||!r.enable)return;const s=r.force,o=n.interactivity.mouse.position;if(!o)return;const a=n.canvas.size,l={x:a.width/2,y:a.height/2},u=r.smooth,c=e.getRadius()/s,f={x:(o.x-l.x)*c,y:(o.y-l.y)*c},{offset:d}=e;d.x+=(f.x-d.x)/u,d.y+=(f.y-d.y)/u}}async function e7(t,e=!0){await t.addMover("parallax",()=>new J8,e)}class t7 extends Qf{constructor(e){super(e)}clear(){}init(){}async interact(e){const n=this.container,i=e.retina.attractDistance??n.retina.attractDistance,r=e.getPosition(),s=n.particles.quadTree.queryCircle(r,i);for(const o of s){if(e===o||!o.options.move.attract.enable||o.destroyed||o.spawning)continue;const a=o.getPosition(),{dx:l,dy:u}=Ze(r,a),c=e.options.move.attract.rotate,f=l/(c.x*1e3),d=u/(c.y*1e3),h=o.size.value/e.size.value,g=1/h;e.velocity.x-=f*h,e.velocity.y-=d*h,o.velocity.x+=f*g,o.velocity.y+=d*g}}isEnabled(e){return e.options.move.attract.enable}reset(){}}async function n7(t,e=!0){await t.addInteractor("particlesAttract",n=>new t7(n),e)}function Kh(t,e,n,i,r,s){const o=Jt(t.options.collisions.absorb.speed*r.factor/10,0,i);t.size.value+=o/2,n.size.value-=o,i<=s&&(n.size.value=0,n.destroy())}function i7(t,e,n,i){const r=t.getRadius(),s=e.getRadius();r===void 0&&s!==void 0?t.destroy():r!==void 0&&s===void 0?e.destroy():r!==void 0&&s!==void 0&&(r>=s?Kh(t,r,e,s,n,i):Kh(e,s,t,r,n,i))}const Yh=t=>{t.collisionMaxSpeed===void 0&&(t.collisionMaxSpeed=N(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function jm(t,e){gm(Ic(t),Ic(e)),Yh(t),Yh(e)}function r7(t,e){!t.unbreakable&&!e.unbreakable&&jm(t,e),t.getRadius()===void 0&&e.getRadius()!==void 0?t.destroy():t.getRadius()!==void 0&&e.getRadius()===void 0?e.destroy():t.getRadius()!==void 0&&e.getRadius()!==void 0&&(t.getRadius()>=e.getRadius()?e:t).destroy()}function s7(t,e,n,i){switch(t.options.collisions.mode){case"absorb":{i7(t,e,n,i);break}case"bounce":{jm(t,e);break}case"destroy":{r7(t,e);break}}}class o7 extends Qf{constructor(e){super(e)}clear(){}init(){}async interact(e,n){if(e.destroyed||e.spawning)return;const i=this.container,r=e.getPosition(),s=e.getRadius(),o=i.particles.quadTree.queryCircle(r,s*2);for(const a of o){if(e===a||!a.options.collisions.enable||e.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const l=a.getPosition(),u=a.getRadius();if(Math.abs(Math.round(r.z)-Math.round(l.z))>s+u)continue;const c=gt(r,l),f=s+u;c>f||s7(e,a,n,i.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}}async function a7(t,e=!0){await t.addInteractor("particlesCollisions",n=>new o7(n),e)}class l7 extends Ge{constructor(e,n,i,r){super(e,n,i),this.canvasSize=r,this.canvasSize={...r}}contains(e){const{width:n,height:i}=this.canvasSize,{x:r,y:s}=e;return super.contains(e)||super.contains({x:r-n,y:s})||super.contains({x:r-n,y:s-i})||super.contains({x:r,y:s-i})}intersects(e){if(super.intersects(e))return!0;const n=e,i=e,r={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(i.radius!==void 0){const s=new Ge(r.x,r.y,i.radius*2);return super.intersects(s)}else if(n.size!==void 0){const s=new en(r.x,r.y,n.size.width*2,n.size.height*2);return super.intersects(s)}return!1}}class u7{constructor(){this.blur=5,this.color=new Ne,this.color.value="#000",this.enable=!1}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=Ne.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable))}}class c7{constructor(){this.enable=!1,this.frequency=1}load(e){e&&(e.color!==void 0&&(this.color=Ne.create(this.color,e.color)),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity))}}class f7{constructor(){this.blink=!1,this.color=new Ne,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new u7,this.triangles=new c7,this.width=1,this.warp=!1}load(e){e&&(e.id!==void 0&&(this.id=e.id),e.blink!==void 0&&(this.blink=e.blink),this.color=Ne.create(this.color,e.color),e.consent!==void 0&&(this.consent=e.consent),e.distance!==void 0&&(this.distance=e.distance),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),e.width!==void 0&&(this.width=e.width),e.warp!==void 0&&(this.warp=e.warp))}}function d7(t,e,n,i,r){const{dx:s,dy:o,distance:a}=Ze(t,e);if(!r||a<=n)return a;const l={x:Math.abs(s),y:Math.abs(o)},u={x:Math.min(l.x,i.width-l.x),y:Math.min(l.y,i.height-l.y)};return Math.sqrt(u.x**2+u.y**2)}class h7 extends Qf{constructor(e){super(e),this._setColor=n=>{if(!n.options.links)return;const i=this.linkContainer,r=n.options.links;let s=r.id===void 0?i.particles.linksColor:i.particles.linksColors.get(r.id);if(s)return;const o=r.color;s=_m(o,r.blink,r.consent),r.id===void 0?i.particles.linksColor=s:i.particles.linksColors.set(r.id,s)},this.linkContainer=e}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}async interact(e){if(!e.options.links)return;e.links=[];const n=e.getPosition(),i=this.container,r=i.canvas.size;if(n.x<0||n.y<0||n.x>r.width||n.y>r.height)return;const s=e.options.links,o=s.opacity,a=e.retina.linksDistance??0,l=s.warp,u=l?new l7(n.x,n.y,a,r):new Ge(n.x,n.y,a),c=i.particles.quadTree.query(u);for(const f of c){const d=f.options.links;if(e===f||!(d!=null&&d.enable)||s.id!==d.id||f.spawning||f.destroyed||!f.links||e.links.some(k=>k.destination===f)||f.links.some(k=>k.destination===e))continue;const h=f.getPosition();if(h.x<0||h.y<0||h.x>r.width||h.y>r.height)continue;const g=d7(n,h,a,r,l&&d.warp);if(g>a)continue;const v=(1-g/a)*o;this._setColor(e),e.links.push({destination:f,opacity:v})}}isEnabled(e){var n;return!!((n=e.options.links)!=null&&n.enable)}loadParticlesOptions(e,...n){e.links||(e.links=new f7);for(const i of n)e.links.load((i==null?void 0:i.links)??(i==null?void 0:i.lineLinked)??(i==null?void 0:i.line_linked))}reset(){}}async function p7(t,e=!0){await t.addInteractor("particlesLinks",n=>new h7(n),e)}function m7(t){let e=!1;const{begin:n,end:i,maxDistance:r,context:s,canvasSize:o,width:a,backgroundMask:l,colorLine:u,opacity:c,links:f}=t;if(gt(n,i)<=r)Es(s,n,i),e=!0;else if(f.warp){let h,g;const v={x:i.x-o.width,y:i.y},k=Ze(n,v);if(k.distance<=r){const p=n.y-k.dy/k.dx*n.x;h={x:0,y:p},g={x:o.width,y:p}}else{const p={x:i.x,y:i.y-o.height},m=Ze(n,p);if(m.distance<=r){const w=-(n.y-m.dy/m.dx*n.x)/(m.dy/m.dx);h={x:w,y:0},g={x:w,y:o.height}}else{const y={x:i.x-o.width,y:i.y-o.height},w=Ze(n,y);if(w.distance<=r){const S=n.y-w.dy/w.dx*n.x;h={x:-S/(w.dy/w.dx),y:S},g={x:h.x+o.width,y:h.y+o.height}}}}h&&g&&(Es(s,n,h),Es(s,i,g),e=!0)}if(!e)return;s.lineWidth=a,l.enable&&(s.globalCompositeOperation=l.composite),s.strokeStyle=En(u,c);const{shadow:d}=f;if(d.enable){const h=Xt(d.color);h&&(s.shadowBlur=d.blur,s.shadowColor=En(h))}s.stroke()}function y7(t){const{context:e,pos1:n,pos2:i,pos3:r,backgroundMask:s,colorTriangle:o,opacityTriangle:a}=t;Y5(e,n,i,r),s.enable&&(e.globalCompositeOperation=s.composite),e.fillStyle=En(o,a),e.fill()}function g7(t){return t.sort((e,n)=>e-n),t.join("_")}function Xh(t,e){const n=g7(t.map(r=>r.id));let i=e.get(n);return i===void 0&&(i=ae(),e.set(n,i)),i}class v7{constructor(e){this.container=e,this._drawLinkLine=(n,i)=>{const r=n.options.links;if(!(r!=null&&r.enable))return;const s=this.container,o=s.actualOptions,a=i.destination,l=n.getPosition(),u=a.getPosition();let c=i.opacity;s.canvas.draw(f=>{var p;let d;const h=(p=n.options.twinkle)==null?void 0:p.lines;if(h!=null&&h.enable){const m=h.frequency,y=Xt(h.color);ae(){const s=n.options.links;if(!(s!=null&&s.enable))return;const o=s.triangles;if(!o.enable)return;const a=this.container,l=a.actualOptions,u=i.destination,c=r.destination,f=o.opacity??(i.opacity+r.opacity)/2;f<=0||a.canvas.draw(d=>{const h=n.getPosition(),g=u.getPosition(),v=c.getPosition(),k=n.retina.linksDistance??0;if(gt(h,g)>k||gt(v,g)>k||gt(v,h)>k)return;let p=Xt(o.color);if(!p){const m=s.id!==void 0?a.particles.linksColors.get(s.id):a.particles.linksColor;p=Lc(n,u,m)}p&&y7({context:d,pos1:h,pos2:g,pos3:v,backgroundMask:l.backgroundMask,colorTriangle:p,opacityTriangle:f})})},this._drawTriangles=(n,i,r,s)=>{var l,u,c;const o=r.destination;if(!((l=n.links)!=null&&l.triangles.enable&&((u=o.options.links)!=null&&u.triangles.enable)))return;const a=(c=o.links)==null?void 0:c.filter(f=>{const d=this._getLinkFrequency(o,f.destination);return o.options.links&&d<=o.options.links.frequency&&s.findIndex(h=>h.destination===f.destination)>=0});if(a!=null&&a.length)for(const f of a){const d=f.destination;this._getTriangleFrequency(i,o,d)>n.links.triangles.frequency||this._drawLinkTriangle(i,r,f)}},this._getLinkFrequency=(n,i)=>Xh([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,r)=>Xh([n,i,r],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(e,n){const{links:i,options:r}=n;if(!i||i.length<=0)return;const s=i.filter(o=>r.links&&this._getLinkFrequency(n,o.destination)<=r.links.frequency);for(const o of s)this._drawTriangles(r,n,o,s),o.opacity>0&&(n.retina.linksWidth??0)>0&&this._drawLinkLine(n,o)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map}particleCreated(e){if(e.links=[],!e.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=e,{distance:r,width:s}=e.options.links;i.linksDistance=r*n,i.linksWidth=s*n}particleDestroyed(e){e.links=[]}}class w7{constructor(){this.id="links"}getPlugin(e){return new v7(e)}loadOptions(){}needsPlugin(){return!0}}async function x7(t,e=!0){const n=new w7;await t.addPlugin(n,e)}async function k7(t,e=!0){await p7(t,e),await x7(t,e)}class Bm{draw(e,n,i){const r=this.getCenter(n,i),s=this.getSidesData(n,i),o=s.count.numerator*s.count.denominator,a=s.count.numerator/s.count.denominator,l=180*(a-2)/a,u=Math.PI-Math.PI*l/180;if(e){e.beginPath(),e.translate(r.x,r.y),e.moveTo(0,0);for(let c=0;co&&(n.value-=o);break;case"decreasing":default:n.value-=s,n.value<0&&(n.value+=o);break}n.velocity&&a!==1&&(n.velocity*=a)}}class z7{constructor(e){this.container=e}init(e){const n=e.options.rotate;if(!n)return;e.rotate={enable:n.animation.enable,value:N(n.value)*Math.PI/180},e.pathRotation=n.path;let i=n.direction;switch(i==="random"&&(i=Math.floor(ae()*2)>0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}const r=n.animation;r.enable&&(e.rotate.decay=1-N(r.decay),e.rotate.velocity=N(r.speed)/360*this.container.retina.reduceFactor,r.sync||(e.rotate.velocity*=ae())),e.rotation=e.rotate.value}isEnabled(e){const n=e.options.rotate;return n?!e.destroyed&&!e.spawning&&n.animation.enable&&!n.path:!1}loadOptions(e,...n){e.rotate||(e.rotate=new O7);for(const i of n)e.rotate.load(i==null?void 0:i.rotate)}update(e,n){var i;this.isEnabled(e)&&(M7(e,n),e.rotation=((i=e.rotate)==null?void 0:i.value)??0)}}async function R7(t,e=!0){await t.addParticleUpdater("rotate",n=>new z7(n),e)}const T7=Math.sqrt(2);class D7{draw(e,n,i){const r=i/T7,s=r*2;e.rect(-r,-r,s,s)}getSidesCount(){return 4}}async function I7(t,e=!0){await t.addShape(["edge","square"],new D7,e)}class L7{draw(e,n,i){const r=n.sides,s=n.starInset??2;e.moveTo(0,0-i);for(let o=0;o0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const s=at(n.offset),o=(e.velocity??0)*t.factor+s*3.6,a=e.decay??1;!r||e.status==="increasing"?(e.value+=o,e.value>i&&(e.loops||(e.loops=0),e.loops++,r&&(e.status="decreasing",e.value-=e.value%i))):(e.value-=o,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)),e.velocity&&a!==1&&(e.velocity*=a),e.value>i&&(e.value%=i)}function F7(t,e){if(!t.strokeColor||!t.strokeAnimation)return;const{h:n,s:i,l:r}=t.strokeColor,{h:s,s:o,l:a}=t.strokeAnimation;n&&yu(e,n,s,360,!1),i&&yu(e,i,o,100,!0),r&&yu(e,r,a,100,!0)}class N7{constructor(e){this.container=e}init(e){var o;const n=this.container,i=e.options,r=_n(i.stroke,e.id,i.reduceDuplicates);e.strokeWidth=N(r.width)*n.retina.pixelRatio,e.strokeOpacity=N(r.opacity??1),e.strokeAnimation=(o=r.color)==null?void 0:o.animation;const s=Qs(r.color)??e.getFillColor();s&&(e.strokeColor=Em(s,e.strokeAnimation,n.retina.reduceFactor))}isEnabled(e){const n=e.strokeAnimation,{strokeColor:i}=e;return!e.destroyed&&!e.spawning&&!!n&&((i==null?void 0:i.h.value)!==void 0&&i.h.enable||(i==null?void 0:i.s.value)!==void 0&&i.s.enable||(i==null?void 0:i.l.value)!==void 0&&i.l.enable)}update(e,n){this.isEnabled(e)&&F7(e,n)}}async function $7(t,e=!0){await t.addParticleUpdater("strokeColor",n=>new N7(n),e)}const sa=["text","character","char"];class j7{draw(e,n,i,r){const s=n.shapeData;if(s===void 0)return;const o=s.value;if(o===void 0)return;n.text===void 0&&(n.text=_n(o,n.randomIndexData));const a=n.text,l=s.style??"",u=s.weight??"400",c=Math.round(i)*2,f=s.font??"Verdana",d=n.fill,h=a.length*i/2;e.font=`${l} ${u} ${c}px "${f}"`;const g={x:-h,y:i/2};e.globalAlpha=r,d?e.fillText(a,g.x,g.y):e.strokeText(a,g.x,g.y),e.globalAlpha=1}getSidesCount(){return 12}async init(e){const n=e.actualOptions;if(sa.find(i=>ve(i,n.particles.shape.type))){const i=sa.map(s=>n.particles.shape.options[s]).find(s=>!!s),r=[];Te(i,s=>{r.push(B5(s.font,s.weight))}),await Promise.all(r)}}particleInit(e,n){if(!n.shape||!sa.includes(n.shape))return;const i=n.shapeData;if(i===void 0)return;const r=i.value;r!==void 0&&(n.text=_n(r,n.randomIndexData))}}async function B7(t,e=!0){await t.addShape(sa,new j7,e)}async function U7(t,e=!0){h6(t),await e7(t,!1),await Q6(t,!1),await Y6(t,!1),await e8(t,!1),await l8(t,!1),await p8(t,!1),await y8(t,!1),await w8(t,!1),await S8(t,!1),await E8(t,!1),await M8(t,!1),await n7(t,!1),await a7(t,!1),await k7(t,!1),await G6(),await W8(t,!1),await Z8(t,!1),await E7(t,!1),await I7(t,!1),await A7(t,!1),await B7(t,!1),await Y8(t,!1),await R7(t,!1),await $7(t,!1),await H6(t,e)}const Zh=(t,e)=>{_0(t,{duration:1200,id:"particles-bg",icon:F.jsx(im,{}),...e})},Ac=({variant:t,notify:e=!0})=>{const n=R.useCallback(async()=>{const i=await fetch(`./assets/ts-particles/${t}`).then(s=>s.json()),r=void 0;return e&&Zh(`Background "${t}" installed!`),{...i,interactivity:r}},[e,t]);return Uv({queryKey:["BG_VARIANT",t],enabled:!!t,queryFn:n,retry:!1,refetchOnMount:!1,throwOnError:i=>(e&&Zh(`Error installing background "${t}"!
-(${i.message})`),!1)})},H7=()=>R.useMemo(()=>Bf.allowedOptions.map(t=>({value:t,label:String(t)})),[]),Z7=_e.memo(()=>{const{variant:t}=fl(),{data:e}=Ac({variant:t}),n=R.useCallback(async i=>{console.log(i),await U7(i)},[]);return F.jsx(Lm,{id:"tsparticles",init:n,options:e})}),G7=t=>({random:(n,i)=>{const r=i.filter(s=>s!==n);return R4(r)},next:(n,i)=>{const r=(()=>{const s=i.findIndex(a=>a===n);return s===i.length-1?0:s+1})();return i[r]}})[t],W7=({strategy:t=Bf.switchButtonStrategy})=>{const{updateLSValue:e}=fm(cm),n=H7(),{variant:i,setVariant:r}=fl(),{isLoading:s}=Ac({variant:i}),[o,a]=R.useState(),{isLoading:l,data:u}=Ac({variant:o,notify:!1}),c=R.useMemo(()=>G7(t),[t]),f=R.useCallback(()=>{const d=c(i,n.map(h=>h.value));d&&(a(d),e(d))},[c,n,e,i]);return R.useEffect(()=>{u&&!l&&o&&(r(o),a(void 0))},[l,o,u,r]),F.jsxs(n5,{onClick:f,isLoading:s||l,children:[s||l?`Loading ${o||i}...`:`Theme: ${i}`," ",s||l?F.jsx(y4,{}):F.jsx(im,{})]})},q7=_e.lazy(()=>g2(()=>import("./index-8f04c5f7.js"),[])),Q7=new Cv({defaultOptions:{queries:{refetchOnMount:!1}}});function V7(){return F.jsx(Ov,{client:Q7,children:F.jsxs(h5,{children:[F.jsx(C5,{additionalButtons:[F.jsx(W7,{})]}),F.jsx(av,{position:"top-center",reverseOrder:!0}),F.jsx(q7,{})]})})}gu.createRoot(document.getElementById("root")).render(F.jsx(V7,{}));export{Z7 as T,W7 as a,h5 as b};
+ transition: opacity 0.5s ease-in;
+`,Z5=({additionalButtons:t})=>z.jsx(Z4,{children:z.jsx(J5,{additionalButtons:t})}),J5=Oe.memo(({additionalButtons:t=[]})=>(t5(),z.jsx(K5,{additionalButtons:t}))),Es="generated",e6="pointerdown",t6="pointerup",Lc="pointerleave",n6="pointerout",Hi="pointermove",i6="touchstart",jh="touchend",r6="touchmove",s6="touchcancel",o6="resize",a6="visibilitychange",$t="tsParticles - Error";class pt{constructor(e,n,i){if(this._updateFromAngle=(r,s)=>{this.x=Math.cos(r)*s,this.y=Math.sin(r)*s},!Zt(e)&&e){this.x=e.x,this.y=e.y;const r=e;this.z=r.z?r.z:0}else if(e!==void 0&&n!==void 0)this.x=e,this.y=n,this.z=i??0;else throw new Error(`${$t} Vector3d not initialized correctly`)}static get origin(){return pt.create(0,0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return pt.create(e.x,e.y,e.z)}static create(e,n,i){return new pt(e,n,i)}add(e){return pt.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return pt.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return pt.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**2+this.y**2}mult(e){return pt.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){const e=this.length;e!=0&&this.multTo(1/e)}rotate(e){return pt.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),0)}setTo(e){this.x=e.x,this.y=e.y;const n=e;this.z=n.z?n.z:0}sub(e){return pt.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}}class Ie extends pt{constructor(e,n){super(e,n,0)}static get origin(){return Ie.create(0,0)}static clone(e){return Ie.create(e.x,e.y)}static create(e,n){return new Ie(e,n)}}let l6=Math.random;const Ac=new Map;function ru(t,e){Ac.get(t)||Ac.set(t,e)}function wm(t){return Ac.get(t)||(e=>e)}function ae(){return nn(l6(),0,1-1e-16)}function nn(t,e,n){return Math.min(Math.max(t,e),n)}function su(t,e,n,i){return Math.floor((t*n+e*i)/(n+i))}function ut(t){const e=Zn(t);let n=Vf(t);return e===n&&(n=0),ae()*(e-n)+n}function N(t){return Zt(t)?t:ut(t)}function Vf(t){return Zt(t)?t:t.min}function Zn(t){return Zt(t)?t:t.max}function G(t,e){if(t===e||e===void 0&&Zt(t))return t;const n=Vf(t),i=Zn(t);return e!==void 0?{min:Math.min(n,e),max:Math.max(i,e)}:G(n,i)}function Gi(t){const e=t.random,{enable:n,minimumValue:i}=ui(e)?{enable:e,minimumValue:0}:e;return N(n?G(t.value,i):t.value)}function et(t,e){const n=t.x-e.x,i=t.y-e.y;return{dx:n,dy:i,distance:Math.sqrt(n**2+i**2)}}function wt(t,e){return et(t,e).distance}function u6(t,e,n){if(Zt(t))return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"inside":return Math.atan2(n.y-e.y,n.x-e.x);case"outside":return Math.atan2(e.y-n.y,e.x-n.x);default:return ae()*Math.PI*2}}function c6(t){const e=Ie.origin;return e.length=1,e.angle=t,e}function Bh(t,e,n,i){return Ie.create(t.x*(n-i)/(n+i)+e.x*2*i/(n+i),t.y)}function f6(t){var e,n;return{x:((e=t.position)==null?void 0:e.x)??ae()*t.size.width,y:((n=t.position)==null?void 0:n.y)??ae()*t.size.height}}function xm(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}const d6={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function Wi(){return d6}function Uh(t){const e={bounced:!1},{pSide:n,pOtherSide:i,rectSide:r,rectOtherSide:s,velocity:o,factor:a}=t;return i.mins.max||i.maxs.max||(n.max>=r.min&&n.max<=(r.max+r.min)/2&&o>0||n.min<=r.max&&n.min>(r.max+r.min)/2&&o<0)&&(e.velocity=o*-a,e.bounced=!0),e}function h6(t,e){const n=De(e,i=>t.matches(i));return xt(n)?n.some(i=>i):n}function qr(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function p6(){return!qr()&&typeof matchMedia<"u"}function Sm(t){if(p6())return matchMedia(t)}function m6(t){if(!(qr()||typeof MutationObserver>"u"))return new MutationObserver(t)}function we(t,e){return t===e||xt(e)&&e.indexOf(t)>-1}async function y6(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function g6(t){return Math.floor(ae()*t.length)}function ml(t,e,n=!0){return t[e!==void 0&&n?e%t.length:g6(t)]}function qf(t,e,n,i,r){return v6(go(t,i??0),e,n,r)}function v6(t,e,n,i){let r=!0;return(!i||i==="bottom")&&(r=t.topn.x),r&&(!i||i==="right")&&(r=t.leftn.y),r}function go(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function Ve(t,...e){for(const n of e){if(n==null)continue;if(!fr(n)){t=n;continue}const i=Array.isArray(n);i&&(fr(t)||!t||!Array.isArray(t))?t=[]:!i&&(fr(t)||!t||Array.isArray(t))&&(t={});for(const r in n){if(r==="__proto__")continue;const s=n,o=s[r],a=t;a[r]=fr(o)&&Array.isArray(o)?o.map(l=>Ve(a[r],l)):Ve(a[r],o)}}return t}function Qf(t,e){return!!bm(e,n=>n.enable&&we(t,n.mode))}function Kf(t,e,n){De(e,i=>{const r=i.mode;i.enable&&we(t,r)&&w6(i,n)})}function w6(t,e){const n=t.selectors;De(n,i=>{e(i,t)})}function km(t,e){if(!(!e||!t))return bm(t,n=>h6(e,n.selectors))}function Fc(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:Ie.create(Gi(t.options.bounce.horizontal),Gi(t.options.bounce.vertical))}}function Cm(t,e){const{x:n,y:i}=t.velocity.sub(e.velocity),[r,s]=[t.position,e.position],{dx:o,dy:a}=et(s,r);if(n*o+i*a<0)return;const l=-Math.atan2(a,o),u=t.mass,c=e.mass,f=t.velocity.rotate(l),d=e.velocity.rotate(l),h=Bh(f,d,u,c),g=Bh(d,f,u,c),v=h.rotate(-l),S=g.rotate(-l);t.velocity.x=v.x*t.factor.x,t.velocity.y=v.y*t.factor.y,e.velocity.x=S.x*e.factor.x,e.velocity.y=S.y*e.factor.y}function x6(t,e){const n=t.getPosition(),i=t.getRadius(),r=go(n,i),s=Uh({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:Gi(t.options.bounce.horizontal)});s.bounced&&(s.velocity!==void 0&&(t.velocity.x=s.velocity),s.position!==void 0&&(t.position.x=s.position));const o=Uh({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:Gi(t.options.bounce.vertical)});o.bounced&&(o.velocity!==void 0&&(t.velocity.y=o.velocity),o.position!==void 0&&(t.position.y=o.position))}function De(t,e){return xt(t)?t.map((n,i)=>e(n,i)):e(t,0)}function Pn(t,e,n){return xt(t)?ml(t,e,n):t}function bm(t,e){return xt(t)?t.find((n,i)=>e(n,i)):e(t,0)?t:void 0}function _m(t,e){const n=t.value,i=t.animation,r={delayTime:N(i.delay)*1e3,enable:i.enable,value:N(t.value)*e,max:Zn(n)*e,min:Vf(n)*e,loops:0,maxLoops:N(i.count),time:0};if(i.enable){switch(r.decay=1-N(i.decay),i.mode){case"increase":r.status="increasing";break;case"decrease":r.status="decreasing";break;case"random":r.status=ae()>=.5?"increasing":"decreasing";break}const s=i.mode==="auto";switch(i.startValue){case"min":r.value=r.min,s&&(r.status="increasing");break;case"max":r.value=r.max,s&&(r.status="decreasing");break;case"random":default:r.value=ut(r),s&&(r.status=ae()>=.5?"increasing":"decreasing");break}}return r.initialValue=r.value,r}function S6(t,e){if(!(t.mode==="percent")){const{mode:r,...s}=t;return s}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}function Em(t,e){return S6(t,e)}function ui(t){return typeof t=="boolean"}function Xt(t){return typeof t=="string"}function Zt(t){return typeof t=="number"}function Pm(t){return typeof t=="function"}function fr(t){return typeof t=="object"&&t!==null}function xt(t){return Array.isArray(t)}const $a="random",oa="mid",yl=new Map;function Hh(t){yl.set(t.key,t)}function ou(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function k6(t){for(const[,s]of yl)if(t.startsWith(s.stringPrefix))return s.parseString(t);const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=t.replace(e,(s,o,a,l,u)=>o+o+a+a+l+l+(u!==void 0?u+u:"")),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,r=i.exec(n);return r?{a:r[4]!==void 0?parseInt(r[4],16)/255:1,b:parseInt(r[3],16),g:parseInt(r[2],16),r:parseInt(r[1],16)}:void 0}function Jt(t,e,n=!0){if(!t)return;const i=Xt(t)?{value:t}:t;if(Xt(i.value))return Om(i.value,e,n);if(xt(i.value))return Jt({value:ml(i.value,e,n)});for(const[,r]of yl){const s=r.handleRangeColor(i);if(s)return s}}function Om(t,e,n=!0){if(!t)return;const i=Xt(t)?{value:t}:t;if(Xt(i.value))return i.value===$a?Rm():C6(i.value);if(xt(i.value))return Om({value:ml(i.value,e,n)});for(const[,r]of yl){const s=r.handleColor(i);if(s)return s}}function Qs(t,e,n=!0){const i=Jt(t,e,n);return i?Mm(i):void 0}function Mm(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),s=Math.min(e,n,i),o={h:0,l:(r+s)/2,s:0};return r!==s&&(o.s=o.l<.5?(r-s)/(r+s):(r-s)/(2-r-s),o.h=e===r?(n-i)/(r-s):o.h=n===r?2+(i-e)/(r-s):4+(e-n)/(r-s)),o.l*=100,o.s*=100,o.h*=60,o.h<0&&(o.h+=360),o.h>=360&&(o.h-=360),o}function C6(t){return k6(t)}function Qr(t){const e={b:0,g:0,r:0},n={h:t.h/360,l:t.l/100,s:t.s/100};if(!n.s)e.r=e.g=e.b=n.l;else{const i=n.l<.5?n.l*(1+n.s):n.l+n.s-n.l*n.s,r=2*n.l-i;e.r=ou(r,i,n.h+1/3),e.g=ou(r,i,n.h),e.b=ou(r,i,n.h-1/3)}return e.r=Math.floor(e.r*255),e.g=Math.floor(e.g*255),e.b=Math.floor(e.b*255),e}function b6(t){const e=Qr(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Rm(t){const e=t??0;return{b:Math.floor(ut(G(e,256))),g:Math.floor(ut(G(e,256))),r:Math.floor(ut(G(e,256)))}}function On(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function Ks(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function Yf(t,e,n,i){let r=t,s=e;return r.r===void 0&&(r=Qr(t)),s.r===void 0&&(s=Qr(e)),{b:su(r.b,s.b,n,i),g:su(r.g,s.g,n,i),r:su(r.r,s.r,n,i)}}function Nc(t,e,n){if(n===$a)return Rm();if(n===oa){const i=t.getFillColor()??t.getStrokeColor(),r=(e==null?void 0:e.getFillColor())??(e==null?void 0:e.getStrokeColor());if(i&&r&&e)return Yf(i,r,t.getRadius(),e.getRadius());{const s=i??r;if(s)return Qr(s)}}else return n}function zm(t,e,n){const i=Xt(t)?t:t.value;return i===$a?n?Jt({value:i}):e?$a:oa:i===oa?oa:Jt({value:i})}function Gh(t){return t!==void 0?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function Tm(t,e,n){const i={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(au(i.h,e.h,n),au(i.s,e.s,n),au(i.l,e.l,n)),i}function au(t,e,n){t.enable=e.enable,t.enable?(t.velocity=N(e.speed)/100*n,t.decay=1-N(e.decay),t.status="increasing",t.loops=0,t.maxLoops=N(e.count),t.time=0,t.delayTime=N(e.delay)*1e3,e.sync||(t.velocity*=ae(),t.value*=ae()),t.initialValue=t.value):t.velocity=0}function Ps(t,e,n){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.closePath()}function _6(t,e,n,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.lineTo(i.x,i.y),t.closePath()}function E6(t,e,n){t.fillStyle=n??"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height)}function P6(t,e,n,i){n&&(t.globalAlpha=i,t.drawImage(n,0,0,e.width,e.height),t.globalAlpha=1)}function lu(t,e){t.clearRect(0,0,e.width,e.height)}function O6(t){const{container:e,context:n,particle:i,delta:r,colorStyles:s,backgroundMask:o,composite:a,radius:l,opacity:u,shadow:c,transform:f}=t,d=i.getPosition(),h=i.rotation+(i.pathRotation?i.velocity.angle:0),g={sin:Math.sin(h),cos:Math.cos(h)},v={a:g.cos*(f.a??1),b:g.sin*(f.b??1),c:-g.sin*(f.c??1),d:g.cos*(f.d??1)};n.setTransform(v.a,v.b,v.c,v.d,d.x,d.y),n.beginPath(),o&&(n.globalCompositeOperation=a);const S=i.shadowColor;c.enable&&S&&(n.shadowBlur=c.blur,n.shadowColor=On(S),n.shadowOffsetX=c.offset.x,n.shadowOffsetY=c.offset.y),s.fill&&(n.fillStyle=s.fill);const p=i.strokeWidth??0;n.lineWidth=p,s.stroke&&(n.strokeStyle=s.stroke),M6(e,n,i,l,u,r),p>0&&n.stroke(),i.close&&n.closePath(),i.fill&&n.fill(),R6(e,n,i,l,u,r),n.globalCompositeOperation="source-over",n.setTransform(1,0,0,1,0,0)}function M6(t,e,n,i,r,s){if(!n.shape)return;const o=t.drawers.get(n.shape);o&&o.draw(e,n,i,r,s,t.retina.pixelRatio)}function R6(t,e,n,i,r,s){if(!n.shape)return;const o=t.drawers.get(n.shape);!o||!o.afterEffect||o.afterEffect(e,n,i,r,s,t.retina.pixelRatio)}function z6(t,e,n){e.draw&&e.draw(t,n)}function T6(t,e,n,i){e.drawParticle&&e.drawParticle(t,n,i)}function I6(t,e,n){return{h:t.h,s:t.s,l:t.l+(e==="darken"?-1:1)*n}}function D6(t,e,n){const i=e[n];i!==void 0&&(t[n]=(t[n]??1)*i)}class L6{constructor(e){this.container=e,this._applyPostDrawUpdaters=n=>{for(const i of this._postDrawUpdaters)i.afterDraw&&i.afterDraw(n)},this._applyPreDrawUpdaters=(n,i,r,s,o,a)=>{for(const l of this._preDrawUpdaters){if(l.getColorStyles){const{fill:u,stroke:c}=l.getColorStyles(i,n,r,s);u&&(o.fill=u),c&&(o.stroke=c)}if(l.getTransformValues){const u=l.getTransformValues(i);for(const c in u)D6(a,u,c)}l.beforeDraw&&l.beforeDraw(i)}},this._applyResizePlugins=()=>{for(const n of this._resizePlugins)n.resize&&n.resize()},this._getPluginParticleColors=n=>{let i,r;for(const s of this._colorPlugins)if(!i&&s.particleFillColor&&(i=Qs(s.particleFillColor(n))),!r&&s.particleStrokeColor&&(r=Qs(s.particleStrokeColor(n))),i&&r)break;return[i,r]},this._initCover=()=>{const n=this.container.actualOptions,i=n.backgroundMask.cover,r=i.color,s=Jt(r);if(s){const o={...s,a:i.opacity};this._coverColorStyle=On(o,o.a)}},this._initStyle=()=>{const n=this.element,i=this.container.actualOptions;if(n){this._fullScreen?(this._originalStyle=Ve({},n.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const r in i.style){if(!r||!i.style)continue;const s=i.style[r];s&&n.style.setProperty(r,s,"important")}}},this._initTrail=async()=>{const n=this.container.actualOptions,i=n.particles.move.trail,r=i.fill;if(i.enable)if(r.color){const s=Jt(r.color);if(!s)return;const o=n.particles.move.trail;this._trailFill={color:{...s},opacity:1/o.length}}else await new Promise((s,o)=>{if(!r.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._trailFill={image:a,opacity:1/i.length},s()}),a.addEventListener("error",l=>{o(l.error)}),a.src=r.image})},this._paintBase=n=>{this.draw(i=>E6(i,this.size,n))},this._paintImage=(n,i)=>{this.draw(r=>P6(r,this.size,n,i))},this._repairStyle=()=>{const n=this.element;n&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>i.observe(n,{attributes:!0})))},this._resetOriginalStyle=()=>{const n=this.element,i=this._originalStyle;if(!(n&&i))return;const r=n.style;r.position=i.position,r.zIndex=i.zIndex,r.top=i.top,r.left=i.left,r.width=i.width,r.height=i.height},this._safeMutationObserver=n=>{this._mutationObserver&&n(this._mutationObserver)},this._setFullScreenStyle=()=>{const n=this.element;if(!n)return;const i="important",r=n.style;r.setProperty("position","fixed",i),r.setProperty("z-index",this.container.actualOptions.fullScreen.zIndex.toString(10),i),r.setProperty("top","0",i),r.setProperty("left","0",i),r.setProperty("width","100%",i),r.setProperty("height","100%",i)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,n=e.particles.move.trail,i=this._trailFill;e.backgroundMask.enable?this.paint():n.enable&&n.length>0&&i?i.color?this._paintBase(On(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):this.draw(r=>{lu(r,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e&&e.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const n=this._context;if(n)return e(n)}drawParticle(e,n){if(e.spawning||e.destroyed)return;const i=e.getRadius();if(i<=0)return;const r=e.getFillColor(),s=e.getStrokeColor()??r;let[o,a]=this._getPluginParticleColors(e);o||(o=r),a||(a=s),!(!o&&!a)&&this.draw(l=>{var y;const u=this.container,c=u.actualOptions,f=e.options.zIndex,d=(1-e.zIndexFactor)**f.opacityRate,h=e.bubble.opacity??((y=e.opacity)==null?void 0:y.value)??1,g=e.strokeOpacity??h,v=h*d,S=g*d,p={},m={fill:o?Ks(o,v):void 0};m.stroke=a?Ks(a,S):m.fill,this._applyPreDrawUpdaters(l,e,i,v,m,p),O6({container:u,context:l,particle:e,delta:n,colorStyles:m,backgroundMask:c.backgroundMask.enable,composite:c.backgroundMask.composite,radius:i*(1-e.zIndexFactor)**f.sizeRate,opacity:v,shadow:e.options.shadow,transform:p}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,n,i){this.draw(r=>T6(r,e,n,i))}drawPlugin(e,n){this.draw(i=>z6(i,e,n))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=m6(e=>{for(const n of e)n.type==="attributes"&&n.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),this._initCover();try{await this._initTrail()}catch(e){Wi().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions,n=e.background,i=this.element;if(!i)return;const r=i.style;if(r){if(n.color){const s=Jt(n.color);r.backgroundColor=s?On(s,n.opacity):""}else r.backgroundColor="";r.backgroundImage=n.image||"",r.backgroundPosition=n.position||"",r.backgroundRepeat=n.repeat||"",r.backgroundSize=n.size||""}}initPlugins(){this._resizePlugins=[];for(const[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor||e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles||e.getTransformValues||e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&Es in e.dataset?e.dataset[Es]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=Ve({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(n=>{this.element&&n.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const e=this.container.actualOptions;this.draw(n=>{e.backgroundMask.enable&&e.backgroundMask.cover?(lu(n,this.size),this._paintBase(this._coverColorStyle)):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,n=e.retina.pixelRatio,i=e.canvas.size,r={width:this.element.offsetWidth*n,height:this.element.offsetHeight*n};if(r.height===i.height&&r.width===i.width&&r.height===this.element.height&&r.width===this.element.width)return!1;const s={...i};return this.element.width=i.width=this.element.offsetWidth*n,this.element.height=i.height=this.element.offsetHeight*n,this.container.started&&(this.resizeFactor={width:i.width/s.width,height:i.height/s.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>lu(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,n=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),n&&await e.refresh()}}function Et(t,e,n,i,r){if(i){let s={passive:!0};ui(r)?s.capture=r:r!==void 0&&(s=r),t.addEventListener(e,n,s)}else{const s=r;t.removeEventListener(e,n,s)}}class A6{constructor(e){this.container=e,this._doMouseTouchClick=n=>{const i=this.container,r=i.actualOptions;if(this._canPush){const s=i.interactivity.mouse,o=s.position;if(!o)return;s.clickPosition={...o},s.clickTime=new Date().getTime();const a=r.interactivity.events.onClick;De(a.mode,l=>this.container.handleClickMode(l))}n.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=n=>{const i=n,r=this.container,s=r.options,o=s.defaultThemes,a=i.matches?o.dark:o.light,l=s.themes.find(u=>u.name===a);l&&l.default.auto&&r.loadTheme(a)},this._handleVisibilityChange=()=>{const n=this.container,i=n.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document&&document.hidden?(n.pageHidden=!0,n.pause()):(n.pageHidden=!1,n.getAnimationStatus()?n.play(!0):n.draw(!0)))},this._handleWindowResize=async()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout),this._resizeTimeout=setTimeout(async()=>{const n=this.container.canvas;n&&await n.windowResize()},this.container.actualOptions.interactivity.events.resize.delay*1e3)},this._manageInteractivityListeners=(n,i)=>{const r=this._handlers,s=this.container,o=s.actualOptions,a=s.interactivity.element;if(!a)return;const l=a,u=s.canvas.element;u&&(u.style.pointerEvents=l===u?"initial":"none"),(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(Et(a,Hi,r.mouseMove,i),Et(a,i6,r.touchStart,i),Et(a,r6,r.touchMove,i),o.interactivity.events.onClick.enable?(Et(a,jh,r.touchEndClick,i),Et(a,t6,r.mouseUp,i),Et(a,e6,r.mouseDown,i)):Et(a,jh,r.touchEnd,i),Et(a,n,r.mouseLeave,i),Et(a,s6,r.touchCancel,i))},this._manageListeners=n=>{const i=this._handlers,r=this.container,s=r.actualOptions,o=s.interactivity.detectsOn,a=r.canvas.element;let l=Lc;o==="window"?(r.interactivity.element=window,l=n6):o==="parent"&&a?r.interactivity.element=a.parentElement??a.parentNode:r.interactivity.element=a,this._manageMediaMatch(n),this._manageResize(n),this._manageInteractivityListeners(l,n),document&&Et(document,a6,i.visibilityChange,n,!1)},this._manageMediaMatch=n=>{const i=this._handlers,r=Sm("(prefers-color-scheme: dark)");if(r){if(r.addEventListener!==void 0){Et(r,"change",i.themeChange,n);return}r.addListener!==void 0&&(n?r.addListener(i.oldThemeChange):r.removeListener(i.oldThemeChange))}},this._manageResize=n=>{const i=this._handlers,r=this.container;if(!r.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){Et(window,o6,i.resize,n);return}const o=r.canvas.element;this._resizeObserver&&!n?(o&&this._resizeObserver.unobserve(o),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&n&&o&&(this._resizeObserver=new ResizeObserver(async a=>{a.find(u=>u.target===o)&&await this._handleWindowResize()}),this._resizeObserver.observe(o))},this._mouseDown=()=>{const{interactivity:n}=this.container;if(!n)return;const{mouse:i}=n;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=n=>{const i=this.container,r=i.actualOptions,{mouse:s}=i.interactivity;s.inside=!0;let o=!1;const a=s.position;if(!(!a||!r.interactivity.events.onClick.enable)){for(const[,l]of i.plugins)if(l.clickPositionValid&&(o=l.clickPositionValid(a),o))break;o||this._doMouseTouchClick(n),s.clicking=!1}},this._mouseTouchFinish=()=>{const n=this.container.interactivity;if(!n)return;const i=n.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,n.status=Lc,i.inside=!1,i.clicking=!1},this._mouseTouchMove=n=>{const i=this.container,r=i.actualOptions,s=i.interactivity,o=i.canvas.element;if(!s||!s.element)return;s.mouse.inside=!0;let a;if(n.type.startsWith("pointer")){this._canPush=!0;const u=n;if(s.element===window){if(o){const c=o.getBoundingClientRect();a={x:u.clientX-c.left,y:u.clientY-c.top}}}else if(r.interactivity.detectsOn==="parent"){const c=u.target,f=u.currentTarget;if(c&&f&&o){const d=c.getBoundingClientRect(),h=f.getBoundingClientRect(),g=o.getBoundingClientRect();a={x:u.offsetX+2*d.left-(h.left+g.left),y:u.offsetY+2*d.top-(h.top+g.top)}}else a={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY}}else u.target===o&&(a={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY})}else if(this._canPush=n.type!=="touchmove",o){const u=n,c=u.touches[u.touches.length-1],f=o.getBoundingClientRect();a={x:c.clientX-(f.left??0),y:c.clientY-(f.top??0)}}const l=i.retina.pixelRatio;a&&(a.x*=l,a.y*=l),s.mouse.position=a,s.status=Hi},this._touchEnd=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.delete(s.identifier);this._mouseTouchFinish()},this._touchEndClick=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.delete(s.identifier);this._mouseTouchClick(n)},this._touchStart=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.set(s.identifier,performance.now());this._mouseTouchMove(n)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:n=>this._mouseTouchMove(n),mouseUp:n=>this._mouseTouchClick(n),touchStart:n=>this._touchStart(n),touchMove:n=>this._mouseTouchMove(n),touchEnd:n=>this._touchEnd(n),touchCancel:n=>this._touchEnd(n),touchEndClick:n=>this._touchEndClick(n),visibilityChange:()=>this._handleVisibilityChange(),themeChange:n=>this._handleThemeChange(n),oldThemeChange:n=>this._handleThemeChange(n),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class Be{constructor(){this.value=""}static create(e,n){const i=new Be;return i.load(e),n!==void 0&&(Xt(n)||xt(n)?i.load({value:n}):i.load(n)),i}load(e){(e==null?void 0:e.value)!==void 0&&(this.value=e.value)}}class F6{constructor(){this.color=new Be,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=Be.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}class N6{constructor(){this.color=new Be,this.color.value="#fff",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=Be.create(this.color,e.color)),e.opacity!==void 0&&(this.opacity=e.opacity))}}class $6{constructor(){this.composite="destination-out",this.cover=new N6,this.enable=!1}load(e){if(e){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){const n=e.cover,i=Xt(e.cover)?{color:e.cover}:e.cover;this.cover.load(n.color!==void 0?n:{color:i})}e.enable!==void 0&&(this.enable=e.enable)}}}class j6{constructor(){this.enable=!0,this.zIndex=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}class B6{constructor(){this.enable=!1,this.mode=[]}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}class Wh{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get el(){return this.elementId}set el(e){this.elementId=e}get elementId(){return this.ids}set elementId(e){this.ids=e}get ids(){return De(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=De(e,n=>`#${n}`)}load(e){if(!e)return;const n=e.ids??e.elementId??e.el;n!==void 0&&(this.ids=n),e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type)}}class U6{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}class H6{constructor(){this.enable=!1,this.mode=[],this.parallax=new U6}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}class G6{constructor(){this.delay=.5,this.enable=!0}load(e){e!==void 0&&(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}class W6{constructor(){this.onClick=new B6,this.onDiv=new Wh,this.onHover=new H6,this.resize=new G6}get onclick(){return this.onClick}set onclick(e){this.onClick=e}get ondiv(){return this.onDiv}set ondiv(e){this.onDiv=e}get onhover(){return this.onHover}set onhover(e){this.onHover=e}load(e){if(!e)return;this.onClick.load(e.onClick??e.onclick);const n=e.onDiv??e.ondiv;n!==void 0&&(this.onDiv=De(n,i=>{const r=new Wh;return r.load(i),r})),this.onHover.load(e.onHover??e.onhover),ui(e.resize)?this.resize.enable=e.resize:this.resize.load(e.resize)}}class V6{constructor(e,n){this._engine=e,this._container=n}load(e){if(!e||!this._container)return;const n=this._engine.plugins.interactors.get(this._container);if(n)for(const i of n)i.loadModeOptions&&i.loadModeOptions(this,e)}}class Im{constructor(e,n){this.detectsOn="window",this.events=new W6,this.modes=new V6(e,n)}get detect_on(){return this.detectsOn}set detect_on(e){this.detectsOn=e}load(e){if(!e)return;const n=e.detectsOn??e.detect_on;n!==void 0&&(this.detectsOn=n),this.events.load(e.events),this.modes.load(e.modes)}}class q6{load(e){e&&(e.position&&(this.position={x:e.position.x??50,y:e.position.y??50,mode:e.position.mode??"percent"}),e.options&&(this.options=Ve({},e.options)))}}class Q6{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=Ve({},e.options)))}}class K6{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Y6{constructor(){this.name="",this.default=new K6}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=Ve({},e.options)))}}class uu{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.delay=0,this.decay=0,this.sync=!0}load(e){e&&(e.count!==void 0&&(this.count=G(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(this.offset=G(e.offset)),e.speed!==void 0&&(this.speed=G(e.speed)),e.decay!==void 0&&(this.decay=G(e.decay)),e.delay!==void 0&&(this.delay=G(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class X6{constructor(){this.h=new uu,this.s=new uu,this.l=new uu}load(e){e&&(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}class Ys extends Be{constructor(){super(),this.animation=new X6}static create(e,n){const i=new Ys;return i.load(e),n!==void 0&&(Xt(n)||xt(n)?i.load({value:n}):i.load(n)),i}load(e){if(super.load(e),!e)return;const n=e.animation;n!==void 0&&(n.enable!==void 0?this.animation.h.load(n):this.animation.load(e.animation))}}class Z6{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}class J6{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}class ew{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=G(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=G(e.speed)),e.decay!==void 0&&(this.decay=G(e.decay)),e.delay!==void 0&&(this.delay=G(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class Dm extends ew{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.minimumValue!==void 0&&(this.minimumValue=e.minimumValue),e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}class tw{constructor(){this.enable=!1,this.minimumValue=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.minimumValue!==void 0&&(this.minimumValue=e.minimumValue))}}class yi{constructor(){this.random=new tw,this.value=0}load(e){e&&(ui(e.random)?this.random.enable=e.random:this.random.load(e.random),e.value!==void 0&&(this.value=G(e.value,this.random.enable?this.random.minimumValue:void 0)))}}class Vh extends yi{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class Lm{constructor(){this.horizontal=new Vh,this.vertical=new Vh}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class nw{constructor(){this.absorb=new Z6,this.bounce=new Lm,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new J6}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=G(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class iw{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=G(e.offset)),e.value!==void 0&&(this.value=G(e.value)))}}class rw{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(e){this.rotate.x=e}get rotateY(){return this.rotate.y}set rotateY(e){this.rotate.y=e}load(e){var r,s;if(!e)return;e.distance!==void 0&&(this.distance=G(e.distance)),e.enable!==void 0&&(this.enable=e.enable);const n=((r=e.rotate)==null?void 0:r.x)??e.rotateX;n!==void 0&&(this.rotate.x=n);const i=((s=e.rotate)==null?void 0:s.y)??e.rotateY;i!==void 0&&(this.rotate.y=i)}}class sw{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}class ow{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=G(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=G(e.maxSpeed)))}}class aw{constructor(){this.clamp=!0,this.delay=new yi,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=Ve(this.options,e.options)))}}class lw{load(e){e&&(e.color!==void 0&&(this.color=Be.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}class uw{constructor(){this.enable=!1,this.length=10,this.fill=new lw}get fillColor(){return this.fill.color}set fillColor(e){this.fill.load({color:e})}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),(e.fill!==void 0||e.fillColor!==void 0)&&this.fill.load(e.fill||{color:e.fillColor}),e.length!==void 0&&(this.length=e.length))}}class cw{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class fw{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=G(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=Ve({},e.position)))}}class dw{constructor(){this.angle=new iw,this.attract=new rw,this.center=new sw,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new ow,this.path=new aw,this.outModes=new cw,this.random=!1,this.size=!1,this.speed=2,this.spin=new fw,this.straight=!1,this.trail=new uw,this.vibrate=!1,this.warp=!1}get bounce(){return this.collisions}set bounce(e){this.collisions=e}get collisions(){return!1}set collisions(e){}get noise(){return this.path}set noise(e){this.path=e}get outMode(){return this.outModes.default}set outMode(e){this.outModes.default=e}get out_mode(){return this.outMode}set out_mode(e){this.outMode=e}load(e){if(!e)return;this.angle.load(Zt(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=G(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=Zt(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=G(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);const n=e.outModes??e.outMode??e.out_mode;n!==void 0&&(fr(n)?this.outModes.load(n):this.outModes.load({default:n})),this.path.load(e.path??e.noise),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=G(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}class hw extends Dm{constructor(){super(),this.destroy="none",this.speed=2}get opacity_min(){return this.minimumValue}set opacity_min(e){this.minimumValue=e}load(e){(e==null?void 0:e.opacity_min)!==void 0&&e.minimumValue===void 0&&(e.minimumValue=e.opacity_min),super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class pw extends yi{constructor(){super(),this.animation=new hw,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(e){this.animation=e}load(e){if(!e)return;super.load(e);const n=e.animation??e.anim;n!==void 0&&(this.animation.load(n),this.value=G(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class mw{constructor(){this.enable=!1,this.width=1920,this.height=1080}get area(){return this.width}set area(e){this.width=e}get factor(){return this.height}set factor(e){this.height=e}get value_area(){return this.area}set value_area(e){this.area=e}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);const n=e.width??e.area??e.value_area;n!==void 0&&(this.width=n);const i=e.height??e.factor;i!==void 0&&(this.height=i)}}class yw{constructor(){this.density=new mw,this.limit=0,this.value=0}get max(){return this.limit}set max(e){this.limit=e}load(e){if(!e)return;this.density.load(e.density);const n=e.limit??e.max;n!==void 0&&(this.limit=n),e.value!==void 0&&(this.value=e.value)}}class gw{constructor(){this.blur=0,this.color=new Be,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=Be.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}const cu="character",fu="char",du="image",hu="images",pu="polygon",mu="star";class vw{constructor(){this.loadShape=(e,n,i,r)=>{if(!e)return;const s=xt(e),o=s?[]:{},a=s!==xt(this.options[n]),l=s!==xt(this.options[i]);a&&(this.options[n]=o),l&&r&&(this.options[i]=o),this.options[n]=Ve(this.options[n]??o,e),(!this.options[i]||r)&&(this.options[i]=Ve(this.options[i]??o,e))},this.close=!0,this.fill=!0,this.options={},this.type="circle"}get character(){return this.options[cu]??this.options[fu]}set character(e){this.options[fu]=this.options[cu]=e}get custom(){return this.options}set custom(e){this.options=e}get image(){return this.options[du]??this.options[hu]}set image(e){this.options[hu]=this.options[du]=e}get images(){return this.image}set images(e){this.image=e}get polygon(){return this.options[pu]??this.options[mu]}set polygon(e){this.options[mu]=this.options[pu]=e}get stroke(){return[]}set stroke(e){}load(e){if(!e)return;const n=e.options??e.custom;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=Ve(this.options[i]??{},r))}this.loadShape(e.character,cu,fu,!0),this.loadShape(e.polygon,pu,mu,!1),this.loadShape(e.image??e.images,du,hu,!0),e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class ww extends Dm{constructor(){super(),this.destroy="none",this.speed=5}get size_min(){return this.minimumValue}set size_min(e){this.minimumValue=e}load(e){(e==null?void 0:e.size_min)!==void 0&&e.minimumValue===void 0&&(e.minimumValue=e.size_min),super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class xw extends yi{constructor(){super(),this.animation=new ww,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(e){this.animation=e}load(e){if(super.load(e),!e)return;const n=e.animation??e.anim;n!==void 0&&(this.animation.load(n),this.value=G(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class qh{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=Ys.create(this.color,e.color)),e.width!==void 0&&(this.width=G(e.width)),e.opacity!==void 0&&(this.opacity=G(e.opacity)))}}class Sw extends yi{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}class kw{constructor(e,n){this._engine=e,this._container=n,this.bounce=new Lm,this.collisions=new nw,this.color=new Ys,this.color.value="#fff",this.groups={},this.move=new dw,this.number=new yw,this.opacity=new pw,this.reduceDuplicates=!1,this.shadow=new gw,this.shape=new vw,this.size=new xw,this.stroke=new qh,this.zIndex=new Sw}load(e){var r,s,o;if(!e)return;if(this.bounce.load(e.bounce),this.color.load(Ys.create(this.color,e.color)),e.groups!==void 0)for(const a in e.groups){const l=e.groups[a];l!==void 0&&(this.groups[a]=Ve(this.groups[a]??{},l))}this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex);const n=((r=e.move)==null?void 0:r.collisions)??((s=e.move)==null?void 0:s.bounce);n!==void 0&&(this.collisions.enable=n),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=Ve({},e.interactivity));const i=e.stroke??((o=e.shape)==null?void 0:o.stroke);if(i&&(this.stroke=De(i,a=>{const l=new qh;return l.load(a),l})),this._container){const a=this._engine.plugins.updaters.get(this._container);if(a)for(const u of a)u.loadOptions&&u.loadOptions(this,e);const l=this._engine.plugins.interactors.get(this._container);if(l)for(const u of l)u.loadParticlesOptions&&u.loadParticlesOptions(this,e)}}}function Am(t,...e){for(const n of e)t.load(n)}function Fm(t,e,...n){const i=new kw(t,e);return Am(i,...n),i}class Cw{constructor(e,n){this._findDefaultTheme=i=>this.themes.find(r=>r.default.value&&r.default.mode===i)??this.themes.find(r=>r.default.value&&r.default.mode==="any"),this._importPreset=i=>{this.load(this._engine.plugins.getPreset(i))},this._engine=e,this._container=n,this.autoPlay=!0,this.background=new F6,this.backgroundMask=new $6,this.defaultThemes={},this.delay=0,this.fullScreen=new j6,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Im(e,n),this.manualParticles=[],this.particles=Fm(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}get backgroundMode(){return this.fullScreen}set backgroundMode(e){this.fullScreen.load(e)}get fps_limit(){return this.fpsLimit}set fps_limit(e){this.fpsLimit=e}get retina_detect(){return this.detectRetina}set retina_detect(e){this.detectRetina=e}load(e){var o,a;if(!e)return;e.preset!==void 0&&De(e.preset,l=>this._importPreset(l)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.delay!==void 0&&(this.delay=G(e.delay));const n=e.detectRetina??e.retina_detect;n!==void 0&&(this.detectRetina=n),e.duration!==void 0&&(this.duration=G(e.duration));const i=e.fpsLimit??e.fps_limit;i!==void 0&&(this.fpsLimit=i),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);const r=e.fullScreen??e.backgroundMode;ui(r)?this.fullScreen.enable=r:this.fullScreen.load(r),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(l=>{const u=new q6;return u.load(l),u})),this.particles.load(e.particles),this.style=Ve(this.style,e.style),this._engine.plugins.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);const s=this._engine.plugins.interactors.get(this._container);if(s)for(const l of s)l.loadOptions&&l.loadOptions(this,e);if(e.responsive!==void 0)for(const l of e.responsive){const u=new Q6;u.load(l),this.responsive.push(u)}if(this.responsive.sort((l,u)=>l.maxWidth-u.maxWidth),e.themes!==void 0)for(const l of e.themes){const u=this.themes.find(c=>c.name===l.name);if(u)u.load(l);else{const c=new Y6;c.load(l),this.themes.push(c)}}this.defaultThemes.dark=(o=this._findDefaultTheme("dark"))==null?void 0:o.name,this.defaultThemes.light=(a=this._findDefaultTheme("light"))==null?void 0:a.name}setResponsive(e,n,i){this.load(i);const r=this.responsive.find(s=>s.mode==="screen"&&screen?s.maxWidth>screen.availWidth:s.maxWidth*n>e);return this.load(r==null?void 0:r.options),r==null?void 0:r.maxWidth}setTheme(e){if(e){const n=this.themes.find(i=>i.name===e);n&&this.load(n.options)}else{const n=Sm("(prefers-color-scheme: dark)"),i=n&&n.matches,r=this._findDefaultTheme(i?"dark":"light");r&&this.load(r.options)}}}class bw{constructor(e,n){this.container=n,this._engine=e,this._interactors=e.plugins.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[]}async externalInteract(e){for(const n of this._externalInteractors)n.isEnabled()&&await n.interact(e)}handleClickMode(e){for(const n of this._externalInteractors)n.handleClickMode&&n.handleClickMode(e)}init(){this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}async particlesInteract(e,n){for(const i of this._externalInteractors)i.clear(e,n);for(const i of this._particleInteractors)i.isEnabled(e)&&await i.interact(e,n)}async reset(e){for(const n of this._externalInteractors)n.isEnabled()&&n.reset(e);for(const n of this._particleInteractors)n.isEnabled(e)&&n.reset(e)}}const Qh=t=>{if(!we(t.outMode,t.checkModes))return;const e=t.radius*2;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord{for(const[,m]of a.plugins){const y=m.particlePosition!==void 0?m.particlePosition(l,this):void 0;if(y)return pt.create(y.x,y.y,u)}const f=a.canvas.size,d=f6({size:f,position:l}),h=pt.create(d.x,d.y,u),g=this.getRadius(),v=this.options.move.outModes,S=m=>{Qh({outMode:m,checkModes:["bounce","bounce-horizontal"],coord:h.x,maxCoord:a.canvas.size.width,setCb:y=>h.x+=y,radius:g})},p=m=>{Qh({outMode:m,checkModes:["bounce","bounce-vertical"],coord:h.y,maxCoord:a.canvas.size.height,setCb:y=>h.y+=y,radius:g})};return S(v.left??v.default),S(v.right??v.default),p(v.top??v.default),p(v.bottom??v.default),this._checkOverlap(h,c)?this._calcPosition(a,void 0,u,c+1):h},this._calculateVelocity=()=>{const a=c6(this.direction),l=a.copy(),u=this.options.move;if(u.direction==="inside"||u.direction==="outside")return l;const c=Math.PI/180*N(u.angle.value),f=Math.PI/180*N(u.angle.offset),d={left:f-c/2,right:f+c/2};return u.straight||(l.angle+=ut(G(d.left,d.right))),u.random&&typeof u.speed=="number"&&(l.length*=ae()),l},this._checkOverlap=(a,l=0)=>{const u=this.options.collisions,c=this.getRadius();if(!u.enable)return!1;const f=u.overlap;if(f.enable)return!1;const d=f.retries;if(d>=0&&l>d)throw new Error(`${$t} particle is overlapping and can't be placed`);return!!this.container.particles.find(h=>wt(a,h.position){if(!a||!this.roll||!this.backColor&&!this.roll.alter)return a;const l=this.roll.horizontal&&this.roll.vertical?2:1,u=this.roll.horizontal?Math.PI/2:0;return Math.floor(((this.roll.angle??0)+u)/(Math.PI/l))%2?this.backColor?this.backColor:this.roll.alter?I6(a,this.roll.alter.type,this.roll.alter.value):a:a},this._initPosition=a=>{const l=this.container,u=N(this.options.zIndex.value);this.position=this._calcPosition(l,a,nn(u,0,l.zLayers)),this.initialPosition=this.position.copy();const c=l.canvas.size;switch(this.moveCenter={...Em(this.options.move.center,c),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??"percent"},this.direction=u6(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=Ie.origin},this._loadShapeData=(a,l)=>{const u=a.options[this.shape];if(u)return Ve({close:a.close,fill:a.fill},Pn(u,this.id,l))},this._engine=e,this.init(n,r,s,o)}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const n=this.container,i=this.pathGenerator;for(const[,r]of n.plugins)r.particleDestroyed&&r.particleDestroyed(this,e);for(const r of n.particles.updaters)r.particleDestroyed&&r.particleDestroyed(this,e);i&&i.reset(this)}draw(e){const n=this.container;for(const[,i]of n.plugins)n.canvas.drawParticlePlugin(i,this,e);n.canvas.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??Gh(this.color))}getMass(){return this.getRadius()**2*Math.PI/2}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??Gh(this.strokeColor))}init(e,n,i,r){const s=this.container,o=this._engine;this.id=e,this.group=r,this.fill=!0,this.pathRotation=!1,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const a=s.retina.pixelRatio,l=s.actualOptions,u=Fm(this._engine,s,l.particles),c=u.shape.type,{reduceDuplicates:f}=u;this.shape=Pn(c,this.id,f);const d=u.shape;if(i&&i.shape&&i.shape.type){const y=i.shape.type,w=Pn(y,this.id,f);w&&(this.shape=w,d.load(i.shape))}this.shapeData=this._loadShapeData(d,f),u.load(i);const h=this.shapeData;h&&u.load(h.particles);const g=new Im(o,s);g.load(s.actualOptions.interactivity),g.load(u.interactivity),this.interactivity=g,this.fill=(h==null?void 0:h.fill)??u.shape.fill,this.close=(h==null?void 0:h.close)??u.shape.close,this.options=u;const v=this.options.move.path;this.pathDelay=Gi(v.delay)*1e3,v.generator&&(this.pathGenerator=this._engine.plugins.getPathGenerator(v.generator),this.pathGenerator&&s.addPath(v.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=_m(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(n),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-N(this.options.move.decay);const S=s.particles;S.needsSort=S.needsSort||S.lastZIndex=-e&&i.y>=-e&&i.y<=n.height+e&&i.x<=n.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const e of this.container.particles.updaters)e.reset&&e.reset(this)}}class Ew{constructor(e,n){this.position=e,this.particle=n}}class Nm{constructor(e,n){this.position={x:e,y:n}}}class rn extends Nm{constructor(e,n,i,r){super(e,n),this.size={height:r,width:i}}contains(e){const n=this.size.width,i=this.size.height,r=this.position;return e.x>=r.x&&e.x<=r.x+n&&e.y>=r.y&&e.y<=r.y+i}intersects(e){e instanceof qe&&e.intersects(this);const n=this.size.width,i=this.size.height,r=this.position,s=e.position,o=e instanceof rn?e.size:{width:0,height:0},a=o.width,l=o.height;return s.xr.x&&s.yr.y}}class qe extends Nm{constructor(e,n,i){super(e,n),this.radius=i}contains(e){return wt(e,this.position)<=this.radius}intersects(e){const n=this.position,i=e.position,r={x:Math.abs(i.x-n.x),y:Math.abs(i.y-n.y)},s=this.radius;if(e instanceof qe){const o=s+e.radius,a=Math.sqrt(r.x**2+r.y**2);return o>a}else if(e instanceof rn){const{width:o,height:a}=e.size;return Math.pow(r.x-o,2)+Math.pow(r.y-a,2)<=s**2||r.x<=s+o&&r.y<=s+a||r.x<=o||r.y<=a}return!1}}class ja{constructor(e,n){this.rectangle=e,this.capacity=n,this._subdivide=()=>{const{x:i,y:r}=this.rectangle.position,{width:s,height:o}=this.rectangle.size,{capacity:a}=this;for(let l=0;l<4;l++)this._subs.push(new ja(new rn(i+s/2*(l%2),r+o/2*(Math.round(l/2)-l%2),s/2,o/2),a));this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return this.rectangle.contains(e.position)?this._points.lengthn.insert(e))):!1}query(e,n,i){const r=i||[];if(!e.intersects(this.rectangle))return[];for(const s of this._points)!e.contains(s.position)&&wt(e.position,s.position)>s.particle.getRadius()&&(!n||n(s.particle))||r.push(s.particle);if(this._divided)for(const s of this._subs)s.query(e,n,r);return r}queryCircle(e,n,i){return this.query(new qe(e.x,e.y,n),i)}queryRectangle(e,n,i){return this.query(new rn(e.x,e.y,n.width,n.height),i)}}const Kh=4,Yh=t=>new rn(-t.width/4,-t.height/4,t.width*3/2,t.height*3/2);let Pw=class{constructor(e,n){this._applyDensity=(r,s,o)=>{var h;if(!((h=r.number.density)!=null&&h.enable))return;const a=r.number,l=this._initDensityFactor(a.density),u=a.value,c=a.limit>0?a.limit:u,f=Math.min(u,c)*l+s,d=Math.min(this.count,this.filter(g=>g.group===o).length);this.limit=a.limit*l,df&&this.removeQuantity(d-f,o)},this._initDensityFactor=r=>{const s=this._container;if(!s.canvas.element||!r.enable)return 1;const o=s.canvas.element,a=s.retina.pixelRatio;return o.width*o.height/(r.factor*a**2*r.area)},this._pushParticle=(r,s,o,a)=>{try{let l=this.pool.pop();l?l.init(this._nextId,r,s,o):l=new _w(this._engine,this._nextId,this._container,r,s,o);let u=!0;return a&&(u=a(l)),u?(this._array.push(l),this._zArray.push(l),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:l}}),l):void 0}catch(l){Wi().warning(`${$t} adding particle: ${l}`);return}},this._removeParticle=(r,s,o)=>{const a=this._array[r];if(!a||a.group!==s)return!1;a.destroy(o);const l=this._zArray.indexOf(a);return this._array.splice(r,1),this._zArray.splice(l,1),this.pool.push(a),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:a}}),!0},this._engine=e,this._container=n,this._nextId=0,this._array=[],this._zArray=[],this.pool=[],this.limit=0,this.needsSort=!1,this.lastZIndex=0,this._interactionManager=new bw(e,n);const i=n.canvas.size;this.quadTree=new ja(Yh(i),Kh),this.movers=this._engine.plugins.getMovers(n,!0),this.updaters=this._engine.plugins.getUpdaters(n,!0)}get count(){return this._array.length}addManualParticles(){const e=this._container,n=e.actualOptions;for(const i of n.manualParticles)this.addParticle(i.position?Em(i.position,e.canvas.size):void 0,i.options)}addParticle(e,n,i,r){const s=this._container,o=s.actualOptions,a=o.particles.number.limit;if(a>0){const l=this.count+1-a;l>0&&this.removeQuantity(l)}return this._pushParticle(e,n,i,r)}clear(){this._array=[],this._zArray=[]}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}async draw(e){const n=this._container;n.canvas.clear(),await this.update(e);for(const[,i]of n.plugins)n.canvas.drawPlugin(i,e);for(const i of this._zArray)i.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}handleClickMode(e){this._interactionManager.handleClickMode(e)}init(){var r;const e=this._container,n=e.actualOptions;this.lastZIndex=0,this.needsSort=!1;let i=!1;this.updaters=this._engine.plugins.getUpdaters(e,!0),this._interactionManager.init();for(const[,s]of e.plugins)if(s.particlesInitialization!==void 0&&(i=s.particlesInitialization()),i)break;this._interactionManager.init();for(const[,s]of e.pathGenerators)s.init(e);if(this.addManualParticles(),!i){for(const s in n.particles.groups){const o=n.particles.groups[s];for(let a=this.count,l=0;l<((r=o.number)==null?void 0:r.value)&&athis.count)return;let s=0;for(let o=e;s!i.has(s);this._array=this.filter(r),this._zArray=this._zArray.filter(r),this.pool.push(...i)}await this._interactionManager.externalInteract(e);for(const r of this._array){for(const s of this.updaters)s.update(r,e);!r.destroyed&&!r.spawning&&await this._interactionManager.particlesInteract(r,e)}if(delete n.canvas.resizeFactor,this.needsSort){const r=this._zArray;r.sort((s,o)=>o.position.z-s.position.z||s.id-o.id),this.lastZIndex=r[r.length-1].position.z,this.needsSort=!1}}};class Ow{constructor(e){this.container=e,this.pixelRatio=1,this.reduceFactor=1}init(){const e=this.container,n=e.actualOptions;this.pixelRatio=!n.detectRetina||qr()?1:window.devicePixelRatio,this.reduceFactor=1;const i=this.pixelRatio;if(e.canvas.element){const o=e.canvas.element;e.canvas.size.width=o.offsetWidth*i,e.canvas.size.height=o.offsetHeight*i}const r=n.particles,s=r.move;this.attractDistance=N(s.attract.distance)*i,this.maxSpeed=N(s.gravity.maxSpeed)*i,this.sizeAnimationSpeed=N(r.size.animation.speed)*i}initParticle(e){const n=e.options,i=this.pixelRatio,r=n.move,s=r.distance,o=e.retina;o.attractDistance=N(r.attract.distance)*i,o.moveDrift=N(r.drift)*i,o.moveSpeed=N(r.speed)*i,o.sizeAnimationSpeed=N(n.size.animation.speed)*i;const a=o.maxDistance;a.horizontal=s.horizontal!==void 0?s.horizontal*i:void 0,a.vertical=s.vertical!==void 0?s.vertical*i:void 0,o.maxSpeed=N(r.gravity.maxSpeed)*i}}function ce(t){return t&&!t.destroyed}function Mw(t,e=60,n=!1){return{value:t,factor:n?60/e:60*t/1e3}}function Xi(t,e,...n){const i=new Cw(t,e);return Am(i,...n),i}const Rw="default",Xh={generate:t=>t.velocity,init:()=>{},update:()=>{},reset:()=>{}};class zw{constructor(e,n,i){this.id=n,this._intersectionManager=r=>{if(!(!ce(this)||!this.actualOptions.pauseOnOutsideViewport))for(const s of r)s.target===this.interactivity.element&&(s.isIntersecting?this.play:this.pause)()},this._nextFrame=async r=>{try{if(!this.smooth&&this.lastFrameTime!==void 0&&r1e3){this.draw(!1);return}if(await this.particles.draw(s),!this.alive()){this.destroy();return}this.getAnimationStatus()&&this.draw(!1)}catch(s){Wi().error(`${$t} in animation loop`,s)}},this._engine=e,this.fpsLimit=120,this.smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Ow(this),this.canvas=new L6(this),this.particles=new Pw(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.drawers=new Map,this._options=Xi(this._engine,this),this.actualOptions=Xi(this._engine,this),this._eventListeners=new A6(this),typeof IntersectionObserver<"u"&&IntersectionObserver&&(this._intersectionObserver=new IntersectionObserver(r=>this._intersectionManager(r))),this._engine.dispatchEvent("containerBuilt",{container:this})}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!ce(this))return;const n=this.interactivity.element;if(!n)return;const i=(f,d,h)=>{if(!ce(this))return;const g=this.retina.pixelRatio,v={x:d.x*g,y:d.y*g},S=this.particles.quadTree.queryCircle(v,h*g);e(f,S)},r=f=>{if(!ce(this))return;const d=f,h={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};i(f,h,1)},s=()=>{ce(this)&&(u=!0,c=!1)},o=()=>{ce(this)&&(c=!0)},a=f=>{if(ce(this)){if(u&&!c){const d=f;let h=d.touches[d.touches.length-1];if(!h&&(h=d.changedTouches[d.changedTouches.length-1],!h))return;const g=this.canvas.element,v=g?g.getBoundingClientRect():void 0,S={x:h.clientX-(v?v.left:0),y:h.clientY-(v?v.top:0)};i(f,S,Math.max(h.radiusX,h.radiusY))}u=!1,c=!1}},l=()=>{ce(this)&&(u=!1,c=!1)};let u=!1,c=!1;n.addEventListener("click",r),n.addEventListener("touchstart",s),n.addEventListener("touchmove",o),n.addEventListener("touchend",a),n.addEventListener("touchcancel",l)}addLifeTime(e){this._lifeTime+=e}addPath(e,n,i=!1){return!ce(this)||!i&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,n??Xh),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!ce(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,i]of this.drawers)i.destroy&&i.destroy(this);for(const i of this.drawers.keys())this.drawers.delete(i);this._engine.plugins.destroy(this),this.destroyed=!0;const e=this._engine.dom(),n=e.findIndex(i=>i===this);n>=0&&e.splice(n,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!ce(this))return;let n=e;this._drawAnimationFrame=requestAnimationFrame(async i=>{n&&(this.lastFrameTime=void 0,n=!1),await this._nextFrame(i)})}async export(e,n={}){for(const[,i]of this.plugins){if(!i.export)continue;const r=await i.export(e,n);if(r.supported)return r.blob}Wi().error(`${$t} - Export plugin with type ${e} not found`)}getAnimationStatus(){return!this._paused&&!this.pageHidden&&ce(this)}handleClickMode(e){if(ce(this)){this.particles.handleClickMode(e);for(const[,n]of this.plugins)n.handleClickMode&&n.handleClickMode(e)}}async init(){if(!ce(this))return;const e=this._engine.plugins.getSupportedShapes();for(const i of e){const r=this._engine.plugins.getShapeDrawer(i);r&&this.drawers.set(i,r)}this._options=Xi(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Xi(this._engine,this,this._options);const n=this._engine.plugins.getAvailablePlugins(this);for(const[i,r]of n)this.plugins.set(i,r);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=N(this.actualOptions.duration)*1e3,this._delay=N(this.actualOptions.delay)*1e3,this._lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120,this.smooth=this.actualOptions.smooth;for(const[,i]of this.drawers)i.init&&await i.init(this);for(const[,i]of this.plugins)i.init&&await i.init();this._engine.dispatchEvent("containerInit",{container:this}),this.particles.init(),this.particles.setDensity();for(const[,i]of this.plugins)i.particlesSetup&&i.particlesSetup();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){ce(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(ce(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,e]of this.plugins)e.pause&&e.pause();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!ce(this))return;const n=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),n)for(const[,i]of this.plugins)i.play&&i.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(n||!1)}async refresh(){if(ce(this))return this.stop(),this.start()}async reset(){if(ce(this))return this._initialSourceOptions=void 0,this._options=Xi(this._engine,this),this.actualOptions=Xi(this._engine,this,this._options),this.refresh()}setNoise(e,n,i){ce(this)&&this.setPath(e,n,i)}setPath(e,n,i){if(!e||!ce(this))return;const r={...Xh};if(Pm(e))r.generate=e,n&&(r.init=n),i&&(r.update=i);else{const s=r;r.generate=e.generate||s.generate,r.init=e.init||s.init,r.update=e.update||s.update}this.addPath(Rw,r,!0)}async start(){!ce(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{this._delayTimeout=setTimeout(async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,n]of this.plugins)n.start&&await n.start();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()},this._delay)}))}stop(){if(!(!ce(this)||!this.started)){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,e]of this.plugins)e.stop&&e.stop();for(const e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this.responsiveMaxWidth===e?!1:(this.responsiveMaxWidth=e,!0)}}class Tw{constructor(){this._listeners=new Map}addEventListener(e,n){this.removeEventListener(e,n);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(n)}dispatchEvent(e,n){const i=this._listeners.get(e);i&&i.forEach(r=>r(n))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,n){const i=this._listeners.get(e);if(!i)return;const r=i.length,s=i.indexOf(n);s<0||(r===1?this._listeners.delete(e):i.splice(s,1))}}function yu(t,e,n,i=!1){let r=e.get(t);return(!r||i)&&(r=[...n.values()].map(s=>s(t)),e.set(t,r)),r}class Iw{constructor(e){this._engine=e,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}addInteractor(e,n){this._initializers.interactors.set(e,n)}addParticleMover(e,n){this._initializers.movers.set(e,n)}addParticleUpdater(e,n){this._initializers.updaters.set(e,n)}addPathGenerator(e,n){!this.getPathGenerator(e)&&this.pathGenerators.set(e,n)}addPlugin(e){!this.getPlugin(e.id)&&this.plugins.push(e)}addPreset(e,n,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,n)}addShapeDrawer(e,n){De(e,i=>{!this.getShapeDrawer(i)&&this.drawers.set(i,n)})}destroy(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}getAvailablePlugins(e){const n=new Map;for(const i of this.plugins)i.needsPlugin(e.actualOptions)&&n.set(i.id,i.getPlugin(e));return n}getInteractors(e,n=!1){return yu(e,this.interactors,this._initializers.interactors,n)}getMovers(e,n=!1){return yu(e,this.movers,this._initializers.movers,n)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(n=>n.id===e)}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.drawers.get(e)}getSupportedShapes(){return this.drawers.keys()}getUpdaters(e,n=!1){return yu(e,this.updaters,this._initializers.updaters,n)}loadOptions(e,n){for(const i of this.plugins)i.loadOptions(e,n)}loadParticlesOptions(e,n,...i){const r=this.updaters.get(e);if(r)for(const s of r)s.loadOptions&&s.loadOptions(n,...i)}}async function Dw(t){const e=Pn(t.url,t.index);if(!e)return t.fallback;const n=await fetch(e);return n.ok?n.json():(Wi().error(`${$t} ${n.status} while retrieving config file`),t.fallback)}function Lw(t){return!t.id&&!t.element&&!t.url&&!t.options}function Aw(t){return!Lw(t)}class Fw{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new Tw,this._initialized=!1,this.plugins=new Iw(this)}get configs(){const e={};for(const[n,i]of this._configs)e[n]=i;return e}get version(){return"2.12.0"}addConfig(e,n){Xt(e)?n&&(n.name=e,this._configs.set(e,n)):this._configs.set(e.name??"default",e)}addEventListener(e,n){this._eventDispatcher.addEventListener(e,n)}async addInteractor(e,n,i=!0){this.plugins.addInteractor(e,n),await this.refresh(i)}async addMover(e,n,i=!0){this.plugins.addParticleMover(e,n),await this.refresh(i)}async addParticleUpdater(e,n,i=!0){this.plugins.addParticleUpdater(e,n),await this.refresh(i)}async addPathGenerator(e,n,i=!0){this.plugins.addPathGenerator(e,n),await this.refresh(i)}async addPlugin(e,n=!0){this.plugins.addPlugin(e),await this.refresh(n)}async addPreset(e,n,i=!1,r=!0){this.plugins.addPreset(e,n,i),await this.refresh(r)}async addShape(e,n,i,r,s,o=!0){let a,l=o,u,c,f;ui(i)?(l=i,u=void 0):u=i,ui(r)?(l=r,c=void 0):c=r,ui(s)?(l=s,f=void 0):f=s,Pm(n)?a={afterEffect:c,destroy:f,draw:n,init:u}:a=n,this.plugins.addShapeDrawer(e,a),await this.refresh(l)}dispatchEvent(e,n){this._eventDispatcher.dispatchEvent(e,n)}dom(){return this._domArray}domItem(e){const n=this.dom(),i=n[e];if(!i||i.destroyed){n.splice(e,1);return}return i}init(){this._initialized||(this._initialized=!0)}async load(e,n){return this.loadFromArray(e,n)}async loadFromArray(e,n,i){let r;return Aw(e)?r=e:(r={},Xt(e)?r.id=e:r.options=e,Zt(n)?r.index=n:r.options=n??r.options,r.index=i??r.index),this._loadParams(r)}async loadJSON(e,n,i){let r,s;return Zt(n)||n===void 0?r=e:(s=e,r=n),this._loadParams({id:s,url:r,index:i})}async refresh(e=!0){e&&this.dom().forEach(n=>n.refresh())}removeEventListener(e,n){this._eventDispatcher.removeEventListener(e,n)}async set(e,n,i,r){const s={index:r};return Xt(e)?s.id=e:s.element=e,n instanceof HTMLElement?s.element=n:s.options=n,Zt(i)?s.index=i:s.options=i??s.options,this._loadParams(s)}async setJSON(e,n,i,r){const s={};return e instanceof HTMLElement?(s.element=e,s.url=n,s.index=i):(s.id=e,s.element=n,s.url=i,s.index=r),this._loadParams(s)}setOnClickHandler(e){const n=this.dom();if(!n.length)throw new Error(`${$t} can only set click handlers after calling tsParticles.load()`);for(const i of n)i.addClickHandler(e)}async _loadParams(e){const n=e.id??`tsparticles${Math.floor(ae()*1e4)}`,{index:i,url:r}=e,s=r?await Dw({fallback:e.options,url:r,index:i}):e.options;let o=e.element??document.getElementById(n);o||(o=document.createElement("div"),o.id=n,document.body.append(o));const a=Pn(s,i),l=this.dom(),u=l.findIndex(d=>d.id===n);if(u>=0){const d=this.domItem(u);d&&!d.destroyed&&(d.destroy(),l.splice(u,1))}let c;if(o.tagName.toLowerCase()==="canvas")c=o,c.dataset[Es]="false";else{const d=o.getElementsByTagName("canvas");d.length?(c=d[0],c.dataset[Es]="false"):(c=document.createElement("canvas"),c.dataset[Es]="true",o.appendChild(c))}c.style.width||(c.style.width="100%"),c.style.height||(c.style.height="100%");const f=new zw(this,n,a);return u>=0?l.splice(u,0,f):l.push(f),f.canvas.loadCanvas(c),await f.start(),f}}class Nw{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){const n=e.value,i=n.hsl??e.value;if(i.h!==void 0&&i.s!==void 0&&i.l!==void 0)return Qr(i)}handleRangeColor(e){const n=e.value,i=n.hsl??e.value;if(i.h!==void 0&&i.l!==void 0)return Qr({h:N(i.h),l:N(i.l),s:N(i.s)})}parseString(e){if(!e.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,i=n.exec(e);return i?b6({a:i.length>4?xm(i[5]):1,h:parseInt(i[1],10),l:parseInt(i[3],10),s:parseInt(i[2],10)}):void 0}}class $w{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){const n=e.value,i=n.rgb??e.value;if(i.r!==void 0)return i}handleRangeColor(e){const n=e.value,i=n.rgb??e.value;if(i.r!==void 0)return{r:N(i.r),g:N(i.g),b:N(i.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,i=n.exec(e);return i?{a:i.length>4?xm(i[5]):1,b:parseInt(i[3],10),g:parseInt(i[2],10),r:parseInt(i[1],10)}:void 0}}function jw(){const t=new $w,e=new Nw;Hh(t),Hh(e);const n=new Fw;return n.init(),n}class yn{constructor(e){this.container=e,this.type="external"}}class Xf{constructor(e){this.container=e,this.type="particles"}}const Ba=jw();qr()||(window.tsParticles=Ba);const dr=t=>typeof t=="object"&&t!==null;function Ua(t,e,n=()=>!1){if(!dr(t)||!dr(e))return t===e;const i=Object.keys(t).filter(s=>!n(s)),r=Object.keys(e).filter(s=>!n(s));if(i.length!==r.length)return!1;for(const s of i){const o=t[s],a=e[s];if(dr(o)&&dr(a)){if(o===e&&a===t)continue;if(!Ua(o,a,n))return!1}else if(Array.isArray(o)&&Array.isArray(a)){if(!$m(o,a,n))return!1}else if(o!==a)return!1}return!0}function $m(t,e,n){if(t.length!==e.length)return!1;for(let i=0;ir.startsWith("_"))}componentDidUpdate(){this.refresh()}forceUpdate(){this.refresh().then(()=>{super.forceUpdate()})}componentDidMount(){(async()=>(this.props.init&&await this.props.init(Ba),this.setState({init:!0},async()=>{await this.loadParticles()})))()}componentWillUnmount(){this.destroy()}render(){const{width:e,height:n,className:i,canvasClassName:r,id:s}=this.props;return Oe.createElement("div",{className:i,id:s},Oe.createElement("canvas",{className:r,style:{...this.props.style,width:e,height:n}}))}async refresh(){this.destroy(),await this.loadParticles()}async loadParticles(){if(!this.state.init)return;const e=this.props.id??Um.defaultProps.id??jm,n=await Ba.load({url:this.props.url,id:e,options:this.props.options??this.props.params});this.props.container&&(this.props.container.current=n),this.setState({library:n}),this.props.loaded&&await this.props.loaded(n)}};Bm.defaultProps={width:"100%",height:"100%",options:{},style:{},url:void 0,id:jm};class Ha{static init(e){var s;const n=new Ha,i=e.selector;if(!i)throw new Error("No selector provided");const r=document.querySelector(i);if(!r)throw new Error("No element found for selector");return Ba.set(i.replace(".","").replace("!",""),r,{fullScreen:{enable:!1},particles:{color:{value:e.color??"!000000"},links:{color:"random",distance:e.minDistance??120,enable:e.connectParticles??!1},move:{enable:!0,speed:e.speed??.5},number:{value:e.maxParticles??100},size:{value:{min:1,max:e.sizeVariations??3}}},responsive:(s=e.responsive)==null?void 0:s.map(o=>{var a,l,u,c,f;return{maxWidth:o.breakpoint,options:{particles:{color:{value:(a=o.options)==null?void 0:a.color},links:{distance:(l=o.options)==null?void 0:l.minDistance,enable:(u=o.options)==null?void 0:u.connectParticles},number:{value:e.maxParticles},move:{enable:!0,speed:(c=o.options)==null?void 0:c.speed},size:{value:(f=o.options)==null?void 0:f.sizeVariations}}}}})}).then(o=>{n._container=o}),n}destroy(){const e=this._container;e&&e.destroy()}pauseAnimation(){const e=this._container;e&&e.pause()}resumeAnimation(){const e=this._container;e&&e.play()}}const Bw=t=>{const e=(i,r)=>t.load(i,r);e.load=(i,r,s)=>{t.loadJSON(i,r).then(o=>{o&&s(o)}).catch(()=>{s(void 0)})},e.setOnClickHandler=i=>{t.setOnClickHandler(i)};const n=t.dom();return{particlesJS:e,pJSDom:n}},Uw=t=>{const{particlesJS:e,pJSDom:n}=Bw(t);return window.particlesJS=e,window.pJSDom=n,window.Particles=Ha,{particlesJS:e,pJSDom:n,Particles:Ha}};function Hw(t){const e=t.initialPosition,{dx:n,dy:i}=et(e,t.position),r=Math.abs(n),s=Math.abs(i),{maxDistance:o}=t.retina,a=o.horizontal,l=o.vertical;if(!(!a&&!l)){if((a&&r>=a||l&&s>=l)&&!t.misplaced)t.misplaced=!!a&&r>a||!!l&&s>l,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),l&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||re.x&&c.x>0)&&(c.x*=-ae()),l&&(u.ye.y&&c.y>0)&&(c.y*=-ae())}}}function Gw(t,e,n,i,r,s){Vw(t,s);const o=t.gravity,a=o!=null&&o.enable&&o.inverse?-1:1;r&&n&&(t.velocity.x+=r*s.factor/(60*n)),o!=null&&o.enable&&n&&(t.velocity.y+=a*(o.acceleration*s.factor)/(60*n));const l=t.moveDecay;t.velocity.multTo(l);const u=t.velocity.mult(n);o!=null&&o.enable&&i>0&&(!o.inverse&&u.y>=0&&u.y>=i||o.inverse&&u.y<=0&&u.y<=-i)&&(u.y=a*i,n&&(t.velocity.y=u.y/n));const c=t.options.zIndex,f=(1-t.zIndexFactor)**c.velocityRate;u.multTo(f);const{position:d}=t;d.addTo(u),e.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function Ww(t,e){const n=t.container;if(!t.spin)return;const i={x:t.spin.direction==="clockwise"?Math.cos:Math.sin,y:t.spin.direction==="clockwise"?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*i.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*i.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const r=Math.max(n.canvas.size.width,n.canvas.size.height);t.spin.radius>r/2?(t.spin.radius=r/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/r)}function Vw(t,e){var o;const n=t.options,i=n.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}const s=(o=t.pathGenerator)==null?void 0:o.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=nn(t.velocity.x,-1,1),t.velocity.y=nn(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}function qw(t){return t.slow.inRange?t.slow.factor:1}const Qw=2;class Kw{constructor(){this._initSpin=e=>{const n=e.container,i=e.options,r=i.move.spin;if(!r.enable)return;const s=r.position??{x:50,y:50},o={x:s.x/100*n.canvas.size.width,y:s.y/100*n.canvas.size.height},a=e.getPosition(),l=wt(a,o),u=N(r.acceleration);e.retina.spinAcceleration=u*n.retina.pixelRatio,e.spin={center:o,direction:e.velocity.x>=0?"clockwise":"counter-clockwise",angle:e.velocity.angle,radius:l,acceleration:e.retina.spinAcceleration}}}init(e){const n=e.options,i=n.move.gravity;e.gravity={enable:i.enable,acceleration:N(i.acceleration),inverse:i.inverse},this._initSpin(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,n){var g,v;const i=e.options,r=i.move;if(!r.enable)return;const s=e.container,o=s.retina.pixelRatio,a=qw(e),l=((g=e.retina).moveSpeed??(g.moveSpeed=N(r.speed)*o))*s.retina.reduceFactor,u=(v=e.retina).moveDrift??(v.moveDrift=N(e.options.move.drift)*o),c=Zn(i.size.value)*o,f=r.size?e.getRadius()/c:1,d=l*f*a*(n.factor||1)/Qw,h=e.retina.maxSpeed??s.retina.maxSpeed;r.spin.enable?Ww(e,d):Gw(e,r,d,h,u,n),Hw(e)}}async function Yw(t,e=!0){await t.addMover("base",()=>new Kw,e)}class Xw{draw(e,n,i){n.circleRange||(n.circleRange={min:0,max:Math.PI*2});const r=n.circleRange;e.arc(0,0,i,r.min,r.max,!1)}getSidesCount(){return 12}particleInit(e,n){const i=n.shapeData,r=(i==null?void 0:i.angle)??{max:360,min:0};n.circleRange=fr(r)?{min:r.min*Math.PI/180,max:r.max*Math.PI/180}:{min:0,max:r*Math.PI/180}}}async function Zw(t,e=!0){await t.addShape("circle",new Xw,e)}function gu(t,e,n,i,r){if(!e||!n.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const s=ut(n.offset),o=(e.velocity??0)*t.factor+s*3.6,a=e.decay??1;!r||e.status==="increasing"?(e.value+=o,e.value>i&&(e.loops||(e.loops=0),e.loops++,r&&(e.status="decreasing",e.value-=e.value%i))):(e.value-=o,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)),e.velocity&&a!==1&&(e.velocity*=a),e.value>i&&(e.value%=i)}function Jw(t,e){const{h:n,s:i,l:r}=t.options.color.animation,{color:s}=t;if(!s)return;const{h:o,s:a,l}=s;o&&gu(e,o,n,360,!1),a&&gu(e,a,i,100,!0),l&&gu(e,l,r,100,!0)}class e8{constructor(e){this.container=e}init(e){const n=Qs(e.options.color,e.id,e.options.reduceDuplicates);n&&(e.color=Tm(n,e.options.color.animation,this.container.retina.reduceFactor))}isEnabled(e){const{h:n,s:i,l:r}=e.options.color.animation,{color:s}=e;return!e.destroyed&&!e.spawning&&((s==null?void 0:s.h.value)!==void 0&&n.enable||(s==null?void 0:s.s.value)!==void 0&&i.enable||(s==null?void 0:s.l.value)!==void 0&&r.enable)}update(e,n){Jw(e,n)}}async function t8(t,e=!0){await t.addParticleUpdater("color",n=>new e8(n),e)}function n8(t,e,n,i){switch(t.options.opacity.animation.destroy){case"max":e>=i&&t.destroy();break;case"min":e<=n&&t.destroy();break}}function i8(t,e){const n=t.opacity;if(t.destroyed||!(n!=null&&n.enable)||(n.maxLoops??0)>0&&(n.loops??0)>(n.maxLoops??0))return;const i=n.min,r=n.max,s=n.decay??1;if(n.time||(n.time=0),(n.delayTime??0)>0&&n.time<(n.delayTime??0)&&(n.time+=e.value),!((n.delayTime??0)>0&&n.time<(n.delayTime??0))){switch(n.status){case"increasing":n.value>=r?(n.status="decreasing",n.loops||(n.loops=0),n.loops++):n.value+=(n.velocity??0)*e.factor;break;case"decreasing":n.value<=i?(n.status="increasing",n.loops||(n.loops=0),n.loops++):n.value-=(n.velocity??0)*e.factor;break}n.velocity&&n.decay!==1&&(n.velocity*=s),n8(t,n.value,i,r),t.destroyed||(n.value=nn(n.value,i,r))}}class r8{constructor(e){this.container=e}init(e){const n=e.options.opacity;e.opacity=_m(n,1);const i=n.animation;i.enable&&(e.opacity.velocity=N(i.speed)/100*this.container.retina.reduceFactor,i.sync||(e.opacity.velocity*=ae()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,n){this.isEnabled(e)&&i8(e,n)}}async function s8(t,e=!0){await t.addParticleUpdater("opacity",n=>new r8(n),e)}function o8(t){if(t.outMode!=="bounce"&&t.outMode!=="bounce-horizontal"&&t.outMode!=="bounceHorizontal"&&t.outMode!=="split"||t.direction!=="left"&&t.direction!=="right")return;t.bounds.right<0&&t.direction==="left"?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction==="right"&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let n=!1;if(t.direction==="right"&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction==="left"&&t.bounds.left<=0&&e<0){const r=Gi(t.particle.options.bounce.horizontal);t.particle.velocity.x*=-r,n=!0}if(!n)return;const i=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction==="right"?t.particle.position.x=t.canvasSize.width-i:t.bounds.left<=0&&t.direction==="left"&&(t.particle.position.x=i),t.outMode==="split"&&t.particle.destroy()}function a8(t){if(t.outMode!=="bounce"&&t.outMode!=="bounce-vertical"&&t.outMode!=="bounceVertical"&&t.outMode!=="split"||t.direction!=="bottom"&&t.direction!=="top")return;t.bounds.bottom<0&&t.direction==="top"?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction==="bottom"&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let n=!1;if(t.direction==="bottom"&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction==="top"&&t.bounds.top<=0&&e<0){const r=Gi(t.particle.options.bounce.vertical);t.particle.velocity.y*=-r,n=!0}if(!n)return;const i=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction==="bottom"?t.particle.position.y=t.canvasSize.height-i:t.bounds.top<=0&&t.direction==="top"&&(t.particle.position.y=i),t.outMode==="split"&&t.particle.destroy()}class l8{constructor(e){this.container=e,this.modes=["bounce","bounce-vertical","bounce-horizontal","bounceVertical","bounceHorizontal","split"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;let o=!1;for(const[,d]of s.plugins)if(d.particleBounce!==void 0&&(o=d.particleBounce(e,i,n)),o)break;if(o)return;const a=e.getPosition(),l=e.offset,u=e.getRadius(),c=go(a,u),f=s.canvas.size;o8({particle:e,outMode:r,direction:n,bounds:c,canvasSize:f,offset:l,size:u}),a8({particle:e,outMode:r,direction:n,bounds:c,canvasSize:f,offset:l,size:u})}}class u8{constructor(e){this.container=e,this.modes=["destroy"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;switch(e.outType){case"normal":case"outside":if(qf(e.position,s.canvas.size,Ie.origin,e.getRadius(),n))return;break;case"inside":{const{dx:o,dy:a}=et(e.position,e.moveCenter),{x:l,y:u}=e.velocity;if(l<0&&o>e.moveCenter.radius||u<0&&a>e.moveCenter.radius||l>=0&&o<-e.moveCenter.radius||u>=0&&a<-e.moveCenter.radius)return;break}}s.particles.remove(e,void 0,!0)}}class c8{constructor(e){this.container=e,this.modes=["none"]}update(e,n,i,r){if(!this.modes.includes(r)||e.options.move.distance.horizontal&&(n==="left"||n==="right")||e.options.move.distance.vertical&&(n==="top"||n==="bottom"))return;const s=e.options.move.gravity,o=this.container,a=o.canvas.size,l=e.getRadius();if(s.enable){const u=e.position;(!s.inverse&&u.y>a.height+l&&n==="bottom"||s.inverse&&u.y<-l&&n==="top")&&o.particles.remove(e)}else{if(e.velocity.y>0&&e.position.y<=a.height+l||e.velocity.y<0&&e.position.y>=-l||e.velocity.x>0&&e.position.x<=a.width+l||e.velocity.x<0&&e.position.x>=-l)return;qf(e.position,o.canvas.size,Ie.origin,l,n)||o.particles.remove(e)}}}class f8{constructor(e){this.container=e,this.modes=["out"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;switch(e.outType){case"inside":{const{x:o,y:a}=e.velocity,l=Ie.origin;l.length=e.moveCenter.radius,l.angle=e.velocity.angle+Math.PI,l.addTo(Ie.create(e.moveCenter));const{dx:u,dy:c}=et(e.position,l);if(o<=0&&u>=0||a<=0&&c>=0||o>=0&&u<=0||a>=0&&c<=0)return;e.position.x=Math.floor(ut({min:0,max:s.canvas.size.width})),e.position.y=Math.floor(ut({min:0,max:s.canvas.size.height}));const{dx:f,dy:d}=et(e.position,e.moveCenter);e.direction=Math.atan2(-d,-f),e.velocity.angle=e.direction;break}default:{if(qf(e.position,s.canvas.size,Ie.origin,e.getRadius(),n))return;switch(e.outType){case"outside":{e.position.x=Math.floor(ut({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor(ut({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;const{dx:o,dy:a}=et(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(a,o),e.velocity.angle=e.direction);break}case"normal":{const o=e.options.move.warp,a=s.canvas.size,l={bottom:a.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:a.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},u=e.getRadius(),c=go(e.position,u);n==="right"&&c.left>a.width+e.offset.x?(e.position.x=l.left,e.initialPosition.x=e.position.x,o||(e.position.y=ae()*a.height,e.initialPosition.y=e.position.y)):n==="left"&&c.right<-e.offset.x&&(e.position.x=l.right,e.initialPosition.x=e.position.x,o||(e.position.y=ae()*a.height,e.initialPosition.y=e.position.y)),n==="bottom"&&c.top>a.height+e.offset.y?(o||(e.position.x=ae()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.top,e.initialPosition.y=e.position.y):n==="top"&&c.bottom<-e.offset.y&&(o||(e.position.x=ae()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.bottom,e.initialPosition.y=e.position.y);break}}break}}}}class d8{constructor(e){this.container=e,this._updateOutMode=(n,i,r,s)=>{for(const o of this.updaters)o.update(n,s,i,r)},this.updaters=[new l8(e),new u8(e),new f8(e),new c8(e)]}init(){}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,n){const i=e.options.move.outModes;this._updateOutMode(e,n,i.bottom??i.default,"bottom"),this._updateOutMode(e,n,i.left??i.default,"left"),this._updateOutMode(e,n,i.right??i.default,"right"),this._updateOutMode(e,n,i.top??i.default,"top")}}async function h8(t,e=!0){await t.addParticleUpdater("outModes",n=>new d8(n),e)}function p8(t,e,n,i){switch(t.options.size.animation.destroy){case"max":e>=i&&t.destroy();break;case"min":e<=n&&t.destroy();break}}function m8(t,e){const n=t.size;if(t.destroyed||!n||!n.enable||(n.maxLoops??0)>0&&(n.loops??0)>(n.maxLoops??0))return;const i=(n.velocity??0)*e.factor,r=n.min,s=n.max,o=n.decay??1;if(n.time||(n.time=0),(n.delayTime??0)>0&&n.time<(n.delayTime??0)&&(n.time+=e.value),!((n.delayTime??0)>0&&n.time<(n.delayTime??0))){switch(n.status){case"increasing":n.value>=s?(n.status="decreasing",n.loops||(n.loops=0),n.loops++):n.value+=i;break;case"decreasing":n.value<=r?(n.status="increasing",n.loops||(n.loops=0),n.loops++):n.value-=i}n.velocity&&o!==1&&(n.velocity*=o),p8(t,n.value,r,s),t.destroyed||(n.value=nn(n.value,r,s))}}class y8{init(e){const n=e.container,i=e.options.size,r=i.animation;r.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??n.retina.sizeAnimationSpeed)/100*n.retina.reduceFactor,r.sync||(e.size.velocity*=ae()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,n){this.isEnabled(e)&&m8(e,n)}}async function g8(t,e=!0){await t.addParticleUpdater("size",()=>new y8,e)}async function v8(t,e=!0){await Yw(t,!1),await Zw(t,!1),await t8(t,!1),await s8(t,!1),await h8(t,!1),await g8(t,!1),await t.refresh(e)}async function w8(){ru("ease-in-quad",t=>t**2),ru("ease-out-quad",t=>1-(1-t)**2),ru("ease-in-out-quad",t=>t<.5?2*t**2:1-(-2*t+2)**2/2)}class x8{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}let S8=class extends yn{constructor(e,n){super(n),this._clickAttract=()=>{const i=this.container;i.attract||(i.attract={particles:[]});const{attract:r}=i;if(r.finish||(r.count||(r.count=0),r.count++,r.count===i.particles.count&&(r.finish=!0)),r.clicking){const s=i.interactivity.mouse.clickPosition,o=i.retina.attractModeDistance;if(!o||o<0||!s)return;this._processAttract(s,o,new qe(s.x,s.y,o))}else r.clicking===!1&&(r.particles=[])},this._hoverAttract=()=>{const i=this.container,r=i.interactivity.mouse.position,s=i.retina.attractModeDistance;!s||s<0||!r||this._processAttract(r,s,new qe(r.x,r.y,s))},this._processAttract=(i,r,s)=>{const o=this.container,a=o.actualOptions.interactivity.modes.attract;if(!a)return;const l=o.particles.quadTree.query(s,u=>this.isEnabled(u));for(const u of l){const{dx:c,dy:f,distance:d}=et(u.position,i),h=a.speed*a.factor,g=nn(wm(a.easing)(1-d/r)*h,0,a.maxSpeed),v=Ie.create(d===0?h:c/d*g,d===0?h:f/d*g);u.position.subFrom(v)}},this._engine=e,n.attract||(n.attract={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,s=r.interactivity.modes.attract;if(!(!s||i!=="attract")){n.attract||(n.attract={particles:[]}),n.attract.clicking=!0,n.attract.count=0;for(const o of n.attract.particles)this.isEnabled(o)&&o.velocity.setTo(o.initialVelocity);n.attract.particles=[],n.attract.finish=!1,setTimeout(()=>{n.destroyed||(n.attract||(n.attract={particles:[]}),n.attract.clicking=!1)},s.duration*1e3)}}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.attract;n&&(e.retina.attractModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=e.interactivity.status===Hi,r=n.interactivity.events,s=r.onHover.enable,o=r.onHover.mode,a=r.onClick.enable,l=r.onClick.mode;i&&s&&we("attract",o)?this._hoverAttract():a&&we("attract",l)&&this._clickAttract()}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events;if((!r.position||!s.onHover.enable)&&(!r.clickPosition||!s.onClick.enable))return!1;const o=s.onHover.mode,a=s.onClick.mode;return we("attract",o)||we("attract",a)}loadModeOptions(e,...n){e.attract||(e.attract=new x8);for(const i of n)e.attract.load(i==null?void 0:i.attract)}reset(){}};async function k8(t,e=!0){await t.addInteractor("externalAttract",n=>new S8(t,n),e)}class C8{constructor(){this.distance=200}load(e){e&&e.distance!==void 0&&(this.distance=e.distance)}}class b8 extends yn{constructor(e){super(e),this._processBounce=(n,i,r)=>{const s=this.container.particles.quadTree.query(r,o=>this.isEnabled(o));for(const o of s)r instanceof qe?Cm(Fc(o),{position:n,radius:i,mass:i**2*Math.PI/2,velocity:Ie.origin,factor:Ie.origin}):r instanceof rn&&x6(o,go(n,i))},this._processMouseBounce=()=>{const n=this.container,i=n.retina.pixelRatio,r=10*i,s=n.interactivity.mouse.position,o=n.retina.bounceModeDistance;!o||o<0||!s||this._processBounce(s,o,new qe(s.x,s.y,o+r))},this._singleSelectorBounce=(n,i)=>{const r=this.container,s=document.querySelectorAll(n);s.length&&s.forEach(o=>{const a=o,l=r.retina.pixelRatio,u={x:(a.offsetLeft+a.offsetWidth/2)*l,y:(a.offsetTop+a.offsetHeight/2)*l},c=a.offsetWidth/2*l,f=10*l,d=i.type==="circle"?new qe(u.x,u.y,c+f):new rn(a.offsetLeft*l-f,a.offsetTop*l-f,a.offsetWidth*l+f*2,a.offsetHeight*l+f*2);this._processBounce(u,c,d)})}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.bounce;n&&(e.retina.bounceModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=n.interactivity.events,r=e.interactivity.status===Hi,s=i.onHover.enable,o=i.onHover.mode,a=i.onDiv;r&&s&&we("bounce",o)?this._processMouseBounce():Kf("bounce",a,(l,u)=>this._singleSelectorBounce(l,u))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,o=s.onDiv;return r.position&&s.onHover.enable&&we("bounce",s.onHover.mode)||Qf("bounce",o)}loadModeOptions(e,...n){e.bounce||(e.bounce=new C8);for(const i of n)e.bounce.load(i==null?void 0:i.bounce)}reset(){}}async function _8(t,e=!0){await t.addInteractor("externalBounce",n=>new b8(n),e)}class Hm{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){const n=xt(this.color)?void 0:this.color;this.color=De(e.color,i=>Be.create(n,i))}e.size!==void 0&&(this.size=e.size)}}}class E8 extends Hm{constructor(){super(),this.selectors=[]}get ids(){return De(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=De(e,n=>`#${n}`)}load(e){super.load(e),e&&(e.ids!==void 0&&(this.ids=e.ids),e.selectors!==void 0&&(this.selectors=e.selectors))}}class P8 extends Hm{load(e){super.load(e),e&&(this.divs=De(e.divs,n=>{const i=new E8;return i.load(n),i}))}}function Zh(t,e,n,i){if(e>=n){const r=t+(e-n)*i;return nn(r,t,e)}else if(e{var u;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.clickPosition,s=i.interactivity.modes.bubble;if(!s||!r)return;n.bubble||(n.bubble={});const o=n.retina.bubbleModeDistance;if(!o||o<0)return;const a=n.particles.quadTree.queryCircle(r,o,c=>this.isEnabled(c)),{bubble:l}=n;for(const c of a){if(!l.clicking)continue;c.bubble.inRange=!l.durationEnd;const f=c.getPosition(),d=wt(f,r),h=(new Date().getTime()-(n.interactivity.mouse.clickTime||0))/1e3;h>s.duration&&(l.durationEnd=!0),h>s.duration*2&&(l.clicking=!1,l.durationEnd=!1);const g={bubbleObj:{optValue:n.retina.bubbleModeSize,value:c.bubble.radius},particlesObj:{optValue:Zn(c.options.size.value)*n.retina.pixelRatio,value:c.size.value},type:"size"};this._process(c,d,h,g);const v={bubbleObj:{optValue:s.opacity,value:c.bubble.opacity},particlesObj:{optValue:Zn(c.options.opacity.value),value:((u=c.opacity)==null?void 0:u.value)??1},type:"opacity"};this._process(c,d,h,v),!l.durationEnd&&d<=o?this._hoverBubbleColor(c,d):delete c.bubble.color}},this._hoverBubble=()=>{const n=this.container,i=n.interactivity.mouse.position,r=n.retina.bubbleModeDistance;if(!r||r<0||i===void 0)return;const s=n.particles.quadTree.queryCircle(i,r,o=>this.isEnabled(o));for(const o of s){o.bubble.inRange=!0;const a=o.getPosition(),l=wt(a,i),u=1-l/r;l<=r?u>=0&&n.interactivity.status===Hi&&(this._hoverBubbleSize(o,u),this._hoverBubbleOpacity(o,u),this._hoverBubbleColor(o,u)):this.reset(o),n.interactivity.status===Lc&&this.reset(o)}},this._hoverBubbleColor=(n,i,r)=>{const s=this.container.actualOptions,o=r??s.interactivity.modes.bubble;if(o){if(!n.bubble.finalColor){const a=o.color;if(!a)return;const l=Pn(a);n.bubble.finalColor=Qs(l)}if(n.bubble.finalColor)if(o.mix){n.bubble.color=void 0;const a=n.getFillColor();n.bubble.color=a?Mm(Yf(a,n.bubble.finalColor,1-i,i)):n.bubble.finalColor}else n.bubble.color=n.bubble.finalColor}},this._hoverBubbleOpacity=(n,i,r)=>{var f,d;const s=this.container,o=s.actualOptions,a=(r==null?void 0:r.opacity)??((f=o.interactivity.modes.bubble)==null?void 0:f.opacity);if(!a)return;const l=n.options.opacity.value,u=((d=n.opacity)==null?void 0:d.value)??1,c=Zh(u,a,Zn(l),i);c!==void 0&&(n.bubble.opacity=c)},this._hoverBubbleSize=(n,i,r)=>{const s=this.container,o=r!=null&&r.size?r.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(o===void 0)return;const a=Zn(n.options.size.value)*s.retina.pixelRatio,l=n.size.value,u=Zh(l,o,a,i);u!==void 0&&(n.bubble.radius=u)},this._process=(n,i,r,s)=>{const o=this.container,a=s.bubbleObj.optValue,l=o.actualOptions,u=l.interactivity.modes.bubble;if(!u||a===void 0)return;const c=u.duration,f=o.retina.bubbleModeDistance,d=s.particlesObj.optValue,h=s.bubbleObj.value,g=s.particlesObj.value||0,v=s.type;if(!(!f||f<0||a===d))if(o.bubble||(o.bubble={}),o.bubble.durationEnd)h&&(v==="size"&&delete n.bubble.radius,v==="opacity"&&delete n.bubble.opacity);else if(i<=f){if((h??g)!==a){const p=g-r*(g-a)/c;v==="size"&&(n.bubble.radius=p),v==="opacity"&&(n.bubble.opacity=p)}}else v==="size"&&delete n.bubble.radius,v==="opacity"&&delete n.bubble.opacity},this._singleSelectorHover=(n,i,r)=>{const s=this.container,o=document.querySelectorAll(i),a=s.actualOptions.interactivity.modes.bubble;!a||!o.length||o.forEach(l=>{const u=l,c=s.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth/2)*c,y:(u.offsetTop+u.offsetHeight/2)*c},d=u.offsetWidth/2*c,h=r.type==="circle"?new qe(f.x,f.y,d):new rn(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),g=s.particles.quadTree.query(h,v=>this.isEnabled(v));for(const v of g){if(!h.contains(v.getPosition()))continue;v.bubble.inRange=!0;const S=a.divs,p=km(S,u);(!v.bubble.div||v.bubble.div!==u)&&(this.clear(v,n,!0),v.bubble.div=u),this._hoverBubbleSize(v,1,p),this._hoverBubbleOpacity(v,1,p),this._hoverBubbleColor(v,1,p)}})},e.bubble||(e.bubble={}),this.handleClickMode=n=>{n==="bubble"&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,n,i){e.bubble.inRange&&!i||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){const e=this.container,n=e.actualOptions.interactivity.modes.bubble;n&&(e.retina.bubbleModeDistance=n.distance*e.retina.pixelRatio,n.size!==void 0&&(e.retina.bubbleModeSize=n.size*e.retina.pixelRatio))}async interact(e){const n=this.container.actualOptions,i=n.interactivity.events,r=i.onHover,s=i.onClick,o=r.enable,a=r.mode,l=s.enable,u=s.mode,c=i.onDiv;o&&we("bubble",a)?this._hoverBubble():l&&we("bubble",u)?this._clickBubble():Kf("bubble",c,(f,d)=>this._singleSelectorHover(e,f,d))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,{onClick:o,onDiv:a,onHover:l}=s,u=Qf("bubble",a);return u||l.enable&&r.position||o.enable&&r.clickPosition?we("bubble",l.mode)||we("bubble",o.mode)||u:!1}loadModeOptions(e,...n){e.bubble||(e.bubble=new P8);for(const i of n)e.bubble.load(i==null?void 0:i.bubble)}reset(e){e.bubble.inRange=!1}}async function M8(t,e=!0){await t.addInteractor("externalBubble",n=>new O8(n),e)}class R8{constructor(){this.opacity=.5}load(e){e&&e.opacity!==void 0&&(this.opacity=e.opacity)}}class z8{constructor(){this.distance=80,this.links=new R8,this.radius=60}get lineLinked(){return this.links}set lineLinked(e){this.links=e}get line_linked(){return this.links}set line_linked(e){this.links=e}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links??e.lineLinked??e.line_linked),e.radius!==void 0&&(this.radius=e.radius))}}function T8(t,e,n,i){const r=Math.floor(n.getRadius()/e.getRadius()),s=e.getFillColor(),o=n.getFillColor();if(!s||!o)return;const a=e.getPosition(),l=n.getPosition(),u=Yf(s,o,e.getRadius(),n.getRadius()),c=t.createLinearGradient(a.x,a.y,l.x,l.y);return c.addColorStop(0,Ks(s,i)),c.addColorStop(r>1?1:r,On(u,i)),c.addColorStop(1,Ks(o,i)),c}function I8(t,e,n,i,r){Ps(t,i,r),t.lineWidth=e,t.strokeStyle=n,t.stroke()}function D8(t,e,n,i){const r=t.actualOptions,s=r.interactivity.modes.connect;if(s)return T8(e,n,i,s.links.opacity)}function L8(t,e,n){t.canvas.draw(i=>{const r=D8(t,i,e,n);if(!r)return;const s=e.getPosition(),o=n.getPosition();I8(i,e.retina.linksWidth??0,r,s,o)})}class A8 extends yn{constructor(e){super(e)}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.connect;n&&(e.retina.connectModeDistance=n.distance*e.retina.pixelRatio,e.retina.connectModeRadius=n.radius*e.retina.pixelRatio)}async interact(){const e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&e.interactivity.status==="pointermove"){const i=e.interactivity.mouse.position;if(!e.retina.connectModeDistance||e.retina.connectModeDistance<0||!e.retina.connectModeRadius||e.retina.connectModeRadius<0||!i)return;const r=Math.abs(e.retina.connectModeRadius),s=e.particles.quadTree.queryCircle(i,r,a=>this.isEnabled(a));let o=0;for(const a of s){const l=a.getPosition();for(const u of s.slice(o+1)){const c=u.getPosition(),f=Math.abs(e.retina.connectModeDistance),d=Math.abs(l.x-c.x),h=Math.abs(l.y-c.y);dnew A8(n),e)}class N8{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){e&&(e.blink!==void 0&&(this.blink=e.blink),e.color!==void 0&&(this.color=Be.create(this.color,e.color)),e.consent!==void 0&&(this.consent=e.consent),e.opacity!==void 0&&(this.opacity=e.opacity))}}class $8{constructor(){this.distance=100,this.links=new N8}get lineLinked(){return this.links}set lineLinked(e){this.links=e}get line_linked(){return this.links}set line_linked(e){this.links=e}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links??e.lineLinked??e.line_linked))}}function j8(t,e,n,i,r,s){Ps(t,n,i),t.strokeStyle=On(r,s),t.lineWidth=e,t.stroke()}function B8(t,e,n,i,r){t.canvas.draw(s=>{const o=e.getPosition();j8(s,e.retina.linksWidth??0,o,r,n,i)})}class U8 extends yn{constructor(e){super(e)}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.grab;n&&(e.retina.grabModeDistance=n.distance*e.retina.pixelRatio)}async interact(){var a;const e=this.container,n=e.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||e.interactivity.status!==Hi)return;const r=e.interactivity.mouse.position;if(!r)return;const s=e.retina.grabModeDistance;if(!s||s<0)return;const o=e.particles.quadTree.queryCircle(r,s,l=>this.isEnabled(l));for(const l of o){const u=l.getPosition(),c=wt(u,r);if(c>s)continue;const f=i.modes.grab.links,d=f.opacity,h=d-c*d/s;if(h<=0)continue;const g=f.color??((a=l.options.links)==null?void 0:a.color);if(!e.particles.grabLineColor&&g){const S=i.modes.grab.links;e.particles.grabLineColor=zm(g,S.blink,S.consent)}const v=Nc(l,void 0,e.particles.grabLineColor);v&&B8(e,l,v,h,r)}}isEnabled(e){const n=this.container,i=n.interactivity.mouse,r=((e==null?void 0:e.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&we("grab",r.onHover.mode)}loadModeOptions(e,...n){e.grab||(e.grab=new $8);for(const i of n)e.grab.load(i==null?void 0:i.grab)}reset(){}}async function H8(t,e=!0){await t.addInteractor("externalGrab",n=>new U8(n),e)}class G8 extends yn{constructor(e){super(e),this.handleClickMode=n=>{if(n!=="pause")return;const i=this.container;i.getAnimationStatus()?i.pause():i.play()}}clear(){}init(){}async interact(){}isEnabled(){return!0}reset(){}}async function W8(t,e=!0){await t.addInteractor("externalPause",n=>new G8(n),e)}class V8{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=G(e)}load(e){if(!e)return;e.default!==void 0&&(this.default=e.default),e.groups!==void 0&&(this.groups=e.groups.map(i=>i)),this.groups.length||(this.default=!0);const n=e.quantity??e.particles_nb;n!==void 0&&(this.quantity=G(n))}}class q8 extends yn{constructor(e){super(e),this.handleClickMode=n=>{if(n!=="push")return;const i=this.container,r=i.actualOptions,s=r.interactivity.modes.push;if(!s)return;const o=N(s.quantity);if(o<=0)return;const a=ml([void 0,...s.groups]),l=a!==void 0?i.actualOptions.particles.groups[a]:void 0;i.particles.push(o,i.interactivity.mouse,l,a)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.push||(e.push=new V8);for(const i of n)e.push.load(i==null?void 0:i.push)}reset(){}}async function Q8(t,e=!0){await t.addInteractor("externalPush",n=>new q8(n),e)}class K8{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=G(e)}load(e){if(!e)return;const n=e.quantity??e.particles_nb;n!==void 0&&(this.quantity=G(n))}}class Y8 extends yn{constructor(e){super(e),this.handleClickMode=n=>{const i=this.container,r=i.actualOptions;if(!r.interactivity.modes.remove||n!=="remove")return;const s=N(r.interactivity.modes.remove.quantity);i.particles.removeQuantity(s)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.remove||(e.remove=new K8);for(const i of n)e.remove.load(i==null?void 0:i.remove)}reset(){}}async function X8(t,e=!0){await t.addInteractor("externalRemove",n=>new Y8(n),e)}class Gm{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}class Z8 extends Gm{constructor(){super(),this.selectors=[]}get ids(){return De(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=De(e,n=>`#${n}`)}load(e){super.load(e),e&&(e.ids!==void 0&&(this.ids=e.ids),e.selectors!==void 0&&(this.selectors=e.selectors))}}class J8 extends Gm{load(e){super.load(e),e&&(this.divs=De(e.divs,n=>{const i=new Z8;return i.load(n),i}))}}class e7 extends yn{constructor(e,n){super(n),this._clickRepulse=()=>{const i=this.container,r=i.actualOptions.interactivity.modes.repulse;if(!r)return;const s=i.repulse||{particles:[]};if(s.finish||(s.count||(s.count=0),s.count++,s.count===i.particles.count&&(s.finish=!0)),s.clicking){const o=i.retina.repulseModeDistance;if(!o||o<0)return;const a=Math.pow(o/6,3),l=i.interactivity.mouse.clickPosition;if(l===void 0)return;const u=new qe(l.x,l.y,a),c=i.particles.quadTree.query(u,f=>this.isEnabled(f));for(const f of c){const{dx:d,dy:h,distance:g}=et(l,f.position),v=g**2,S=r.speed,p=-a*S/v;if(v<=a){s.particles.push(f);const m=Ie.create(d,h);m.length=p,f.velocity.setTo(m)}}}else if(s.clicking===!1){for(const o of s.particles)o.velocity.setTo(o.initialVelocity);s.particles=[]}},this._hoverRepulse=()=>{const i=this.container,r=i.interactivity.mouse.position,s=i.retina.repulseModeDistance;!s||s<0||!r||this._processRepulse(r,s,new qe(r.x,r.y,s))},this._processRepulse=(i,r,s,o)=>{const a=this.container,l=a.particles.quadTree.query(s,c=>this.isEnabled(c)),u=a.actualOptions.interactivity.modes.repulse;if(u)for(const c of l){const{dx:f,dy:d,distance:h}=et(c.position,i),g=((o==null?void 0:o.speed)??u.speed)*u.factor,v=nn(wm(u.easing)(1-h/r)*g,0,u.maxSpeed),S=Ie.create(h===0?g:f/h*v,h===0?g:d/h*v);c.position.addTo(S)}},this._singleSelectorRepulse=(i,r)=>{const s=this.container,o=s.actualOptions.interactivity.modes.repulse;if(!o)return;const a=document.querySelectorAll(i);a.length&&a.forEach(l=>{const u=l,c=s.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth/2)*c,y:(u.offsetTop+u.offsetHeight/2)*c},d=u.offsetWidth/2*c,h=r.type==="circle"?new qe(f.x,f.y,d):new rn(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),g=o.divs,v=km(g,u);this._processRepulse(f,d,h,v)})},this._engine=e,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,s=r.interactivity.modes.repulse;if(!s||i!=="repulse")return;n.repulse||(n.repulse={particles:[]});const o=n.repulse;o.clicking=!0,o.count=0;for(const a of n.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);o.particles=[],o.finish=!1,setTimeout(()=>{n.destroyed||(o.clicking=!1)},s.duration*1e3)}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.repulse;n&&(e.retina.repulseModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=e.interactivity.status===Hi,r=n.interactivity.events,s=r.onHover,o=s.enable,a=s.mode,l=r.onClick,u=l.enable,c=l.mode,f=r.onDiv;i&&o&&we("repulse",a)?this._hoverRepulse():u&&we("repulse",c)?this._clickRepulse():Kf("repulse",f,(d,h)=>this._singleSelectorRepulse(d,h))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,o=s.onDiv,a=s.onHover,l=s.onClick,u=Qf("repulse",o);if(!(u||a.enable&&r.position||l.enable&&r.clickPosition))return!1;const c=a.mode,f=l.mode;return we("repulse",c)||we("repulse",f)||u}loadModeOptions(e,...n){e.repulse||(e.repulse=new J8);for(const i of n)e.repulse.load(i==null?void 0:i.repulse)}reset(){}}async function t7(t,e=!0){await t.addInteractor("externalRepulse",n=>new e7(t,n),e)}class n7{constructor(){this.factor=3,this.radius=200}load(e){e&&(e.factor!==void 0&&(this.factor=e.factor),e.radius!==void 0&&(this.radius=e.radius))}}class i7 extends yn{constructor(e){super(e)}clear(e,n,i){e.slow.inRange&&!i||(e.slow.factor=1)}init(){const e=this.container,n=e.actualOptions.interactivity.modes.slow;n&&(e.retina.slowModeRadius=n.radius*e.retina.pixelRatio)}async interact(){}isEnabled(e){const n=this.container,i=n.interactivity.mouse,r=((e==null?void 0:e.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&we("slow",r.onHover.mode)}loadModeOptions(e,...n){e.slow||(e.slow=new n7);for(const i of n)e.slow.load(i==null?void 0:i.slow)}reset(e){e.slow.inRange=!1;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.position,s=n.retina.slowModeRadius,o=i.interactivity.modes.slow;if(!o||!s||s<0||!r)return;const a=e.getPosition(),l=wt(r,a),u=l/s,c=o.factor,{slow:f}=e;l>s||(f.inRange=!0,f.factor=u/c)}}async function r7(t,e=!0){await t.addInteractor("externalSlow",n=>new i7(n),e)}const vu=[0,4,2,1],Jh=[8,8,4,2];class s7{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){const n=this.data.slice(this.pos,this.pos+e);return this.pos+=n.length,n.reduce((i,r)=>i+String.fromCharCode(r),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",n=0;do{n=this.data[this.pos++];for(let i=n;--i>=0;e+=String.fromCharCode(this.data[this.pos++]));}while(n!==0);return e}readSubBlocksBin(){let e=0,n=0;for(let r=0;(e=this.data[this.pos+r])!==0;r+=e+1)n+=e;const i=new Uint8Array(n);for(let r=0;(e=this.data[this.pos++])!==0;)for(let s=e;--s>=0;i[r++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;this.data[this.pos]!==0;this.pos+=this.data[this.pos]+1);this.pos++}}function Wm(t,e){const n=[];for(let i=0;i>>5,r.disposalMethod=(s&28)>>>2,r.userInputDelayFlag=(s&2)===2;const o=(s&1)===1;r.delayTime=t.nextTwoBytes()*10;const a=t.nextByte();o&&i(a),t.pos++;break}case 255:{t.pos++;const r={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(r);break}case 254:{e.comments.push([n(!1),t.readSubBlocks()]);break}case 1:{if(e.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,e.frames[n(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break}default:t.skipSubBlocks();break}}async function a7(t,e,n,i,r,s){const o=e.frames[i(!0)];o.left=t.nextTwoBytes(),o.top=t.nextTwoBytes(),o.width=t.nextTwoBytes(),o.height=t.nextTwoBytes();const a=t.nextByte(),l=(a&128)===128,u=(a&64)===64;o.sortFlag=(a&32)===32,o.reserved=(a&24)>>>3;const c=1<<(a&7)+1;l&&(o.localColorTable=Wm(t,c));const f=p=>{const{r:m,g:y,b:w}=(l?o.localColorTable:e.globalColorTable)[p];return{r:m,g:y,b:w,a:p===r(null)?n?~~((m+y+w)/3):0:255}},d=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(p){if(p instanceof DOMException&&p.name==="IndexSizeError")return null;throw p}})();if(d==null)throw new EvalError("GIF frame size is to large");const h=t.nextByte(),g=t.readSubBlocksBin(),v=1<{const y=p>>>3,w=p&7;return(g[y]+(g[y+1]<<8)+(g[y+2]<<16)&(1<>>w};if(u){for(let p=0,m=h+1,y=0,w=[[0]],k=0;k<4;k++){if(vu[k]=w.length?w.push(w[R].concat(w[R][0])):R!==v&&w.push(w[R].concat(w[p][0]));for(let B=0;B=o.height))break}s==null||s(t.pos/(t.data.length-1),i(!1)+1,d,{x:o.left,y:o.top},{width:e.width,height:e.height})}o.image=d,o.bitmap=await createImageBitmap(d)}else{for(let p=0,m=h+1,y=0,w=[[0]],k=-4;;){const _=p;if(p=S(y,m),y+=m,p===v){m=h+1,w.length=v+2;for(let C=0;C=w.length?w.push(w[_].concat(w[_][0])):_!==v&&w.push(w[_].concat(w[p][0]));for(let C=0;C=1<>>4,s.sortFlag=(a&8)===8;const u=1<<(a&7)+1,c=o.nextByte();s.pixelAspectRatio=o.nextByte(),s.pixelAspectRatio!==0&&(s.pixelAspectRatio=(s.pixelAspectRatio+15)/64),l&&(s.globalColorTable=Wm(o,u));const f=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(w){if(w instanceof DOMException&&w.name==="IndexSizeError")return null;throw w}})();if(f==null)throw new Error("GIF frame size is to large");const{r:d,g:h,b:g}=s.globalColorTable[c];f.data.set(l?[d,h,g,255]:[0,0,0,0]);for(let w=4;w(w&&(S=!0),v),y=w=>(w!=null&&(p=w),p);try{do S&&(s.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),v++,p=-1,S=!1);while(!await l7(o,s,n,m,y,e));s.frames.length--;for(const w of s.frames){if(w.userInputDelayFlag&&w.delayTime===0){s.totalTime=1/0;break}s.totalTime+=w.delayTime}return s}catch(w){throw w instanceof EvalError?new Error(`error while parsing frame ${v} "${w.message}"`):w}}const f7=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function d7(t,e,n){const{svgData:i}=t;if(!i)return"";const r=Ks(e,n);if(i.includes("fill"))return i.replace(f7,()=>r);const s=i.indexOf(">");return`${i.substring(0,s)} fill="${r}"${i.substring(s)}`}async function gl(t){return new Promise(e=>{t.loading=!0;const n=new Image;t.element=n,n.addEventListener("load",()=>{t.loading=!1,e()}),n.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,Wi().error(`${$t} loading image: ${t.source}`),e()}),n.src=t.source})}async function h7(t){if(t.type!=="gif"){await gl(t);return}t.loading=!0;try{t.gifData=await c7(t.source),t.gifLoopCount=u7(t.gifData)??0,t.gifLoopCount===0&&(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}async function p7(t){if(t.type!=="svg"){await gl(t);return}t.loading=!0;const e=await fetch(t.source);e.ok?t.svgData=await e.text():(Wi().error(`${$t} Image not found`),t.error=!0),t.loading=!1}function m7(t,e,n,i){var o;const r=d7(t,n,((o=i.opacity)==null?void 0:o.value)??1),s={color:n,gif:e.gif,data:{...t,svgData:r},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor??e.replace_color,source:e.src};return new Promise(a=>{const l=new Blob([r],{type:"image/svg+xml"}),u=URL||window.URL||window.webkitURL||window,c=u.createObjectURL(l),f=new Image;f.addEventListener("load",()=>{s.loaded=!0,s.element=f,a(s),u.revokeObjectURL(c)}),f.addEventListener("error",async()=>{u.revokeObjectURL(c);const d={...t,error:!1,loading:!0};await gl(d),s.loaded=!0,s.element=d.element,a(s)}),f.src=c})}class y7{constructor(e){this.loadImageShape=async n=>{if(!this._engine.loadImage)throw new Error(`${$t} image shape not initialized`);await this._engine.loadImage({gif:n.gif,name:n.name,replaceColor:n.replaceColor??n.replace_color??!1,src:n.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e,n,i,r,s){const o=n.image,a=o==null?void 0:o.element;if(o){if(e.globalAlpha=r,o.gif&&o.gifData){const l=new OffscreenCanvas(o.gifData.width,o.gifData.height),u=l.getContext("2d");if(!u)throw new Error("could not create offscreen canvas context");u.imageSmoothingQuality="low",u.imageSmoothingEnabled=!1,u.clearRect(0,0,l.width,l.height),n.gifLoopCount===void 0&&(n.gifLoopCount=o.gifLoopCount??0);let c=n.gifFrame??0;const f={x:-o.gifData.width*.5,y:-o.gifData.height*.5},d=o.gifData.frames[c];if(n.gifTime===void 0&&(n.gifTime=0),!d.bitmap)return;switch(e.scale(i/o.gifData.width,i/o.gifData.height),d.disposalMethod){case 4:case 5:case 6:case 7:case 0:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(l,f.x,f.y),u.clearRect(0,0,l.width,l.height);break;case 1:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(l,f.x,f.y);break;case 2:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(l,f.x,f.y),u.clearRect(0,0,l.width,l.height),o.gifData.globalColorTable.length===0?u.putImageData(o.gifData.frames[0].image,f.x+d.left,f.y+d.top):u.putImageData(o.gifData.backgroundImage,f.x,f.y);break;case 3:{const h=u.getImageData(0,0,l.width,l.height);u.drawImage(d.bitmap,d.left,d.top),e.drawImage(l,f.x,f.y),u.clearRect(0,0,l.width,l.height),u.putImageData(h,0,0)}break}if(n.gifTime+=s.value,n.gifTime>d.delayTime){if(n.gifTime-=d.delayTime,++c>=o.gifData.frames.length){if(--n.gifLoopCount<=0)return;c=0,u.clearRect(0,0,l.width,l.height)}n.gifFrame=c}e.scale(o.gifData.width/i,o.gifData.height/i)}else if(a){const l=o.ratio,u={x:-i,y:-i};e.drawImage(a,u.x,u.y,i*2,i*2/l)}e.globalAlpha=1}}getSidesCount(){return 12}async init(e){const n=e.actualOptions;if(!(!n.preload||!this._engine.loadImage))for(const i of n.preload)await this._engine.loadImage(i)}loadShape(e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);const n=e.shapeData;this._engine.images.find(r=>r.name===n.name||r.source===n.src)||this.loadImageShape(n).then(()=>{this.loadShape(e)})}particleInit(e,n){if(n.shape!=="image"&&n.shape!=="images")return;this._engine.images||(this._engine.images=[]);const i=this._engine.images,r=n.shapeData,s=n.getFillColor(),o=i.find(l=>l.name===r.name||l.source===r.src);if(!o)return;const a=r.replaceColor??r.replace_color??o.replaceColor;if(o.loading){setTimeout(()=>{this.particleInit(e,n)});return}(async()=>{let l;o.svgData&&s?l=await m7(o,r,s,n):l={color:s,data:o,element:o.element,gif:o.gif,gifData:o.gifData,gifLoopCount:o.gifLoopCount,loaded:!0,ratio:r.width&&r.height?r.width/r.height:o.ratio??1,replaceColor:a,source:r.src},l.ratio||(l.ratio=1);const u=r.fill??n.fill,c=r.close??n.close,f={image:l,fill:u,close:c};n.image=f.image,n.fill=f.fill,n.close=f.close})()}}class g7{constructor(){this.src="",this.gif=!1}load(e){e&&(e.gif!==void 0&&(this.gif=e.gif),e.height!==void 0&&(this.height=e.height),e.name!==void 0&&(this.name=e.name),e.replaceColor!==void 0&&(this.replaceColor=e.replaceColor),e.src!==void 0&&(this.src=e.src),e.width!==void 0&&(this.width=e.width))}}class v7{constructor(e){this.id="imagePreloader",this._engine=e}getPlugin(){return{}}loadOptions(e,n){if(!n||!n.preload)return;e.preload||(e.preload=[]);const i=e.preload;for(const r of n.preload){const s=i.find(o=>o.name===r.name||o.src===r.src);if(s)s.load(r);else{const o=new g7;o.load(r),i.push(o)}}}needsPlugin(){return!0}}function w7(t){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${$t} no image source provided`);if(t.images||(t.images=[]),!t.images.find(n=>n.name===e.name||n.source===e.src))try{const n={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-3),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(n),await(e.gif?h7:e.replaceColor?p7:gl)(n)}catch{throw new Error(`${$t} ${e.name??e.src} not found`)}})}async function x7(t,e=!0){w7(t);const n=new v7(t);await t.addPlugin(n,e),await t.addShape(["image","images"],new y7(t),e)}class S7 extends yi{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class k7 extends yi{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class C7{constructor(){this.count=0,this.delay=new S7,this.duration=new k7}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}class b7{constructor(e){this.container=e}init(e){const n=this.container,i=e.options,r=i.life;r&&(e.life={delay:n.retina.reduceFactor?N(r.delay.value)*(r.delay.sync?1:ae())/n.retina.reduceFactor*1e3:0,delayTime:0,duration:n.retina.reduceFactor?N(r.duration.value)*(r.duration.sync?1:ae())/n.retina.reduceFactor*1e3:0,time:0,count:r.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.life&&(e.spawning=e.life.delay>0))}isEnabled(e){return!e.destroyed}loadOptions(e,...n){e.life||(e.life=new C7);for(const i of n)e.life.load(i==null?void 0:i.life)}update(e,n){if(!this.isEnabled(e)||!e.life)return;const i=e.life;let r=!1;if(e.spawning)if(i.delayTime+=n.value,i.delayTime>=e.life.delay)r=!0,e.spawning=!1,i.delayTime=0,i.time=0;else return;if(i.duration===-1||e.spawning||(r?i.time=0:i.time+=n.value,i.time0&&e.life.count--,e.life.count===0){e.destroy();return}const s=this.container.canvas.size,o=G(0,s.width),a=G(0,s.width);e.position.x=ut(o),e.position.y=ut(a),e.spawning=!0,i.delayTime=0,i.time=0,e.reset();const l=e.options.life;l&&(i.delay=N(l.delay.value)*1e3,i.duration=N(l.duration.value)*1e3)}}async function _7(t,e=!0){await t.addParticleUpdater("life",n=>new b7(n),e)}class E7{draw(e,n,i){const r=n.shapeData;e.moveTo(-i/2,0),e.lineTo(i/2,0),e.lineCap=(r==null?void 0:r.cap)??"butt"}getSidesCount(){return 1}}async function P7(t,e=!0){await t.addShape("line",new E7,e)}class O7{init(){}isEnabled(e){return!qr()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){const n=e.container,i=n.actualOptions,r=i.interactivity.events.onHover.parallax;if(qr()||!r.enable)return;const s=r.force,o=n.interactivity.mouse.position;if(!o)return;const a=n.canvas.size,l={x:a.width/2,y:a.height/2},u=r.smooth,c=e.getRadius()/s,f={x:(o.x-l.x)*c,y:(o.y-l.y)*c},{offset:d}=e;d.x+=(f.x-d.x)/u,d.y+=(f.y-d.y)/u}}async function M7(t,e=!0){await t.addMover("parallax",()=>new O7,e)}class R7 extends Xf{constructor(e){super(e)}clear(){}init(){}async interact(e){const n=this.container,i=e.retina.attractDistance??n.retina.attractDistance,r=e.getPosition(),s=n.particles.quadTree.queryCircle(r,i);for(const o of s){if(e===o||!o.options.move.attract.enable||o.destroyed||o.spawning)continue;const a=o.getPosition(),{dx:l,dy:u}=et(r,a),c=e.options.move.attract.rotate,f=l/(c.x*1e3),d=u/(c.y*1e3),h=o.size.value/e.size.value,g=1/h;e.velocity.x-=f*h,e.velocity.y-=d*h,o.velocity.x+=f*g,o.velocity.y+=d*g}}isEnabled(e){return e.options.move.attract.enable}reset(){}}async function z7(t,e=!0){await t.addInteractor("particlesAttract",n=>new R7(n),e)}function ep(t,e,n,i,r,s){const o=nn(t.options.collisions.absorb.speed*r.factor/10,0,i);t.size.value+=o/2,n.size.value-=o,i<=s&&(n.size.value=0,n.destroy())}function T7(t,e,n,i){const r=t.getRadius(),s=e.getRadius();r===void 0&&s!==void 0?t.destroy():r!==void 0&&s===void 0?e.destroy():r!==void 0&&s!==void 0&&(r>=s?ep(t,r,e,s,n,i):ep(e,s,t,r,n,i))}const tp=t=>{t.collisionMaxSpeed===void 0&&(t.collisionMaxSpeed=N(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function Vm(t,e){Cm(Fc(t),Fc(e)),tp(t),tp(e)}function I7(t,e){!t.unbreakable&&!e.unbreakable&&Vm(t,e),t.getRadius()===void 0&&e.getRadius()!==void 0?t.destroy():t.getRadius()!==void 0&&e.getRadius()===void 0?e.destroy():t.getRadius()!==void 0&&e.getRadius()!==void 0&&(t.getRadius()>=e.getRadius()?e:t).destroy()}function D7(t,e,n,i){switch(t.options.collisions.mode){case"absorb":{T7(t,e,n,i);break}case"bounce":{Vm(t,e);break}case"destroy":{I7(t,e);break}}}class L7 extends Xf{constructor(e){super(e)}clear(){}init(){}async interact(e,n){if(e.destroyed||e.spawning)return;const i=this.container,r=e.getPosition(),s=e.getRadius(),o=i.particles.quadTree.queryCircle(r,s*2);for(const a of o){if(e===a||!a.options.collisions.enable||e.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const l=a.getPosition(),u=a.getRadius();if(Math.abs(Math.round(r.z)-Math.round(l.z))>s+u)continue;const c=wt(r,l),f=s+u;c>f||D7(e,a,n,i.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}}async function A7(t,e=!0){await t.addInteractor("particlesCollisions",n=>new L7(n),e)}class F7 extends qe{constructor(e,n,i,r){super(e,n,i),this.canvasSize=r,this.canvasSize={...r}}contains(e){const{width:n,height:i}=this.canvasSize,{x:r,y:s}=e;return super.contains(e)||super.contains({x:r-n,y:s})||super.contains({x:r-n,y:s-i})||super.contains({x:r,y:s-i})}intersects(e){if(super.intersects(e))return!0;const n=e,i=e,r={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(i.radius!==void 0){const s=new qe(r.x,r.y,i.radius*2);return super.intersects(s)}else if(n.size!==void 0){const s=new rn(r.x,r.y,n.size.width*2,n.size.height*2);return super.intersects(s)}return!1}}class N7{constructor(){this.blur=5,this.color=new Be,this.color.value="#000",this.enable=!1}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=Be.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable))}}class $7{constructor(){this.enable=!1,this.frequency=1}load(e){e&&(e.color!==void 0&&(this.color=Be.create(this.color,e.color)),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity))}}class j7{constructor(){this.blink=!1,this.color=new Be,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new N7,this.triangles=new $7,this.width=1,this.warp=!1}load(e){e&&(e.id!==void 0&&(this.id=e.id),e.blink!==void 0&&(this.blink=e.blink),this.color=Be.create(this.color,e.color),e.consent!==void 0&&(this.consent=e.consent),e.distance!==void 0&&(this.distance=e.distance),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),e.width!==void 0&&(this.width=e.width),e.warp!==void 0&&(this.warp=e.warp))}}function B7(t,e,n,i,r){const{dx:s,dy:o,distance:a}=et(t,e);if(!r||a<=n)return a;const l={x:Math.abs(s),y:Math.abs(o)},u={x:Math.min(l.x,i.width-l.x),y:Math.min(l.y,i.height-l.y)};return Math.sqrt(u.x**2+u.y**2)}class U7 extends Xf{constructor(e){super(e),this._setColor=n=>{if(!n.options.links)return;const i=this.linkContainer,r=n.options.links;let s=r.id===void 0?i.particles.linksColor:i.particles.linksColors.get(r.id);if(s)return;const o=r.color;s=zm(o,r.blink,r.consent),r.id===void 0?i.particles.linksColor=s:i.particles.linksColors.set(r.id,s)},this.linkContainer=e}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}async interact(e){if(!e.options.links)return;e.links=[];const n=e.getPosition(),i=this.container,r=i.canvas.size;if(n.x<0||n.y<0||n.x>r.width||n.y>r.height)return;const s=e.options.links,o=s.opacity,a=e.retina.linksDistance??0,l=s.warp,u=l?new F7(n.x,n.y,a,r):new qe(n.x,n.y,a),c=i.particles.quadTree.query(u);for(const f of c){const d=f.options.links;if(e===f||!(d!=null&&d.enable)||s.id!==d.id||f.spawning||f.destroyed||!f.links||e.links.some(S=>S.destination===f)||f.links.some(S=>S.destination===e))continue;const h=f.getPosition();if(h.x<0||h.y<0||h.x>r.width||h.y>r.height)continue;const g=B7(n,h,a,r,l&&d.warp);if(g>a)continue;const v=(1-g/a)*o;this._setColor(e),e.links.push({destination:f,opacity:v})}}isEnabled(e){var n;return!!((n=e.options.links)!=null&&n.enable)}loadParticlesOptions(e,...n){e.links||(e.links=new j7);for(const i of n)e.links.load((i==null?void 0:i.links)??(i==null?void 0:i.lineLinked)??(i==null?void 0:i.line_linked))}reset(){}}async function H7(t,e=!0){await t.addInteractor("particlesLinks",n=>new U7(n),e)}function G7(t){let e=!1;const{begin:n,end:i,maxDistance:r,context:s,canvasSize:o,width:a,backgroundMask:l,colorLine:u,opacity:c,links:f}=t;if(wt(n,i)<=r)Ps(s,n,i),e=!0;else if(f.warp){let h,g;const v={x:i.x-o.width,y:i.y},S=et(n,v);if(S.distance<=r){const p=n.y-S.dy/S.dx*n.x;h={x:0,y:p},g={x:o.width,y:p}}else{const p={x:i.x,y:i.y-o.height},m=et(n,p);if(m.distance<=r){const w=-(n.y-m.dy/m.dx*n.x)/(m.dy/m.dx);h={x:w,y:0},g={x:w,y:o.height}}else{const y={x:i.x-o.width,y:i.y-o.height},w=et(n,y);if(w.distance<=r){const k=n.y-w.dy/w.dx*n.x;h={x:-k/(w.dy/w.dx),y:k},g={x:h.x+o.width,y:h.y+o.height}}}}h&&g&&(Ps(s,n,h),Ps(s,i,g),e=!0)}if(!e)return;s.lineWidth=a,l.enable&&(s.globalCompositeOperation=l.composite),s.strokeStyle=On(u,c);const{shadow:d}=f;if(d.enable){const h=Jt(d.color);h&&(s.shadowBlur=d.blur,s.shadowColor=On(h))}s.stroke()}function W7(t){const{context:e,pos1:n,pos2:i,pos3:r,backgroundMask:s,colorTriangle:o,opacityTriangle:a}=t;_6(e,n,i,r),s.enable&&(e.globalCompositeOperation=s.composite),e.fillStyle=On(o,a),e.fill()}function V7(t){return t.sort((e,n)=>e-n),t.join("_")}function np(t,e){const n=V7(t.map(r=>r.id));let i=e.get(n);return i===void 0&&(i=ae(),e.set(n,i)),i}class q7{constructor(e){this.container=e,this._drawLinkLine=(n,i)=>{const r=n.options.links;if(!(r!=null&&r.enable))return;const s=this.container,o=s.actualOptions,a=i.destination,l=n.getPosition(),u=a.getPosition();let c=i.opacity;s.canvas.draw(f=>{var p;let d;const h=(p=n.options.twinkle)==null?void 0:p.lines;if(h!=null&&h.enable){const m=h.frequency,y=Jt(h.color);ae(){const s=n.options.links;if(!(s!=null&&s.enable))return;const o=s.triangles;if(!o.enable)return;const a=this.container,l=a.actualOptions,u=i.destination,c=r.destination,f=o.opacity??(i.opacity+r.opacity)/2;f<=0||a.canvas.draw(d=>{const h=n.getPosition(),g=u.getPosition(),v=c.getPosition(),S=n.retina.linksDistance??0;if(wt(h,g)>S||wt(v,g)>S||wt(v,h)>S)return;let p=Jt(o.color);if(!p){const m=s.id!==void 0?a.particles.linksColors.get(s.id):a.particles.linksColor;p=Nc(n,u,m)}p&&W7({context:d,pos1:h,pos2:g,pos3:v,backgroundMask:l.backgroundMask,colorTriangle:p,opacityTriangle:f})})},this._drawTriangles=(n,i,r,s)=>{var l,u,c;const o=r.destination;if(!((l=n.links)!=null&&l.triangles.enable&&((u=o.options.links)!=null&&u.triangles.enable)))return;const a=(c=o.links)==null?void 0:c.filter(f=>{const d=this._getLinkFrequency(o,f.destination);return o.options.links&&d<=o.options.links.frequency&&s.findIndex(h=>h.destination===f.destination)>=0});if(a!=null&&a.length)for(const f of a){const d=f.destination;this._getTriangleFrequency(i,o,d)>n.links.triangles.frequency||this._drawLinkTriangle(i,r,f)}},this._getLinkFrequency=(n,i)=>np([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,r)=>np([n,i,r],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(e,n){const{links:i,options:r}=n;if(!i||i.length<=0)return;const s=i.filter(o=>r.links&&this._getLinkFrequency(n,o.destination)<=r.links.frequency);for(const o of s)this._drawTriangles(r,n,o,s),o.opacity>0&&(n.retina.linksWidth??0)>0&&this._drawLinkLine(n,o)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map}particleCreated(e){if(e.links=[],!e.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=e,{distance:r,width:s}=e.options.links;i.linksDistance=r*n,i.linksWidth=s*n}particleDestroyed(e){e.links=[]}}class Q7{constructor(){this.id="links"}getPlugin(e){return new q7(e)}loadOptions(){}needsPlugin(){return!0}}async function K7(t,e=!0){const n=new Q7;await t.addPlugin(n,e)}async function Y7(t,e=!0){await H7(t,e),await K7(t,e)}class qm{draw(e,n,i){const r=this.getCenter(n,i),s=this.getSidesData(n,i),o=s.count.numerator*s.count.denominator,a=s.count.numerator/s.count.denominator,l=180*(a-2)/a,u=Math.PI-Math.PI*l/180;if(e){e.beginPath(),e.translate(r.x,r.y),e.moveTo(0,0);for(let c=0;co&&(n.value-=o);break;case"decreasing":default:n.value-=s,n.value<0&&(n.value+=o);break}n.velocity&&a!==1&&(n.velocity*=a)}}class sx{constructor(e){this.container=e}init(e){const n=e.options.rotate;if(!n)return;e.rotate={enable:n.animation.enable,value:N(n.value)*Math.PI/180},e.pathRotation=n.path;let i=n.direction;switch(i==="random"&&(i=Math.floor(ae()*2)>0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}const r=n.animation;r.enable&&(e.rotate.decay=1-N(r.decay),e.rotate.velocity=N(r.speed)/360*this.container.retina.reduceFactor,r.sync||(e.rotate.velocity*=ae())),e.rotation=e.rotate.value}isEnabled(e){const n=e.options.rotate;return n?!e.destroyed&&!e.spawning&&n.animation.enable&&!n.path:!1}loadOptions(e,...n){e.rotate||(e.rotate=new ix);for(const i of n)e.rotate.load(i==null?void 0:i.rotate)}update(e,n){var i;this.isEnabled(e)&&(rx(e,n),e.rotation=((i=e.rotate)==null?void 0:i.value)??0)}}async function ox(t,e=!0){await t.addParticleUpdater("rotate",n=>new sx(n),e)}const ax=Math.sqrt(2);class lx{draw(e,n,i){const r=i/ax,s=r*2;e.rect(-r,-r,s,s)}getSidesCount(){return 4}}async function ux(t,e=!0){await t.addShape(["edge","square"],new lx,e)}class cx{draw(e,n,i){const r=n.sides,s=n.starInset??2;e.moveTo(0,0-i);for(let o=0;o0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const s=ut(n.offset),o=(e.velocity??0)*t.factor+s*3.6,a=e.decay??1;!r||e.status==="increasing"?(e.value+=o,e.value>i&&(e.loops||(e.loops=0),e.loops++,r&&(e.status="decreasing",e.value-=e.value%i))):(e.value-=o,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)),e.velocity&&a!==1&&(e.velocity*=a),e.value>i&&(e.value%=i)}function dx(t,e){if(!t.strokeColor||!t.strokeAnimation)return;const{h:n,s:i,l:r}=t.strokeColor,{h:s,s:o,l:a}=t.strokeAnimation;n&&wu(e,n,s,360,!1),i&&wu(e,i,o,100,!0),r&&wu(e,r,a,100,!0)}class hx{constructor(e){this.container=e}init(e){var o;const n=this.container,i=e.options,r=Pn(i.stroke,e.id,i.reduceDuplicates);e.strokeWidth=N(r.width)*n.retina.pixelRatio,e.strokeOpacity=N(r.opacity??1),e.strokeAnimation=(o=r.color)==null?void 0:o.animation;const s=Qs(r.color)??e.getFillColor();s&&(e.strokeColor=Tm(s,e.strokeAnimation,n.retina.reduceFactor))}isEnabled(e){const n=e.strokeAnimation,{strokeColor:i}=e;return!e.destroyed&&!e.spawning&&!!n&&((i==null?void 0:i.h.value)!==void 0&&i.h.enable||(i==null?void 0:i.s.value)!==void 0&&i.s.enable||(i==null?void 0:i.l.value)!==void 0&&i.l.enable)}update(e,n){this.isEnabled(e)&&dx(e,n)}}async function px(t,e=!0){await t.addParticleUpdater("strokeColor",n=>new hx(n),e)}const aa=["text","character","char"];class mx{draw(e,n,i,r){const s=n.shapeData;if(s===void 0)return;const o=s.value;if(o===void 0)return;n.text===void 0&&(n.text=Pn(o,n.randomIndexData));const a=n.text,l=s.style??"",u=s.weight??"400",c=Math.round(i)*2,f=s.font??"Verdana",d=n.fill,h=a.length*i/2;e.font=`${l} ${u} ${c}px "${f}"`;const g={x:-h,y:i/2};e.globalAlpha=r,d?e.fillText(a,g.x,g.y):e.strokeText(a,g.x,g.y),e.globalAlpha=1}getSidesCount(){return 12}async init(e){const n=e.actualOptions;if(aa.find(i=>we(i,n.particles.shape.type))){const i=aa.map(s=>n.particles.shape.options[s]).find(s=>!!s),r=[];De(i,s=>{r.push(y6(s.font,s.weight))}),await Promise.all(r)}}particleInit(e,n){if(!n.shape||!aa.includes(n.shape))return;const i=n.shapeData;if(i===void 0)return;const r=i.value;r!==void 0&&(n.text=Pn(r,n.randomIndexData))}}async function yx(t,e=!0){await t.addShape(aa,new mx,e)}async function gx(t,e=!0){Uw(t),await M7(t,!1),await k8(t,!1),await _8(t,!1),await M8(t,!1),await F8(t,!1),await H8(t,!1),await W8(t,!1),await Q8(t,!1),await X8(t,!1),await t7(t,!1),await r7(t,!1),await z7(t,!1),await A7(t,!1),await Y7(t,!1),await w8(),await x7(t,!1),await P7(t,!1),await tx(t,!1),await ux(t,!1),await fx(t,!1),await yx(t,!1),await _7(t,!1),await ox(t,!1),await px(t,!1),await v8(t,e)}const ip=(t,e)=>{Ia(t,{duration:1200,id:"particles-bg",icon:z.jsx(am,{}),...e})},$c=({variant:t,notify:e=!0})=>{const n=T.useCallback(async()=>{const i=await fetch(`./assets/ts-particles/${t}`).then(s=>s.json()),r=void 0;return e&&ip(`Background "${t}" installed!`),{...i,interactivity:r}},[e,t]);return Qv({queryKey:["BG_VARIANT",t],enabled:!!t,queryFn:n,retry:!1,refetchOnMount:!1,throwOnError:i=>(e&&ip(`Error installing background "${t}"!
+(${i.message})`),!1)})},vx=()=>T.useMemo(()=>Wf.allowedOptions.map(t=>({value:t,label:String(t)})),[]),Px=Oe.memo(()=>{const{variant:t}=pl(),{data:e}=$c({variant:t}),n=T.useCallback(async i=>{console.log(i),await gx(i)},[]);return z.jsx(Bm,{id:"tsparticles",init:n,options:e})}),wx=t=>({random:(n,i)=>{const r=i.filter(s=>s!==n);return F4(r)},next:(n,i)=>{const r=(()=>{const s=i.findIndex(a=>a===n);return s===i.length-1?0:s+1})();return i[r]}})[t],xx=({strategy:t=Wf.switchButtonStrategy})=>{const{updateLSValue:e}=gm(ym),n=vx(),{variant:i,setVariant:r}=pl(),{isLoading:s}=$c({variant:i}),[o,a]=T.useState(),{isLoading:l,data:u}=$c({variant:o,notify:!1}),c=T.useMemo(()=>wx(t),[t]),f=T.useCallback(()=>{const d=c(i,n.map(h=>h.value));d&&(a(d),e(d))},[c,n,e,i]);return T.useEffect(()=>{u&&!l&&o&&(r(o),a(void 0))},[l,o,u,r]),z.jsxs(Gf,{onClick:f,isLoading:s||l,children:[s||l?`Loading ${o||i}...`:`Theme: ${i}`," ",s||l?z.jsx(C4,{}):z.jsx(am,{})]})},Sx=Oe.lazy(()=>C2(()=>import("./index-91ec5f9d.js"),[])),kx=new Mv({defaultOptions:{queries:{refetchOnMount:!1}}});function Cx(){return z.jsx(Dv,{client:kx,children:z.jsxs(H5,{children:[z.jsx(Z5,{additionalButtons:[z.jsx(xx,{})]}),z.jsx(hv,{position:"top-center",reverseOrder:!0}),z.jsx(Sx,{})]})})}xu.createRoot(document.getElementById("root")).render(z.jsx(Cx,{}));export{Px as T,xx as a,H5 as b};
diff --git a/assets/iosevka-etoile-latin-400-normal-27c295bc.woff2 b/assets/iosevka-etoile-latin-400-normal-27c295bc.woff2
new file mode 100644
index 0000000..4700f45
Binary files /dev/null and b/assets/iosevka-etoile-latin-400-normal-27c295bc.woff2 differ
diff --git a/assets/iosevka-etoile-latin-400-normal-58900047.woff b/assets/iosevka-etoile-latin-400-normal-58900047.woff
new file mode 100644
index 0000000..4a4d488
Binary files /dev/null and b/assets/iosevka-etoile-latin-400-normal-58900047.woff differ
diff --git a/index.html b/index.html
index 2ca0bed..6079738 100644
--- a/index.html
+++ b/index.html
@@ -5,8 +5,8 @@
~/gg
-
-
+
+