=0;n--)T(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0,e.context=null}function R(e){throw e}let G=!1;function ne(){G=!0}function ce(e,n){if(G&&f.context){const t=f.context;L(K());const s=b(()=>e(n||{}));return L(t),s}return b(()=>e(n||{}))}function se(e,n,t){let s=t.length,i=n.length,o=s,r=0,l=0,c=n[i-1].nextSibling,a=null;for(;rp-l){const W=n[r];for(;l {i=o,n===document?e():le(n,e(),n.firstChild?null:void 0,t)},s.owner),()=>{i(),n.textContent=""}}function ae(e,n,t){let s;const i=()=>{const r=document.createElement("template");return r.innerHTML=e,t?r.content.firstChild.firstChild:r.content.firstChild},o=n?()=>(s||(s=i())).cloneNode(!0):()=>b(()=>document.importNode(s||(s=i()),!0));return o.cloneNode=o,o}function he(e,n=window.document){const t=n[_]||(n[_]=new Set);for(let s=0,i=e.length;sv(e,n(),i,t),s)}function oe(e,n,t={}){f.completed=globalThis._$HY.completed,f.events=globalThis._$HY.events,f.load=globalThis._$HY.load,f.gather=i=>P(n,i),f.registry=new Map,f.context={id:t.renderId||"",count:0},P(n,t.renderId);const s=ie(e,n,[...n.childNodes],t);return f.context=null,s}function pe(e){let n,t;if(!f.context||!(n=f.registry.get(t=re()))){if(f.context&&console.warn("Unable to find DOM nodes for hydration key:",t),!e)throw new Error("Unrecoverable Hydration Mismatch. No template for key: "+t);return e()}return f.completed&&f.completed.add(n),f.registry.delete(t),n}function ge(){f.events&&!f.events.queued&&(queueMicrotask(()=>{const{completed:e,events:n}=f;for(n.queued=!1;n.length;){const[t,s]=n[0];if(!e.has(t))return;V(s),n.shift()}}),f.events.queued=!0)}function V(e){const n=`$$${e.type}`;let t=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==t&&Object.defineProperty(e,"target",{configurable:!0,value:t}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),f.registry&&!f.done&&(f.done=_$HY.done=!0);t;){const s=t[n];if(s&&!t.disabled){const i=t[`${n}Data`];if(i!==void 0?s.call(t,i,e):s.call(t,e),e.cancelBubble)return}t=t._$host||t.parentNode||t.host}}function v(e,n,t,s,i){if(f.context){!t&&(t=[...e.childNodes]);let l=[];for(let c=0;c{let l=n();for(;typeof l=="function";)l=l();t=v(e,l,t,s)}),()=>t;if(Array.isArray(n)){const l=[],c=t&&Array.isArray(t);if(U(l,n,t,i))return M(()=>t=v(e,l,t,s,!0)),()=>t;if(f.context){if(!l.length)return t;for(let a=0;a=0;r--){const l=n[r];if(i!==l){const c=l.parentNode===e;!o&&!r?c?e.replaceChild(i,l):e.insertBefore(i,t):c&&l.remove()}else o=!0}}else e.insertBefore(i,t);return[i]}function P(e,n){const t=e.querySelectorAll("*[data-hk]");for(let s=0;s(ne(),oe(...e));export{M as a,ie as b,fe as c,he as d,ce as e,pe as g,ye as h,de as i,ue as o,ge as r,f as s,ae as t};
diff --git a/docs/_astro/web.f19d8d5f.js b/docs/_astro/web.f19d8d5f.js
new file mode 100644
index 00000000..0ad4dd4d
--- /dev/null
+++ b/docs/_astro/web.f19d8d5f.js
@@ -0,0 +1 @@
+const r={context:void 0,registry:void 0};function B(e){r.context=e}function Q(){return{...r.context,id:`${r.context.id}${r.context.count++}-`,count:0}}const X=(e,n)=>e===n,U={equals:X};let Y=R;const w=1,A=2,j={owned:null,cleanups:null,context:null,owner:null};var g=null;let H=null,J=null,a=null,d=null,y=null,T=0;function Z(e,n){const t=a,s=g,i=e.length===0,l=n===void 0?s:n,f=i?j:{owned:null,cleanups:null,context:l?l.context:null,owner:l},o=i?e:()=>e(()=>x(()=>m(f)));g=f,a=null;try{return E(o,!0)}finally{a=t,g=s}}function ce(e,n){n=n?Object.assign({},U,n):U;const t={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},s=i=>(typeof i=="function"&&(i=i(t.value)),I(t,i));return[z.bind(t),s]}function _(e,n,t){const s=F(e,n,!1,w);$(s)}function k(e,n,t){Y=ne;const s=F(e,n,!1,w);(!t||!t.render)&&(s.user=!0),y?y.push(s):$(s)}function x(e){if(a===null)return e();const n=a;a=null;try{return e()}finally{a=n}}function ae(e){k(()=>x(e))}function z(){if(this.sources&&this.state)if(this.state===w)$(this);else{const e=d;d=null,E(()=>C(this),!1),d=e}if(a){const e=this.observers?this.observers.length:0;a.sources?(a.sources.push(this),a.sourceSlots.push(e)):(a.sources=[this],a.sourceSlots=[e]),this.observers?(this.observers.push(a),this.observerSlots.push(a.sources.length-1)):(this.observers=[a],this.observerSlots=[a.sources.length-1])}return this.value}function I(e,n,t){let s=e.value;return(!e.comparator||!e.comparator(s,n))&&(e.value=n,e.observers&&e.observers.length&&E(()=>{for(let i=0;i1e6)throw d=[],new Error},!1)),n}function $(e){if(!e.fn)return;m(e);const n=T;ee(e,e.value,n)}function ee(e,n,t){let s;const i=g,l=a;a=g=e;try{s=e.fn(n)}catch(f){return e.pure&&(e.state=w,e.owned&&e.owned.forEach(m),e.owned=null),e.updatedAt=t+1,G(f)}finally{a=l,g=i}(!e.updatedAt||e.updatedAt<=t)&&(e.updatedAt!=null&&"observers"in e?I(e,s):e.value=s,e.updatedAt=t)}function F(e,n,t,s=w,i){const l={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:g,context:g?g.context:null,pure:t};return g===null||g!==j&&(g.owned?g.owned.push(l):g.owned=[l]),l}function S(e){if(e.state===0)return;if(e.state===A)return C(e);if(e.suspense&&x(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;t--)if(e=n[t],e.state===w)$(e);else if(e.state===A){const s=d;d=null,E(()=>C(e,n[0]),!1),d=s}}function E(e,n){if(d)return e();let t=!1;n||(d=[]),y?t=!0:y=[],T++;try{const s=e();return te(t),s}catch(s){t||(y=null),d=null,G(s)}}function te(e){if(d&&(R(d),d=null),e)return;const n=y;y=null,n.length&&E(()=>Y(n),!1)}function R(e){for(let n=0;n=0;n--)m(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0}function se(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function G(e,n=g){throw se(e)}let V=!1;function ie(){V=!0}function he(e,n){if(V&&r.context){const t=r.context;B(Q());const s=x(()=>e(n||{}));return B(t),s}return x(()=>e(n||{}))}function le(e,n,t){let s=t.length,i=n.length,l=s,f=0,o=0,u=n[i-1].nextSibling,h=null;for(;fc-o){const K=n[f];for(;o{i=l,n===document?e():fe(n,e(),n.firstChild?null:void 0,t)},s.owner),()=>{i(),n.textContent=""}}function de(e,n,t){let s;const i=()=>{const f=document.createElement("template");return f.innerHTML=e,t?f.content.firstChild.firstChild:f.content.firstChild},l=n?()=>x(()=>document.importNode(s||(s=i()),!0)):()=>(s||(s=i())).cloneNode(!0);return l.cloneNode=l,l}function ge(e,n=window.document){const t=n[D]||(n[D]=new Set);for(let s=0,i=e.length;sv(e,n(),i,t),s)}function re(e,n,t={}){r.completed=globalThis._$HY.completed,r.events=globalThis._$HY.events,r.load=i=>globalThis._$HY.r[i],r.has=i=>i in globalThis._$HY.r,r.gather=i=>O(n,i),r.registry=new Map,r.context={id:t.renderId||"",count:0},O(n,t.renderId);const s=oe(e,n,[...n.childNodes],t);return r.context=null,s}function ye(e){let n,t;return!r.context||!(n=r.registry.get(t=ue()))?e():(r.completed&&r.completed.add(n),r.registry.delete(t),n)}function we(){r.events&&!r.events.queued&&(queueMicrotask(()=>{const{completed:e,events:n}=r;for(n.queued=!1;n.length;){const[t,s]=n[0];if(!e.has(t))return;W(s),n.shift()}}),r.events.queued=!0)}function W(e){const n=`$$${e.type}`;let t=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==t&&Object.defineProperty(e,"target",{configurable:!0,value:t}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),r.registry&&!r.done&&(r.done=_$HY.done=!0);t;){const s=t[n];if(s&&!t.disabled){const i=t[`${n}Data`];if(i!==void 0?s.call(t,i,e):s.call(t,e),e.cancelBubble)return}t=t._$host||t.parentNode||t.host}}function v(e,n,t,s,i){const l=!!r.context&&e.isConnected;if(l){!t&&(t=[...e.childNodes]);let u=[];for(let h=0;h{let u=n();for(;typeof u=="function";)u=u();t=v(e,u,t,s)}),()=>t;if(Array.isArray(n)){const u=[],h=t&&Array.isArray(t);if(L(u,n,t,i))return _(()=>t=v(e,u,t,s,!0)),()=>t;if(l){if(!u.length)return t;if(s===void 0)return[...e.childNodes];let c=u[0],p=[c];for(;(c=c.nextSibling)!==s;)p.push(c);return t=p}if(u.length===0){if(t=b(e,t,s),o)return t}else h?t.length===0?M(e,u,s):le(e,t,u):(t&&b(e),M(e,u));t=u}else if(n.nodeType){if(l&&n.parentNode)return t=o?[n]:n;if(Array.isArray(t)){if(o)return t=b(e,t,s,n);b(e,t,null,n)}else t==null||t===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);t=n}}return t}function L(e,n,t,s){let i=!1;for(let l=0,f=n.length;l=0;f--){const o=n[f];if(i!==o){const u=o.parentNode===e;!l&&!f?u?e.replaceChild(i,o):e.insertBefore(i,t):u&&o.remove()}else l=!0}}else e.insertBefore(i,t);return[i]}function O(e,n){const t=e.querySelectorAll("*[data-hk]");for(let s=0;s(ie(),re(...e));export{_ as a,oe as b,ce as c,ge as d,he as e,r as f,ye as g,be as h,ae as o,we as r,pe as s,de as t};
diff --git a/docs/docs/index.html b/docs/docs/index.html
index 04f4a11b..3ec5f0f0 100644
--- a/docs/docs/index.html
+++ b/docs/docs/index.html
@@ -2,14 +2,14 @@
-
-
Page Redirection - melonJS
- If you are not redirected automatically, click this link
+ If you are not redirected automatically, click this link
.
\ No newline at end of file
diff --git a/docs/game-design-creative-resources/index.html b/docs/game-design-creative-resources/index.html
index a9a3f2aa..76c3c5cf 100644
--- a/docs/game-design-creative-resources/index.html
+++ b/docs/game-design-creative-resources/index.html
@@ -52,7 +52,7 @@
Home
- API
+ API
Gallery
@@ -75,7 +75,7 @@
- API
+ API
Gallery
@@ -178,7 +178,7 @@ Fresh, modern & lightweight
-
+
Explore the API
@@ -383,7 +383,7 @@
Developer Spotlight