From 509c0202efbd961d94c6bb0e4b16af4b52752d05 Mon Sep 17 00:00:00 2001 From: Valexr Date: Tue, 26 Nov 2024 07:24:39 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Valexr/T?= =?UTF-8?q?agy@63157d9115b13610d273c35476c1f9b199611f88=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/app.js b/build/app.js index 8772406..633d29f 100644 --- a/build/app.js +++ b/build/app.js @@ -5,10 +5,10 @@ A derived value cannot reference itself recursively`);throw e.name="Svelte error Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops`);throw e.name="Svelte error",e}else throw new Error("effect_update_depth_exceeded")}function xn(){if(!1){let e=new Error(`hydration_failed Failed to hydrate the application`);throw e.name="Svelte error",e}else throw new Error("hydration_failed")}function bn(e){if(!1){let t=new Error(`props_invalid_value Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value`);throw t.name="Svelte error",t}else throw new Error("props_invalid_value")}function yn(e){if(!1){let t=new Error(`rune_outside_svelte -The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files`);throw t.name="Svelte error",t}else throw new Error("rune_outside_svelte")}function gn(){if(!1){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.");throw e.name="Svelte error",e}else throw new Error("state_descriptors_fixed")}function wn(){if(!1){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object");throw e.name="Svelte error",e}else throw new Error("state_prototype_fixed")}function En(){if(!1){let e=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state");throw e.name="Svelte error",e}else throw new Error("state_unsafe_local_read")}function $n(){if(!1){let e=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`");throw e.name="Svelte error",e}else throw new Error("state_unsafe_mutation")}var Pe=!1;var je=new Set;function hr(e){je=e}function I(e){return{f:0,v:e,reactions:null,equals:zt,version:0}}function Se(e,t=!1){let r=I(e);return t||(r.equals=ft),Pe&&b!==null&&b.l!==null&&(b.l.s??=[]).push(r),r}function C(e,t){return g!==null&&Ge()&&g.f&18&&(Fe===null||!Fe.includes(e))&&$n(),kt(e,t)}function kt(e,t){if(!e.equals(t)&&(e.v=t,e.version=jt(),Tn(e,1024),Ge()&&v!==null&&v.f&512&&!(v.f&32)&&(P!==null&&P.includes(e)?(W(v,1024),ut(v)):Ae===null?An([e]):Ae.push(e)),!1)){let n=Array.from(je);var r=ke;lt(!0);try{for(let o of n)o.f&512&&W(o,2048),qe(o)&&We(o)}finally{lt(r)}je.clear()}return t}function Tn(e,t){var r=e.reactions;if(r!==null)for(var n=Ge(),o=r.length,i=0;ir.line)return o.component}}return null}var To=Symbol("ADD_OWNER");function br(e,t){if(t.owners!==null)for(;e;){if(e.owners===null){t.owners=null;break}for(let r of e.owners)t.owners.add(r);e=e.parent}}function Cn(e,t){return e.owners===null?!0:e.owners.has(t)||e.parent!==null&&Cn(e.parent,t)}function Dn(e){return e?.owners?.values().next().value??Dn(e.parent)}var Ao=!1;function On(e){if(Ao)return;let t=In();if(t&&!Cn(e,t)){let r=Dn(e);r[q]!==t[q]?xr(t[q],r[q]):xr()}}function Be(e,t=null,r){if(typeof e!="object"||e===null||me in e)return e;let n=Me(e);if(n!==dr&&n!==_n)return e;var o=new Map,i=de(e),s=I(0);i&&o.set("length",I(e.length));var f;if(!1)if(f={parent:t,owners:null},r){let c=r.v?.[ze]?.owners;f.owners=c?new Set(c):null}else f.owners=t===null?b!==null?new Set([b.function]):null:new Set;return new Proxy(e,{defineProperty(c,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&gn();var _=o.get(a);return _===void 0?(_=I(u.value),o.set(a,_)):C(_,Be(u.value,f)),!0},deleteProperty(c,a){var u=o.get(a);if(u===void 0)a in c&&o.set(a,I(Y));else{if(i&&typeof a=="string"){var _=o.get("length"),l=Number(a);Number.isInteger(l)&&l<_.v&&C(_,l)}C(u,Y),Ln(s)}return!0},get(c,a,u){if(!1)return f;if(a===me)return e;var _=o.get(a),l=a in c;if(_===void 0&&(!l||ie(c,a)?.writable)&&(_=I(Be(l?c[a]:Y,f)),o.set(a,_)),_!==void 0){var m=$(_);if(!1){var d=m?.[ze];d&&d?.parent!==f&&br(f,d)}return m===Y?void 0:m}return Reflect.get(c,a,u)},getOwnPropertyDescriptor(c,a){var u=Reflect.getOwnPropertyDescriptor(c,a);if(u&&"value"in u){var _=o.get(a);_&&(u.value=$(_))}else if(u===void 0){var l=o.get(a),m=l?.v;if(l!==void 0&&m!==Y)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return u},has(c,a){if(a===me)return!0;var u=o.get(a),_=u!==void 0&&u.v!==Y||Reflect.has(c,a);if(u!==void 0||v!==null&&(!_||ie(c,a)?.writable)){u===void 0&&(u=I(_?Be(c[a],f):Y),o.set(a,u));var l=$(u);if(l===Y)return!1}return _},set(c,a,u,_){var l=o.get(a),m=a in c;if(i&&a==="length")for(var d=u;d=R.v&&C(R,S+1)}Ln(s)}return!0},ownKeys(c){$(s);var a=Reflect.ownKeys(c).filter(l=>{var m=o.get(l);return m===void 0||m.v!==Y});for(var[u,_]of o)_.v!==Y&&!(u in c)&&a.push(u);return a},setPrototypeOf(){wn()}})}function Ln(e,t=1){C(e,e.v+t)}function Qe(e){return e!==null&&typeof e=="object"&&me in e?e[me]:e}function Mn(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:n,includes:o}=e;e.indexOf=function(i,s){let f=r.call(this,i,s);return f===-1&&r.call(Qe(this),Qe(i),s)!==-1&&Gt("array.indexOf(...)"),f},e.lastIndexOf=function(i,s){let f=n.call(this,i,s??this.length-1);return f===-1&&n.call(Qe(this),Qe(i),s??this.length-1)!==-1&&Gt("array.lastIndexOf(...)"),f},e.includes=function(i,s){let f=o.call(this,i,s);return f||o.call(Qe(this),Qe(i),s)&&Gt("array.includes(...)"),f},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=n,e.includes=o}}var yr,Kt,Pn,Fn;function Xt(){if(yr===void 0){yr=window,Kt=document;var e=Element.prototype,t=Node.prototype;Pn=ie(t,"firstChild").get,Fn=ie(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0,!1}}function te(e=""){return document.createTextNode(e)}function N(e){return Pn.call(e)}function L(e){return Fn.call(e)}function K(e,t){if(!h)return N(e);var r=N(x);if(r===null)r=x.appendChild(te());else if(t&&r.nodeType!==3){var n=te();return r?.before(n),A(n),n}return A(r),r}function et(e,t){if(!h){var r=N(e);return r instanceof Comment&&r.data===""?L(r):r}if(t&&x?.nodeType!==3){var n=te();return x?.before(n),A(n),n}return x}function we(e,t=1,r=!1){let n=h?x:e;for(;t--;)n=L(n);if(!h)return n;var o=n.nodeType;if(r&&o!==3){var i=te();return n?.before(i),A(i),i}return A(n),n}function Rt(e){e.textContent=""}function Re(e){var t=1026;v===null?t|=128:v.f|=524288;let r={children:null,ctx:b,deps:null,equals:zt,f:t,fn:e,reactions:null,v:null,version:0,parent:v};if(g!==null&&g.f&2){var n=g;(n.children??=[]).push(r)}return r}function $r(e){let t=Re(e);return t.equals=ft,t}function wr(e){var t=e.children;if(t!==null){e.children=null;for(var r=0;r{Q(t)}}function xe(e){return mt(4,e,!1)}function ee(e){return mt(8,e,!0)}function Ee(e){return!1,X(e)}function X(e,t=0){return mt(24|t,e,!0)}function z(e,t=!0){return mt(40,e,!0,t)}function Rr(e){var t=e.teardown;if(t!==null){let r=Qt,n=g;Sr(!0),le(null);try{t.call(null)}finally{Sr(r),le(n)}}}function Ir(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var r=0;r{Q(e),t&&t()})}function Or(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var o of e)o.out(n)}else t()}function Zt(e,t,r){if(!(e.f&4096)){if(e.f^=4096,e.transitions!==null)for(let s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var o=n.next,i=(n.f&32768)!==0||(n.f&32)!==0;Zt(n,t,i?r:!1),n=o}}}function He(e){Hn(e,!0)}function Hn(e,t){if(e.f&4096){qe(e)&&We(e),e.f^=4096;for(var r=e.first;r!==null;){var n=r.next,o=(r.f&32768)!==0||(r.f&32)!==0;Hn(r,o?t:!1),r=n}if(e.transitions!==null)for(let i of e.transitions)(i.is_global||t)&&i.in()}}var er=!1,Un=!1,Lr=[],Vn=[];function zn(){er=!1;let e=Lr.slice();Lr=[],at(e)}function ko(){Un=!1;let e=Vn.slice();Vn=[],at(e)}function $e(e){er||(er=!0,queueMicrotask(zn)),Lr.push(e)}function jn(){er&&zn(),Un&&ko()}var Xn=0,Co=1,Gn=new WeakSet,tr=Xn,Dt=!1,ke=!1,Qt=!1;function lt(e){ke=e}function Sr(e){Qt=e}var ot=[],ht=0,Ot=[],g=null;function le(e){g=e}var v=null;function U(e){v=e}var Fe=null;var P=null,re=0,Ae=null;function An(e){Ae=e}var Jn=0,Ye=!1,nr=null,b=null;var Z=null;function jt(){return++Jn}function Ge(){return!Pe||b!==null&&b.l===null}function qe(e){var t=e.f;if(t&1024)return!0;if(t&2048){var r=e.deps,n=(t&128)!==0;if(r!==null){var o;if(t&256){for(o=0;oe.version)return!0}}n||W(e,512)}return!1}function Do(e,t,r){if(!!1||Gn.has(e)||r===null)throw e;let n=[],o=t.fn?.name;o&&n.push(o);let i=r;for(;i!==null;){if(!1){var s=i.function?.[q];if(s){let a=s.split("/").pop();n.push(a)}}i=i.p}let f=/Firefox/.test(navigator.userAgent)?" ":" ";oe(e,"message",{value:e.message+` +The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files`);throw t.name="Svelte error",t}else throw new Error("rune_outside_svelte")}function gn(){if(!1){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.");throw e.name="Svelte error",e}else throw new Error("state_descriptors_fixed")}function wn(){if(!1){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object");throw e.name="Svelte error",e}else throw new Error("state_prototype_fixed")}function En(){if(!1){let e=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state");throw e.name="Svelte error",e}else throw new Error("state_unsafe_local_read")}function $n(){if(!1){let e=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`");throw e.name="Svelte error",e}else throw new Error("state_unsafe_mutation")}var Pe=!1;var je=new Set;function hr(e){je=e}function I(e){return{f:0,v:e,reactions:null,equals:zt,version:0}}function Ae(e,t=!1){let r=I(e);return t||(r.equals=ft),Pe&&b!==null&&b.l!==null&&(b.l.s??=[]).push(r),r}function C(e,t){return g!==null&&Ge()&&g.f&18&&(Fe===null||!Fe.includes(e))&&$n(),kt(e,t)}function kt(e,t){if(!e.equals(t)&&(e.v=t,e.version=jt(),Tn(e,1024),Ge()&&v!==null&&v.f&512&&!(v.f&32)&&(P!==null&&P.includes(e)?(W(v,1024),ut(v)):Te===null?An([e]):Te.push(e)),!1)){let n=Array.from(je);var r=Se;lt(!0);try{for(let o of n)o.f&512&&W(o,2048),qe(o)&&We(o)}finally{lt(r)}je.clear()}return t}function Tn(e,t){var r=e.reactions;if(r!==null)for(var n=Ge(),o=r.length,i=0;ir.line)return o.component}}return null}var To=Symbol("ADD_OWNER");function br(e,t){if(t.owners!==null)for(;e;){if(e.owners===null){t.owners=null;break}for(let r of e.owners)t.owners.add(r);e=e.parent}}function Cn(e,t){return e.owners===null?!0:e.owners.has(t)||e.parent!==null&&Cn(e.parent,t)}function Dn(e){return e?.owners?.values().next().value??Dn(e.parent)}var Ao=!1;function On(e){if(Ao)return;let t=In();if(t&&!Cn(e,t)){let r=Dn(e);r[q]!==t[q]?xr(t[q],r[q]):xr()}}function Be(e,t=null,r){if(typeof e!="object"||e===null||me in e)return e;let n=Me(e);if(n!==dr&&n!==_n)return e;var o=new Map,i=de(e),s=I(0);i&&o.set("length",I(e.length));var f;if(!1)if(f={parent:t,owners:null},r){let c=r.v?.[ze]?.owners;f.owners=c?new Set(c):null}else f.owners=t===null?b!==null?new Set([b.function]):null:new Set;return new Proxy(e,{defineProperty(c,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&gn();var _=o.get(a);return _===void 0?(_=I(u.value),o.set(a,_)):C(_,Be(u.value,f)),!0},deleteProperty(c,a){var u=o.get(a);if(u===void 0)a in c&&o.set(a,I(Y));else{if(i&&typeof a=="string"){var _=o.get("length"),l=Number(a);Number.isInteger(l)&&l<_.v&&C(_,l)}C(u,Y),Ln(s)}return!0},get(c,a,u){if(!1)return f;if(a===me)return e;var _=o.get(a),l=a in c;if(_===void 0&&(!l||ie(c,a)?.writable)&&(_=I(Be(l?c[a]:Y,f)),o.set(a,_)),_!==void 0){var m=$(_);if(!1){var d=m?.[ze];d&&d?.parent!==f&&br(f,d)}return m===Y?void 0:m}return Reflect.get(c,a,u)},getOwnPropertyDescriptor(c,a){var u=Reflect.getOwnPropertyDescriptor(c,a);if(u&&"value"in u){var _=o.get(a);_&&(u.value=$(_))}else if(u===void 0){var l=o.get(a),m=l?.v;if(l!==void 0&&m!==Y)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return u},has(c,a){if(a===me)return!0;var u=o.get(a),_=u!==void 0&&u.v!==Y||Reflect.has(c,a);if(u!==void 0||v!==null&&(!_||ie(c,a)?.writable)){u===void 0&&(u=I(_?Be(c[a],f):Y),o.set(a,u));var l=$(u);if(l===Y)return!1}return _},set(c,a,u,_){var l=o.get(a),m=a in c;if(i&&a==="length")for(var d=u;d=R.v&&C(R,S+1)}Ln(s)}return!0},ownKeys(c){$(s);var a=Reflect.ownKeys(c).filter(l=>{var m=o.get(l);return m===void 0||m.v!==Y});for(var[u,_]of o)_.v!==Y&&!(u in c)&&a.push(u);return a},setPrototypeOf(){wn()}})}function Ln(e,t=1){C(e,e.v+t)}function Qe(e){return e!==null&&typeof e=="object"&&me in e?e[me]:e}function Mn(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:n,includes:o}=e;e.indexOf=function(i,s){let f=r.call(this,i,s);return f===-1&&r.call(Qe(this),Qe(i),s)!==-1&&Gt("array.indexOf(...)"),f},e.lastIndexOf=function(i,s){let f=n.call(this,i,s??this.length-1);return f===-1&&n.call(Qe(this),Qe(i),s??this.length-1)!==-1&&Gt("array.lastIndexOf(...)"),f},e.includes=function(i,s){let f=o.call(this,i,s);return f||o.call(Qe(this),Qe(i),s)&&Gt("array.includes(...)"),f},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=n,e.includes=o}}var yr,Kt,Pn,Fn;function Xt(){if(yr===void 0){yr=window,Kt=document;var e=Element.prototype,t=Node.prototype;Pn=ie(t,"firstChild").get,Fn=ie(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0,!1}}function te(e=""){return document.createTextNode(e)}function N(e){return Pn.call(e)}function L(e){return Fn.call(e)}function K(e,t){if(!h)return N(e);var r=N(x);if(r===null)r=x.appendChild(te());else if(t&&r.nodeType!==3){var n=te();return r?.before(n),A(n),n}return A(r),r}function et(e,t){if(!h){var r=N(e);return r instanceof Comment&&r.data===""?L(r):r}if(t&&x?.nodeType!==3){var n=te();return x?.before(n),A(n),n}return x}function we(e,t=1,r=!1){let n=h?x:e;for(var o;t--;)o=n,n=L(n);if(!h)return n;var i=n?.nodeType;if(r&&i!==3){var s=te();return n===null?o?.after(s):n.before(s),A(s),s}return A(n),n}function Rt(e){e.textContent=""}function Ne(e){var t=1026;v===null?t|=128:v.f|=524288;let r={children:null,ctx:b,deps:null,equals:zt,f:t,fn:e,reactions:null,v:null,version:0,parent:v};if(g!==null&&g.f&2){var n=g;(n.children??=[]).push(r)}return r}function $r(e){let t=Ne(e);return t.equals=ft,t}function wr(e){var t=e.children;if(t!==null){e.children=null;for(var r=0;r{Q(t)}}function xe(e){return mt(4,e,!1)}function ee(e){return mt(8,e,!0)}function Ee(e){return!1,X(e)}function X(e,t=0){return mt(24|t,e,!0)}function z(e,t=!0){return mt(40,e,!0,t)}function Rr(e){var t=e.teardown;if(t!==null){let r=Qt,n=g;Sr(!0),le(null);try{t.call(null)}finally{Sr(r),le(n)}}}function Ir(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var r=0;r{Q(e),t&&t()})}function Or(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var o of e)o.out(n)}else t()}function Zt(e,t,r){if(!(e.f&4096)){if(e.f^=4096,e.transitions!==null)for(let s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var o=n.next,i=(n.f&32768)!==0||(n.f&32)!==0;Zt(n,t,i?r:!1),n=o}}}function He(e){Hn(e,!0)}function Hn(e,t){if(e.f&4096){qe(e)&&We(e),e.f^=4096;for(var r=e.first;r!==null;){var n=r.next,o=(r.f&32768)!==0||(r.f&32)!==0;Hn(r,o?t:!1),r=n}if(e.transitions!==null)for(let i of e.transitions)(i.is_global||t)&&i.in()}}var er=!1,Un=!1,Lr=[],Vn=[];function zn(){er=!1;let e=Lr.slice();Lr=[],at(e)}function ko(){Un=!1;let e=Vn.slice();Vn=[],at(e)}function Ce(e){er||(er=!0,queueMicrotask(zn)),Lr.push(e)}function jn(){er&&zn(),Un&&ko()}var Xn=0,Co=1,Gn=new WeakSet,tr=Xn,Dt=!1,Se=!1,Qt=!1;function lt(e){Se=e}function Sr(e){Qt=e}var ot=[],ht=0,Ot=[],g=null;function le(e){g=e}var v=null;function U(e){v=e}var Fe=null;var P=null,re=0,Te=null;function An(e){Te=e}var Jn=0,Ye=!1,nr=null,b=null;var Z=null;function jt(){return++Jn}function Ge(){return!Pe||b!==null&&b.l===null}function qe(e){var t=e.f;if(t&1024)return!0;if(t&2048){var r=e.deps,n=(t&128)!==0;if(r!==null){var o;if(t&256){for(o=0;oe.version)return!0}}n||W(e,512)}return!1}function Do(e,t,r){if(!!1||Gn.has(e)||r===null)throw e;let n=[],o=t.fn?.name;o&&n.push(o);let i=r;for(;i!==null;){if(!1){var s=i.function?.[q];if(s){let a=s.split("/").pop();n.push(a)}}i=i.p}let f=/Firefox/.test(navigator.userAgent)?" ":" ";oe(e,"message",{value:e.message+` ${n.map(a=>` ${f}in ${a}`).join("")} `});let c=e.stack;if(c){let a=c.split(` `),u=[];for(let _=0;_0)for(u.length=re+P.length,_=0;_1e3)if(ht=0,!1)try{mr()}catch(e){throw oe(e,"stack",{value:""}),console.error("Last ten effects were: ",Ot.slice(-10).map(t=>t.fn)),Ot=[],e}else mr();ht++}function Qn(e){var t=e.length;if(t!==0){Zn();var r=ke;ke=!0;try{for(var n=0;n1001)return;let e=ot;ot=[],Qn(e),Dt||(ht=0,!1)}function ut(e){tr===Xn&&(Dt||(Dt=!0,queueMicrotask(Mo)));for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&512))return;t.f^=512}}ot.push(t)}function eo(e,t){var r=e.first,n=[];e:for(;r!==null;){var o=r.f,i=(o&32)!==0,s=i&&(o&512)!==0;if(!s&&!(o&4096))if(o&8){i?r.f^=512:qe(r)&&We(r);var f=r.first;if(f!==null){r=f;continue}}else o&4&&n.push(r);var c=r.next;if(c===null){let _=r.parent;for(;_!==null;){if(e===_)break e;var a=_.next;if(a!==null){r=a;continue e}_=_.parent}}r=c}for(var u=0;u0||o.length>0)&&xt(),ht=0,!1,n}finally{tr=t,ot=r}}function $(e){var t=e.f,r=(t&2)!==0;if(r&&t&8192){var n=Tr(e);return It(e),n}if(nr!==null&&nr.add(e),g!==null){Fe!==null&&Fe.includes(e)&&En();var o=g.deps;P===null&&o!==null&&o[re]===e?re++:P===null?P=[e]:P.push(e),Ae!==null&&v!==null&&v.f&512&&!(v.f&32)&&Ae.includes(e)&&(W(v,1024),ut(v))}else if(r&&e.deps===null){var i=e,s=i.parent;s!==null&&!s.deriveds?.includes(i)&&(s.deriveds??=[]).push(i)}return r&&(i=e,qe(i)&&Ar(i)),e.v}function F(e){let t=g;try{return g=null,e()}finally{g=t}}var Po=-3585;function W(e,t){e.f=e.f&Po|t}function De(e,t=!1,r){b={p:b,c:null,e:null,m:!1,s:e,x:null,l:null},Pe&&!t&&(b.l={s:null,u:null,r1:[],r2:I(!1)}),!1}function Oe(e){let t=b;if(t!==null){e!==void 0&&(t.x=e);let s=t.e;if(s!==null){var r=v,n=g;t.e=null;try{for(var o=0;o{if(r!==void 0)return r;yn(t)},set:n=>{r=n}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}var Mr=new Set,or=new Set;function bt(e){for(var t=0;t{throw R});throw l}}finally{e.__root=t,delete e.currentTarget,le(u),U(_)}}}var ue;function to(){ue=void 0}function Pr(e){let t=null,r=h;var n;if(h){for(t=x,ue===void 0&&(ue=N(document.head));ue!==null&&(ue.nodeType!==8||ue.data!==Ke);)ue=L(ue);ue===null?H(!1):ue=A(L(ue))}h||(n=document.head.appendChild(te()));try{X(()=>e(n),262144)}finally{r&&(H(!0),ue=x,A(t))}}function Mt(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function _e(e,t){var r=v;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ne(e,t){var r=(t&1)!==0,n=(t&2)!==0,o,i=!e.startsWith("");return()=>{if(h)return _e(x,null),x;o===void 0&&(o=Mt(i?e:""+e),r||(o=N(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var f=N(s),c=s.lastChild;_e(f,c)}else _e(s,s);return s}}function Fr(){if(h)return _e(x,null),x;var e=document.createDocumentFragment(),t=document.createComment(""),r=te();return e.append(t,r),_e(t,r),e}function j(e,t){if(h){v.nodes_end=x,B();return}e!==null&&e.before(t)}var Ho=/\r/g;function ro(e){e=e.replace(Ho,"");let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return(t>>>0).toString(36)}var Vo=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var Pa=[...Vo,"formNoValidate","isMap","noModule","playsInline","readOnly","value","inert","volume","srcObject"];var Uo=["touchstart","touchmove"];function no(e){return Uo.includes(e)}var qr=!0;function Le(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r==null?"":r+"")}function gt(e,t){return oo(e,t)}function Yr(e,t){Xt(),t.intro=t.intro??!1;let r=t.target,n=h,o=x;try{for(var i=N(r);i&&(i.nodeType!==8||i.data!==Ke);)i=L(i);if(!i)throw Ne;H(!0),A(i),B();let s=oo(e,{...t,anchor:i});if(x===null||x.nodeType!==8||x.data!==Je)throw Ze(),Ne;return H(!1),s}catch(s){if(s===Ne)return t.recover===!1&&xn(),Xt(),Rt(r),H(!1),gt(e,t);throw s}finally{H(n),A(o),to()}}var yt=new Map;function oo(e,{target:t,anchor:r,props:n={},events:o,context:i,intro:s=!0}){Xt();var f=new Set,c=_=>{for(var l=0;l<_.length;l++){var m=_[l];if(!f.has(m)){f.add(m);var d=no(m);t.addEventListener(m,Lt,{passive:d});var w=yt.get(m);w===void 0?(document.addEventListener(m,Lt,{passive:d}),yt.set(m,1)):yt.set(m,w+1)}}};c(At(Mr)),or.add(c);var a=void 0,u=vt(()=>{var _=r??t.appendChild(te());return z(()=>{if(i){De({});var l=b;l.c=i}o&&(n.$$events=o),h&&_e(_,null),qr=s,a=e(_,n)||{},qr=!0,h&&(v.nodes_end=x),i&&Oe()}),()=>{for(var l of f){t.removeEventListener(l,Lt);var m=yt.get(l);--m===0?(document.removeEventListener(l,Lt),yt.delete(l)):yt.set(l,m)}or.delete(c),Br.delete(a),_!==r&&_.parentNode?.removeChild(_)}});return Br.set(a,u),a}var Br=new WeakMap;function Hr(e){let t=Br.get(e);t?t():!1}function Pt(e,t,r,n=null,o=!1){h&&B();var i=e,s=null,f=null,c=null,a=o?32768:0;X(()=>{if(c===(c=!!t()))return;let u=!1;if(h){let _=i.data===Xe;c===_&&(i=Nt(),A(i),H(!1),u=!0)}c?(s?He(s):s=z(()=>r(i)),f&&Ce(f,()=>{f=null})):(f?He(f):n&&(f=z(()=>n(i))),s&&Ce(s,()=>{s=null})),u&&H(!0)},a),h&&(i=x)}var Ft=null;function zr(e,t){return t}function Ko(e,t,r,n){for(var o=[],i=t.length,s=0;s0&&o.length===0&&r!==null;if(f){var c=r.parentNode;Rt(c),c.append(r),n.clear(),Ve(e,t[0].prev,t[i-1].next)}Or(o,()=>{for(var a=0;a{var l=r(),m=de(l)?l:l==null?[]:At(l),d=m.length;if(_&&d===0)return;_=d===0;let w=!1;if(h){var T=s.data===Xe;T!==(d===0)&&(s=Nt(),A(s),H(!1),w=!0)}if(h){for(var D=null,R,S=0;S0&&A(Nt())}if(!h){var Te=g;Xo(m,f,s,o,t,(Te.f&4096)!==0,n)}i!==null&&(d===0?u?He(u):u=z(()=>i(s)):u!==null&&Ce(u,()=>{u=null})),w&&H(!0),r()}),h&&(s=x)}function Xo(e,t,r,n,o,i,s){var f=(o&8)!==0,c=(o&3)!==0,a=e.length,u=t.items,_=t.first,l=_,m,d=null,w,T=[],D=[],R,S,y,E;if(f)for(E=0;E0){var yo=o&4&&a===0?r:null;if(f){for(E=0;E{if(w!==void 0)for(y of w)y.a?.apply()}),v.first=t.first&&t.first.e,v.last=d&&d.e}function Jo(e,t,r,n){n&1&&kt(e.v,t),n&2?kt(e.i,r):e.i=r}function lo(e,t,r,n,o,i,s,f,c){var a=Ft,u=(c&1)!==0,_=(c&16)===0,l=u?_?Se(o):I(o):o,m=c&2?I(s):s,d={i:m,v:l,k:i,a:null,e:null,prev:r,next:n};Ft=d;try{return d.e=z(()=>f(e,l,m),h),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?t.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{Ft=a}}function ao(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,o=t?t.e.nodes_start:r,i=e.e.nodes_start;i!==n;){var s=L(i);o.before(i),i=s}}function Ve(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Zo(e,t,r){if(!t||t===ro(String(r??"")))return;let n,o=e.__svelte_meta?.loc;o?n=`near ${o.file}:${o.line}:${o.column}`:Z?.[q]&&(n=`in ${Z[q]}`),Nn(n?.replace(/\//g,"/\u200B"))}function Gr(e,t,r,n,o){var i=e,s="",f;X(()=>{if(s===(s=t()??"")){h&&B();return}f!==void 0&&(Q(f),f=void 0),s!==""&&(f=z(()=>{if(h){for(var c=x.data,a=B(),u=a;a!==null&&(a.nodeType!==8||a.data!=="");)u=a,a=L(a);if(a===null)throw Ze(),Ne;!1,_e(x,u),i=A(a);return}var _=s+"";r?_=`${_}`:n&&(_=`${_}`);var l=Mt(_);if((r||n)&&(l=N(l)),_e(N(l),l.lastChild),r||n)for(;N(l);)i.before(N(l));else i.before(l)}))})}function qt(e,t,r,n){var o=e.__attributes??={};if(h&&(o[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")){n||ri(e,t,r??"");return}o[t]!==(o[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[pn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ti(e).includes(t)?e[t]=r:e.setAttribute(t,r))}var uo=new Map;function ti(e){var t=uo.get(e.nodeName);if(t)return t;uo.set(e.nodeName,t=[]);for(var r,n=Me(e),o=Element.prototype;o!==n;){r=pr(n);for(var i in r)r[i].set&&t.push(i);n=Me(n)}return t}function ri(e,t,r){!1}function Wr(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function _o(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function ni(e,t){var r=_o(e.srcset),n=_o(t);return n.length===r.length&&n.every(([o,i],s)=>i===r[s][1]&&(Wr(r[s][0],o)||Wr(o,r[s][0])))}function Kr(e,t,r){if(r){if(e.classList.contains(t))return;e.classList.add(t)}else{if(!e.classList.contains(t))return;e.classList.remove(t)}}function Bt(e,t,r){if(e==null)return t(void 0),r&&r(void 0),M;let n=F(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}var sr=!1;function pe(e,t,r){let n=r[t]??={store:null,source:Se(void 0),unsubscribe:M};if(n.store!==e)if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=M;else{var o=!0;n.unsubscribe=Bt(e,i=>{o?n.source.v=i:C(n.source,i)}),o=!1}return $(n.source)}function Xr(e,t){return e.set(t),t}function it(){let e={};return ce(()=>{for(var t in e)e[t].unsubscribe()}),e}function Jr(e){var t=sr;try{return sr=!1,[e(),sr]}finally{sr=t}}function po(e){for(var t=v,r=v;t!==null&&!(t.f&96);)t=t.parent;try{return U(t),e()}finally{U(r)}}function Zr(e,t,r,n){var o=(r&1)!==0,i=!Pe||(r&2)!==0,s=(r&8)!==0,f=(r&16)!==0,c=!1,a;s?[a,c]=Jr(()=>e[t]):a=e[t];var u=me in e||Ut in e,_=ie(e,t)?.set??(u&&s&&t in e?k=>e[t]=k:void 0),l=n,m=!0,d=!1,w=()=>(d=!0,m&&(m=!1,f?l=F(n):l=n),l);a===void 0&&n!==void 0&&(_&&i&&bn(t),a=w(),_&&_(a));var T;if(i)T=()=>{var k=e[t];return k===void 0?w():(m=!0,d=!1,k)};else{var D=po(()=>(o?Re:$r)(()=>e[t]));D.f|=65536,T=()=>{var k=$(D);return k!==void 0&&(l=void 0),k===void 0?l:k}}if(!(r&4))return T;if(_){var R=e.$$legacy;return function(k,G){return arguments.length>0?((!i||!G||R||c)&&_(G?T():k),k):T()}}var S=!1,y=!1,E=Se(a),Te=po(()=>Re(()=>{var k=T(),G=$(E);return S?(S=!1,y=!0,G):(y=!1,E.v=k)}));return o||(Te.equals=ft),function(k,G){if(nr!==null&&(S=y,T(),$(E)),arguments.length>0){let st=G?$(Te):i&&s?Be(k):k;return Te.equals(st)||(S=!0,C(E,st),d&&l!==void 0&&(l=st),F(()=>$(Te))),k}return $(Te)}}function mo(e){return new Qr(e)}var Qr=class{#t;#e;constructor(t){var r=new Map,n=(i,s)=>{var f=Se(s);return r.set(i,f),f};let o=new Proxy({...t.props||{},$$events:{}},{get(i,s){return $(r.get(s)??n(s,Reflect.get(i,s)))},has(i,s){return s===Ut?!0:($(r.get(s)??n(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,f){return C(r.get(s)??n(s,f),f),Reflect.set(i,s,f)}});this.#e=(t.hydrate?Yr:gt)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&xt(),this.#t=o.$$events;for(let i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||oe(this,i,{get(){return this.#e[i]},set(s){this.#e[i]=s},enumerable:!0});this.#e.$set=i=>{Object.assign(o,i)},this.#e.$destroy=()=>{Hr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];let n=(...o)=>r.call(this,...o);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(o=>o!==n)}}$destroy(){this.#e.$destroy()}};var yi;typeof HTMLElement=="function"&&(yi=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){let n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return o=>{let i=document.createElement("slot");n!=="default"&&(i.name=n),j(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},r=gi(this);for(let n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(let n of this.attributes){let o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=en(o,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=mo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=vt(()=>{ee(()=>{this.$$r=!0;for(let n of _r(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let o=en(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1})});for(let n in this.$$l)for(let o of this.$$l[n]){let i=this.$$c.$on(n,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=en(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return _r(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function en(e,t,r,n){let o=r[e]?.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function gi(e){let t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}var ho="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(ho);var wt=[];function xo(e,t){return{subscribe:Ue(e,t).subscribe}}function Ue(e,t=M){let r=null,n=new Set;function o(f){if(St(e,f)&&(e=f,r)){let c=!wt.length;for(let a of n)a[1](),wt.push(a,e);if(c){for(let a=0;a{n.delete(a),n.size===0&&r&&(r(),r=null)}}return{set:o,update:i,subscribe:s}}function ar(e,t,r){let n=!Array.isArray(e),o=n?[e]:e;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let i=t.length<2;return xo(r,(s,f)=>{let c=!1,a=[],u=0,_=M,l=()=>{if(u)return;_();let d=t(n?a[0]:a,s,f);i?s(d):_=typeof d=="function"?d:M},m=o.map((d,w)=>Bt(d,T=>{a[w]=T,u&=~(1<{u|=1<t=r)(),t}function fr(e=!1){let t=[],r=Object.assign([],{void:{m:0,n:0}}),n=0;o();for(let i=0;i<4;i++){r[i]=[];for(let s=0;s<4;s++)t[n]?r[i][s]=t[n]:(r[i][s]=0,r.void={m:i,n:s}),n++}return r;function o(){let i;function s(){let c,a;t.map(function(u,_){c=Math.floor(Math.random()*16),t[c]!==u&&(a=t[c],t[c]=u,t[_]=a)})}function f(){let c=0,a=0;t.map(function(u,_){if(u===0)a=_;else if(u>1)for(let l=_+1;l<16;l++)u>t[l]&&t[l]!==0&&c++}),(!(c%2)&&(a>3&&a<8||a>11&&a<16)||c%2&&(a<4||a>7&&a<12))&&(i=!0)}for(let c=0;c<16;c++)t.push(c);for(e||t.push(Number(t.shift()));e&&!i;)s(),f()}}function tn(e,t){let r=Math.abs(t.m-e.void.m||t.n-e.void.n);function n(){for(let f=e.void.m+1;f<=t.m;f++)e[f-1][e.void.n]=e[f][e.void.n];e.void.m+=r}function o(){for(let f=e.void.m-1;f>=t.m;f--)e[f+1][e.void.n]=e[f][e.void.n];e.void.m-=r}function i(){for(let f=e.void.n-1;f>=t.n;f--)e[e.void.m][f+1]=e[e.void.m][f];e.void.n-=r}function s(){for(let f=e.void.n+1;f<=t.n;f++)e[e.void.m][f-1]=e[e.void.m][f];e.void.n+=r}return t.m!==e.void.m?t.m>e.void.m?n():o():t.n{let t=[];for(let r=0;r<4;r++)for(let n=0;n<4;n++)t[e[r][n]]={m:r,n};return t}),lr=ar(Vt,e=>{if(e[0].n===3&&e[0].m===3){for(let t=15;t>1;t--){let r=Math.floor((t-1)/4),n=t-1-4*r;if(e[t].m!==r||e[t].n!==n)return!1}return!0}else return!1});function ki(e=0,t=!1){let r=a=>new Date(a*1e3).toISOString().slice(11,-5),{subscribe:n,set:o}=Ue(r(e)),i=0;t&&s();function s(a=0){e=a||e,o(r(e)),clearInterval(i),i=setInterval(()=>{o(r(e+=1))},1e3)}function f(){clearInterval(i)}function c(){clearInterval(i),e=0}return{subscribe:n,set:o,start:s,pause:f,stop:c}}function Ni(){let{subscribe:e,set:t}=Ue("");function r(n){rn.set(fr(n))}return{subscribe:e,start(){r(!0),Et.start(0),$t.set(0),t("play")},pause(){Et.pause(),t("pause")},resume(){Et.start(),t("play")},stop(){r(),Et.stop(),t("")},movable(n){let o=i=>Ht(Vt)[i];return o(n).n===o(0).n||o(n).m===o(0).m},move(n){rn.update(o=>tn(o,Ht(Vt)[n]))}}}var bo='';var Ii=ne('

');function nn(e,t){De(t,!0);let r=it(),n=()=>pe(Et,"$time",r),o=()=>pe($t,"$steps",r);var i=Ii(),s=K(i),f=K(s,!0);V(s);var c=we(s,2),a=K(c),u=K(a);Gr(u,()=>bo,!1,!1),V(a);var _=we(a);V(c);var l=we(c,2),m=K(l);V(l),V(i),Ee(()=>{Le(f,n()),qt(a,"href",t.repository.url),Le(_,` ${t.name??""}`),Le(m,`Steps: ${o()??""}`)}),j(e,i),Oe()}var Ci=ne('');function on(e,t){De(t,!0);let r=it(),n=()=>pe(be,"$game",r),o=()=>pe(lr,"$sorted",r),i=()=>pe($t,"$steps",r),s=()=>pe(Vt,"$positions",r),f=Zr(t,"index",3,0);function c(){n()==="play"&&be.movable(f())&&!o()&&(be.move(f()),Xr($t,i()+1))}var a=Fr(),u=et(a);Pt(u,f,_=>{var l=Ci();let m=Re(()=>s()[f()].n*100),d=Re(()=>s()[f()].m*100);l.__click=c;var w=K(l,!0);V(l),Ee(()=>{qt(l,"style",`transform: translate(${$(m)??""}%, ${$(d)??""}%)`),Le(w,f())}),j(_,l)}),j(e,a),Oe()}bt(["click"]);var Di=ne('
');function sn(e){"use strict";let t=Array.from({length:15},(o,i)=>i+1);var r=Di(),n=K(r);jr(n,21,()=>t,zr,(o,i)=>{on(o,{get index(){return $(i)}})}),V(n),V(r),j(e,r)}var Oi=ne(" ",1),Li=ne(''),Mi=ne("
");function an(e,t){De(t,!0);let r=it(),n=()=>pe(lr,"$sorted",r),o=()=>pe(be,"$game",r);Ct(()=>{n()&&be.stop()});var i=Mi(),s=K(i),f=K(s);Pt(f,()=>o()==="play",c=>{var a=Oi(),u=et(a);u.__click=function(...l){be.stop?.apply(this,l)};var _=we(u,2);_.__click=function(...l){be.pause?.apply(this,l)},j(c,a)},c=>{var a=Li();a.__click=function(..._){(o()==="pause"?be.resume:be.start)?.apply(this,_)};var u=K(a,!0);V(a),Ee(()=>Le(u,o()==="pause"?"Resume":"Start")),j(c,a)}),V(s),V(i),Ee(()=>Kr(s,"playing",o()==="play")),j(e,i),Oe()}bt(["click"]);var Pi=ne(" ",1);function fn(e,t){"use strict";var r=Pi();Pr(s=>{Ee(()=>Kt.title=t.name)});var n=et(r);nn(n,{get name(){return t.name},get repository(){return t.repository}});var o=we(n,2);sn(o,{});var i=we(o,2);an(i,{}),j(e,r)}var mh=gt(fn,{target:document.body,props:{name:cn,repository:un}});export{mh as default}; +`)})}throw Gn.add(e),e}function Jt(e){var t=P,r=re,n=Te,o=g,i=Ye,s=Fe,f=b,c=e.f;P=null,re=0,Te=null,g=c&96?null:e,Ye=!Se&&(c&128)!==0,Fe=null,b=e.ctx;try{var a=(0,e.fn)(),u=e.deps;if(P!==null){var _;if(rt(e,re),u!==null&&re>0)for(u.length=re+P.length,_=0;_1e3)if(ht=0,!1)try{mr()}catch(e){throw oe(e,"stack",{value:""}),console.error("Last ten effects were: ",Ot.slice(-10).map(t=>t.fn)),Ot=[],e}else mr();ht++}function Qn(e){var t=e.length;if(t!==0){Zn();var r=Se;Se=!0;try{for(var n=0;n1001)return;let e=ot;ot=[],Qn(e),Dt||(ht=0,!1)}function ut(e){tr===Xn&&(Dt||(Dt=!0,queueMicrotask(Mo)));for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&512))return;t.f^=512}}ot.push(t)}function eo(e,t){var r=e.first,n=[];e:for(;r!==null;){var o=r.f,i=(o&32)!==0,s=i&&(o&512)!==0;if(!s&&!(o&4096))if(o&8){i?r.f^=512:qe(r)&&We(r);var f=r.first;if(f!==null){r=f;continue}}else o&4&&n.push(r);var c=r.next;if(c===null){let _=r.parent;for(;_!==null;){if(e===_)break e;var a=_.next;if(a!==null){r=a;continue e}_=_.parent}}r=c}for(var u=0;u0||o.length>0)&&xt(),ht=0,!1,n}finally{tr=t,ot=r}}function $(e){var t=e.f,r=(t&2)!==0;if(r&&t&8192){var n=Tr(e);return It(e),n}if(nr!==null&&nr.add(e),g!==null){Fe!==null&&Fe.includes(e)&&En();var o=g.deps;P===null&&o!==null&&o[re]===e?re++:P===null?P=[e]:P.push(e),Te!==null&&v!==null&&v.f&512&&!(v.f&32)&&Te.includes(e)&&(W(v,1024),ut(v))}else if(r&&e.deps===null){var i=e,s=i.parent;s!==null&&!s.deriveds?.includes(i)&&(s.deriveds??=[]).push(i)}return r&&(i=e,qe(i)&&Ar(i)),e.v}function F(e){let t=g;try{return g=null,e()}finally{g=t}}var Po=-3585;function W(e,t){e.f=e.f&Po|t}function De(e,t=!1,r){b={p:b,c:null,e:null,m:!1,s:e,x:null,l:null},Pe&&!t&&(b.l={s:null,u:null,r1:[],r2:I(!1)}),!1}function Oe(e){let t=b;if(t!==null){e!==void 0&&(t.x=e);let s=t.e;if(s!==null){var r=v,n=g;t.e=null;try{for(var o=0;o{if(r!==void 0)return r;yn(t)},set:n=>{r=n}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}var Mr=new Set,or=new Set;function bt(e){for(var t=0;t{throw R});throw l}}finally{e.__root=t,delete e.currentTarget,le(u),U(_)}}}var ue;function to(){ue=void 0}function Pr(e){let t=null,r=h;var n;if(h){for(t=x,ue===void 0&&(ue=N(document.head));ue!==null&&(ue.nodeType!==8||ue.data!==Ke);)ue=L(ue);ue===null?H(!1):ue=A(L(ue))}h||(n=document.head.appendChild(te()));try{X(()=>e(n),262144)}finally{r&&(H(!0),ue=x,A(t))}}function Mt(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function _e(e,t){var r=v;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ne(e,t){var r=(t&1)!==0,n=(t&2)!==0,o,i=!e.startsWith("");return()=>{if(h)return _e(x,null),x;o===void 0&&(o=Mt(i?e:""+e),r||(o=N(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var f=N(s),c=s.lastChild;_e(f,c)}else _e(s,s);return s}}function Fr(){if(h)return _e(x,null),x;var e=document.createDocumentFragment(),t=document.createComment(""),r=te();return e.append(t,r),_e(t,r),e}function j(e,t){if(h){v.nodes_end=x,B();return}e!==null&&e.before(t)}var Ho=/\r/g;function ro(e){e=e.replace(Ho,"");let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return(t>>>0).toString(36)}var Vo=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var Pa=[...Vo,"formNoValidate","isMap","noModule","playsInline","readOnly","value","inert","volume","srcObject"];var Uo=["touchstart","touchmove"];function no(e){return Uo.includes(e)}var qr=!0;function Le(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r==null?"":r+"")}function gt(e,t){return oo(e,t)}function Yr(e,t){Xt(),t.intro=t.intro??!1;let r=t.target,n=h,o=x;try{for(var i=N(r);i&&(i.nodeType!==8||i.data!==Ke);)i=L(i);if(!i)throw ke;H(!0),A(i),B();let s=oo(e,{...t,anchor:i});if(x===null||x.nodeType!==8||x.data!==Je)throw Ze(),ke;return H(!1),s}catch(s){if(s===ke)return t.recover===!1&&xn(),Xt(),Rt(r),H(!1),gt(e,t);throw s}finally{H(n),A(o),to()}}var yt=new Map;function oo(e,{target:t,anchor:r,props:n={},events:o,context:i,intro:s=!0}){Xt();var f=new Set,c=_=>{for(var l=0;l<_.length;l++){var m=_[l];if(!f.has(m)){f.add(m);var d=no(m);t.addEventListener(m,Lt,{passive:d});var w=yt.get(m);w===void 0?(document.addEventListener(m,Lt,{passive:d}),yt.set(m,1)):yt.set(m,w+1)}}};c(At(Mr)),or.add(c);var a=void 0,u=vt(()=>{var _=r??t.appendChild(te());return z(()=>{if(i){De({});var l=b;l.c=i}o&&(n.$$events=o),h&&_e(_,null),qr=s,a=e(_,n)||{},qr=!0,h&&(v.nodes_end=x),i&&Oe()}),()=>{for(var l of f){t.removeEventListener(l,Lt);var m=yt.get(l);--m===0?(document.removeEventListener(l,Lt),yt.delete(l)):yt.set(l,m)}or.delete(c),Br.delete(a),_!==r&&_.parentNode?.removeChild(_)}});return Br.set(a,u),a}var Br=new WeakMap;function Hr(e){let t=Br.get(e);t?t():!1}function Pt(e,t,r,n=null,o=!1){h&&B();var i=e,s=null,f=null,c=null,a=o?32768:0;X(()=>{if(c===(c=!!t()))return;let u=!1;if(h){let _=i.data===Xe;c===_&&(i=Nt(),A(i),H(!1),u=!0)}c?(s?He(s):s=z(()=>r(i)),f&&Ie(f,()=>{f=null})):(f?He(f):n&&(f=z(()=>n(i))),s&&Ie(s,()=>{s=null})),u&&H(!0)},a),h&&(i=x)}var Ft=null;function zr(e,t){return t}function Ko(e,t,r,n){for(var o=[],i=t.length,s=0;s0&&o.length===0&&r!==null;if(f){var c=r.parentNode;Rt(c),c.append(r),n.clear(),Ve(e,t[0].prev,t[i-1].next)}Or(o,()=>{for(var a=0;a{var l=r(),m=de(l)?l:l==null?[]:At(l),d=m.length;if(_&&d===0)return;_=d===0;let w=!1;if(h){var T=s.data===Xe;T!==(d===0)&&(s=Nt(),A(s),H(!1),w=!0)}if(h){for(var D=null,R,S=0;S0&&A(Nt())}if(!h){var $e=g;Xo(m,f,s,o,t,($e.f&4096)!==0,n)}i!==null&&(d===0?u?He(u):u=z(()=>i(s)):u!==null&&Ie(u,()=>{u=null})),w&&H(!0),r()}),h&&(s=x)}function Xo(e,t,r,n,o,i,s){var f=(o&8)!==0,c=(o&3)!==0,a=e.length,u=t.items,_=t.first,l=_,m,d=null,w,T=[],D=[],R,S,y,E;if(f)for(E=0;E0){var yo=o&4&&a===0?r:null;if(f){for(E=0;E{if(w!==void 0)for(y of w)y.a?.apply()}),v.first=t.first&&t.first.e,v.last=d&&d.e}function Jo(e,t,r,n){n&1&&kt(e.v,t),n&2?kt(e.i,r):e.i=r}function lo(e,t,r,n,o,i,s,f,c){var a=Ft,u=(c&1)!==0,_=(c&16)===0,l=u?_?Ae(o):I(o):o,m=c&2?I(s):s,d={i:m,v:l,k:i,a:null,e:null,prev:r,next:n};Ft=d;try{return d.e=z(()=>f(e,l,m),h),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?t.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{Ft=a}}function ao(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,o=t?t.e.nodes_start:r,i=e.e.nodes_start;i!==n;){var s=L(i);o.before(i),i=s}}function Ve(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Zo(e,t,r){if(!t||t===ro(String(r??"")))return;let n,o=e.__svelte_meta?.loc;o?n=`near ${o.file}:${o.line}:${o.column}`:Z?.[q]&&(n=`in ${Z[q]}`),Nn(n?.replace(/\//g,"/\u200B"))}function Gr(e,t,r,n,o){var i=e,s="",f;X(()=>{if(s===(s=t()??"")){h&&B();return}f!==void 0&&(Q(f),f=void 0),s!==""&&(f=z(()=>{if(h){for(var c=x.data,a=B(),u=a;a!==null&&(a.nodeType!==8||a.data!=="");)u=a,a=L(a);if(a===null)throw Ze(),ke;!1,_e(x,u),i=A(a);return}var _=s+"";r?_=`${_}`:n&&(_=`${_}`);var l=Mt(_);if((r||n)&&(l=N(l)),_e(N(l),l.lastChild),r||n)for(;N(l);)i.before(N(l));else i.before(l)}))})}function qt(e,t,r,n){var o=e.__attributes??={};if(h&&(o[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")){n||ri(e,t,r??"");return}o[t]!==(o[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[pn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ti(e).includes(t)?e[t]=r:e.setAttribute(t,r))}var uo=new Map;function ti(e){var t=uo.get(e.nodeName);if(t)return t;uo.set(e.nodeName,t=[]);for(var r,n=Me(e),o=Element.prototype;o!==n;){r=pr(n);for(var i in r)r[i].set&&t.push(i);n=Me(n)}return t}function ri(e,t,r){!1}function Wr(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function _o(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function ni(e,t){var r=_o(e.srcset),n=_o(t);return n.length===r.length&&n.every(([o,i],s)=>i===r[s][1]&&(Wr(r[s][0],o)||Wr(o,r[s][0])))}function Kr(e,t,r){if(r){if(e.classList.contains(t))return;e.classList.add(t)}else{if(!e.classList.contains(t))return;e.classList.remove(t)}}function Bt(e,t,r){if(e==null)return t(void 0),r&&r(void 0),M;let n=F(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}var sr=!1;function pe(e,t,r){let n=r[t]??={store:null,source:Ae(void 0),unsubscribe:M};if(n.store!==e)if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=M;else{var o=!0;n.unsubscribe=Bt(e,i=>{o?n.source.v=i:C(n.source,i)}),o=!1}return $(n.source)}function Xr(e,t){return e.set(t),t}function it(){let e={};return ce(()=>{for(var t in e)e[t].unsubscribe()}),e}function Jr(e){var t=sr;try{return sr=!1,[e(),sr]}finally{sr=t}}function po(e){for(var t=v,r=v;t!==null&&!(t.f&96);)t=t.parent;try{return U(t),e()}finally{U(r)}}function Zr(e,t,r,n){var o=(r&1)!==0,i=!Pe||(r&2)!==0,s=(r&8)!==0,f=(r&16)!==0,c=!1,a;s?[a,c]=Jr(()=>e[t]):a=e[t];var u=me in e||Ut in e,_=ie(e,t)?.set??(u&&s&&t in e?k=>e[t]=k:void 0),l=n,m=!0,d=!1,w=()=>(d=!0,m&&(m=!1,f?l=F(n):l=n),l);a===void 0&&n!==void 0&&(_&&i&&bn(t),a=w(),_&&_(a));var T;if(i)T=()=>{var k=e[t];return k===void 0?w():(m=!0,d=!1,k)};else{var D=po(()=>(o?Ne:$r)(()=>e[t]));D.f|=65536,T=()=>{var k=$(D);return k!==void 0&&(l=void 0),k===void 0?l:k}}if(!(r&4))return T;if(_){var R=e.$$legacy;return function(k,G){return arguments.length>0?((!i||!G||R||c)&&_(G?T():k),k):T()}}var S=!1,y=!1,E=Ae(a),$e=po(()=>Ne(()=>{var k=T(),G=$(E);return S?(S=!1,y=!0,G):(y=!1,E.v=k)}));return o||($e.equals=ft),function(k,G){if(nr!==null&&(S=y,T(),$(E)),arguments.length>0){let st=G?$($e):i&&s?Be(k):k;return $e.equals(st)||(S=!0,C(E,st),d&&l!==void 0&&(l=st),F(()=>$($e))),k}return $($e)}}function mo(e){return new Qr(e)}var Qr=class{#t;#e;constructor(t){var r=new Map,n=(i,s)=>{var f=Ae(s);return r.set(i,f),f};let o=new Proxy({...t.props||{},$$events:{}},{get(i,s){return $(r.get(s)??n(s,Reflect.get(i,s)))},has(i,s){return s===Ut?!0:($(r.get(s)??n(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,f){return C(r.get(s)??n(s,f),f),Reflect.set(i,s,f)}});this.#e=(t.hydrate?Yr:gt)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&xt(),this.#t=o.$$events;for(let i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||oe(this,i,{get(){return this.#e[i]},set(s){this.#e[i]=s},enumerable:!0});this.#e.$set=i=>{Object.assign(o,i)},this.#e.$destroy=()=>{Hr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];let n=(...o)=>r.call(this,...o);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(o=>o!==n)}}$destroy(){this.#e.$destroy()}};var yi;typeof HTMLElement=="function"&&(yi=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){let n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return o=>{let i=document.createElement("slot");n!=="default"&&(i.name=n),j(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},r=gi(this);for(let n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(let n of this.attributes){let o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=en(o,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=mo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=vt(()=>{ee(()=>{this.$$r=!0;for(let n of _r(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let o=en(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1})});for(let n in this.$$l)for(let o of this.$$l[n]){let i=this.$$c.$on(n,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=en(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return _r(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function en(e,t,r,n){let o=r[e]?.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function gi(e){let t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}var ho="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(ho);var wt=[];function xo(e,t){return{subscribe:Ue(e,t).subscribe}}function Ue(e,t=M){let r=null,n=new Set;function o(f){if(St(e,f)&&(e=f,r)){let c=!wt.length;for(let a of n)a[1](),wt.push(a,e);if(c){for(let a=0;a{n.delete(a),n.size===0&&r&&(r(),r=null)}}return{set:o,update:i,subscribe:s}}function ar(e,t,r){let n=!Array.isArray(e),o=n?[e]:e;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let i=t.length<2;return xo(r,(s,f)=>{let c=!1,a=[],u=0,_=M,l=()=>{if(u)return;_();let d=t(n?a[0]:a,s,f);i?s(d):_=typeof d=="function"?d:M},m=o.map((d,w)=>Bt(d,T=>{a[w]=T,u&=~(1<{u|=1<t=r)(),t}function fr(e=!1){let t=[],r=Object.assign([],{void:{m:0,n:0}}),n=0;o();for(let i=0;i<4;i++){r[i]=[];for(let s=0;s<4;s++)t[n]?r[i][s]=t[n]:(r[i][s]=0,r.void={m:i,n:s}),n++}return r;function o(){let i;function s(){let c,a;t.map(function(u,_){c=Math.floor(Math.random()*16),t[c]!==u&&(a=t[c],t[c]=u,t[_]=a)})}function f(){let c=0,a=0;t.map(function(u,_){if(u===0)a=_;else if(u>1)for(let l=_+1;l<16;l++)u>t[l]&&t[l]!==0&&c++}),(!(c%2)&&(a>3&&a<8||a>11&&a<16)||c%2&&(a<4||a>7&&a<12))&&(i=!0)}for(let c=0;c<16;c++)t.push(c);for(e||t.push(Number(t.shift()));e&&!i;)s(),f()}}function tn(e,t){let r=Math.abs(t.m-e.void.m||t.n-e.void.n);function n(){for(let f=e.void.m+1;f<=t.m;f++)e[f-1][e.void.n]=e[f][e.void.n];e.void.m+=r}function o(){for(let f=e.void.m-1;f>=t.m;f--)e[f+1][e.void.n]=e[f][e.void.n];e.void.m-=r}function i(){for(let f=e.void.n-1;f>=t.n;f--)e[e.void.m][f+1]=e[e.void.m][f];e.void.n-=r}function s(){for(let f=e.void.n+1;f<=t.n;f++)e[e.void.m][f-1]=e[e.void.m][f];e.void.n+=r}return t.m!==e.void.m?t.m>e.void.m?n():o():t.n{let t=[];for(let r=0;r<4;r++)for(let n=0;n<4;n++)t[e[r][n]]={m:r,n};return t}),lr=ar(Vt,e=>{if(e[0].n===3&&e[0].m===3){for(let t=15;t>1;t--){let r=Math.floor((t-1)/4),n=t-1-4*r;if(e[t].m!==r||e[t].n!==n)return!1}return!0}else return!1});function ki(e=0,t=!1){let r=a=>new Date(a*1e3).toISOString().slice(11,-5),{subscribe:n,set:o}=Ue(r(e)),i=0;t&&s();function s(a=0){e=a||e,o(r(e)),clearInterval(i),i=setInterval(()=>{o(r(e+=1))},1e3)}function f(){clearInterval(i)}function c(){clearInterval(i),e=0}return{subscribe:n,set:o,start:s,pause:f,stop:c}}function Ni(){let{subscribe:e,set:t}=Ue("");function r(n){rn.set(fr(n))}return{subscribe:e,start(){r(!0),Et.start(0),$t.set(0),t("play")},pause(){Et.pause(),t("pause")},resume(){Et.start(),t("play")},stop(){r(),Et.stop(),t("")},movable(n){let o=i=>Ht(Vt)[i];return o(n).n===o(0).n||o(n).m===o(0).m},move(n){rn.update(o=>tn(o,Ht(Vt)[n]))}}}var bo='';var Ii=ne('

');function nn(e,t){De(t,!0);let r=it(),n=()=>pe(Et,"$time",r),o=()=>pe($t,"$steps",r);var i=Ii(),s=K(i),f=K(s,!0);V(s);var c=we(s,2),a=K(c),u=K(a);Gr(u,()=>bo,!1,!1),V(a);var _=we(a);V(c);var l=we(c,2),m=K(l);V(l),V(i),Ee(()=>{Le(f,n()),qt(a,"href",t.repository.url),Le(_,` ${t.name??""}`),Le(m,`Steps: ${o()??""}`)}),j(e,i),Oe()}var Ci=ne('');function on(e,t){De(t,!0);let r=it(),n=()=>pe(be,"$game",r),o=()=>pe(lr,"$sorted",r),i=()=>pe($t,"$steps",r),s=()=>pe(Vt,"$positions",r),f=Zr(t,"index",3,0);function c(){n()==="play"&&be.movable(f())&&!o()&&(be.move(f()),Xr($t,i()+1))}var a=Fr(),u=et(a);Pt(u,f,_=>{var l=Ci();let m=Ne(()=>s()[f()].n*100),d=Ne(()=>s()[f()].m*100);l.__click=c;var w=K(l,!0);V(l),Ee(()=>{qt(l,"style",`transform: translate(${$(m)??""}%, ${$(d)??""}%)`),Le(w,f())}),j(_,l)}),j(e,a),Oe()}bt(["click"]);var Di=ne('
');function sn(e){"use strict";let t=Array.from({length:15},(o,i)=>i+1);var r=Di(),n=K(r);jr(n,21,()=>t,zr,(o,i)=>{on(o,{get index(){return $(i)}})}),V(n),V(r),j(e,r)}var Oi=ne(" ",1),Li=ne(''),Mi=ne("
");function an(e,t){De(t,!0);let r=it(),n=()=>pe(lr,"$sorted",r),o=()=>pe(be,"$game",r);Ct(()=>{n()&&be.stop()});var i=Mi(),s=K(i),f=K(s);Pt(f,()=>o()==="play",c=>{var a=Oi(),u=et(a);u.__click=function(...l){be.stop?.apply(this,l)};var _=we(u,2);_.__click=function(...l){be.pause?.apply(this,l)},j(c,a)},c=>{var a=Li();a.__click=function(..._){(o()==="pause"?be.resume:be.start)?.apply(this,_)};var u=K(a,!0);V(a),Ee(()=>Le(u,o()==="pause"?"Resume":"Start")),j(c,a)}),V(s),V(i),Ee(()=>Kr(s,"playing",o()==="play")),j(e,i),Oe()}bt(["click"]);var Pi=ne(" ",1);function fn(e,t){"use strict";var r=Pi();Pr(s=>{Ee(()=>Kt.title=t.name)});var n=et(r);nn(n,{get name(){return t.name},get repository(){return t.repository}});var o=we(n,2);sn(o,{});var i=we(o,2);an(i,{}),j(e,r)}var mh=gt(fn,{target:document.body,props:{name:cn,repository:un}});export{mh as default};