Spaces:
Runtime error
Runtime error
Ron Au
commited on
Commit
•
2c12844
1
Parent(s):
0ae2e26
build: Compile for Spaces
Browse files
static/_app/manifest.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
".svelte-kit/runtime/client/start.js": {
|
3 |
-
"file": "start-
|
4 |
"src": ".svelte-kit/runtime/client/start.js",
|
5 |
"isEntry": true,
|
6 |
"imports": [
|
@@ -32,7 +32,7 @@
|
|
32 |
]
|
33 |
},
|
34 |
"src/routes/index.svelte": {
|
35 |
-
"file": "pages/index.svelte-
|
36 |
"src": "src/routes/index.svelte",
|
37 |
"isEntry": true,
|
38 |
"isDynamicEntry": true,
|
|
|
1 |
{
|
2 |
".svelte-kit/runtime/client/start.js": {
|
3 |
+
"file": "start-29a7455a.js",
|
4 |
"src": ".svelte-kit/runtime/client/start.js",
|
5 |
"isEntry": true,
|
6 |
"imports": [
|
|
|
32 |
]
|
33 |
},
|
34 |
"src/routes/index.svelte": {
|
35 |
+
"file": "pages/index.svelte-9646dd5a.js",
|
36 |
"src": "src/routes/index.svelte",
|
37 |
"isEntry": true,
|
38 |
"isDynamicEntry": true,
|
static/_app/pages/index.svelte-49d5df81.js
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
import{S as Q,i as Z,s as x,e as b,k as I,c as y,a as E,d as g,m as C,K as te,b as d,g as P,J as f,L as U,t as M,h as H,j as Ee,E as re,M as Re,N as R,O as fe,P as Ge,w as X,x as Y,y as J,Q as Ve,q as L,o as V,B as K,R as ue,T as Fe,U as _e,V as ie,f as oe,W as qe,n as $e,p as Te,X as We,v as Xe,u as Ye,Y as Je,l as Ne}from"../chunks/index-7c452e28.js";import{w as ne}from"../chunks/index-d282aaf8.js";const he=ne("synth"),be=ne("medium"),ye=ne("medium"),ve=ne(!1),pe=ne(""),we=ne(""),ke=ne(""),se={piano:"Piano",chamber:"Chamber Music",rock_and_metal:"Rock and Metal",synth:"Synthesizer",church:"Church",timpani_strings_harp:"Timpani, Contrabass, Harp",country:"Country",reggae:"Reggae-esque"},Ke={low:"Low",medium:"Medium",high:"High"},Qe={low:"Low",medium:"Medium",high:"High",very_high:"Very High"};function Me(l,e,s){const t=l.slice();return t[4]=e[s],t[6]=s,t}function He(l){let e,s,t,o,n,a,i,c,u,p,r,_;return{c(){e=b("label"),s=b("div"),t=b("img"),a=I(),i=b("input"),u=I(),this.h()},l(m){e=y(m,"LABEL",{"data-selected":!0,class:!0});var T=E(e);s=y(T,"DIV",{class:!0});var v=E(s);t=y(v,"IMG",{src:!0,alt:!0,class:!0}),v.forEach(g),a=C(T),i=y(T,"INPUT",{type:!0,class:!0}),u=C(T),T.forEach(g),this.h()},h(){te(t.src,o=`static/${l[4]}.svg`)||d(t,"src",o),d(t,"alt",n=se[l[4]]),d(t,"class","svelte-1r9pswz"),d(s,"class","svelte-1r9pswz"),d(i,"type","radio"),i.__value=c=l[4],i.value=i.__value,d(i,"class","svelte-1r9pswz"),l[3][0].push(i),d(e,"data-selected",p=l[0]===l[4]),d(e,"class","svelte-1r9pswz")},m(m,T){P(m,e,T),f(e,s),f(s,t),f(e,a),f(e,i),i.checked=i.__value===l[0],f(e,u),r||(_=U(i,"change",l[2]),r=!0)},p(m,T){T&1&&(i.checked=i.__value===m[0]),T&1&&p!==(p=m[0]===m[4])&&d(e,"data-selected",p)},d(m){m&&g(e),l[3][0].splice(l[3][0].indexOf(i),1),r=!1,_()}}}function Ze(l){let e,s,t=(se[l[0]]||"Synthesizer")+"",o,n,a,i=l[1],c=[];for(let u=0;u<i.length;u+=1)c[u]=He(Me(l,i,u));return{c(){e=b("fieldset"),s=b("legend"),o=M(t),n=I(),a=b("div");for(let u=0;u<c.length;u+=1)c[u].c();this.h()},l(u){e=y(u,"FIELDSET",{class:!0});var p=E(e);s=y(p,"LEGEND",{class:!0});var r=E(s);o=H(r,t),r.forEach(g),n=C(p),a=y(p,"DIV",{class:!0});var _=E(a);for(let m=0;m<c.length;m+=1)c[m].l(_);_.forEach(g),p.forEach(g),this.h()},h(){d(s,"class","svelte-1r9pswz"),d(a,"class","grid svelte-1r9pswz"),d(e,"class","svelte-1r9pswz")},m(u,p){P(u,e,p),f(e,s),f(s,o),f(e,n),f(e,a);for(let r=0;r<c.length;r+=1)c[r].m(a,null)},p(u,[p]){if(p&1&&t!==(t=(se[u[0]]||"Synthesizer")+"")&&Ee(o,t),p&3){i=u[1];let r;for(r=0;r<i.length;r+=1){const _=Me(u,i,r);c[r]?c[r].p(_,p):(c[r]=He(_),c[r].c(),c[r].m(a,null))}for(;r<c.length;r+=1)c[r].d(1);c.length=i.length}},i:re,o:re,d(u){u&&g(e),Re(c,u)}}}function xe(l,e,s){let t;R(l,he,i=>s(0,t=i));const o=Object.keys(se),n=[[]];function a(){t=this.__value,he.set(t)}return[t,o,a,n]}class et extends Q{constructor(e){super(),Z(this,e,xe,Ze,x,{})}}function je(l,e,s){const t=l.slice();return t[5]=e[s],t}function Be(l){let e,s=l[1][l[5]]+"",t,o,n,a,i,c,u,p;return{c(){e=b("label"),t=M(s),o=I(),n=b("input"),i=I(),this.h()},l(r){e=y(r,"LABEL",{"data-selected":!0,class:!0});var _=E(e);t=H(_,s),o=C(_),n=y(_,"INPUT",{type:!0,class:!0}),i=C(_),_.forEach(g),this.h()},h(){d(n,"type","radio"),n.__value=a=l[5],n.value=n.__value,d(n,"class","svelte-1m848u0"),l[4][0].push(n),d(e,"data-selected",c=l[5]===l[0]),d(e,"class","svelte-1m848u0")},m(r,_){P(r,e,_),f(e,t),f(e,o),f(e,n),n.checked=n.__value===l[0],f(e,i),u||(p=U(n,"change",l[3]),u=!0)},p(r,_){_&2&&s!==(s=r[1][r[5]]+"")&&Ee(t,s),_&1&&(n.checked=n.__value===r[0]),_&1&&c!==(c=r[5]===r[0])&&d(e,"data-selected",c)},d(r){r&&g(e),l[4][0].splice(l[4][0].indexOf(n),1),u=!1,p()}}}function tt(l){let e,s=l[2],t=[];for(let o=0;o<s.length;o+=1)t[o]=Be(je(l,s,o));return{c(){e=b("div");for(let o=0;o<t.length;o+=1)t[o].c();this.h()},l(o){e=y(o,"DIV",{class:!0});var n=E(e);for(let a=0;a<t.length;a+=1)t[a].l(n);n.forEach(g),this.h()},h(){d(e,"class","options svelte-1m848u0")},m(o,n){P(o,e,n);for(let a=0;a<t.length;a+=1)t[a].m(e,null)},p(o,[n]){if(n&7){s=o[2];let a;for(a=0;a<s.length;a+=1){const i=je(o,s,a);t[a]?t[a].p(i,n):(t[a]=Be(i),t[a].c(),t[a].m(e,null))}for(;a<t.length;a+=1)t[a].d(1);t.length=s.length}},i:re,o:re,d(o){o&&g(e),Re(t,o)}}}function st(l,e,s){let{options:t}=e;const o=Object.keys(t);let{selection:n=o[1]}=e;const a=[[]];function i(){n=this.__value,s(0,n)}return l.$$set=c=>{"options"in c&&s(1,t=c.options),"selection"in c&&s(0,n=c.selection)},[n,t,o,i,a]}class Ue extends Q{constructor(e){super(),Z(this,e,st,tt,x,{options:1,selection:0})}}function nt(l){let e,s,t,o,n,a,i,c;function u(r){l[1](r)}let p={options:Ke};return l[0]!==void 0&&(p.selection=l[0]),a=new Ue({props:p}),fe.push(()=>Ge(a,"selection",u)),{c(){e=b("div"),s=b("fieldset"),t=b("legend"),o=M("Note density"),n=I(),X(a.$$.fragment),this.h()},l(r){e=y(r,"DIV",{});var _=E(e);s=y(_,"FIELDSET",{class:!0});var m=E(s);t=y(m,"LEGEND",{class:!0});var T=E(t);o=H(T,"Note density"),T.forEach(g),n=C(m),Y(a.$$.fragment,m),m.forEach(g),_.forEach(g),this.h()},h(){d(t,"class","svelte-1ikh8be"),d(s,"class","svelte-1ikh8be")},m(r,_){P(r,e,_),f(e,s),f(s,t),f(t,o),f(s,n),J(a,s,null),c=!0},p(r,[_]){const m={};!i&&_&1&&(i=!0,m.selection=r[0],Ve(()=>i=!1)),a.$set(m)},i(r){c||(L(a.$$.fragment,r),c=!0)},o(r){V(a.$$.fragment,r),c=!1},d(r){r&&g(e),K(a)}}}function lt(l,e,s){let t;R(l,be,n=>s(0,t=n));function o(n){t=n,be.set(t)}return[t,o]}class at extends Q{constructor(e){super(),Z(this,e,lt,nt,x,{})}}function ot(l){let e,s,t,o,n,a,i,c;function u(r){l[1](r)}let p={options:Qe};return l[0]!==void 0&&(p.selection=l[0]),a=new Ue({props:p}),fe.push(()=>Ge(a,"selection",u)),{c(){e=b("div"),s=b("fieldset"),t=b("legend"),o=M("Temperature"),n=I(),X(a.$$.fragment),this.h()},l(r){e=y(r,"DIV",{});var _=E(e);s=y(_,"FIELDSET",{class:!0});var m=E(s);t=y(m,"LEGEND",{class:!0});var T=E(t);o=H(T,"Temperature"),T.forEach(g),n=C(m),Y(a.$$.fragment,m),m.forEach(g),_.forEach(g),this.h()},h(){d(t,"class","svelte-1ikh8be"),d(s,"class","svelte-1ikh8be")},m(r,_){P(r,e,_),f(e,s),f(s,t),f(t,o),f(s,n),J(a,s,null),c=!0},p(r,[_]){const m={};!i&&_&1&&(i=!0,m.selection=r[0],Ve(()=>i=!1)),a.$set(m)},i(r){c||(L(a.$$.fragment,r),c=!0)},o(r){V(a.$$.fragment,r),c=!1},d(r){r&&g(e),K(a)}}}function rt(l,e,s){let t;R(l,ye,n=>s(0,t=n));function o(n){t=n,ye.set(t)}return[t,o]}class it extends Q{constructor(e){super(),Z(this,e,rt,ot,x,{})}}function ct(l){let e,s,t;return{c(){e=M("Compose "),s=b("img"),this.h()},l(o){e=H(o,"Compose "),s=y(o,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){te(s.src,t="static/wand.svg")||d(s,"src",t),d(s,"alt","Magic wand"),d(s,"class","svelte-18w38ow")},m(o,n){P(o,e,n),P(o,s,n)},d(o){o&&g(e),o&&g(s)}}}function ut(l){let e;return{c(){e=M("Composing...")},l(s){e=H(s,"Composing...")},m(s,t){P(s,e,t)},d(s){s&&g(e)}}}function ft(l){let e,s,t;function o(i,c){return i[0]?ut:ct}let n=o(l),a=n(l);return{c(){e=b("button"),a.c(),this.h()},l(i){e=y(i,"BUTTON",{class:!0});var c=E(e);a.l(c),c.forEach(g),this.h()},h(){e.disabled=l[0],d(e,"class","svelte-18w38ow")},m(i,c){P(i,e,c),a.m(e,null),s||(t=U(e,"click",l[1]),s=!0)},p(i,[c]){n!==(n=o(i))&&(a.d(1),a=n(i),a&&(a.c(),a.m(e,null))),c&1&&(e.disabled=i[0])},i:re,o:re,d(i){i&&g(e),a.d(),s=!1,t()}}}function dt(l,e,s){let t,o,n,a,i,c,u;R(l,ve,v=>s(0,t=v)),R(l,ke,v=>s(2,o=v)),R(l,we,v=>s(3,n=v)),R(l,pe,v=>s(4,a=v)),R(l,ye,v=>s(5,i=v)),R(l,be,v=>s(6,c=v)),R(l,he,v=>s(7,u=v));const p=()=>{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new MediaMetadata({title:`${se[u]} Composition`,artist:"AI Guru Composer",album:"Hugging Face",artwork:[{src:"static/hugging-face-headphones.png",sizes:"512x512",type:"image/png"}]}))},r=async({music_style:v,density:w,temperature:D})=>{var A;const S=await fetch("task/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({music_style:v,density:w,temperature:D})});if(!S.ok||!((A=S.headers.get("content-type"))!=null&&A.includes("application/json")))throw new Error(`Unable to create composition: [${S.status}] ${await S.text()}`);return await S.json()},_=async v=>{var D;const w=await fetch(`task/poll?task_id=${v.task_id}`);if(!w.ok||!((D=w.headers.get("content-type"))!=null&&D.includes("application/json")))throw new Error(`Unable to create composition: [${w.status}] ${await w.text()}`);return await w.json()},m=async(v,w=1e3,D=100)=>(v=await _(v),v.status==="completed"||v.status==="failed"||D&&v.poll_count>D?v:(await new Promise(S=>setTimeout(S,w)),await m(v,w,D)));return[t,async()=>{ue(ve,t=!0,t);try{const v=await r({music_style:u,density:c,temperature:i}),w=await m(v),{audio:D,image:S,tokens:j}=w.output;ue(pe,a=D,a),ue(we,n=S,n),ue(ke,o=j,o),p()}catch(v){console.error(v)}finally{ue(ve,t=!1,t)}}]}class _t extends Q{constructor(e){super(),Z(this,e,dt,ft,x,{})}}function ce(l,{delay:e=0,duration:s=400,easing:t=Fe}={}){const o=+getComputedStyle(l).opacity;return{delay:e,duration:s,easing:t,css:n=>`opacity: ${n*o}`}}function Le(l){let e,s,t,o;return{c(){e=b("img"),this.h()},l(n){e=y(n,"IMG",{class:!0,src:!0,alt:!0,draggable:!0}),this.h()},h(){d(e,"class","play-button svelte-1536b0c"),te(e.src,s="static/play.svg")||d(e,"src",s),d(e,"alt","Play button"),d(e,"draggable","false")},m(n,a){P(n,e,a),o=!0},i(n){o||(_e(()=>{t||(t=ie(e,ce,{},!0)),t.run(1)}),o=!0)},o(n){t||(t=ie(e,ce,{},!1)),t.run(0),o=!1},d(n){n&&g(e),n&&t&&t.end()}}}function ht(l){let e,s,t,o,n,a,i,c=!1,u,p=!0,r,_,m=`translate(${l[6]*(l[1]/l[2])}px, -2%)`,T,v,w,D,S,j,A,q,W;function z(){cancelAnimationFrame(u),a.paused||(u=Je(z),c=!0),l[15].call(a)}let $=l[3]&&Le();return{c(){e=b("section"),s=b("img"),o=I(),n=b("div"),a=b("audio"),r=I(),_=b("div"),T=I(),$&&$.c(),v=I(),w=b("a"),D=M("Download"),this.h()},l(h){e=y(h,"SECTION",{class:!0});var k=E(e);s=y(k,"IMG",{class:!0,src:!0,alt:!0}),o=C(k),n=y(k,"DIV",{class:!0,tabindex:!0});var G=E(n);a=y(G,"AUDIO",{src:!0,class:!0}),E(a).forEach(g),r=C(G),_=y(G,"DIV",{class:!0}),E(_).forEach(g),T=C(G),$&&$.l(G),G.forEach(g),v=C(k),w=y(k,"A",{href:!0,download:!0,class:!0});var F=E(w);D=H(F,"Download"),F.forEach(g),k.forEach(g),this.h()},h(){d(s,"class","notes svelte-1536b0c"),te(s.src,t=l[8])||d(s,"src",t),d(s,"alt",""),te(a.src,i=l[9])||d(a,"src",i),d(a,"class","svelte-1536b0c"),l[2]===void 0&&_e(()=>l[16].call(a)),d(_,"class","handle svelte-1536b0c"),oe(_,"transform",m,!1),d(n,"class","player svelte-1536b0c"),d(n,"tabindex","0"),oe(n,"width",l[6]+"px",!1),oe(n,"height",l[7]+"px",!1),d(w,"href",l[9]),d(w,"download",S=`${se[l[10]]} Composition - AI Guru ft. Hugging Face.wav`),d(w,"class","download svelte-1536b0c"),d(e,"class","svelte-1536b0c")},m(h,k){P(h,e,k),f(e,s),l[14](s),f(e,o),f(e,n),f(n,a),f(n,r),f(n,_),f(n,T),$&&$.m(n,null),l[18](n),f(e,v),f(e,w),f(w,D),l[20](e),A=!0,q||(W=[U(a,"timeupdate",z),U(a,"durationchange",l[16]),U(a,"play",l[17]),U(a,"pause",l[17]),U(n,"mousemove",l[11]),U(n,"touchmove",qe(l[12])),U(n,"keydown",l[13]),U(n,"click",l[19])],q=!0)},p(h,[k]){(!A||k&256&&!te(s.src,t=h[8]))&&d(s,"src",t),(!A||k&512&&!te(a.src,i=h[9]))&&d(a,"src",i),!c&&k&2&&!isNaN(h[1])&&(a.currentTime=h[1]),c=!1,k&8&&p!==(p=h[3])&&a[p?"pause":"play"](),k&70&&m!==(m=`translate(${h[6]*(h[1]/h[2])}px, -2%)`)&&oe(_,"transform",m,!1),h[3]?$?k&8&&L($,1):($=Le(),$.c(),L($,1),$.m(n,null)):$&&($e(),V($,1,1,()=>{$=null}),Te()),k&64&&oe(n,"width",h[6]+"px",!1),k&128&&oe(n,"height",h[7]+"px",!1),(!A||k&512)&&d(w,"href",h[9]),(!A||k&1024&&S!==(S=`${se[h[10]]} Composition - AI Guru ft. Hugging Face.wav`))&&d(w,"download",S)},i(h){A||(L($),_e(()=>{j||(j=ie(e,ce,{},!0)),j.run(1)}),A=!0)},o(h){V($),j||(j=ie(e,ce,{},!1)),j.run(0),A=!1},d(h){h&&g(e),l[14](null),$&&$.d(),l[18](null),l[20](null),h&&j&&j.end(),q=!1,We(W)}}}function pt(l,e,s){let t,o,n;R(l,we,h=>s(8,t=h)),R(l,pe,h=>s(9,o=h)),R(l,he,h=>s(10,n=h));let a,i,c,u=!0,p,r,_,m;const T=()=>{s(6,_=r&&r.clientWidth),s(7,m=r&&r.clientHeight)};Xe(()=>{T(),"mediaSession"in navigator&&(navigator.mediaSession.setActionHandler("play",()=>s(3,u=!1)),navigator.mediaSession.setActionHandler("pause",()=>s(3,u=!0)),navigator.mediaSession.setActionHandler("stop",()=>{s(3,u=!0),s(1,i=0)})),a.scrollIntoView({behavior:"smooth",block:"start"})}),Ye(()=>{T()});const v=h=>{if(!c||!h.buttons)return;const{left:k,right:G}=p.getBoundingClientRect();s(1,i=c*(h.clientX-k)/(G-k))},w=h=>{if(!c)return;const{left:k,right:G}=p.getBoundingClientRect();s(1,i=c*(h.touches[0].clientX-k)/(G-k))},D=h=>{h.preventDefault(),h.code==="Space"&&s(3,u=!u),h.code==="ArrowLeft"&&s(1,i=i>=1?i-1:0),h.code==="ArrowRight"&&s(1,i=i<=c-1?i+1:c)};function S(h){fe[h?"unshift":"push"](()=>{r=h,s(5,r)})}function j(){i=this.currentTime,s(1,i)}function A(){c=this.duration,s(2,c)}function q(){u=this.paused,s(3,u)}function W(h){fe[h?"unshift":"push"](()=>{p=h,s(4,p)})}const z=()=>s(3,u=!u);function $(h){fe[h?"unshift":"push"](()=>{a=h,s(0,a)})}return[a,i,c,u,p,r,_,m,t,o,n,v,w,D,S,j,A,q,W,z,$]}class mt extends Q{constructor(e){super(),Z(this,e,pt,ht,x,{})}}function ze(l){let e,s,t,o,n,a,i,c;return{c(){e=b("section"),s=b("h2"),t=M("Tokenized notes"),o=I(),n=b("p"),a=M(l[0]),this.h()},l(u){e=y(u,"SECTION",{class:!0});var p=E(e);s=y(p,"H2",{});var r=E(s);t=H(r,"Tokenized notes"),r.forEach(g),o=C(p),n=y(p,"P",{class:!0});var _=E(n);a=H(_,l[0]),_.forEach(g),p.forEach(g),this.h()},h(){d(n,"class","svelte-4un5mw"),d(e,"class","svelte-4un5mw")},m(u,p){P(u,e,p),f(e,s),f(s,t),f(e,o),f(e,n),f(n,a),c=!0},p(u,p){(!c||p&1)&&Ee(a,u[0])},i(u){c||(_e(()=>{i||(i=ie(e,ce,{},!0)),i.run(1)}),c=!0)},o(u){i||(i=ie(e,ce,{},!1)),i.run(0),c=!1},d(u){u&&g(e),u&&i&&i.end()}}}function gt(l){let e,s,t=l[0]&&ze(l);return{c(){t&&t.c(),e=Ne()},l(o){t&&t.l(o),e=Ne()},m(o,n){t&&t.m(o,n),P(o,e,n),s=!0},p(o,[n]){o[0]?t?(t.p(o,n),n&1&&L(t,1)):(t=ze(o),t.c(),L(t,1),t.m(e.parentNode,e)):t&&($e(),V(t,1,1,()=>{t=null}),Te())},i(o){s||(L(t),s=!0)},o(o){V(t),s=!1},d(o){t&&t.d(o),o&&g(e)}}}function vt(l,e,s){let t;return R(l,ke,o=>s(0,t=o)),[t]}class bt extends Q{constructor(e){super(),Z(this,e,vt,gt,x,{})}}function Pe(l){let e,s,t,o;return e=new mt({}),t=new bt({}),{c(){X(e.$$.fragment),s=I(),X(t.$$.fragment)},l(n){Y(e.$$.fragment,n),s=C(n),Y(t.$$.fragment,n)},m(n,a){J(e,n,a),P(n,s,a),J(t,n,a),o=!0},i(n){o||(L(e.$$.fragment,n),L(t.$$.fragment,n),o=!0)},o(n){V(e.$$.fragment,n),V(t.$$.fragment,n),o=!1},d(n){K(e,n),n&&g(s),K(t,n)}}}function yt(l){let e,s,t,o,n,a,i,c,u,p,r,_,m,T,v,w,D,S,j,A,q,W,z,$,h,k,G,F,me,ee,ge,de;$=new et({}),k=new at({}),F=new it({}),ee=new _t({});let N=l[0]&&Pe();return{c(){e=b("main"),s=b("h1"),t=M("Composer"),o=I(),n=b("p"),a=M("Trained on fifteen thousand songs. One AI model. Infinite compositions."),i=I(),c=b("p"),u=M(`This space contains a deep neural network model that can compose music. You can use it to generate audio in
|
2 |
-
different styles, 4 bars at a time.`),p=I(),r=b("p"),_=M("Developed by "),m=b("a"),T=M("Ron Au"),v=M(` and
|
3 |
-
`),w=b("a"),D=M("Tristan Behrens"),S=M("."),j=I(),A=b("p"),q=M("Have fun! And always feel free to send us some feedback and share your compositions!"),W=I(),z=b("section"),X($.$$.fragment),h=I(),X(k.$$.fragment),G=I(),X(F.$$.fragment),me=I(),X(ee.$$.fragment),ge=I(),N&&N.c(),this.h()},l(B){e=y(B,"MAIN",{class:!0});var O=E(e);s=y(O,"H1",{class:!0});var Ie=E(s);t=H(Ie,"Composer"),Ie.forEach(g),o=C(O),n=y(O,"P",{class:!0});var Ce=E(n);a=H(Ce,"Trained on fifteen thousand songs. One AI model. Infinite compositions."),Ce.forEach(g),i=C(O),c=y(O,"P",{class:!0});var De=E(c);u=H(De,`This space contains a deep neural network model that can compose music. You can use it to generate audio in
|
4 |
-
different styles, 4 bars at a time.`),De.forEach(g),p=C(O),r=y(O,"P",{class:!0});var le=E(r);_=H(le,"Developed by "),m=y(le,"A",{href:!0,rel:!0,target:!0});var Se=E(m);T=H(Se,"Ron Au"),Se.forEach(g),v=H(le,` and
|
5 |
-
`),w=y(le,"A",{href:!0,rel:!0,target:!0});var Ae=E(w);D=H(Ae,"Tristan Behrens"),Ae.forEach(g),S=H(le,"."),le.forEach(g),j=C(O),A=y(O,"P",{class:!0});var Oe=E(A);q=H(Oe,"Have fun! And always feel free to send us some feedback and share your compositions!"),Oe.forEach(g),W=C(O),z=y(O,"SECTION",{id:!0,class:!0});var ae=E(z);Y($.$$.fragment,ae),h=C(ae),Y(k.$$.fragment,ae),G=C(ae),Y(F.$$.fragment,ae),ae.forEach(g),me=C(O),Y(ee.$$.fragment,O),ge=C(O),N&&N.l(O),O.forEach(g),this.h()},h(){d(s,"class","svelte-1rfjlkw"),d(n,"class","heading svelte-1rfjlkw"),d(c,"class","svelte-1rfjlkw"),d(m,"href","https://twitter.com/ronvoluted"),d(m,"rel","noopener"),d(m,"target","_blank"),d(w,"href","https://twitter.com/DrTBehrens"),d(w,"rel","noopener"),d(w,"target","_blank"),d(r,"class","svelte-1rfjlkw"),d(A,"class","svelte-1rfjlkw"),d(z,"id","options"),d(z,"class","svelte-1rfjlkw"),d(e,"class","svelte-1rfjlkw")},m(B,O){P(B,e,O),f(e,s),f(s,t),f(e,o),f(e,n),f(n,a),f(e,i),f(e,c),f(c,u),f(e,p),f(e,r),f(r,_),f(r,m),f(m,T),f(r,v),f(r,w),f(w,D),f(r,S),f(e,j),f(e,A),f(A,q),f(e,W),f(e,z),J($,z,null),f(z,h),J(k,z,null),f(z,G),J(F,z,null),f(e,me),J(ee,e,null),f(e,ge),N&&N.m(e,null),de=!0},p(B,[O]){B[0]?N?O&1&&L(N,1):(N=Pe(),N.c(),L(N,1),N.m(e,null)):N&&($e(),V(N,1,1,()=>{N=null}),Te())},i(B){de||(L($.$$.fragment,B),L(k.$$.fragment,B),L(F.$$.fragment,B),L(ee.$$.fragment,B),L(N),de=!0)},o(B){V($.$$.fragment,B),V(k.$$.fragment,B),V(F.$$.fragment,B),V(ee.$$.fragment,B),V(N),de=!1},d(B){B&&g(e),K($),K(k),K(F),K(ee),N&&N.d()}}}function wt(l,e,s){let t;return R(l,pe,o=>s(0,t=o)),[t]}class $t extends Q{constructor(e){super(),Z(this,e,wt,yt,x,{})}}export{$t as default};
|
|
|
|
|
|
|
|
|
|
|
|
static/_app/pages/index.svelte-9646dd5a.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import{S as Z,i as x,s as ee,e as b,k as I,c as w,a as E,d as g,m as C,K as se,b as d,g as P,J as f,L as U,t as N,h as H,j as Ee,E as re,M as Re,N as R,O as fe,P as Ge,w as Y,x as J,y as K,Q as Ve,q as L,o as V,B as Q,R as ue,T as Fe,f as X,U as _e,V as ie,W as qe,n as $e,p as Te,X as We,v as Xe,u as Ye,Y as Je,l as Me}from"../chunks/index-7c452e28.js";import{w as le}from"../chunks/index-d282aaf8.js";const he=le("synth"),be=le("medium"),we=le("medium"),ve=le(!1),pe=le(""),ye=le(""),ke=le(""),ne={piano:"Piano",chamber:"Chamber Music",rock_and_metal:"Rock and Metal",synth:"Synthesizer",church:"Church",timpani_strings_harp:"Timpani, Contrabass, Harp",country:"Country",reggae:"Reggae-esque"},Ke={low:"Low",medium:"Medium",high:"High"},Qe={low:"Low",medium:"Medium",high:"High",very_high:"Very High"};function Ne(l,e,s){const t=l.slice();return t[4]=e[s],t[6]=s,t}function He(l){let e,s,t,o,n,a,i,c,u,p,r,_;return{c(){e=b("label"),s=b("div"),t=b("img"),a=I(),i=b("input"),u=I(),this.h()},l(m){e=w(m,"LABEL",{"data-selected":!0,class:!0});var T=E(e);s=w(T,"DIV",{class:!0});var v=E(s);t=w(v,"IMG",{src:!0,alt:!0,class:!0}),v.forEach(g),a=C(T),i=w(T,"INPUT",{type:!0,class:!0}),u=C(T),T.forEach(g),this.h()},h(){se(t.src,o=`static/${l[4]}.svg`)||d(t,"src",o),d(t,"alt",n=ne[l[4]]),d(t,"class","svelte-1r9pswz"),d(s,"class","svelte-1r9pswz"),d(i,"type","radio"),i.__value=c=l[4],i.value=i.__value,d(i,"class","svelte-1r9pswz"),l[3][0].push(i),d(e,"data-selected",p=l[0]===l[4]),d(e,"class","svelte-1r9pswz")},m(m,T){P(m,e,T),f(e,s),f(s,t),f(e,a),f(e,i),i.checked=i.__value===l[0],f(e,u),r||(_=U(i,"change",l[2]),r=!0)},p(m,T){T&1&&(i.checked=i.__value===m[0]),T&1&&p!==(p=m[0]===m[4])&&d(e,"data-selected",p)},d(m){m&&g(e),l[3][0].splice(l[3][0].indexOf(i),1),r=!1,_()}}}function Ze(l){let e,s,t=(ne[l[0]]||"Synthesizer")+"",o,n,a,i=l[1],c=[];for(let u=0;u<i.length;u+=1)c[u]=He(Ne(l,i,u));return{c(){e=b("fieldset"),s=b("legend"),o=N(t),n=I(),a=b("div");for(let u=0;u<c.length;u+=1)c[u].c();this.h()},l(u){e=w(u,"FIELDSET",{class:!0});var p=E(e);s=w(p,"LEGEND",{class:!0});var r=E(s);o=H(r,t),r.forEach(g),n=C(p),a=w(p,"DIV",{class:!0});var _=E(a);for(let m=0;m<c.length;m+=1)c[m].l(_);_.forEach(g),p.forEach(g),this.h()},h(){d(s,"class","svelte-1r9pswz"),d(a,"class","grid svelte-1r9pswz"),d(e,"class","svelte-1r9pswz")},m(u,p){P(u,e,p),f(e,s),f(s,o),f(e,n),f(e,a);for(let r=0;r<c.length;r+=1)c[r].m(a,null)},p(u,[p]){if(p&1&&t!==(t=(ne[u[0]]||"Synthesizer")+"")&&Ee(o,t),p&3){i=u[1];let r;for(r=0;r<i.length;r+=1){const _=Ne(u,i,r);c[r]?c[r].p(_,p):(c[r]=He(_),c[r].c(),c[r].m(a,null))}for(;r<c.length;r+=1)c[r].d(1);c.length=i.length}},i:re,o:re,d(u){u&&g(e),Re(c,u)}}}function xe(l,e,s){let t;R(l,he,i=>s(0,t=i));const o=Object.keys(ne),n=[[]];function a(){t=this.__value,he.set(t)}return[t,o,a,n]}class et extends Z{constructor(e){super(),x(this,e,xe,Ze,ee,{})}}function je(l,e,s){const t=l.slice();return t[5]=e[s],t}function Be(l){let e,s=l[1][l[5]]+"",t,o,n,a,i,c,u,p;return{c(){e=b("label"),t=N(s),o=I(),n=b("input"),i=I(),this.h()},l(r){e=w(r,"LABEL",{"data-selected":!0,class:!0});var _=E(e);t=H(_,s),o=C(_),n=w(_,"INPUT",{type:!0,class:!0}),i=C(_),_.forEach(g),this.h()},h(){d(n,"type","radio"),n.__value=a=l[5],n.value=n.__value,d(n,"class","svelte-1m848u0"),l[4][0].push(n),d(e,"data-selected",c=l[5]===l[0]),d(e,"class","svelte-1m848u0")},m(r,_){P(r,e,_),f(e,t),f(e,o),f(e,n),n.checked=n.__value===l[0],f(e,i),u||(p=U(n,"change",l[3]),u=!0)},p(r,_){_&2&&s!==(s=r[1][r[5]]+"")&&Ee(t,s),_&1&&(n.checked=n.__value===r[0]),_&1&&c!==(c=r[5]===r[0])&&d(e,"data-selected",c)},d(r){r&&g(e),l[4][0].splice(l[4][0].indexOf(n),1),u=!1,p()}}}function tt(l){let e,s=l[2],t=[];for(let o=0;o<s.length;o+=1)t[o]=Be(je(l,s,o));return{c(){e=b("div");for(let o=0;o<t.length;o+=1)t[o].c();this.h()},l(o){e=w(o,"DIV",{class:!0});var n=E(e);for(let a=0;a<t.length;a+=1)t[a].l(n);n.forEach(g),this.h()},h(){d(e,"class","options svelte-1m848u0")},m(o,n){P(o,e,n);for(let a=0;a<t.length;a+=1)t[a].m(e,null)},p(o,[n]){if(n&7){s=o[2];let a;for(a=0;a<s.length;a+=1){const i=je(o,s,a);t[a]?t[a].p(i,n):(t[a]=Be(i),t[a].c(),t[a].m(e,null))}for(;a<t.length;a+=1)t[a].d(1);t.length=s.length}},i:re,o:re,d(o){o&&g(e),Re(t,o)}}}function st(l,e,s){let{options:t}=e;const o=Object.keys(t);let{selection:n=o[1]}=e;const a=[[]];function i(){n=this.__value,s(0,n)}return l.$$set=c=>{"options"in c&&s(1,t=c.options),"selection"in c&&s(0,n=c.selection)},[n,t,o,i,a]}class Ue extends Z{constructor(e){super(),x(this,e,st,tt,ee,{options:1,selection:0})}}function nt(l){let e,s,t,o,n,a,i,c;function u(r){l[1](r)}let p={options:Ke};return l[0]!==void 0&&(p.selection=l[0]),a=new Ue({props:p}),fe.push(()=>Ge(a,"selection",u)),{c(){e=b("div"),s=b("fieldset"),t=b("legend"),o=N("Note density"),n=I(),Y(a.$$.fragment),this.h()},l(r){e=w(r,"DIV",{});var _=E(e);s=w(_,"FIELDSET",{class:!0});var m=E(s);t=w(m,"LEGEND",{class:!0});var T=E(t);o=H(T,"Note density"),T.forEach(g),n=C(m),J(a.$$.fragment,m),m.forEach(g),_.forEach(g),this.h()},h(){d(t,"class","svelte-1ikh8be"),d(s,"class","svelte-1ikh8be")},m(r,_){P(r,e,_),f(e,s),f(s,t),f(t,o),f(s,n),K(a,s,null),c=!0},p(r,[_]){const m={};!i&&_&1&&(i=!0,m.selection=r[0],Ve(()=>i=!1)),a.$set(m)},i(r){c||(L(a.$$.fragment,r),c=!0)},o(r){V(a.$$.fragment,r),c=!1},d(r){r&&g(e),Q(a)}}}function lt(l,e,s){let t;R(l,be,n=>s(0,t=n));function o(n){t=n,be.set(t)}return[t,o]}class at extends Z{constructor(e){super(),x(this,e,lt,nt,ee,{})}}function ot(l){let e,s,t,o,n,a,i,c;function u(r){l[1](r)}let p={options:Qe};return l[0]!==void 0&&(p.selection=l[0]),a=new Ue({props:p}),fe.push(()=>Ge(a,"selection",u)),{c(){e=b("div"),s=b("fieldset"),t=b("legend"),o=N("Temperature"),n=I(),Y(a.$$.fragment),this.h()},l(r){e=w(r,"DIV",{});var _=E(e);s=w(_,"FIELDSET",{class:!0});var m=E(s);t=w(m,"LEGEND",{class:!0});var T=E(t);o=H(T,"Temperature"),T.forEach(g),n=C(m),J(a.$$.fragment,m),m.forEach(g),_.forEach(g),this.h()},h(){d(t,"class","svelte-1ikh8be"),d(s,"class","svelte-1ikh8be")},m(r,_){P(r,e,_),f(e,s),f(s,t),f(t,o),f(s,n),K(a,s,null),c=!0},p(r,[_]){const m={};!i&&_&1&&(i=!0,m.selection=r[0],Ve(()=>i=!1)),a.$set(m)},i(r){c||(L(a.$$.fragment,r),c=!0)},o(r){V(a.$$.fragment,r),c=!1},d(r){r&&g(e),Q(a)}}}function rt(l,e,s){let t;R(l,we,n=>s(0,t=n));function o(n){t=n,we.set(t)}return[t,o]}class it extends Z{constructor(e){super(),x(this,e,rt,ot,ee,{})}}function ct(l){let e,s,t;return{c(){e=N("Compose "),s=b("img"),this.h()},l(o){e=H(o,"Compose "),s=w(o,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){se(s.src,t="static/wand.svg")||d(s,"src",t),d(s,"alt","Magic wand"),d(s,"class","svelte-18w38ow")},m(o,n){P(o,e,n),P(o,s,n)},d(o){o&&g(e),o&&g(s)}}}function ut(l){let e;return{c(){e=N("Composing...")},l(s){e=H(s,"Composing...")},m(s,t){P(s,e,t)},d(s){s&&g(e)}}}function ft(l){let e,s,t;function o(i,c){return i[0]?ut:ct}let n=o(l),a=n(l);return{c(){e=b("button"),a.c(),this.h()},l(i){e=w(i,"BUTTON",{class:!0});var c=E(e);a.l(c),c.forEach(g),this.h()},h(){e.disabled=l[0],d(e,"class","svelte-18w38ow")},m(i,c){P(i,e,c),a.m(e,null),s||(t=U(e,"click",l[1]),s=!0)},p(i,[c]){n!==(n=o(i))&&(a.d(1),a=n(i),a&&(a.c(),a.m(e,null))),c&1&&(e.disabled=i[0])},i:re,o:re,d(i){i&&g(e),a.d(),s=!1,t()}}}function dt(l,e,s){let t,o,n,a,i,c,u;R(l,ve,v=>s(0,t=v)),R(l,ke,v=>s(2,o=v)),R(l,ye,v=>s(3,n=v)),R(l,pe,v=>s(4,a=v)),R(l,we,v=>s(5,i=v)),R(l,be,v=>s(6,c=v)),R(l,he,v=>s(7,u=v));const p=()=>{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new MediaMetadata({title:`${ne[u]} Composition`,artist:"AI Guru Composer",album:"Hugging Face",artwork:[{src:"static/hugging-face-headphones.png",sizes:"512x512",type:"image/png"}]}))},r=async({music_style:v,density:y,temperature:D})=>{var A;const S=await fetch("task/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({music_style:v,density:y,temperature:D})});if(!S.ok||!((A=S.headers.get("content-type"))!=null&&A.includes("application/json")))throw new Error(`Unable to create composition: [${S.status}] ${await S.text()}`);return await S.json()},_=async v=>{var D;const y=await fetch(`task/poll?task_id=${v.task_id}`);if(!y.ok||!((D=y.headers.get("content-type"))!=null&&D.includes("application/json")))throw new Error(`Unable to create composition: [${y.status}] ${await y.text()}`);return await y.json()},m=async(v,y=1e3,D=100)=>(v=await _(v),v.status==="completed"||v.status==="failed"||D&&v.poll_count>D?v:(await new Promise(S=>setTimeout(S,y)),await m(v,y,D)));return[t,async()=>{ue(ve,t=!0,t);try{const v=await r({music_style:u,density:c,temperature:i}),y=await m(v),{audio:D,image:S,tokens:j}=y.output;ue(pe,a=D,a),ue(ye,n=S,n),ue(ke,o=j,o),p()}catch(v){console.error(v)}finally{ue(ve,t=!1,t)}}]}class _t extends Z{constructor(e){super(),x(this,e,dt,ft,ee,{})}}function ce(l,{delay:e=0,duration:s=400,easing:t=Fe}={}){const o=+getComputedStyle(l).opacity;return{delay:e,duration:s,easing:t,css:n=>`opacity: ${n*o}`}}function Le(l){let e,s,t,o;return{c(){e=b("img"),this.h()},l(n){e=w(n,"IMG",{class:!0,src:!0,alt:!0,draggable:!0}),this.h()},h(){d(e,"class","play-button svelte-1536b0c"),se(e.src,s="static/play.svg")||d(e,"src",s),d(e,"alt","Play button"),d(e,"draggable","false"),X(e,"width",l[7]>100?"20%":"7.5%",!1)},m(n,a){P(n,e,a),o=!0},p(n,a){a&128&&X(e,"width",n[7]>100?"20%":"7.5%",!1)},i(n){o||(_e(()=>{t||(t=ie(e,ce,{},!0)),t.run(1)}),o=!0)},o(n){t||(t=ie(e,ce,{},!1)),t.run(0),o=!1},d(n){n&&g(e),n&&t&&t.end()}}}function ht(l){let e,s,t,o,n,a,i,c=!1,u,p=!0,r,_,m=`translate(${Math.min(l[6]*(l[1]/(l[2]-.9)),l[6])}px, -2%)`,T,v,y,D,S,j,A,q,W;function z(){cancelAnimationFrame(u),a.paused||(u=Je(z),c=!0),l[15].call(a)}let $=l[3]&&Le(l);return{c(){e=b("section"),s=b("img"),o=I(),n=b("div"),a=b("audio"),r=I(),_=b("div"),T=I(),$&&$.c(),v=I(),y=b("a"),D=N("Download"),this.h()},l(h){e=w(h,"SECTION",{class:!0});var k=E(e);s=w(k,"IMG",{class:!0,src:!0,alt:!0}),o=C(k),n=w(k,"DIV",{class:!0,tabindex:!0});var G=E(n);a=w(G,"AUDIO",{src:!0,class:!0}),E(a).forEach(g),r=C(G),_=w(G,"DIV",{class:!0}),E(_).forEach(g),T=C(G),$&&$.l(G),G.forEach(g),v=C(k),y=w(k,"A",{href:!0,download:!0,class:!0});var F=E(y);D=H(F,"Download"),F.forEach(g),k.forEach(g),this.h()},h(){d(s,"class","notes svelte-1536b0c"),se(s.src,t=l[8])||d(s,"src",t),d(s,"alt",""),se(a.src,i=l[9])||d(a,"src",i),d(a,"class","svelte-1536b0c"),l[2]===void 0&&_e(()=>l[16].call(a)),d(_,"class","handle svelte-1536b0c"),X(_,"transform",m,!1),d(n,"class","player svelte-1536b0c"),d(n,"tabindex","0"),X(n,"width",l[6]+"px",!1),X(n,"height",l[7]+"px",!1),d(y,"href",l[9]),d(y,"download",S=`${ne[l[10]]} Composition - AI Guru ft. Hugging Face.wav`),d(y,"class","download svelte-1536b0c"),d(e,"class","svelte-1536b0c")},m(h,k){P(h,e,k),f(e,s),l[14](s),f(e,o),f(e,n),f(n,a),f(n,r),f(n,_),f(n,T),$&&$.m(n,null),l[18](n),f(e,v),f(e,y),f(y,D),l[20](e),A=!0,q||(W=[U(a,"timeupdate",z),U(a,"durationchange",l[16]),U(a,"play",l[17]),U(a,"pause",l[17]),U(n,"mousemove",l[11]),U(n,"touchmove",qe(l[12])),U(n,"keydown",l[13]),U(n,"click",l[19])],q=!0)},p(h,[k]){(!A||k&256&&!se(s.src,t=h[8]))&&d(s,"src",t),(!A||k&512&&!se(a.src,i=h[9]))&&d(a,"src",i),!c&&k&2&&!isNaN(h[1])&&(a.currentTime=h[1]),c=!1,k&8&&p!==(p=h[3])&&a[p?"pause":"play"](),k&70&&m!==(m=`translate(${Math.min(h[6]*(h[1]/(h[2]-.9)),h[6])}px, -2%)`)&&X(_,"transform",m,!1),h[3]?$?($.p(h,k),k&8&&L($,1)):($=Le(h),$.c(),L($,1),$.m(n,null)):$&&($e(),V($,1,1,()=>{$=null}),Te()),k&64&&X(n,"width",h[6]+"px",!1),k&128&&X(n,"height",h[7]+"px",!1),(!A||k&512)&&d(y,"href",h[9]),(!A||k&1024&&S!==(S=`${ne[h[10]]} Composition - AI Guru ft. Hugging Face.wav`))&&d(y,"download",S)},i(h){A||(L($),_e(()=>{j||(j=ie(e,ce,{},!0)),j.run(1)}),A=!0)},o(h){V($),j||(j=ie(e,ce,{},!1)),j.run(0),A=!1},d(h){h&&g(e),l[14](null),$&&$.d(),l[18](null),l[20](null),h&&j&&j.end(),q=!1,We(W)}}}function pt(l,e,s){let t,o,n;R(l,ye,h=>s(8,t=h)),R(l,pe,h=>s(9,o=h)),R(l,he,h=>s(10,n=h));let a,i,c,u=!0,p,r,_,m;const T=()=>{s(6,_=r&&r.clientWidth),s(7,m=r&&r.clientHeight)};Xe(()=>{T(),"mediaSession"in navigator&&(navigator.mediaSession.setActionHandler("play",()=>s(3,u=!1)),navigator.mediaSession.setActionHandler("pause",()=>s(3,u=!0)),navigator.mediaSession.setActionHandler("stop",()=>{s(3,u=!0),s(1,i=0)})),window.scrollTo({top:a.offsetTop,behavior:"smooth"})}),Ye(()=>{T()});const v=h=>{if(!c||!h.buttons)return;const{left:k,right:G}=p.getBoundingClientRect();s(1,i=c*(h.clientX-k)/(G-k))},y=h=>{if(!c)return;const{left:k,right:G}=p.getBoundingClientRect();s(1,i=c*(h.touches[0].clientX-k)/(G-k))},D=h=>{h.preventDefault(),h.code==="Space"&&s(3,u=!u),h.code==="ArrowLeft"&&s(1,i=i>=1?i-1:0),h.code==="ArrowRight"&&s(1,i=i<=c-1?i+1:c)};function S(h){fe[h?"unshift":"push"](()=>{r=h,s(5,r)})}function j(){i=this.currentTime,s(1,i)}function A(){c=this.duration,s(2,c)}function q(){u=this.paused,s(3,u)}function W(h){fe[h?"unshift":"push"](()=>{p=h,s(4,p)})}const z=()=>s(3,u=!u);function $(h){fe[h?"unshift":"push"](()=>{a=h,s(0,a)})}return[a,i,c,u,p,r,_,m,t,o,n,v,y,D,S,j,A,q,W,z,$]}class mt extends Z{constructor(e){super(),x(this,e,pt,ht,ee,{})}}function ze(l){let e,s,t,o,n,a,i,c;return{c(){e=b("section"),s=b("h2"),t=N("Tokenized notes"),o=I(),n=b("p"),a=N(l[0]),this.h()},l(u){e=w(u,"SECTION",{class:!0});var p=E(e);s=w(p,"H2",{});var r=E(s);t=H(r,"Tokenized notes"),r.forEach(g),o=C(p),n=w(p,"P",{class:!0});var _=E(n);a=H(_,l[0]),_.forEach(g),p.forEach(g),this.h()},h(){d(n,"class","svelte-4un5mw"),d(e,"class","svelte-4un5mw")},m(u,p){P(u,e,p),f(e,s),f(s,t),f(e,o),f(e,n),f(n,a),c=!0},p(u,p){(!c||p&1)&&Ee(a,u[0])},i(u){c||(_e(()=>{i||(i=ie(e,ce,{},!0)),i.run(1)}),c=!0)},o(u){i||(i=ie(e,ce,{},!1)),i.run(0),c=!1},d(u){u&&g(e),u&&i&&i.end()}}}function gt(l){let e,s,t=l[0]&&ze(l);return{c(){t&&t.c(),e=Me()},l(o){t&&t.l(o),e=Me()},m(o,n){t&&t.m(o,n),P(o,e,n),s=!0},p(o,[n]){o[0]?t?(t.p(o,n),n&1&&L(t,1)):(t=ze(o),t.c(),L(t,1),t.m(e.parentNode,e)):t&&($e(),V(t,1,1,()=>{t=null}),Te())},i(o){s||(L(t),s=!0)},o(o){V(t),s=!1},d(o){t&&t.d(o),o&&g(e)}}}function vt(l,e,s){let t;return R(l,ke,o=>s(0,t=o)),[t]}class bt extends Z{constructor(e){super(),x(this,e,vt,gt,ee,{})}}function Pe(l){let e,s,t,o;return e=new mt({}),t=new bt({}),{c(){Y(e.$$.fragment),s=I(),Y(t.$$.fragment)},l(n){J(e.$$.fragment,n),s=C(n),J(t.$$.fragment,n)},m(n,a){K(e,n,a),P(n,s,a),K(t,n,a),o=!0},i(n){o||(L(e.$$.fragment,n),L(t.$$.fragment,n),o=!0)},o(n){V(e.$$.fragment,n),V(t.$$.fragment,n),o=!1},d(n){Q(e,n),n&&g(s),Q(t,n)}}}function wt(l){let e,s,t,o,n,a,i,c,u,p,r,_,m,T,v,y,D,S,j,A,q,W,z,$,h,k,G,F,me,te,ge,de;$=new et({}),k=new at({}),F=new it({}),te=new _t({});let M=l[0]&&Pe();return{c(){e=b("main"),s=b("h1"),t=N("Composer"),o=I(),n=b("p"),a=N("Trained on fifteen thousand songs. One AI model. Infinite compositions."),i=I(),c=b("p"),u=N(`This space contains a deep neural network model that can compose music. You can use it to generate audio in
|
2 |
+
different styles, 4 bars at a time.`),p=I(),r=b("p"),_=N("Developed by "),m=b("a"),T=N("Ron Au"),v=N(` and
|
3 |
+
`),y=b("a"),D=N("Tristan Behrens"),S=N("."),j=I(),A=b("p"),q=N("Have fun! And always feel free to send us some feedback and share your compositions!"),W=I(),z=b("section"),Y($.$$.fragment),h=I(),Y(k.$$.fragment),G=I(),Y(F.$$.fragment),me=I(),Y(te.$$.fragment),ge=I(),M&&M.c(),this.h()},l(B){e=w(B,"MAIN",{class:!0});var O=E(e);s=w(O,"H1",{class:!0});var Ie=E(s);t=H(Ie,"Composer"),Ie.forEach(g),o=C(O),n=w(O,"P",{class:!0});var Ce=E(n);a=H(Ce,"Trained on fifteen thousand songs. One AI model. Infinite compositions."),Ce.forEach(g),i=C(O),c=w(O,"P",{class:!0});var De=E(c);u=H(De,`This space contains a deep neural network model that can compose music. You can use it to generate audio in
|
4 |
+
different styles, 4 bars at a time.`),De.forEach(g),p=C(O),r=w(O,"P",{class:!0});var ae=E(r);_=H(ae,"Developed by "),m=w(ae,"A",{href:!0,rel:!0,target:!0});var Se=E(m);T=H(Se,"Ron Au"),Se.forEach(g),v=H(ae,` and
|
5 |
+
`),y=w(ae,"A",{href:!0,rel:!0,target:!0});var Ae=E(y);D=H(Ae,"Tristan Behrens"),Ae.forEach(g),S=H(ae,"."),ae.forEach(g),j=C(O),A=w(O,"P",{class:!0});var Oe=E(A);q=H(Oe,"Have fun! And always feel free to send us some feedback and share your compositions!"),Oe.forEach(g),W=C(O),z=w(O,"SECTION",{id:!0,class:!0});var oe=E(z);J($.$$.fragment,oe),h=C(oe),J(k.$$.fragment,oe),G=C(oe),J(F.$$.fragment,oe),oe.forEach(g),me=C(O),J(te.$$.fragment,O),ge=C(O),M&&M.l(O),O.forEach(g),this.h()},h(){d(s,"class","svelte-1rfjlkw"),d(n,"class","heading svelte-1rfjlkw"),d(c,"class","svelte-1rfjlkw"),d(m,"href","https://twitter.com/ronvoluted"),d(m,"rel","noopener"),d(m,"target","_blank"),d(y,"href","https://twitter.com/DrTBehrens"),d(y,"rel","noopener"),d(y,"target","_blank"),d(r,"class","svelte-1rfjlkw"),d(A,"class","svelte-1rfjlkw"),d(z,"id","options"),d(z,"class","svelte-1rfjlkw"),d(e,"class","svelte-1rfjlkw")},m(B,O){P(B,e,O),f(e,s),f(s,t),f(e,o),f(e,n),f(n,a),f(e,i),f(e,c),f(c,u),f(e,p),f(e,r),f(r,_),f(r,m),f(m,T),f(r,v),f(r,y),f(y,D),f(r,S),f(e,j),f(e,A),f(A,q),f(e,W),f(e,z),K($,z,null),f(z,h),K(k,z,null),f(z,G),K(F,z,null),f(e,me),K(te,e,null),f(e,ge),M&&M.m(e,null),de=!0},p(B,[O]){B[0]?M?O&1&&L(M,1):(M=Pe(),M.c(),L(M,1),M.m(e,null)):M&&($e(),V(M,1,1,()=>{M=null}),Te())},i(B){de||(L($.$$.fragment,B),L(k.$$.fragment,B),L(F.$$.fragment,B),L(te.$$.fragment,B),L(M),de=!0)},o(B){V($.$$.fragment,B),V(k.$$.fragment,B),V(F.$$.fragment,B),V(te.$$.fragment,B),V(M),de=!1},d(B){B&&g(e),Q($),Q(k),Q(F),Q(te),M&&M.d()}}}function yt(l,e,s){let t;return R(l,pe,o=>s(0,t=o)),[t]}class $t extends Z{constructor(e){super(),x(this,e,yt,wt,ee,{})}}export{$t as default};
|
static/_app/{start-fa853323.js → start-29a7455a.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-7c452e28.js";import{w as ue}from"./chunks/index-d282aaf8.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/static/_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-6bd51f02.js"),["layout.svelte-6bd51f02.js","chunks/index-7c452e28.js"]),()=>be(()=>import("./error.svelte-929faa0c.js"),["error.svelte-929faa0c.js","chunks/index-7c452e28.js"]),()=>be(()=>import("./pages/index.svelte-49d5df81.js"),["pages/index.svelte-49d5df81.js","assets/pages/index.svelte-ad990746.css","chunks/index-7c452e28.js","chunks/index-d282aaf8.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="1651486908280";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-7c452e28.js";import{w as ue}from"./chunks/index-d282aaf8.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/static/_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-6bd51f02.js"),["layout.svelte-6bd51f02.js","chunks/index-7c452e28.js"]),()=>be(()=>import("./error.svelte-929faa0c.js"),["error.svelte-929faa0c.js","chunks/index-7c452e28.js"]),()=>be(()=>import("./pages/index.svelte-9646dd5a.js"),["pages/index.svelte-9646dd5a.js","assets/pages/index.svelte-ad990746.css","chunks/index-7c452e28.js","chunks/index-d282aaf8.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="1651582456514";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":"1651582456514"}
|
static/index.html
CHANGED
@@ -3,21 +3,21 @@
|
|
3 |
<head>
|
4 |
<meta charset="utf-8" />
|
5 |
<meta name="description" content="" />
|
6 |
-
<link rel="icon" href="
|
7 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
9 |
<link href="https://fonts.googleapis.com/css2?family=Italiana&family=Lato&display=swap" rel="stylesheet" />
|
10 |
-
<link rel="stylesheet" href="
|
11 |
<link href="https://fonts.googleapis.com/css2?family=Italiana&family=Lato&display=swap" rel="stylesheet" />
|
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="
|
16 |
-
<link rel="modulepreload" href="
|
17 |
-
<link rel="modulepreload" href="
|
18 |
-
<link rel="modulepreload" href="
|
19 |
-
<link rel="modulepreload" href="
|
20 |
-
<link rel="modulepreload" href="
|
21 |
</head>
|
22 |
<body>
|
23 |
<div>
|
@@ -80,7 +80,7 @@
|
|
80 |
|
81 |
|
82 |
<script type="module" data-hydrate="39sfix">
|
83 |
-
import { start } from "
|
84 |
start({
|
85 |
target: document.querySelector('[data-hydrate="39sfix"]').parentNode,
|
86 |
paths: {"base":"/static","assets":"/static"},
|
@@ -92,8 +92,8 @@
|
|
92 |
status: 200,
|
93 |
error: null,
|
94 |
nodes: [
|
95 |
-
import("
|
96 |
-
import("
|
97 |
],
|
98 |
params: {},
|
99 |
routeId: ""
|
|
|
3 |
<head>
|
4 |
<meta charset="utf-8" />
|
5 |
<meta name="description" content="" />
|
6 |
+
<link rel="icon" href="/static/wand.svg" />
|
7 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
9 |
<link href="https://fonts.googleapis.com/css2?family=Italiana&family=Lato&display=swap" rel="stylesheet" />
|
10 |
+
<link rel="stylesheet" href="/static/style.css" />
|
11 |
<link href="https://fonts.googleapis.com/css2?family=Italiana&family=Lato&display=swap" rel="stylesheet" />
|
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="/static/_app/assets/pages/index.svelte-ad990746.css">
|
16 |
+
<link rel="modulepreload" href="/static/_app/start-29a7455a.js">
|
17 |
+
<link rel="modulepreload" href="/static/_app/chunks/index-7c452e28.js">
|
18 |
+
<link rel="modulepreload" href="/static/_app/chunks/index-d282aaf8.js">
|
19 |
+
<link rel="modulepreload" href="/static/_app/layout.svelte-6bd51f02.js">
|
20 |
+
<link rel="modulepreload" href="/static/_app/pages/index.svelte-9646dd5a.js">
|
21 |
</head>
|
22 |
<body>
|
23 |
<div>
|
|
|
80 |
|
81 |
|
82 |
<script type="module" data-hydrate="39sfix">
|
83 |
+
import { start } from "/static/_app/start-29a7455a.js";
|
84 |
start({
|
85 |
target: document.querySelector('[data-hydrate="39sfix"]').parentNode,
|
86 |
paths: {"base":"/static","assets":"/static"},
|
|
|
92 |
status: 200,
|
93 |
error: null,
|
94 |
nodes: [
|
95 |
+
import("/static/_app/layout.svelte-6bd51f02.js"),
|
96 |
+
import("/static/_app/pages/index.svelte-9646dd5a.js")
|
97 |
],
|
98 |
params: {},
|
99 |
routeId: ""
|
static/style.css
CHANGED
@@ -3,7 +3,7 @@ html {
|
|
3 |
}
|
4 |
|
5 |
body {
|
6 |
-
padding:
|
7 |
font-family: 'Lato', sans-serif;
|
8 |
background-color: hsl(0 0% 1%);
|
9 |
background: linear-gradient(hsl(0 0% 1%) 50%, hsl(0 0% 8%) 100%);
|
@@ -25,3 +25,10 @@ a, a:visited {
|
|
25 |
text-decoration: none;
|
26 |
font-weight: 700;
|
27 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
}
|
4 |
|
5 |
body {
|
6 |
+
padding: 1rem;
|
7 |
font-family: 'Lato', sans-serif;
|
8 |
background-color: hsl(0 0% 1%);
|
9 |
background: linear-gradient(hsl(0 0% 1%) 50%, hsl(0 0% 8%) 100%);
|
|
|
25 |
text-decoration: none;
|
26 |
font-weight: 700;
|
27 |
}
|
28 |
+
|
29 |
+
|
30 |
+
@media (min-width: 600px) {
|
31 |
+
body {
|
32 |
+
padding: 2rem;
|
33 |
+
}
|
34 |
+
}
|