Spaces:
Runtime error
Runtime error
Ron Au
commited on
Commit
β’
67158c5
1
Parent(s):
a8ab240
feat(ui): Tweaks for mobile
Browse files- source/ui/src/lib/Notes.svelte +39 -18
- source/ui/src/lib/stores.ts +0 -1
- static/_app/assets/pages/{index.svelte-32be1fd5.css β index.svelte-45cd6b36.css} +1 -1
- static/_app/chunks/index-c61749f5.js +4 -0
- static/_app/chunks/index-f8f7cfca.js +0 -4
- static/_app/chunks/{index-7a30815e.js β index-f9918abc.js} +1 -1
- static/_app/{error.svelte-2573bba8.js β error.svelte-83166d57.js} +1 -1
- static/_app/{layout.svelte-3942c837.js β layout.svelte-0c060267.js} +1 -1
- static/_app/manifest.json +16 -16
- static/_app/pages/index.svelte-6719d8d0.js +0 -5
- static/_app/pages/index.svelte-a12665f4.js +5 -0
- static/_app/{start-5745fde1.js β start-d715fd74.js} +1 -1
- static/_app/version.json +1 -1
- templates/index.html +11 -11
source/ui/src/lib/Notes.svelte
CHANGED
@@ -6,24 +6,36 @@ let currentTime: number;
|
|
6 |
let duration: number;
|
7 |
let paused = true;
|
8 |
|
9 |
-
let container:
|
10 |
let visualisation: HTMLImageElement;
|
11 |
$: imageWidth = visualisation && visualisation.clientWidth;
|
12 |
|
13 |
-
|
|
|
|
|
14 |
imageWidth = visualisation && visualisation.clientWidth;
|
15 |
}
|
16 |
-
|
|
|
17 |
if (!duration) {
|
18 |
return;
|
19 |
}
|
20 |
|
21 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
return;
|
23 |
}
|
24 |
|
25 |
const { left, right } = container.getBoundingClientRect();
|
26 |
-
currentTime = (duration * (
|
27 |
};
|
28 |
|
29 |
const handleKeydown = (e: KeyboardEvent): void => {
|
@@ -33,26 +45,37 @@ const handleKeydown = (e: KeyboardEvent): void => {
|
|
33 |
};
|
34 |
</script>
|
35 |
|
36 |
-
<svelte:window on:keydown={handleKeydown} />
|
37 |
|
38 |
{#if $audioBlob}
|
39 |
-
<section transition:fade>
|
40 |
<div
|
41 |
class="container"
|
42 |
bind:this={container}
|
43 |
-
on:mousemove={
|
44 |
-
on:touchmove|preventDefault={
|
45 |
-
style:width={imageWidth
|
46 |
>
|
47 |
-
<
|
|
|
48 |
class="visualisation"
|
49 |
src={$notesImage}
|
50 |
alt="MIDI notes of composition"
|
51 |
draggable="false"
|
52 |
bind:this={visualisation}
|
53 |
on:click={() => (paused = !paused)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
/>
|
55 |
-
<audio bind:currentTime bind:duration bind:paused src={$audioBlob} />
|
|
|
56 |
<div class="handle" style:transform="translateX({imageWidth * (currentTime / duration)}px)" />
|
57 |
{#if paused}
|
58 |
<img
|
@@ -83,8 +106,6 @@ section {
|
|
83 |
.visualisation {
|
84 |
display: block;
|
85 |
margin: auto;
|
86 |
-
height: 100%;
|
87 |
-
aspect-ratio: 1 / 1;
|
88 |
cursor: pointer;
|
89 |
}
|
90 |
|
@@ -106,8 +127,8 @@ audio {
|
|
106 |
.handle {
|
107 |
position: absolute;
|
108 |
left: 0;
|
109 |
-
top:
|
110 |
-
height:
|
111 |
width: 0.2rem;
|
112 |
margin-left: 1rem;
|
113 |
border-radius: 0.1rem;
|
@@ -116,8 +137,8 @@ audio {
|
|
116 |
}
|
117 |
|
118 |
@media (min-width: 600px) {
|
119 |
-
|
120 |
-
max-width:
|
121 |
}
|
122 |
}
|
123 |
</style>
|
|
|
6 |
let duration: number;
|
7 |
let paused = true;
|
8 |
|
9 |
+
let container: HTMLDivElement;
|
10 |
let visualisation: HTMLImageElement;
|
11 |
$: imageWidth = visualisation && visualisation.clientWidth;
|
12 |
|
13 |
+
let sectionWidth: number;
|
14 |
+
|
15 |
+
$: if ($audioBlob || currentTime || duration || !paused) {
|
16 |
imageWidth = visualisation && visualisation.clientWidth;
|
17 |
}
|
18 |
+
|
19 |
+
const mouseMove = (event: MouseEvent): void => {
|
20 |
if (!duration) {
|
21 |
return;
|
22 |
}
|
23 |
|
24 |
+
if (!event.buttons) {
|
25 |
+
return;
|
26 |
+
}
|
27 |
+
|
28 |
+
const { left, right } = container.getBoundingClientRect();
|
29 |
+
currentTime = (duration * (event.clientX - left)) / (right - left);
|
30 |
+
};
|
31 |
+
|
32 |
+
const touchMove = (event: TouchEvent): void => {
|
33 |
+
if (!duration) {
|
34 |
return;
|
35 |
}
|
36 |
|
37 |
const { left, right } = container.getBoundingClientRect();
|
38 |
+
currentTime = (duration * (event.touches[0].clientX - left)) / (right - left);
|
39 |
};
|
40 |
|
41 |
const handleKeydown = (e: KeyboardEvent): void => {
|
|
|
45 |
};
|
46 |
</script>
|
47 |
|
48 |
+
<svelte:window on:keydown={handleKeydown} on:resize={() => (imageWidth = visualisation && visualisation.clientWidth)} />
|
49 |
|
50 |
{#if $audioBlob}
|
51 |
+
<section bind:clientWidth={sectionWidth} transition:fade>
|
52 |
<div
|
53 |
class="container"
|
54 |
bind:this={container}
|
55 |
+
on:mousemove={mouseMove}
|
56 |
+
on:touchmove|preventDefault={touchMove}
|
57 |
+
style:width={Math.min(imageWidth, sectionWidth) + 'px'}
|
58 |
>
|
59 |
+
<!-- <div class="container" bind:this={container} on:mousemove={handleMove} on:touchmove|preventDefault={handleMove}> -->
|
60 |
+
<!-- <img
|
61 |
class="visualisation"
|
62 |
src={$notesImage}
|
63 |
alt="MIDI notes of composition"
|
64 |
draggable="false"
|
65 |
bind:this={visualisation}
|
66 |
on:click={() => (paused = !paused)}
|
67 |
+
/> -->
|
68 |
+
<img
|
69 |
+
class="visualisation"
|
70 |
+
src="compose.png"
|
71 |
+
alt="MIDI notes of composition"
|
72 |
+
draggable="false"
|
73 |
+
bind:this={visualisation}
|
74 |
+
on:click={() => (paused = !paused)}
|
75 |
+
style:width="calc({sectionWidth}px - 4rem)"
|
76 |
/>
|
77 |
+
<!-- <audio bind:currentTime bind:duration bind:paused src={$audioBlob} /> -->
|
78 |
+
<audio bind:currentTime bind:duration bind:paused src="synth.wav" />
|
79 |
<div class="handle" style:transform="translateX({imageWidth * (currentTime / duration)}px)" />
|
80 |
{#if paused}
|
81 |
<img
|
|
|
106 |
.visualisation {
|
107 |
display: block;
|
108 |
margin: auto;
|
|
|
|
|
109 |
cursor: pointer;
|
110 |
}
|
111 |
|
|
|
127 |
.handle {
|
128 |
position: absolute;
|
129 |
left: 0;
|
130 |
+
top: 0;
|
131 |
+
height: 100%;
|
132 |
width: 0.2rem;
|
133 |
margin-left: 1rem;
|
134 |
border-radius: 0.1rem;
|
|
|
137 |
}
|
138 |
|
139 |
@media (min-width: 600px) {
|
140 |
+
.visualisation {
|
141 |
+
max-width: 512px;
|
142 |
}
|
143 |
}
|
144 |
</style>
|
source/ui/src/lib/stores.ts
CHANGED
@@ -9,7 +9,6 @@ export const temperature: Writable<string> = writable('medium');
|
|
9 |
|
10 |
/* Audio state */
|
11 |
export const composing: Writable<boolean> = writable(false);
|
12 |
-
export const playing: Writable<boolean> = writable(true);
|
13 |
export const audioDuration: Writable<number> = writable(0);
|
14 |
export const audioTime: Writable<number> = writable(0);
|
15 |
export const audioPaused: Writable<boolean> = writable(true);
|
|
|
9 |
|
10 |
/* Audio state */
|
11 |
export const composing: Writable<boolean> = writable(false);
|
|
|
12 |
export const audioDuration: Writable<number> = writable(0);
|
13 |
export const audioTime: Writable<number> = writable(0);
|
14 |
export const audioPaused: Writable<boolean> = writable(true);
|
static/_app/assets/pages/{index.svelte-32be1fd5.css β index.svelte-45cd6b36.css}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
fieldset.svelte-1r9pswz.svelte-1r9pswz{position:relative;padding:0;border:none;margin-top:1rem}legend.svelte-1r9pswz.svelte-1r9pswz{text-align:center;font-size:1.25rem;font-weight:700;padding:0}.grid.svelte-1r9pswz.svelte-1r9pswz{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;width:min-content;margin:1rem auto}img.svelte-1r9pswz.svelte-1r9pswz{width:100%;height:100%;filter:invert(1);margin:auto}label.svelte-1r9pswz.svelte-1r9pswz{background-color:transparent;border-radius:.375rem;transition:background-color .25s;cursor:pointer}label.svelte-1r9pswz>div.svelte-1r9pswz{width:3rem;aspect-ratio:1 / 1}input.svelte-1r9pswz.svelte-1r9pswz{position:fixed;opacity:0;pointer-events:none}label[data-selected=true].svelte-1r9pswz.svelte-1r9pswz{background-color:#f7f7f7;border-radius:.375rem}label[data-selected=true].svelte-1r9pswz img.svelte-1r9pswz{filter:none}@media (min-width: 600px) and (max-width: 899px){.grid.svelte-1r9pswz.svelte-1r9pswz{display:flex;flex-direction:row}}@media (min-width: 900px){.grid.svelte-1r9pswz.svelte-1r9pswz{grid-template-columns:repeat(4,1fr)}}.options.svelte-1m848u0{display:flex;flex-direction:row;justify-content:center;width:100%;margin:auto}label.svelte-1m848u0{display:block;margin-bottom:1rem;padding:.5rem;border:2px solid hsl(0 0% 97%);border-right:none;text-align:center;transition:background-color .25s;cursor:pointer}label.svelte-1m848u0:nth-of-type(1){border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;border-right-width:0}label.svelte-1m848u0:last-of-type{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;border-right:2px solid hsl(0 0% 97%)}label[data-selected=true].svelte-1m848u0{background-color:#fff;color:#333;font-weight:700}label.svelte-1m848u0:focus{outline:red}input.svelte-1m848u0{position:fixed;opacity:0;pointer-events:none}fieldset.svelte-1ikh8be{padding:0;border:none;margin-top:1rem}legend.svelte-1ikh8be{text-align:center;font-size:1.25rem;font-weight:700;padding:0;margin-bottom:1rem}button.svelte-18w38ow{display:block;font-size:1.2rem;font-family:Lato,sans-serif;font-weight:700;color:#f7f7f7;background:transparent;border:3px solid hsl(0 0% 97%);border-radius:.375rem;padding:.5rem 1rem;cursor:pointer;margin:1rem auto 2rem}button[disabled].svelte-18w38ow{border-color:gray;color:gray;cursor:initial}img.svelte-18w38ow{height:1.2rem;aspect-ratio:1 / 1;vertical-align:bottom}@media (min-width: 900px){button.svelte-18w38ow{margin-top:0}}section.svelte-
|
|
|
1 |
+
fieldset.svelte-1r9pswz.svelte-1r9pswz{position:relative;padding:0;border:none;margin-top:1rem}legend.svelte-1r9pswz.svelte-1r9pswz{text-align:center;font-size:1.25rem;font-weight:700;padding:0}.grid.svelte-1r9pswz.svelte-1r9pswz{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;width:min-content;margin:1rem auto}img.svelte-1r9pswz.svelte-1r9pswz{width:100%;height:100%;filter:invert(1);margin:auto}label.svelte-1r9pswz.svelte-1r9pswz{background-color:transparent;border-radius:.375rem;transition:background-color .25s;cursor:pointer}label.svelte-1r9pswz>div.svelte-1r9pswz{width:3rem;aspect-ratio:1 / 1}input.svelte-1r9pswz.svelte-1r9pswz{position:fixed;opacity:0;pointer-events:none}label[data-selected=true].svelte-1r9pswz.svelte-1r9pswz{background-color:#f7f7f7;border-radius:.375rem}label[data-selected=true].svelte-1r9pswz img.svelte-1r9pswz{filter:none}@media (min-width: 600px) and (max-width: 899px){.grid.svelte-1r9pswz.svelte-1r9pswz{display:flex;flex-direction:row}}@media (min-width: 900px){.grid.svelte-1r9pswz.svelte-1r9pswz{grid-template-columns:repeat(4,1fr)}}.options.svelte-1m848u0{display:flex;flex-direction:row;justify-content:center;width:100%;margin:auto}label.svelte-1m848u0{display:block;margin-bottom:1rem;padding:.5rem;border:2px solid hsl(0 0% 97%);border-right:none;text-align:center;transition:background-color .25s;cursor:pointer}label.svelte-1m848u0:nth-of-type(1){border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;border-right-width:0}label.svelte-1m848u0:last-of-type{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;border-right:2px solid hsl(0 0% 97%)}label[data-selected=true].svelte-1m848u0{background-color:#fff;color:#333;font-weight:700}label.svelte-1m848u0:focus{outline:red}input.svelte-1m848u0{position:fixed;opacity:0;pointer-events:none}fieldset.svelte-1ikh8be{padding:0;border:none;margin-top:1rem}legend.svelte-1ikh8be{text-align:center;font-size:1.25rem;font-weight:700;padding:0;margin-bottom:1rem}button.svelte-18w38ow{display:block;font-size:1.2rem;font-family:Lato,sans-serif;font-weight:700;color:#f7f7f7;background:transparent;border:3px solid hsl(0 0% 97%);border-radius:.375rem;padding:.5rem 1rem;cursor:pointer;margin:1rem auto 2rem}button[disabled].svelte-18w38ow{border-color:gray;color:gray;cursor:initial}img.svelte-18w38ow{height:1.2rem;aspect-ratio:1 / 1;vertical-align:bottom}@media (min-width: 900px){button.svelte-18w38ow{margin-top:0}}section.svelte-sa1t0p{border:2px solid hsl(0 0% 80%);border-radius:.375rem;padding:1rem}.container.svelte-sa1t0p{position:relative;padding:1rem;margin:auto}.visualisation.svelte-sa1t0p{display:block;margin:auto;cursor:pointer}audio.svelte-sa1t0p{width:100%;margin:1rem auto}.play.svelte-sa1t0p{position:absolute;left:50%;top:50%;width:20%;aspect-ratio:1 / 1;transform:translate(-50%,-60%);filter:drop-shadow(0 0 5px black);cursor:pointer}.handle.svelte-sa1t0p{position:absolute;left:0;top:0;height:100%;width:.2rem;margin-left:1rem;border-radius:.1rem;background-color:#fff;cursor:pointer}@media (min-width: 600px){.visualisation.svelte-sa1t0p{max-width:512px}}section.svelte-4un5mw{border:2px solid hsl(0 0% 80%);border-radius:.375rem;padding:1rem}p.svelte-4un5mw{font-size:.75rem}main.svelte-1rfjlkw{width:100%;display:flex;flex-direction:column;gap:1rem;margin:0 auto}h1.svelte-1rfjlkw{font-size:1.5rem;border-left:.25ch solid hsl(0 0% 97%);padding-left:.5ch}.heading.svelte-1rfjlkw{font-size:2.25rem}p.svelte-1rfjlkw:not(.heading){max-width:40rem;font-size:1.2rem;line-height:1.5rem;margin:0}#options.svelte-1rfjlkw{display:flex;flex-direction:column;justify-content:space-between;margin-top:1rem}@media (min-width: 600px){main.svelte-1rfjlkw{max-width:60rem}}@media (min-width: 900px){#options.svelte-1rfjlkw{display:flex;flex-direction:row;justify-content:space-between}}
|
static/_app/chunks/index-c61749f5.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function k(){}const lt=t=>t;function ut(t,e){for(const n in e)t[n]=e[n];return t}function U(t){return t()}function G(){return Object.create(null)}function x(t){t.forEach(U)}function V(t){return typeof t=="function"}function Tt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let C;function Wt(t,e){return C||(C=document.createElement("a")),C.href=e,t===C.href}function at(t){return Object.keys(t).length===0}function ft(t,...e){if(t==null)return k;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Bt(t,e,n){t.$$.on_destroy.push(ft(e,n))}function Lt(t,e,n,i){if(t){const s=X(t,e,n,i);return t[0](s)}}function X(t,e,n,i){return t[1]&&i?ut(n.ctx.slice(),t[1](i(e))):n.ctx}function Ft(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const c=[],r=Math.max(e.dirty.length,s.length);for(let l=0;l<r;l+=1)c[l]=e.dirty[l]|s[l];return c}return e.dirty|s}return e.dirty}function It(t,e,n,i,s,c){if(s){const r=X(e,n,i,c);t.p(r,s)}}function Ht(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function Gt(t,e,n){return t.set(n),e}const Y=typeof window!="undefined";let dt=Y?()=>window.performance.now():()=>Date.now(),L=Y?t=>requestAnimationFrame(t):k;const b=new Set;function Z(t){b.forEach(e=>{e.c(t)||(b.delete(e),e.f())}),b.size!==0&&L(Z)}function _t(t){let e;return b.size===0&&L(Z),{promise:new Promise(n=>{b.add(e={c:t,f:n})}),abort(){b.delete(e)}}}let O=!1;function ht(){O=!0}function mt(){O=!1}function pt(t,e,n,i){for(;t<e;){const s=t+(e-t>>1);n(s)<=i?t=s+1:e=s}return t}function yt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const o=[];for(let u=0;u<e.length;u++){const d=e[u];d.claim_order!==void 0&&o.push(d)}e=o}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let s=0;for(let o=0;o<e.length;o++){const u=e[o].claim_order,d=(s>0&&e[n[s]].claim_order<=u?s+1:pt(1,s,a=>e[n[a]].claim_order,u))-1;i[o]=n[d]+1;const f=d+1;n[f]=o,s=Math.max(f,s)}const c=[],r=[];let l=e.length-1;for(let o=n[s]+1;o!=0;o=i[o-1]){for(c.push(e[o-1]);l>=o;l--)r.push(e[l]);l--}for(;l>=0;l--)r.push(e[l]);c.reverse(),r.sort((o,u)=>o.claim_order-u.claim_order);for(let o=0,u=0;o<r.length;o++){for(;u<c.length&&r[o].claim_order>=c[u].claim_order;)u++;const d=u<c.length?c[u]:null;t.insertBefore(r[o],d)}}function tt(t,e){t.appendChild(e)}function et(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function gt(t){const e=F("style");return bt(et(t),e),e.sheet}function bt(t,e){tt(t.head||t,e)}function xt(t,e){if(O){for(yt(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function Jt(t,e,n){O&&!n?xt(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function nt(t){t.parentNode.removeChild(t)}function Kt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function F(t){return document.createElement(t)}function I(t){return document.createTextNode(t)}function Qt(){return I(" ")}function Ut(){return I("")}function J(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Vt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Xt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function $t(t){return Array.from(t.childNodes)}function wt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function it(t,e,n,i,s=!1){wt(t);const c=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const l=t[r];if(e(l)){const o=n(l);return o===void 0?t.splice(r,1):t[r]=o,s||(t.claim_info.last_index=r),l}}for(let r=t.claim_info.last_index-1;r>=0;r--){const l=t[r];if(e(l)){const o=n(l);return o===void 0?t.splice(r,1):t[r]=o,s?o===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,l}}return i()})();return c.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,c}function vt(t,e,n,i){return it(t,s=>s.nodeName===e,s=>{const c=[];for(let r=0;r<s.attributes.length;r++){const l=s.attributes[r];n[l.name]||c.push(l.name)}c.forEach(r=>s.removeAttribute(r))},()=>i(e))}function Yt(t,e,n){return vt(t,e,n,F)}function Et(t,e){return it(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>I(e),!0)}function Zt(t){return Et(t," ")}function te(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function ee(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}let N;function kt(){if(N===void 0){N=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch{N=!0}}return N}function ne(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const i=F("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const s=kt();let c;return s?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",c=J(window,"message",r=>{r.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{c=J(i.contentWindow,"resize",e)}),tt(t,i),()=>{(s||c&&i.contentWindow)&&c(),nt(i)}}function At(t,e,n=!1){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,!1,e),i}const z=new Map;let R=0;function Ct(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function Nt(t,e){const n={stylesheet:gt(e),rules:{}};return z.set(t,n),n}function K(t,e,n,i,s,c,r,l=0){const o=16.666/i;let u=`{
|
2 |
+
`;for(let p=0;p<=1;p+=o){const g=e+(n-e)*c(p);u+=p*100+`%{${r(g,1-g)}}
|
3 |
+
`}const d=u+`100% {${r(n,1-n)}}
|
4 |
+
}`,f=`__svelte_${Ct(d)}_${l}`,a=et(t),{stylesheet:_,rules:h}=z.get(a)||Nt(a,t);h[f]||(h[f]=!0,_.insertRule(`@keyframes ${f} ${d}`,_.cssRules.length));const y=t.style.animation||"";return t.style.animation=`${y?`${y}, `:""}${f} ${i}ms linear ${s}ms 1 both`,R+=1,f}function jt(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?c=>c.indexOf(e)<0:c=>c.indexOf("__svelte")===-1),s=n.length-i.length;s&&(t.style.animation=i.join(", "),R-=s,R||St())}function St(){L(()=>{R||(z.forEach(t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}}),z.clear())})}let E;function v(t){E=t}function H(){if(!E)throw new Error("Function called outside component initialization");return E}function ie(t){H().$$.on_mount.push(t)}function re(t){H().$$.after_update.push(t)}function se(t,e){H().$$.context.set(t,e)}const w=[],Q=[],S=[],W=[],rt=Promise.resolve();let B=!1;function st(){B||(B=!0,rt.then(ot))}function oe(){return st(),rt}function D(t){S.push(t)}function ce(t){W.push(t)}const q=new Set;let j=0;function ot(){const t=E;do{for(;j<w.length;){const e=w[j];j++,v(e),Mt(e.$$)}for(v(null),w.length=0,j=0;Q.length;)Q.pop()();for(let e=0;e<S.length;e+=1){const n=S[e];q.has(n)||(q.add(n),n())}S.length=0}while(w.length);for(;W.length;)W.pop()();B=!1,q.clear(),v(t)}function Mt(t){if(t.fragment!==null){t.update(),x(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(D)}}let $;function zt(){return $||($=Promise.resolve(),$.then(()=>{$=null})),$}function T(t,e,n){t.dispatchEvent(At(`${e?"intro":"outro"}${n}`))}const M=new Set;let m;function le(){m={r:0,c:[],p:m}}function ue(){m.r||x(m.c),m=m.p}function Rt(t,e){t&&t.i&&(M.delete(t),t.i(e))}function ae(t,e,n,i){if(t&&t.o){if(M.has(t))return;M.add(t),m.c.push(()=>{M.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}}const Dt={duration:0};function fe(t,e,n,i){let s=e(t,n),c=i?0:1,r=null,l=null,o=null;function u(){o&&jt(t,o)}function d(a,_){const h=a.b-c;return _*=Math.abs(h),{a:c,b:a.b,d:h,duration:_,start:a.start,end:a.start+_,group:a.group}}function f(a){const{delay:_=0,duration:h=300,easing:y=lt,tick:p=k,css:g}=s||Dt,P={start:dt()+_,b:a};a||(P.group=m,m.r+=1),r||l?l=P:(g&&(u(),o=K(t,c,a,h,_,y,g)),a&&p(0,1),r=d(P,h),D(()=>T(t,a,"start")),_t(A=>{if(l&&A>l.start&&(r=d(l,h),l=null,T(t,r.b,"start"),g&&(u(),o=K(t,c,r.b,r.duration,0,y,s.css))),r){if(A>=r.end)p(c=r.b,1-c),T(t,r.b,"end"),l||(r.b?u():--r.group.r||x(r.group.c)),r=null;else if(A>=r.start){const ct=A-r.start;c=r.a+r.d*y(ct/r.duration),p(c,1-c)}}return!!(r||l)}))}return{run(a){V(s)?zt().then(()=>{s=s(),f(a)}):f(a)},end(){u(),r=l=null}}}function de(t,e){const n={},i={},s={$$scope:1};let c=t.length;for(;c--;){const r=t[c],l=e[c];if(l){for(const o in r)o in l||(i[o]=1);for(const o in l)s[o]||(n[o]=l[o],s[o]=1);t[c]=l}else for(const o in r)s[o]=1}for(const r in i)r in n||(n[r]=void 0);return n}function _e(t){return typeof t=="object"&&t!==null?t:{}}function he(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function me(t){t&&t.c()}function pe(t,e){t&&t.l(e)}function Ot(t,e,n,i){const{fragment:s,on_mount:c,on_destroy:r,after_update:l}=t.$$;s&&s.m(e,n),i||D(()=>{const o=c.map(U).filter(V);r?r.push(...o):x(o),t.$$.on_mount=[]}),l.forEach(D)}function Pt(t,e){const n=t.$$;n.fragment!==null&&(x(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function qt(t,e){t.$$.dirty[0]===-1&&(w.push(t),st(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ye(t,e,n,i,s,c,r,l=[-1]){const o=E;v(t);const u=t.$$={fragment:null,ctx:null,props:c,update:k,not_equal:s,bound:G(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(o?o.$$.context:[])),callbacks:G(),dirty:l,skip_bound:!1,root:e.target||o.$$.root};r&&r(u.root);let d=!1;if(u.ctx=n?n(t,e.props||{},(f,a,..._)=>{const h=_.length?_[0]:a;return u.ctx&&s(u.ctx[f],u.ctx[f]=h)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](h),d&&qt(t,f)),a}):[],u.update(),d=!0,x(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){ht();const f=$t(e.target);u.fragment&&u.fragment.l(f),f.forEach(nt)}else u.fragment&&u.fragment.c();e.intro&&Rt(t.$$.fragment),Ot(t,e.target,e.anchor,e.customElement),mt(),ot()}v(o)}class ge{$destroy(){Pt(this,1),this.$destroy=k}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!at(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{_e as A,Pt as B,ut as C,oe as D,k as E,Lt as F,It as G,Ht as H,Ft as I,xt as J,Wt as K,J as L,Kt as M,Bt as N,Q as O,he as P,ce as Q,Gt as R,ge as S,lt as T,D as U,ne as V,Vt as W,fe as X,x as Y,L as Z,$t as a,Xt as b,Yt as c,nt as d,F as e,ee as f,Jt as g,Et as h,ye as i,te as j,Qt as k,Ut as l,Zt as m,le as n,ae as o,ue as p,Rt as q,se as r,Tt as s,I as t,re as u,ie as v,me as w,pe as x,Ot as y,de as z};
|
static/_app/chunks/index-f8f7cfca.js
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
function k(){}const rt=t=>t;function st(t,e){for(const n in e)t[n]=e[n];return t}function J(t){return t()}function I(){return Object.create(null)}function x(t){t.forEach(J)}function K(t){return typeof t=="function"}function Pt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let j;function qt(t,e){return j||(j=document.createElement("a")),j.href=e,t===j.href}function ct(t){return Object.keys(t).length===0}function lt(t,...e){if(t==null)return k;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Tt(t,e,n){t.$$.on_destroy.push(lt(e,n))}function zt(t,e,n,r){if(t){const s=Q(t,e,n,r);return t[0](s)}}function Q(t,e,n,r){return t[1]&&r?st(n.ctx.slice(),t[1](r(e))):n.ctx}function Bt(t,e,n,r){if(t[2]&&r){const s=t[2](r(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],i=Math.max(e.dirty.length,s.length);for(let l=0;l<i;l+=1)o[l]=e.dirty[l]|s[l];return o}return e.dirty|s}return e.dirty}function Lt(t,e,n,r,s,o){if(s){const i=Q(e,n,r,o);t.p(i,s)}}function Ft(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function Ht(t,e,n){return t.set(n),e}const U=typeof window!="undefined";let ot=U?()=>window.performance.now():()=>Date.now(),L=U?t=>requestAnimationFrame(t):k;const b=new Set;function V(t){b.forEach(e=>{e.c(t)||(b.delete(e),e.f())}),b.size!==0&&L(V)}function ut(t){let e;return b.size===0&&L(V),{promise:new Promise(n=>{b.add(e={c:t,f:n})}),abort(){b.delete(e)}}}let O=!1;function at(){O=!0}function ft(){O=!1}function _t(t,e,n,r){for(;t<e;){const s=t+(e-t>>1);n(s)<=r?t=s+1:e=s}return t}function dt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let u=0;u<e.length;u++){const _=e[u];_.claim_order!==void 0&&c.push(_)}e=c}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let s=0;for(let c=0;c<e.length;c++){const u=e[c].claim_order,_=(s>0&&e[n[s]].claim_order<=u?s+1:_t(1,s,a=>e[n[a]].claim_order,u))-1;r[c]=n[_]+1;const f=_+1;n[f]=c,s=Math.max(f,s)}const o=[],i=[];let l=e.length-1;for(let c=n[s]+1;c!=0;c=r[c-1]){for(o.push(e[c-1]);l>=c;l--)i.push(e[l]);l--}for(;l>=0;l--)i.push(e[l]);o.reverse(),i.sort((c,u)=>c.claim_order-u.claim_order);for(let c=0,u=0;c<i.length;c++){for(;u<o.length&&i[c].claim_order>=o[u].claim_order;)u++;const _=u<o.length?o[u]:null;t.insertBefore(i[c],_)}}function ht(t,e){t.appendChild(e)}function X(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function mt(t){const e=Y("style");return pt(X(t),e),e.sheet}function pt(t,e){ht(t.head||t,e)}function yt(t,e){if(O){for(dt(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function It(t,e,n){O&&!n?yt(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function gt(t){t.parentNode.removeChild(t)}function Wt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Y(t){return document.createElement(t)}function F(t){return document.createTextNode(t)}function Gt(){return F(" ")}function Jt(){return F("")}function Kt(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Qt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ut(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function bt(t){return Array.from(t.childNodes)}function xt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function Z(t,e,n,r,s=!1){xt(t);const o=(()=>{for(let i=t.claim_info.last_index;i<t.length;i++){const l=t[i];if(e(l)){const c=n(l);return c===void 0?t.splice(i,1):t[i]=c,s||(t.claim_info.last_index=i),l}}for(let i=t.claim_info.last_index-1;i>=0;i--){const l=t[i];if(e(l)){const c=n(l);return c===void 0?t.splice(i,1):t[i]=c,s?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=i,l}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function $t(t,e,n,r){return Z(t,s=>s.nodeName===e,s=>{const o=[];for(let i=0;i<s.attributes.length;i++){const l=s.attributes[i];n[l.name]||o.push(l.name)}o.forEach(i=>s.removeAttribute(i))},()=>r(e))}function Vt(t,e,n){return $t(t,e,n,Y)}function wt(t,e){return Z(t,n=>n.nodeType===3,n=>{const r=""+e;if(n.data.startsWith(r)){if(n.data.length!==r.length)return n.splitText(r.length)}else n.data=r},()=>F(e),!0)}function Xt(t){return wt(t," ")}function Yt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Zt(t,e,n,r){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function vt(t,e,n=!1){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,!1,e),r}const M=new Map;let R=0;function Et(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function kt(t,e){const n={stylesheet:mt(e),rules:{}};return M.set(t,n),n}function W(t,e,n,r,s,o,i,l=0){const c=16.666/r;let u=`{
|
2 |
-
`;for(let p=0;p<=1;p+=c){const g=e+(n-e)*o(p);u+=p*100+`%{${i(g,1-g)}}
|
3 |
-
`}const _=u+`100% {${i(n,1-n)}}
|
4 |
-
}`,f=`__svelte_${Et(_)}_${l}`,a=X(t),{stylesheet:d,rules:h}=M.get(a)||kt(a,t);h[f]||(h[f]=!0,d.insertRule(`@keyframes ${f} ${_}`,d.cssRules.length));const y=t.style.animation||"";return t.style.animation=`${y?`${y}, `:""}${f} ${r}ms linear ${s}ms 1 both`,R+=1,f}function Nt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),s=n.length-r.length;s&&(t.style.animation=r.join(", "),R-=s,R||jt())}function jt(){L(()=>{R||(M.forEach(t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}}),M.clear())})}let E;function v(t){E=t}function H(){if(!E)throw new Error("Function called outside component initialization");return E}function te(t){H().$$.on_mount.push(t)}function ee(t){H().$$.after_update.push(t)}function ne(t,e){H().$$.context.set(t,e)}const w=[],G=[],C=[],z=[],tt=Promise.resolve();let B=!1;function et(){B||(B=!0,tt.then(nt))}function ie(){return et(),tt}function D(t){C.push(t)}function re(t){z.push(t)}const q=new Set;let A=0;function nt(){const t=E;do{for(;A<w.length;){const e=w[A];A++,v(e),At(e.$$)}for(v(null),w.length=0,A=0;G.length;)G.pop()();for(let e=0;e<C.length;e+=1){const n=C[e];q.has(n)||(q.add(n),n())}C.length=0}while(w.length);for(;z.length;)z.pop()();B=!1,q.clear(),v(t)}function At(t){if(t.fragment!==null){t.update(),x(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(D)}}let $;function Ct(){return $||($=Promise.resolve(),$.then(()=>{$=null})),$}function T(t,e,n){t.dispatchEvent(vt(`${e?"intro":"outro"}${n}`))}const S=new Set;let m;function se(){m={r:0,c:[],p:m}}function ce(){m.r||x(m.c),m=m.p}function St(t,e){t&&t.i&&(S.delete(t),t.i(e))}function le(t,e,n,r){if(t&&t.o){if(S.has(t))return;S.add(t),m.c.push(()=>{S.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}}const Mt={duration:0};function oe(t,e,n,r){let s=e(t,n),o=r?0:1,i=null,l=null,c=null;function u(){c&&Nt(t,c)}function _(a,d){const h=a.b-o;return d*=Math.abs(h),{a:o,b:a.b,d:h,duration:d,start:a.start,end:a.start+d,group:a.group}}function f(a){const{delay:d=0,duration:h=300,easing:y=rt,tick:p=k,css:g}=s||Mt,P={start:ot()+d,b:a};a||(P.group=m,m.r+=1),i||l?l=P:(g&&(u(),c=W(t,o,a,h,d,y,g)),a&&p(0,1),i=_(P,h),D(()=>T(t,a,"start")),ut(N=>{if(l&&N>l.start&&(i=_(l,h),l=null,T(t,i.b,"start"),g&&(u(),c=W(t,o,i.b,i.duration,0,y,s.css))),i){if(N>=i.end)p(o=i.b,1-o),T(t,i.b,"end"),l||(i.b?u():--i.group.r||x(i.group.c)),i=null;else if(N>=i.start){const it=N-i.start;o=i.a+i.d*y(it/i.duration),p(o,1-o)}}return!!(i||l)}))}return{run(a){K(s)?Ct().then(()=>{s=s(),f(a)}):f(a)},end(){u(),i=l=null}}}function ue(t,e){const n={},r={},s={$$scope:1};let o=t.length;for(;o--;){const i=t[o],l=e[o];if(l){for(const c in i)c in l||(r[c]=1);for(const c in l)s[c]||(n[c]=l[c],s[c]=1);t[o]=l}else for(const c in i)s[c]=1}for(const i in r)i in n||(n[i]=void 0);return n}function ae(t){return typeof t=="object"&&t!==null?t:{}}function fe(t,e,n){const r=t.$$.props[e];r!==void 0&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function _e(t){t&&t.c()}function de(t,e){t&&t.l(e)}function Rt(t,e,n,r){const{fragment:s,on_mount:o,on_destroy:i,after_update:l}=t.$$;s&&s.m(e,n),r||D(()=>{const c=o.map(J).filter(K);i?i.push(...c):x(c),t.$$.on_mount=[]}),l.forEach(D)}function Dt(t,e){const n=t.$$;n.fragment!==null&&(x(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ot(t,e){t.$$.dirty[0]===-1&&(w.push(t),et(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function he(t,e,n,r,s,o,i,l=[-1]){const c=E;v(t);const u=t.$$={fragment:null,ctx:null,props:o,update:k,not_equal:s,bound:I(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:I(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};i&&i(u.root);let _=!1;if(u.ctx=n?n(t,e.props||{},(f,a,...d)=>{const h=d.length?d[0]:a;return u.ctx&&s(u.ctx[f],u.ctx[f]=h)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](h),_&&Ot(t,f)),a}):[],u.update(),_=!0,x(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){at();const f=bt(e.target);u.fragment&&u.fragment.l(f),f.forEach(gt)}else u.fragment&&u.fragment.c();e.intro&&St(t.$$.fragment),Rt(t,e.target,e.anchor,e.customElement),ft(),nt()}v(c)}class me{$destroy(){Dt(this,1),this.$destroy=k}$on(e,n){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s!==-1&&r.splice(s,1)}}$set(e){this.$$set&&!ct(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{ae as A,Dt as B,st as C,ie as D,k as E,zt as F,Lt as G,Ft as H,Bt as I,yt as J,qt as K,Kt as L,Wt as M,Tt as N,G as O,fe as P,re as Q,Ht as R,me as S,rt as T,D as U,Qt as V,oe as W,x as X,L as Y,bt as a,Ut as b,Vt as c,gt as d,Y as e,Zt as f,It as g,wt as h,he as i,Yt as j,Gt as k,Jt as l,Xt as m,se as n,le as o,ce as p,St as q,ne as r,Pt as s,F as t,ee as u,te as v,_e as w,de as x,Rt as y,ue as z};
|
|
|
|
|
|
|
|
|
|
static/_app/chunks/{index-7a30815e.js β index-f9918abc.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{E as f,s as l}from"./index-
|
|
|
1 |
+
import{E as f,s as l}from"./index-c61749f5.js";const e=[];function h(n,u=f){let o;const i=new Set;function r(t){if(l(n,t)&&(n=t,o)){const c=!e.length;for(const s of i)s[1](),e.push(s,n);if(c){for(let s=0;s<e.length;s+=2)e[s][0](e[s+1]);e.length=0}}}function b(t){r(t(n))}function p(t,c=f){const s=[t,c];return i.add(s),i.size===1&&(o=u(r)||f),t(n),()=>{i.delete(s),i.size===0&&(o(),o=null)}}return{set:r,update:b,subscribe:p}}export{h as w};
|
static/_app/{error.svelte-2573bba8.js β error.svelte-83166d57.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{S as w,i as y,s as z,e as E,t as v,c as d,a as b,h as P,d as o,g as u,J as R,j as N,k as S,l as C,m as j,E as H}from"./chunks/index-
|
|
|
1 |
+
import{S as w,i as y,s as z,e as E,t as v,c as d,a as b,h as P,d as o,g as u,J as R,j as N,k as S,l as C,m as j,E as H}from"./chunks/index-c61749f5.js";function J(r){let l,t=r[1].frame+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].frame+"")&&N(a,t)},d(f){f&&o(l)}}}function h(r){let l,t=r[1].stack+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].stack+"")&&N(a,t)},d(f){f&&o(l)}}}function A(r){let l,t,a,f,s=r[1].message+"",c,k,n,p,i=r[1].frame&&J(r),_=r[1].stack&&h(r);return{c(){l=E("h1"),t=v(r[0]),a=S(),f=E("pre"),c=v(s),k=S(),i&&i.c(),n=S(),_&&_.c(),p=C()},l(e){l=d(e,"H1",{});var m=b(l);t=P(m,r[0]),m.forEach(o),a=j(e),f=d(e,"PRE",{});var q=b(f);c=P(q,s),q.forEach(o),k=j(e),i&&i.l(e),n=j(e),_&&_.l(e),p=C()},m(e,m){u(e,l,m),R(l,t),u(e,a,m),u(e,f,m),R(f,c),u(e,k,m),i&&i.m(e,m),u(e,n,m),_&&_.m(e,m),u(e,p,m)},p(e,[m]){m&1&&N(t,e[0]),m&2&&s!==(s=e[1].message+"")&&N(c,s),e[1].frame?i?i.p(e,m):(i=J(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),e[1].stack?_?_.p(e,m):(_=h(e),_.c(),_.m(p.parentNode,p)):_&&(_.d(1),_=null)},i:H,o:H,d(e){e&&o(l),e&&o(a),e&&o(f),e&&o(k),i&&i.d(e),e&&o(n),_&&_.d(e),e&&o(p)}}}function F({error:r,status:l}){return{props:{error:r,status:l}}}function B(r,l,t){let{status:a}=l,{error:f}=l;return r.$$set=s=>{"status"in s&&t(0,a=s.status),"error"in s&&t(1,f=s.error)},[a,f]}class G extends w{constructor(l){super(),y(this,l,B,A,z,{status:0,error:1})}}export{G as default,F as load};
|
static/_app/{layout.svelte-3942c837.js β layout.svelte-0c060267.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{S as l,i,s as r,F as u,G as f,H as _,I as c,q as p,o as d}from"./chunks/index-
|
|
|
1 |
+
import{S as l,i,s as r,F as u,G as f,H as _,I as c,q as p,o as d}from"./chunks/index-c61749f5.js";function m(n){let s;const o=n[1].default,e=u(o,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,[a]){e&&e.p&&(!s||a&1)&&f(e,o,t,t[0],s?c(o,t[0],a,null):_(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){d(e,t),s=!1},d(t){e&&e.d(t)}}}function $(n,s,o){let{$$slots:e={},$$scope:t}=s;return n.$$set=a=>{"$$scope"in a&&o(0,t=a.$$scope)},[t,e]}class h extends l{constructor(s){super(),i(this,s,$,m,r,{})}}export{h as default};
|
static/_app/manifest.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
{
|
2 |
".svelte-kit/runtime/client/start.js": {
|
3 |
-
"file": "start-
|
4 |
"src": ".svelte-kit/runtime/client/start.js",
|
5 |
"isEntry": true,
|
6 |
"imports": [
|
7 |
-
"_index-
|
8 |
-
"_index-
|
9 |
],
|
10 |
"dynamicImports": [
|
11 |
".svelte-kit/runtime/components/layout.svelte",
|
@@ -14,43 +14,43 @@
|
|
14 |
]
|
15 |
},
|
16 |
".svelte-kit/runtime/components/layout.svelte": {
|
17 |
-
"file": "layout.svelte-
|
18 |
"src": ".svelte-kit/runtime/components/layout.svelte",
|
19 |
"isEntry": true,
|
20 |
"isDynamicEntry": true,
|
21 |
"imports": [
|
22 |
-
"_index-
|
23 |
]
|
24 |
},
|
25 |
".svelte-kit/runtime/components/error.svelte": {
|
26 |
-
"file": "error.svelte-
|
27 |
"src": ".svelte-kit/runtime/components/error.svelte",
|
28 |
"isEntry": true,
|
29 |
"isDynamicEntry": true,
|
30 |
"imports": [
|
31 |
-
"_index-
|
32 |
]
|
33 |
},
|
34 |
"src/routes/index.svelte": {
|
35 |
-
"file": "pages/index.svelte-
|
36 |
"src": "src/routes/index.svelte",
|
37 |
"isEntry": true,
|
38 |
"isDynamicEntry": true,
|
39 |
"imports": [
|
40 |
-
"_index-
|
41 |
-
"_index-
|
42 |
],
|
43 |
"css": [
|
44 |
-
"assets/pages/index.svelte-
|
45 |
]
|
46 |
},
|
47 |
-
"_index-
|
48 |
-
"file": "chunks/index-
|
49 |
},
|
50 |
-
"_index-
|
51 |
-
"file": "chunks/index-
|
52 |
"imports": [
|
53 |
-
"_index-
|
54 |
]
|
55 |
}
|
56 |
}
|
|
|
1 |
{
|
2 |
".svelte-kit/runtime/client/start.js": {
|
3 |
+
"file": "start-d715fd74.js",
|
4 |
"src": ".svelte-kit/runtime/client/start.js",
|
5 |
"isEntry": true,
|
6 |
"imports": [
|
7 |
+
"_index-c61749f5.js",
|
8 |
+
"_index-f9918abc.js"
|
9 |
],
|
10 |
"dynamicImports": [
|
11 |
".svelte-kit/runtime/components/layout.svelte",
|
|
|
14 |
]
|
15 |
},
|
16 |
".svelte-kit/runtime/components/layout.svelte": {
|
17 |
+
"file": "layout.svelte-0c060267.js",
|
18 |
"src": ".svelte-kit/runtime/components/layout.svelte",
|
19 |
"isEntry": true,
|
20 |
"isDynamicEntry": true,
|
21 |
"imports": [
|
22 |
+
"_index-c61749f5.js"
|
23 |
]
|
24 |
},
|
25 |
".svelte-kit/runtime/components/error.svelte": {
|
26 |
+
"file": "error.svelte-83166d57.js",
|
27 |
"src": ".svelte-kit/runtime/components/error.svelte",
|
28 |
"isEntry": true,
|
29 |
"isDynamicEntry": true,
|
30 |
"imports": [
|
31 |
+
"_index-c61749f5.js"
|
32 |
]
|
33 |
},
|
34 |
"src/routes/index.svelte": {
|
35 |
+
"file": "pages/index.svelte-a12665f4.js",
|
36 |
"src": "src/routes/index.svelte",
|
37 |
"isEntry": true,
|
38 |
"isDynamicEntry": true,
|
39 |
"imports": [
|
40 |
+
"_index-c61749f5.js",
|
41 |
+
"_index-f9918abc.js"
|
42 |
],
|
43 |
"css": [
|
44 |
+
"assets/pages/index.svelte-45cd6b36.css"
|
45 |
]
|
46 |
},
|
47 |
+
"_index-c61749f5.js": {
|
48 |
+
"file": "chunks/index-c61749f5.js"
|
49 |
},
|
50 |
+
"_index-f9918abc.js": {
|
51 |
+
"file": "chunks/index-f9918abc.js",
|
52 |
"imports": [
|
53 |
+
"_index-c61749f5.js"
|
54 |
]
|
55 |
}
|
56 |
}
|
static/_app/pages/index.svelte-6719d8d0.js
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
import{S as W,i as X,s as Y,e as v,k as w,c as y,a as b,d as h,m as E,K as te,b as _,g as B,J as u,L as z,t as C,h as S,j as Ie,E as F,M as He,N as j,O as ue,P as Ge,w as V,x as H,y as G,Q as Ue,q as A,o as M,B as U,R as ie,T as We,U as fe,f as ce,V as Xe,W as ae,n as Ne,p as De,X as Ye,l as de,Y as Je}from"../chunks/index-f8f7cfca.js";import{w as se}from"../chunks/index-7a30815e.js";const be=se("synth"),ke=se("medium"),$e=se("medium"),ye=se(!1),we=se(""),Ee=se(""),Te=se(""),_e={piano:"Piano",chamber:"Chamber Music",rock_and_metal:"Rock and Metal",synth:"Synthesizer",church:"Church",timpani_strings_harp:"Timpani, Contrabass, Harp",country:"Country"},Ke={low:"Low",medium:"Medium",high:"High"},Qe={low:"Low",medium:"Medium",high:"High",very_high:"Very High"};function Me(a,e,t){const s=a.slice();return s[4]=e[t],s[6]=t,s}function je(a){let e,t,s,c,l,n,r,o,f,d,i,g;return{c(){e=v("label"),t=v("div"),s=v("img"),n=w(),r=v("input"),f=w(),this.h()},l(p){e=y(p,"LABEL",{"data-selected":!0,class:!0});var $=b(e);t=y($,"DIV",{class:!0});var O=b(t);s=y(O,"IMG",{src:!0,alt:!0,class:!0}),O.forEach(h),n=E($),r=y($,"INPUT",{type:!0,class:!0}),f=E($),$.forEach(h),this.h()},h(){te(s.src,c=`${a[4]}.svg`)||_(s,"src",c),_(s,"alt",l=_e[a[4]]),_(s,"class","svelte-1r9pswz"),_(t,"class","svelte-1r9pswz"),_(r,"type","radio"),r.__value=o=a[4],r.value=r.__value,_(r,"class","svelte-1r9pswz"),a[3][0].push(r),_(e,"data-selected",d=a[0]===a[4]),_(e,"class","svelte-1r9pswz")},m(p,$){B(p,e,$),u(e,t),u(t,s),u(e,n),u(e,r),r.checked=r.__value===a[0],u(e,f),i||(g=z(r,"change",a[2]),i=!0)},p(p,$){$&1&&(r.checked=r.__value===p[0]),$&1&&d!==(d=p[0]===p[4])&&_(e,"data-selected",d)},d(p){p&&h(e),a[3][0].splice(a[3][0].indexOf(r),1),i=!1,g()}}}function Ze(a){let e,t,s=(_e[a[0]]||"Synthesizer")+"",c,l,n,r=a[1],o=[];for(let f=0;f<r.length;f+=1)o[f]=je(Me(a,r,f));return{c(){e=v("fieldset"),t=v("legend"),c=C(s),l=w(),n=v("div");for(let f=0;f<o.length;f+=1)o[f].c();this.h()},l(f){e=y(f,"FIELDSET",{class:!0});var d=b(e);t=y(d,"LEGEND",{class:!0});var i=b(t);c=S(i,s),i.forEach(h),l=E(d),n=y(d,"DIV",{class:!0});var g=b(n);for(let p=0;p<o.length;p+=1)o[p].l(g);g.forEach(h),d.forEach(h),this.h()},h(){_(t,"class","svelte-1r9pswz"),_(n,"class","grid svelte-1r9pswz"),_(e,"class","svelte-1r9pswz")},m(f,d){B(f,e,d),u(e,t),u(t,c),u(e,l),u(e,n);for(let i=0;i<o.length;i+=1)o[i].m(n,null)},p(f,[d]){if(d&1&&s!==(s=(_e[f[0]]||"Synthesizer")+"")&&Ie(c,s),d&3){r=f[1];let i;for(i=0;i<r.length;i+=1){const g=Me(f,r,i);o[i]?o[i].p(g,d):(o[i]=je(g),o[i].c(),o[i].m(n,null))}for(;i<o.length;i+=1)o[i].d(1);o.length=r.length}},i:F,o:F,d(f){f&&h(e),He(o,f)}}}function xe(a,e,t){let s;j(a,be,r=>t(0,s=r));const c=Object.keys(_e),l=[[]];function n(){s=this.__value,be.set(s)}return[s,c,n,l]}class et extends W{constructor(e){super(),X(this,e,xe,Ze,Y,{})}}function ze(a,e,t){const s=a.slice();return s[5]=e[t],s}function Pe(a){let e,t=a[1][a[5]]+"",s,c,l,n,r,o,f;return{c(){e=v("label"),s=C(t),c=w(),l=v("input"),this.h()},l(d){e=y(d,"LABEL",{"data-selected":!0,class:!0});var i=b(e);s=S(i,t),c=E(i),l=y(i,"INPUT",{type:!0,class:!0}),i.forEach(h),this.h()},h(){_(l,"type","radio"),l.__value=n=a[5],l.value=l.__value,_(l,"class","svelte-1m848u0"),a[4][0].push(l),_(e,"data-selected",r=a[5]===a[0]),_(e,"class","svelte-1m848u0")},m(d,i){B(d,e,i),u(e,s),u(e,c),u(e,l),l.checked=l.__value===a[0],o||(f=z(l,"change",a[3]),o=!0)},p(d,i){i&2&&t!==(t=d[1][d[5]]+"")&&Ie(s,t),i&1&&(l.checked=l.__value===d[0]),i&1&&r!==(r=d[5]===d[0])&&_(e,"data-selected",r)},d(d){d&&h(e),a[4][0].splice(a[4][0].indexOf(l),1),o=!1,f()}}}function tt(a){let e,t,s,c=a[2],l=[];for(let n=0;n<c.length;n+=1)l[n]=Pe(ze(a,c,n));return{c(){e=v("div");for(let n=0;n<l.length;n+=1)l[n].c();t=w(),s=v("input"),this.h()},l(n){e=y(n,"DIV",{class:!0});var r=b(e);for(let o=0;o<l.length;o+=1)l[o].l(r);t=E(r),s=y(r,"INPUT",{type:!0,class:!0}),r.forEach(h),this.h()},h(){_(s,"type","radio"),s.checked=!0,_(s,"class","svelte-1m848u0"),_(e,"class","options svelte-1m848u0")},m(n,r){B(n,e,r);for(let o=0;o<l.length;o+=1)l[o].m(e,null);u(e,t),u(e,s)},p(n,[r]){if(r&7){c=n[2];let o;for(o=0;o<c.length;o+=1){const f=ze(n,c,o);l[o]?l[o].p(f,r):(l[o]=Pe(f),l[o].c(),l[o].m(e,t))}for(;o<l.length;o+=1)l[o].d(1);l.length=c.length}},i:F,o:F,d(n){n&&h(e),He(l,n)}}}function st(a,e,t){let{options:s}=e;const c=Object.keys(s);let{selection:l=c[1]}=e;const n=[[]];function r(){l=this.__value,t(0,l)}return a.$$set=o=>{"options"in o&&t(1,s=o.options),"selection"in o&&t(0,l=o.selection)},[l,s,c,r,n]}class Fe extends W{constructor(e){super(),X(this,e,st,tt,Y,{options:1,selection:0})}}function lt(a){let e,t,s,c,l,n,r,o;function f(i){a[1](i)}let d={options:Ke};return a[0]!==void 0&&(d.selection=a[0]),n=new Fe({props:d}),ue.push(()=>Ge(n,"selection",f)),{c(){e=v("div"),t=v("fieldset"),s=v("legend"),c=C("Note density"),l=w(),V(n.$$.fragment),this.h()},l(i){e=y(i,"DIV",{});var g=b(e);t=y(g,"FIELDSET",{class:!0});var p=b(t);s=y(p,"LEGEND",{class:!0});var $=b(s);c=S($,"Note density"),$.forEach(h),l=E(p),H(n.$$.fragment,p),p.forEach(h),g.forEach(h),this.h()},h(){_(s,"class","svelte-1ikh8be"),_(t,"class","svelte-1ikh8be")},m(i,g){B(i,e,g),u(e,t),u(t,s),u(s,c),u(t,l),G(n,t,null),o=!0},p(i,[g]){const p={};!r&&g&1&&(r=!0,p.selection=i[0],Ue(()=>r=!1)),n.$set(p)},i(i){o||(A(n.$$.fragment,i),o=!0)},o(i){M(n.$$.fragment,i),o=!1},d(i){i&&h(e),U(n)}}}function nt(a,e,t){let s;j(a,ke,l=>t(0,s=l));function c(l){s=l,ke.set(s)}return[s,c]}class at extends W{constructor(e){super(),X(this,e,nt,lt,Y,{})}}function rt(a){let e,t,s,c,l,n,r,o;function f(i){a[1](i)}let d={options:Qe};return a[0]!==void 0&&(d.selection=a[0]),n=new Fe({props:d}),ue.push(()=>Ge(n,"selection",f)),{c(){e=v("div"),t=v("fieldset"),s=v("legend"),c=C("Temperature"),l=w(),V(n.$$.fragment),this.h()},l(i){e=y(i,"DIV",{});var g=b(e);t=y(g,"FIELDSET",{class:!0});var p=b(t);s=y(p,"LEGEND",{class:!0});var $=b(s);c=S($,"Temperature"),$.forEach(h),l=E(p),H(n.$$.fragment,p),p.forEach(h),g.forEach(h),this.h()},h(){_(s,"class","svelte-1ikh8be"),_(t,"class","svelte-1ikh8be")},m(i,g){B(i,e,g),u(e,t),u(t,s),u(s,c),u(t,l),G(n,t,null),o=!0},p(i,[g]){const p={};!r&&g&1&&(r=!0,p.selection=i[0],Ue(()=>r=!1)),n.$set(p)},i(i){o||(A(n.$$.fragment,i),o=!0)},o(i){M(n.$$.fragment,i),o=!1},d(i){i&&h(e),U(n)}}}function it(a,e,t){let s;j(a,$e,l=>t(0,s=l));function c(l){s=l,$e.set(s)}return[s,c]}class ot extends W{constructor(e){super(),X(this,e,it,rt,Y,{})}}function ct(a){let e,t,s;return{c(){e=C("Compose "),t=v("img"),this.h()},l(c){e=S(c,"Compose "),t=y(c,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){te(t.src,s="wand.svg")||_(t,"src",s),_(t,"alt","Magic wand"),_(t,"class","svelte-18w38ow")},m(c,l){B(c,e,l),B(c,t,l)},d(c){c&&h(e),c&&h(t)}}}function ut(a){let e;return{c(){e=C("Composing...")},l(t){e=S(t,"Composing...")},m(t,s){B(t,e,s)},d(t){t&&h(e)}}}function ft(a){let e,t,s;function c(r,o){return r[0]?ut:ct}let l=c(a),n=l(a);return{c(){e=v("button"),n.c(),this.h()},l(r){e=y(r,"BUTTON",{class:!0});var o=b(e);n.l(o),o.forEach(h),this.h()},h(){e.disabled=a[0],_(e,"class","svelte-18w38ow")},m(r,o){B(r,e,o),n.m(e,null),t||(s=z(e,"click",a[1]),t=!0)},p(r,[o]){l!==(l=c(r))&&(n.d(1),n=l(r),n&&(n.c(),n.m(e,null))),o&1&&(e.disabled=r[0])},i:F,o:F,d(r){r&&h(e),n.d(),t=!1,s()}}}function dt(a,e,t){let s,c,l,n,r,o,f;return j(a,ye,i=>t(0,s=i)),j(a,we,i=>t(2,c=i)),j(a,Te,i=>t(3,l=i)),j(a,Ee,i=>t(4,n=i)),j(a,$e,i=>t(5,r=i)),j(a,ke,i=>t(6,o=i)),j(a,be,i=>t(7,f=i)),[s,async()=>{try{ie(ye,s=!0,s);const i=await fetch("compose",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({music_style:f,density:o,temperature:r})});if(!i.ok)throw new Error(`Unable to create composition: [${i.status}] ${i.text()}`);const{audio:g,image:p,tokens:$}=await i.json();ie(Ee,n=p,n),ie(Te,l=$,l),ie(we,c=g,c)}catch(i){console.error(i)}finally{ie(ye,s=!1,s)}}]}class _t extends W{constructor(e){super(),X(this,e,dt,ft,Y,{})}}function re(a,{delay:e=0,duration:t=400,easing:s=We}={}){const c=+getComputedStyle(a).opacity;return{delay:e,duration:t,easing:s,css:l=>`opacity: ${l*c}`}}function qe(a){let e,t,s,c,l,n,r,o=!1,f,d=!0,i,g,p=`translateX(${a[5]*(a[0]/a[1])}px)`,$,O,L,P,q;function R(){cancelAnimationFrame(f),n.paused||(f=Je(R),o=!0),a[12].call(n)}let m=a[2]&&Re(a);return{c(){e=v("section"),t=v("div"),s=v("img"),l=w(),n=v("audio"),i=w(),g=v("div"),$=w(),m&&m.c(),this.h()},l(k){e=y(k,"SECTION",{class:!0});var N=b(e);t=y(N,"DIV",{class:!0});var T=b(t);s=y(T,"IMG",{class:!0,src:!0,alt:!0,draggable:!0}),l=E(T),n=y(T,"AUDIO",{src:!0,class:!0}),b(n).forEach(h),i=E(T),g=y(T,"DIV",{class:!0}),b(g).forEach(h),$=E(T),m&&m.l(T),T.forEach(h),N.forEach(h),this.h()},h(){_(s,"class","visualisation svelte-t1xv1q"),te(s.src,c=a[7])||_(s,"src",c),_(s,"alt","MIDI notes of composition"),_(s,"draggable","false"),te(n.src,r=a[6])||_(n,"src",r),_(n,"class","svelte-t1xv1q"),a[1]===void 0&&fe(()=>a[13].call(n)),_(g,"class","handle svelte-t1xv1q"),ce(g,"transform",p,!1),_(t,"class","container svelte-t1xv1q"),ce(t,"width",a[5]?a[5]+"px":"512px",!1),_(e,"class","svelte-t1xv1q")},m(k,N){B(k,e,N),u(e,t),u(t,s),a[10](s),u(t,l),u(t,n),u(t,i),u(t,g),u(t,$),m&&m.m(t,null),a[16](t),L=!0,P||(q=[z(s,"click",a[11]),z(n,"timeupdate",R),z(n,"durationchange",a[13]),z(n,"play",a[14]),z(n,"pause",a[14]),z(t,"mousemove",a[8]),z(t,"touchmove",Xe(a[8]))],P=!0)},p(k,N){(!L||N&128&&!te(s.src,c=k[7]))&&_(s,"src",c),(!L||N&64&&!te(n.src,r=k[6]))&&_(n,"src",r),!o&&N&1&&!isNaN(k[0])&&(n.currentTime=k[0]),o=!1,N&4&&d!==(d=k[2])&&n[d?"pause":"play"](),N&35&&p!==(p=`translateX(${k[5]*(k[0]/k[1])}px)`)&&ce(g,"transform",p,!1),k[2]?m?(m.p(k,N),N&4&&A(m,1)):(m=Re(k),m.c(),A(m,1),m.m(t,null)):m&&(Ne(),M(m,1,1,()=>{m=null}),De()),N&32&&ce(t,"width",k[5]?k[5]+"px":"512px",!1)},i(k){L||(A(m),fe(()=>{O||(O=ae(e,re,{},!0)),O.run(1)}),L=!0)},o(k){M(m),O||(O=ae(e,re,{},!1)),O.run(0),L=!1},d(k){k&&h(e),a[10](null),m&&m.d(),a[16](null),k&&O&&O.end(),P=!1,Ye(q)}}}function Re(a){let e,t,s,c,l,n;return{c(){e=v("img"),this.h()},l(r){e=y(r,"IMG",{class:!0,src:!0,alt:!0,draggable:!0}),this.h()},h(){_(e,"class","play svelte-t1xv1q"),te(e.src,t="play.svg")||_(e,"src",t),_(e,"alt","Play button"),_(e,"draggable","false")},m(r,o){B(r,e,o),c=!0,l||(n=z(e,"click",a[15]),l=!0)},p:F,i(r){c||(fe(()=>{s||(s=ae(e,re,{},!0)),s.run(1)}),c=!0)},o(r){s||(s=ae(e,re,{},!1)),s.run(0),c=!1},d(r){r&&h(e),r&&s&&s.end(),l=!1,n()}}}function ht(a){let e,t,s,c,l=a[6]&&qe(a);return{c(){l&&l.c(),e=de()},l(n){l&&l.l(n),e=de()},m(n,r){l&&l.m(n,r),B(n,e,r),t=!0,s||(c=z(window,"keydown",a[9]),s=!0)},p(n,[r]){n[6]?l?(l.p(n,r),r&64&&A(l,1)):(l=qe(n),l.c(),A(l,1),l.m(e.parentNode,e)):l&&(Ne(),M(l,1,1,()=>{l=null}),De())},i(n){t||(A(l),t=!0)},o(n){M(l),t=!1},d(n){l&&l.d(n),n&&h(e),s=!1,c()}}}function pt(a,e,t){let s,c,l;j(a,we,m=>t(6,c=m)),j(a,Ee,m=>t(7,l=m));let n,r,o=!0,f,d;const i=m=>{if(!r||m.type!=="touchmove"&&!(m.buttons&1))return;const{left:k,right:N}=f.getBoundingClientRect();t(0,n=r*(m.clientX-k)/(N-k))},g=m=>{m.code==="Space"&&t(2,o=!o)};function p(m){ue[m?"unshift":"push"](()=>{d=m,t(3,d)})}const $=()=>t(2,o=!o);function O(){n=this.currentTime,t(0,n)}function L(){r=this.duration,t(1,r)}function P(){o=this.paused,t(2,o)}const q=()=>t(2,o=!o);function R(m){ue[m?"unshift":"push"](()=>{f=m,t(4,f)})}return a.$$.update=()=>{a.$$.dirty&8&&t(5,s=d&&d.clientWidth),a.$$.dirty&15&&(n||r||!o)&&t(5,s=d&&d.clientWidth)},[n,r,o,d,f,s,c,l,i,g,p,$,O,L,P,q,R]}class mt extends W{constructor(e){super(),X(this,e,pt,ht,Y,{})}}function Ve(a){let e,t,s,c,l,n,r,o;return{c(){e=v("section"),t=v("h2"),s=C("Tokenized notes"),c=w(),l=v("p"),n=C(a[0]),this.h()},l(f){e=y(f,"SECTION",{class:!0});var d=b(e);t=y(d,"H2",{});var i=b(t);s=S(i,"Tokenized notes"),i.forEach(h),c=E(d),l=y(d,"P",{class:!0});var g=b(l);n=S(g,a[0]),g.forEach(h),d.forEach(h),this.h()},h(){_(l,"class","svelte-4un5mw"),_(e,"class","svelte-4un5mw")},m(f,d){B(f,e,d),u(e,t),u(t,s),u(e,c),u(e,l),u(l,n),o=!0},p(f,d){(!o||d&1)&&Ie(n,f[0])},i(f){o||(fe(()=>{r||(r=ae(e,re,{},!0)),r.run(1)}),o=!0)},o(f){r||(r=ae(e,re,{},!1)),r.run(0),o=!1},d(f){f&&h(e),f&&r&&r.end()}}}function gt(a){let e,t,s=a[0]&&Ve(a);return{c(){s&&s.c(),e=de()},l(c){s&&s.l(c),e=de()},m(c,l){s&&s.m(c,l),B(c,e,l),t=!0},p(c,[l]){c[0]?s?(s.p(c,l),l&1&&A(s,1)):(s=Ve(c),s.c(),A(s,1),s.m(e.parentNode,e)):s&&(Ne(),M(s,1,1,()=>{s=null}),De())},i(c){t||(A(s),t=!0)},o(c){M(s),t=!1},d(c){s&&s.d(c),c&&h(e)}}}function vt(a,e,t){let s;return j(a,Te,c=>t(0,s=c)),[s]}class yt extends W{constructor(e){super(),X(this,e,vt,gt,Y,{})}}function bt(a){let e,t,s,c,l,n,r,o,f,d,i,g,p,$,O,L,P,q,R,m,k,N,T,J,he,K,pe,Q,me,Z,ge,x,ve,ee,oe;return J=new et({}),K=new at({}),Q=new ot({}),Z=new _t({}),x=new mt({}),ee=new yt({}),{c(){e=v("main"),t=v("h1"),s=C("Composer"),c=w(),l=v("p"),n=C("A hundred thousand songs used to train. One AI model. Infinite compositions."),r=w(),o=v("p"),f=C(`This space contains a deep neural network model that can compose music. You can use it to generate music in
|
2 |
-
different styles, 4 bars at a time.`),d=w(),i=v("p"),g=C("Developed by "),p=v("a"),$=C("Ron Au"),O=C(` and
|
3 |
-
`),L=v("a"),P=C("Tristan Behrens"),q=C("."),R=w(),m=v("p"),k=C("Have fun! And always feel free to send us some feedback and share your compositions!"),N=w(),T=v("section"),V(J.$$.fragment),he=w(),V(K.$$.fragment),pe=w(),V(Q.$$.fragment),me=w(),V(Z.$$.fragment),ge=w(),V(x.$$.fragment),ve=w(),V(ee.$$.fragment),this.h()},l(D){e=y(D,"MAIN",{class:!0});var I=b(e);t=y(I,"H1",{class:!0});var Oe=b(t);s=S(Oe,"Composer"),Oe.forEach(h),c=E(I),l=y(I,"P",{class:!0});var Ce=b(l);n=S(Ce,"A hundred thousand songs used to train. One AI model. Infinite compositions."),Ce.forEach(h),r=E(I),o=y(I,"P",{class:!0});var Se=b(o);f=S(Se,`This space contains a deep neural network model that can compose music. You can use it to generate music in
|
4 |
-
different styles, 4 bars at a time.`),Se.forEach(h),d=E(I),i=y(I,"P",{class:!0});var le=b(i);g=S(le,"Developed by "),p=y(le,"A",{href:!0});var Ae=b(p);$=S(Ae,"Ron Au"),Ae.forEach(h),O=S(le,` and
|
5 |
-
`),L=y(le,"A",{href:!0});var Be=b(L);P=S(Be,"Tristan Behrens"),Be.forEach(h),q=S(le,"."),le.forEach(h),R=E(I),m=y(I,"P",{class:!0});var Le=b(m);k=S(Le,"Have fun! And always feel free to send us some feedback and share your compositions!"),Le.forEach(h),N=E(I),T=y(I,"SECTION",{id:!0,class:!0});var ne=b(T);H(J.$$.fragment,ne),he=E(ne),H(K.$$.fragment,ne),pe=E(ne),H(Q.$$.fragment,ne),ne.forEach(h),me=E(I),H(Z.$$.fragment,I),ge=E(I),H(x.$$.fragment,I),ve=E(I),H(ee.$$.fragment,I),I.forEach(h),this.h()},h(){_(t,"class","svelte-1rfjlkw"),_(l,"class","heading svelte-1rfjlkw"),_(o,"class","svelte-1rfjlkw"),_(p,"href","https://twitter.com/ronvoluted"),_(L,"href","https://twitter.com/DrTBehrens"),_(i,"class","svelte-1rfjlkw"),_(m,"class","svelte-1rfjlkw"),_(T,"id","options"),_(T,"class","svelte-1rfjlkw"),_(e,"class","svelte-1rfjlkw")},m(D,I){B(D,e,I),u(e,t),u(t,s),u(e,c),u(e,l),u(l,n),u(e,r),u(e,o),u(o,f),u(e,d),u(e,i),u(i,g),u(i,p),u(p,$),u(i,O),u(i,L),u(L,P),u(i,q),u(e,R),u(e,m),u(m,k),u(e,N),u(e,T),G(J,T,null),u(T,he),G(K,T,null),u(T,pe),G(Q,T,null),u(e,me),G(Z,e,null),u(e,ge),G(x,e,null),u(e,ve),G(ee,e,null),oe=!0},p:F,i(D){oe||(A(J.$$.fragment,D),A(K.$$.fragment,D),A(Q.$$.fragment,D),A(Z.$$.fragment,D),A(x.$$.fragment,D),A(ee.$$.fragment,D),oe=!0)},o(D){M(J.$$.fragment,D),M(K.$$.fragment,D),M(Q.$$.fragment,D),M(Z.$$.fragment,D),M(x.$$.fragment,D),M(ee.$$.fragment,D),oe=!1},d(D){D&&h(e),U(J),U(K),U(Q),U(Z),U(x),U(ee)}}}class wt extends W{constructor(e){super(),X(this,e,null,bt,Y,{})}}export{wt as default};
|
|
|
|
|
|
|
|
|
|
|
|
static/_app/pages/index.svelte-a12665f4.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import{S as Y,i as J,s as K,e as v,k as E,c as y,a as b,d as m,m as T,K as ue,b as d,g as S,J as f,L,t as C,h as D,j as Te,E as q,M as Ge,N as P,O as de,P as Ue,w as U,x as W,y as X,Q as We,q as O,o as A,B as F,R as oe,T as qe,f as re,U as ce,V as Ye,W as Je,X as ae,n as Ie,p as Ne,Y as Xe,l as _e,Z as Ke}from"../chunks/index-c61749f5.js";import{w as se}from"../chunks/index-f9918abc.js";const be=se("synth"),ke=se("medium"),we=se("medium"),ye=se(!1),$e=se(""),Ae=se(""),Ee=se(""),he={piano:"Piano",chamber:"Chamber Music",rock_and_metal:"Rock and Metal",synth:"Synthesizer",church:"Church",timpani_strings_harp:"Timpani, Contrabass, Harp",country:"Country"},Qe={low:"Low",medium:"Medium",high:"High"},Ze={low:"Low",medium:"Medium",high:"High",very_high:"Very High"};function Be(r,e,t){const s=r.slice();return s[4]=e[t],s[6]=t,s}function Le(r){let e,t,s,c,l,a,n,o,u,_,i,g;return{c(){e=v("label"),t=v("div"),s=v("img"),a=E(),n=v("input"),u=E(),this.h()},l(h){e=y(h,"LABEL",{"data-selected":!0,class:!0});var k=b(e);t=y(k,"DIV",{class:!0});var j=b(t);s=y(j,"IMG",{src:!0,alt:!0,class:!0}),j.forEach(m),a=T(k),n=y(k,"INPUT",{type:!0,class:!0}),u=T(k),k.forEach(m),this.h()},h(){ue(s.src,c=`${r[4]}.svg`)||d(s,"src",c),d(s,"alt",l=he[r[4]]),d(s,"class","svelte-1r9pswz"),d(t,"class","svelte-1r9pswz"),d(n,"type","radio"),n.__value=o=r[4],n.value=n.__value,d(n,"class","svelte-1r9pswz"),r[3][0].push(n),d(e,"data-selected",_=r[0]===r[4]),d(e,"class","svelte-1r9pswz")},m(h,k){S(h,e,k),f(e,t),f(t,s),f(e,a),f(e,n),n.checked=n.__value===r[0],f(e,u),i||(g=L(n,"change",r[2]),i=!0)},p(h,k){k&1&&(n.checked=n.__value===h[0]),k&1&&_!==(_=h[0]===h[4])&&d(e,"data-selected",_)},d(h){h&&m(e),r[3][0].splice(r[3][0].indexOf(n),1),i=!1,g()}}}function xe(r){let e,t,s=(he[r[0]]||"Synthesizer")+"",c,l,a,n=r[1],o=[];for(let u=0;u<n.length;u+=1)o[u]=Le(Be(r,n,u));return{c(){e=v("fieldset"),t=v("legend"),c=C(s),l=E(),a=v("div");for(let u=0;u<o.length;u+=1)o[u].c();this.h()},l(u){e=y(u,"FIELDSET",{class:!0});var _=b(e);t=y(_,"LEGEND",{class:!0});var i=b(t);c=D(i,s),i.forEach(m),l=T(_),a=y(_,"DIV",{class:!0});var g=b(a);for(let h=0;h<o.length;h+=1)o[h].l(g);g.forEach(m),_.forEach(m),this.h()},h(){d(t,"class","svelte-1r9pswz"),d(a,"class","grid svelte-1r9pswz"),d(e,"class","svelte-1r9pswz")},m(u,_){S(u,e,_),f(e,t),f(t,c),f(e,l),f(e,a);for(let i=0;i<o.length;i+=1)o[i].m(a,null)},p(u,[_]){if(_&1&&s!==(s=(he[u[0]]||"Synthesizer")+"")&&Te(c,s),_&3){n=u[1];let i;for(i=0;i<n.length;i+=1){const g=Be(u,n,i);o[i]?o[i].p(g,_):(o[i]=Le(g),o[i].c(),o[i].m(a,null))}for(;i<o.length;i+=1)o[i].d(1);o.length=n.length}},i:q,o:q,d(u){u&&m(e),Ge(o,u)}}}function et(r,e,t){let s;P(r,be,n=>t(0,s=n));const c=Object.keys(he),l=[[]];function a(){s=this.__value,be.set(s)}return[s,c,a,l]}class tt extends Y{constructor(e){super(),J(this,e,et,xe,K,{})}}function je(r,e,t){const s=r.slice();return s[5]=e[t],s}function Pe(r){let e,t=r[1][r[5]]+"",s,c,l,a,n,o,u;return{c(){e=v("label"),s=C(t),c=E(),l=v("input"),this.h()},l(_){e=y(_,"LABEL",{"data-selected":!0,class:!0});var i=b(e);s=D(i,t),c=T(i),l=y(i,"INPUT",{type:!0,class:!0}),i.forEach(m),this.h()},h(){d(l,"type","radio"),l.__value=a=r[5],l.value=l.__value,d(l,"class","svelte-1m848u0"),r[4][0].push(l),d(e,"data-selected",n=r[5]===r[0]),d(e,"class","svelte-1m848u0")},m(_,i){S(_,e,i),f(e,s),f(e,c),f(e,l),l.checked=l.__value===r[0],o||(u=L(l,"change",r[3]),o=!0)},p(_,i){i&2&&t!==(t=_[1][_[5]]+"")&&Te(s,t),i&1&&(l.checked=l.__value===_[0]),i&1&&n!==(n=_[5]===_[0])&&d(e,"data-selected",n)},d(_){_&&m(e),r[4][0].splice(r[4][0].indexOf(l),1),o=!1,u()}}}function st(r){let e,t,s,c=r[2],l=[];for(let a=0;a<c.length;a+=1)l[a]=Pe(je(r,c,a));return{c(){e=v("div");for(let a=0;a<l.length;a+=1)l[a].c();t=E(),s=v("input"),this.h()},l(a){e=y(a,"DIV",{class:!0});var n=b(e);for(let o=0;o<l.length;o+=1)l[o].l(n);t=T(n),s=y(n,"INPUT",{type:!0,class:!0}),n.forEach(m),this.h()},h(){d(s,"type","radio"),s.checked=!0,d(s,"class","svelte-1m848u0"),d(e,"class","options svelte-1m848u0")},m(a,n){S(a,e,n);for(let o=0;o<l.length;o+=1)l[o].m(e,null);f(e,t),f(e,s)},p(a,[n]){if(n&7){c=a[2];let o;for(o=0;o<c.length;o+=1){const u=je(a,c,o);l[o]?l[o].p(u,n):(l[o]=Pe(u),l[o].c(),l[o].m(e,t))}for(;o<l.length;o+=1)l[o].d(1);l.length=c.length}},i:q,o:q,d(a){a&&m(e),Ge(l,a)}}}function lt(r,e,t){let{options:s}=e;const c=Object.keys(s);let{selection:l=c[1]}=e;const a=[[]];function n(){l=this.__value,t(0,l)}return r.$$set=o=>{"options"in o&&t(1,s=o.options),"selection"in o&&t(0,l=o.selection)},[l,s,c,n,a]}class Fe extends Y{constructor(e){super(),J(this,e,lt,st,K,{options:1,selection:0})}}function nt(r){let e,t,s,c,l,a,n,o;function u(i){r[1](i)}let _={options:Qe};return r[0]!==void 0&&(_.selection=r[0]),a=new Fe({props:_}),de.push(()=>Ue(a,"selection",u)),{c(){e=v("div"),t=v("fieldset"),s=v("legend"),c=C("Note density"),l=E(),U(a.$$.fragment),this.h()},l(i){e=y(i,"DIV",{});var g=b(e);t=y(g,"FIELDSET",{class:!0});var h=b(t);s=y(h,"LEGEND",{class:!0});var k=b(s);c=D(k,"Note density"),k.forEach(m),l=T(h),W(a.$$.fragment,h),h.forEach(m),g.forEach(m),this.h()},h(){d(s,"class","svelte-1ikh8be"),d(t,"class","svelte-1ikh8be")},m(i,g){S(i,e,g),f(e,t),f(t,s),f(s,c),f(t,l),X(a,t,null),o=!0},p(i,[g]){const h={};!n&&g&1&&(n=!0,h.selection=i[0],We(()=>n=!1)),a.$set(h)},i(i){o||(O(a.$$.fragment,i),o=!0)},o(i){A(a.$$.fragment,i),o=!1},d(i){i&&m(e),F(a)}}}function rt(r,e,t){let s;P(r,ke,l=>t(0,s=l));function c(l){s=l,ke.set(s)}return[s,c]}class at extends Y{constructor(e){super(),J(this,e,rt,nt,K,{})}}function it(r){let e,t,s,c,l,a,n,o;function u(i){r[1](i)}let _={options:Ze};return r[0]!==void 0&&(_.selection=r[0]),a=new Fe({props:_}),de.push(()=>Ue(a,"selection",u)),{c(){e=v("div"),t=v("fieldset"),s=v("legend"),c=C("Temperature"),l=E(),U(a.$$.fragment),this.h()},l(i){e=y(i,"DIV",{});var g=b(e);t=y(g,"FIELDSET",{class:!0});var h=b(t);s=y(h,"LEGEND",{class:!0});var k=b(s);c=D(k,"Temperature"),k.forEach(m),l=T(h),W(a.$$.fragment,h),h.forEach(m),g.forEach(m),this.h()},h(){d(s,"class","svelte-1ikh8be"),d(t,"class","svelte-1ikh8be")},m(i,g){S(i,e,g),f(e,t),f(t,s),f(s,c),f(t,l),X(a,t,null),o=!0},p(i,[g]){const h={};!n&&g&1&&(n=!0,h.selection=i[0],We(()=>n=!1)),a.$set(h)},i(i){o||(O(a.$$.fragment,i),o=!0)},o(i){A(a.$$.fragment,i),o=!1},d(i){i&&m(e),F(a)}}}function ot(r,e,t){let s;P(r,we,l=>t(0,s=l));function c(l){s=l,we.set(s)}return[s,c]}class ct extends Y{constructor(e){super(),J(this,e,ot,it,K,{})}}function ut(r){let e,t,s;return{c(){e=C("Compose "),t=v("img"),this.h()},l(c){e=D(c,"Compose "),t=y(c,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){ue(t.src,s="wand.svg")||d(t,"src",s),d(t,"alt","Magic wand"),d(t,"class","svelte-18w38ow")},m(c,l){S(c,e,l),S(c,t,l)},d(c){c&&m(e),c&&m(t)}}}function ft(r){let e;return{c(){e=C("Composing...")},l(t){e=D(t,"Composing...")},m(t,s){S(t,e,s)},d(t){t&&m(e)}}}function dt(r){let e,t,s;function c(n,o){return n[0]?ft:ut}let l=c(r),a=l(r);return{c(){e=v("button"),a.c(),this.h()},l(n){e=y(n,"BUTTON",{class:!0});var o=b(e);a.l(o),o.forEach(m),this.h()},h(){e.disabled=r[0],d(e,"class","svelte-18w38ow")},m(n,o){S(n,e,o),a.m(e,null),t||(s=L(e,"click",r[1]),t=!0)},p(n,[o]){l!==(l=c(n))&&(a.d(1),a=l(n),a&&(a.c(),a.m(e,null))),o&1&&(e.disabled=n[0])},i:q,o:q,d(n){n&&m(e),a.d(),t=!1,s()}}}function _t(r,e,t){let s,c,l,a,n,o,u;return P(r,ye,i=>t(0,s=i)),P(r,$e,i=>t(2,c=i)),P(r,Ee,i=>t(3,l=i)),P(r,Ae,i=>t(4,a=i)),P(r,we,i=>t(5,n=i)),P(r,ke,i=>t(6,o=i)),P(r,be,i=>t(7,u=i)),[s,async()=>{try{oe(ye,s=!0,s);const i=await fetch("compose",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({music_style:u,density:o,temperature:n})});if(!i.ok)throw new Error(`Unable to create composition: [${i.status}] ${i.text()}`);const{audio:g,image:h,tokens:k}=await i.json();oe(Ae,a=h,a),oe(Ee,l=k,l),oe($e,c=g,c)}catch(i){console.error(i)}finally{oe(ye,s=!1,s)}}]}class ht extends Y{constructor(e){super(),J(this,e,_t,dt,K,{})}}function ie(r,{delay:e=0,duration:t=400,easing:s=qe}={}){const c=+getComputedStyle(r).opacity;return{delay:e,duration:t,easing:s,css:l=>`opacity: ${l*c}`}}function Re(r){let e,t,s,c,l=`calc(${r[6]}px - 4rem)`,a,n,o,u=!1,_,i=!0,g,h,k=`translateX(${r[7]*(r[0]/r[1])}px)`,j,B,M,V,H,R;function G(){cancelAnimationFrame(_),n.paused||(_=Ke(G),u=!0),r[14].call(n)}let w=r[2]&&Ve(r);return{c(){e=v("section"),t=v("div"),s=v("img"),a=E(),n=v("audio"),g=E(),h=v("div"),j=E(),w&&w.c(),this.h()},l(p){e=y(p,"SECTION",{class:!0});var $=b(e);t=y($,"DIV",{class:!0});var z=b(t);s=y(z,"IMG",{class:!0,src:!0,alt:!0,draggable:!0}),a=T(z),n=y(z,"AUDIO",{src:!0,class:!0}),b(n).forEach(m),g=T(z),h=y(z,"DIV",{class:!0}),b(h).forEach(m),j=T(z),w&&w.l(z),z.forEach(m),$.forEach(m),this.h()},h(){d(s,"class","visualisation svelte-sa1t0p"),ue(s.src,c="compose.png")||d(s,"src",c),d(s,"alt","MIDI notes of composition"),d(s,"draggable","false"),re(s,"width",l,!1),ue(n.src,o="synth.wav")||d(n,"src",o),d(n,"class","svelte-sa1t0p"),r[1]===void 0&&ce(()=>r[15].call(n)),d(h,"class","handle svelte-sa1t0p"),re(h,"transform",k,!1),d(t,"class","container svelte-sa1t0p"),re(t,"width",Math.min(r[7],r[6])+"px",!1),d(e,"class","svelte-sa1t0p"),ce(()=>r[19].call(e))},m(p,$){S(p,e,$),f(e,t),f(t,s),r[12](s),f(t,a),f(t,n),f(t,g),f(t,h),f(t,j),w&&w.m(t,null),r[18](t),B=Ye(e,r[19].bind(e)),V=!0,H||(R=[L(s,"click",r[13]),L(n,"timeupdate",G),L(n,"durationchange",r[15]),L(n,"play",r[16]),L(n,"pause",r[16]),L(t,"mousemove",r[8]),L(t,"touchmove",Je(r[9]))],H=!0)},p(p,$){$&64&&l!==(l=`calc(${p[6]}px - 4rem)`)&&re(s,"width",l,!1),!u&&$&1&&!isNaN(p[0])&&(n.currentTime=p[0]),u=!1,$&4&&i!==(i=p[2])&&n[i?"pause":"play"](),$&131&&k!==(k=`translateX(${p[7]*(p[0]/p[1])}px)`)&&re(h,"transform",k,!1),p[2]?w?(w.p(p,$),$&4&&O(w,1)):(w=Ve(p),w.c(),O(w,1),w.m(t,null)):w&&(Ie(),A(w,1,1,()=>{w=null}),Ne()),$&192&&re(t,"width",Math.min(p[7],p[6])+"px",!1)},i(p){V||(O(w),ce(()=>{M||(M=ae(e,ie,{},!0)),M.run(1)}),V=!0)},o(p){A(w),M||(M=ae(e,ie,{},!1)),M.run(0),V=!1},d(p){p&&m(e),r[12](null),w&&w.d(),r[18](null),B(),p&&M&&M.end(),H=!1,Xe(R)}}}function Ve(r){let e,t,s,c,l,a;return{c(){e=v("img"),this.h()},l(n){e=y(n,"IMG",{class:!0,src:!0,alt:!0,draggable:!0}),this.h()},h(){d(e,"class","play svelte-sa1t0p"),ue(e.src,t="play.svg")||d(e,"src",t),d(e,"alt","Play button"),d(e,"draggable","false")},m(n,o){S(n,e,o),c=!0,l||(a=L(e,"click",r[17]),l=!0)},p:q,i(n){c||(ce(()=>{s||(s=ae(e,ie,{},!0)),s.run(1)}),c=!0)},o(n){s||(s=ae(e,ie,{},!1)),s.run(0),c=!1},d(n){n&&m(e),n&&s&&s.end(),l=!1,a()}}}function pt(r){let e,t,s,c,l=r[4]&&Re(r);return{c(){l&&l.c(),e=_e()},l(a){l&&l.l(a),e=_e()},m(a,n){l&&l.m(a,n),S(a,e,n),t=!0,s||(c=[L(window,"keydown",r[10]),L(window,"resize",r[11])],s=!0)},p(a,[n]){a[4]?l?(l.p(a,n),n&16&&O(l,1)):(l=Re(a),l.c(),O(l,1),l.m(e.parentNode,e)):l&&(Ie(),A(l,1,1,()=>{l=null}),Ne())},i(a){t||(O(l),t=!0)},o(a){A(l),t=!1},d(a){l&&l.d(a),a&&m(e),s=!1,Xe(c)}}}function mt(r,e,t){let s,c;P(r,$e,p=>t(4,c=p));let l,a,n=!0,o,u,_;const i=p=>{if(!a||!p.buttons)return;const{left:$,right:z}=o.getBoundingClientRect();t(0,l=a*(p.clientX-$)/(z-$))},g=p=>{if(!a)return;const{left:$,right:z}=o.getBoundingClientRect();t(0,l=a*(p.touches[0].clientX-$)/(z-$))},h=p=>{p.code==="Space"&&t(2,n=!n)},k=()=>t(7,s=u&&u.clientWidth);function j(p){de[p?"unshift":"push"](()=>{u=p,t(3,u)})}const B=()=>t(2,n=!n);function M(){l=this.currentTime,t(0,l)}function V(){a=this.duration,t(1,a)}function H(){n=this.paused,t(2,n)}const R=()=>t(2,n=!n);function G(p){de[p?"unshift":"push"](()=>{o=p,t(5,o)})}function w(){_=this.clientWidth,t(6,_)}return r.$$.update=()=>{r.$$.dirty&8&&t(7,s=u&&u.clientWidth),r.$$.dirty&31&&(c||l||a||!n)&&t(7,s=u&&u.clientWidth)},[l,a,n,u,c,o,_,s,i,g,h,k,j,B,M,V,H,R,G,w]}class gt extends Y{constructor(e){super(),J(this,e,mt,pt,K,{})}}function He(r){let e,t,s,c,l,a,n,o;return{c(){e=v("section"),t=v("h2"),s=C("Tokenized notes"),c=E(),l=v("p"),a=C(r[0]),this.h()},l(u){e=y(u,"SECTION",{class:!0});var _=b(e);t=y(_,"H2",{});var i=b(t);s=D(i,"Tokenized notes"),i.forEach(m),c=T(_),l=y(_,"P",{class:!0});var g=b(l);a=D(g,r[0]),g.forEach(m),_.forEach(m),this.h()},h(){d(l,"class","svelte-4un5mw"),d(e,"class","svelte-4un5mw")},m(u,_){S(u,e,_),f(e,t),f(t,s),f(e,c),f(e,l),f(l,a),o=!0},p(u,_){(!o||_&1)&&Te(a,u[0])},i(u){o||(ce(()=>{n||(n=ae(e,ie,{},!0)),n.run(1)}),o=!0)},o(u){n||(n=ae(e,ie,{},!1)),n.run(0),o=!1},d(u){u&&m(e),u&&n&&n.end()}}}function vt(r){let e,t,s=r[0]&&He(r);return{c(){s&&s.c(),e=_e()},l(c){s&&s.l(c),e=_e()},m(c,l){s&&s.m(c,l),S(c,e,l),t=!0},p(c,[l]){c[0]?s?(s.p(c,l),l&1&&O(s,1)):(s=He(c),s.c(),O(s,1),s.m(e.parentNode,e)):s&&(Ie(),A(s,1,1,()=>{s=null}),Ne())},i(c){t||(O(s),t=!0)},o(c){A(s),t=!1},d(c){s&&s.d(c),c&&m(e)}}}function yt(r,e,t){let s;return P(r,Ee,c=>t(0,s=c)),[s]}class bt extends Y{constructor(e){super(),J(this,e,yt,vt,K,{})}}function kt(r){let e,t,s,c,l,a,n,o,u,_,i,g,h,k,j,B,M,V,H,R,G,w,p,$,z,Q,pe,Z,me,x,ge,ee,ve,te,fe;return $=new tt({}),Q=new at({}),Z=new ct({}),x=new ht({}),ee=new gt({}),te=new bt({}),{c(){e=v("main"),t=v("h1"),s=C("Composer"),c=E(),l=v("p"),a=C("A hundred thousand songs used to train. One AI model. Infinite compositions."),n=E(),o=v("p"),u=C(`This space contains a deep neural network model that can compose music. You can use it to generate music in
|
2 |
+
different styles, 4 bars at a time.`),_=E(),i=v("p"),g=C("Developed by "),h=v("a"),k=C("Ron Au"),j=C(` and
|
3 |
+
`),B=v("a"),M=C("Tristan Behrens"),V=C("."),H=E(),R=v("p"),G=C("Have fun! And always feel free to send us some feedback and share your compositions!"),w=E(),p=v("section"),U($.$$.fragment),z=E(),U(Q.$$.fragment),pe=E(),U(Z.$$.fragment),me=E(),U(x.$$.fragment),ge=E(),U(ee.$$.fragment),ve=E(),U(te.$$.fragment),this.h()},l(N){e=y(N,"MAIN",{class:!0});var I=b(e);t=y(I,"H1",{class:!0});var Ce=b(t);s=D(Ce,"Composer"),Ce.forEach(m),c=T(I),l=y(I,"P",{class:!0});var De=b(l);a=D(De,"A hundred thousand songs used to train. One AI model. Infinite compositions."),De.forEach(m),n=T(I),o=y(I,"P",{class:!0});var Oe=b(o);u=D(Oe,`This space contains a deep neural network model that can compose music. You can use it to generate music in
|
4 |
+
different styles, 4 bars at a time.`),Oe.forEach(m),_=T(I),i=y(I,"P",{class:!0});var le=b(i);g=D(le,"Developed by "),h=y(le,"A",{href:!0,rel:!0,target:!0});var ze=b(h);k=D(ze,"Ron Au"),ze.forEach(m),j=D(le,` and
|
5 |
+
`),B=y(le,"A",{href:!0,rel:!0,target:!0});var Se=b(B);M=D(Se,"Tristan Behrens"),Se.forEach(m),V=D(le,"."),le.forEach(m),H=T(I),R=y(I,"P",{class:!0});var Me=b(R);G=D(Me,"Have fun! And always feel free to send us some feedback and share your compositions!"),Me.forEach(m),w=T(I),p=y(I,"SECTION",{id:!0,class:!0});var ne=b(p);W($.$$.fragment,ne),z=T(ne),W(Q.$$.fragment,ne),pe=T(ne),W(Z.$$.fragment,ne),ne.forEach(m),me=T(I),W(x.$$.fragment,I),ge=T(I),W(ee.$$.fragment,I),ve=T(I),W(te.$$.fragment,I),I.forEach(m),this.h()},h(){d(t,"class","svelte-1rfjlkw"),d(l,"class","heading svelte-1rfjlkw"),d(o,"class","svelte-1rfjlkw"),d(h,"href","https://twitter.com/ronvoluted"),d(h,"rel","noopener"),d(h,"target","_blank"),d(B,"href","https://twitter.com/DrTBehrens"),d(B,"rel","noopener"),d(B,"target","_blank"),d(i,"class","svelte-1rfjlkw"),d(R,"class","svelte-1rfjlkw"),d(p,"id","options"),d(p,"class","svelte-1rfjlkw"),d(e,"class","svelte-1rfjlkw")},m(N,I){S(N,e,I),f(e,t),f(t,s),f(e,c),f(e,l),f(l,a),f(e,n),f(e,o),f(o,u),f(e,_),f(e,i),f(i,g),f(i,h),f(h,k),f(i,j),f(i,B),f(B,M),f(i,V),f(e,H),f(e,R),f(R,G),f(e,w),f(e,p),X($,p,null),f(p,z),X(Q,p,null),f(p,pe),X(Z,p,null),f(e,me),X(x,e,null),f(e,ge),X(ee,e,null),f(e,ve),X(te,e,null),fe=!0},p:q,i(N){fe||(O($.$$.fragment,N),O(Q.$$.fragment,N),O(Z.$$.fragment,N),O(x.$$.fragment,N),O(ee.$$.fragment,N),O(te.$$.fragment,N),fe=!0)},o(N){A($.$$.fragment,N),A(Q.$$.fragment,N),A(Z.$$.fragment,N),A(x.$$.fragment,N),A(ee.$$.fragment,N),A(te.$$.fragment,N),fe=!1},d(N){N&&m(e),F($),F(Q),F(Z),F(x),F(ee),F(te)}}}class Et extends Y{constructor(e){super(),J(this,e,null,kt,K,{})}}export{Et as default};
|
static/_app/{start-5745fde1.js β start-d715fd74.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
var et=Object.defineProperty,tt=Object.defineProperties;var nt=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var Ie=(n,e,t)=>e in n?et(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))Te.call(e,t)&&Ie(n,t,e[t]);if(fe)for(var t of fe(e))De.call(e,t)&&Ie(n,t,e[t]);return n},ne=(n,e)=>tt(n,nt(e));var Ve=(n,e)=>{var t={};for(var s in n)Te.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(n!=null&&fe)for(var s of fe(n))e.indexOf(s)<0&&De.call(n,s)&&(t[s]=n[s]);return t};import{S as rt,i as st,s as it,e as at,c as ot,a as ct,d as V,b as we,f as B,g as q,t as lt,h as ft,j as ut,k as dt,l as C,m as pt,n as M,o as j,p as F,q as I,r as ht,u as _t,v as $e,w as z,x as se,y as J,z as ie,A as ae,B as K,C as oe,D as qe}from"./chunks/index-f8f7cfca.js";import{w as ue}from"./chunks/index-7a30815e.js";let ze="",He="";function mt(n){ze=n.base,He=n.assets||ze}function gt(n){let e,t,s;const l=[n[1]||{}];var c=n[0][0];function f(r){let i={};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f())),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&2?ie(l,[ae(r[1]||{})]):{};if(c!==(c=r[0][0])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function wt(n){let e,t,s;const l=[n[1]||{}];var c=n[0][0];function f(r){let i={$$slots:{default:[$t]},$$scope:{ctx:r}};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f(n))),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&2?ie(l,[ae(r[1]||{})]):{};if(i&525&&(a.$$scope={dirty:i,ctx:r}),c!==(c=r[0][0])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f(r)),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function bt(n){let e,t,s;const l=[n[2]||{}];var c=n[0][1];function f(r){let i={};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f())),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&4?ie(l,[ae(r[2]||{})]):{};if(c!==(c=r[0][1])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function yt(n){let e,t,s;const l=[n[2]||{}];var c=n[0][1];function f(r){let i={$$slots:{default:[vt]},$$scope:{ctx:r}};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f(n))),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&4?ie(l,[ae(r[2]||{})]):{};if(i&521&&(a.$$scope={dirty:i,ctx:r}),c!==(c=r[0][1])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f(r)),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function vt(n){let e,t,s;const l=[n[3]||{}];var c=n[0][2];function f(r){let i={};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f())),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&8?ie(l,[ae(r[3]||{})]):{};if(c!==(c=r[0][2])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function $t(n){let e,t,s,l;const c=[yt,bt],f=[];function r(i,a){return i[0][2]?0:1}return e=r(n),t=f[e]=c[e](n),{c(){t.c(),s=C()},l(i){t.l(i),s=C()},m(i,a){f[e].m(i,a),q(i,s,a),l=!0},p(i,a){let d=e;e=r(i),e===d?f[e].p(i,a):(M(),j(f[d],1,1,()=>{f[d]=null}),F(),t=f[e],t?t.p(i,a):(t=f[e]=c[e](i),t.c()),I(t,1),t.m(s.parentNode,s))},i(i){l||(I(t),l=!0)},o(i){j(t),l=!1},d(i){f[e].d(i),i&&V(s)}}}function Je(n){let e,t=n[5]&&Ke(n);return{c(){e=at("div"),t&&t.c(),this.h()},l(s){e=ot(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=ct(e);t&&t.l(l),l.forEach(V),this.h()},h(){we(e,"id","svelte-announcer"),we(e,"aria-live","assertive"),we(e,"aria-atomic","true"),B(e,"position","absolute"),B(e,"left","0"),B(e,"top","0"),B(e,"clip","rect(0 0 0 0)"),B(e,"clip-path","inset(50%)"),B(e,"overflow","hidden"),B(e,"white-space","nowrap"),B(e,"width","1px"),B(e,"height","1px")},m(s,l){q(s,e,l),t&&t.m(e,null)},p(s,l){s[5]?t?t.p(s,l):(t=Ke(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&V(e),t&&t.d()}}}function Ke(n){let e;return{c(){e=lt(n[6])},l(t){e=ft(t,n[6])},m(t,s){q(t,e,s)},p(t,s){s&64&&ut(e,t[6])},d(t){t&&V(e)}}}function kt(n){let e,t,s,l,c;const f=[wt,gt],r=[];function i(d,R){return d[0][1]?0:1}e=i(n),t=r[e]=f[e](n);let a=n[4]&&Je(n);return{c(){t.c(),s=dt(),a&&a.c(),l=C()},l(d){t.l(d),s=pt(d),a&&a.l(d),l=C()},m(d,R){r[e].m(d,R),q(d,s,R),a&&a.m(d,R),q(d,l,R),c=!0},p(d,[R]){let y=e;e=i(d),e===y?r[e].p(d,R):(M(),j(r[y],1,1,()=>{r[y]=null}),F(),t=r[e],t?t.p(d,R):(t=r[e]=f[e](d),t.c()),I(t,1),t.m(s.parentNode,s)),d[4]?a?a.p(d,R):(a=Je(d),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i(d){c||(I(t),c=!0)},o(d){j(t),c=!1},d(d){r[e].d(d),d&&V(s),a&&a.d(d),d&&V(l)}}}function Et(n,e,t){let{stores:s}=e,{page:l}=e,{components:c}=e,{props_0:f=null}=e,{props_1:r=null}=e,{props_2:i=null}=e;ht("__svelte__",s),_t(s.page.notify);let a=!1,d=!1,R=null;return $e(()=>{const y=s.page.subscribe(()=>{a&&(t(5,d=!0),t(6,R=document.title||"untitled page"))});return t(4,a=!0),y}),n.$$set=y=>{"stores"in y&&t(7,s=y.stores),"page"in y&&t(8,l=y.page),"components"in y&&t(0,c=y.components),"props_0"in y&&t(1,f=y.props_0),"props_1"in y&&t(2,r=y.props_1),"props_2"in y&&t(3,i=y.props_2)},n.$$.update=()=>{n.$$.dirty&384&&s.page.set(l)},[c,f,r,i,a,d,R,s,l]}class Rt extends rt{constructor(e){super(),st(this,e,Et,kt,it,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const St="modulepreload",Be={},Lt="https://hf.space/embed/ai-guru/composer/_app/",be=function(e,t){return!t||t.length===0?e():Promise.all(t.map(s=>{if(s=`${Lt}${s}`,s in Be)return;Be[s]=!0;const l=s.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${c}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":St,l||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),l)return new Promise((r,i)=>{f.addEventListener("load",r),f.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())},Ut={},Ee=[()=>be(()=>import("./layout.svelte-3942c837.js"),["layout.svelte-3942c837.js","chunks/index-f8f7cfca.js"]),()=>be(()=>import("./error.svelte-2573bba8.js"),["error.svelte-2573bba8.js","chunks/index-f8f7cfca.js"]),()=>be(()=>import("./pages/index.svelte-6719d8d0.js"),["pages/index.svelte-6719d8d0.js","assets/pages/index.svelte-32be1fd5.css","chunks/index-f8f7cfca.js","chunks/index-7a30815e.js"])],At={"":[[0,2],[1]]};function We(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Ye(n){if(n.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in n)throw new Error("maxage should be replaced with cache: { maxage }");const e=n.status&&n.status>=400&&n.status<=599&&!n.redirect;if(n.error||e){const t=n.status;if(!n.error&&e)return{status:t||500,error:new Error};const s=typeof n.error=="string"?new Error(n.error):n.error;return s instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:s}):{status:t,error:s}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof s}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof n.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(n.dependencies&&(!Array.isArray(n.dependencies)||n.dependencies.some(t=>typeof t!="string")))return{status:500,error:new Error('"dependencies" property returned from load() must be of type string[]')};if(n.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return n}function Nt(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Ot(n){let e=5381,t=n.length;if(typeof n=="string")for(;t;)e=e*33^n.charCodeAt(--t);else for(;t;)e=e*33^n[--t];return(e>>>0).toString(36)}function Me(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function ke(){return{x:pageXOffset,y:pageYOffset}}function Fe(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Ge(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function Xe(n){const e=ue(n);let t=!0;function s(){t=!0,e.update(f=>f)}function l(f){t=!1,e.set(f)}function c(f){let r;return e.subscribe(i=>{(r===void 0||t&&i!==r)&&f(r=i)})}return{notify:s,set:l,subscribe:c}}function xt(){const{set:n,subscribe:e}=ue(!1),t="1651165231629";let s;async function l(){clearTimeout(s);const f=await fetch(`https://hf.space/embed/ai-guru/composer/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(f.ok){const{version:r}=await f.json(),i=r!==t;return i&&(n(!0),clearTimeout(s)),i}else throw new Error(`Version check failed: ${f.status}`)}return{subscribe:e,check:l}}function Pt(n,e){let s=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(s+=`[sveltekit\\:data-body="${Ot(e.body)}"]`);const l=document.querySelector(s);if(l&&l.textContent){const c=JSON.parse(l.textContent),{body:f}=c,r=Ve(c,["body"]);return Promise.resolve(new Response(f,r))}return fetch(n,e)}const Ct=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function jt(n){const e=[],t=[];let s=!0;return{pattern:n===""?/^\/$/:new RegExp(`^${decodeURIComponent(n).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,f,r)=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(i)return e.push(i[1]),t.push(i[2]),"(?:/(.*))?";const a=f===r.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,R)=>{if(R%2){const[,y,Z,G]=Ct.exec(d);return e.push(Z),t.push(G),y?"(.*?)":"([^/]+?)"}return a&&d.includes(".")&&(s=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${s?"/?":""}$`),names:e,types:t}}function It(n,e,t,s){const l={};for(let c=0;c<e.length;c+=1){const f=e[c],r=t[c],i=n[c+1]||"";if(r){const a=s[r];if(!a)throw new Error(`Missing "${r}" param matcher`);if(!a(i))return}l[f]=i}return l}function Tt(n,e,t){return Object.entries(e).map(([l,[c,f,r]])=>{const{pattern:i,names:a,types:d}=jt(l);return{id:l,exec:R=>{const y=i.exec(R);if(y)return It(y,a,d,t)},a:c.map(R=>n[R]),b:f.map(R=>n[R]),has_shadow:!!r}})}const Qe="sveltekit:scroll",W="sveltekit:index",ye=Tt(Ee,At,Ut),Dt=Ee[0](),Vt=Ee[1](),Ze={};let re={};try{re=JSON.parse(sessionStorage[Qe])}catch{}function ve(n){re[n]=ke()}function qt({target:n,session:e,base:t,trailing_slash:s}){var Ce;const l=new Map,c=[],f={url:Xe({}),page:Xe({}),navigating:ue(null),session:ue(e),updated:xt()},r={id:null,promise:null},i={before_navigate:[],after_navigate:[]};let a={branch:[],error:null,session_id:0,stuff:Ze,url:null},d=!1,R=!0,y=!1,Z=1,G=null,Re,Se,Le=!1;f.session.subscribe(async o=>{Se=o,Le&&(Z+=1,_e(new URL(location.href),[],!0))}),Le=!0;let X=!0,T=(Ce=history.state)==null?void 0:Ce[W];T||(T=Date.now(),history.replaceState(ne(P({},history.state),{[W]:T}),"",location.href));const de=re[T];de&&(history.scrollRestoration="manual",scrollTo(de.x,de.y));let pe=!1,he,Ue;async function Ae(o,{noscroll:p=!1,replaceState:w=!1,keepfocus:u=!1,state:h={}},b){const _=new URL(o,Me(document));if(X)return ge({url:_,scroll:p?ke():null,keepfocus:u,redirect_chain:b,details:{state:h,replaceState:w},accepted:()=>{},blocked:()=>{}});await ee(_)}async function Ne(o){const p=Pe(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return r.promise=xe(p,!1),r.id=p.id,r.promise}async function _e(o,p,w,u){var g,$,S;const h=Pe(o),b=Ue={};let _=h&&await xe(h,w);if(!_&&o.origin===location.origin&&o.pathname===location.pathname&&(_=await Q({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!_)return await ee(o),!1;if(Ue!==b)return!1;if(c.length=0,_.redirect)if(p.length>10||p.includes(o.pathname))_=await Q({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return X?Ae(new URL(_.redirect,o).href,{},[...p,o.pathname]):await ee(new URL(_.redirect,location.href)),!1;else(($=(g=_.props)==null?void 0:g.page)==null?void 0:$.status)>=400&&await f.updated.check()&&await ee(o);if(y=!0,u&&u.details){const{details:k}=u,E=k.replaceState?0:1;k.state[W]=T+=E,history[k.replaceState?"replaceState":"pushState"](k.state,"",o)}if(d?(a=_.state,Re.$set(_.props)):Oe(_),u){const{scroll:k,keepfocus:E}=u;if(!E){const m=document.body,A=m.getAttribute("tabindex");(S=getSelection())==null||S.removeAllRanges(),m.tabIndex=-1,m.focus(),A!==null?m.setAttribute("tabindex",A):m.removeAttribute("tabindex")}if(await qe(),R){const m=o.hash&&document.getElementById(o.hash.slice(1));k?scrollTo(k.x,k.y):m?m.scrollIntoView():scrollTo(0,0)}}else await qe();r.promise=null,r.id=null,R=!0,y=!1,_.props.page&&(he=_.props.page);const v=_.state.branch[_.state.branch.length-1];return X=(v==null?void 0:v.module.router)!==!1,!0}function Oe(o){a=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),he=o.props.page,Re=new Rt({target:n,props:ne(P({},o.props),{stores:f}),hydrate:!0}),d=!0,X){const w={from:null,to:new URL(location.href)};i.after_navigate.forEach(u=>u(w))}}async function me({url:o,params:p,stuff:w,branch:u,status:h,error:b,routeId:_}){var m,A;const v=u.filter(Boolean),g=v.find(U=>{var O;return(O=U.loaded)==null?void 0:O.redirect}),$={redirect:(m=g==null?void 0:g.loaded)==null?void 0:m.redirect,state:{url:o,params:p,branch:u,error:b,stuff:w,session_id:Z},props:{components:v.map(U=>U.module.default)}};for(let U=0;U<v.length;U+=1){const O=v[U].loaded;$.props[`props_${U}`]=O?await O.props:null}if(!a.url||o.href!==a.url.href||a.error!==b||a.stuff!==w){$.props.page={error:b,params:p,routeId:_,status:h,stuff:w,url:o};const U=(O,L)=>{Object.defineProperty($.props.page,O,{get:()=>{throw new Error(`$page.${O} has been replaced by $page.url.${L}`)}})};U("origin","origin"),U("path","pathname"),U("query","searchParams")}const k=v[v.length-1],E=(A=k==null?void 0:k.loaded)==null?void 0:A.cache;if(E){const U=o.pathname+o.search;let O=!1;const L=()=>{l.get(U)===$&&l.delete(U),x(),clearTimeout(N)},N=setTimeout(L,E.maxage*1e3),x=f.session.subscribe(()=>{O&&L()});O=!0,l.set(U,$)}return $}async function H({status:o,error:p,module:w,url:u,params:h,stuff:b,props:_,routeId:v}){const g={module:w,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:b};function $(E){const{href:m}=new URL(E,u);g.uses.dependencies.add(m)}_&&g.uses.dependencies.add(u.href);const S={};for(const E in h)Object.defineProperty(S,E,{get(){return g.uses.params.add(E),h[E]},enumerable:!0});const k=Se;if(w.load){const E={routeId:v,params:S,props:_||{},get url(){return g.uses.url=!0,u},get session(){return g.uses.session=!0,k},get stuff(){return g.uses.stuff=!0,P({},b)},fetch(A,U){const O=typeof A=="string"?A:A.url;return $(O),d?fetch(A,U):Pt(A,U)},status:o!=null?o:null,error:p!=null?p:null},m=await w.load.call(null,E);if(!m)throw new Error("load function must return a value");g.loaded=Ye(m),g.loaded.stuff&&(g.stuff=g.loaded.stuff),g.loaded.dependencies&&g.loaded.dependencies.forEach($)}else _&&(g.loaded=Ye({props:_}));return g}async function xe({id:o,url:p,params:w,route:u},h){var A,U,O;if(r.id===o&&r.promise)return r.promise;if(!h){const L=l.get(o);if(L)return L}const{a:b,b:_,has_shadow:v}=u,g=a.url&&{url:o!==a.url.pathname+a.url.search,params:Object.keys(w).filter(L=>a.params[L]!==w[L]),session:Z!==a.session_id};let $=[],S=Ze,k=!1,E=200,m=null;b.forEach(L=>L());e:for(let L=0;L<b.length;L+=1){let N;try{if(!b[L])continue;const x=await b[L](),D=a.branch[L];if(!D||x!==D.module||g.url&&D.uses.url||g.params.some(Y=>D.uses.params.has(Y))||g.session&&D.uses.session||Array.from(D.uses.dependencies).some(Y=>c.some(le=>le(Y)))||k&&D.uses.stuff){let Y={};const le=v&&L===b.length-1;if(le){const te=await fetch(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(te.ok){const je=te.headers.get("x-sveltekit-location");if(je)return{redirect:je,props:{},state:a};Y=te.status===204?{}:await te.json()}else E=te.status,m=new Error("Failed to load data")}if(m||(N=await H({module:x,url:p,params:w,props:Y,stuff:S,routeId:u.id})),N&&(le&&(N.uses.url=!0),N.loaded)){if(N.loaded.error&&(E=N.loaded.status,m=N.loaded.error),N.loaded.redirect)return{redirect:N.loaded.redirect,props:{},state:a};N.loaded.stuff&&(k=!0)}}else N=D}catch(x){E=500,m=We(x)}if(m){for(;L--;)if(_[L]){let x,D,ce=L;for(;!(D=$[ce]);)ce-=1;try{if(x=await H({status:E,error:m,module:await _[L](),url:p,params:w,stuff:D.stuff,routeId:u.id}),(A=x==null?void 0:x.loaded)!=null&&A.error)continue;(U=x==null?void 0:x.loaded)!=null&&U.stuff&&(S=P(P({},S),x.loaded.stuff)),$=$.slice(0,ce+1).concat(x);break e}catch{continue}}return await Q({status:E,error:m,url:p,routeId:u.id})}else(O=N==null?void 0:N.loaded)!=null&&O.stuff&&(S=P(P({},S),N.loaded.stuff)),$.push(N)}return await me({url:p,params:w,stuff:S,branch:$,status:E,error:m,routeId:u.id})}async function Q({status:o,error:p,url:w,routeId:u}){var v,g;const h={},b=await H({module:await Dt,url:w,params:h,stuff:{},routeId:u}),_=await H({status:o,error:p,module:await Vt,url:w,params:h,stuff:b&&b.loaded&&b.loaded.stuff||{},routeId:u});return await me({url:w,params:h,stuff:P(P({},(v=b==null?void 0:b.loaded)==null?void 0:v.stuff),(g=_==null?void 0:_.loaded)==null?void 0:g.stuff),branch:[b,_],status:o,error:p,routeId:u})}function Pe(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const w of ye){const u=w.exec(p);if(u)return{id:o.pathname+o.search,route:w,params:u,url:o}}}async function ge({url:o,scroll:p,keepfocus:w,redirect_chain:u,details:h,accepted:b,blocked:_}){const v=a.url;let g=!1;const $={from:v,to:o,cancel:()=>g=!0};if(i.before_navigate.forEach(m=>m($)),g){_();return}const S=Nt(o.pathname,s),k=new URL(o.origin+S+o.search+o.hash);if(ve(T),b(),d&&f.navigating.set({from:a.url,to:k}),await _e(k,u,!1,{scroll:p,keepfocus:w,details:h})){const m={from:v,to:k};i.after_navigate.forEach(A=>A(m)),f.navigating.set(null)}}function ee(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{$e(()=>(i.after_navigate.push(o),()=>{const p=i.after_navigate.indexOf(o);i.after_navigate.splice(p,1)}))},before_navigate:o=>{$e(()=>(i.before_navigate.push(o),()=>{const p=i.before_navigate.indexOf(o);i.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(y||!d)&&(R=!1)},goto:(o,p={})=>Ae(o,p,[]),invalidate:o=>{if(typeof o=="function")c.push(o);else{const{href:p}=new URL(o,location.href);c.push(w=>w===p)}return G||(G=Promise.resolve().then(async()=>{await _e(new URL(location.href),[],!0),G=null})),G},prefetch:async o=>{const p=new URL(o,Me(document));await Ne(p)},prefetch_routes:async o=>{const w=(o?ye.filter(u=>o.some(h=>u.exec(h))):ye).map(u=>Promise.all(u.a.map(h=>h())));await Promise.all(w)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",u=>{let h=!1;const b={from:a.url,to:null,cancel:()=>h=!0};i.before_navigate.forEach(_=>_(b)),h?(u.preventDefault(),u.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){ve(T);try{sessionStorage[Qe]=JSON.stringify(re)}catch{}}});const o=u=>{const h=Fe(u);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Ne(Ge(h))};let p;const w=u=>{clearTimeout(p),p=setTimeout(()=>{var h;(h=u.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",w),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",u=>{if(!X||u.button||u.which!==1||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.defaultPrevented)return;const h=Fe(u);if(!h||!h.href)return;const b=h instanceof SVGAElement,_=Ge(h);if(!b&&_.origin==="null")return;const v=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||v.includes("external")||h.hasAttribute("sveltekit:reload")||(b?h.target.baseVal:h.target))return;const[g,$]=_.href.split("#");if($!==void 0&&g===location.href.split("#")[0]){pe=!0,ve(T),f.page.set(ne(P({},he),{url:_})),f.page.notify();return}ge({url:_,scroll:h.hasAttribute("sveltekit:noscroll")?ke():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:_.href===location.href},accepted:()=>u.preventDefault(),blocked:()=>u.preventDefault()})}),addEventListener("popstate",u=>{if(u.state&&X){if(u.state[W]===T)return;ge({url:new URL(location.href),scroll:re[u.state[W]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{T=u.state[W]},blocked:()=>{const h=T-u.state[W];history.go(h)}})}}),addEventListener("hashchange",()=>{pe&&(pe=!1,history.replaceState(ne(P({},history.state),{[W]:++T}),"",location.href))})},_hydrate:async({status:o,error:p,nodes:w,params:u,routeId:h})=>{const b=new URL(location.href),_=[];let v={},g,$;try{for(let S=0;S<w.length;S+=1){const k=S===w.length-1;let E;if(k){const A=document.querySelector('script[sveltekit\\:data-type="props"]');A&&(E=JSON.parse(A.textContent))}const m=await H({module:await w[S],url:b,params:u,stuff:v,status:k?o:void 0,error:k?p:void 0,props:E,routeId:h});if(E&&(m.uses.dependencies.add(b.href),m.uses.url=!0),_.push(m),m&&m.loaded)if(m.loaded.error){if(p)throw m.loaded.error;$={status:m.loaded.status,error:m.loaded.error,url:b,routeId:h}}else m.loaded.stuff&&(v=P(P({},v),m.loaded.stuff))}g=$?await Q($):await me({url:b,params:u,stuff:v,branch:_,status:o,error:p,routeId:h})}catch(S){if(p)throw S;g=await Q({status:500,error:We(S),url:b,routeId:h})}g.redirect&&await ee(new URL(g.redirect,location.href)),Oe(g)}}}async function Bt({paths:n,target:e,session:t,route:s,spa:l,trailing_slash:c,hydrate:f}){const r=qt({target:e,session:t,base:n.base,trailing_slash:c});mt(n),f&&await r._hydrate(f),s&&(l&&r.goto(location.href,{replaceState:!0}),r._start_router()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{Bt as start};
|
|
|
1 |
+
var et=Object.defineProperty,tt=Object.defineProperties;var nt=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var Ie=(n,e,t)=>e in n?et(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))Te.call(e,t)&&Ie(n,t,e[t]);if(fe)for(var t of fe(e))De.call(e,t)&&Ie(n,t,e[t]);return n},ne=(n,e)=>tt(n,nt(e));var Ve=(n,e)=>{var t={};for(var s in n)Te.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(n!=null&&fe)for(var s of fe(n))e.indexOf(s)<0&&De.call(n,s)&&(t[s]=n[s]);return t};import{S as rt,i as st,s as it,e as at,c as ot,a as ct,d as V,b as we,f as B,g as q,t as lt,h as ft,j as ut,k as dt,l as C,m as pt,n as M,o as j,p as F,q as I,r as ht,u as _t,v as $e,w as z,x as se,y as J,z as ie,A as ae,B as K,C as oe,D as qe}from"./chunks/index-c61749f5.js";import{w as ue}from"./chunks/index-f9918abc.js";let ze="",He="";function mt(n){ze=n.base,He=n.assets||ze}function gt(n){let e,t,s;const l=[n[1]||{}];var c=n[0][0];function f(r){let i={};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f())),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&2?ie(l,[ae(r[1]||{})]):{};if(c!==(c=r[0][0])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function wt(n){let e,t,s;const l=[n[1]||{}];var c=n[0][0];function f(r){let i={$$slots:{default:[$t]},$$scope:{ctx:r}};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f(n))),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&2?ie(l,[ae(r[1]||{})]):{};if(i&525&&(a.$$scope={dirty:i,ctx:r}),c!==(c=r[0][0])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f(r)),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function bt(n){let e,t,s;const l=[n[2]||{}];var c=n[0][1];function f(r){let i={};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f())),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&4?ie(l,[ae(r[2]||{})]):{};if(c!==(c=r[0][1])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function yt(n){let e,t,s;const l=[n[2]||{}];var c=n[0][1];function f(r){let i={$$slots:{default:[vt]},$$scope:{ctx:r}};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f(n))),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&4?ie(l,[ae(r[2]||{})]):{};if(i&521&&(a.$$scope={dirty:i,ctx:r}),c!==(c=r[0][1])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f(r)),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function vt(n){let e,t,s;const l=[n[3]||{}];var c=n[0][2];function f(r){let i={};for(let a=0;a<l.length;a+=1)i=oe(i,l[a]);return{props:i}}return c&&(e=new c(f())),{c(){e&&z(e.$$.fragment),t=C()},l(r){e&&se(e.$$.fragment,r),t=C()},m(r,i){e&&J(e,r,i),q(r,t,i),s=!0},p(r,i){const a=i&8?ie(l,[ae(r[3]||{})]):{};if(c!==(c=r[0][2])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}c?(e=new c(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function $t(n){let e,t,s,l;const c=[yt,bt],f=[];function r(i,a){return i[0][2]?0:1}return e=r(n),t=f[e]=c[e](n),{c(){t.c(),s=C()},l(i){t.l(i),s=C()},m(i,a){f[e].m(i,a),q(i,s,a),l=!0},p(i,a){let d=e;e=r(i),e===d?f[e].p(i,a):(M(),j(f[d],1,1,()=>{f[d]=null}),F(),t=f[e],t?t.p(i,a):(t=f[e]=c[e](i),t.c()),I(t,1),t.m(s.parentNode,s))},i(i){l||(I(t),l=!0)},o(i){j(t),l=!1},d(i){f[e].d(i),i&&V(s)}}}function Je(n){let e,t=n[5]&&Ke(n);return{c(){e=at("div"),t&&t.c(),this.h()},l(s){e=ot(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=ct(e);t&&t.l(l),l.forEach(V),this.h()},h(){we(e,"id","svelte-announcer"),we(e,"aria-live","assertive"),we(e,"aria-atomic","true"),B(e,"position","absolute"),B(e,"left","0"),B(e,"top","0"),B(e,"clip","rect(0 0 0 0)"),B(e,"clip-path","inset(50%)"),B(e,"overflow","hidden"),B(e,"white-space","nowrap"),B(e,"width","1px"),B(e,"height","1px")},m(s,l){q(s,e,l),t&&t.m(e,null)},p(s,l){s[5]?t?t.p(s,l):(t=Ke(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&V(e),t&&t.d()}}}function Ke(n){let e;return{c(){e=lt(n[6])},l(t){e=ft(t,n[6])},m(t,s){q(t,e,s)},p(t,s){s&64&&ut(e,t[6])},d(t){t&&V(e)}}}function kt(n){let e,t,s,l,c;const f=[wt,gt],r=[];function i(d,R){return d[0][1]?0:1}e=i(n),t=r[e]=f[e](n);let a=n[4]&&Je(n);return{c(){t.c(),s=dt(),a&&a.c(),l=C()},l(d){t.l(d),s=pt(d),a&&a.l(d),l=C()},m(d,R){r[e].m(d,R),q(d,s,R),a&&a.m(d,R),q(d,l,R),c=!0},p(d,[R]){let y=e;e=i(d),e===y?r[e].p(d,R):(M(),j(r[y],1,1,()=>{r[y]=null}),F(),t=r[e],t?t.p(d,R):(t=r[e]=f[e](d),t.c()),I(t,1),t.m(s.parentNode,s)),d[4]?a?a.p(d,R):(a=Je(d),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i(d){c||(I(t),c=!0)},o(d){j(t),c=!1},d(d){r[e].d(d),d&&V(s),a&&a.d(d),d&&V(l)}}}function Et(n,e,t){let{stores:s}=e,{page:l}=e,{components:c}=e,{props_0:f=null}=e,{props_1:r=null}=e,{props_2:i=null}=e;ht("__svelte__",s),_t(s.page.notify);let a=!1,d=!1,R=null;return $e(()=>{const y=s.page.subscribe(()=>{a&&(t(5,d=!0),t(6,R=document.title||"untitled page"))});return t(4,a=!0),y}),n.$$set=y=>{"stores"in y&&t(7,s=y.stores),"page"in y&&t(8,l=y.page),"components"in y&&t(0,c=y.components),"props_0"in y&&t(1,f=y.props_0),"props_1"in y&&t(2,r=y.props_1),"props_2"in y&&t(3,i=y.props_2)},n.$$.update=()=>{n.$$.dirty&384&&s.page.set(l)},[c,f,r,i,a,d,R,s,l]}class Rt extends rt{constructor(e){super(),st(this,e,Et,kt,it,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const St="modulepreload",Be={},Lt="https://hf.space/embed/ai-guru/composer/_app/",be=function(e,t){return!t||t.length===0?e():Promise.all(t.map(s=>{if(s=`${Lt}${s}`,s in Be)return;Be[s]=!0;const l=s.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${c}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":St,l||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),l)return new Promise((r,i)=>{f.addEventListener("load",r),f.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())},Ut={},Ee=[()=>be(()=>import("./layout.svelte-0c060267.js"),["layout.svelte-0c060267.js","chunks/index-c61749f5.js"]),()=>be(()=>import("./error.svelte-83166d57.js"),["error.svelte-83166d57.js","chunks/index-c61749f5.js"]),()=>be(()=>import("./pages/index.svelte-a12665f4.js"),["pages/index.svelte-a12665f4.js","assets/pages/index.svelte-45cd6b36.css","chunks/index-c61749f5.js","chunks/index-f9918abc.js"])],At={"":[[0,2],[1]]};function We(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Ye(n){if(n.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in n)throw new Error("maxage should be replaced with cache: { maxage }");const e=n.status&&n.status>=400&&n.status<=599&&!n.redirect;if(n.error||e){const t=n.status;if(!n.error&&e)return{status:t||500,error:new Error};const s=typeof n.error=="string"?new Error(n.error):n.error;return s instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:s}):{status:t,error:s}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof s}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof n.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(n.dependencies&&(!Array.isArray(n.dependencies)||n.dependencies.some(t=>typeof t!="string")))return{status:500,error:new Error('"dependencies" property returned from load() must be of type string[]')};if(n.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return n}function Nt(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Ot(n){let e=5381,t=n.length;if(typeof n=="string")for(;t;)e=e*33^n.charCodeAt(--t);else for(;t;)e=e*33^n[--t];return(e>>>0).toString(36)}function Me(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function ke(){return{x:pageXOffset,y:pageYOffset}}function Fe(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Ge(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function Xe(n){const e=ue(n);let t=!0;function s(){t=!0,e.update(f=>f)}function l(f){t=!1,e.set(f)}function c(f){let r;return e.subscribe(i=>{(r===void 0||t&&i!==r)&&f(r=i)})}return{notify:s,set:l,subscribe:c}}function xt(){const{set:n,subscribe:e}=ue(!1),t="1651224666680";let s;async function l(){clearTimeout(s);const f=await fetch(`https://hf.space/embed/ai-guru/composer/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(f.ok){const{version:r}=await f.json(),i=r!==t;return i&&(n(!0),clearTimeout(s)),i}else throw new Error(`Version check failed: ${f.status}`)}return{subscribe:e,check:l}}function Pt(n,e){let s=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(s+=`[sveltekit\\:data-body="${Ot(e.body)}"]`);const l=document.querySelector(s);if(l&&l.textContent){const c=JSON.parse(l.textContent),{body:f}=c,r=Ve(c,["body"]);return Promise.resolve(new Response(f,r))}return fetch(n,e)}const Ct=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function jt(n){const e=[],t=[];let s=!0;return{pattern:n===""?/^\/$/:new RegExp(`^${decodeURIComponent(n).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,f,r)=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(i)return e.push(i[1]),t.push(i[2]),"(?:/(.*))?";const a=f===r.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,R)=>{if(R%2){const[,y,Z,G]=Ct.exec(d);return e.push(Z),t.push(G),y?"(.*?)":"([^/]+?)"}return a&&d.includes(".")&&(s=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${s?"/?":""}$`),names:e,types:t}}function It(n,e,t,s){const l={};for(let c=0;c<e.length;c+=1){const f=e[c],r=t[c],i=n[c+1]||"";if(r){const a=s[r];if(!a)throw new Error(`Missing "${r}" param matcher`);if(!a(i))return}l[f]=i}return l}function Tt(n,e,t){return Object.entries(e).map(([l,[c,f,r]])=>{const{pattern:i,names:a,types:d}=jt(l);return{id:l,exec:R=>{const y=i.exec(R);if(y)return It(y,a,d,t)},a:c.map(R=>n[R]),b:f.map(R=>n[R]),has_shadow:!!r}})}const Qe="sveltekit:scroll",W="sveltekit:index",ye=Tt(Ee,At,Ut),Dt=Ee[0](),Vt=Ee[1](),Ze={};let re={};try{re=JSON.parse(sessionStorage[Qe])}catch{}function ve(n){re[n]=ke()}function qt({target:n,session:e,base:t,trailing_slash:s}){var Ce;const l=new Map,c=[],f={url:Xe({}),page:Xe({}),navigating:ue(null),session:ue(e),updated:xt()},r={id:null,promise:null},i={before_navigate:[],after_navigate:[]};let a={branch:[],error:null,session_id:0,stuff:Ze,url:null},d=!1,R=!0,y=!1,Z=1,G=null,Re,Se,Le=!1;f.session.subscribe(async o=>{Se=o,Le&&(Z+=1,_e(new URL(location.href),[],!0))}),Le=!0;let X=!0,T=(Ce=history.state)==null?void 0:Ce[W];T||(T=Date.now(),history.replaceState(ne(P({},history.state),{[W]:T}),"",location.href));const de=re[T];de&&(history.scrollRestoration="manual",scrollTo(de.x,de.y));let pe=!1,he,Ue;async function Ae(o,{noscroll:p=!1,replaceState:w=!1,keepfocus:u=!1,state:h={}},b){const _=new URL(o,Me(document));if(X)return ge({url:_,scroll:p?ke():null,keepfocus:u,redirect_chain:b,details:{state:h,replaceState:w},accepted:()=>{},blocked:()=>{}});await ee(_)}async function Ne(o){const p=Pe(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return r.promise=xe(p,!1),r.id=p.id,r.promise}async function _e(o,p,w,u){var g,$,S;const h=Pe(o),b=Ue={};let _=h&&await xe(h,w);if(!_&&o.origin===location.origin&&o.pathname===location.pathname&&(_=await Q({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!_)return await ee(o),!1;if(Ue!==b)return!1;if(c.length=0,_.redirect)if(p.length>10||p.includes(o.pathname))_=await Q({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return X?Ae(new URL(_.redirect,o).href,{},[...p,o.pathname]):await ee(new URL(_.redirect,location.href)),!1;else(($=(g=_.props)==null?void 0:g.page)==null?void 0:$.status)>=400&&await f.updated.check()&&await ee(o);if(y=!0,u&&u.details){const{details:k}=u,E=k.replaceState?0:1;k.state[W]=T+=E,history[k.replaceState?"replaceState":"pushState"](k.state,"",o)}if(d?(a=_.state,Re.$set(_.props)):Oe(_),u){const{scroll:k,keepfocus:E}=u;if(!E){const m=document.body,A=m.getAttribute("tabindex");(S=getSelection())==null||S.removeAllRanges(),m.tabIndex=-1,m.focus(),A!==null?m.setAttribute("tabindex",A):m.removeAttribute("tabindex")}if(await qe(),R){const m=o.hash&&document.getElementById(o.hash.slice(1));k?scrollTo(k.x,k.y):m?m.scrollIntoView():scrollTo(0,0)}}else await qe();r.promise=null,r.id=null,R=!0,y=!1,_.props.page&&(he=_.props.page);const v=_.state.branch[_.state.branch.length-1];return X=(v==null?void 0:v.module.router)!==!1,!0}function Oe(o){a=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),he=o.props.page,Re=new Rt({target:n,props:ne(P({},o.props),{stores:f}),hydrate:!0}),d=!0,X){const w={from:null,to:new URL(location.href)};i.after_navigate.forEach(u=>u(w))}}async function me({url:o,params:p,stuff:w,branch:u,status:h,error:b,routeId:_}){var m,A;const v=u.filter(Boolean),g=v.find(U=>{var O;return(O=U.loaded)==null?void 0:O.redirect}),$={redirect:(m=g==null?void 0:g.loaded)==null?void 0:m.redirect,state:{url:o,params:p,branch:u,error:b,stuff:w,session_id:Z},props:{components:v.map(U=>U.module.default)}};for(let U=0;U<v.length;U+=1){const O=v[U].loaded;$.props[`props_${U}`]=O?await O.props:null}if(!a.url||o.href!==a.url.href||a.error!==b||a.stuff!==w){$.props.page={error:b,params:p,routeId:_,status:h,stuff:w,url:o};const U=(O,L)=>{Object.defineProperty($.props.page,O,{get:()=>{throw new Error(`$page.${O} has been replaced by $page.url.${L}`)}})};U("origin","origin"),U("path","pathname"),U("query","searchParams")}const k=v[v.length-1],E=(A=k==null?void 0:k.loaded)==null?void 0:A.cache;if(E){const U=o.pathname+o.search;let O=!1;const L=()=>{l.get(U)===$&&l.delete(U),x(),clearTimeout(N)},N=setTimeout(L,E.maxage*1e3),x=f.session.subscribe(()=>{O&&L()});O=!0,l.set(U,$)}return $}async function H({status:o,error:p,module:w,url:u,params:h,stuff:b,props:_,routeId:v}){const g={module:w,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:b};function $(E){const{href:m}=new URL(E,u);g.uses.dependencies.add(m)}_&&g.uses.dependencies.add(u.href);const S={};for(const E in h)Object.defineProperty(S,E,{get(){return g.uses.params.add(E),h[E]},enumerable:!0});const k=Se;if(w.load){const E={routeId:v,params:S,props:_||{},get url(){return g.uses.url=!0,u},get session(){return g.uses.session=!0,k},get stuff(){return g.uses.stuff=!0,P({},b)},fetch(A,U){const O=typeof A=="string"?A:A.url;return $(O),d?fetch(A,U):Pt(A,U)},status:o!=null?o:null,error:p!=null?p:null},m=await w.load.call(null,E);if(!m)throw new Error("load function must return a value");g.loaded=Ye(m),g.loaded.stuff&&(g.stuff=g.loaded.stuff),g.loaded.dependencies&&g.loaded.dependencies.forEach($)}else _&&(g.loaded=Ye({props:_}));return g}async function xe({id:o,url:p,params:w,route:u},h){var A,U,O;if(r.id===o&&r.promise)return r.promise;if(!h){const L=l.get(o);if(L)return L}const{a:b,b:_,has_shadow:v}=u,g=a.url&&{url:o!==a.url.pathname+a.url.search,params:Object.keys(w).filter(L=>a.params[L]!==w[L]),session:Z!==a.session_id};let $=[],S=Ze,k=!1,E=200,m=null;b.forEach(L=>L());e:for(let L=0;L<b.length;L+=1){let N;try{if(!b[L])continue;const x=await b[L](),D=a.branch[L];if(!D||x!==D.module||g.url&&D.uses.url||g.params.some(Y=>D.uses.params.has(Y))||g.session&&D.uses.session||Array.from(D.uses.dependencies).some(Y=>c.some(le=>le(Y)))||k&&D.uses.stuff){let Y={};const le=v&&L===b.length-1;if(le){const te=await fetch(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(te.ok){const je=te.headers.get("x-sveltekit-location");if(je)return{redirect:je,props:{},state:a};Y=te.status===204?{}:await te.json()}else E=te.status,m=new Error("Failed to load data")}if(m||(N=await H({module:x,url:p,params:w,props:Y,stuff:S,routeId:u.id})),N&&(le&&(N.uses.url=!0),N.loaded)){if(N.loaded.error&&(E=N.loaded.status,m=N.loaded.error),N.loaded.redirect)return{redirect:N.loaded.redirect,props:{},state:a};N.loaded.stuff&&(k=!0)}}else N=D}catch(x){E=500,m=We(x)}if(m){for(;L--;)if(_[L]){let x,D,ce=L;for(;!(D=$[ce]);)ce-=1;try{if(x=await H({status:E,error:m,module:await _[L](),url:p,params:w,stuff:D.stuff,routeId:u.id}),(A=x==null?void 0:x.loaded)!=null&&A.error)continue;(U=x==null?void 0:x.loaded)!=null&&U.stuff&&(S=P(P({},S),x.loaded.stuff)),$=$.slice(0,ce+1).concat(x);break e}catch{continue}}return await Q({status:E,error:m,url:p,routeId:u.id})}else(O=N==null?void 0:N.loaded)!=null&&O.stuff&&(S=P(P({},S),N.loaded.stuff)),$.push(N)}return await me({url:p,params:w,stuff:S,branch:$,status:E,error:m,routeId:u.id})}async function Q({status:o,error:p,url:w,routeId:u}){var v,g;const h={},b=await H({module:await Dt,url:w,params:h,stuff:{},routeId:u}),_=await H({status:o,error:p,module:await Vt,url:w,params:h,stuff:b&&b.loaded&&b.loaded.stuff||{},routeId:u});return await me({url:w,params:h,stuff:P(P({},(v=b==null?void 0:b.loaded)==null?void 0:v.stuff),(g=_==null?void 0:_.loaded)==null?void 0:g.stuff),branch:[b,_],status:o,error:p,routeId:u})}function Pe(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const w of ye){const u=w.exec(p);if(u)return{id:o.pathname+o.search,route:w,params:u,url:o}}}async function ge({url:o,scroll:p,keepfocus:w,redirect_chain:u,details:h,accepted:b,blocked:_}){const v=a.url;let g=!1;const $={from:v,to:o,cancel:()=>g=!0};if(i.before_navigate.forEach(m=>m($)),g){_();return}const S=Nt(o.pathname,s),k=new URL(o.origin+S+o.search+o.hash);if(ve(T),b(),d&&f.navigating.set({from:a.url,to:k}),await _e(k,u,!1,{scroll:p,keepfocus:w,details:h})){const m={from:v,to:k};i.after_navigate.forEach(A=>A(m)),f.navigating.set(null)}}function ee(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{$e(()=>(i.after_navigate.push(o),()=>{const p=i.after_navigate.indexOf(o);i.after_navigate.splice(p,1)}))},before_navigate:o=>{$e(()=>(i.before_navigate.push(o),()=>{const p=i.before_navigate.indexOf(o);i.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(y||!d)&&(R=!1)},goto:(o,p={})=>Ae(o,p,[]),invalidate:o=>{if(typeof o=="function")c.push(o);else{const{href:p}=new URL(o,location.href);c.push(w=>w===p)}return G||(G=Promise.resolve().then(async()=>{await _e(new URL(location.href),[],!0),G=null})),G},prefetch:async o=>{const p=new URL(o,Me(document));await Ne(p)},prefetch_routes:async o=>{const w=(o?ye.filter(u=>o.some(h=>u.exec(h))):ye).map(u=>Promise.all(u.a.map(h=>h())));await Promise.all(w)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",u=>{let h=!1;const b={from:a.url,to:null,cancel:()=>h=!0};i.before_navigate.forEach(_=>_(b)),h?(u.preventDefault(),u.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){ve(T);try{sessionStorage[Qe]=JSON.stringify(re)}catch{}}});const o=u=>{const h=Fe(u);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Ne(Ge(h))};let p;const w=u=>{clearTimeout(p),p=setTimeout(()=>{var h;(h=u.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",w),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",u=>{if(!X||u.button||u.which!==1||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.defaultPrevented)return;const h=Fe(u);if(!h||!h.href)return;const b=h instanceof SVGAElement,_=Ge(h);if(!b&&_.origin==="null")return;const v=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||v.includes("external")||h.hasAttribute("sveltekit:reload")||(b?h.target.baseVal:h.target))return;const[g,$]=_.href.split("#");if($!==void 0&&g===location.href.split("#")[0]){pe=!0,ve(T),f.page.set(ne(P({},he),{url:_})),f.page.notify();return}ge({url:_,scroll:h.hasAttribute("sveltekit:noscroll")?ke():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:_.href===location.href},accepted:()=>u.preventDefault(),blocked:()=>u.preventDefault()})}),addEventListener("popstate",u=>{if(u.state&&X){if(u.state[W]===T)return;ge({url:new URL(location.href),scroll:re[u.state[W]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{T=u.state[W]},blocked:()=>{const h=T-u.state[W];history.go(h)}})}}),addEventListener("hashchange",()=>{pe&&(pe=!1,history.replaceState(ne(P({},history.state),{[W]:++T}),"",location.href))})},_hydrate:async({status:o,error:p,nodes:w,params:u,routeId:h})=>{const b=new URL(location.href),_=[];let v={},g,$;try{for(let S=0;S<w.length;S+=1){const k=S===w.length-1;let E;if(k){const A=document.querySelector('script[sveltekit\\:data-type="props"]');A&&(E=JSON.parse(A.textContent))}const m=await H({module:await w[S],url:b,params:u,stuff:v,status:k?o:void 0,error:k?p:void 0,props:E,routeId:h});if(E&&(m.uses.dependencies.add(b.href),m.uses.url=!0),_.push(m),m&&m.loaded)if(m.loaded.error){if(p)throw m.loaded.error;$={status:m.loaded.status,error:m.loaded.error,url:b,routeId:h}}else m.loaded.stuff&&(v=P(P({},v),m.loaded.stuff))}g=$?await Q($):await me({url:b,params:u,stuff:v,branch:_,status:o,error:p,routeId:h})}catch(S){if(p)throw S;g=await Q({status:500,error:We(S),url:b,routeId:h})}g.redirect&&await ee(new URL(g.redirect,location.href)),Oe(g)}}}async function Bt({paths:n,target:e,session:t,route:s,spa:l,trailing_slash:c,hydrate:f}){const r=qt({target:e,session:t,base:n.base,trailing_slash:c});mt(n),f&&await r._hydrate(f),s&&(l&&r.goto(location.href,{replaceState:!0}),r._start_router()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{Bt as start};
|
static/_app/version.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":"
|
|
|
1 |
+
{"version":"1651224666680"}
|
templates/index.html
CHANGED
@@ -12,12 +12,12 @@
|
|
12 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
13 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.contentWindow.min.js"></script>
|
14 |
<meta http-equiv="content-security-policy" content="">
|
15 |
-
<link rel="stylesheet" href="https://hf.space/embed/ai-guru/composer/_app/assets/pages/index.svelte-
|
16 |
-
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/start-
|
17 |
-
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/chunks/index-
|
18 |
-
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/chunks/index-
|
19 |
-
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/layout.svelte-
|
20 |
-
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/pages/index.svelte-
|
21 |
</head>
|
22 |
<body>
|
23 |
<div>
|
@@ -82,10 +82,10 @@
|
|
82 |
</main>
|
83 |
|
84 |
|
85 |
-
<script type="module" data-hydrate="
|
86 |
-
import { start } from "https://hf.space/embed/ai-guru/composer/_app/start-
|
87 |
start({
|
88 |
-
target: document.querySelector('[data-hydrate="
|
89 |
paths: {"base":"","assets":""},
|
90 |
session: {},
|
91 |
route: true,
|
@@ -95,8 +95,8 @@
|
|
95 |
status: 200,
|
96 |
error: null,
|
97 |
nodes: [
|
98 |
-
import("https://hf.space/embed/ai-guru/composer/_app/layout.svelte-
|
99 |
-
import("https://hf.space/embed/ai-guru/composer/_app/pages/index.svelte-
|
100 |
],
|
101 |
params: {},
|
102 |
routeId: ""
|
|
|
12 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
13 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.contentWindow.min.js"></script>
|
14 |
<meta http-equiv="content-security-policy" content="">
|
15 |
+
<link rel="stylesheet" href="https://hf.space/embed/ai-guru/composer/_app/assets/pages/index.svelte-45cd6b36.css">
|
16 |
+
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/start-d715fd74.js">
|
17 |
+
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/chunks/index-c61749f5.js">
|
18 |
+
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/chunks/index-f9918abc.js">
|
19 |
+
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/layout.svelte-0c060267.js">
|
20 |
+
<link rel="modulepreload" href="https://hf.space/embed/ai-guru/composer/_app/pages/index.svelte-a12665f4.js">
|
21 |
</head>
|
22 |
<body>
|
23 |
<div>
|
|
|
82 |
</main>
|
83 |
|
84 |
|
85 |
+
<script type="module" data-hydrate="13n5810">
|
86 |
+
import { start } from "https://hf.space/embed/ai-guru/composer/_app/start-d715fd74.js";
|
87 |
start({
|
88 |
+
target: document.querySelector('[data-hydrate="13n5810"]').parentNode,
|
89 |
paths: {"base":"","assets":""},
|
90 |
session: {},
|
91 |
route: true,
|
|
|
95 |
status: 200,
|
96 |
error: null,
|
97 |
nodes: [
|
98 |
+
import("https://hf.space/embed/ai-guru/composer/_app/layout.svelte-0c060267.js"),
|
99 |
+
import("https://hf.space/embed/ai-guru/composer/_app/pages/index.svelte-a12665f4.js")
|
100 |
],
|
101 |
params: {},
|
102 |
routeId: ""
|