From ceda9d3d0835a5cd22168365a040dbe0094c9c25 Mon Sep 17 00:00:00 2001 From: TeemuKoivisto Date: Wed, 6 Mar 2024 12:24:23 +0000 Subject: [PATCH] deploy: e369f925b0c2b06453da66e79b3feb94ce8e8054 --- _app/immutable/chunks/3.715a6b2e.js | 1 + _app/immutable/chunks/3.8c3c04e9.js | 1 - .../{Score.6e128b48.js => Score.0d21b472.js} | 2 +- .../chunks/arabic-TJdw9TqS.cd2ea0d3.js | 1 + .../armenianEastern-LNw2V_Kb.e28a3752.js | 1 + .../armenianWestern-zmIyLd1o.38785f27.js | 1 + .../chunks/assamese-2fg5TKew.e3a11680.js | 1 + .../chunks/balochi-KrgUS2RK.d85c6f1a.js | 1 + .../chunks/belarusian--mjombxK.1fcd2897.js | 1 + .../chunks/bengali-2-qmZ9ZL.b883376f.js | 1 + .../chunks/brazilian-_aUR_EdS.2b1b1fd9.js | 1 + .../chunks/burmese-DNLMDG0C.87e404a2.js | 1 + .../chunks/chinese-Vv6o_huT.c292fc41.js | 1 + .../chunks/czech-AAz70GMU.0cffa7b5.js | 1 + .../chunks/farsi-akNUiiy1.62727da0.js | 1 + .../chunks/french-GKHnJmdK.94658ac4.js | 1 + .../chunks/georgian-SQFgQD3n.89ef2935.js | 1 + .../chunks/german-Wy-4wNPv.fa6f994f.js | 1 + .../chunks/gilaki-v742kFIj.beefdad3.js | 1 + .../chunks/greek-lay7OJjb.9c2c2556.js | 1 + .../chunks/hebrew-V6ZtD_jG.48875cb9.js | 1 + .../chunks/hindi-uNDpRlqm.76d6c741.js | 1 + .../chunks/hungarian-Wnxix6n4.45652951.js | 1 + .../chunks/italian-eDgp6wHT.50798155.js | 1 + .../chunks/japanese-Zv_Q1DDl.d78f358a.js | 1 + .../chunks/kannada-1jV6XiS0.41bc3c66.js | 1 + .../chunks/kurdish-eencXZUC.4cb27155.js | 1 + .../chunks/macedonian-Dot-tKLH.04517113.js | 1 + .../chunks/malayalam-1xjnMslS.610dd1c4.js | 1 + .../chunks/nigerian-IYPkF_j3.5b26cce3.js | 1 + _app/immutable/chunks/nko-EI8QPheE.3268d6cd.js | 1 + .../chunks/norwegian-sal6SH2s.847bc0b5.js | 1 + .../immutable/chunks/odia-zrWvkRlA.e8b72abc.js | 1 + .../chunks/polish-yYQdl0aw.936f6a15.js | 1 + .../chunks/punjabi-0AIiTj_p.01c98b73.js | 1 + .../chunks/russian-sQ885m4A.ff7543fb.js | 1 + .../chunks/russianOld-EJwjNEzY.7b3bb226.js | 1 + .../chunks/sindhi-guri82Yy.2a0648bd.js | 1 + .../chunks/spanish-Ww3zYGV_.0ed27470.js | 1 + .../chunks/swedish-RpPWxHx_.af07bd5e.js | 1 + .../chunks/telugu-WPb3GXn5.f8d401d9.js | 1 + .../immutable/chunks/thai-Q-LTk3Id.1148f3d0.js | 1 + .../chunks/turkish-qQEi80RS.cb967a2e.js | 1 + .../chunks/ukrainian-CLoogq0p.3e4781c0.js | 1 + .../immutable/chunks/urdu-NIkHMU4A.9c633ce1.js | 1 + .../chunks/urduStandard-LGkVMfEq.8382df56.js | 1 + .../chunks/uyghur-eF-99IjK.066cbfdb.js | 1 + .../immutable/chunks/vendor_svelte.92aa1392.js | 6 ++++++ .../immutable/chunks/vendor_svelte.9533a558.js | 6 ------ .../entry/{app.046e4e3c.js => app.3bc85028.js} | 2 +- _app/immutable/entry/start.11bc0f32.js | 1 + _app/immutable/entry/start.16f067c5.js | 1 - .../nodes/{0.f2bf2a97.js => 0.a5f5e278.js} | 2 +- _app/immutable/nodes/1.16512379.js | 1 + _app/immutable/nodes/1.85542212.js | 1 - .../nodes/{2.359a7bf0.js => 2.f30ac75f.js} | 2 +- _app/immutable/nodes/3.069112b4.js | 1 - _app/immutable/nodes/3.64d7238a.js | 1 + .../nodes/{4.42c58d77.js => 4.56f78c50.js} | 2 +- _app/version.json | 2 +- index.html | 12 ++++++------ synth.html | 18 +++++++++--------- 62 files changed, 75 insertions(+), 31 deletions(-) create mode 100644 _app/immutable/chunks/3.715a6b2e.js delete mode 100644 _app/immutable/chunks/3.8c3c04e9.js rename _app/immutable/chunks/{Score.6e128b48.js => Score.0d21b472.js} (98%) create mode 100644 _app/immutable/chunks/arabic-TJdw9TqS.cd2ea0d3.js create mode 100644 _app/immutable/chunks/armenianEastern-LNw2V_Kb.e28a3752.js create mode 100644 _app/immutable/chunks/armenianWestern-zmIyLd1o.38785f27.js create mode 100644 _app/immutable/chunks/assamese-2fg5TKew.e3a11680.js create mode 100644 _app/immutable/chunks/balochi-KrgUS2RK.d85c6f1a.js create mode 100644 _app/immutable/chunks/belarusian--mjombxK.1fcd2897.js create mode 100644 _app/immutable/chunks/bengali-2-qmZ9ZL.b883376f.js create mode 100644 _app/immutable/chunks/brazilian-_aUR_EdS.2b1b1fd9.js create mode 100644 _app/immutable/chunks/burmese-DNLMDG0C.87e404a2.js create mode 100644 _app/immutable/chunks/chinese-Vv6o_huT.c292fc41.js create mode 100644 _app/immutable/chunks/czech-AAz70GMU.0cffa7b5.js create mode 100644 _app/immutable/chunks/farsi-akNUiiy1.62727da0.js create mode 100644 _app/immutable/chunks/french-GKHnJmdK.94658ac4.js create mode 100644 _app/immutable/chunks/georgian-SQFgQD3n.89ef2935.js create mode 100644 _app/immutable/chunks/german-Wy-4wNPv.fa6f994f.js create mode 100644 _app/immutable/chunks/gilaki-v742kFIj.beefdad3.js create mode 100644 _app/immutable/chunks/greek-lay7OJjb.9c2c2556.js create mode 100644 _app/immutable/chunks/hebrew-V6ZtD_jG.48875cb9.js create mode 100644 _app/immutable/chunks/hindi-uNDpRlqm.76d6c741.js create mode 100644 _app/immutable/chunks/hungarian-Wnxix6n4.45652951.js create mode 100644 _app/immutable/chunks/italian-eDgp6wHT.50798155.js create mode 100644 _app/immutable/chunks/japanese-Zv_Q1DDl.d78f358a.js create mode 100644 _app/immutable/chunks/kannada-1jV6XiS0.41bc3c66.js create mode 100644 _app/immutable/chunks/kurdish-eencXZUC.4cb27155.js create mode 100644 _app/immutable/chunks/macedonian-Dot-tKLH.04517113.js create mode 100644 _app/immutable/chunks/malayalam-1xjnMslS.610dd1c4.js create mode 100644 _app/immutable/chunks/nigerian-IYPkF_j3.5b26cce3.js create mode 100644 _app/immutable/chunks/nko-EI8QPheE.3268d6cd.js create mode 100644 _app/immutable/chunks/norwegian-sal6SH2s.847bc0b5.js create mode 100644 _app/immutable/chunks/odia-zrWvkRlA.e8b72abc.js create mode 100644 _app/immutable/chunks/polish-yYQdl0aw.936f6a15.js create mode 100644 _app/immutable/chunks/punjabi-0AIiTj_p.01c98b73.js create mode 100644 _app/immutable/chunks/russian-sQ885m4A.ff7543fb.js create mode 100644 _app/immutable/chunks/russianOld-EJwjNEzY.7b3bb226.js create mode 100644 _app/immutable/chunks/sindhi-guri82Yy.2a0648bd.js create mode 100644 _app/immutable/chunks/spanish-Ww3zYGV_.0ed27470.js create mode 100644 _app/immutable/chunks/swedish-RpPWxHx_.af07bd5e.js create mode 100644 _app/immutable/chunks/telugu-WPb3GXn5.f8d401d9.js create mode 100644 _app/immutable/chunks/thai-Q-LTk3Id.1148f3d0.js create mode 100644 _app/immutable/chunks/turkish-qQEi80RS.cb967a2e.js create mode 100644 _app/immutable/chunks/ukrainian-CLoogq0p.3e4781c0.js create mode 100644 _app/immutable/chunks/urdu-NIkHMU4A.9c633ce1.js create mode 100644 _app/immutable/chunks/urduStandard-LGkVMfEq.8382df56.js create mode 100644 _app/immutable/chunks/uyghur-eF-99IjK.066cbfdb.js create mode 100644 _app/immutable/chunks/vendor_svelte.92aa1392.js delete mode 100644 _app/immutable/chunks/vendor_svelte.9533a558.js rename _app/immutable/entry/{app.046e4e3c.js => app.3bc85028.js} (89%) create mode 100644 _app/immutable/entry/start.11bc0f32.js delete mode 100644 _app/immutable/entry/start.16f067c5.js rename _app/immutable/nodes/{0.f2bf2a97.js => 0.a5f5e278.js} (91%) create mode 100644 _app/immutable/nodes/1.16512379.js delete mode 100644 _app/immutable/nodes/1.85542212.js rename _app/immutable/nodes/{2.359a7bf0.js => 2.f30ac75f.js} (93%) delete mode 100644 _app/immutable/nodes/3.069112b4.js create mode 100644 _app/immutable/nodes/3.64d7238a.js rename _app/immutable/nodes/{4.42c58d77.js => 4.56f78c50.js} (93%) diff --git a/_app/immutable/chunks/3.715a6b2e.js b/_app/immutable/chunks/3.715a6b2e.js new file mode 100644 index 00000000..abda6e6f --- /dev/null +++ b/_app/immutable/chunks/3.715a6b2e.js @@ -0,0 +1 @@ +import{_ as te}from"./preload-helper.a4192956.js";import{R as ye,Q as Nt,T as Be,U as fn,S as ze,i as He,s as qe,O as rt,V as le,e as p,m as j,H as _e,a as v,b as S,n as Z,d as m,o as P,I as pe,f as h,L as q,W as Ie,g as R,h as u,J as ve,p as F,t as $,C as st,w as lt,l as W,K as ge,X as je,Y as it,M as oe,N as Ee,P as we,z as J,A as Q,B as re,v as Pe,q as fe,c as xl,u as Kl,j as $l,k as Fl,Z as As,_ as Ft,F as dn,$ as Ts,a0 as Is,a1 as ms,r as zl,a2 as Ye,a3 as hn,a4 as qt,a5 as mn,a6 as _n,G as pn}from"./vendor_svelte.92aa1392.js";import{w as zt,b as vn,c as gn,e as Ss,f as Ns,g as Hl,h as Wt,i as Jt,a as Ds,j as os}from"./vendor.1acf520b.js";const Ls={1:0,2:2,3:4,4:5,5:7,6:9,7:11};function $e(l,e=0,t=0){return{interval:`${l}${"♭".repeat(e)}${"♯".repeat(t)}`,interval_seq:l,semitones:ql(l,e,t),flats:e,sharps:t}}function ql(l,e,t){return(l<8?Ls[l]:Ls[l%7])-e+t+Math.floor(l/8)*12}function Wl(l){let e,t=0,s=0;l<0?(t=1+Math.floor(-l/100),e=-l%100):l>100?(s=Math.floor(l/100),e=l%100):e=l;const n=ql(e,t,s);return{interval:`${e}${"♭".repeat(t)}${"♯".repeat(s)}`,interval_seq:e,semitones:n,flats:t,sharps:s}}const bn=[[["maj"],["Major Chord"],"major",[1,3,5]],[["6"],["Major 6th Chord"],"major",[1,3,5,6]],[["6/9"],["Major 6th/9th Chord"],"major",[1,3,5,6,9]],[["maj7"],["Major 7th Chord"],"major",[1,3,5,7]],[["maj9"],["Major 9th Chord"],"major",[1,3,5,7,9]],[["maj11"],["Major 11th Chord"],"major",[1,3,5,7,9,11]],[["maj13"],["Major 13th Chord"],"major",[1,3,5,7,9,11,13]],[["m"],["Minor Chord"],"minor",[1,-3,5]],[["m6"],["Minor 6th Chord"],"minor",[1,-3,5,6]],[["m7"],["Minor 7th Chord"],"minor",[1,-3,5,-7]],[["m9"],["Minor 9th Chord"],"minor",[1,-3,5,-7,9]],[["m11"],["Minor 11th Chord"],"minor",[1,-3,5,-7,9,11]],[["m13"],["Minor 13th Chord"],"minor",[1,-3,5,-7,9,11,13]],[["sus2"],["Suspended 2nd Chord"],"suspended",[1,2,5]],[["sus4"],["Suspended 4th Chord"],"suspended",[1,4,5]],[["7sus4"],["Suspended 4th Seventh Chord"],"suspended",[1,4,5,-7]],[["7"],["Dominant 7th Chord"],"major",[1,3,5,-7]],[["7#9"],["Dominant 7th Sharp 9th Chord"],"major",[1,3,5,-7,109]],[["9"],["Dominant 9th Chord"],"major",[1,3,5,-7,9]],[["11"],["Dominant 11th Chord"],"major",[1,3,5,-7,9,11]],[["13"],["Dominant 13th Chord"],"major",[1,3,5,-7,9,11,13]],[["5"],["Power Chord"],"indeterminate",[1,5]],[["dim","°"],["Diminished Chord"],"diminished",[1,-3,-5]],[["dim7","°7"],["Diminished 7th Chord"],"diminished",[1,-3,-5,-107]],[["m7b5"],["Half-Diminished 7th Chord"],"diminished",[1,-3,-5,-7]],[["aug","+"],["Augmented Chord"],"augmented",[1,3,105]],[["aug7","+7"],["Augmented 7th Chord"],"augmented",[1,3,105,-7]]];let as=[];function Jl(){return bn.map(l=>{const e=l[3].map(Wl);return{suffixes:l[0],name:l[1][0],type:l[2],intervals:e}})}function Lt(l){as.length===0&&(as=Jl());const e=l.replaceAll(/-|\s/g,"").toLowerCase().trim();return as.find(t=>t.suffixes.find(s=>s===e)||t.name.replaceAll(/-|\s/g,"").trim().toLowerCase()===e)}function yn(l,e,t){let s=e<0?l.flats-e:l.flats,n=e>0?l.sharps+e:l.sharps;if(s>0&&n>0){const a=Math.min(s,n);s-=a,n-=a}const r=(l.semitones+e)%12;return{...l,semitones:r<0?r+12:r,note:`${l.note.charAt(0)}${"♭".repeat(s)}${"♯".repeat(n)}`,flats:s,sharps:n,midi:t}}function cs(l,e,t){const s=[];for(let n=0;n_.semitones===a%12),o=r.flats>0,c=r.sharps>0,f=(o?a+1:c?a-1:a)%12,d=o?-1:c?1:0;s.push(yn(i??e.notesMap.get(f),i?0:d,a))}return s}const js=["B♭","E♭","A♭","D♭","G♭","C♭","F♭"],kn=["F♯","C♯","G♯","D♯","A♯","E♯","B♯"],Ps=new Map([[0,"C"],[-1,"F"],[-2,"B♭"],[-3,"E♭"],[-4,"A♭"],[-5,"D♭"],[-6,"G♭"],[-7,"C♭"],[1,"G"],[2,"D"],[3,"A"],[4,"E"],[5,"B"],[6,"F♯"],[7,"C♯"]]);function En(l){let e=0,t=0;for(let s=0;sa.note.slice(0,2)===js[s]),r=l.find(a=>a.note.slice(0,2)===kn[s]);if(n)e+=1;else if(r)t+=1;else break}return e>t?{flats:e,sharps:0,majorSignature:Ps.get(e*-1)}:{flats:0,sharps:t,majorSignature:Ps.get(t)}}function wn(l){return l>=9?`${l>=10?"X":""}${l===9?"IX":"I".repeat(l%10)}`:`${l>=5?"V":""}${l===4?"IV":"I".repeat(l%5)}`}function Ql(l){return l.map(e=>{const t=[$e(1)];let s;return e.major?(t.push($e(3)),e.suffix.startsWith("+")?t.push($e(5,0,1)):e.suffix.startsWith("6")?t.push($e(6)):e.suffix.startsWith("7")?t.push($e(7,1)):e.suffix.startsWith("maj7")?t.push($e(7)):s=Lt("maj")):e.minor?(t.push($e(3,1)),e.suffix.startsWith("°")?t.push($e(5,1)):e.suffix.startsWith("6")?(t.push($e(6)),s=Lt("m"+e.suffix)):e.suffix.startsWith("7")?(t.push($e(7,1)),s=Lt("m"+e.suffix)):s=Lt("m")):e.suffix.startsWith("sus2")?t.push($e(2)):e.suffix.startsWith("sus4")&&t.push($e(4)),t.length<=2&&t.push($e(5)),t.length<=2&&t.push($e(8)),s||(s=Lt(e.suffix)),{...s,intervals:t}})}function Cn(l,e){let t=e.has(4)&&e.has(7),s=e.has(3)&&e.has(7);const n=wn(l);let r="";return t||s||(e.has(3)&&e.has(6)?(r="°",s=!0):e.has(4)&&e.has(8)?(r="+",t=!0):e.has(3)&&e.has(10)?(s=!0,r="7"):e.has(4)&&e.has(10)?(r="7",t=!0):e.has(4)&&e.has(11)?(r="maj7",t=!0):e.has(3)&&e.has(8)?(r="6",s=!0):e.has(4)&&e.has(9)?(r="6",t=!0):e.has(2)?r="sus2":e.has(5)?r="sus4":e.has(7)?r="5":r="?"),{degree:l,roman:s?n.toLowerCase():n,suffix:r,major:t,minor:s,semitones:e}}function An(l){const e=l.length;return l.map((t,s)=>{const n=t.semitones,r=new Set;for(let a=1;a{const e=l[0],t=l[1].map(Wl),s=An(t);return{names:e,intervals:t,triads:s}})}function In(l){rs.length===0&&(rs=_s());const e=l.replaceAll(/-|\s/g,"").toLowerCase().trim();return rs.find(t=>t.names.find(s=>s.replaceAll(/-|\s/g,"").trim().toLowerCase()===e))}const Sn=/^[a-gA-G][♭Bb#♯sS]*[0-9]?$/,Nn=/^[0-9]$/,et=[{note:"C",semitones:0,sharps:0,flats:0},{note:"C♯",semitones:1,sharps:1,flats:0},{note:"D",semitones:2,sharps:0,flats:0},{note:"E♭",semitones:3,sharps:0,flats:1},{note:"E",semitones:4,sharps:0,flats:0},{note:"F",semitones:5,sharps:0,flats:0},{note:"F♯",semitones:6,sharps:1,flats:0},{note:"G",semitones:7,sharps:0,flats:0},{note:"G♯",semitones:8,sharps:1,flats:0},{note:"A",semitones:9,sharps:0,flats:0},{note:"B♭",semitones:10,sharps:0,flats:1},{note:"B",semitones:11,sharps:0,flats:0}];function Yl(l){return l===12?1:Math.floor((l-12)/12)}function Xe(l){return`${l.note}${Yl(l.midi)}`}function Tt(l){const t=(l-12)%12;return{...et[t],semitones:t,midi:l}}function Dn(l,e=!0,t=!1){if(e&&!Sn.test(l))return{err:`Unrecognized note "${l}"`,code:400};const s=l.trim(),n=s.charAt(0).toUpperCase(),r=et.find(d=>d.note.charAt(0)===n&&d.note.length===1);if(!r)return{err:`Unable to find note ${s}`,code:500};const a=s.slice(1).split("").reduce((d,_)=>d+(_.toLowerCase()==="b"||_==="♭"?-1:_==="#"||_==="♯"?1:0),0);let i;if(Nn.test(s.charAt(s.length-1)))try{i=parseInt(s.charAt(s.length-1),10)}catch{}if(t&&i===void 0)return{err:`No octave provided: ${l}`,code:400};i===void 0&&(i=0);let o=(r.semitones+a)%12;o=o<0?o+12:o;const c=a<0?-a:0,f=a>0?a:0;return{data:{note:`${n}${"♭".repeat(c)}${"♯".repeat(f)}`,semitones:o,midi:12+i*12+o,flats:c,sharps:f}}}function Xl(l){const e=et.find(t=>t.note.charAt(0)===l.charAt(0)&&t.note.length===1);if(e){const t=l.slice(1).split("").reduce((n,r)=>n+(r.toLowerCase()==="b"||r==="♭"?-1:r==="#"||r==="♯"?1:0),0),s=(e.semitones+t)%12;return{note:l,semitones:s<0?s+12:s,flats:t<0?-t:0,sharps:t>0?t:0}}}const Ln=/^[a-gA-G][♭b#♯]?$/,is="ABCDEFG";function jn(l,e){return e.map(t=>is.charAt((is.indexOf(l)+t.interval_seq-1)%is.length))}function Pn(l,e,t){return t.map((s,n)=>{const r=e[n],a=(l+s.semitones)%12,i=et[a],o=i.note.charAt(0);if(or||o==="A"&&r==="G"){let c=1,f=a===0?et.length-1:a-c,d=et[f];for(;d.note.charAt(0)!==r;)c+=1,f=f===0?et.length-1:f-1,d=et[f];return{semitones:a,note:d.note+"♯".repeat(c),flats:0,sharps:c+(d.note.includes("♯")?1:0)}}else return{semitones:a,note:i.note,flats:i.flats,sharps:i.sharps}})}function Qt(l,e){if(!Ln.test(l))return{err:`Unknown key: ${l}`,code:400};const t=In(e);if(!t)return{err:`Unknown scale: ${e}`,code:404};const s=`${l.charAt(0).toUpperCase()}${l.charAt(1).replace("b","♭").replace("#","♯")}`,n=Xl(s);if(!n)return{err:`Unable to find root for note: ${s}`,code:404};const r=jn(s.charAt(0),t.intervals),a=Pn(n.semitones,r,t.intervals),i=new Map(et.map(o=>{const c=a.find(f=>f.semitones===o.semitones);return c?[o.semitones,c]:[o.semitones,{...o}]}));return{data:{key:s,scale:t.names[0],names:t.names,...En(a),intervals:t.intervals.map(o=>({...o})),triads:t.triads.map(o=>({...o})),scaleNotes:a,notesMap:i}}}const us=new Map;function Vn(l,e){try{const t=e==="local"?window.localStorage:window.sessionStorage;return{data:JSON.parse(t.getItem(l)||"")}}catch(t){return{err:`Failed to retrieve value from storage: ${t}`,code:400}}}function On(l,e,t){try{return(t==="local"?window.localStorage:window.sessionStorage).setItem(e,JSON.stringify(l)),{data:void 0}}catch(s){return{err:`Failed to store the value: ${s}`,code:400}}}function ht(l,e){const{key:t,storage:s="local",namespace:n="default"}=e,r=Vn(t,s),a=ye(l);"data"in r?l.set(e.deserialize?e.deserialize(r.data):r.data):"err"in r&&(e!=null&&e.debug)&&console.info(r.err);const i=l.subscribe(c=>{const f=On(e.serialize?e.serialize(c):c,t,s);"err"in f&&(e!=null&&e.debug)&&console.error(f.err)}),o=us.get(n);return o?o.push({key:t,storage:s,value:l,defaultValue:a,unsubscribe:i}):us.set(n,[{key:t,storage:s,value:l,defaultValue:a,unsubscribe:i}]),l}function Bn(l=["default"],e){l.forEach(t=>{var s;(s=us.get(t))==null||s.forEach(n=>{if(e!=null&&e.cb)e==null||e.cb(n);else try{e!=null&&e.unsubscribe&&n.unsubscribe(),n.value.set(n.defaultValue),(n.storage==="local"?window.localStorage:window.sessionStorage).removeItem(n.key)}catch{}})})}async function Gn(l,e){const t=await fetch(l);if(!t.ok)return{err:t.statusText,code:t.status};const s=await t.arrayBuffer();return{data:await e.decodeAudioData(s)}}async function Mn(l,e){const t=["/a0.mp3","/a1.mp3","/a2.mp3","/a3.mp3","/a4.mp3","/a5.mp3","/a6.mp3","/a7.mp3","/damper.mp3","/Piano Impulse6.mp3"],s=await Promise.all(t.map(r=>Gn(`${l}${r}`,e))),n=[];return s.forEach(r=>{"err"in r?console.error(`Failed to load audio: ${r.err}`):n.push(r.data)}),n}class Un{constructor(e,t,s,n){this.noteA=t.createBufferSource(),this.noteB=t.createBufferSource(),this.gainA=t.createGain(),this.gainB=t.createGain(),this.gain=t.createGain(),this.biquadFilter=t.createBiquadFilter(),this.biquadFilter.type="lowpass",this.biquadFilter.connect(s),this.gain.connect(this.biquadFilter),this.gainA.connect(this.gain),this.noteA.connect(this.gainA),this.gainB.connect(this.gain),this.noteB.connect(this.gainB),e<90&&(this.damp=t.createBufferSource(),this.damp.buffer=n,this.damp.connect(s))}on(e,t,s,n,r,a,i,o){this.noteA.buffer=e,this.noteA.playbackRate.value=s,this.biquadFilter.frequency.value=r,this.gainA.gain.value=a,this.gain.gain.value=o,t&&(this.noteB.buffer=t,this.noteB.playbackRate.value=n,this.gainB.gain.value=i,this.noteB.start(0)),this.noteA.start(0)}off(e,t,s){var n;this.gain.gain.setTargetAtTime(0,e,t),this.noteA.stop(s),this.noteB.stop(s),(n=this.damp)==null||n.start(0)}}class Rn{constructor(e){return this.bufferlists=[],this.sus=!1,this.sustained=[],this.notes=new Map,this.context=e,this.convolver=e.createConvolver(),this.directGain=e.createGain(),this.convGain=e.createGain(),this.convGainAfter=e.createGain(),this.convGain.connect(this.convolver),this.convolver.connect(this.convGainAfter),this.convGainAfter.connect(e.destination),this.directGain.connect(e.destination),this.directGain.connect(this.convGain),this.directGain.gain.value=.75,this.convGain.gain.value=0,this.convGainAfter.gain.value=0,this}load(e){e.forEach((t,s)=>{this.bufferlists.push(t),s===8?this.damper=t:s===9&&(this.convolver.buffer=t)})}playChord(e,t=80){e.forEach(s=>{this.noteOn(s,t)})}noteOn(e,t=80){if(e<109&&e>20){const s=this.notes.get(e);s&&(s.off(this.context.currentTime,1.1,this.context.currentTime+2),this.sustained.splice(this.sustained.indexOf(e),1));const n=Math.floor((e-21)/12),r=n+1,a=n*12+21,i=2**((e-69)/12)*440,o=t/127;let c=i*(2-(e-21)/50)+3*i*o;e<60&&(c=440*(3-(60-21)/50)+3*i*o);const f=1-(e%12/12+1)/12,d=Math.pow(2,(e-a)/12),_=0,b=0,g=o**1.4,T=new Un(e,this.context,this.directGain,this.damper);T.on(this.bufferlists[n],this.bufferlists[r],d,_,c,f,b,g),this.notes.set(e,T)}}noteOff(e){if(this.sus)this.sustained.push(e);else{const t=this.notes.get(e);e<90&&t&&t.off(this.context.currentTime+.03,.08,this.context.currentTime+2),this.notes.delete(e)}}sustain(e){if(e==127)this.sus=!0,this.convGain.gain.value=1,this.convGainAfter.gain.value=1;else if(e==0){this.sus=!1,this.convGain.gain.value=0,this.convGainAfter.gain.value=0;for(let t=0;t[Tt(l[0]),Tt(l[1])]),Vs=Be(void 0),tt=Be(void 0),nt=ht(Be({fixedVelocity:void 0,keyFadeTimeout:1500,useSound:!0,useKeyboard:!0,useHotkeys:!0,useAutoOctave:!0}),{key:"inputs"}),Fe={async openMidi(){return zt.enable().then(()=>(fs.set(!0),zt.inputs.length>0?(Yt.set(zt.inputs[0]),{data:zt.inputs[0]}):{err:"No MIDI device found.",code:400})).catch(l=>({err:l.toString(),code:403}))},disableMidi(){fs.set(!1),Yt.set(void 0)},setMidiRange(l){ps.set(l)},setInputValue(l,e){nt.update(t=>({...t,[l]:e})),l==="useSound"&&!e?tt.set(void 0):l==="useSound"&&!ye(tt)&&this.initAudio()},async initAudio(){let l=ye(Vs);if(l||(l=new AudioContext,Vs.set(l)),!ye(tt)){const e=new Rn(l),t=await Mn(`${xn}audio`,l);e.load(t),tt.set(e)}}};let Ze;fn({A:{note:"C",semitones:0,flats:0,sharps:0},W:{note:"C♯",semitones:1,flats:0,sharps:1},S:{note:"D",semitones:2,flats:0,sharps:0},E:{note:"E♭",semitones:3,flats:1,sharps:0},D:{note:"E",semitones:4,flats:0,sharps:0},F:{note:"F",semitones:5,flats:0,sharps:0},T:{note:"F♯",semitones:6,flats:0,sharps:1},G:{note:"G",semitones:7,flats:0,sharps:0},Y:{note:"G♯",semitones:8,flats:0,sharps:1},H:{note:"A",semitones:9,flats:0,sharps:0},U:{note:"B♭",semitones:10,flats:1,sharps:0},J:{note:"B",semitones:11,flats:0,sharps:0},K:{note:"C",semitones:12,flats:0,sharps:0},O:{note:"C♯",semitones:13,flats:0,sharps:1},L:{note:"D",semitones:14,flats:0,sharps:0},P:{note:"E♭",semitones:15,flats:1,sharps:0},Ö:{note:"E",semitones:16,flats:0,sharps:0},Ä:{note:"F",semitones:17,flats:0,sharps:0},Å:{note:"F♯",semitones:18,flats:0,sharps:1}});const kt=Be(["C","Major"]),St=Nt(kt,l=>{const e=Qt(l[0],l[1]);return"data"in e?e.data:{key:l[0],scale:l[1],names:["major"],flats:0,sharps:0,majorSignature:"C",intervals:[],scaleNotes:[],triads:[],notesMap:new Map}}),Os=Be([]),gt=Be([]);function ds(l,e){if(l.length>0){const t=Date.now();let s=t;const n=l.filter(r=>(r.started+e>t&&(s=Math.min(s,r.started)),r.started+e>t));return!Ze&&n.length>0&&(Ze=setTimeout(()=>{Ze=void 0,gt.update(r=>ds(r,e))},e-(t-s)+100)),n}return l}const me={setKey(l){kt.update(e=>[l,e[1]])},setScale(l){kt.update(e=>[e[0],l])},setKeyAndScale(l,e){kt.set([l,e])},setTarget(l=[]){Os.set(l)},getNote(l){return{...ye(St).notesMap.get(l%12),midi:l}},pushPlayed(l,e,t){const n={...ye(St).notesMap.get(l%12),midi:l},r=Date.now(),a=e===void 0?"default":e?"correct":"wrong";if(gt.update(i=>{const o=i.findIndex(c=>c.midi===l);return o>=0&&i.splice(o,1),[...i,{...n,color:a,started:r}]}),!Ze&&t!==-1){const i=t??ye(nt).keyFadeTimeout;Ze=setTimeout(()=>{Ze=void 0,gt.update(o=>ds(o,i))},i)}},setPlayed(l,e,t){const s=Date.now(),n=e===void 0?"default":e?"correct":"wrong";if(gt.update(r=>[...l.map(a=>({...a,color:n,started:s}))]),!Ze&&t!==-1){const r=t??ye(nt).keyFadeTimeout;Ze=setTimeout(()=>{Ze=void 0,gt.update(a=>ds(a,r))},r)}},clearPlayed(){gt.set([]),clearTimeout(Ze),Ze=void 0},clearScore(l=!1){l&&kt.set(["C","Major"]),Os.set([]),gt.set([])}};class vs{constructor(e,t,s){this.guesses=[],this.times=[],this.correct=0,this.guessed=0,this.idx=0,this.type=e,this.data=t,this.baseOptions=s;const n=[],{count:r}=s,a=t.map(o=>typeof o=="object"&&o!==null?{...o}:o);let i=s.duplicates;!s.duplicates&&r>a.length&&(console.warn(`Trying to create game with count ${r} larger than available unique values ${t.length}`),i=!0);for(let o=0;o0&&n.push(f[0])}}this.sampled=n,this.timing=performance.now()}get current(){return this.sampled[this.idx]}get latestGuess(){const e=this.sampled[this.idx-1],t=this.guesses[this.idx-1];return{target:e,guessed:t}}get ended(){return this.sampled.length0?l.sharps+e:l.sharps;if(s>0&&n>0){const a=Math.min(s,n);s-=a,n-=a}const r=(l.semitones+e)%12;return{...l,semitones:r<0?r+12:r,note:`${l.note.charAt(0)}${"♭".repeat(s)}${"♯".repeat(n)}`,flats:s,sharps:n,midi:t}}function $n(l,e,t){const s=[];for(let n=0;n_.semitones===a%12),o=r.flats>0,c=r.sharps>0,f=(o?a+1:c?a-1:a)%12,d=o?-1:c?1:0;s.push(Kn(i??e.notesMap.get(f),i?0:d,a))}return s}const Fn=[{note:"C",semitones:0,sharps:0,flats:0},{note:"C♯",semitones:1,sharps:1,flats:0},{note:"D",semitones:2,sharps:0,flats:0},{note:"E♭",semitones:3,sharps:0,flats:1},{note:"E",semitones:4,sharps:0,flats:0},{note:"F",semitones:5,sharps:0,flats:0},{note:"F♯",semitones:6,sharps:1,flats:0},{note:"G",semitones:7,sharps:0,flats:0},{note:"G♯",semitones:8,sharps:1,flats:0},{note:"A",semitones:9,sharps:0,flats:0},{note:"B♭",semitones:10,sharps:0,flats:1},{note:"B",semitones:11,sharps:0,flats:0}];function zn(l){const t=(l-12)%12;return{...Fn[t],semitones:t,midi:l}}function Hn(l){return`${l.note.trim().charAt(0).toUpperCase()}${"♭".repeat(l.flats)}${"♯".repeat(l.sharps)}`}class ft extends vs{constructor(e,t,s){const n=t.range[0],r=t.range[1],a=new Set(t.scale.scaleNotes.map(o=>o.semitones)),i=s.chords.flatMap(o=>{const c=[],f=o.intervals.reduce((d,_)=>_.semitones>d?_.semitones:d,0);for(let d=n;d<=r-f;d+=1)if((!s.onlyScale||a.has(d%12))&&(!o.allowed||o.allowed.has(d%12))){const _=$n(d,t.scale,o.intervals);c.push({...o,rootNote:_[0].note,chord:`${_[0].note}${o.suffixes[0]}`,notes:_})}return c});super(e,i,t),this.played=new Set,this.opts=s}addPlayedNote(e){this.played.add(e)}guessWrittenChord(e){const t={chord:`${Hn(e)}${e.chord.toLowerCase()}`,notes:[]},s=this.current.chord===t.chord;return this.addGuessed(t,s)}guess(){const e=Array.from(this.played.values()).map(n=>zn(n)).sort((n,r)=>n.midi-r.midi);this.played.clear();const t={chord:"",notes:e},s=this.current.notes.every(n=>e.find(r=>r.midi%12===n.midi%12));return this.addGuessed(t,s)}}const qn={major:{C:{num:0},F:{acc:"b",num:1},Bb:{acc:"b",num:2},Eb:{acc:"b",num:3},Ab:{acc:"b",num:4},Db:{acc:"b",num:5},Gb:{acc:"b",num:6},Cb:{acc:"b",num:7},G:{acc:"#",num:1},D:{acc:"#",num:2},A:{acc:"#",num:3},E:{acc:"#",num:4},B:{acc:"#",num:5},"F#":{acc:"#",num:6},"C#":{acc:"#",num:7}},minor:{A:{num:0},D:{acc:"b",num:1},G:{acc:"b",num:2},C:{acc:"b",num:3},F:{acc:"b",num:4},Bb:{acc:"b",num:5},Eb:{acc:"b",num:6},Ab:{acc:"b",num:7},E:{acc:"#",num:1},B:{acc:"#",num:2},"F#":{acc:"#",num:3},"C#":{acc:"#",num:4},"G#":{acc:"#",num:5},"D#":{acc:"#",num:6},"A#":{acc:"#",num:7}}};class jt extends vs{constructor(e,t){const s=e==="keys-major"?"major":"minor";super(e,Object.keys(qn[s]),t)}guess(e){const t=this.current===e;return this.addGuessed(e,t)}}class It extends vs{constructor(e,t){const s=t.range[0],n=t.range[1];super(e,Array.from(new Array(n-s+1)).map((r,a)=>s+a),t)}guess(e){const t=this.current===e;return this.addGuessed(e,t)}}const Zl={count:10,duplicates:!0,autoplay:!0,waitSeconds:3},bt=Be("waiting"),dt=ht(Be(Zl),{key:"game-options"}),yt=Be(void 0),gs=Be(Jl().map(l=>({...l,selected:!0}))),ke={play(...[l,e]){var o,c,f;let t;const s=ye(St),n=ye(ps),r=ye(dt),a={scale:s,range:n,duplicates:r.duplicates,count:r.count};let i=[s.key,s.scale];if(l==="notes")t=new It(l,a),me.setTarget([me.getNote(t.current)]),(o=ye(tt))==null||o.noteOn(t.current);else if(l==="pitches")t=new It(l,a),me.setTarget(),Fe.setInputValue("useSound",!0),(c=ye(tt))==null||c.noteOn(t.current);else if(l==="keys-major"||l=="keys-minor")t=new jt(l,a),i=[t.current,l==="keys-major"?"major":"minor"];else if(l==="chords-play"||l==="chords-write")t=new ft(l,a,e);else if(l==="chords-diatonic"){const d=Ql(s.triads).map((_,b)=>({..._,allowed:new Set([s.scaleNotes[b].semitones])}));t=new ft(l,a,{chords:d})}else throw Error("Unknown game type: "+l);return typeof t.current!="number"&&typeof t.current!="string"&&((f=ye(tt))==null||f.playChord(t.current.notes.map(d=>d.midi)),me.setTarget(t.current.notes)),me.setKeyAndScale(i[0],i[1]),me.clearPlayed(),bt.set("waiting"),yt.set(t),t},updateState(l){bt.set(l)},setOptionValue(l,e){dt.update(t=>({...t,[l]:e}))},toggleChords(l){gs.update(e=>e.map(t=>({...t,selected:l(t)})))},nextGuess(){var e,t;const l=ye(yt);l!=null&&l.ended?bt.set("ended"):l instanceof It?(l.type==="notes"?me.setTarget([me.getNote(l.current)]):me.setTarget(),me.clearPlayed(),(e=ye(tt))==null||e.noteOn(l.current),ke.updateState("waiting"),l.startTime()):l instanceof ft?(me.setTarget(l.current.notes),me.clearPlayed(),(t=ye(tt))==null||t.playChord(l==null?void 0:l.current.notes.map(s=>s.midi)),bt.set("waiting"),l.startTime()):l instanceof jt&&(me.setKey(l.current),bt.set("waiting"),l.startTime())},clearGame(l=!1){const e=ye(yt);e&&me.setKeyAndScale(e.baseOptions.scale.key,e.baseOptions.scale.scale),l&&dt.set(Zl),yt.set(void 0),bt.set("waiting"),me.clearScore()}};function Bs(l,e,t){const s=l.slice();return s[25]=e[t],s[27]=t,s}function Gs(l,e,t){const s=l.slice();return s[30]=e[t],s}function Ms(l,e,t){const s=l.slice();return s[8]=e[t],s}function Us(l,e,t){const s=l.slice();return s[25]=e[t],s[27]=t,s}function Rs(l,e,t){const s=l.slice();return s[30]=e[t],s}function xs(l,e,t){const s=l.slice();return s[8]=e[t],s}function Wn(l){let e,t=le(l[25].intervals),s=[];for(let n=0;n0?Jn:Wn}let N=E(l),I=N(l);return{c(){e=p("li"),t=p("button"),s=p("span"),_e(n.$$.fragment),r=j(),a=p("div"),o=J(i),c=j(),f=p("li"),I.c(),_=j(),b=p("li"),T=J(g),this.h()},l(D){e=v(D,"LI",{});var M=S(e);t=v(M,"BUTTON",{class:!0});var w=S(t);s=v(w,"SPAN",{class:!0});var G=S(s);pe(n.$$.fragment,G),G.forEach(m),r=P(w),a=v(w,"DIV",{class:!0});var C=S(a);o=Q(C,i),C.forEach(m),w.forEach(m),M.forEach(m),c=P(D),f=v(D,"LI",{class:!0,title:!0});var k=S(f);I.l(k),k.forEach(m),_=P(D),b=v(D,"LI",{class:!0});var A=S(b);T=Q(A,g),A.forEach(m),this.h()},h(){h(s,"class","px-1 py-1 rounded"),q(s,"text-green-500",l[25].selected),q(s,"text-gray-400",!l[25].selected),h(a,"class","ml-1 px-1 w-full bg-gray-200 svelte-1j99daw"),h(t,"class","flex items-center justify-center w-full select-btn svelte-1j99daw"),q(t,"hidden",l[7]),h(f,"class","intervals svelte-1j99daw"),h(f,"title",d=l[25].intervals.map(Js).join("-")),h(b,"class","text-xs")},m(D,M){R(D,e,M),u(e,t),u(t,s),ve(n,s,null),u(t,r),u(t,a),u(a,o),R(D,c,M),R(D,f,M),I.m(f,null),R(D,_,M),R(D,b,M),u(b,T),y=!0,L||(O=F(t,"click",V),L=!0)},p(D,M){l=D;const w={};M[0]&64&&(w.icon=l[25].selected?Wt:Jt),n.$set(w),(!y||M[0]&64)&&q(s,"text-green-500",l[25].selected),(!y||M[0]&64)&&q(s,"text-gray-400",!l[25].selected),(!y||M[0]&64)&&i!==(i=l[25].suffixes[0]+"")&&re(o,i),(!y||M[0]&128)&&q(t,"hidden",l[7]),N===(N=E(l))&&I?I.p(l,M):(I.d(1),I=N(l),I&&(I.c(),I.m(f,null))),(!y||M[0]&64&&d!==(d=l[25].intervals.map(Js).join("-")))&&h(f,"title",d),(!y||M[0]&64)&&g!==(g=l[25].name+"")&&re(T,g)},i(D){y||($(n.$$.fragment,D),y=!0)},o(D){W(n.$$.fragment,D),y=!1},d(D){D&&(m(e),m(c),m(f),m(_),m(b)),ge(n),I.d(),L=!1,O()}}}function Qn(l){let e,t=le(l[25].intervals),s=[];for(let n=0;n0?Yn:Qn}let N=E(l),I=N(l);return{c(){e=p("li"),t=p("button"),s=p("span"),_e(n.$$.fragment),r=j(),a=p("div"),o=J(i),c=j(),f=p("li"),I.c(),_=j(),b=p("li"),T=J(g),this.h()},l(D){e=v(D,"LI",{});var M=S(e);t=v(M,"BUTTON",{class:!0});var w=S(t);s=v(w,"SPAN",{class:!0});var G=S(s);pe(n.$$.fragment,G),G.forEach(m),r=P(w),a=v(w,"DIV",{class:!0});var C=S(a);o=Q(C,i),C.forEach(m),w.forEach(m),M.forEach(m),c=P(D),f=v(D,"LI",{class:!0,title:!0});var k=S(f);I.l(k),k.forEach(m),_=P(D),b=v(D,"LI",{class:!0});var A=S(b);T=Q(A,g),A.forEach(m),this.h()},h(){h(s,"class","px-1 py-1 rounded"),q(s,"text-green-500",l[25].selected),q(s,"text-gray-400",!l[25].selected),h(a,"class","ml-1 px-1 w-full bg-gray-200 svelte-1j99daw"),h(t,"class","flex items-center justify-center w-full select-btn svelte-1j99daw"),q(t,"hidden",l[7]),h(f,"class","intervals svelte-1j99daw"),h(f,"title",d=l[25].intervals.map(Qs).join("-")),h(b,"class","text-xs")},m(D,M){R(D,e,M),u(e,t),u(t,s),ve(n,s,null),u(t,r),u(t,a),u(a,o),R(D,c,M),R(D,f,M),I.m(f,null),R(D,_,M),R(D,b,M),u(b,T),y=!0,L||(O=F(t,"click",V),L=!0)},p(D,M){l=D;const w={};M[0]&32&&(w.icon=l[25].selected?Wt:Jt),n.$set(w),(!y||M[0]&32)&&q(s,"text-green-500",l[25].selected),(!y||M[0]&32)&&q(s,"text-gray-400",!l[25].selected),(!y||M[0]&32)&&i!==(i=l[25].suffixes[0]+"")&&re(o,i),(!y||M[0]&128)&&q(t,"hidden",l[7]),N===(N=E(l))&&I?I.p(l,M):(I.d(1),I=N(l),I&&(I.c(),I.m(f,null))),(!y||M[0]&32&&d!==(d=l[25].intervals.map(Qs).join("-")))&&h(f,"title",d),(!y||M[0]&32)&&g!==(g=l[25].name+"")&&re(T,g)},i(D){y||($(n.$$.fragment,D),y=!0)},o(D){W(n.$$.fragment,D),y=!1},d(D){D&&(m(e),m(c),m(f),m(_),m(b)),ge(n),I.d(),L=!1,O()}}}function Xn(l){let e,t,s,n,r="Chords",a,i,o,c,f,d,_,b,g,T,y,L,O,V,E,N,I,D="Key",M,w,G,C,k="Scale",A,B,U,K,H="Note",ne,se,de,ue,Ne,Ke,Ge,be,We,xe;c=new rt({props:{icon:vn,width:20}}),_=new rt({props:{icon:gn,width:16}}),T=new rt({props:{icon:l[4]?Ss:Ns,width:16}}),O=new rt({props:{icon:Hl,width:16}});let De=le(l[6]),ie=[];for(let x=0;xW(ie[x],1,1,()=>{ie[x]=null});let he=le(l[5]),Y=[];for(let x=0;xW(Y[x],1,1,()=>{Y[x]=null});return{c(){e=p("div"),t=p("fieldset"),s=p("legend"),n=p("button"),n.textContent=r,a=j(),i=p("div"),o=p("button"),_e(c.$$.fragment),f=j(),d=p("button"),_e(_.$$.fragment),b=j(),g=p("button"),_e(T.$$.fragment),y=j(),L=p("button"),_e(O.$$.fragment),V=j(),E=p("div"),N=p("div"),I=p("label"),I.textContent=D,M=j(),w=p("input"),G=j(),C=p("label"),C.textContent=k,A=j(),B=p("input"),U=j(),K=p("label"),K.textContent=H,ne=j(),se=p("input"),de=j(),ue=p("ul");for(let x=0;xl.interval,Qs=l=>l.interval;function Zn(l,e,t){let s,n,r,a,i,o;oe(l,gs,C=>t(20,i=C));let c="C",f=Qt(c,Ws),d="",_,b=[],g=[];const T=ht(Be(!0),{key:"chords-hidden"});oe(l,T,C=>t(7,o=C));function y(){T.update(C=>!C)}function L(){const C=_&&60+_.semitones;if("err"in f||!C)t(2,b=[]),t(3,g=[]);else{const k=f.data;t(2,b=n.map(A=>cs(C,k,A.intervals))),t(3,g=r.map(A=>cs(C,k,A.intervals)))}}function O({currentTarget:{value:C}}){t(0,c=`${C.charAt(0).toUpperCase()}${C.charAt(1).toLowerCase()}`),f=Qt(c,Ws),L()}function V({currentTarget:{value:C}}){t(1,d=`${C.charAt(0).toUpperCase()}${C.charAt(1).toLowerCase()}`),t(8,_=Xl(d)),L()}function E(C){ke.toggleChords(k=>k.name===C.name?!k.selected:k.selected)}function N(){const C=A=>A.suffixes[0]==="maj"||A.suffixes[0]==="m",k=i.filter(C).every(A=>A.selected);ke.toggleChords(A=>C(A)?!k:A.selected)}function I(){const C=A=>A.suffixes[0]==="maj7"||A.suffixes[0]==="m7"||A.suffixes[0]==="7"||A.suffixes[0]==="dim7"||A.suffixes[0]==="aug7",k=i.filter(C).every(A=>A.selected);ke.toggleChords(A=>C(A)?!k:A.selected)}function D(){ke.toggleChords(C=>!a)}function M(){ke.toggleChords(C=>!0)}const w=C=>E(C),G=C=>E(C);return l.$$set=C=>{t(18,e=Ee(Ee({},e),we(C)))},l.$$.update=()=>{l.$$.dirty[0]&1048576&&t(19,s=i),l.$$.dirty[0]&524288&&t(6,n=s.filter((C,k)=>kk>=s.length/2)),l.$$.dirty[0]&524288&&t(4,a=s.every(C=>C.selected))},e=we(e),[c,d,b,g,a,r,n,o,_,T,y,O,V,E,N,I,D,M,e,s,i,w,G]}class ea extends ze{constructor(e){super(),He(this,e,Zn,Xn,qe,{},null,[-1,-1])}}function Ys(l,e,t){const s=l.slice();return s[10]=e[t],s}function ta(l){let e;return{c(){e=J(" ")},l(t){e=Q(t," ")},m(t,s){R(t,e,s)},p:fe,d(t){t&&m(e)}}}function sa(l){let e,t,s="Played:",n,r=le(l[2]),a=[];for(let i=0;i0?sa:ta}let a=r(l),i=a(l);function o(d,_){return d[0]&&d[1]==="ended"?ua:d[0]&&d[3].autoplay?ca:d[0]?oa:ia}let c=o(l),f=c(l);return{c(){e=p("div"),i.c(),s=j(),n=p("div"),f.c(),this.h()},l(d){e=v(d,"DIV",{class:!0});var _=S(e);i.l(_),_.forEach(m),s=P(d),n=v(d,"DIV",{class:!0});var b=S(n);f.l(b),b.forEach(m),this.h()},h(){h(e,"class",t=Ie(`${l[8].class||""} min-h-[3.25rem]`)+" svelte-1lxfpqs"),h(n,"class","mt-2 h-8")},m(d,_){R(d,e,_),i.m(e,null),R(d,s,_),R(d,n,_),f.m(n,null)},p(d,[_]){a===(a=r(d))&&i?i.p(d,_):(i.d(1),i=a(d),i&&(i.c(),i.m(e,null))),_&256&&t!==(t=Ie(`${d[8].class||""} min-h-[3.25rem]`)+" svelte-1lxfpqs")&&h(e,"class",t),c===(c=o(d))&&f?f.p(d,_):(f.d(1),f=c(d),f&&(f.c(),f.m(n,null)))},i:fe,o:fe,d(d){d&&(m(e),m(s),m(n)),i.d(),f.d()}}}const Zs=l=>l.note,el=l=>l.note;function da(l,e,t){let s,n,r;oe(l,bt,_=>t(1,s=_)),oe(l,gt,_=>t(2,n=_)),oe(l,dt,_=>t(3,r=_));let{game:a}=e;function i(){ke.nextGuess()}function o(){ke.setOptionValue("autoplay",!0),ke.nextGuess()}function c(){a instanceof ft?ke.play(a.type,a.opts):a&&ke.play(a.type,void 0)}function f(){ke.clearGame()}const d=()=>ke.setOptionValue("autoplay",!1);return l.$$set=_=>{t(8,e=Ee(Ee({},e),we(_))),"game"in _&&t(0,a=_.game)},e=we(e),[a,s,n,r,i,o,c,f,e,d]}class ha extends ze{constructor(e){super(),He(this,e,da,fa,qe,{game:0})}}function tl(l,e,t){const s=l.slice();return s[14]=e[t].key,s[15]=e[t].value,s[16]=e[t].icon,s[18]=t,s}const ma=l=>({}),sl=l=>({}),_a=l=>({}),ll=l=>({});function nl(l){let e,t,s,n,r,a,i,o,c,f;const d=l[11].header,_=xl(d,l,l[10],sl);let b=le(l[0]),g=[];for(let y=0;yW(g[y],1,1,()=>{g[y]=null});return{c(){e=p("button"),s=j(),n=p("ul"),r=p("li"),_&&_.c(),a=j();for(let y=0;y{o&&(t||(t=Ft(e,Ts,{duration:Ht},!0)),t.run(1))}),$(_,y);for(let L=0;L{o&&(i||(i=Ft(n,Is,{duration:Ht},!0)),i.run(1))}),o=!0}},o(y){y&&(t||(t=Ft(e,Ts,{duration:Ht},!1)),t.run(0)),W(_,y),g=g.filter(Boolean);for(let L=0;L{g[V]=null}),lt(),n=g[s],n?n.p(l,O):(n=g[s]=b[s](l),n.c()),$(n,1),n.m(t,r)),(!f||O&1)&&i!==(i=l[15]+"")&&re(o,i),(!f||O&5)&&q(t,"selected",l[14]===l[2])},i(L){f||($(n),f=!0)},o(L){W(n),f=!1},d(L){L&&m(e),g[s].d(),d=!1,_()}}}function ga(l){let e,t,s,n,r,a,i,o;const c=l[11].value,f=xl(c,l,l[10],ll);let d=l[5]&&nl(l);return{c(){e=p("div"),t=p("button"),f&&f.c(),r=j(),d&&d.c(),this.h()},l(_){e=v(_,"DIV",{class:!0,id:!0});var b=S(e);t=v(b,"BUTTON",{class:!0,title:!0});var g=S(t);f&&f.l(g),g.forEach(m),r=P(b),d&&d.l(b),b.forEach(m),this.h()},h(){h(t,"class",s=Ie(`${l[8].class||""} open-btn w-full text-justify text-sm rounded hover:bg-[#eee]`)+" svelte-h65upg"),h(t,"title",n=l[8].title||""),q(t,"disabled",l[3]),q(t,"open",l[5]),h(e,"class","relative"),h(e,"id",l[1])},m(_,b){R(_,e,b),u(e,t),f&&f.m(t,null),u(e,r),d&&d.m(e,null),l[13](e),a=!0,i||(o=F(t,"click",l[6]),i=!0)},p(_,[b]){f&&f.p&&(!a||b&1024)&&Kl(f,c,_,_[10],a?Fl(c,_[10],b,_a):$l(_[10]),ll),(!a||b&256&&s!==(s=Ie(`${_[8].class||""} open-btn w-full text-justify text-sm rounded hover:bg-[#eee]`)+" svelte-h65upg"))&&h(t,"class",s),(!a||b&256&&n!==(n=_[8].title||""))&&h(t,"title",n),(!a||b&264)&&q(t,"disabled",_[3]),(!a||b&288)&&q(t,"open",_[5]),_[5]?d?(d.p(_,b),b&32&&$(d,1)):(d=nl(_),d.c(),$(d,1),d.m(e,null)):d&&(st(),W(d,1,1,()=>{d=null}),lt()),(!a||b&2)&&h(e,"id",_[1])},i(_){a||($(f,_),$(d),a=!0)},o(_){W(f,_),W(d),a=!1},d(_){_&&m(e),f&&f.d(_),d&&d.d(),l[13](null),i=!1,o()}}}const Ht=400;function ba(l,e,t){let{$$slots:s={},$$scope:n}=e,{options:r,id:a=void 0,selected:i=void 0,disabled:o=void 0,onSelect:c}=e,f,d=!1;function _(){o||t(5,d=!d)}function b(y){t(5,d=c(y))}const g=y=>b(y);function T(y){dn[y?"unshift":"push"](()=>{f=y,t(4,f)})}return l.$$set=y=>{t(8,e=Ee(Ee({},e),we(y))),"options"in y&&t(0,r=y.options),"id"in y&&t(1,a=y.id),"selected"in y&&t(2,i=y.selected),"disabled"in y&&t(3,o=y.disabled),"onSelect"in y&&t(9,c=y.onSelect),"$$scope"in y&&t(10,n=y.$$scope)},e=we(e),[r,a,i,o,f,d,_,b,e,c,n,s,g,T]}class en extends ze{constructor(e){super(),He(this,e,ba,ga,qe,{options:0,id:1,selected:2,disabled:3,onSelect:9})}}function rl(l){let e;return{c(){e=p("li"),this.h()},l(t){e=v(t,"LI",{class:!0}),S(e).forEach(m),this.h()},h(){h(e,"class","m-[0.175rem] mr-0")},m(t,s){R(t,e,s)},d(t){t&&m(e)}}}function il(l){let e;return{c(){e=p("div"),this.h()},l(t){e=v(t,"DIV",{class:!0}),S(e).forEach(m),this.h()},h(){h(e,"class","enter-part bg-[#ececf1] rounded-l absolute top-[-2px] left-[-12px] w-[13px] h-[2.8rem] svelte-jvhfju")},m(t,s){R(t,e,s)},d(t){t&&m(e)}}}function ol(l){let e,t=l[0].note.note+"",s;return{c(){e=p("div"),s=J(t),this.h()},l(n){e=v(n,"DIV",{class:!0});var r=S(e);s=Q(r,t),r.forEach(m),this.h()},h(){h(e,"class","absolute top-0 left-0")},m(n,r){R(n,e,r),u(e,s)},p(n,r){r&1&&t!==(t=n[0].note.note+"")&&re(s,t)},d(n){n&&m(e)}}}function ya(l){let e,t,s,n,r,a,i=l[0].key+"",o,c,f,d,_=l[0].key==="{enter}"&&rl(),b=l[0].key==="{enter}"&&il(),g=l[0].note&&ol(l);return{c(){_&&_.c(),e=j(),t=p("li"),s=p("button"),b&&b.c(),n=j(),g&&g.c(),r=j(),a=p("div"),o=J(i),this.h()},l(T){_&&_.l(T),e=P(T),t=v(T,"LI",{class:!0});var y=S(t);s=v(y,"BUTTON",{class:!0});var L=S(s);b&&b.l(L),n=P(L),g&&g.l(L),r=P(L),a=v(L,"DIV",{});var O=S(a);o=Q(O,i),O.forEach(m),L.forEach(m),y.forEach(m),this.h()},h(){h(s,"class","relative w-full h-full shadow bg-[#ececf1] rounded flex items-center justify-center svelte-jvhfju"),h(t,"class",c=Ie(`${l[1].class||""} m-[0.175rem] ${cl(l[0].size)}`)+" svelte-jvhfju"),q(t,"enter",l[0].key==="{enter}")},m(T,y){_&&_.m(T,y),R(T,e,y),R(T,t,y),u(t,s),b&&b.m(s,null),u(s,n),g&&g.m(s,null),u(s,r),u(s,a),u(a,o),f||(d=F(s,"click",l[2]),f=!0)},p(T,[y]){T[0].key==="{enter}"?_||(_=rl(),_.c(),_.m(e.parentNode,e)):_&&(_.d(1),_=null),T[0].key==="{enter}"?b||(b=il(),b.c(),b.m(s,n)):b&&(b.d(1),b=null),T[0].note?g?g.p(T,y):(g=ol(T),g.c(),g.m(s,r)):g&&(g.d(1),g=null),y&1&&i!==(i=T[0].key+"")&&re(o,i),y&3&&c!==(c=Ie(`${T[1].class||""} m-[0.175rem] ${cl(T[0].size)}`)+" svelte-jvhfju")&&h(t,"class",c),y&3&&q(t,"enter",T[0].key==="{enter}")},i:fe,o:fe,d(T){T&&(m(e),m(t)),_&&_.d(T),b&&b.d(),g&&g.d(),f=!1,d()}}}function cl(l){return l&&Number.isInteger(l)?`size-${l}`:l?`size-${Math.floor(l)}-${Math.floor(l*10)-Math.floor(l)*10}`:"size-1"}function ka(l,e,t){let{value:s}=e;function n(r){ms.call(this,l,r)}return l.$$set=r=>{t(1,e=Ee(Ee({},e),we(r))),"value"in r&&t(0,s=r.value)},e=we(e),[s,e,n]}class Ea extends ze{constructor(e){super(),He(this,e,ka,ya,qe,{value:0})}}const wa={ar:{name:"arabic",import:te(()=>import("./arabic-TJdw9TqS.cd2ea0d3.js"),[],import.meta.url)},hye:{name:"armenianEastern",import:te(()=>import("./armenianEastern-LNw2V_Kb.e28a3752.js"),[],import.meta.url)},hyw:{name:"armenianWestern",import:te(()=>import("./armenianWestern-zmIyLd1o.38785f27.js"),[],import.meta.url)},as:{name:"assamese",import:te(()=>import("./assamese-2fg5TKew.e3a11680.js"),[],import.meta.url)},ba:{name:"balochi",import:te(()=>import("./balochi-KrgUS2RK.d85c6f1a.js"),[],import.meta.url)},be:{name:"belarusian",import:te(()=>import("./belarusian--mjombxK.1fcd2897.js"),[],import.meta.url)},bn:{name:"bengali",import:te(()=>import("./bengali-2-qmZ9ZL.b883376f.js"),[],import.meta.url)},pt:{name:"brazilian",import:te(()=>import("./brazilian-_aUR_EdS.2b1b1fd9.js"),[],import.meta.url)},my:{name:"burmese",import:te(()=>import("./burmese-DNLMDG0C.87e404a2.js"),[],import.meta.url)},zh:{name:"chinese",import:te(()=>import("./chinese-Vv6o_huT.c292fc41.js"),[],import.meta.url)},cs:{name:"czech",import:te(()=>import("./czech-AAz70GMU.0cffa7b5.js"),[],import.meta.url)},en:{name:"english",import:Promise.resolve().then(()=>Ta)},fa:{name:"farsi",import:te(()=>import("./farsi-akNUiiy1.62727da0.js"),[],import.meta.url)},fr:{name:"french",import:te(()=>import("./french-GKHnJmdK.94658ac4.js"),[],import.meta.url)},ka:{name:"georgian",import:te(()=>import("./georgian-SQFgQD3n.89ef2935.js"),[],import.meta.url)},de:{name:"german",import:te(()=>import("./german-Wy-4wNPv.fa6f994f.js"),[],import.meta.url)},gi:{name:"gilaki",import:te(()=>import("./gilaki-v742kFIj.beefdad3.js"),[],import.meta.url)},el:{name:"greek",import:te(()=>import("./greek-lay7OJjb.9c2c2556.js"),[],import.meta.url)},he:{name:"hebrew",import:te(()=>import("./hebrew-V6ZtD_jG.48875cb9.js"),[],import.meta.url)},hi:{name:"hindi",import:te(()=>import("./hindi-uNDpRlqm.76d6c741.js"),[],import.meta.url)},hu:{name:"hungarian",import:te(()=>import("./hungarian-Wnxix6n4.45652951.js"),[],import.meta.url)},it:{name:"italian",import:te(()=>import("./italian-eDgp6wHT.50798155.js"),[],import.meta.url)},ja:{name:"japanese",import:te(()=>import("./japanese-Zv_Q1DDl.d78f358a.js"),[],import.meta.url)},kn:{name:"kannada",import:te(()=>import("./kannada-1jV6XiS0.41bc3c66.js"),[],import.meta.url)},ku:{name:"kurdish",import:te(()=>import("./kurdish-eencXZUC.4cb27155.js"),[],import.meta.url)},mk:{name:"macedonian",import:te(()=>import("./macedonian-Dot-tKLH.04517113.js"),[],import.meta.url)},ml:{name:"malayalam",import:te(()=>import("./malayalam-1xjnMslS.610dd1c4.js"),[],import.meta.url)},yo:{name:"nigerian",import:te(()=>import("./nigerian-IYPkF_j3.5b26cce3.js"),[],import.meta.url)},nk:{name:"nko",import:te(()=>import("./nko-EI8QPheE.3268d6cd.js"),[],import.meta.url)},no:{name:"norwegian",import:te(()=>import("./norwegian-sal6SH2s.847bc0b5.js"),[],import.meta.url)},od:{name:"odia",import:te(()=>import("./odia-zrWvkRlA.e8b72abc.js"),[],import.meta.url)},pl:{name:"polish",import:te(()=>import("./polish-yYQdl0aw.936f6a15.js"),[],import.meta.url)},pa:{name:"punjabi",import:te(()=>import("./punjabi-0AIiTj_p.01c98b73.js"),[],import.meta.url)},ru:{name:"russian",import:te(()=>import("./russian-sQ885m4A.ff7543fb.js"),[],import.meta.url)},ru2:{name:"russianOld",import:te(()=>import("./russianOld-EJwjNEzY.7b3bb226.js"),[],import.meta.url)},sd:{name:"sindhi",import:te(()=>import("./sindhi-guri82Yy.2a0648bd.js"),[],import.meta.url)},es:{name:"spanish",import:te(()=>import("./spanish-Ww3zYGV_.0ed27470.js"),[],import.meta.url)},sv:{name:"swedish",import:te(()=>import("./swedish-RpPWxHx_.af07bd5e.js"),[],import.meta.url)},te:{name:"telugu",import:te(()=>import("./telugu-WPb3GXn5.f8d401d9.js"),[],import.meta.url)},th:{name:"thai",import:te(()=>import("./thai-Q-LTk3Id.1148f3d0.js"),[],import.meta.url)},tr:{name:"turkish",import:te(()=>import("./turkish-qQEi80RS.cb967a2e.js"),[],import.meta.url)},uk:{name:"ukrainian",import:te(()=>import("./ukrainian-CLoogq0p.3e4781c0.js"),[],import.meta.url)},ur:{name:"urdu",import:te(()=>import("./urdu-NIkHMU4A.9c633ce1.js"),[],import.meta.url)},ur2:{name:"urduStandard",import:te(()=>import("./urduStandard-LGkVMfEq.8382df56.js"),[],import.meta.url)},ug:{name:"uyghur",import:te(()=>import("./uyghur-eF-99IjK.066cbfdb.js"),[],import.meta.url)}},tn={ar:"arabic",hye:"armenianEastern",hyw:"armenianWestern",as:"assamese",balochi:"balochi",be:"belarusian",bn:"bengali",pt:"brazilian",my:"burmese",zh:"chinese",cs:"czech",en:"english",fa:"farsi",fr:"french",ka:"georgian",de:"german",gilaki:"gilaki",el:"greek",he:"hebrew",hi:"hindi",hu:"hungarian",it:"italian",ja:"japanese",kn:"kannada",ku:"kurdish",mk:"macedonian",ml:"malayalam",yo:"nigerian",nko:"nko",no:"norwegian",odia:"odia",pl:"polish",pa:"punjabi",ru:"russian",ru2:"russianOld",sd:"sindhi",es:"spanish",sv:"swedish",te:"telugu",th:"thai",tr:"turkish",uk:"ukrainian",ur:"urdu",ur2:"urduStandard",ug:"uyghur"};function Ca(l){return l.split(/^[A-Z]?$/).map((e,t)=>t===0?e[0].toUpperCase()+e.slice(1):e).join(" ")}function sn(l){if(!("default"in l.layout)||!("shift"in l.layout))throw console.error(l),Error("Invalid layout import");return{default:l.layout.default,shift:l.layout.shift}}async function Aa(l=["en"]){let e={lang:"english",code:"en",index:99};Object.entries(tn).forEach(([n,r])=>{for(let a=0;aa)&&(e={code:n,lang:r,index:a})});const t=wa[e.code],s=await t.import;return{code:e.code,name:Ca(t.name),imported:sn(s.default)}}const ln={layout:{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]}},Ta=Object.freeze(Object.defineProperty({__proto__:null,default:ln},Symbol.toStringTag,{value:"Module"})),Ia=[["IntlBackslash","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Digit0","Minus","Equal","Backspace"],["Tab","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Enter"],["Capslock","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","Backslash"],["ShiftLeft","Backquote","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","ShiftRight"]];function Sa(l,e){return l[1].forEach((t,s)=>{let n;s===2?n={...e[1]}:s===3?n={...e[3]}:s===5?n={...e[6]}:s===6?n={...e[8]}:s===7?n={...e[10]}:s===9?(n={...e[1]},n.semitones+=12):s===10&&(n={...e[3]},n.semitones+=12),l[1][s].note=n}),l[2].forEach((t,s)=>{let n;s===1?n={...e[0]}:s===2?n={...e[2]}:s===3?n={...e[4]}:s===4?n={...e[5]}:s===5?n={...e[7]}:s===6?n={...e[9]}:s===7?n={...e[11]}:s===8?(n={...e[0]},n.semitones+=12):s===9?(n={...e[2]},n.semitones+=12):s===10?(n={...e[4]},n.semitones+=12):s===11?(n={...e[5]},n.semitones+=12):s===12&&(n={...e[7]},n.semitones+=12),l[2][s].note=n}),l}class Na{constructor(e){this.language="en",this.rows=[[],[],[],[]],this.opts={hotkeydRows:"middle-row",layout:{code:"en",name:"English",imported:sn(ln)},...e},this.setLayout(this.opts.layout.imported)}setOptions(e){this.opts={...this.opts,...e}}setLayout(e){const t=[[],[],[],[]];e.default.forEach((s,n)=>{s.split(" ").forEach((r,a)=>{n<4&&t[n].push({key:r,code:Ia[n][a]})})}),this.rows=t}setNotes(e){if(this.opts.hotkeydRows==="middle-row")this.rows=Sa(this.rows,e);else throw Error("not implemented")}}const bs=/^[a-gA-G]$/,nn=/^[♭Bb#♯sS]$/,Da=/^[0-9]$/;let z="",ut;const an=ht(Be({layoutName:"American",hotkeydRows:"middle-row"}),{key:"keyboard-options"}),rn=Nt([St,an],([l,e])=>{const t=new Na(e);return t.setNotes(Array.from(l.notesMap.values())),t}),La=Nt(rn,l=>l.rows.map(e=>e.map((t,s)=>{let n;return t.key==="{bksp}"?n=2:t.key==="{tab}"?n=1.5:t.key==="{enter}"?n=2:t.key==="{lock}"?n=1.75:t.key==="{shift}"&&s===0?n=1.5:t.key==="{shift}"&&(n=2.5),n?{...t,size:n}:t}))),Zt=Nt(rn,l=>new Map([...l.rows[0].map(e=>[e.code,e]),...l.rows[1].map(e=>[e.code,e]),...l.rows[2].map(e=>[e.code,e]),...l.rows[3].map(e=>[e.code,e])])),ja=Nt(Zt,l=>Array.from(l.values()).map(e=>e.note).filter(e=>e!==void 0));function Pa(l,e){const{useHotkeys:t}=ye(nt),s=ye(Zt).get(l);if(t&&z.length===0&&s&&s.note)return z="",{e:"guessed-key",data:s.note.note};if(!t&&z.length===0&&bs.test(e))return z+=e.toUpperCase(),{e:"string",data:z};if(!t&&z.length>0&&nn.test(e))return e==="b"||e==="B"?z+="♭":z+="♯",{e:"string",data:z};if(l==="Backspace"&&z.length>0)return z=z.slice(0,-1),{e:"string",data:z};if(l==="Enter"&&z.length>0){const n=z;return z="",{e:"guessed-key",data:n}}return!1}function Va(l,e,t){if(l==="Enter"&&z.length>0){const s={note:"",flats:0,sharps:0,chord:""};for(let n=0;n0?s.chord+=z[n].toLowerCase():z[n]==="♭"?(s.note+=z[n],s.flats+=1):z[n]==="♯"?(s.note+=z[n],s.sharps+=1):s.chord+=z[n].toLowerCase();return z="",{e:"guessed-chord",data:s}}else{if(l==="Backspace"&&z.length>0)return z=z.slice(0,-1),{e:"string",data:z};if(z.length===0&&bs.test(e))return z+=e.toUpperCase(),{e:"string",data:z};if(z.length>0&&e.length===1)return z.length===1&&(e==="b"||e==="B")?z+="♭":z.length===1&&e==="#"?z+="♯":z+=e,{e:"string",data:z}}return!1}function Oa(l,e,t){const{useAutoOctave:s,useHotkeys:n}=ye(nt);let r;const i=ye(Zt).get(l),o=(i==null?void 0:i.key)||"";let c=!1;if(!ut&&n&&(i!=null&&i.note)?(ut=i.note,s&&(r=Yl(ye(Xt)[0].midi)),c="note"):!n&&z.length===0&&bs.test(e)?(z+=e.toUpperCase(),c="input"):!n&&z.length>0&&nn.test(e)&&(e==="b"||e==="B"?z+="♭":z+="♯",c="input"),Da.test(o))try{r=parseInt(o)}catch{}if(ut&&r!==void 0){const f=ut.semitones+(r+1+(t?1:0))*12;return ut=void 0,{e:"guessed-note",data:f}}else if(z&&r!==void 0){const f=on.findNote(z),d=f?f.semitones+(r+1)*12:void 0;return ut=void 0,z="",d!==void 0?{e:"guessed-note",data:d}:{e:"string",data:z}}else if(l==="Backspace"&&(ut||z.length>0))return ut=void 0,z=z.slice(0,-1),{e:"string",data:z};return c==="note"?{e:"note",data:ut}:c==="input"?{e:"string",data:z}:!1}const on={setLayout(l){},findNote(l){return ye(ja).find(e=>{if(e.note.charAt(0)===l.charAt(0)){const t=l.slice(1).split("").reduce((s,n)=>s+(n.toLowerCase()==="b"||n==="♭"?-1:n.toLowerCase()==="s"||n==="#"||n==="♯"?1:0),0);return t>0?e.sharps===t:t<0?e.flats===t*-1:e.flats===0&&e.sharps===0}})},handleInput(l,e,t=!1){const s=ye(yt);return s instanceof jt?Pa(l,e.toUpperCase()):s instanceof ft&&s.type==="chords-write"?Va(l,e):ye(nt).useKeyboard?Oa(l,e.toUpperCase(),t):!1}};function ul(l,e,t){const s=l.slice();return s[9]=e[t],s[11]=t,s}function fl(l,e,t){const s=l.slice();return s[12]=e[t],s}function Ba(l){let e,t=l[2].layoutName+"",s;return{c(){e=p("div"),s=J(t),this.h()},l(n){e=v(n,"DIV",{slot:!0});var r=S(e);s=Q(r,t),r.forEach(m),this.h()},h(){h(e,"slot","value")},m(n,r){R(n,e,r),u(e,s)},p(n,r){r&4&&t!==(t=n[2].layoutName+"")&&re(s,t)},d(n){n&&m(e)}}}function dl(l){let e,t;return e=new Ea({props:{value:l[12]}}),{c(){_e(e.$$.fragment)},l(s){pe(e.$$.fragment,s)},m(s,n){ve(e,s,n),t=!0},p(s,n){const r={};n&8&&(r.value=s[12]),e.$set(r)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){W(e.$$.fragment,s),t=!1},d(s){ge(e,s)}}}function hl(l){let e,t,s,n,r=le(l[9]),a=[];for(let o=0;oW(a[o],1,1,()=>{a[o]=null});return{c(){e=p("li"),t=j();for(let o=0;oW(k[B],1,1,()=>{k[B]=null});return{c(){e=p("div"),t=p("div"),s=p("div"),n=p("label"),n.textContent=r,a=j(),_e(i.$$.fragment),o=j(),c=p("div"),f=p("label"),f.textContent=d,_=j(),b=p("input"),g=j(),T=p("div"),y=p("label"),y.textContent=L,O=j(),V=p("input"),E=j(),N=p("div"),I=p("ul");for(let B=0;Bt(8,s=d)),oe(l,an,d=>t(2,n=d)),oe(l,La,d=>t(3,r=d)),zl(async()=>{console.log(s);const d=await Aa(["sw"]);console.log(d)});let a=!0,i=!1;const o=Object.entries(tn).map(([d,_])=>({key:d,value:_}));function c(){a=this.checked,t(0,a)}function f(){i=this.checked,t(1,i)}return l.$$set=d=>{t(5,e=Ee(Ee({},e),we(d)))},e=we(e),[a,i,n,r,o,e,c,f]}class Ra extends ze{constructor(e){super(),He(this,e,Ua,Ga,qe,{})}}function ml(l){let e,t;return e=new Ra({props:{class:"mt-4"}}),{c(){_e(e.$$.fragment)},l(s){pe(e.$$.fragment,s)},m(s,n){ve(e,s,n),t=!0},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){W(e.$$.fragment,s),t=!1},d(s){ge(e,s)}}}function xa(l){let e,t,s,n,r="I/O",a,i,o,c,f="Device",d,_,b,g,T,y,L="Prompt",O,V,E="Disable",N,I,D,M,w="Sound",G,C,k,A,B,U,K="Fixed velocity",H,ne,se,de,ue,Ne,Ke="Keyboard",Ge,be,We,xe,De,ie,Se="Hotkeys",he,Y,ae,x,X,ce,ee="Auto-octave",Ce,Ve,at,Je,Me,Le,Ae,Dt="Set hotkeys",Et,Ue,mt,ys="Fade timeout",es,ot,ts,_t,Pt,ss,pt,ks="Reset all",ls,Vt,Qe,ns,Es,Oe=l[2]&&ml();return{c(){e=p("div"),t=p("fieldset"),s=p("legend"),n=p("button"),n.textContent=r,a=j(),i=p("div"),o=p("div"),c=p("label"),c.textContent=f,d=j(),_=p("input"),g=j(),T=p("div"),y=p("button"),y.textContent=L,O=j(),V=p("button"),V.textContent=E,N=j(),I=p("div"),D=p("div"),M=p("label"),M.textContent=w,G=j(),C=p("input"),A=j(),B=p("div"),U=p("label"),U.textContent=K,H=j(),ne=p("input"),se=j(),de=p("div"),ue=p("div"),Ne=p("label"),Ne.textContent=Ke,Ge=j(),be=p("input"),xe=j(),De=p("div"),ie=p("label"),ie.textContent=Se,he=j(),Y=p("input"),x=j(),X=p("div"),ce=p("label"),ce.textContent=ee,Ce=j(),Ve=p("input"),Je=j(),Me=p("div"),Le=p("div"),Ae=p("button"),Ae.textContent=Dt,Et=j(),Ue=p("div"),mt=p("label"),mt.textContent=ys,es=j(),ot=p("input"),ts=j(),_t=p("div"),Pt=p("div"),ss=j(),pt=p("button"),pt.textContent=ks,ls=j(),Oe&&Oe.c(),this.h()},l(Te){e=v(Te,"DIV",{class:!0});var Re=S(e);t=v(Re,"FIELDSET",{class:!0});var ct=S(t);s=v(ct,"LEGEND",{class:!0});var ws=S(s);n=v(ws,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(n)!=="svelte-1jbbsti"&&(n.textContent=r),ws.forEach(m),a=P(ct),i=v(ct,"DIV",{class:!0});var vt=S(i);o=v(vt,"DIV",{class:!0});var wt=S(o);c=v(wt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(c)!=="svelte-crpa7y"&&(c.textContent=f),d=P(wt),_=v(wt,"INPUT",{class:!0,id:!0}),g=P(wt),T=v(wt,"DIV",{class:!0});var Ot=S(T);y=v(Ot,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(y)!=="svelte-mj6mct"&&(y.textContent=L),O=P(Ot),V=v(Ot,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(V)!=="svelte-1sl6oxh"&&(V.textContent=E),Ot.forEach(m),wt.forEach(m),N=P(vt),I=v(vt,"DIV",{class:!0});var Bt=S(I);D=v(Bt,"DIV",{class:!0});var Gt=S(D);M=v(Gt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(M)!=="svelte-wgxtkw"&&(M.textContent=w),G=P(Gt),C=v(Gt,"INPUT",{class:!0,id:!0,type:!0}),Gt.forEach(m),A=P(Bt),B=v(Bt,"DIV",{class:!0});var Mt=S(B);U=v(Mt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(U)!=="svelte-1tm2bth"&&(U.textContent=K),H=P(Mt),ne=v(Mt,"INPUT",{class:!0,id:!0,placeholder:!0}),Mt.forEach(m),Bt.forEach(m),se=P(vt),de=v(vt,"DIV",{class:!0});var Ct=S(de);ue=v(Ct,"DIV",{class:!0});var Ut=S(ue);Ne=v(Ut,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(Ne)!=="svelte-1js269u"&&(Ne.textContent=Ke),Ge=P(Ut),be=v(Ut,"INPUT",{class:!0,id:!0,type:!0}),Ut.forEach(m),xe=P(Ct),De=v(Ct,"DIV",{class:!0});var Rt=S(De);ie=v(Rt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(ie)!=="svelte-21h39k"&&(ie.textContent=Se),he=P(Rt),Y=v(Rt,"INPUT",{class:!0,id:!0,type:!0}),Rt.forEach(m),x=P(Ct),X=v(Ct,"DIV",{class:!0});var xt=S(X);ce=v(xt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(ce)!=="svelte-33lczu"&&(ce.textContent=ee),Ce=P(xt),Ve=v(xt,"INPUT",{class:!0,id:!0,type:!0}),xt.forEach(m),Ct.forEach(m),Je=P(vt),Me=v(vt,"DIV",{class:!0});var At=S(Me);Le=v(At,"DIV",{class:!0});var Cs=S(Le);Ae=v(Cs,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(Ae)!=="svelte-1v9okg9"&&(Ae.textContent=Dt),Cs.forEach(m),Et=P(At),Ue=v(At,"DIV",{class:!0});var Kt=S(Ue);mt=v(Kt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(mt)!=="svelte-vd5i27"&&(mt.textContent=ys),es=P(Kt),ot=v(Kt,"INPUT",{class:!0,id:!0}),Kt.forEach(m),ts=P(At),_t=v(At,"DIV",{class:!0});var $t=S(_t);Pt=v($t,"DIV",{}),S(Pt).forEach(m),ss=P($t),pt=v($t,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(pt)!=="svelte-jjt0c3"&&(pt.textContent=ks),$t.forEach(m),At.forEach(m),vt.forEach(m),ls=P(ct),Oe&&Oe.l(ct),ct.forEach(m),Re.forEach(m),this.h()},h(){var Te;h(n,"class","px-1 rounded hover:bg-gray-100"),h(s,"class","text-base"),h(c,"class","font-bold"),h(c,"for","device"),h(_,"class","px-1 my-1 rounded w-50"),h(_,"id","device"),_.disabled=!0,_.value=b=((Te=l[5])==null?void 0:Te.name)??"No device",h(y,"class","btn-sm primary mr-2"),h(V,"class","btn-sm primary"),h(T,"class","flex my-[auto]"),h(o,"class","h-full flex flex-col"),h(M,"class","font-bold"),h(M,"for","sound"),h(C,"class","h-[20px]"),h(C,"id","sound"),h(C,"type","checkbox"),C.checked=k=l[3].useSound,h(D,"class","my-1 flex justify-between mr-12"),h(U,"class","font-bold"),h(U,"for","fixed-velocity"),h(ne,"class","h-[20px] w-16"),h(ne,"id","fixed-velocity"),h(ne,"placeholder","0-127"),h(B,"class","flex justify-between"),h(I,"class","flex flex-col h-full"),h(Ne,"class","font-bold"),h(Ne,"for","keyboard"),h(be,"class","h-[20px]"),h(be,"id","keyboard"),h(be,"type","checkbox"),be.checked=We=l[3].useKeyboard,h(ue,"class","my-1 flex justify-between mr-12"),h(ie,"class","font-bold"),h(ie,"for","hotkeys"),h(Y,"class","h-[20px]"),h(Y,"id","hotkeys"),h(Y,"type","checkbox"),Y.checked=ae=l[3].useHotkeys,h(De,"class","my-1 flex justify-between mr-12"),h(ce,"class","font-bold"),h(ce,"for","auto-octave"),h(Ve,"class","h-[20px]"),h(Ve,"id","auto-octave"),h(Ve,"type","checkbox"),Ve.checked=at=l[3].useAutoOctave,h(X,"class","my-1 flex justify-between mr-12"),h(de,"class","flex flex-col h-full"),h(Ae,"class","w-full btn-sm primary"),h(Le,"class","flex justify-between"),h(mt,"class","font-bold"),h(mt,"for","fade-timeout"),h(ot,"class","h-[20px] w-16"),h(ot,"id","fade-timeout"),ot.value=l[1],h(Ue,"class","flex justify-between"),h(pt,"class","btn-sm primary"),h(_t,"class","flex justify-between"),h(Me,"class","flex flex-col justify-between h-full"),h(i,"class","body svelte-1bpw69s"),q(i,"hidden",l[4]),h(t,"class","flex flex-col rounded border-2 px-4 py-2 my-4 text-sm svelte-1bpw69s"),q(t,"collapsed",l[4]),h(e,"class",Vt=Ie(`${l[11].class||""}`)+" svelte-1bpw69s")},m(Te,Re){R(Te,e,Re),u(e,t),u(t,s),u(s,n),u(t,a),u(t,i),u(i,o),u(o,c),u(o,d),u(o,_),u(o,g),u(o,T),u(T,y),u(T,O),u(T,V),u(i,N),u(i,I),u(I,D),u(D,M),u(D,G),u(D,C),u(I,A),u(I,B),u(B,U),u(B,H),u(B,ne),Ye(ne,l[0]),u(i,se),u(i,de),u(de,ue),u(ue,Ne),u(ue,Ge),u(ue,be),u(de,xe),u(de,De),u(De,ie),u(De,he),u(De,Y),u(de,x),u(de,X),u(X,ce),u(X,Ce),u(X,Ve),u(i,Je),u(i,Me),u(Me,Le),u(Le,Ae),u(Me,Et),u(Me,Ue),u(Ue,mt),u(Ue,es),u(Ue,ot),u(Me,ts),u(Me,_t),u(_t,Pt),u(_t,ss),u(_t,pt),u(t,ls),Oe&&Oe.m(t,null),Qe=!0,ns||(Es=[F(n,"click",l[7]),F(y,"click",Fe.openMidi),F(V,"click",Fe.disableMidi),F(C,"change",l[12]),F(ne,"input",l[13]),F(ne,"change",l[8]),F(be,"change",l[14]),F(Y,"change",l[15]),F(Ve,"change",l[16]),F(Ae,"click",l[17]),F(ot,"input",l[9]),F(pt,"click",l[10])],ns=!0)},p(Te,[Re]){var ct;(!Qe||Re&32&&b!==(b=((ct=Te[5])==null?void 0:ct.name)??"No device")&&_.value!==b)&&(_.value=b),(!Qe||Re&8&&k!==(k=Te[3].useSound))&&(C.checked=k),Re&1&&ne.value!==Te[0]&&Ye(ne,Te[0]),(!Qe||Re&8&&We!==(We=Te[3].useKeyboard))&&(be.checked=We),(!Qe||Re&8&&ae!==(ae=Te[3].useHotkeys))&&(Y.checked=ae),(!Qe||Re&8&&at!==(at=Te[3].useAutoOctave))&&(Ve.checked=at),(!Qe||Re&2&&ot.value!==Te[1])&&(ot.value=Te[1]),(!Qe||Re&16)&&q(i,"hidden",Te[4]),Te[2]?Oe?Re&4&&$(Oe,1):(Oe=ml(),Oe.c(),$(Oe,1),Oe.m(t,null)):Oe&&(st(),W(Oe,1,1,()=>{Oe=null}),lt()),(!Qe||Re&16)&&q(t,"collapsed",Te[4]),(!Qe||Re&2048&&Vt!==(Vt=Ie(`${Te[11].class||""}`)+" svelte-1bpw69s"))&&h(e,"class",Vt)},i(Te){Qe||($(Oe),Qe=!0)},o(Te){W(Oe),Qe=!1},d(Te){Te&&m(e),Oe&&Oe.d(),ns=!1,it(Es)}}}function Ka(l,e,t){let s,n,r;oe(l,nt,E=>t(3,s=E)),oe(l,Yt,E=>t(5,r=E));const a=ht(Be(!1),{key:"inputs-hidden"});oe(l,a,E=>t(4,n=E));let i=s.fixedVelocity??"",o=s.keyFadeTimeout,c=!1;nt.subscribe(E=>{t(0,i=E.fixedVelocity??""),t(1,o=E.keyFadeTimeout)});function f(){a.update(E=>!E)}function d(E){const{value:N}=E.currentTarget;let I;if(N)try{I=parseInt(N)}catch{}I!==void 0&&I>=0&&I<=127?Fe.setInputValue("fixedVelocity",I):N?t(0,i=s.fixedVelocity||""):Fe.setInputValue("fixedVelocity",void 0)}function _(E){try{const N=parseInt(E.currentTarget.value);Fe.setInputValue("keyFadeTimeout",N)}catch{t(1,o=s.keyFadeTimeout)}}function b(){Bn()}const g=E=>Fe.setInputValue("useSound",E.currentTarget.checked);function T(){i=this.value,t(0,i)}const y=E=>Fe.setInputValue("useKeyboard",E.currentTarget.checked),L=E=>Fe.setInputValue("useHotkeys",E.currentTarget.checked),O=E=>Fe.setInputValue("useAutoOctave",E.currentTarget.checked),V=()=>t(2,c=!c);return l.$$set=E=>{t(11,e=Ee(Ee({},e),we(E)))},e=we(e),[i,o,c,s,n,r,a,f,d,_,b,e,g,T,y,L,O,V]}class $a extends ze{constructor(e){super(),He(this,e,Ka,xa,qe,{})}}function Fa(l){let e;return{c(){e=J(" ")},l(t){e=Q(t," ")},m(t,s){R(t,e,s)},p:fe,d(t){t&&m(e)}}}function za(l){let e,t=l[1].note+"",s;return{c(){e=J("Input: "),s=J(t)},l(n){e=Q(n,"Input: "),s=Q(n,t)},m(n,r){R(n,e,r),R(n,s,r)},p(n,r){r&2&&t!==(t=n[1].note+"")&&re(s,t)},d(n){n&&(m(e),m(s))}}}function Ha(l){let e,t;return{c(){e=J("Input: "),t=J(l[0])},l(s){e=Q(s,"Input: "),t=Q(s,l[0])},m(s,n){R(s,e,n),R(s,t,n)},p(s,n){n&1&&re(t,s[0])},d(s){s&&(m(e),m(t))}}}function qa(l){let e;return{c(){e=J(hs)},l(t){e=Q(t,hs)},m(t,s){R(t,e,s)},p:fe,d(t){t&&m(e)}}}function Wa(l){let e,t,s,n;function r(o,c){return o[2].useKeyboard&&hs?qa:o[2].useKeyboard&&o[0]?Ha:o[2].useKeyboard&&o[1]?za:Fa}let a=r(l),i=a(l);return{c(){e=p("div"),i.c(),this.h()},l(o){e=v(o,"DIV",{class:!0});var c=S(e);i.l(c),c.forEach(m),this.h()},h(){h(e,"class",t=`${l[4].class||""}`)},m(o,c){R(o,e,c),i.m(e,null),s||(n=F(window,"keydown",l[3]),s=!0)},p(o,[c]){a===(a=r(o))&&i?i.p(o,c):(i.d(1),i=a(o),i&&(i.c(),i.m(e,null))),c&16&&t!==(t=`${o[4].class||""}`)&&h(e,"class",t)},i:fe,o:fe,d(o){o&&m(e),i.d(),s=!1,n()}}}let hs="";function Ja(l,e,t){let s;oe(l,nt,c=>t(2,s=c));let{debounced:n}=e,r="",a;const i=hn();function o(c){const f=c.target;if(n||!(f instanceof HTMLElement)||f.tagName==="INPUT")return;const d=on.handleInput(c.code,c.key,c.shiftKey);d&&d.e==="note"?t(1,a=d.data):d&&d.e==="string"?t(0,r=d.data):d&&i(d.e,d.data)}return l.$$set=c=>{t(4,e=Ee(Ee({},e),we(c))),"debounced"in c&&t(5,n=c.debounced)},e=we(e),[r,a,s,o,e,n]}class Qa extends ze{constructor(e){super(),He(this,e,Ja,Wa,qe,{debounced:5})}}function Ya(l){let e,t,s,n="Count",r,a,i,o,c,f="Duplicates",d,_,b,g,T,y,L="Autoplay",O,V,E,N,I,D,M="Wait seconds",w,G,C,k,A;return{c(){e=p("ul"),t=p("li"),s=p("label"),s.textContent=n,r=j(),a=p("input"),i=j(),o=p("li"),c=p("label"),c.textContent=f,d=j(),_=p("input"),g=j(),T=p("li"),y=p("label"),y.textContent=L,O=j(),V=p("input"),N=j(),I=p("li"),D=p("label"),D.textContent=M,w=j(),G=p("input"),this.h()},l(B){e=v(B,"UL",{class:!0});var U=S(e);t=v(U,"LI",{class:!0});var K=S(t);s=v(K,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(s)!=="svelte-wgq9fc"&&(s.textContent=n),r=P(K),a=v(K,"INPUT",{class:!0,id:!0,type:!0}),K.forEach(m),i=P(U),o=v(U,"LI",{class:!0});var H=S(o);c=v(H,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(c)!=="svelte-hcg9dq"&&(c.textContent=f),d=P(H),_=v(H,"INPUT",{class:!0,id:!0,type:!0}),H.forEach(m),g=P(U),T=v(U,"LI",{class:!0});var ne=S(T);y=v(ne,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(y)!=="svelte-lr68n2"&&(y.textContent=L),O=P(ne),V=v(ne,"INPUT",{class:!0,id:!0,type:!0}),ne.forEach(m),N=P(U),I=v(U,"LI",{class:!0});var se=S(I);D=v(se,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(D)!=="svelte-1qj2vcy"&&(D.textContent=M),w=P(se),G=v(se,"INPUT",{class:!0,id:!0,type:!0}),se.forEach(m),U.forEach(m),this.h()},h(){h(s,"class","font-bold"),h(s,"for","guess-count"),h(a,"class","h-[20px] w-10"),h(a,"id","guess-count"),h(a,"type","number"),h(t,"class","flex items-center justify-between svelte-1elvih2"),h(c,"class","font-bold"),h(c,"for","duplicates"),h(_,"class","h-[20px]"),h(_,"id","duplicates"),h(_,"type","checkbox"),_.checked=b=l[2].duplicates,h(o,"class","flex items-center justify-between mr-6 svelte-1elvih2"),h(y,"class","font-bold"),h(y,"for","autoplay"),h(V,"class","h-[20px]"),h(V,"id","autoplay"),h(V,"type","checkbox"),V.checked=E=l[2].autoplay,h(T,"class","flex items-center justify-between mr-6 svelte-1elvih2"),h(D,"class","font-bold"),h(D,"for","wait-ms"),h(G,"class","h-[20px] w-10"),h(G,"id","wait-ms"),h(G,"type","number"),h(I,"class","flex items-center justify-between svelte-1elvih2"),h(e,"class",C=Ie(`${l[5].class||""}`)+" svelte-1elvih2")},m(B,U){R(B,e,U),u(e,t),u(t,s),u(t,r),u(t,a),Ye(a,l[0]),u(e,i),u(e,o),u(o,c),u(o,d),u(o,_),u(e,g),u(e,T),u(T,y),u(T,O),u(T,V),u(e,N),u(e,I),u(I,D),u(I,w),u(I,G),Ye(G,l[1]),k||(A=[F(a,"input",l[6]),F(a,"input",l[3]),F(_,"input",l[7]),F(V,"input",l[8]),F(G,"input",l[9]),F(G,"input",l[4])],k=!0)},p(B,[U]){U&1&&qt(a.value)!==B[0]&&Ye(a,B[0]),U&4&&b!==(b=B[2].duplicates)&&(_.checked=b),U&4&&E!==(E=B[2].autoplay)&&(V.checked=E),U&2&&qt(G.value)!==B[1]&&Ye(G,B[1]),U&32&&C!==(C=Ie(`${B[5].class||""}`)+" svelte-1elvih2")&&h(e,"class",C)},i:fe,o:fe,d(B){B&&m(e),k=!1,it(A)}}}function Xa(l,e,t){let s;oe(l,dt,_=>t(2,s=_));let n=s.count||"",r=s.waitSeconds||"";dt.subscribe(_=>{t(0,n=_.count||""),t(1,r=_.waitSeconds||"")});function a({currentTarget:{value:_}}){let b;try{b=parseInt(_),b<=0&&(b=1),ke.setOptionValue("count",b)}catch{t(0,n=s.count)}}function i({currentTarget:{value:_}}){let b;try{b=parseInt(_),b<0&&(b=0),ke.setOptionValue("waitSeconds",b)}catch{t(1,r=s.waitSeconds)}}function o(){n=qt(this.value),t(0,n)}const c=_=>ke.setOptionValue("duplicates",_.currentTarget.checked),f=_=>ke.setOptionValue("autoplay",_.currentTarget.checked);function d(){r=qt(this.value),t(1,r)}return l.$$set=_=>{t(5,e=Ee(Ee({},e),we(_)))},e=we(e),[n,r,s,a,i,e,o,c,f,d]}class Za extends ze{constructor(e){super(),He(this,e,Xa,Ya,qe,{})}}function _l(l,e,t){const s=l.slice();return s[20]=e[t].key,s[21]=e[t].value,s}function pl(l,e,t){const s=l.slice();return s[20]=e[t].key,s[21]=e[t].value,s}function vl(l){let e,t,s=l[21]+"",n,r,a,i,o,c,f,d;function _(){return l[13](l[20])}i=new rt({props:{icon:os,width:20}});function b(...g){return l[14](l[20],...g)}return{c(){e=p("li"),t=p("button"),n=J(s),r=j(),a=p("button"),_e(i.$$.fragment),o=j(),this.h()},l(g){e=v(g,"LI",{class:!0});var T=S(e);t=v(T,"BUTTON",{class:!0});var y=S(t);n=Q(y,s),y.forEach(m),r=P(T),a=v(T,"BUTTON",{class:!0});var L=S(a);pe(i.$$.fragment,L),L.forEach(m),o=P(T),T.forEach(m),this.h()},h(){h(t,"class","px-2 py-1 mr-1 flex items-center w-full h-full rounded hover:bg-[#eee] svelte-1okhpct"),q(t,"selected",l[20]===l[0]),h(a,"class","px-1 py-1 flex items-center justify-center rounded text-[#222] hover:bg-blue-500 hover:text-white"),h(e,"class","flex svelte-1okhpct")},m(g,T){R(g,e,T),u(e,t),u(t,n),u(e,r),u(e,a),ve(i,a,null),u(e,o),c=!0,f||(d=[F(t,"click",_),F(a,"click",b)],f=!0)},p(g,T){l=g,(!c||T&17)&&q(t,"selected",l[20]===l[0])},i(g){c||($(i.$$.fragment,g),c=!0)},o(g){W(i.$$.fragment,g),c=!1},d(g){g&&m(e),ge(i),f=!1,it(d)}}}function gl(l){let e,t=le(l[2]),s=[];for(let n=0;nW(G[A],1,1,()=>{G[A]=null});let k=(l[0]==="chords-write"||l[0]==="chords-play")&&gl(l);return f=new Za({props:{class:"game-options"}}),L=new rt({props:{class:"mr-1",icon:l[3]?Ds:os,width:20}}),{c(){e=p("fieldset"),t=p("legend"),t.textContent=s,n=j(),r=p("div"),a=p("ul");for(let A=0;At(12,r=E)),oe(l,dt,E=>t(19,a=E)),oe(l,yt,E=>t(3,i=E));const o=[{key:"notes",value:"Play Notes"},{key:"pitches",value:"Guess Pitches"},{key:"keys-major",value:"Guess Major Keys"},{key:"keys-minor",value:"Guess Minor Keys"},{key:"chords-write",value:"Write Chords"},{key:"chords-play",value:"Play Chords"},{key:"chords-diatonic",value:"Play Diatonic Triads"}];let c=o[4].key,f="maj-m";a.count,a.waitSeconds,dt.subscribe(E=>{E.count,E.waitSeconds});function d(){ke.clearGame(!0)}function _(E,N){if(N==="chords-write"||N==="chords-play"||N==="chords-diatonic"){let I=[];f==="selected"?I=r.filter(D=>D.selected):f==="all"?I=r:f==="maj-m"?I=r.filter(D=>D.suffixes[0]==="maj"||D.suffixes[0]==="m"):f==="seventh"&&(I=r.filter(D=>D.suffixes[0]==="maj7"||D.suffixes[0]==="m7"||D.suffixes[0]==="7"||D.suffixes[0]==="dim7"||D.suffixes[0]==="aug7")),ke.play(N,{chords:I})}else ke.play(N,void 0);E.currentTarget instanceof HTMLElement&&E.currentTarget.blur(),setTimeout(()=>{window.scrollTo(0,document.body.scrollHeight)})}function b(E){t(0,c=E)}function g(E,N){t(0,c=N),_(E,N)}function T(E){t(1,f=E)}const y=E=>b(E),L=(E,N)=>g(N,E),O=E=>T(E),V=E=>_(E,c);return l.$$set=E=>{t(10,e=Ee(Ee({},e),we(E)))},l.$$.update=()=>{l.$$.dirty&4096&&t(11,s=r.reduce((E,N)=>N.selected?E+1:E,0)),l.$$.dirty&2048&&t(2,n=[{key:"maj-m",value:"Major/Minor"},{key:"seventh",value:"Seventh"},{key:"selected",value:`Selected ${s} chords`},{key:"all",value:"All"}])},e=we(e),[c,f,n,i,o,d,_,b,g,T,e,s,r,y,L,O,V]}class sr extends ze{constructor(e){super(),He(this,e,tr,er,qe,{})}}function yl(l,e,t){const s=l.slice();return s[7]=e[t],s}function kl(l,e,t){const s=l.slice();return s[4]=e[t],s}function lr(l){let e,t=le(l[1]),s=[];for(let n=0;nl.interval;function rr(l,e,t){let{scale:s,intervals:n}=e;function r(a){ms.call(this,l,a)}return l.$$set=a=>{t(2,e=Ee(Ee({},e),we(a))),"scale"in a&&t(0,s=a.scale),"intervals"in a&&t(1,n=a.intervals)},e=we(e),[s,n,e,r]}class cn extends ze{constructor(e){super(),He(this,e,rr,ar,qe,{scale:0,intervals:1})}}function Al(l,e,t){const s=l.slice();return s[7]=e[t],s}function Tl(l,e,t){const s=l.slice();return s[4]=e[t],s}function ir(l){let e,t=le(l[0]),s=[];for(let n=0;n2),h(e,"class","inline-flex items-baseline svelte-1roj1mi")},m(f,d){R(f,e,d),u(e,t),u(t,n),u(e,r),u(e,a),u(a,o),u(e,c)},p(f,d){d&1&&s!==(s=f[7].roman+"")&&re(n,s),d&1&&i!==(i=f[7].suffix+"")&&re(o,i),d&1&&q(a,"super-text",f[7].suffix.length>2)},d(f){f&&m(e)}}}function Sl(l){let e,t,s=l[4]+"",n,r;return{c(){e=p("span"),t=p("span"),n=J(s),r=j(),this.h()},l(a){e=v(a,"SPAN",{class:!0});var i=S(e);t=v(i,"SPAN",{});var o=S(t);n=Q(o,s),o.forEach(m),r=P(i),i.forEach(m),this.h()},h(){h(e,"class","inline-flex items-baseline svelte-1roj1mi")},m(a,i){R(a,e,i),u(e,t),u(t,n),u(e,r)},p(a,i){i&2&&s!==(s=a[4]+"")&&re(n,s)},d(a){a&&m(e)}}}function cr(l){let e,t,s,n,r,a;function i(f,d){return f[1].length>0?or:ir}let o=i(l),c=o(l);return{c(){e=p("div"),t=p("button"),c.c(),this.h()},l(f){e=v(f,"DIV",{class:!0,title:!0});var d=S(e);t=v(d,"BUTTON",{class:!0});var _=S(t);c.l(_),_.forEach(m),d.forEach(m),this.h()},h(){h(t,"class","triads flex flex-wrap svelte-1roj1mi"),h(e,"class",s=Ie(`${l[2].class||""} `)+" svelte-1roj1mi"),h(e,"title",n=l[0].map(Nl).join("-"))},m(f,d){R(f,e,d),u(e,t),c.m(t,null),r||(a=F(t,"click",l[3]),r=!0)},p(f,[d]){o===(o=i(f))&&c?c.p(f,d):(c.d(1),c=o(f),c&&(c.c(),c.m(t,null))),d&4&&s!==(s=Ie(`${f[2].class||""} `)+" svelte-1roj1mi")&&h(e,"class",s),d&1&&n!==(n=f[0].map(Nl).join("-"))&&h(e,"title",n)},i:fe,o:fe,d(f){f&&m(e),c.d(),r=!1,a()}}}const Nl=l=>l.roman+l.suffix;function ur(l,e,t){let{triads:s,chords:n}=e;function r(a){ms.call(this,l,a)}return l.$$set=a=>{t(2,e=Ee(Ee({},e),we(a))),"triads"in a&&t(0,s=a.triads),"chords"in a&&t(1,n=a.chords)},e=we(e),[s,n,e,r]}class un extends ze{constructor(e){super(),He(this,e,ur,cr,qe,{triads:0,chords:1})}}function Dl(l,e,t){const s=l.slice();return s[23]=e[t],s}function Ll(l,e,t){const s=l.slice();return s[23]=e[t],s}function jl(l){let e,t,s=l[23].raw.names[0]+"",n,r,a,i,o,c,f;function d(){return l[11](l[23])}a=new cn({props:{scale:l[23].scale,intervals:l[23].raw.intervals}}),a.$on("click",d);function _(){return l[12](l[23])}return o=new un({props:{triads:l[23].triads,chords:l[23].triadChords}}),o.$on("click",_),{c(){e=p("li"),t=p("div"),n=J(s),r=j(),_e(a.$$.fragment),i=j(),_e(o.$$.fragment),c=j(),this.h()},l(b){e=v(b,"LI",{class:!0});var g=S(e);t=v(g,"DIV",{class:!0});var T=S(t);n=Q(T,s),T.forEach(m),r=P(g),pe(a.$$.fragment,g),i=P(g),pe(o.$$.fragment,g),c=P(g),g.forEach(m),this.h()},h(){h(t,"class","text-xs font-bold"),h(e,"class","svelte-4hctsl")},m(b,g){R(b,e,g),u(e,t),u(t,n),u(e,r),ve(a,e,null),u(e,i),ve(o,e,null),u(e,c),f=!0},p(b,g){l=b,(!f||g&4)&&s!==(s=l[23].raw.names[0]+"")&&re(n,s);const T={};g&4&&(T.scale=l[23].scale),g&4&&(T.intervals=l[23].raw.intervals),a.$set(T);const y={};g&4&&(y.triads=l[23].triads),g&4&&(y.chords=l[23].triadChords),o.$set(y)},i(b){f||($(a.$$.fragment,b),$(o.$$.fragment,b),f=!0)},o(b){W(a.$$.fragment,b),W(o.$$.fragment,b),f=!1},d(b){b&&m(e),ge(a),ge(o)}}}function Pl(l){let e,t,s=l[23].raw.names[0]+"",n,r,a,i,o,c,f;function d(){return l[13](l[23])}a=new cn({props:{scale:l[23].scale,intervals:l[23].raw.intervals}}),a.$on("click",d);function _(){return l[14](l[23])}return o=new un({props:{triads:l[23].triads,chords:l[23].triadChords}}),o.$on("click",_),{c(){e=p("li"),t=p("div"),n=J(s),r=j(),_e(a.$$.fragment),i=j(),_e(o.$$.fragment),c=j(),this.h()},l(b){e=v(b,"LI",{class:!0});var g=S(e);t=v(g,"DIV",{class:!0});var T=S(t);n=Q(T,s),T.forEach(m),r=P(g),pe(a.$$.fragment,g),i=P(g),pe(o.$$.fragment,g),c=P(g),g.forEach(m),this.h()},h(){h(t,"class","text-xs font-bold"),h(e,"class","svelte-4hctsl")},m(b,g){R(b,e,g),u(e,t),u(t,n),u(e,r),ve(a,e,null),u(e,i),ve(o,e,null),u(e,c),f=!0},p(b,g){l=b,(!f||g&2)&&s!==(s=l[23].raw.names[0]+"")&&re(n,s);const T={};g&2&&(T.scale=l[23].scale),g&2&&(T.intervals=l[23].raw.intervals),a.$set(T);const y={};g&2&&(y.triads=l[23].triads),g&2&&(y.chords=l[23].triadChords),o.$set(y)},i(b){f||($(a.$$.fragment,b),$(o.$$.fragment,b),f=!0)},o(b){W(a.$$.fragment,b),W(o.$$.fragment,b),f=!1},d(b){b&&m(e),ge(a),ge(o)}}}function fr(l){let e,t,s,n,r="Scales",a,i,o,c,f="Key",d,_,b,g,T,y,L,O,V,E,N=le(l[2]),I=[];for(let C=0;CW(I[C],1,1,()=>{I[C]=null});let M=le(l[1]),w=[];for(let C=0;CW(w[C],1,1,()=>{w[C]=null});return{c(){e=p("div"),t=p("fieldset"),s=p("legend"),n=p("button"),n.textContent=r,a=j(),i=p("div"),o=p("div"),c=p("label"),c.textContent=f,d=j(),_=p("input"),b=j(),g=p("ul");for(let C=0;Ct(17,r=w)),oe(l,St,w=>t(18,a=w)),oe(l,nt,w=>t(19,i=w)),oe(l,tt,w=>t(20,o=w));let d=_s().map(w=>({key:w.names[0],raw:w,scale:void 0,triads:w.triads,triadChords:[]})),_="",b=[a.key,a.scale],g;const T=ht(Be(!0),{key:"scales-hidden"});oe(l,T,w=>t(3,c=w));function y(){T.update(w=>!w)}function L({currentTarget:{value:w}}){t(0,_=`${w.charAt(0).toUpperCase()}${w.charAt(1).toLowerCase()}`),t(10,d=d.map(G=>{const C=Qt(_,G.key),k=_&&"data"in C?C.data:void 0;let A=[];return k&&(A=G.triads.map((B,U)=>`${k.scaleNotes[U].note}${!B.suffix.includes("°")&&B.minor?"m":""}${B.suffix}`)),{...G,scale:k,triadChords:A}}))}function O(w,G,C){if(wA.midi),i.fixedVelocity),g=setTimeout(()=>O(w,G,C),C)}else me.setPlayed([]),me.setKeyAndScale(b[0],b[1])}function V(w){clearTimeout(g);let G,C;w.scale?(C=w.scale,b=[a.key,a.scale],me.setKeyAndScale(w.scale.key,w.scale.scale)):C=a;const k=r[0].midi+C.scaleNotes[0].semitones;G=w.raw.intervals.map(A=>[{...C.notesMap.get(A.semitones%12),midi:k+A.semitones}]),G[0][0].semitones!==G[G.length-1][0].semitones&&G.push(G[0].map(A=>({...A,midi:A.midi+12}))),O(0,G,500)}function E(w){clearTimeout(g);const{intervals:G}=w.raw;let C,k;w.scale?(k=w.scale,b=[a.key,a.scale],me.setKeyAndScale(w.scale.key,w.scale.scale)):k=a;const A=r[0].midi+k.scaleNotes[0].semitones;C=Ql(w.triads).map((U,K)=>cs(A+k.intervals[K].semitones,k,U.intervals)),G[G.length-1].interval_seq!==1&&C.push(C[0].map(U=>({...U,midi:U.midi+12}))),O(0,C,750)}const N=w=>V(w),I=w=>E(w),D=w=>V(w),M=w=>E(w);return l.$$set=w=>{t(9,e=Ee(Ee({},e),we(w)))},l.$$.update=()=>{l.$$.dirty&1024&&t(2,s=d.filter((w,G)=>GG>=d.length/2))},e=we(e),[_,n,s,c,T,y,L,V,E,e,d,N,I,D,M]}class hr extends ze{constructor(e){super(),He(this,e,dr,fr,qe,{})}}function Vl(l,e,t){const s=l.slice();return s[26]=e[t],s}function Ol(l,e,t){const s=l.slice();return s[29]=e[t],s}function Bl(l){let e,t;return{c(){e=p("div"),t=J(l[3]),this.h()},l(s){e=v(s,"DIV",{class:!0});var n=S(e);t=Q(n,l[3]),n.forEach(m),this.h()},h(){h(e,"class","error svelte-1u7ze7x")},m(s,n){R(s,e,n),u(e,t)},p(s,n){n[0]&8&&re(t,s[3])},d(s){s&&m(e)}}}function mr(l){let e,t;return{c(){e=p("div"),t=J(l[0]),this.h()},l(s){e=v(s,"DIV",{slot:!0});var n=S(e);t=Q(n,l[0]),n.forEach(m),this.h()},h(){h(e,"slot","value")},m(s,n){R(s,e,n),u(e,t)},p(s,n){n[0]&1&&re(t,s[0])},d(s){s&&m(e)}}}function Gl(l){let e,t=le(l[5]),s=[];for(let n=0;nt(23,n=k)),oe(l,kt,k=>t(24,r=k)),oe(l,yt,k=>t(7,i=k)),oe(l,St,k=>t(8,o=k));let c=Xe(n[0]),f=Xe(n[1]),d="";const _=ht(Be(!1),{key:"score-options-hidden"});oe(l,_,k=>t(6,a=k));let b=r[0],g=r[1];const T=_s(),y=T.map(k=>({key:k.names[0],value:k.names[0]}));Xt.subscribe(k=>{t(1,c=Xe(k[0])),t(2,f=Xe(k[1]))}),kt.subscribe(k=>{t(4,b=k[0]),t(0,g=k[1])});function L(k,A){const B=Dn(A.currentTarget.value,!0,!0);if("data"in B){const{midi:U}=B.data,K=n,H=[k==="min"?U:K[0].midi,k==="max"?U:K[1].midi];Fe.setMidiRange(H),t(3,d="")}else t(3,d=B.err),k==="min"?t(1,c=Xe(n[0])):t(2,f=Xe(n[1]))}function O(){t(3,d="")}function V({currentTarget:{value:k}}){t(4,b=`${k.charAt(0).toUpperCase()}${k.charAt(1).toLowerCase()}`),me.setKey(b)}function E(k){var A;return t(0,g=(A=y.find(B=>k===B.key))==null?void 0:A.value),me.setScale(g),!1}function N(){_.update(k=>!k)}function I(){me.clearScore(!0),Fe.setMidiRange([60,84])}function D(){c=this.value,t(1,c)}const M=k=>L("min",k);function w(){f=this.value,t(2,f)}const G=k=>L("max",k);function C(){b=this.value,t(4,b)}return l.$$set=k=>{t(17,e=Ee(Ee({},e),we(k)))},l.$$.update=()=>{var k;l.$$.dirty[0]&1&&t(5,s=((k=T.find(A=>A.names[0]===g))==null?void 0:k.intervals)||[])},e=we(e),[g,c,f,d,b,s,a,i,o,_,y,L,O,V,E,N,I,e,D,M,w,G,C]}class vr extends ze{constructor(e){super(),He(this,e,pr,_r,qe,{},null,[-1,-1])}}function gr(l){l[19]=l[20].default}function br(l){return{c:fe,l:fe,m:fe,i:fe,o:fe,d:fe}}function yr(l){gr(l);let e,t,s;var n=l[19];function r(a,i){return{props:{class:"px-4 md:px-0"}}}return n&&(e=pn(n,r())),{c(){e&&_e(e.$$.fragment),t=Pe()},l(a){e&&pe(e.$$.fragment,a),t=Pe()},m(a,i){e&&ve(e,a,i),R(a,t,i),s=!0},i(a){s||(e&&$(e.$$.fragment,a),s=!0)},o(a){e&&W(e.$$.fragment,a),s=!1},d(a){a&&m(t),e&&ge(e,a)}}}function kr(l){let e;return{c(){e=J(" ")},l(t){e=Q(t," ")},m(t,s){R(t,e,s)},i:fe,o:fe,d(t){t&&m(e)}}}function Er(l){let e,t,s,n='MIDI Note Trainer',r,a,i,o,c,f,d,_,b,g,T,y,L,O,V,E,N,I,D;i=new $a({}),c=new hr({}),d=new ea({}),g=new vr({props:{class:"score-options mr-4"}}),y=new sr({props:{class:"play-form"}});let M={ctx:l,current:null,token:null,hasCatch:!1,pending:kr,then:yr,catch:br,value:20,blocks:[,,,]};return mn(te(()=>import("./Score.0d21b472.js"),["./Score.0d21b472.js","./vendor_svelte.92aa1392.js","./vendor.1acf520b.js","./vendor_vexflow.2dfca40b.js","../assets/Score.04e240b8.css"],import.meta.url),M),E=new Qa({props:{class:"min-h-32",debounced:!!l[0]}}),E.$on("guessed-chord",l[2]),E.$on("guessed-key",l[3]),E.$on("guessed-note",l[4]),I=new ha({props:{game:l[1]}}),{c(){e=p("meta"),t=j(),s=p("h1"),s.innerHTML=n,r=j(),a=p("section"),_e(i.$$.fragment),o=j(),_e(c.$$.fragment),f=j(),_e(d.$$.fragment),_=j(),b=p("div"),_e(g.$$.fragment),T=j(),_e(y.$$.fragment),L=j(),M.block.c(),O=j(),V=p("section"),_e(E.$$.fragment),N=j(),_e(I.$$.fragment),this.h()},l(w){const G=_n("svelte-1w2oado",document.head);e=v(G,"META",{name:!0,content:!0}),G.forEach(m),t=P(w),s=v(w,"H1",{class:!0,"data-svelte-h":!0}),Z(s)!=="svelte-1l8ebwf"&&(s.innerHTML=n),r=P(w),a=v(w,"SECTION",{class:!0});var C=S(a);pe(i.$$.fragment,C),o=P(C),pe(c.$$.fragment,C),f=P(C),pe(d.$$.fragment,C),_=P(C),b=v(C,"DIV",{class:!0});var k=S(b);pe(g.$$.fragment,k),T=P(k),pe(y.$$.fragment,k),k.forEach(m),C.forEach(m),L=P(w),M.block.l(w),O=P(w),V=v(w,"SECTION",{class:!0});var A=S(V);pe(E.$$.fragment,A),N=P(A),pe(I.$$.fragment,A),A.forEach(m),this.h()},h(){h(e,"name","description"),h(e,"content","App to practise music notation, scales and chords using MIDI"),h(s,"class","my-8 md:text-5xl mt-12 px-4 md:px-0 text-3xl font-cursive tracking-tight"),h(b,"class","play svelte-qjpqy3"),h(a,"class","px-4 md:px-0"),h(V,"class","mb-8 px-4 md:px-0 flex flex-col")},m(w,G){u(document.head,e),R(w,t,G),R(w,s,G),R(w,r,G),R(w,a,G),ve(i,a,null),u(a,o),ve(c,a,null),u(a,f),ve(d,a,null),u(a,_),u(a,b),ve(g,b,null),u(b,T),ve(y,b,null),R(w,L,G),M.block.m(w,M.anchor=G),M.mount=()=>O.parentNode,M.anchor=O,R(w,O,G),R(w,V,G),ve(E,V,null),u(V,N),ve(I,V,null),D=!0},p(w,[G]){l=w;const C={};G&1&&(C.debounced=!!l[0]),E.$set(C);const k={};G&2&&(k.game=l[1]),I.$set(k)},i(w){D||($(i.$$.fragment,w),$(c.$$.fragment,w),$(d.$$.fragment,w),$(g.$$.fragment,w),$(y.$$.fragment,w),$(M.block),$(E.$$.fragment,w),$(I.$$.fragment,w),D=!0)},o(w){W(i.$$.fragment,w),W(c.$$.fragment,w),W(d.$$.fragment,w),W(g.$$.fragment,w),W(y.$$.fragment,w);for(let G=0;G<3;G+=1){const C=M.blocks[G];W(C)}W(E.$$.fragment,w),W(I.$$.fragment,w),D=!1},d(w){w&&(m(t),m(s),m(r),m(a),m(L),m(O),m(V)),m(e),ge(i),ge(c),ge(d),ge(g),ge(y),M.block.d(w),M.token=null,M=null,ge(E),ge(I)}}}function wr(l,e,t){let s,n,r,a,i,o;oe(l,bt,N=>t(7,s=N)),oe(l,yt,N=>t(1,n=N)),oe(l,dt,N=>t(8,r=N)),oe(l,nt,N=>t(9,a=N)),oe(l,tt,N=>t(10,i=N)),oe(l,fs,N=>t(11,o=N));let c,f;zl(()=>(o&&E(),window.addEventListener("keydown",d),window.addEventListener("mousedown",d),window.addEventListener("touchstart",d),()=>{window.removeEventListener("keydown",d),window.removeEventListener("mousedown",d),window.removeEventListener("touchstart",d)})),Yt.subscribe(N=>{N&&N.channels[1].addListener("noteon",_)});function d(){Fe.initAudio(),window.removeEventListener("keydown",d),window.removeEventListener("mousedown",d),window.removeEventListener("touchstart",d)}function _(N){if(c)return;const I=N.rawData;b(I[1],I[2])}function b(N,I){const D=n;D instanceof It&&!(D!=null&&D.ended)&&s==="waiting"?y(N):D instanceof ft&&!(D!=null&&D.ended)&&s==="waiting"?(D.addPlayedNote(N),f||(f=setTimeout(T,2e3))):D||me.pushPlayed(N),i&&i.noteOn(N,a.fixedVelocity??I)}function g(){r.autoplay&&r.waitSeconds>0?t(0,c=setTimeout(()=>{r.autoplay&&ke.nextGuess(),t(0,c=void 0)},r.waitSeconds*1e3)):r.autoplay?ke.nextGuess():t(0,c=void 0)}function T(){var I;const N=n;if(N instanceof ft){const D=N.guess();me.setPlayed(((I=N.latestGuess.guessed)==null?void 0:I.notes)||[],D,-1),ke.updateState(D?"correct":"wrong"),g()}f=void 0}function y(N){const I=n;if(I instanceof It&&s==="waiting"){me.setTarget([me.getNote(I.current)]);const D=I.guess(N);ke.updateState(D?"correct":"wrong"),me.pushPlayed(N,D,4e3),g()}}function L(N){const I=n;if(I instanceof ft&&s==="waiting"){const D=I.guessWrittenChord(N.detail);ke.updateState(D?"correct":"wrong"),g()}}function O(N){const I=n;if(I instanceof jt&&s==="waiting"){const D=N.detail.replaceAll("♭","b").replaceAll("♯","#"),M=I.guess(D);ke.updateState(M?"correct":"wrong"),g()}}function V(N){b(N.detail,80)}async function E(){const N=await Fe.openMidi();"data"in N?N.data.name:(N.err,console.error(N.err))}return[c,n,L,O,V]}class Ir extends ze{constructor(e){super(),He(this,e,wr,Er,qe,{})}}export{js as F,ft as G,Ir as P,kn as S,It as a,ke as b,yt as c,gt as d,Yl as e,bt as g,tt as p,St as s,Os as t}; diff --git a/_app/immutable/chunks/3.8c3c04e9.js b/_app/immutable/chunks/3.8c3c04e9.js deleted file mode 100644 index 4e8cd9f5..00000000 --- a/_app/immutable/chunks/3.8c3c04e9.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as rn}from"./preload-helper.a4192956.js";import{R as be,Q as Tt,T as Ge,U as on,S as Re,i as He,s as ze,O as at,V as se,e as _,m as L,H as me,a as v,b as T,n as Z,d as m,o as P,I as pe,f as d,L as q,W as Ae,g as K,h as u,J as _e,p as R,t as F,C as tt,w as st,l as W,K as ve,X as De,Y as rt,M as ie,N as ye,P as we,z as J,A as Q,B as ae,v as Le,q as ue,c as Kl,u as xl,j as $l,k as Fl,Z as Es,_ as Ft,F as cn,$ as Ss,a0 as As,a1 as ds,r as Rl,a2 as Qe,a3 as un,a4 as zt,a5 as fn,a6 as hn,G as dn}from"./vendor_svelte.9533a558.js";import{w as Rt,b as mn,c as pn,e as Ns,f as Ts,g as Hl,h as qt,i as Wt,a as Is,j as is}from"./vendor.1acf520b.js";const js={1:0,2:2,3:4,4:5,5:7,6:9,7:11};function $e(l,e=0,t=0){return{interval:`${l}${"♭".repeat(e)}${"♯".repeat(t)}`,interval_seq:l,semitones:zl(l,e,t),flats:e,sharps:t}}function zl(l,e,t){return(l<8?js[l]:js[l%7])-e+t+Math.floor(l/8)*12}function ql(l){let e,t=0,s=0;l<0?(t=1+Math.floor(-l/100),e=-l%100):l>100?(s=Math.floor(l/100),e=l%100):e=l;const n=zl(e,t,s);return{interval:`${e}${"♭".repeat(t)}${"♯".repeat(s)}`,interval_seq:e,semitones:n,flats:t,sharps:s}}const _n=[[["maj"],["Major Chord"],"major",[1,3,5]],[["6"],["Major 6th Chord"],"major",[1,3,5,6]],[["6/9"],["Major 6th/9th Chord"],"major",[1,3,5,6,9]],[["maj7"],["Major 7th Chord"],"major",[1,3,5,7]],[["maj9"],["Major 9th Chord"],"major",[1,3,5,7,9]],[["maj11"],["Major 11th Chord"],"major",[1,3,5,7,9,11]],[["maj13"],["Major 13th Chord"],"major",[1,3,5,7,9,11,13]],[["m"],["Minor Chord"],"minor",[1,-3,5]],[["m6"],["Minor 6th Chord"],"minor",[1,-3,5,6]],[["m7"],["Minor 7th Chord"],"minor",[1,-3,5,-7]],[["m9"],["Minor 9th Chord"],"minor",[1,-3,5,-7,9]],[["m11"],["Minor 11th Chord"],"minor",[1,-3,5,-7,9,11]],[["m13"],["Minor 13th Chord"],"minor",[1,-3,5,-7,9,11,13]],[["sus2"],["Suspended 2nd Chord"],"suspended",[1,2,5]],[["sus4"],["Suspended 4th Chord"],"suspended",[1,4,5]],[["7sus4"],["Suspended 4th Seventh Chord"],"suspended",[1,4,5,-7]],[["7"],["Dominant 7th Chord"],"major",[1,3,5,-7]],[["7#9"],["Dominant 7th Sharp 9th Chord"],"major",[1,3,5,-7,109]],[["9"],["Dominant 9th Chord"],"major",[1,3,5,-7,9]],[["11"],["Dominant 11th Chord"],"major",[1,3,5,-7,9,11]],[["13"],["Dominant 13th Chord"],"major",[1,3,5,-7,9,11,13]],[["5"],["Power Chord"],"indeterminate",[1,5]],[["dim","°"],["Diminished Chord"],"diminished",[1,-3,-5]],[["dim7","°7"],["Diminished 7th Chord"],"diminished",[1,-3,-5,-107]],[["m7b5"],["Half-Diminished 7th Chord"],"diminished",[1,-3,-5,-7]],[["aug","+"],["Augmented Chord"],"augmented",[1,3,105]],[["aug7","+7"],["Augmented 7th Chord"],"augmented",[1,3,105,-7]]];let ns=[];function Wl(){return _n.map(l=>{const e=l[3].map(ql);return{suffixes:l[0],name:l[1][0],type:l[2],intervals:e}})}function jt(l){ns.length===0&&(ns=Wl());const e=l.replaceAll(/-|\s/g,"").toLowerCase().trim();return ns.find(t=>t.suffixes.find(s=>s===e)||t.name.replaceAll(/-|\s/g,"").trim().toLowerCase()===e)}function vn(l,e,t){let s=e<0?l.flats-e:l.flats,n=e>0?l.sharps+e:l.sharps;if(s>0&&n>0){const a=Math.min(s,n);s-=a,n-=a}const r=(l.semitones+e)%12;return{...l,semitones:r<0?r+12:r,note:`${l.note.charAt(0)}${"♭".repeat(s)}${"♯".repeat(n)}`,flats:s,sharps:n,midi:t}}function os(l,e,t){const s=[];for(let n=0;np.semitones===a%12),o=r.flats>0,c=r.sharps>0,f=(o?a+1:c?a-1:a)%12,h=o?-1:c?1:0;s.push(vn(i??e.notesMap.get(f),i?0:h,a))}return s}const Ds=["B♭","E♭","A♭","D♭","G♭","C♭","F♭"],gn=["F♯","C♯","G♯","D♯","A♯","E♯","B♯"],Ls=new Map([[0,"C"],[-1,"F"],[-2,"B♭"],[-3,"E♭"],[-4,"A♭"],[-5,"D♭"],[-6,"G♭"],[-7,"C♭"],[1,"G"],[2,"D"],[3,"A"],[4,"E"],[5,"B"],[6,"F♯"],[7,"C♯"]]);function bn(l){let e=0,t=0;for(let s=0;sa.note.slice(0,2)===Ds[s]),r=l.find(a=>a.note.slice(0,2)===gn[s]);if(n)e+=1;else if(r)t+=1;else break}return e>t?{flats:e,sharps:0,majorSignature:Ls.get(e*-1)}:{flats:0,sharps:t,majorSignature:Ls.get(t)}}function kn(l){return l>=9?`${l>=10?"X":""}${l===9?"IX":"I".repeat(l%10)}`:`${l>=5?"V":""}${l===4?"IV":"I".repeat(l%5)}`}function Jl(l){return l.map(e=>{const t=[$e(1)];let s;return e.major?(t.push($e(3)),e.suffix.startsWith("+")?t.push($e(5,0,1)):e.suffix.startsWith("6")?t.push($e(6)):e.suffix.startsWith("7")?t.push($e(7,1)):e.suffix.startsWith("maj7")?t.push($e(7)):s=jt("maj")):e.minor?(t.push($e(3,1)),e.suffix.startsWith("°")?t.push($e(5,1)):e.suffix.startsWith("6")?(t.push($e(6)),s=jt("m"+e.suffix)):e.suffix.startsWith("7")?(t.push($e(7,1)),s=jt("m"+e.suffix)):s=jt("m")):e.suffix.startsWith("sus2")?t.push($e(2)):e.suffix.startsWith("sus4")&&t.push($e(4)),t.length<=2&&t.push($e(5)),t.length<=2&&t.push($e(8)),s||(s=jt(e.suffix)),{...s,intervals:t}})}function yn(l,e){let t=e.has(4)&&e.has(7),s=e.has(3)&&e.has(7);const n=kn(l);let r="";return t||s||(e.has(3)&&e.has(6)?(r="°",s=!0):e.has(4)&&e.has(8)?(r="+",t=!0):e.has(3)&&e.has(10)?(s=!0,r="7"):e.has(4)&&e.has(10)?(r="7",t=!0):e.has(4)&&e.has(11)?(r="maj7",t=!0):e.has(3)&&e.has(8)?(r="6",s=!0):e.has(4)&&e.has(9)?(r="6",t=!0):e.has(2)?r="sus2":e.has(5)?r="sus4":e.has(7)?r="5":r="?"),{degree:l,roman:s?n.toLowerCase():n,suffix:r,major:t,minor:s,semitones:e}}function wn(l){const e=l.length;return l.map((t,s)=>{const n=t.semitones,r=new Set;for(let a=1;a{const e=l[0],t=l[1].map(ql),s=wn(t);return{names:e,intervals:t,triads:s}})}function En(l){as.length===0&&(as=ms());const e=l.replaceAll(/-|\s/g,"").toLowerCase().trim();return as.find(t=>t.names.find(s=>s.replaceAll(/-|\s/g,"").trim().toLowerCase()===e))}const Sn=/^[a-gA-G][♭Bb#♯sS]*[0-9]?$/,An=/^[0-9]$/,Ze=[{note:"C",semitones:0,sharps:0,flats:0},{note:"C♯",semitones:1,sharps:1,flats:0},{note:"D",semitones:2,sharps:0,flats:0},{note:"E♭",semitones:3,sharps:0,flats:1},{note:"E",semitones:4,sharps:0,flats:0},{note:"F",semitones:5,sharps:0,flats:0},{note:"F♯",semitones:6,sharps:1,flats:0},{note:"G",semitones:7,sharps:0,flats:0},{note:"G♯",semitones:8,sharps:1,flats:0},{note:"A",semitones:9,sharps:0,flats:0},{note:"B♭",semitones:10,sharps:0,flats:1},{note:"B",semitones:11,sharps:0,flats:0}];function Ql(l){return l===12?1:Math.floor((l-12)/12)}function Ye(l){return`${l.note}${Ql(l.midi)}`}function St(l){const t=(l-12)%12;return{...Ze[t],semitones:t,midi:l}}function Nn(l,e=!0,t=!1){if(e&&!Sn.test(l))return{err:`Unrecognized note "${l}"`,code:400};const s=l.trim(),n=s.charAt(0).toUpperCase(),r=Ze.find(h=>h.note.charAt(0)===n&&h.note.length===1);if(!r)return{err:`Unable to find note ${s}`,code:500};const a=s.slice(1).split("").reduce((h,p)=>h+(p.toLowerCase()==="b"||p==="♭"?-1:p==="#"||p==="♯"?1:0),0);let i;if(An.test(s.charAt(s.length-1)))try{i=parseInt(s.charAt(s.length-1),10)}catch{}if(t&&i===void 0)return{err:`No octave provided: ${l}`,code:400};i===void 0&&(i=0);let o=(r.semitones+a)%12;o=o<0?o+12:o;const c=a<0?-a:0,f=a>0?a:0;return{data:{note:`${n}${"♭".repeat(c)}${"♯".repeat(f)}`,semitones:o,midi:12+i*12+o,flats:c,sharps:f}}}function Yl(l){const e=Ze.find(t=>t.note.charAt(0)===l.charAt(0)&&t.note.length===1);if(e){const t=l.slice(1).split("").reduce((n,r)=>n+(r.toLowerCase()==="b"||r==="♭"?-1:r==="#"||r==="♯"?1:0),0),s=(e.semitones+t)%12;return{note:l,semitones:s<0?s+12:s,flats:t<0?-t:0,sharps:t>0?t:0}}}const Tn=/^[a-gA-G][♭b#♯]?$/,rs="ABCDEFG";function In(l,e){return e.map(t=>rs.charAt((rs.indexOf(l)+t.interval_seq-1)%rs.length))}function jn(l,e,t){return t.map((s,n)=>{const r=e[n],a=(l+s.semitones)%12,i=Ze[a],o=i.note.charAt(0);if(or||o==="A"&&r==="G"){let c=1,f=a===0?Ze.length-1:a-c,h=Ze[f];for(;h.note.charAt(0)!==r;)c+=1,f=f===0?Ze.length-1:f-1,h=Ze[f];return{semitones:a,note:h.note+"♯".repeat(c),flats:0,sharps:c+(h.note.includes("♯")?1:0)}}else return{semitones:a,note:i.note,flats:i.flats,sharps:i.sharps}})}function Jt(l,e){if(!Tn.test(l))return{err:`Unknown key: ${l}`,code:400};const t=En(e);if(!t)return{err:`Unknown scale: ${e}`,code:404};const s=`${l.charAt(0).toUpperCase()}${l.charAt(1).replace("b","♭").replace("#","♯")}`,n=Yl(s);if(!n)return{err:`Unable to find root for note: ${s}`,code:404};const r=In(s.charAt(0),t.intervals),a=jn(n.semitones,r,t.intervals),i=new Map(Ze.map(o=>{const c=a.find(f=>f.semitones===o.semitones);return c?[o.semitones,c]:[o.semitones,{...o}]}));return{data:{key:s,scale:t.names[0],names:t.names,...bn(a),intervals:t.intervals.map(o=>({...o})),triads:t.triads.map(o=>({...o})),scaleNotes:a,notesMap:i}}}const cs=new Map;function Dn(l,e){try{const t=e==="local"?window.localStorage:window.sessionStorage;return{data:JSON.parse(t.getItem(l)||"")}}catch(t){return{err:`Failed to retrieve value from storage: ${t}`,code:400}}}function Ln(l,e,t){try{return(t==="local"?window.localStorage:window.sessionStorage).setItem(e,JSON.stringify(l)),{data:void 0}}catch(s){return{err:`Failed to store the value: ${s}`,code:400}}}function ht(l,e){const{key:t,storage:s="local",namespace:n="default"}=e,r=Dn(t,s),a=be(l);"data"in r?l.set(e.deserialize?e.deserialize(r.data):r.data):"err"in r&&(e!=null&&e.debug)&&console.info(r.err);const i=l.subscribe(c=>{const f=Ln(e.serialize?e.serialize(c):c,t,s);"err"in f&&(e!=null&&e.debug)&&console.error(f.err)}),o=cs.get(n);return o?o.push({key:t,storage:s,value:l,defaultValue:a,unsubscribe:i}):cs.set(n,[{key:t,storage:s,value:l,defaultValue:a,unsubscribe:i}]),l}function Pn(l=["default"],e){l.forEach(t=>{var s;(s=cs.get(t))==null||s.forEach(n=>{if(e!=null&&e.cb)e==null||e.cb(n);else try{e!=null&&e.unsubscribe&&n.unsubscribe(),n.value.set(n.defaultValue),(n.storage==="local"?window.localStorage:window.sessionStorage).removeItem(n.key)}catch{}})})}async function Bn(l,e){const t=await fetch(l);if(!t.ok)return{err:t.statusText,code:t.status};const s=await t.arrayBuffer();return{data:await e.decodeAudioData(s)}}async function Gn(l,e){const t=["/a0.mp3","/a1.mp3","/a2.mp3","/a3.mp3","/a4.mp3","/a5.mp3","/a6.mp3","/a7.mp3","/damper.mp3","/Piano Impulse6.mp3"],s=await Promise.all(t.map(r=>Bn(`${l}${r}`,e))),n=[];return s.forEach(r=>{"err"in r?console.error(`Failed to load audio: ${r.err}`):n.push(r.data)}),n}class Mn{constructor(e,t,s,n){this.noteA=t.createBufferSource(),this.noteB=t.createBufferSource(),this.gainA=t.createGain(),this.gainB=t.createGain(),this.gain=t.createGain(),this.biquadFilter=t.createBiquadFilter(),this.biquadFilter.type="lowpass",this.biquadFilter.connect(s),this.gain.connect(this.biquadFilter),this.gainA.connect(this.gain),this.noteA.connect(this.gainA),this.gainB.connect(this.gain),this.noteB.connect(this.gainB),e<90&&(this.damp=t.createBufferSource(),this.damp.buffer=n,this.damp.connect(s))}on(e,t,s,n,r,a,i,o){this.noteA.buffer=e,this.noteA.playbackRate.value=s,this.biquadFilter.frequency.value=r,this.gainA.gain.value=a,this.gain.gain.value=o,t&&(this.noteB.buffer=t,this.noteB.playbackRate.value=n,this.gainB.gain.value=i,this.noteB.start(0)),this.noteA.start(0)}off(e,t,s){var n;this.gain.gain.setTargetAtTime(0,e,t),this.noteA.stop(s),this.noteB.stop(s),(n=this.damp)==null||n.start(0)}}class Vn{constructor(e){return this.bufferlists=[],this.sus=!1,this.sustained=[],this.notes=new Map,this.context=e,this.convolver=e.createConvolver(),this.directGain=e.createGain(),this.convGain=e.createGain(),this.convGainAfter=e.createGain(),this.convGain.connect(this.convolver),this.convolver.connect(this.convGainAfter),this.convGainAfter.connect(e.destination),this.directGain.connect(e.destination),this.directGain.connect(this.convGain),this.directGain.gain.value=.75,this.convGain.gain.value=0,this.convGainAfter.gain.value=0,this}load(e){e.forEach((t,s)=>{this.bufferlists.push(t),s===8?this.damper=t:s===9&&(this.convolver.buffer=t)})}playChord(e,t=80){e.forEach(s=>{this.noteOn(s,t)})}noteOn(e,t=80){if(e<109&&e>20){const s=this.notes.get(e);s&&(s.off(this.context.currentTime,1.1,this.context.currentTime+2),this.sustained.splice(this.sustained.indexOf(e),1));const n=Math.floor((e-21)/12),r=n+1,a=n*12+21,i=2**((e-69)/12)*440,o=t/127;let c=i*(2-(e-21)/50)+3*i*o;e<60&&(c=440*(3-(60-21)/50)+3*i*o);const f=1-(e%12/12+1)/12,h=Math.pow(2,(e-a)/12),p=0,b=0,g=o**1.4,A=new Mn(e,this.context,this.directGain,this.damper);A.on(this.bufferlists[n],this.bufferlists[r],h,p,c,f,b,g),this.notes.set(e,A)}}noteOff(e){if(this.sus)this.sustained.push(e);else{const t=this.notes.get(e);e<90&&t&&t.off(this.context.currentTime+.03,.08,this.context.currentTime+2),this.notes.delete(e)}}sustain(e){if(e==127)this.sus=!0,this.convGain.gain.value=1,this.convGainAfter.gain.value=1;else if(e==0){this.sus=!1,this.convGain.gain.value=0,this.convGainAfter.gain.value=0;for(let t=0;t[St(l[0]),St(l[1])]),Ps=Ge(void 0),et=Ge(void 0),lt=ht(Ge({fixedVelocity:void 0,keyFadeTimeout:1500,useSound:!0,useKeyboard:!0,useHotkeys:!0,useAutoOctave:!0}),{key:"inputs"}),Fe={async openMidi(){return Rt.enable().then(()=>(us.set(!0),Rt.inputs.length>0?(Qt.set(Rt.inputs[0]),{data:Rt.inputs[0]}):{err:"No MIDI device found.",code:400})).catch(l=>({err:l.toString(),code:403}))},disableMidi(){us.set(!1),Qt.set(void 0)},setMidiRange(l){ps.set(l)},setInputValue(l,e){lt.update(t=>({...t,[l]:e})),l==="useSound"&&!e?et.set(void 0):l==="useSound"&&!be(et)&&this.initAudio()},async initAudio(){let l=be(Ps);if(l||(l=new AudioContext,Ps.set(l)),!be(et)){const e=new Vn(l),t=await Gn(`${On}audio`,l);e.load(t),et.set(e)}}};let Xe;on({A:{note:"C",semitones:0,flats:0,sharps:0},W:{note:"C♯",semitones:1,flats:0,sharps:1},S:{note:"D",semitones:2,flats:0,sharps:0},E:{note:"E♭",semitones:3,flats:1,sharps:0},D:{note:"E",semitones:4,flats:0,sharps:0},F:{note:"F",semitones:5,flats:0,sharps:0},T:{note:"F♯",semitones:6,flats:0,sharps:1},G:{note:"G",semitones:7,flats:0,sharps:0},Y:{note:"G♯",semitones:8,flats:0,sharps:1},H:{note:"A",semitones:9,flats:0,sharps:0},U:{note:"B♭",semitones:10,flats:1,sharps:0},J:{note:"B",semitones:11,flats:0,sharps:0},K:{note:"C",semitones:12,flats:0,sharps:0},O:{note:"C♯",semitones:13,flats:0,sharps:1},L:{note:"D",semitones:14,flats:0,sharps:0},P:{note:"E♭",semitones:15,flats:1,sharps:0},Ö:{note:"E",semitones:16,flats:0,sharps:0},Ä:{note:"F",semitones:17,flats:0,sharps:0},Å:{note:"F♯",semitones:18,flats:0,sharps:1}});const kt=Ge(["C","Major"]),Nt=Tt(kt,l=>{const e=Jt(l[0],l[1]);return"data"in e?e.data:{key:l[0],scale:l[1],names:["major"],flats:0,sharps:0,majorSignature:"C",intervals:[],scaleNotes:[],triads:[],notesMap:new Map}}),Bs=Ge([]),vt=Ge([]);function fs(l,e){if(l.length>0){const t=Date.now();let s=t;const n=l.filter(r=>(r.started+e>t&&(s=Math.min(s,r.started)),r.started+e>t));return!Xe&&n.length>0&&(Xe=setTimeout(()=>{Xe=void 0,vt.update(r=>fs(r,e))},e-(t-s)+100)),n}return l}const de={setKey(l){kt.update(e=>[l,e[1]])},setScale(l){kt.update(e=>[e[0],l])},setKeyAndScale(l,e){kt.set([l,e])},setTarget(l=[]){Bs.set(l)},getNote(l){return{...be(Nt).notesMap.get(l%12),midi:l}},pushPlayed(l,e,t){const n={...be(Nt).notesMap.get(l%12),midi:l},r=Date.now(),a=e===void 0?"default":e?"correct":"wrong";if(vt.update(i=>{const o=i.findIndex(c=>c.midi===l);return o>=0&&i.splice(o,1),[...i,{...n,color:a,started:r}]}),!Xe&&t!==-1){const i=t??be(lt).keyFadeTimeout;Xe=setTimeout(()=>{Xe=void 0,vt.update(o=>fs(o,i))},i)}},setPlayed(l,e,t){const s=Date.now(),n=e===void 0?"default":e?"correct":"wrong";if(vt.update(r=>[...l.map(a=>({...a,color:n,started:s}))]),!Xe&&t!==-1){const r=t??be(lt).keyFadeTimeout;Xe=setTimeout(()=>{Xe=void 0,vt.update(a=>fs(a,r))},r)}},clearPlayed(){vt.set([]),clearTimeout(Xe),Xe=void 0},clearScore(l=!1){l&&kt.set(["C","Major"]),Bs.set([]),vt.set([])}};class _s{constructor(e,t,s){this.guesses=[],this.times=[],this.correct=0,this.guessed=0,this.idx=0,this.type=e,this.data=t,this.baseOptions=s;const n=[],{count:r}=s,a=t.map(o=>typeof o=="object"&&o!==null?{...o}:o);let i=s.duplicates;!s.duplicates&&r>a.length&&(console.warn(`Trying to create game with count ${r} larger than available unique values ${t.length}`),i=!0);for(let o=0;o0&&n.push(f[0])}}this.sampled=n,this.timing=performance.now()}get current(){return this.sampled[this.idx]}get latestGuess(){const e=this.sampled[this.idx-1],t=this.guesses[this.idx-1];return{target:e,guessed:t}}get ended(){return this.sampled.length0?l.sharps+e:l.sharps;if(s>0&&n>0){const a=Math.min(s,n);s-=a,n-=a}const r=(l.semitones+e)%12;return{...l,semitones:r<0?r+12:r,note:`${l.note.charAt(0)}${"♭".repeat(s)}${"♯".repeat(n)}`,flats:s,sharps:n,midi:t}}function Kn(l,e,t){const s=[];for(let n=0;np.semitones===a%12),o=r.flats>0,c=r.sharps>0,f=(o?a+1:c?a-1:a)%12,h=o?-1:c?1:0;s.push(Un(i??e.notesMap.get(f),i?0:h,a))}return s}const xn=[{note:"C",semitones:0,sharps:0,flats:0},{note:"C♯",semitones:1,sharps:1,flats:0},{note:"D",semitones:2,sharps:0,flats:0},{note:"E♭",semitones:3,sharps:0,flats:1},{note:"E",semitones:4,sharps:0,flats:0},{note:"F",semitones:5,sharps:0,flats:0},{note:"F♯",semitones:6,sharps:1,flats:0},{note:"G",semitones:7,sharps:0,flats:0},{note:"G♯",semitones:8,sharps:1,flats:0},{note:"A",semitones:9,sharps:0,flats:0},{note:"B♭",semitones:10,sharps:0,flats:1},{note:"B",semitones:11,sharps:0,flats:0}];function $n(l){const t=(l-12)%12;return{...xn[t],semitones:t,midi:l}}function Fn(l){return`${l.note.trim().charAt(0).toUpperCase()}${"♭".repeat(l.flats)}${"♯".repeat(l.sharps)}`}class ut extends _s{constructor(e,t,s){const n=t.range[0],r=t.range[1],a=new Set(t.scale.scaleNotes.map(o=>o.semitones)),i=s.chords.flatMap(o=>{const c=[],f=o.intervals.reduce((h,p)=>p.semitones>h?p.semitones:h,0);for(let h=n;h<=r-f;h+=1)if((!s.onlyScale||a.has(h%12))&&(!o.allowed||o.allowed.has(h%12))){const p=Kn(h,t.scale,o.intervals);c.push({...o,rootNote:p[0].note,chord:`${p[0].note}${o.suffixes[0]}`,notes:p})}return c});super(e,i,t),this.played=new Set,this.opts=s}addPlayedNote(e){this.played.add(e)}guessWrittenChord(e){const t={chord:`${Fn(e)}${e.chord.toLowerCase()}`,notes:[]},s=this.current.chord===t.chord;return this.addGuessed(t,s)}guess(){const e=Array.from(this.played.values()).map(n=>$n(n)).sort((n,r)=>n.midi-r.midi);this.played.clear();const t={chord:"",notes:e},s=this.current.notes.every(n=>e.find(r=>r.midi%12===n.midi%12));return this.addGuessed(t,s)}}const Rn={major:{C:{num:0},F:{acc:"b",num:1},Bb:{acc:"b",num:2},Eb:{acc:"b",num:3},Ab:{acc:"b",num:4},Db:{acc:"b",num:5},Gb:{acc:"b",num:6},Cb:{acc:"b",num:7},G:{acc:"#",num:1},D:{acc:"#",num:2},A:{acc:"#",num:3},E:{acc:"#",num:4},B:{acc:"#",num:5},"F#":{acc:"#",num:6},"C#":{acc:"#",num:7}},minor:{A:{num:0},D:{acc:"b",num:1},G:{acc:"b",num:2},C:{acc:"b",num:3},F:{acc:"b",num:4},Bb:{acc:"b",num:5},Eb:{acc:"b",num:6},Ab:{acc:"b",num:7},E:{acc:"#",num:1},B:{acc:"#",num:2},"F#":{acc:"#",num:3},"C#":{acc:"#",num:4},"G#":{acc:"#",num:5},"D#":{acc:"#",num:6},"A#":{acc:"#",num:7}}};class Dt extends _s{constructor(e,t){const s=e==="keys-major"?"major":"minor";super(e,Object.keys(Rn[s]),t)}guess(e){const t=this.current===e;return this.addGuessed(e,t)}}class At extends _s{constructor(e,t){const s=t.range[0],n=t.range[1];super(e,Array.from(new Array(n-s+1)).map((r,a)=>s+a),t)}guess(e){const t=this.current===e;return this.addGuessed(e,t)}}const Xl={count:10,duplicates:!0,autoplay:!0,waitSeconds:3},gt=Ge("waiting"),ft=ht(Ge(Xl),{key:"game-options"}),bt=Ge(void 0),vs=Ge(Wl().map(l=>({...l,selected:!0}))),ke={play(...[l,e]){var o,c,f;let t;const s=be(Nt),n=be(ps),r=be(ft),a={scale:s,range:n,duplicates:r.duplicates,count:r.count};let i=[s.key,s.scale];if(l==="notes")t=new At(l,a),de.setTarget([de.getNote(t.current)]),(o=be(et))==null||o.noteOn(t.current);else if(l==="pitches")t=new At(l,a),de.setTarget(),Fe.setInputValue("useSound",!0),(c=be(et))==null||c.noteOn(t.current);else if(l==="keys-major"||l=="keys-minor")t=new Dt(l,a),i=[t.current,l==="keys-major"?"major":"minor"];else if(l==="chords-play"||l==="chords-write")t=new ut(l,a,e);else if(l==="chords-diatonic"){const h=Jl(s.triads).map((p,b)=>({...p,allowed:new Set([s.scaleNotes[b].semitones])}));t=new ut(l,a,{chords:h})}else throw Error("Unknown game type: "+l);return typeof t.current!="number"&&typeof t.current!="string"&&((f=be(et))==null||f.playChord(t.current.notes.map(h=>h.midi)),de.setTarget(t.current.notes)),de.setKeyAndScale(i[0],i[1]),de.clearPlayed(),gt.set("waiting"),bt.set(t),t},updateState(l){gt.set(l)},setOptionValue(l,e){ft.update(t=>({...t,[l]:e}))},toggleChords(l){vs.update(e=>e.map(t=>({...t,selected:l(t)})))},nextGuess(){var e,t;const l=be(bt);l!=null&&l.ended?gt.set("ended"):l instanceof At?(l.type==="notes"?de.setTarget([de.getNote(l.current)]):de.setTarget(),de.clearPlayed(),(e=be(et))==null||e.noteOn(l.current),ke.updateState("waiting"),l.startTime()):l instanceof ut?(de.setTarget(l.current.notes),de.clearPlayed(),(t=be(et))==null||t.playChord(l==null?void 0:l.current.notes.map(s=>s.midi)),gt.set("waiting"),l.startTime()):l instanceof Dt&&(de.setKey(l.current),gt.set("waiting"),l.startTime())},clearGame(l=!1){const e=be(bt);e&&de.setKeyAndScale(e.baseOptions.scale.key,e.baseOptions.scale.scale),l&&ft.set(Xl),bt.set(void 0),gt.set("waiting"),de.clearScore()}};function Gs(l,e,t){const s=l.slice();return s[25]=e[t],s[27]=t,s}function Ms(l,e,t){const s=l.slice();return s[30]=e[t],s}function Vs(l,e,t){const s=l.slice();return s[8]=e[t],s}function Os(l,e,t){const s=l.slice();return s[25]=e[t],s[27]=t,s}function Us(l,e,t){const s=l.slice();return s[30]=e[t],s}function Ks(l,e,t){const s=l.slice();return s[8]=e[t],s}function Hn(l){let e,t=se(l[25].intervals),s=[];for(let n=0;n0?zn:Hn}let I=w(l),N=I(l);return{c(){e=_("li"),t=_("button"),s=_("span"),me(n.$$.fragment),r=L(),a=_("div"),o=J(i),c=L(),f=_("li"),N.c(),p=L(),b=_("li"),A=J(g),this.h()},l(j){e=v(j,"LI",{});var O=T(e);t=v(O,"BUTTON",{class:!0});var C=T(t);s=v(C,"SPAN",{class:!0});var V=T(s);pe(n.$$.fragment,V),V.forEach(m),r=P(C),a=v(C,"DIV",{class:!0});var E=T(a);o=Q(E,i),E.forEach(m),C.forEach(m),O.forEach(m),c=P(j),f=v(j,"LI",{class:!0,title:!0});var y=T(f);N.l(y),y.forEach(m),p=P(j),b=v(j,"LI",{class:!0});var S=T(b);A=Q(S,g),S.forEach(m),this.h()},h(){d(s,"class","px-1 py-1 rounded"),q(s,"text-green-500",l[25].selected),q(s,"text-gray-400",!l[25].selected),d(a,"class","ml-1 px-1 w-full bg-gray-200 svelte-1j99daw"),d(t,"class","flex items-center justify-center w-full select-btn svelte-1j99daw"),q(t,"hidden",l[7]),d(f,"class","intervals svelte-1j99daw"),d(f,"title",h=l[25].intervals.map(Ws).join("-")),d(b,"class","text-xs")},m(j,O){K(j,e,O),u(e,t),u(t,s),_e(n,s,null),u(t,r),u(t,a),u(a,o),K(j,c,O),K(j,f,O),N.m(f,null),K(j,p,O),K(j,b,O),u(b,A),k=!0,D||(G=R(t,"click",B),D=!0)},p(j,O){l=j;const C={};O[0]&64&&(C.icon=l[25].selected?qt:Wt),n.$set(C),(!k||O[0]&64)&&q(s,"text-green-500",l[25].selected),(!k||O[0]&64)&&q(s,"text-gray-400",!l[25].selected),(!k||O[0]&64)&&i!==(i=l[25].suffixes[0]+"")&&ae(o,i),(!k||O[0]&128)&&q(t,"hidden",l[7]),I===(I=w(l))&&N?N.p(l,O):(N.d(1),N=I(l),N&&(N.c(),N.m(f,null))),(!k||O[0]&64&&h!==(h=l[25].intervals.map(Ws).join("-")))&&d(f,"title",h),(!k||O[0]&64)&&g!==(g=l[25].name+"")&&ae(A,g)},i(j){k||(F(n.$$.fragment,j),k=!0)},o(j){W(n.$$.fragment,j),k=!1},d(j){j&&(m(e),m(c),m(f),m(p),m(b)),ve(n),N.d(),D=!1,G()}}}function qn(l){let e,t=se(l[25].intervals),s=[];for(let n=0;n0?Wn:qn}let I=w(l),N=I(l);return{c(){e=_("li"),t=_("button"),s=_("span"),me(n.$$.fragment),r=L(),a=_("div"),o=J(i),c=L(),f=_("li"),N.c(),p=L(),b=_("li"),A=J(g),this.h()},l(j){e=v(j,"LI",{});var O=T(e);t=v(O,"BUTTON",{class:!0});var C=T(t);s=v(C,"SPAN",{class:!0});var V=T(s);pe(n.$$.fragment,V),V.forEach(m),r=P(C),a=v(C,"DIV",{class:!0});var E=T(a);o=Q(E,i),E.forEach(m),C.forEach(m),O.forEach(m),c=P(j),f=v(j,"LI",{class:!0,title:!0});var y=T(f);N.l(y),y.forEach(m),p=P(j),b=v(j,"LI",{class:!0});var S=T(b);A=Q(S,g),S.forEach(m),this.h()},h(){d(s,"class","px-1 py-1 rounded"),q(s,"text-green-500",l[25].selected),q(s,"text-gray-400",!l[25].selected),d(a,"class","ml-1 px-1 w-full bg-gray-200 svelte-1j99daw"),d(t,"class","flex items-center justify-center w-full select-btn svelte-1j99daw"),q(t,"hidden",l[7]),d(f,"class","intervals svelte-1j99daw"),d(f,"title",h=l[25].intervals.map(Js).join("-")),d(b,"class","text-xs")},m(j,O){K(j,e,O),u(e,t),u(t,s),_e(n,s,null),u(t,r),u(t,a),u(a,o),K(j,c,O),K(j,f,O),N.m(f,null),K(j,p,O),K(j,b,O),u(b,A),k=!0,D||(G=R(t,"click",B),D=!0)},p(j,O){l=j;const C={};O[0]&32&&(C.icon=l[25].selected?qt:Wt),n.$set(C),(!k||O[0]&32)&&q(s,"text-green-500",l[25].selected),(!k||O[0]&32)&&q(s,"text-gray-400",!l[25].selected),(!k||O[0]&32)&&i!==(i=l[25].suffixes[0]+"")&&ae(o,i),(!k||O[0]&128)&&q(t,"hidden",l[7]),I===(I=w(l))&&N?N.p(l,O):(N.d(1),N=I(l),N&&(N.c(),N.m(f,null))),(!k||O[0]&32&&h!==(h=l[25].intervals.map(Js).join("-")))&&d(f,"title",h),(!k||O[0]&32)&&g!==(g=l[25].name+"")&&ae(A,g)},i(j){k||(F(n.$$.fragment,j),k=!0)},o(j){W(n.$$.fragment,j),k=!1},d(j){j&&(m(e),m(c),m(f),m(p),m(b)),ve(n),N.d(),D=!1,G()}}}function Jn(l){let e,t,s,n,r="Chords",a,i,o,c,f,h,p,b,g,A,k,D,G,B,w,I,N,j="Key",O,C,V,E,y="Scale",S,M,U,$,z="Note",le,te,fe,ce,Te,xe,Me,ge,qe,Ke;c=new at({props:{icon:mn,width:20}}),p=new at({props:{icon:pn,width:16}}),A=new at({props:{icon:l[4]?Ns:Ts,width:16}}),G=new at({props:{icon:Hl,width:16}});let Ie=se(l[6]),re=[];for(let x=0;xW(re[x],1,1,()=>{re[x]=null});let he=se(l[5]),Y=[];for(let x=0;xW(Y[x],1,1,()=>{Y[x]=null});return{c(){e=_("div"),t=_("fieldset"),s=_("legend"),n=_("button"),n.textContent=r,a=L(),i=_("div"),o=_("button"),me(c.$$.fragment),f=L(),h=_("button"),me(p.$$.fragment),b=L(),g=_("button"),me(A.$$.fragment),k=L(),D=_("button"),me(G.$$.fragment),B=L(),w=_("div"),I=_("div"),N=_("label"),N.textContent=j,O=L(),C=_("input"),V=L(),E=_("label"),E.textContent=y,S=L(),M=_("input"),U=L(),$=_("label"),$.textContent=z,le=L(),te=_("input"),fe=L(),ce=_("ul");for(let x=0;xl.interval,Js=l=>l.interval;function Qn(l,e,t){let s,n,r,a,i,o;ie(l,vs,E=>t(20,i=E));let c="C",f=Jt(c,qs),h="",p,b=[],g=[];const A=ht(Ge(!0),{key:"chords-hidden"});ie(l,A,E=>t(7,o=E));function k(){A.update(E=>!E)}function D(){const E=p&&60+p.semitones;if("err"in f||!E)t(2,b=[]),t(3,g=[]);else{const y=f.data;t(2,b=n.map(S=>os(E,y,S.intervals))),t(3,g=r.map(S=>os(E,y,S.intervals)))}}function G({currentTarget:{value:E}}){t(0,c=`${E.charAt(0).toUpperCase()}${E.charAt(1).toLowerCase()}`),f=Jt(c,qs),D()}function B({currentTarget:{value:E}}){t(1,h=`${E.charAt(0).toUpperCase()}${E.charAt(1).toLowerCase()}`),t(8,p=Yl(h)),D()}function w(E){ke.toggleChords(y=>y.name===E.name?!y.selected:y.selected)}function I(){const E=S=>S.suffixes[0]==="maj"||S.suffixes[0]==="m",y=i.filter(E).every(S=>S.selected);ke.toggleChords(S=>E(S)?!y:S.selected)}function N(){const E=S=>S.suffixes[0]==="maj7"||S.suffixes[0]==="m7"||S.suffixes[0]==="7"||S.suffixes[0]==="dim7"||S.suffixes[0]==="aug7",y=i.filter(E).every(S=>S.selected);ke.toggleChords(S=>E(S)?!y:S.selected)}function j(){ke.toggleChords(E=>!a)}function O(){ke.toggleChords(E=>!0)}const C=E=>w(E),V=E=>w(E);return l.$$set=E=>{t(18,e=ye(ye({},e),we(E)))},l.$$.update=()=>{l.$$.dirty[0]&1048576&&t(19,s=i),l.$$.dirty[0]&524288&&t(6,n=s.filter((E,y)=>yy>=s.length/2)),l.$$.dirty[0]&524288&&t(4,a=s.every(E=>E.selected))},e=we(e),[c,h,b,g,a,r,n,o,p,A,k,G,B,w,I,N,j,O,e,s,i,C,V]}class Yn extends Re{constructor(e){super(),He(this,e,Qn,Jn,ze,{},null,[-1,-1])}}function Qs(l,e,t){const s=l.slice();return s[10]=e[t],s}function Xn(l){let e;return{c(){e=J(" ")},l(t){e=Q(t," ")},m(t,s){K(t,e,s)},p:ue,d(t){t&&m(e)}}}function Zn(l){let e,t,s="Played:",n,r=se(l[2]),a=[];for(let i=0;i0?Zn:Xn}let a=r(l),i=a(l);function o(h,p){return h[0]&&h[1]==="ended"?ia:h[0]&&h[3].autoplay?ra:h[0]?aa:na}let c=o(l),f=c(l);return{c(){e=_("div"),i.c(),s=L(),n=_("div"),f.c(),this.h()},l(h){e=v(h,"DIV",{class:!0});var p=T(e);i.l(p),p.forEach(m),s=P(h),n=v(h,"DIV",{class:!0});var b=T(n);f.l(b),b.forEach(m),this.h()},h(){d(e,"class",t=Ae(`${l[8].class||""} min-h-[3.25rem]`)+" svelte-1lxfpqs"),d(n,"class","mt-2 h-8")},m(h,p){K(h,e,p),i.m(e,null),K(h,s,p),K(h,n,p),f.m(n,null)},p(h,[p]){a===(a=r(h))&&i?i.p(h,p):(i.d(1),i=a(h),i&&(i.c(),i.m(e,null))),p&256&&t!==(t=Ae(`${h[8].class||""} min-h-[3.25rem]`)+" svelte-1lxfpqs")&&d(e,"class",t),c===(c=o(h))&&f?f.p(h,p):(f.d(1),f=c(h),f&&(f.c(),f.m(n,null)))},i:ue,o:ue,d(h){h&&(m(e),m(s),m(n)),i.d(),f.d()}}}const Xs=l=>l.note,Zs=l=>l.note;function ca(l,e,t){let s,n,r;ie(l,gt,p=>t(1,s=p)),ie(l,vt,p=>t(2,n=p)),ie(l,ft,p=>t(3,r=p));let{game:a}=e;function i(){ke.nextGuess()}function o(){ke.setOptionValue("autoplay",!0),ke.nextGuess()}function c(){a instanceof ut?ke.play(a.type,a.opts):a&&ke.play(a.type,void 0)}function f(){ke.clearGame()}const h=()=>ke.setOptionValue("autoplay",!1);return l.$$set=p=>{t(8,e=ye(ye({},e),we(p))),"game"in p&&t(0,a=p.game)},e=we(e),[a,s,n,r,i,o,c,f,e,h]}class ua extends Re{constructor(e){super(),He(this,e,ca,oa,ze,{game:0})}}function el(l,e,t){const s=l.slice();return s[14]=e[t].key,s[15]=e[t].value,s[16]=e[t].icon,s[18]=t,s}const fa=l=>({}),tl=l=>({}),ha=l=>({}),sl=l=>({});function ll(l){let e,t,s,n,r,a,i,o,c,f;const h=l[11].header,p=Kl(h,l,l[10],tl);let b=se(l[0]),g=[];for(let k=0;kW(g[k],1,1,()=>{g[k]=null});return{c(){e=_("button"),s=L(),n=_("ul"),r=_("li"),p&&p.c(),a=L();for(let k=0;k{o&&(t||(t=Ft(e,Ss,{duration:Ht},!0)),t.run(1))}),F(p,k);for(let D=0;D{o&&(i||(i=Ft(n,As,{duration:Ht},!0)),i.run(1))}),o=!0}},o(k){k&&(t||(t=Ft(e,Ss,{duration:Ht},!1)),t.run(0)),W(p,k),g=g.filter(Boolean);for(let D=0;D{g[B]=null}),st(),n=g[s],n?n.p(l,G):(n=g[s]=b[s](l),n.c()),F(n,1),n.m(t,r)),(!f||G&1)&&i!==(i=l[15]+"")&&ae(o,i),(!f||G&5)&&q(t,"selected",l[14]===l[2])},i(D){f||(F(n),f=!0)},o(D){W(n),f=!1},d(D){D&&m(e),g[s].d(),h=!1,p()}}}function pa(l){let e,t,s,n,r,a,i,o;const c=l[11].value,f=Kl(c,l,l[10],sl);let h=l[5]&&ll(l);return{c(){e=_("div"),t=_("button"),f&&f.c(),r=L(),h&&h.c(),this.h()},l(p){e=v(p,"DIV",{class:!0,id:!0});var b=T(e);t=v(b,"BUTTON",{class:!0,title:!0});var g=T(t);f&&f.l(g),g.forEach(m),r=P(b),h&&h.l(b),b.forEach(m),this.h()},h(){d(t,"class",s=Ae(`${l[8].class||""} open-btn w-full text-justify text-sm rounded hover:bg-[#eee]`)+" svelte-h65upg"),d(t,"title",n=l[8].title||""),q(t,"disabled",l[3]),q(t,"open",l[5]),d(e,"class","relative"),d(e,"id",l[1])},m(p,b){K(p,e,b),u(e,t),f&&f.m(t,null),u(e,r),h&&h.m(e,null),l[13](e),a=!0,i||(o=R(t,"click",l[6]),i=!0)},p(p,[b]){f&&f.p&&(!a||b&1024)&&xl(f,c,p,p[10],a?Fl(c,p[10],b,ha):$l(p[10]),sl),(!a||b&256&&s!==(s=Ae(`${p[8].class||""} open-btn w-full text-justify text-sm rounded hover:bg-[#eee]`)+" svelte-h65upg"))&&d(t,"class",s),(!a||b&256&&n!==(n=p[8].title||""))&&d(t,"title",n),(!a||b&264)&&q(t,"disabled",p[3]),(!a||b&288)&&q(t,"open",p[5]),p[5]?h?(h.p(p,b),b&32&&F(h,1)):(h=ll(p),h.c(),F(h,1),h.m(e,null)):h&&(tt(),W(h,1,1,()=>{h=null}),st()),(!a||b&2)&&d(e,"id",p[1])},i(p){a||(F(f,p),F(h),a=!0)},o(p){W(f,p),W(h),a=!1},d(p){p&&m(e),f&&f.d(p),h&&h.d(),l[13](null),i=!1,o()}}}const Ht=400;function _a(l,e,t){let{$$slots:s={},$$scope:n}=e,{options:r,id:a=void 0,selected:i=void 0,disabled:o=void 0,onSelect:c}=e,f,h=!1;function p(){o||t(5,h=!h)}function b(k){t(5,h=c(k))}const g=k=>b(k);function A(k){cn[k?"unshift":"push"](()=>{f=k,t(4,f)})}return l.$$set=k=>{t(8,e=ye(ye({},e),we(k))),"options"in k&&t(0,r=k.options),"id"in k&&t(1,a=k.id),"selected"in k&&t(2,i=k.selected),"disabled"in k&&t(3,o=k.disabled),"onSelect"in k&&t(9,c=k.onSelect),"$$scope"in k&&t(10,n=k.$$scope)},e=we(e),[r,a,i,o,f,h,p,b,e,c,n,s,g,A]}class Zl extends Re{constructor(e){super(),He(this,e,_a,pa,ze,{options:0,id:1,selected:2,disabled:3,onSelect:9})}}function al(l){let e;return{c(){e=_("li"),this.h()},l(t){e=v(t,"LI",{class:!0}),T(e).forEach(m),this.h()},h(){d(e,"class","m-[0.175rem] mr-0")},m(t,s){K(t,e,s)},d(t){t&&m(e)}}}function rl(l){let e;return{c(){e=_("div"),this.h()},l(t){e=v(t,"DIV",{class:!0}),T(e).forEach(m),this.h()},h(){d(e,"class","enter-part bg-[#ececf1] rounded-l absolute top-[-2px] left-[-12px] w-[13px] h-[2.8rem] svelte-jvhfju")},m(t,s){K(t,e,s)},d(t){t&&m(e)}}}function il(l){let e,t=l[0].note.note+"",s;return{c(){e=_("div"),s=J(t),this.h()},l(n){e=v(n,"DIV",{class:!0});var r=T(e);s=Q(r,t),r.forEach(m),this.h()},h(){d(e,"class","absolute top-0 left-0")},m(n,r){K(n,e,r),u(e,s)},p(n,r){r&1&&t!==(t=n[0].note.note+"")&&ae(s,t)},d(n){n&&m(e)}}}function va(l){let e,t,s,n,r,a,i=l[0].key+"",o,c,f,h,p=l[0].key==="{enter}"&&al(),b=l[0].key==="{enter}"&&rl(),g=l[0].note&&il(l);return{c(){p&&p.c(),e=L(),t=_("li"),s=_("button"),b&&b.c(),n=L(),g&&g.c(),r=L(),a=_("div"),o=J(i),this.h()},l(A){p&&p.l(A),e=P(A),t=v(A,"LI",{class:!0});var k=T(t);s=v(k,"BUTTON",{class:!0});var D=T(s);b&&b.l(D),n=P(D),g&&g.l(D),r=P(D),a=v(D,"DIV",{});var G=T(a);o=Q(G,i),G.forEach(m),D.forEach(m),k.forEach(m),this.h()},h(){d(s,"class","relative w-full h-full shadow bg-[#ececf1] rounded flex items-center justify-center svelte-jvhfju"),d(t,"class",c=Ae(`${l[1].class||""} m-[0.175rem] ${ol(l[0].size)}`)+" svelte-jvhfju"),q(t,"enter",l[0].key==="{enter}")},m(A,k){p&&p.m(A,k),K(A,e,k),K(A,t,k),u(t,s),b&&b.m(s,null),u(s,n),g&&g.m(s,null),u(s,r),u(s,a),u(a,o),f||(h=R(s,"click",l[2]),f=!0)},p(A,[k]){A[0].key==="{enter}"?p||(p=al(),p.c(),p.m(e.parentNode,e)):p&&(p.d(1),p=null),A[0].key==="{enter}"?b||(b=rl(),b.c(),b.m(s,n)):b&&(b.d(1),b=null),A[0].note?g?g.p(A,k):(g=il(A),g.c(),g.m(s,r)):g&&(g.d(1),g=null),k&1&&i!==(i=A[0].key+"")&&ae(o,i),k&3&&c!==(c=Ae(`${A[1].class||""} m-[0.175rem] ${ol(A[0].size)}`)+" svelte-jvhfju")&&d(t,"class",c),k&3&&q(t,"enter",A[0].key==="{enter}")},i:ue,o:ue,d(A){A&&(m(e),m(t)),p&&p.d(A),b&&b.d(),g&&g.d(),f=!1,h()}}}function ol(l){return l&&Number.isInteger(l)?`size-${l}`:l?`size-${Math.floor(l)}-${Math.floor(l*10)-Math.floor(l)*10}`:"size-1"}function ga(l,e,t){let{value:s}=e;function n(r){ds.call(this,l,r)}return l.$$set=r=>{t(1,e=ye(ye({},e),we(r))),"value"in r&&t(0,s=r.value)},e=we(e),[s,e,n]}class ba extends Re{constructor(e){super(),He(this,e,ga,va,ze,{value:0})}}const ka={ar:"arabic",hye:"armenianEastern",hyw:"armenianWestern",as:"assamese",balochi:"balochi",be:"belarusian",bn:"bengali",pt:"brazilian",my:"burmese",zh:"chinese",cs:"czech",en:"english",fa:"farsi",fr:"french",ka:"georgian",de:"german",gilaki:"gilaki",el:"greek",he:"hebrew",hi:"hindi",hu:"hungarian",it:"italian",ja:"japanese",kn:"kannada",ko:"korean",ku:"kurdish",mk:"macedonian",ml:"malayalam",yo:"nigerian",nko:"nko",no:"norwegian",odia:"odia",pl:"polish",pa:"punjabi",ru:"russian",ru2:"russianOld",sd:"sindhi",es:"spanish",sv:"swedish",te:"telugu",th:"thai",tr:"turkish",uk:"ukrainian",ur:"urdu",ur2:"urduStandard",ug:"uyghur"},ya={layout:{default:["§ 1 2 3 4 5 6 7 8 9 0 + ´ {bksp}","{tab} q w e r t y u i o p å ¨ {enter}","{lock} a s d f g h j k l ö ä '","{shift} < z x c v b n m , . - {shift}",".com @ {space}"],shift:['° ! " # $ % & / ( ) = ? ` {bksp}',"{tab} Q W E R T Y U I O P Å ^","{lock} A S D F G H J K L Ö Ä * {enter}","{shift} > Z X C V B N M ; : _ {shift}",".com @ {space}"]}},wa=[["IntlBackslash","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Digit0","Minus","Equal","Backspace"],["Tab","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Enter"],["Capslock","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","Backslash"],["ShiftLeft","Backquote","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","ShiftRight"]];function Ca(l,e){return l[1].forEach((t,s)=>{let n;s===2?n={...e[1]}:s===3?n={...e[3]}:s===5?n={...e[6]}:s===6?n={...e[8]}:s===7?n={...e[10]}:s===9?(n={...e[1]},n.semitones+=12):s===10&&(n={...e[3]},n.semitones+=12),l[1][s].note=n}),l[2].forEach((t,s)=>{let n;s===1?n={...e[0]}:s===2?n={...e[2]}:s===3?n={...e[4]}:s===4?n={...e[5]}:s===5?n={...e[7]}:s===6?n={...e[9]}:s===7?n={...e[11]}:s===8?(n={...e[0]},n.semitones+=12):s===9?(n={...e[2]},n.semitones+=12):s===10?(n={...e[4]},n.semitones+=12):s===11?(n={...e[5]},n.semitones+=12):s===12&&(n={...e[7]},n.semitones+=12),l[2][s].note=n}),l}class Ea{constructor(e){this.language="en",this.rows=[[],[],[],[]],this.opts={hotkeydRows:"middle-row",layoutName:"en",...e},this.setLayout(ya)}setOptions(e){this.opts={...this.opts,...e}}setLayout(e){const t=[[],[],[],[]];e.layout.default.forEach((s,n)=>{s.split(" ").forEach((r,a)=>{n<4&&t[n].push({key:r,code:wa[n][a]})})}),this.rows=t}setNotes(e){if(this.opts.hotkeydRows==="middle-row")this.rows=Ca(this.rows,e);else throw Error("not implemented")}}const gs=/^[a-gA-G]$/,en=/^[♭Bb#♯sS]$/,Sa=/^[0-9]$/;let H="",ct;const tn=ht(Ge({layoutName:"American",hotkeydRows:"middle-row"}),{key:"keyboard-options"}),sn=Tt([Nt,tn],([l,e])=>{const t=new Ea(e);return t.setNotes(Array.from(l.notesMap.values())),t}),Aa=Tt(sn,l=>l.rows.map(e=>e.map((t,s)=>{let n;return t.key==="{bksp}"?n=2:t.key==="{tab}"?n=1.5:t.key==="{enter}"?n=2:t.key==="{lock}"?n=1.75:t.key==="{shift}"&&s===0?n=1.5:t.key==="{shift}"&&(n=2.5),n?{...t,size:n}:t}))),Xt=Tt(sn,l=>new Map([...l.rows[0].map(e=>[e.code,e]),...l.rows[1].map(e=>[e.code,e]),...l.rows[2].map(e=>[e.code,e]),...l.rows[3].map(e=>[e.code,e])])),Na=Tt(Xt,l=>Array.from(l.values()).map(e=>e.note).filter(e=>e!==void 0));function Ta(l,e){const{useHotkeys:t}=be(lt),s=be(Xt).get(l);if(t&&H.length===0&&s&&s.note)return H="",{e:"guessed-key",data:s.note.note};if(!t&&H.length===0&&gs.test(e))return H+=e.toUpperCase(),{e:"string",data:H};if(!t&&H.length>0&&en.test(e))return e==="b"||e==="B"?H+="♭":H+="♯",{e:"string",data:H};if(l==="Backspace"&&H.length>0)return H=H.slice(0,-1),{e:"string",data:H};if(l==="Enter"&&H.length>0){const n=H;return H="",{e:"guessed-key",data:n}}return!1}function Ia(l,e,t){if(l==="Enter"&&H.length>0){const s={note:"",flats:0,sharps:0,chord:""};for(let n=0;n0?s.chord+=H[n].toLowerCase():H[n]==="♭"?(s.note+=H[n],s.flats+=1):H[n]==="♯"?(s.note+=H[n],s.sharps+=1):s.chord+=H[n].toLowerCase();return H="",{e:"guessed-chord",data:s}}else{if(l==="Backspace"&&H.length>0)return H=H.slice(0,-1),{e:"string",data:H};if(H.length===0&&gs.test(e))return H+=e.toUpperCase(),{e:"string",data:H};if(H.length>0&&e.length===1)return H.length===1&&(e==="b"||e==="B")?H+="♭":H.length===1&&e==="#"?H+="♯":H+=e,{e:"string",data:H}}return!1}function ja(l,e,t){const{useAutoOctave:s,useHotkeys:n}=be(lt);let r;const i=be(Xt).get(l),o=(i==null?void 0:i.key)||"";let c=!1;if(!ct&&n&&(i!=null&&i.note)?(ct=i.note,s&&(r=Ql(be(Yt)[0].midi)),c="note"):!n&&H.length===0&&gs.test(e)?(H+=e.toUpperCase(),c="input"):!n&&H.length>0&&en.test(e)&&(e==="b"||e==="B"?H+="♭":H+="♯",c="input"),Sa.test(o))try{r=parseInt(o)}catch{}if(ct&&r!==void 0){const f=ct.semitones+(r+1+(t?1:0))*12;return ct=void 0,{e:"guessed-note",data:f}}else if(H&&r!==void 0){const f=ln.findNote(H),h=f?f.semitones+(r+1)*12:void 0;return ct=void 0,H="",h!==void 0?{e:"guessed-note",data:h}:{e:"string",data:H}}else if(l==="Backspace"&&(ct||H.length>0))return ct=void 0,H=H.slice(0,-1),{e:"string",data:H};return c==="note"?{e:"note",data:ct}:c==="input"?{e:"string",data:H}:!1}const ln={setLayout(l){},findNote(l){return be(Na).find(e=>{if(e.note.charAt(0)===l.charAt(0)){const t=l.slice(1).split("").reduce((s,n)=>s+(n.toLowerCase()==="b"||n==="♭"?-1:n.toLowerCase()==="s"||n==="#"||n==="♯"?1:0),0);return t>0?e.sharps===t:t<0?e.flats===t*-1:e.flats===0&&e.sharps===0}})},handleInput(l,e,t=!1){const s=be(bt);return s instanceof Dt?Ta(l,e.toUpperCase()):s instanceof ut&&s.type==="chords-write"?Ia(l,e):be(lt).useKeyboard?ja(l,e.toUpperCase(),t):!1}};function cl(l,e,t){const s=l.slice();return s[9]=e[t],s[11]=t,s}function ul(l,e,t){const s=l.slice();return s[12]=e[t],s}function Da(l){let e,t=l[2].layoutName+"",s;return{c(){e=_("div"),s=J(t),this.h()},l(n){e=v(n,"DIV",{slot:!0});var r=T(e);s=Q(r,t),r.forEach(m),this.h()},h(){d(e,"slot","value")},m(n,r){K(n,e,r),u(e,s)},p(n,r){r&4&&t!==(t=n[2].layoutName+"")&&ae(s,t)},d(n){n&&m(e)}}}function fl(l){let e,t;return e=new ba({props:{value:l[12]}}),{c(){me(e.$$.fragment)},l(s){pe(e.$$.fragment,s)},m(s,n){_e(e,s,n),t=!0},p(s,n){const r={};n&8&&(r.value=s[12]),e.$set(r)},i(s){t||(F(e.$$.fragment,s),t=!0)},o(s){W(e.$$.fragment,s),t=!1},d(s){ve(e,s)}}}function hl(l){let e,t,s,n,r=se(l[9]),a=[];for(let o=0;oW(a[o],1,1,()=>{a[o]=null});return{c(){e=_("li"),t=L();for(let o=0;oW(y[M],1,1,()=>{y[M]=null});return{c(){e=_("div"),t=_("div"),s=_("div"),n=_("label"),n.textContent=r,a=L(),me(i.$$.fragment),o=L(),c=_("div"),f=_("label"),f.textContent=h,p=L(),b=_("input"),g=L(),A=_("div"),k=_("label"),k.textContent=D,G=L(),B=_("input"),w=L(),I=_("div"),N=_("ul");for(let M=0;Mt(8,s=h)),ie(l,tn,h=>t(2,n=h)),ie(l,Aa,h=>t(3,r=h)),Rl(()=>{console.log(s)});let a=!0,i=!1;const o=Object.entries(ka).map(([h,p])=>({key:h,value:p}));function c(){a=this.checked,t(0,a)}function f(){i=this.checked,t(1,i)}return l.$$set=h=>{t(5,e=ye(ye({},e),we(h)))},e=we(e),[a,i,n,r,o,e,c,f]}class Ga extends Re{constructor(e){super(),He(this,e,Ba,La,ze,{})}}function dl(l){let e,t;return e=new Ga({props:{class:"mt-4"}}),{c(){me(e.$$.fragment)},l(s){pe(e.$$.fragment,s)},m(s,n){_e(e,s,n),t=!0},i(s){t||(F(e.$$.fragment,s),t=!0)},o(s){W(e.$$.fragment,s),t=!1},d(s){ve(e,s)}}}function Ma(l){let e,t,s,n,r="I/O",a,i,o,c,f="Device",h,p,b,g,A,k,D="Prompt",G,B,w="Disable",I,N,j,O,C="Sound",V,E,y,S,M,U,$="Fixed velocity",z,le,te,fe,ce,Te,xe="Keyboard",Me,ge,qe,Ke,Ie,re,Ne="Hotkeys",he,Y,ne,x,X,oe,ee="Auto-octave",Ce,Pe,nt,We,Ve,je,Ee,It="Set hotkeys",yt,Oe,dt,bs="Fade timeout",Zt,it,es,mt,Lt,ts,pt,ks="Reset all",ss,Pt,Je,ls,ys,Be=l[2]&&dl();return{c(){e=_("div"),t=_("fieldset"),s=_("legend"),n=_("button"),n.textContent=r,a=L(),i=_("div"),o=_("div"),c=_("label"),c.textContent=f,h=L(),p=_("input"),g=L(),A=_("div"),k=_("button"),k.textContent=D,G=L(),B=_("button"),B.textContent=w,I=L(),N=_("div"),j=_("div"),O=_("label"),O.textContent=C,V=L(),E=_("input"),S=L(),M=_("div"),U=_("label"),U.textContent=$,z=L(),le=_("input"),te=L(),fe=_("div"),ce=_("div"),Te=_("label"),Te.textContent=xe,Me=L(),ge=_("input"),Ke=L(),Ie=_("div"),re=_("label"),re.textContent=Ne,he=L(),Y=_("input"),x=L(),X=_("div"),oe=_("label"),oe.textContent=ee,Ce=L(),Pe=_("input"),We=L(),Ve=_("div"),je=_("div"),Ee=_("button"),Ee.textContent=It,yt=L(),Oe=_("div"),dt=_("label"),dt.textContent=bs,Zt=L(),it=_("input"),es=L(),mt=_("div"),Lt=_("div"),ts=L(),pt=_("button"),pt.textContent=ks,ss=L(),Be&&Be.c(),this.h()},l(Se){e=v(Se,"DIV",{class:!0});var Ue=T(e);t=v(Ue,"FIELDSET",{class:!0});var ot=T(t);s=v(ot,"LEGEND",{class:!0});var ws=T(s);n=v(ws,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(n)!=="svelte-1jbbsti"&&(n.textContent=r),ws.forEach(m),a=P(ot),i=v(ot,"DIV",{class:!0});var _t=T(i);o=v(_t,"DIV",{class:!0});var wt=T(o);c=v(wt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(c)!=="svelte-crpa7y"&&(c.textContent=f),h=P(wt),p=v(wt,"INPUT",{class:!0,id:!0}),g=P(wt),A=v(wt,"DIV",{class:!0});var Bt=T(A);k=v(Bt,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(k)!=="svelte-mj6mct"&&(k.textContent=D),G=P(Bt),B=v(Bt,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(B)!=="svelte-1sl6oxh"&&(B.textContent=w),Bt.forEach(m),wt.forEach(m),I=P(_t),N=v(_t,"DIV",{class:!0});var Gt=T(N);j=v(Gt,"DIV",{class:!0});var Mt=T(j);O=v(Mt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(O)!=="svelte-wgxtkw"&&(O.textContent=C),V=P(Mt),E=v(Mt,"INPUT",{class:!0,id:!0,type:!0}),Mt.forEach(m),S=P(Gt),M=v(Gt,"DIV",{class:!0});var Vt=T(M);U=v(Vt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(U)!=="svelte-1tm2bth"&&(U.textContent=$),z=P(Vt),le=v(Vt,"INPUT",{class:!0,id:!0,placeholder:!0}),Vt.forEach(m),Gt.forEach(m),te=P(_t),fe=v(_t,"DIV",{class:!0});var Ct=T(fe);ce=v(Ct,"DIV",{class:!0});var Ot=T(ce);Te=v(Ot,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(Te)!=="svelte-1js269u"&&(Te.textContent=xe),Me=P(Ot),ge=v(Ot,"INPUT",{class:!0,id:!0,type:!0}),Ot.forEach(m),Ke=P(Ct),Ie=v(Ct,"DIV",{class:!0});var Ut=T(Ie);re=v(Ut,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(re)!=="svelte-21h39k"&&(re.textContent=Ne),he=P(Ut),Y=v(Ut,"INPUT",{class:!0,id:!0,type:!0}),Ut.forEach(m),x=P(Ct),X=v(Ct,"DIV",{class:!0});var Kt=T(X);oe=v(Kt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(oe)!=="svelte-33lczu"&&(oe.textContent=ee),Ce=P(Kt),Pe=v(Kt,"INPUT",{class:!0,id:!0,type:!0}),Kt.forEach(m),Ct.forEach(m),We=P(_t),Ve=v(_t,"DIV",{class:!0});var Et=T(Ve);je=v(Et,"DIV",{class:!0});var Cs=T(je);Ee=v(Cs,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(Ee)!=="svelte-1v9okg9"&&(Ee.textContent=It),Cs.forEach(m),yt=P(Et),Oe=v(Et,"DIV",{class:!0});var xt=T(Oe);dt=v(xt,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(dt)!=="svelte-vd5i27"&&(dt.textContent=bs),Zt=P(xt),it=v(xt,"INPUT",{class:!0,id:!0}),xt.forEach(m),es=P(Et),mt=v(Et,"DIV",{class:!0});var $t=T(mt);Lt=v($t,"DIV",{}),T(Lt).forEach(m),ts=P($t),pt=v($t,"BUTTON",{class:!0,"data-svelte-h":!0}),Z(pt)!=="svelte-jjt0c3"&&(pt.textContent=ks),$t.forEach(m),Et.forEach(m),_t.forEach(m),ss=P(ot),Be&&Be.l(ot),ot.forEach(m),Ue.forEach(m),this.h()},h(){var Se;d(n,"class","px-1 rounded hover:bg-gray-100"),d(s,"class","text-base"),d(c,"class","font-bold"),d(c,"for","device"),d(p,"class","px-1 my-1 rounded w-50"),d(p,"id","device"),p.disabled=!0,p.value=b=((Se=l[5])==null?void 0:Se.name)??"No device",d(k,"class","btn-sm primary mr-2"),d(B,"class","btn-sm primary"),d(A,"class","flex my-[auto]"),d(o,"class","h-full flex flex-col"),d(O,"class","font-bold"),d(O,"for","sound"),d(E,"class","h-[20px]"),d(E,"id","sound"),d(E,"type","checkbox"),E.checked=y=l[3].useSound,d(j,"class","my-1 flex justify-between mr-12"),d(U,"class","font-bold"),d(U,"for","fixed-velocity"),d(le,"class","h-[20px] w-16"),d(le,"id","fixed-velocity"),d(le,"placeholder","0-127"),d(M,"class","flex justify-between"),d(N,"class","flex flex-col h-full"),d(Te,"class","font-bold"),d(Te,"for","keyboard"),d(ge,"class","h-[20px]"),d(ge,"id","keyboard"),d(ge,"type","checkbox"),ge.checked=qe=l[3].useKeyboard,d(ce,"class","my-1 flex justify-between mr-12"),d(re,"class","font-bold"),d(re,"for","hotkeys"),d(Y,"class","h-[20px]"),d(Y,"id","hotkeys"),d(Y,"type","checkbox"),Y.checked=ne=l[3].useHotkeys,d(Ie,"class","my-1 flex justify-between mr-12"),d(oe,"class","font-bold"),d(oe,"for","auto-octave"),d(Pe,"class","h-[20px]"),d(Pe,"id","auto-octave"),d(Pe,"type","checkbox"),Pe.checked=nt=l[3].useAutoOctave,d(X,"class","my-1 flex justify-between mr-12"),d(fe,"class","flex flex-col h-full"),d(Ee,"class","w-full btn-sm primary"),d(je,"class","flex justify-between"),d(dt,"class","font-bold"),d(dt,"for","fade-timeout"),d(it,"class","h-[20px] w-16"),d(it,"id","fade-timeout"),it.value=l[1],d(Oe,"class","flex justify-between"),d(pt,"class","btn-sm primary"),d(mt,"class","flex justify-between"),d(Ve,"class","flex flex-col justify-between h-full"),d(i,"class","body svelte-1bpw69s"),q(i,"hidden",l[4]),d(t,"class","flex flex-col rounded border-2 px-4 py-2 my-4 text-sm svelte-1bpw69s"),q(t,"collapsed",l[4]),d(e,"class",Pt=Ae(`${l[11].class||""}`)+" svelte-1bpw69s")},m(Se,Ue){K(Se,e,Ue),u(e,t),u(t,s),u(s,n),u(t,a),u(t,i),u(i,o),u(o,c),u(o,h),u(o,p),u(o,g),u(o,A),u(A,k),u(A,G),u(A,B),u(i,I),u(i,N),u(N,j),u(j,O),u(j,V),u(j,E),u(N,S),u(N,M),u(M,U),u(M,z),u(M,le),Qe(le,l[0]),u(i,te),u(i,fe),u(fe,ce),u(ce,Te),u(ce,Me),u(ce,ge),u(fe,Ke),u(fe,Ie),u(Ie,re),u(Ie,he),u(Ie,Y),u(fe,x),u(fe,X),u(X,oe),u(X,Ce),u(X,Pe),u(i,We),u(i,Ve),u(Ve,je),u(je,Ee),u(Ve,yt),u(Ve,Oe),u(Oe,dt),u(Oe,Zt),u(Oe,it),u(Ve,es),u(Ve,mt),u(mt,Lt),u(mt,ts),u(mt,pt),u(t,ss),Be&&Be.m(t,null),Je=!0,ls||(ys=[R(n,"click",l[7]),R(k,"click",Fe.openMidi),R(B,"click",Fe.disableMidi),R(E,"change",l[12]),R(le,"input",l[13]),R(le,"change",l[8]),R(ge,"change",l[14]),R(Y,"change",l[15]),R(Pe,"change",l[16]),R(Ee,"click",l[17]),R(it,"input",l[9]),R(pt,"click",l[10])],ls=!0)},p(Se,[Ue]){var ot;(!Je||Ue&32&&b!==(b=((ot=Se[5])==null?void 0:ot.name)??"No device")&&p.value!==b)&&(p.value=b),(!Je||Ue&8&&y!==(y=Se[3].useSound))&&(E.checked=y),Ue&1&&le.value!==Se[0]&&Qe(le,Se[0]),(!Je||Ue&8&&qe!==(qe=Se[3].useKeyboard))&&(ge.checked=qe),(!Je||Ue&8&&ne!==(ne=Se[3].useHotkeys))&&(Y.checked=ne),(!Je||Ue&8&&nt!==(nt=Se[3].useAutoOctave))&&(Pe.checked=nt),(!Je||Ue&2&&it.value!==Se[1])&&(it.value=Se[1]),(!Je||Ue&16)&&q(i,"hidden",Se[4]),Se[2]?Be?Ue&4&&F(Be,1):(Be=dl(),Be.c(),F(Be,1),Be.m(t,null)):Be&&(tt(),W(Be,1,1,()=>{Be=null}),st()),(!Je||Ue&16)&&q(t,"collapsed",Se[4]),(!Je||Ue&2048&&Pt!==(Pt=Ae(`${Se[11].class||""}`)+" svelte-1bpw69s"))&&d(e,"class",Pt)},i(Se){Je||(F(Be),Je=!0)},o(Se){W(Be),Je=!1},d(Se){Se&&m(e),Be&&Be.d(),ls=!1,rt(ys)}}}function Va(l,e,t){let s,n,r;ie(l,lt,w=>t(3,s=w)),ie(l,Qt,w=>t(5,r=w));const a=ht(Ge(!1),{key:"inputs-hidden"});ie(l,a,w=>t(4,n=w));let i=s.fixedVelocity??"",o=s.keyFadeTimeout,c=!1;lt.subscribe(w=>{t(0,i=w.fixedVelocity??""),t(1,o=w.keyFadeTimeout)});function f(){a.update(w=>!w)}function h(w){const{value:I}=w.currentTarget;let N;if(I)try{N=parseInt(I)}catch{}N!==void 0&&N>=0&&N<=127?Fe.setInputValue("fixedVelocity",N):I?t(0,i=s.fixedVelocity||""):Fe.setInputValue("fixedVelocity",void 0)}function p(w){try{const I=parseInt(w.currentTarget.value);Fe.setInputValue("keyFadeTimeout",I)}catch{t(1,o=s.keyFadeTimeout)}}function b(){Pn()}const g=w=>Fe.setInputValue("useSound",w.currentTarget.checked);function A(){i=this.value,t(0,i)}const k=w=>Fe.setInputValue("useKeyboard",w.currentTarget.checked),D=w=>Fe.setInputValue("useHotkeys",w.currentTarget.checked),G=w=>Fe.setInputValue("useAutoOctave",w.currentTarget.checked),B=()=>t(2,c=!c);return l.$$set=w=>{t(11,e=ye(ye({},e),we(w)))},e=we(e),[i,o,c,s,n,r,a,f,h,p,b,e,g,A,k,D,G,B]}class Oa extends Re{constructor(e){super(),He(this,e,Va,Ma,ze,{})}}function Ua(l){let e;return{c(){e=J(" ")},l(t){e=Q(t," ")},m(t,s){K(t,e,s)},p:ue,d(t){t&&m(e)}}}function Ka(l){let e,t=l[1].note+"",s;return{c(){e=J("Input: "),s=J(t)},l(n){e=Q(n,"Input: "),s=Q(n,t)},m(n,r){K(n,e,r),K(n,s,r)},p(n,r){r&2&&t!==(t=n[1].note+"")&&ae(s,t)},d(n){n&&(m(e),m(s))}}}function xa(l){let e,t;return{c(){e=J("Input: "),t=J(l[0])},l(s){e=Q(s,"Input: "),t=Q(s,l[0])},m(s,n){K(s,e,n),K(s,t,n)},p(s,n){n&1&&ae(t,s[0])},d(s){s&&(m(e),m(t))}}}function $a(l){let e;return{c(){e=J(hs)},l(t){e=Q(t,hs)},m(t,s){K(t,e,s)},p:ue,d(t){t&&m(e)}}}function Fa(l){let e,t,s,n;function r(o,c){return o[2].useKeyboard&&hs?$a:o[2].useKeyboard&&o[0]?xa:o[2].useKeyboard&&o[1]?Ka:Ua}let a=r(l),i=a(l);return{c(){e=_("div"),i.c(),this.h()},l(o){e=v(o,"DIV",{class:!0});var c=T(e);i.l(c),c.forEach(m),this.h()},h(){d(e,"class",t=`${l[4].class||""}`)},m(o,c){K(o,e,c),i.m(e,null),s||(n=R(window,"keydown",l[3]),s=!0)},p(o,[c]){a===(a=r(o))&&i?i.p(o,c):(i.d(1),i=a(o),i&&(i.c(),i.m(e,null))),c&16&&t!==(t=`${o[4].class||""}`)&&d(e,"class",t)},i:ue,o:ue,d(o){o&&m(e),i.d(),s=!1,n()}}}let hs="";function Ra(l,e,t){let s;ie(l,lt,c=>t(2,s=c));let{debounced:n}=e,r="",a;const i=un();function o(c){const f=c.target;if(n||!(f instanceof HTMLElement)||f.tagName==="INPUT")return;const h=ln.handleInput(c.code,c.key,c.shiftKey);h&&h.e==="note"?t(1,a=h.data):h&&h.e==="string"?t(0,r=h.data):h&&i(h.e,h.data)}return l.$$set=c=>{t(4,e=ye(ye({},e),we(c))),"debounced"in c&&t(5,n=c.debounced)},e=we(e),[r,a,s,o,e,n]}class Ha extends Re{constructor(e){super(),He(this,e,Ra,Fa,ze,{debounced:5})}}function za(l){let e,t,s,n="Count",r,a,i,o,c,f="Duplicates",h,p,b,g,A,k,D="Autoplay",G,B,w,I,N,j,O="Wait seconds",C,V,E,y,S;return{c(){e=_("ul"),t=_("li"),s=_("label"),s.textContent=n,r=L(),a=_("input"),i=L(),o=_("li"),c=_("label"),c.textContent=f,h=L(),p=_("input"),g=L(),A=_("li"),k=_("label"),k.textContent=D,G=L(),B=_("input"),I=L(),N=_("li"),j=_("label"),j.textContent=O,C=L(),V=_("input"),this.h()},l(M){e=v(M,"UL",{class:!0});var U=T(e);t=v(U,"LI",{class:!0});var $=T(t);s=v($,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(s)!=="svelte-wgq9fc"&&(s.textContent=n),r=P($),a=v($,"INPUT",{class:!0,id:!0,type:!0}),$.forEach(m),i=P(U),o=v(U,"LI",{class:!0});var z=T(o);c=v(z,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(c)!=="svelte-hcg9dq"&&(c.textContent=f),h=P(z),p=v(z,"INPUT",{class:!0,id:!0,type:!0}),z.forEach(m),g=P(U),A=v(U,"LI",{class:!0});var le=T(A);k=v(le,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(k)!=="svelte-lr68n2"&&(k.textContent=D),G=P(le),B=v(le,"INPUT",{class:!0,id:!0,type:!0}),le.forEach(m),I=P(U),N=v(U,"LI",{class:!0});var te=T(N);j=v(te,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),Z(j)!=="svelte-1qj2vcy"&&(j.textContent=O),C=P(te),V=v(te,"INPUT",{class:!0,id:!0,type:!0}),te.forEach(m),U.forEach(m),this.h()},h(){d(s,"class","font-bold"),d(s,"for","guess-count"),d(a,"class","h-[20px] w-10"),d(a,"id","guess-count"),d(a,"type","number"),d(t,"class","flex items-center justify-between svelte-1elvih2"),d(c,"class","font-bold"),d(c,"for","duplicates"),d(p,"class","h-[20px]"),d(p,"id","duplicates"),d(p,"type","checkbox"),p.checked=b=l[2].duplicates,d(o,"class","flex items-center justify-between mr-6 svelte-1elvih2"),d(k,"class","font-bold"),d(k,"for","autoplay"),d(B,"class","h-[20px]"),d(B,"id","autoplay"),d(B,"type","checkbox"),B.checked=w=l[2].autoplay,d(A,"class","flex items-center justify-between mr-6 svelte-1elvih2"),d(j,"class","font-bold"),d(j,"for","wait-ms"),d(V,"class","h-[20px] w-10"),d(V,"id","wait-ms"),d(V,"type","number"),d(N,"class","flex items-center justify-between svelte-1elvih2"),d(e,"class",E=Ae(`${l[5].class||""}`)+" svelte-1elvih2")},m(M,U){K(M,e,U),u(e,t),u(t,s),u(t,r),u(t,a),Qe(a,l[0]),u(e,i),u(e,o),u(o,c),u(o,h),u(o,p),u(e,g),u(e,A),u(A,k),u(A,G),u(A,B),u(e,I),u(e,N),u(N,j),u(N,C),u(N,V),Qe(V,l[1]),y||(S=[R(a,"input",l[6]),R(a,"input",l[3]),R(p,"input",l[7]),R(B,"input",l[8]),R(V,"input",l[9]),R(V,"input",l[4])],y=!0)},p(M,[U]){U&1&&zt(a.value)!==M[0]&&Qe(a,M[0]),U&4&&b!==(b=M[2].duplicates)&&(p.checked=b),U&4&&w!==(w=M[2].autoplay)&&(B.checked=w),U&2&&zt(V.value)!==M[1]&&Qe(V,M[1]),U&32&&E!==(E=Ae(`${M[5].class||""}`)+" svelte-1elvih2")&&d(e,"class",E)},i:ue,o:ue,d(M){M&&m(e),y=!1,rt(S)}}}function qa(l,e,t){let s;ie(l,ft,p=>t(2,s=p));let n=s.count||"",r=s.waitSeconds||"";ft.subscribe(p=>{t(0,n=p.count||""),t(1,r=p.waitSeconds||"")});function a({currentTarget:{value:p}}){let b;try{b=parseInt(p),b<=0&&(b=1),ke.setOptionValue("count",b)}catch{t(0,n=s.count)}}function i({currentTarget:{value:p}}){let b;try{b=parseInt(p),b<0&&(b=0),ke.setOptionValue("waitSeconds",b)}catch{t(1,r=s.waitSeconds)}}function o(){n=zt(this.value),t(0,n)}const c=p=>ke.setOptionValue("duplicates",p.currentTarget.checked),f=p=>ke.setOptionValue("autoplay",p.currentTarget.checked);function h(){r=zt(this.value),t(1,r)}return l.$$set=p=>{t(5,e=ye(ye({},e),we(p)))},e=we(e),[n,r,s,a,i,e,o,c,f,h]}class Wa extends Re{constructor(e){super(),He(this,e,qa,za,ze,{})}}function ml(l,e,t){const s=l.slice();return s[20]=e[t].key,s[21]=e[t].value,s}function pl(l,e,t){const s=l.slice();return s[20]=e[t].key,s[21]=e[t].value,s}function _l(l){let e,t,s=l[21]+"",n,r,a,i,o,c,f,h;function p(){return l[13](l[20])}i=new at({props:{icon:is,width:20}});function b(...g){return l[14](l[20],...g)}return{c(){e=_("li"),t=_("button"),n=J(s),r=L(),a=_("button"),me(i.$$.fragment),o=L(),this.h()},l(g){e=v(g,"LI",{class:!0});var A=T(e);t=v(A,"BUTTON",{class:!0});var k=T(t);n=Q(k,s),k.forEach(m),r=P(A),a=v(A,"BUTTON",{class:!0});var D=T(a);pe(i.$$.fragment,D),D.forEach(m),o=P(A),A.forEach(m),this.h()},h(){d(t,"class","px-2 py-1 mr-1 flex items-center w-full h-full rounded hover:bg-[#eee] svelte-1okhpct"),q(t,"selected",l[20]===l[0]),d(a,"class","px-1 py-1 flex items-center justify-center rounded text-[#222] hover:bg-blue-500 hover:text-white"),d(e,"class","flex svelte-1okhpct")},m(g,A){K(g,e,A),u(e,t),u(t,n),u(e,r),u(e,a),_e(i,a,null),u(e,o),c=!0,f||(h=[R(t,"click",p),R(a,"click",b)],f=!0)},p(g,A){l=g,(!c||A&17)&&q(t,"selected",l[20]===l[0])},i(g){c||(F(i.$$.fragment,g),c=!0)},o(g){W(i.$$.fragment,g),c=!1},d(g){g&&m(e),ve(i),f=!1,rt(h)}}}function vl(l){let e,t=se(l[2]),s=[];for(let n=0;nW(V[S],1,1,()=>{V[S]=null});let y=(l[0]==="chords-write"||l[0]==="chords-play")&&vl(l);return f=new Wa({props:{class:"game-options"}}),D=new at({props:{class:"mr-1",icon:l[3]?Is:is,width:20}}),{c(){e=_("fieldset"),t=_("legend"),t.textContent=s,n=L(),r=_("div"),a=_("ul");for(let S=0;St(12,r=w)),ie(l,ft,w=>t(19,a=w)),ie(l,bt,w=>t(3,i=w));const o=[{key:"notes",value:"Play Notes"},{key:"pitches",value:"Guess Pitches"},{key:"keys-major",value:"Guess Major Keys"},{key:"keys-minor",value:"Guess Minor Keys"},{key:"chords-write",value:"Write Chords"},{key:"chords-play",value:"Play Chords"},{key:"chords-diatonic",value:"Play Diatonic Triads"}];let c=o[4].key,f="maj-m";a.count,a.waitSeconds,ft.subscribe(w=>{w.count,w.waitSeconds});function h(){ke.clearGame(!0)}function p(w,I){if(I==="chords-write"||I==="chords-play"||I==="chords-diatonic"){let N=[];f==="selected"?N=r.filter(j=>j.selected):f==="all"?N=r:f==="maj-m"?N=r.filter(j=>j.suffixes[0]==="maj"||j.suffixes[0]==="m"):f==="seventh"&&(N=r.filter(j=>j.suffixes[0]==="maj7"||j.suffixes[0]==="m7"||j.suffixes[0]==="7"||j.suffixes[0]==="dim7"||j.suffixes[0]==="aug7")),ke.play(I,{chords:N})}else ke.play(I,void 0);w.currentTarget instanceof HTMLElement&&w.currentTarget.blur(),setTimeout(()=>{window.scrollTo(0,document.body.scrollHeight)})}function b(w){t(0,c=w)}function g(w,I){t(0,c=I),p(w,I)}function A(w){t(1,f=w)}const k=w=>b(w),D=(w,I)=>g(I,w),G=w=>A(w),B=w=>p(w,c);return l.$$set=w=>{t(10,e=ye(ye({},e),we(w)))},l.$$.update=()=>{l.$$.dirty&4096&&t(11,s=r.reduce((w,I)=>I.selected?w+1:w,0)),l.$$.dirty&2048&&t(2,n=[{key:"maj-m",value:"Major/Minor"},{key:"seventh",value:"Seventh"},{key:"selected",value:`Selected ${s} chords`},{key:"all",value:"All"}])},e=we(e),[c,f,n,i,o,h,p,b,g,A,e,s,r,k,D,G,B]}class Ya extends Re{constructor(e){super(),He(this,e,Qa,Ja,ze,{})}}function bl(l,e,t){const s=l.slice();return s[7]=e[t],s}function kl(l,e,t){const s=l.slice();return s[4]=e[t],s}function Xa(l){let e,t=se(l[1]),s=[];for(let n=0;nl.interval;function tr(l,e,t){let{scale:s,intervals:n}=e;function r(a){ds.call(this,l,a)}return l.$$set=a=>{t(2,e=ye(ye({},e),we(a))),"scale"in a&&t(0,s=a.scale),"intervals"in a&&t(1,n=a.intervals)},e=we(e),[s,n,e,r]}class nn extends Re{constructor(e){super(),He(this,e,tr,er,ze,{scale:0,intervals:1})}}function El(l,e,t){const s=l.slice();return s[7]=e[t],s}function Sl(l,e,t){const s=l.slice();return s[4]=e[t],s}function sr(l){let e,t=se(l[0]),s=[];for(let n=0;n2),d(e,"class","inline-flex items-baseline svelte-1roj1mi")},m(f,h){K(f,e,h),u(e,t),u(t,n),u(e,r),u(e,a),u(a,o),u(e,c)},p(f,h){h&1&&s!==(s=f[7].roman+"")&&ae(n,s),h&1&&i!==(i=f[7].suffix+"")&&ae(o,i),h&1&&q(a,"super-text",f[7].suffix.length>2)},d(f){f&&m(e)}}}function Nl(l){let e,t,s=l[4]+"",n,r;return{c(){e=_("span"),t=_("span"),n=J(s),r=L(),this.h()},l(a){e=v(a,"SPAN",{class:!0});var i=T(e);t=v(i,"SPAN",{});var o=T(t);n=Q(o,s),o.forEach(m),r=P(i),i.forEach(m),this.h()},h(){d(e,"class","inline-flex items-baseline svelte-1roj1mi")},m(a,i){K(a,e,i),u(e,t),u(t,n),u(e,r)},p(a,i){i&2&&s!==(s=a[4]+"")&&ae(n,s)},d(a){a&&m(e)}}}function nr(l){let e,t,s,n,r,a;function i(f,h){return f[1].length>0?lr:sr}let o=i(l),c=o(l);return{c(){e=_("div"),t=_("button"),c.c(),this.h()},l(f){e=v(f,"DIV",{class:!0,title:!0});var h=T(e);t=v(h,"BUTTON",{class:!0});var p=T(t);c.l(p),p.forEach(m),h.forEach(m),this.h()},h(){d(t,"class","triads flex flex-wrap svelte-1roj1mi"),d(e,"class",s=Ae(`${l[2].class||""} `)+" svelte-1roj1mi"),d(e,"title",n=l[0].map(Tl).join("-"))},m(f,h){K(f,e,h),u(e,t),c.m(t,null),r||(a=R(t,"click",l[3]),r=!0)},p(f,[h]){o===(o=i(f))&&c?c.p(f,h):(c.d(1),c=o(f),c&&(c.c(),c.m(t,null))),h&4&&s!==(s=Ae(`${f[2].class||""} `)+" svelte-1roj1mi")&&d(e,"class",s),h&1&&n!==(n=f[0].map(Tl).join("-"))&&d(e,"title",n)},i:ue,o:ue,d(f){f&&m(e),c.d(),r=!1,a()}}}const Tl=l=>l.roman+l.suffix;function ar(l,e,t){let{triads:s,chords:n}=e;function r(a){ds.call(this,l,a)}return l.$$set=a=>{t(2,e=ye(ye({},e),we(a))),"triads"in a&&t(0,s=a.triads),"chords"in a&&t(1,n=a.chords)},e=we(e),[s,n,e,r]}class an extends Re{constructor(e){super(),He(this,e,ar,nr,ze,{triads:0,chords:1})}}function Il(l,e,t){const s=l.slice();return s[23]=e[t],s}function jl(l,e,t){const s=l.slice();return s[23]=e[t],s}function Dl(l){let e,t,s=l[23].raw.names[0]+"",n,r,a,i,o,c,f;function h(){return l[11](l[23])}a=new nn({props:{scale:l[23].scale,intervals:l[23].raw.intervals}}),a.$on("click",h);function p(){return l[12](l[23])}return o=new an({props:{triads:l[23].triads,chords:l[23].triadChords}}),o.$on("click",p),{c(){e=_("li"),t=_("div"),n=J(s),r=L(),me(a.$$.fragment),i=L(),me(o.$$.fragment),c=L(),this.h()},l(b){e=v(b,"LI",{class:!0});var g=T(e);t=v(g,"DIV",{class:!0});var A=T(t);n=Q(A,s),A.forEach(m),r=P(g),pe(a.$$.fragment,g),i=P(g),pe(o.$$.fragment,g),c=P(g),g.forEach(m),this.h()},h(){d(t,"class","text-xs font-bold"),d(e,"class","svelte-4hctsl")},m(b,g){K(b,e,g),u(e,t),u(t,n),u(e,r),_e(a,e,null),u(e,i),_e(o,e,null),u(e,c),f=!0},p(b,g){l=b,(!f||g&4)&&s!==(s=l[23].raw.names[0]+"")&&ae(n,s);const A={};g&4&&(A.scale=l[23].scale),g&4&&(A.intervals=l[23].raw.intervals),a.$set(A);const k={};g&4&&(k.triads=l[23].triads),g&4&&(k.chords=l[23].triadChords),o.$set(k)},i(b){f||(F(a.$$.fragment,b),F(o.$$.fragment,b),f=!0)},o(b){W(a.$$.fragment,b),W(o.$$.fragment,b),f=!1},d(b){b&&m(e),ve(a),ve(o)}}}function Ll(l){let e,t,s=l[23].raw.names[0]+"",n,r,a,i,o,c,f;function h(){return l[13](l[23])}a=new nn({props:{scale:l[23].scale,intervals:l[23].raw.intervals}}),a.$on("click",h);function p(){return l[14](l[23])}return o=new an({props:{triads:l[23].triads,chords:l[23].triadChords}}),o.$on("click",p),{c(){e=_("li"),t=_("div"),n=J(s),r=L(),me(a.$$.fragment),i=L(),me(o.$$.fragment),c=L(),this.h()},l(b){e=v(b,"LI",{class:!0});var g=T(e);t=v(g,"DIV",{class:!0});var A=T(t);n=Q(A,s),A.forEach(m),r=P(g),pe(a.$$.fragment,g),i=P(g),pe(o.$$.fragment,g),c=P(g),g.forEach(m),this.h()},h(){d(t,"class","text-xs font-bold"),d(e,"class","svelte-4hctsl")},m(b,g){K(b,e,g),u(e,t),u(t,n),u(e,r),_e(a,e,null),u(e,i),_e(o,e,null),u(e,c),f=!0},p(b,g){l=b,(!f||g&2)&&s!==(s=l[23].raw.names[0]+"")&&ae(n,s);const A={};g&2&&(A.scale=l[23].scale),g&2&&(A.intervals=l[23].raw.intervals),a.$set(A);const k={};g&2&&(k.triads=l[23].triads),g&2&&(k.chords=l[23].triadChords),o.$set(k)},i(b){f||(F(a.$$.fragment,b),F(o.$$.fragment,b),f=!0)},o(b){W(a.$$.fragment,b),W(o.$$.fragment,b),f=!1},d(b){b&&m(e),ve(a),ve(o)}}}function rr(l){let e,t,s,n,r="Scales",a,i,o,c,f="Key",h,p,b,g,A,k,D,G,B,w,I=se(l[2]),N=[];for(let E=0;EW(N[E],1,1,()=>{N[E]=null});let O=se(l[1]),C=[];for(let E=0;EW(C[E],1,1,()=>{C[E]=null});return{c(){e=_("div"),t=_("fieldset"),s=_("legend"),n=_("button"),n.textContent=r,a=L(),i=_("div"),o=_("div"),c=_("label"),c.textContent=f,h=L(),p=_("input"),b=L(),g=_("ul");for(let E=0;Et(17,r=C)),ie(l,Nt,C=>t(18,a=C)),ie(l,lt,C=>t(19,i=C)),ie(l,et,C=>t(20,o=C));let h=ms().map(C=>({key:C.names[0],raw:C,scale:void 0,triads:C.triads,triadChords:[]})),p="",b=[a.key,a.scale],g;const A=ht(Ge(!0),{key:"scales-hidden"});ie(l,A,C=>t(3,c=C));function k(){A.update(C=>!C)}function D({currentTarget:{value:C}}){t(0,p=`${C.charAt(0).toUpperCase()}${C.charAt(1).toLowerCase()}`),t(10,h=h.map(V=>{const E=Jt(p,V.key),y=p&&"data"in E?E.data:void 0;let S=[];return y&&(S=V.triads.map((M,U)=>`${y.scaleNotes[U].note}${!M.suffix.includes("°")&&M.minor?"m":""}${M.suffix}`)),{...V,scale:y,triadChords:S}}))}function G(C,V,E){if(CS.midi),i.fixedVelocity),g=setTimeout(()=>G(C,V,E),E)}else de.setPlayed([]),de.setKeyAndScale(b[0],b[1])}function B(C){clearTimeout(g);let V,E;C.scale?(E=C.scale,b=[a.key,a.scale],de.setKeyAndScale(C.scale.key,C.scale.scale)):E=a;const y=r[0].midi+E.scaleNotes[0].semitones;V=C.raw.intervals.map(S=>[{...E.notesMap.get(S.semitones%12),midi:y+S.semitones}]),V[0][0].semitones!==V[V.length-1][0].semitones&&V.push(V[0].map(S=>({...S,midi:S.midi+12}))),G(0,V,500)}function w(C){clearTimeout(g);const{intervals:V}=C.raw;let E,y;C.scale?(y=C.scale,b=[a.key,a.scale],de.setKeyAndScale(C.scale.key,C.scale.scale)):y=a;const S=r[0].midi+y.scaleNotes[0].semitones;E=Jl(C.triads).map((U,$)=>os(S+y.intervals[$].semitones,y,U.intervals)),V[V.length-1].interval_seq!==1&&E.push(E[0].map(U=>({...U,midi:U.midi+12}))),G(0,E,750)}const I=C=>B(C),N=C=>w(C),j=C=>B(C),O=C=>w(C);return l.$$set=C=>{t(9,e=ye(ye({},e),we(C)))},l.$$.update=()=>{l.$$.dirty&1024&&t(2,s=h.filter((C,V)=>VV>=h.length/2))},e=we(e),[p,n,s,c,A,k,D,B,w,e,h,I,N,j,O]}class or extends Re{constructor(e){super(),He(this,e,ir,rr,ze,{})}}function Pl(l,e,t){const s=l.slice();return s[26]=e[t],s}function Bl(l,e,t){const s=l.slice();return s[29]=e[t],s}function Gl(l){let e,t;return{c(){e=_("div"),t=J(l[3]),this.h()},l(s){e=v(s,"DIV",{class:!0});var n=T(e);t=Q(n,l[3]),n.forEach(m),this.h()},h(){d(e,"class","error svelte-1u7ze7x")},m(s,n){K(s,e,n),u(e,t)},p(s,n){n[0]&8&&ae(t,s[3])},d(s){s&&m(e)}}}function cr(l){let e,t;return{c(){e=_("div"),t=J(l[0]),this.h()},l(s){e=v(s,"DIV",{slot:!0});var n=T(e);t=Q(n,l[0]),n.forEach(m),this.h()},h(){d(e,"slot","value")},m(s,n){K(s,e,n),u(e,t)},p(s,n){n[0]&1&&ae(t,s[0])},d(s){s&&m(e)}}}function Ml(l){let e,t=se(l[5]),s=[];for(let n=0;nt(23,n=y)),ie(l,kt,y=>t(24,r=y)),ie(l,bt,y=>t(7,i=y)),ie(l,Nt,y=>t(8,o=y));let c=Ye(n[0]),f=Ye(n[1]),h="";const p=ht(Ge(!1),{key:"score-options-hidden"});ie(l,p,y=>t(6,a=y));let b=r[0],g=r[1];const A=ms(),k=A.map(y=>({key:y.names[0],value:y.names[0]}));Yt.subscribe(y=>{t(1,c=Ye(y[0])),t(2,f=Ye(y[1]))}),kt.subscribe(y=>{t(4,b=y[0]),t(0,g=y[1])});function D(y,S){const M=Nn(S.currentTarget.value,!0,!0);if("data"in M){const{midi:U}=M.data,$=n,z=[y==="min"?U:$[0].midi,y==="max"?U:$[1].midi];Fe.setMidiRange(z),t(3,h="")}else t(3,h=M.err),y==="min"?t(1,c=Ye(n[0])):t(2,f=Ye(n[1]))}function G(){t(3,h="")}function B({currentTarget:{value:y}}){t(4,b=`${y.charAt(0).toUpperCase()}${y.charAt(1).toLowerCase()}`),de.setKey(b)}function w(y){var S;return t(0,g=(S=k.find(M=>y===M.key))==null?void 0:S.value),de.setScale(g),!1}function I(){p.update(y=>!y)}function N(){de.clearScore(!0),Fe.setMidiRange([60,84])}function j(){c=this.value,t(1,c)}const O=y=>D("min",y);function C(){f=this.value,t(2,f)}const V=y=>D("max",y);function E(){b=this.value,t(4,b)}return l.$$set=y=>{t(17,e=ye(ye({},e),we(y)))},l.$$.update=()=>{var y;l.$$.dirty[0]&1&&t(5,s=((y=A.find(S=>S.names[0]===g))==null?void 0:y.intervals)||[])},e=we(e),[g,c,f,h,b,s,a,i,o,p,k,D,G,B,w,I,N,e,j,O,C,V,E]}class hr extends Re{constructor(e){super(),He(this,e,fr,ur,ze,{},null,[-1,-1])}}function dr(l){l[19]=l[20].default}function mr(l){return{c:ue,l:ue,m:ue,i:ue,o:ue,d:ue}}function pr(l){dr(l);let e,t,s;var n=l[19];function r(a,i){return{props:{class:"px-4 md:px-0"}}}return n&&(e=dn(n,r())),{c(){e&&me(e.$$.fragment),t=Le()},l(a){e&&pe(e.$$.fragment,a),t=Le()},m(a,i){e&&_e(e,a,i),K(a,t,i),s=!0},i(a){s||(e&&F(e.$$.fragment,a),s=!0)},o(a){e&&W(e.$$.fragment,a),s=!1},d(a){a&&m(t),e&&ve(e,a)}}}function _r(l){let e;return{c(){e=J(" ")},l(t){e=Q(t," ")},m(t,s){K(t,e,s)},i:ue,o:ue,d(t){t&&m(e)}}}function vr(l){let e,t,s,n='MIDI Note Trainer',r,a,i,o,c,f,h,p,b,g,A,k,D,G,B,w,I,N,j;i=new Oa({}),c=new or({}),h=new Yn({}),g=new hr({props:{class:"score-options mr-4"}}),k=new Ya({props:{class:"play-form"}});let O={ctx:l,current:null,token:null,hasCatch:!1,pending:_r,then:pr,catch:mr,value:20,blocks:[,,,]};return fn(rn(()=>import("./Score.6e128b48.js"),["./Score.6e128b48.js","./vendor_svelte.9533a558.js","./vendor.1acf520b.js","./vendor_vexflow.2dfca40b.js","../assets/Score.04e240b8.css"],import.meta.url),O),w=new Ha({props:{class:"min-h-32",debounced:!!l[0]}}),w.$on("guessed-chord",l[2]),w.$on("guessed-key",l[3]),w.$on("guessed-note",l[4]),N=new ua({props:{game:l[1]}}),{c(){e=_("meta"),t=L(),s=_("h1"),s.innerHTML=n,r=L(),a=_("section"),me(i.$$.fragment),o=L(),me(c.$$.fragment),f=L(),me(h.$$.fragment),p=L(),b=_("div"),me(g.$$.fragment),A=L(),me(k.$$.fragment),D=L(),O.block.c(),G=L(),B=_("section"),me(w.$$.fragment),I=L(),me(N.$$.fragment),this.h()},l(C){const V=hn("svelte-1w2oado",document.head);e=v(V,"META",{name:!0,content:!0}),V.forEach(m),t=P(C),s=v(C,"H1",{class:!0,"data-svelte-h":!0}),Z(s)!=="svelte-1l8ebwf"&&(s.innerHTML=n),r=P(C),a=v(C,"SECTION",{class:!0});var E=T(a);pe(i.$$.fragment,E),o=P(E),pe(c.$$.fragment,E),f=P(E),pe(h.$$.fragment,E),p=P(E),b=v(E,"DIV",{class:!0});var y=T(b);pe(g.$$.fragment,y),A=P(y),pe(k.$$.fragment,y),y.forEach(m),E.forEach(m),D=P(C),O.block.l(C),G=P(C),B=v(C,"SECTION",{class:!0});var S=T(B);pe(w.$$.fragment,S),I=P(S),pe(N.$$.fragment,S),S.forEach(m),this.h()},h(){d(e,"name","description"),d(e,"content","App to practise music notation, scales and chords using MIDI"),d(s,"class","my-8 md:text-5xl mt-12 px-4 md:px-0 text-3xl font-cursive tracking-tight"),d(b,"class","play svelte-qjpqy3"),d(a,"class","px-4 md:px-0"),d(B,"class","mb-8 px-4 md:px-0 flex flex-col")},m(C,V){u(document.head,e),K(C,t,V),K(C,s,V),K(C,r,V),K(C,a,V),_e(i,a,null),u(a,o),_e(c,a,null),u(a,f),_e(h,a,null),u(a,p),u(a,b),_e(g,b,null),u(b,A),_e(k,b,null),K(C,D,V),O.block.m(C,O.anchor=V),O.mount=()=>G.parentNode,O.anchor=G,K(C,G,V),K(C,B,V),_e(w,B,null),u(B,I),_e(N,B,null),j=!0},p(C,[V]){l=C;const E={};V&1&&(E.debounced=!!l[0]),w.$set(E);const y={};V&2&&(y.game=l[1]),N.$set(y)},i(C){j||(F(i.$$.fragment,C),F(c.$$.fragment,C),F(h.$$.fragment,C),F(g.$$.fragment,C),F(k.$$.fragment,C),F(O.block),F(w.$$.fragment,C),F(N.$$.fragment,C),j=!0)},o(C){W(i.$$.fragment,C),W(c.$$.fragment,C),W(h.$$.fragment,C),W(g.$$.fragment,C),W(k.$$.fragment,C);for(let V=0;V<3;V+=1){const E=O.blocks[V];W(E)}W(w.$$.fragment,C),W(N.$$.fragment,C),j=!1},d(C){C&&(m(t),m(s),m(r),m(a),m(D),m(G),m(B)),m(e),ve(i),ve(c),ve(h),ve(g),ve(k),O.block.d(C),O.token=null,O=null,ve(w),ve(N)}}}function gr(l,e,t){let s,n,r,a,i,o;ie(l,gt,I=>t(7,s=I)),ie(l,bt,I=>t(1,n=I)),ie(l,ft,I=>t(8,r=I)),ie(l,lt,I=>t(9,a=I)),ie(l,et,I=>t(10,i=I)),ie(l,us,I=>t(11,o=I));let c,f;Rl(()=>(o&&w(),window.addEventListener("keydown",h),window.addEventListener("mousedown",h),window.addEventListener("touchstart",h),()=>{window.removeEventListener("keydown",h),window.removeEventListener("mousedown",h),window.removeEventListener("touchstart",h)})),Qt.subscribe(I=>{I&&I.channels[1].addListener("noteon",p)});function h(){Fe.initAudio(),window.removeEventListener("keydown",h),window.removeEventListener("mousedown",h),window.removeEventListener("touchstart",h)}function p(I){if(c)return;const N=I.rawData;b(N[1],N[2])}function b(I,N){const j=n;j instanceof At&&!(j!=null&&j.ended)&&s==="waiting"?k(I):j instanceof ut&&!(j!=null&&j.ended)&&s==="waiting"?(j.addPlayedNote(I),f||(f=setTimeout(A,2e3))):j||de.pushPlayed(I),i&&i.noteOn(I,a.fixedVelocity??N)}function g(){r.autoplay&&r.waitSeconds>0?t(0,c=setTimeout(()=>{r.autoplay&&ke.nextGuess(),t(0,c=void 0)},r.waitSeconds*1e3)):r.autoplay?ke.nextGuess():t(0,c=void 0)}function A(){var N;const I=n;if(I instanceof ut){const j=I.guess();de.setPlayed(((N=I.latestGuess.guessed)==null?void 0:N.notes)||[],j,-1),ke.updateState(j?"correct":"wrong"),g()}f=void 0}function k(I){const N=n;if(N instanceof At&&s==="waiting"){de.setTarget([de.getNote(N.current)]);const j=N.guess(I);ke.updateState(j?"correct":"wrong"),de.pushPlayed(I,j,4e3),g()}}function D(I){const N=n;if(N instanceof ut&&s==="waiting"){const j=N.guessWrittenChord(I.detail);ke.updateState(j?"correct":"wrong"),g()}}function G(I){const N=n;if(N instanceof Dt&&s==="waiting"){const j=I.detail.replaceAll("♭","b").replaceAll("♯","#"),O=N.guess(j);ke.updateState(O?"correct":"wrong"),g()}}function B(I){b(I.detail,80)}async function w(){const I=await Fe.openMidi();"data"in I?I.data.name:(I.err,console.error(I.err))}return[c,n,D,G,B]}class wr extends Re{constructor(e){super(),He(this,e,gr,vr,ze,{})}}export{Ds as F,ut as G,wr as P,gn as S,At as a,ke as b,bt as c,vt as d,Ql as e,gt as g,et as p,Nt as s,Bs as t}; diff --git a/_app/immutable/chunks/Score.6e128b48.js b/_app/immutable/chunks/Score.0d21b472.js similarity index 98% rename from _app/immutable/chunks/Score.6e128b48.js rename to _app/immutable/chunks/Score.0d21b472.js index 1ee38ac7..751c6bd5 100644 --- a/_app/immutable/chunks/Score.6e128b48.js +++ b/_app/immutable/chunks/Score.0d21b472.js @@ -1 +1 @@ -import{S as Q,i as U,s as J,O as ne,e as A,H as F,a as C,b as E,I,d as y,f as S,L as B,g as W,h as V,J as j,p as re,t as D,l as $,K,M as X,N as G,P as q,m as te,o as se,Q as ue,r as de,F as he}from"./vendor_svelte.9533a558.js";import{F as v}from"./vendor_vexflow.2dfca40b.js";import{p as me,g as oe,c as Y,G as H,a as L,b as ge,s as be,d as pe,t as we,e as ae,F as _e,S as ve}from"./3.8c3c04e9.js";import{d as ye,a as Se}from"./vendor.1acf520b.js";function Ne(i){let t,s,l,a,n,f,g;return l=new ne({props:{icon:ye,width:32}}),{c(){t=A("div"),s=A("button"),F(l.$$.fragment),this.h()},l(e){t=C(e,"DIV",{class:!0});var c=E(t);s=C(c,"BUTTON",{class:!0});var p=E(s);I(l.$$.fragment,p),p.forEach(y),c.forEach(y),this.h()},h(){S(s,"class","flex items-center justify-center rounded px-1 py-1 hover:bg-gray-200"),S(t,"class",a=`${i[2].class||""}`),B(t,"hidden",!i[0])},m(e,c){W(e,t,c),V(t,s),j(l,s,null),n=!0,f||(g=re(s,"click",i[1]),f=!0)},p(e,[c]){(!n||c&4&&a!==(a=`${e[2].class||""}`))&&S(t,"class",a),(!n||c&5)&&B(t,"hidden",!e[0])},i(e){n||(D(l.$$.fragment,e),n=!0)},o(e){$(l.$$.fragment,e),n=!1},d(e){e&&y(t),K(l),f=!1,g()}}}function ke(i,t,s){let l,a,n,f;X(i,me,e=>s(4,a=e)),X(i,oe,e=>s(5,n=e)),X(i,Y,e=>s(3,f=e));function g(){var c;const e=f;e instanceof H&&n==="waiting"?a==null||a.playChord(e.current.notes.map(p=>p.midi)):e instanceof H?a==null||a.playChord((((c=e.latestGuess.target)==null?void 0:c.notes)||[]).map(p=>p.midi)):e instanceof L&&n==="waiting"?a==null||a.noteOn(e.current):e instanceof L&&(a==null||a.noteOn(e.latestGuess.target||0))}return i.$$set=e=>{s(2,t=G(G({},t),q(e)))},i.$$.update=()=>{i.$$.dirty&8&&s(0,l=f instanceof H||f instanceof L)},t=q(t),[l,g,t,f]}class Ae extends Q{constructor(t){super(),U(this,t,ke,Ne,J,{})}}function Ce(i){let t,s,l,a,n,f,g;return l=new ne({props:{icon:Se,width:32}}),{c(){t=A("div"),s=A("button"),F(l.$$.fragment),this.h()},l(e){t=C(e,"DIV",{class:!0});var c=E(t);s=C(c,"BUTTON",{class:!0});var p=E(s);I(l.$$.fragment,p),p.forEach(y),c.forEach(y),this.h()},h(){S(s,"class","flex items-center justify-center rounded px-1 py-1 hover:bg-gray-200"),S(t,"class",a=`${i[2].class||""}`),B(t,"hidden",!i[0])},m(e,c){W(e,t,c),V(t,s),j(l,s,null),n=!0,f||(g=re(s,"click",i[1]),f=!0)},p(e,[c]){(!n||c&4&&a!==(a=`${e[2].class||""}`))&&S(t,"class",a),(!n||c&5)&&B(t,"hidden",!e[0])},i(e){n||(D(l.$$.fragment,e),n=!0)},o(e){$(l.$$.fragment,e),n=!1},d(e){e&&y(t),K(l),f=!1,g()}}}function Ee(i,t,s){let l;X(i,Y,n=>s(0,l=n));function a(){ge.clearGame()}return i.$$set=n=>{s(2,t=G(G({},t),q(n)))},t=q(t),[l,a,t]}class Te extends Q{constructor(t){super(),U(this,t,Ee,Ce,J,{})}}function Ve(i){let t,s,l,a,n,f,g,e,c,p;return f=new Ae({props:{class:"mr-2"}}),e=new Te({}),{c(){t=A("section"),s=A("div"),l=te(),a=A("div"),n=A("div"),F(f.$$.fragment),g=te(),F(e.$$.fragment),this.h()},l(u){t=C(u,"SECTION",{class:!0});var N=E(t);s=C(N,"DIV",{id:!0}),E(s).forEach(y),l=se(N),a=C(N,"DIV",{class:!0});var M=E(a);n=C(M,"DIV",{class:!0});var x=E(n);I(f.$$.fragment,x),g=se(x),I(e.$$.fragment,x),x.forEach(y),M.forEach(y),N.forEach(y),this.h()},h(){S(s,"id","output"),S(n,"class","flex"),S(a,"class","absolute left-0 top-[18.5rem]"),S(t,"class",c=`${i[1].class||""} relative`)},m(u,N){W(u,t,N),V(t,s),i[2](s),V(t,l),V(t,a),V(a,n),j(f,n,null),V(n,g),j(e,n,null),p=!0},p(u,[N]){(!p||N&2&&c!==(c=`${u[1].class||""} relative`))&&S(t,"class",c)},i(u){p||(D(f.$$.fragment,u),D(e.$$.fragment,u),p=!0)},o(u){$(f.$$.fragment,u),$(e.$$.fragment,u),p=!1},d(u){u&&y(t),i[2](null),K(f),K(e)}}}function xe(i,t,s){const{Accidental:l,Formatter:a,Renderer:n,Stave:f,StaveNote:g}=v;let e=200,c,p,u;const N=ue([Y,oe,be,pe,we],([o,w,d,b,h])=>({game:o,guessed:w,scale:d,played:b,target:h}));de(()=>{x(),N.subscribe(o=>ce(o))});function M(o,w){const d=w.flats>0?w.flats:w.sharps,b=o.flats>0?o.flats:o.sharps,h=o.flats>0?"b":"#",m=(w.flats>0?_e:ve).slice(0,d),r=m.find(T=>T===o.note.slice(0,2))?b-1:b,_=o.note.length===1&&m.find(T=>T.charAt(0)===o.note.charAt(0));return{...o,parts:[o.note.charAt(0),`${_?"n":h.repeat(r)}`,ae(o.midi)]}}function x(){p=new n(c,n.Backends.SVG),p.resize(732,360),u=p.getContext(),u.scale(2,2),new v.TickContext;const o=new f(0,0,e).addClef("treble").addKeySignature("B"),w=new f(0,60,e).addClef("bass").addKeySignature("B"),d=[new g({keys:["g#/4"],duration:"q"}),new g({keys:["b/4"],duration:"qr"}),new g({keys:["c/4"],duration:"q"}),new g({keys:["a/4","c/5","e/5"],duration:"q"})],b=[new g({clef:"bass",keys:["f/3"],duration:"q"}),new g({clef:"bass",keys:["b/3"],duration:"qr"}),new g({clef:"bass",keys:["b/2"],duration:"q"}),new g({clef:"bass",keys:["c/3","e/3","g/3"],duration:"q"})];d[0].addModifier(new l("#"),0);const h=new v.Voice({num_beats:4,beat_value:4}).addTickables(d),m=new v.Voice({num_beats:4,beat_value:4}).addTickables(b),r=Math.max(o.getNoteStartX(),w.getNoteStartX());o.setNoteStartX(r),w.setNoteStartX(r);const _=new v.Formatter;_.joinVoices([h]),_.joinVoices([m]),_.format([h,m],e-10-r),h.draw(u,o),m.draw(u,w),o.setContext(u).draw(),w.setContext(u).draw()}function Z(o,w){const d=[],b=[];for(let m=0;m0){const m=new v.StaveNote({clef:"bass",keys:d.map(r=>`${r.parts[0]}${r.parts[1]}/${r.parts[2]}`),duration:"w"}).setAttribute("clef","bass");d.forEach((r,_)=>{r.parts[1]&&m.addModifier(new l(r.parts[1]),_),r.color&&m.setStyle({fillStyle:r.color})}),h.push(m)}if(b.length>0){const m=new v.StaveNote({clef:"treble",keys:b.map(r=>`${r.parts[0]}${r.parts[1]}/${r.parts[2]}`),duration:"w"}).setAttribute("clef","treble");b.forEach((r,_)=>{r.parts[1]&&m.addModifier(new l(r.parts[1]),_),r.color&&m.setStyle({fillStyle:r.color})}),h.push(m)}return h}function le(o,w){const d=[],b=[];return o.forEach(h=>{h.getAttribute("clef")==="treble"?d.push(h):b.push(h)}),d.length===0&&b.length>0&&w.length>0?d.push(new v.StaveNote({clef:"treble",keys:["G/4"],duration:"w"}).setStyle({fillStyle:"#fff"})):b.length===0&&d.length>0&&w.length>0&&b.push(new v.StaveNote({clef:"bass",keys:["F/3"],duration:"w"}).setStyle({fillStyle:"#fff"})),d.push(...w.filter(h=>h.getAttribute("clef")==="treble")),b.push(...w.filter(h=>h.getAttribute("clef")==="bass")),[d,b]}function ce({game:o,guessed:w,scale:d,played:b,target:h}){const m=d.majorSignature.replaceAll("♭","b").replaceAll("♯","#");e=200+Math.max(d.flats,d.sharps)*10,u.clear(),u.scale(.5,.5);const r=new f(0,0,e).addClef("treble").addKeySignature(m),_=new f(0,60,e).addClef("bass"),T=Z(h,d),O=Z(b,d),[P,R]=le(T,O),k=[];P.length>0&&k.push(new v.Voice({num_beats:4,beat_value:4}).setMode(2).addTickables(P)),R.length>0&&k.push(new v.Voice({num_beats:4,beat_value:4}).setMode(2).addTickables(R));const z=Math.max(r.getNoteStartX(),_.getNoteStartX());r.setNoteStartX(z),_.setNoteStartX(z);const ee=new v.Formatter;k.forEach(fe=>{ee.joinVoices([fe])}),k.length>0&&ee.format(k,e-10-z),P.length>0&&k[0].draw(u,r),R.length>0&&k[k.length-1].draw(u,_),r.setContext(u).draw(),_.setContext(u).draw()}function ie(o){he[o?"unshift":"push"](()=>{c=o,s(0,c)})}return i.$$set=o=>{s(1,t=G(G({},t),q(o)))},t=q(t),[c,t,ie]}class Xe extends Q{constructor(t){super(),U(this,t,xe,Ve,J,{})}}export{Xe as default}; +import{S as Q,i as U,s as J,O as ne,e as A,H as F,a as C,b as E,I,d as y,f as S,L as B,g as W,h as V,J as j,p as re,t as D,l as $,K,M as X,N as G,P as q,m as te,o as se,Q as ue,r as de,F as he}from"./vendor_svelte.92aa1392.js";import{F as v}from"./vendor_vexflow.2dfca40b.js";import{p as me,g as oe,c as Y,G as H,a as L,b as ge,s as be,d as pe,t as we,e as ae,F as _e,S as ve}from"./3.715a6b2e.js";import{d as ye,a as Se}from"./vendor.1acf520b.js";function Ne(i){let t,s,l,a,n,f,g;return l=new ne({props:{icon:ye,width:32}}),{c(){t=A("div"),s=A("button"),F(l.$$.fragment),this.h()},l(e){t=C(e,"DIV",{class:!0});var c=E(t);s=C(c,"BUTTON",{class:!0});var p=E(s);I(l.$$.fragment,p),p.forEach(y),c.forEach(y),this.h()},h(){S(s,"class","flex items-center justify-center rounded px-1 py-1 hover:bg-gray-200"),S(t,"class",a=`${i[2].class||""}`),B(t,"hidden",!i[0])},m(e,c){W(e,t,c),V(t,s),j(l,s,null),n=!0,f||(g=re(s,"click",i[1]),f=!0)},p(e,[c]){(!n||c&4&&a!==(a=`${e[2].class||""}`))&&S(t,"class",a),(!n||c&5)&&B(t,"hidden",!e[0])},i(e){n||(D(l.$$.fragment,e),n=!0)},o(e){$(l.$$.fragment,e),n=!1},d(e){e&&y(t),K(l),f=!1,g()}}}function ke(i,t,s){let l,a,n,f;X(i,me,e=>s(4,a=e)),X(i,oe,e=>s(5,n=e)),X(i,Y,e=>s(3,f=e));function g(){var c;const e=f;e instanceof H&&n==="waiting"?a==null||a.playChord(e.current.notes.map(p=>p.midi)):e instanceof H?a==null||a.playChord((((c=e.latestGuess.target)==null?void 0:c.notes)||[]).map(p=>p.midi)):e instanceof L&&n==="waiting"?a==null||a.noteOn(e.current):e instanceof L&&(a==null||a.noteOn(e.latestGuess.target||0))}return i.$$set=e=>{s(2,t=G(G({},t),q(e)))},i.$$.update=()=>{i.$$.dirty&8&&s(0,l=f instanceof H||f instanceof L)},t=q(t),[l,g,t,f]}class Ae extends Q{constructor(t){super(),U(this,t,ke,Ne,J,{})}}function Ce(i){let t,s,l,a,n,f,g;return l=new ne({props:{icon:Se,width:32}}),{c(){t=A("div"),s=A("button"),F(l.$$.fragment),this.h()},l(e){t=C(e,"DIV",{class:!0});var c=E(t);s=C(c,"BUTTON",{class:!0});var p=E(s);I(l.$$.fragment,p),p.forEach(y),c.forEach(y),this.h()},h(){S(s,"class","flex items-center justify-center rounded px-1 py-1 hover:bg-gray-200"),S(t,"class",a=`${i[2].class||""}`),B(t,"hidden",!i[0])},m(e,c){W(e,t,c),V(t,s),j(l,s,null),n=!0,f||(g=re(s,"click",i[1]),f=!0)},p(e,[c]){(!n||c&4&&a!==(a=`${e[2].class||""}`))&&S(t,"class",a),(!n||c&5)&&B(t,"hidden",!e[0])},i(e){n||(D(l.$$.fragment,e),n=!0)},o(e){$(l.$$.fragment,e),n=!1},d(e){e&&y(t),K(l),f=!1,g()}}}function Ee(i,t,s){let l;X(i,Y,n=>s(0,l=n));function a(){ge.clearGame()}return i.$$set=n=>{s(2,t=G(G({},t),q(n)))},t=q(t),[l,a,t]}class Te extends Q{constructor(t){super(),U(this,t,Ee,Ce,J,{})}}function Ve(i){let t,s,l,a,n,f,g,e,c,p;return f=new Ae({props:{class:"mr-2"}}),e=new Te({}),{c(){t=A("section"),s=A("div"),l=te(),a=A("div"),n=A("div"),F(f.$$.fragment),g=te(),F(e.$$.fragment),this.h()},l(u){t=C(u,"SECTION",{class:!0});var N=E(t);s=C(N,"DIV",{id:!0}),E(s).forEach(y),l=se(N),a=C(N,"DIV",{class:!0});var M=E(a);n=C(M,"DIV",{class:!0});var x=E(n);I(f.$$.fragment,x),g=se(x),I(e.$$.fragment,x),x.forEach(y),M.forEach(y),N.forEach(y),this.h()},h(){S(s,"id","output"),S(n,"class","flex"),S(a,"class","absolute left-0 top-[18.5rem]"),S(t,"class",c=`${i[1].class||""} relative`)},m(u,N){W(u,t,N),V(t,s),i[2](s),V(t,l),V(t,a),V(a,n),j(f,n,null),V(n,g),j(e,n,null),p=!0},p(u,[N]){(!p||N&2&&c!==(c=`${u[1].class||""} relative`))&&S(t,"class",c)},i(u){p||(D(f.$$.fragment,u),D(e.$$.fragment,u),p=!0)},o(u){$(f.$$.fragment,u),$(e.$$.fragment,u),p=!1},d(u){u&&y(t),i[2](null),K(f),K(e)}}}function xe(i,t,s){const{Accidental:l,Formatter:a,Renderer:n,Stave:f,StaveNote:g}=v;let e=200,c,p,u;const N=ue([Y,oe,be,pe,we],([o,w,d,b,h])=>({game:o,guessed:w,scale:d,played:b,target:h}));de(()=>{x(),N.subscribe(o=>ce(o))});function M(o,w){const d=w.flats>0?w.flats:w.sharps,b=o.flats>0?o.flats:o.sharps,h=o.flats>0?"b":"#",m=(w.flats>0?_e:ve).slice(0,d),r=m.find(T=>T===o.note.slice(0,2))?b-1:b,_=o.note.length===1&&m.find(T=>T.charAt(0)===o.note.charAt(0));return{...o,parts:[o.note.charAt(0),`${_?"n":h.repeat(r)}`,ae(o.midi)]}}function x(){p=new n(c,n.Backends.SVG),p.resize(732,360),u=p.getContext(),u.scale(2,2),new v.TickContext;const o=new f(0,0,e).addClef("treble").addKeySignature("B"),w=new f(0,60,e).addClef("bass").addKeySignature("B"),d=[new g({keys:["g#/4"],duration:"q"}),new g({keys:["b/4"],duration:"qr"}),new g({keys:["c/4"],duration:"q"}),new g({keys:["a/4","c/5","e/5"],duration:"q"})],b=[new g({clef:"bass",keys:["f/3"],duration:"q"}),new g({clef:"bass",keys:["b/3"],duration:"qr"}),new g({clef:"bass",keys:["b/2"],duration:"q"}),new g({clef:"bass",keys:["c/3","e/3","g/3"],duration:"q"})];d[0].addModifier(new l("#"),0);const h=new v.Voice({num_beats:4,beat_value:4}).addTickables(d),m=new v.Voice({num_beats:4,beat_value:4}).addTickables(b),r=Math.max(o.getNoteStartX(),w.getNoteStartX());o.setNoteStartX(r),w.setNoteStartX(r);const _=new v.Formatter;_.joinVoices([h]),_.joinVoices([m]),_.format([h,m],e-10-r),h.draw(u,o),m.draw(u,w),o.setContext(u).draw(),w.setContext(u).draw()}function Z(o,w){const d=[],b=[];for(let m=0;m0){const m=new v.StaveNote({clef:"bass",keys:d.map(r=>`${r.parts[0]}${r.parts[1]}/${r.parts[2]}`),duration:"w"}).setAttribute("clef","bass");d.forEach((r,_)=>{r.parts[1]&&m.addModifier(new l(r.parts[1]),_),r.color&&m.setStyle({fillStyle:r.color})}),h.push(m)}if(b.length>0){const m=new v.StaveNote({clef:"treble",keys:b.map(r=>`${r.parts[0]}${r.parts[1]}/${r.parts[2]}`),duration:"w"}).setAttribute("clef","treble");b.forEach((r,_)=>{r.parts[1]&&m.addModifier(new l(r.parts[1]),_),r.color&&m.setStyle({fillStyle:r.color})}),h.push(m)}return h}function le(o,w){const d=[],b=[];return o.forEach(h=>{h.getAttribute("clef")==="treble"?d.push(h):b.push(h)}),d.length===0&&b.length>0&&w.length>0?d.push(new v.StaveNote({clef:"treble",keys:["G/4"],duration:"w"}).setStyle({fillStyle:"#fff"})):b.length===0&&d.length>0&&w.length>0&&b.push(new v.StaveNote({clef:"bass",keys:["F/3"],duration:"w"}).setStyle({fillStyle:"#fff"})),d.push(...w.filter(h=>h.getAttribute("clef")==="treble")),b.push(...w.filter(h=>h.getAttribute("clef")==="bass")),[d,b]}function ce({game:o,guessed:w,scale:d,played:b,target:h}){const m=d.majorSignature.replaceAll("♭","b").replaceAll("♯","#");e=200+Math.max(d.flats,d.sharps)*10,u.clear(),u.scale(.5,.5);const r=new f(0,0,e).addClef("treble").addKeySignature(m),_=new f(0,60,e).addClef("bass"),T=Z(h,d),O=Z(b,d),[P,R]=le(T,O),k=[];P.length>0&&k.push(new v.Voice({num_beats:4,beat_value:4}).setMode(2).addTickables(P)),R.length>0&&k.push(new v.Voice({num_beats:4,beat_value:4}).setMode(2).addTickables(R));const z=Math.max(r.getNoteStartX(),_.getNoteStartX());r.setNoteStartX(z),_.setNoteStartX(z);const ee=new v.Formatter;k.forEach(fe=>{ee.joinVoices([fe])}),k.length>0&&ee.format(k,e-10-z),P.length>0&&k[0].draw(u,r),R.length>0&&k[k.length-1].draw(u,_),r.setContext(u).draw(),_.setContext(u).draw()}function ie(o){he[o?"unshift":"push"](()=>{c=o,s(0,c)})}return i.$$set=o=>{s(1,t=G(G({},t),q(o)))},t=q(t),[c,t,ie]}class Xe extends Q{constructor(t){super(),U(this,t,xe,Ve,J,{})}}export{Xe as default}; diff --git a/_app/immutable/chunks/arabic-TJdw9TqS.cd2ea0d3.js b/_app/immutable/chunks/arabic-TJdw9TqS.cd2ea0d3.js new file mode 100644 index 00000000..dcc73357 --- /dev/null +++ b/_app/immutable/chunks/arabic-TJdw9TqS.cd2ea0d3.js @@ -0,0 +1 @@ +const t={layout:{default:["ذ 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} ض ص ث ق ف غ ع ه خ ح ج د \\","{lock} ش س ي ب ل ا ت ن م ك ط {enter}","{shift} ئ ء ؤ ر لا ى ة و ز ظ {shift}",".com @ {space}"],shift:["ّ ! @ # $ % ^ & * ) ( _ + {bksp}","{tab} َ ً ُ ٌ لإ إ ‘ ÷ × ؛ < > |",'{lock} ِ ٍ ] [ لأ أ ـ ، / : " {enter}',"{shift} ~ ْ } { لآ آ ’ , . ؟ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/armenianEastern-LNw2V_Kb.e28a3752.js b/_app/immutable/chunks/armenianEastern-LNw2V_Kb.e28a3752.js new file mode 100644 index 00000000..6c11014d --- /dev/null +++ b/_app/immutable/chunks/armenianEastern-LNw2V_Kb.e28a3752.js @@ -0,0 +1 @@ +const t={layout:{default:["՝ : ձ յ ՛ , - . « » օ ռ ժ {bksp}","{tab} խ ւ է ր տ ե ը ի ո պ չ ջ","{lock} ա ս դ ֆ ք հ ճ կ լ թ փ ' {enter}","{shift} զ ց գ վ բ ն մ շ ղ ծ {shift}",".com @ {space}"],shift:["՜ 1 Ձ Յ 3 4 9 և ( ) Օ Ռ Ժ {bksp}","{tab} Խ Ւ Է Ր Տ Ե Ը Ի Ո Պ Չ Ջ","{lock} Ա Ս Դ Ֆ Ք Հ Ճ Կ Լ Թ Փ ՞ {enter}","{shift} Զ Ց Գ Վ Բ Ն Մ Շ Ղ Ծ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/armenianWestern-zmIyLd1o.38785f27.js b/_app/immutable/chunks/armenianWestern-zmIyLd1o.38785f27.js new file mode 100644 index 00000000..6f8357cc --- /dev/null +++ b/_app/immutable/chunks/armenianWestern-zmIyLd1o.38785f27.js @@ -0,0 +1 @@ +const t={layout:{default:["՝ : ձ յ ՛ , - . « » օ ռ ժ {bksp}","{tab} խ վ է ր դ ե ը ի ո պ չ ջ","{lock} ա ս տ ֆ կ հ ճ ք լ թ փ ' {enter}","{shift} զ ց գ ւ բ ն մ շ ղ ծ {shift}",".com @ {space}"],shift:["՜ 1 Ձ Յ 3 4 9 և ( ) Օ Ռ Ժ {bksp}","{tab} Խ Վ Է Ր Դ Ե Ը Ի Ո Պ Չ Ջ","{lock} Ա Ս Տ Ֆ Կ Հ Ճ Ք Լ Թ Փ ՞ {enter}","{shift} Զ Ց Գ Ւ Բ Ն Մ Շ Ղ Ծ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/assamese-2fg5TKew.e3a11680.js b/_app/immutable/chunks/assamese-2fg5TKew.e3a11680.js new file mode 100644 index 00000000..11f9bf01 --- /dev/null +++ b/_app/immutable/chunks/assamese-2fg5TKew.e3a11680.js @@ -0,0 +1 @@ +const s={layout:{default:["॥ ১ ২ ৩ ৪ ৫ ৬ ৭ ৮ ৯ ০ - ৃ {bksp}","{tab} ৌ ৈ া ী ূ ব হ গ দ জ ড ়","ো ে ্ ি ু প ৰ ক ত চ ট {enter}","{shift} ং ম ন ৱ ল স , . য় {shift}",".com @ {space}"],shift:["! @ ( ) ঃ ঋ {bksp}","{tab} ঔ ঐ আ ঘ ঊ ভ ঙ ঘ ধ ঝ ঢ ঞ","ও এ অ ই উ ফ খ থ ছ ছ ঠ {enter}","{shift} ঁ ণ শ ষ । য {shift}",".com @ {space}"]}};export{s as default}; diff --git a/_app/immutable/chunks/balochi-KrgUS2RK.d85c6f1a.js b/_app/immutable/chunks/balochi-KrgUS2RK.d85c6f1a.js new file mode 100644 index 00000000..2df00e12 --- /dev/null +++ b/_app/immutable/chunks/balochi-KrgUS2RK.d85c6f1a.js @@ -0,0 +1 @@ +const t={layout:{default:["ً ١ ٢ ٣ ۴ ۵ ۶ ۷ ۸ ۹ ۰ - = {bksp}","{tab} ق و ع ر ت ے ء ى ہ پ [ ] \\","{lock} ا س د ف گ ھ ج ک ل ؛ ۂ {enter}","{shift} ز ش چ ط ب ن م ، ۔ ْ {shift}",".com @ {space}"],shift:["~ ! @ # $ ٪ } { * ( ) _ ّ + {bksp}","{tab} ءُ ؤ ءِ ڑ ٹ ئے ٰ ئ ْ ُ “ ”","{lock} آ ص ڈ ءَ غ ح ض خ ئِے : ‘ {enter}","{shift} ذ ژ ث ظ یٔ ں اَنت ِ َ ؟ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/belarusian--mjombxK.1fcd2897.js b/_app/immutable/chunks/belarusian--mjombxK.1fcd2897.js new file mode 100644 index 00000000..04b75179 --- /dev/null +++ b/_app/immutable/chunks/belarusian--mjombxK.1fcd2897.js @@ -0,0 +1 @@ +const t={layout:{default:["ё ` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} й ц у к е н г ш ў з х [ ] \\","{lock} ф ы в а п р о л д ж э ; ' {enter}","{shift} я ч с м і т ь б ю , . / {shift}",".com @ {space}"],shift:["Ё ~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Й Ц У К Е Н Г Ш Ў З Х { } |",'{lock} Ф Ы В А П Р О Л Д Ж Э : " {enter}',"{shift} Я Ч С М І Т Ь Б Ю < > ? {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/bengali-2-qmZ9ZL.b883376f.js b/_app/immutable/chunks/bengali-2-qmZ9ZL.b883376f.js new file mode 100644 index 00000000..6dba6992 --- /dev/null +++ b/_app/immutable/chunks/bengali-2-qmZ9ZL.b883376f.js @@ -0,0 +1 @@ +const t={layout:{default:["‌ ১ ২ ৩ ৪ ৫ ৬ ৭ ৮ ৯ ০ - = {bksp}","{tab} স হ ে া ি ু ো ক গ ঙ য ং ্","{lock} অ ই উ ট ড ন ত দ প ; ' {enter}","{shift} ব ম চ জ র ল শ , . / {shift}",".com @ {space}"],shift:["‍ ! ্য ্র ৳ % । র্ × ( ) ঁ + {bksp}","{tab} ও ঔ ৈ ৃ ী ূ ৌ খ ঘ ঋ য় ৎ ঃ",'{lock} আ ঈ ঊ ঠ ঢ ণ থ ধ ফ : " {enter}',"{shift} ভ ঞ ছ ঝ ড় ঢ় ষ এ ঐ ? {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/brazilian-_aUR_EdS.2b1b1fd9.js b/_app/immutable/chunks/brazilian-_aUR_EdS.2b1b1fd9.js new file mode 100644 index 00000000..43c2fd31 --- /dev/null +++ b/_app/immutable/chunks/brazilian-_aUR_EdS.2b1b1fd9.js @@ -0,0 +1 @@ +const t={layout:{default:["' 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p ´ [","{lock} a s d f g h j k l ç ~ ] {enter}","{shift} \\ z x c v b n m , . ; / {shift}",".com @ {space}"],shift:['" ! @ # $ % ̈ & * ( ) _ + {bksp}',"{tab} Q W E R T Y U I O P ` {","{lock} A S D F G H J K L Ç ^ } {enter}","{shift} | Z X C V B N M < > : ? {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/burmese-DNLMDG0C.87e404a2.js b/_app/immutable/chunks/burmese-DNLMDG0C.87e404a2.js new file mode 100644 index 00000000..774f0d28 --- /dev/null +++ b/_app/immutable/chunks/burmese-DNLMDG0C.87e404a2.js @@ -0,0 +1 @@ +const t={layout:{default:["ၐ ၁ ၂ ၃ ၄ ၅ ၆ ၇ ၈ ၉ ၀ - = {bksp}","{tab} ဆ တ န မ အ ပ က င သ စ ဟ ဩ ၏","{lock} ေ ် ိ ္ ါ ့ ျ ု ူ း ' {enter}","{shift} ဖ ထ ခ လ ဘ ည ာ , . / {shift}",".com @ {space}"],shift:["ဎ ဍ ၒ ဋ ၓ ၔ ၕ ရ * ( ) _ + {bksp}","{tab} ဈ ဝ ဣ ၎ ဤ ၌ ဥ ၍ ဿ ဏ ဧ ဪ ၑ",'{lock} ဗ ွ ီ ၤ ြ ံ ဲ ဒ ဓ ဂ " {enter}',"{shift} ဇ ဌ ဃ ဠ ယ ဉ ဦ ၊ ။ ? {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/chinese-Vv6o_huT.c292fc41.js b/_app/immutable/chunks/chinese-Vv6o_huT.c292fc41.js new file mode 100644 index 00000000..5e49aac0 --- /dev/null +++ b/_app/immutable/chunks/chinese-Vv6o_huT.c292fc41.js @@ -0,0 +1 @@ +const n={layout:{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m . - / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ) ( _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},layoutCandidates:{a:"阿 啊 呵 腌 嗄 吖 锕",e:"额 阿 俄 恶 鹅 遏 鄂 厄 饿 峨 扼 娥 鳄 哦 蛾 噩 愕 讹 锷 垩 婀 鹗 萼 谔 莪 腭 锇 颚 呃 阏 屙 苊 轭",ai:"爱 埃 艾 碍 癌 哀 挨 矮 隘 蔼 唉 皑 哎 霭 捱 暧 嫒 嗳 瑷 嗌 锿 砹",ei:"诶",xi:"系 西 席 息 希 习 吸 喜 细 析 戏 洗 悉 锡 溪 惜 稀 袭 夕 洒 晰 昔 牺 腊 烯 熙 媳 栖 膝 隙 犀 蹊 硒 兮 熄 曦 禧 嬉 玺 奚 汐 徙 羲 铣 淅 嘻 歙 熹 矽 蟋 郗 唏 皙 隰 樨 浠 忾 蜥 檄 郄 翕 阋 鳃 舾 屣 葸 螅 咭 粞 觋 欷 僖 醯 鼷 裼 穸 饩 舄 禊 诶 菥 蓰",yi:"一 以 已 意 议 义 益 亿 易 医 艺 食 依 移 衣 异 伊 仪 宜 射 遗 疑 毅 谊 亦 疫 役 忆 抑 尾 乙 译 翼 蛇 溢 椅 沂 泄 逸 蚁 夷 邑 怡 绎 彝 裔 姨 熠 贻 矣 屹 颐 倚 诣 胰 奕 翌 疙 弈 轶 蛾 驿 壹 猗 臆 弋 铱 旖 漪 迤 佚 翊 诒 怿 痍 懿 饴 峄 揖 眙 镒 仡 黟 肄 咿 翳 挹 缢 呓 刈 咦 嶷 羿 钇 殪 荑 薏 蜴 镱 噫 癔 苡 悒 嗌 瘗 衤 佾 埸 圯 舣 酏 劓",an:"安 案 按 岸 暗 鞍 氨 俺 胺 铵 谙 庵 黯 鹌 桉 埯 犴 揞 厂 广",han:"厂 汉 韩 含 旱 寒 汗 涵 函 喊 憾 罕 焊 翰 邯 撼 瀚 憨 捍 酣 悍 鼾 邗 颔 蚶 晗 菡 旰 顸 犴 焓 撖",ang:"昂 仰 盎 肮",ao:"奥 澳 傲 熬 凹 鳌 敖 遨 鏖 袄 坳 翱 嗷 拗 懊 岙 螯 骜 獒 鏊 艹 媪 廒 聱",wa:"瓦 挖 娃 洼 袜 蛙 凹 哇 佤 娲 呙 腽",yu:"于 与 育 余 预 域 予 遇 奥 语 誉 玉 鱼 雨 渔 裕 愈 娱 欲 吁 舆 宇 羽 逾 豫 郁 寓 吾 狱 喻 御 浴 愉 禹 俞 邪 榆 愚 渝 尉 淤 虞 屿 峪 粥 驭 瑜 禺 毓 钰 隅 芋 熨 瘀 迂 煜 昱 汩 於 臾 盂 聿 竽 萸 妪 腴 圄 谕 觎 揄 龉 谀 俣 馀 庾 妤 瘐 鬻 欤 鹬 阈 嵛 雩 鹆 圉 蜮 伛 纡 窬 窳 饫 蓣 狳 肀 舁 蝓 燠",niu:"牛 纽 扭 钮 拗 妞 忸 狃",o:"哦 噢 喔",ba:"把 八 巴 拔 伯 吧 坝 爸 霸 罢 芭 跋 扒 叭 靶 疤 笆 耙 鲅 粑 岜 灞 钯 捌 菝 魃 茇",pa:"怕 帕 爬 扒 趴 琶 啪 葩 耙 杷 钯 筢",pi:"被 批 副 否 皮 坏 辟 啤 匹 披 疲 罢 僻 毗 坯 脾 譬 劈 媲 屁 琵 邳 裨 痞 癖 陂 丕 枇 噼 霹 吡 纰 砒 铍 淠 郫 埤 濞 睥 芘 蚍 圮 鼙 罴 蜱 疋 貔 仳 庀 擗 甓 陴",bi:"比 必 币 笔 毕 秘 避 闭 佛 辟 壁 弊 彼 逼 碧 鼻 臂 蔽 拂 泌 璧 庇 痹 毙 弼 匕 鄙 陛 裨 贲 敝 蓖 吡 篦 纰 俾 铋 毖 筚 荸 薜 婢 哔 跸 濞 秕 荜 愎 睥 妣 芘 箅 髀 畀 滗 狴 萆 嬖 襞 舭",bai:"百 白 败 摆 伯 拜 柏 佰 掰 呗 擘 捭 稗",bo:"波 博 播 勃 拨 薄 佛 伯 玻 搏 柏 泊 舶 剥 渤 卜 驳 簿 脖 膊 簸 菠 礴 箔 铂 亳 钵 帛 擘 饽 跛 钹 趵 檗 啵 鹁 擗 踣",bei:"北 被 备 倍 背 杯 勃 贝 辈 悲 碑 臂 卑 悖 惫 蓓 陂 钡 狈 呗 焙 碚 褙 庳 鞴 孛 鹎 邶 鐾",ban:"办 版 半 班 般 板 颁 伴 搬 斑 扮 拌 扳 瓣 坂 阪 绊 钣 瘢 舨 癍",pan:"判 盘 番 潘 攀 盼 拚 畔 胖 叛 拌 蹒 磐 爿 蟠 泮 袢 襻 丬",bin:"份 宾 频 滨 斌 彬 濒 殡 缤 鬓 槟 摈 膑 玢 镔 豳 髌 傧",bang:"帮 邦 彭 旁 榜 棒 膀 镑 绑 傍 磅 蚌 谤 梆 浜 蒡",pang:"旁 庞 乓 磅 螃 彷 滂 逄 耪",beng:"泵 崩 蚌 蹦 迸 绷 甭 嘣 甏 堋",bao:"报 保 包 宝 暴 胞 薄 爆 炮 饱 抱 堡 剥 鲍 曝 葆 瀑 豹 刨 褒 雹 孢 苞 煲 褓 趵 鸨 龅 勹",bu:"不 部 步 布 补 捕 堡 埔 卜 埠 簿 哺 怖 钚 卟 瓿 逋 晡 醭 钸",pu:"普 暴 铺 浦 朴 堡 葡 谱 埔 扑 仆 蒲 曝 瀑 溥 莆 圃 璞 濮 菩 蹼 匍 噗 氆 攵 镨 攴 镤",mian:"面 棉 免 绵 缅 勉 眠 冕 娩 腼 渑 湎 沔 黾 宀 眄",po:"破 繁 坡 迫 颇 朴 泊 婆 泼 魄 粕 鄱 珀 陂 叵 笸 泺 皤 钋 钷",fan:"反 范 犯 繁 饭 泛 翻 凡 返 番 贩 烦 拚 帆 樊 藩 矾 梵 蕃 钒 幡 畈 蘩 蹯 燔",fu:"府 服 副 负 富 复 福 夫 妇 幅 付 扶 父 符 附 腐 赴 佛 浮 覆 辅 傅 伏 抚 赋 辐 腹 弗 肤 阜 袱 缚 甫 氟 斧 孚 敷 俯 拂 俘 咐 腑 孵 芙 涪 釜 脯 茯 馥 宓 绂 讣 呋 罘 麸 蝠 匐 芾 蜉 跗 凫 滏 蝮 驸 绋 蚨 砩 桴 赙 菔 呒 趺 苻 拊 阝 鲋 怫 稃 郛 莩 幞 祓 艴 黻 黼 鳆",ben:"本 体 奔 苯 笨 夯 贲 锛 畚 坌",feng:"风 丰 封 峰 奉 凤 锋 冯 逢 缝 蜂 枫 疯 讽 烽 俸 沣 酆 砜 葑 唪",bian:"变 便 边 编 遍 辩 鞭 辨 贬 匾 扁 卞 汴 辫 砭 苄 蝙 鳊 弁 窆 笾 煸 褊 碥 忭 缏",pian:"便 片 篇 偏 骗 翩 扁 骈 胼 蹁 谝 犏 缏",zhen:"镇 真 针 圳 振 震 珍 阵 诊 填 侦 臻 贞 枕 桢 赈 祯 帧 甄 斟 缜 箴 疹 砧 榛 鸩 轸 稹 溱 蓁 胗 椹 朕 畛 浈",biao:"表 标 彪 镖 裱 飚 膘 飙 镳 婊 骠 飑 杓 髟 鳔 灬 瘭",piao:"票 朴 漂 飘 嫖 瓢 剽 缥 殍 瞟 骠 嘌 莩 螵",huo:"和 活 或 货 获 火 伙 惑 霍 祸 豁 嚯 藿 锪 蠖 钬 耠 镬 夥 灬 劐 攉",bie:"别 鳖 憋 瘪 蹩",min:"民 敏 闽 闵 皿 泯 岷 悯 珉 抿 黾 缗 玟 愍 苠 鳘",fen:"分 份 纷 奋 粉 氛 芬 愤 粪 坟 汾 焚 酚 吩 忿 棼 玢 鼢 瀵 偾 鲼",bing:"并 病 兵 冰 屏 饼 炳 秉 丙 摒 柄 槟 禀 枋 邴 冫",geng:"更 耕 颈 庚 耿 梗 埂 羹 哽 赓 绠 鲠",fang:"方 放 房 防 访 纺 芳 仿 坊 妨 肪 邡 舫 彷 枋 鲂 匚 钫",xian:"现 先 县 见 线 限 显 险 献 鲜 洗 宪 纤 陷 闲 贤 仙 衔 掀 咸 嫌 掺 羡 弦 腺 痫 娴 舷 馅 酰 铣 冼 涎 暹 籼 锨 苋 蚬 跹 岘 藓 燹 鹇 氙 莶 霰 跣 猃 彡 祆 筅",fou:"不 否 缶",ca:"拆 擦 嚓 礤",cha:"查 察 差 茶 插 叉 刹 茬 楂 岔 诧 碴 嚓 喳 姹 杈 汊 衩 搽 槎 镲 苴 檫 馇 锸 猹",cai:"才 采 财 材 菜 彩 裁 蔡 猜 踩 睬",can:"参 残 餐 灿 惨 蚕 掺 璨 惭 粲 孱 骖 黪",shen:"信 深 参 身 神 什 审 申 甚 沈 伸 慎 渗 肾 绅 莘 呻 婶 娠 砷 蜃 哂 椹 葚 吲 糁 渖 诜 谂 矧 胂",cen:"参 岑 涔",san:"三 参 散 伞 叁 糁 馓 毵",cang:"藏 仓 苍 沧 舱 臧 伧",zang:"藏 脏 葬 赃 臧 奘 驵",chen:"称 陈 沈 沉 晨 琛 臣 尘 辰 衬 趁 忱 郴 宸 谌 碜 嗔 抻 榇 伧 谶 龀 肜",cao:"草 操 曹 槽 糙 嘈 漕 螬 艚 屮",ce:"策 测 册 侧 厕 栅 恻",ze:"责 则 泽 择 侧 咋 啧 仄 箦 赜 笮 舴 昃 迮 帻",zhai:"债 择 齐 宅 寨 侧 摘 窄 斋 祭 翟 砦 瘵 哜",dao:"到 道 导 岛 倒 刀 盗 稻 蹈 悼 捣 叨 祷 焘 氘 纛 刂 帱 忉",ceng:"层 曾 蹭 噌",zha:"查 扎 炸 诈 闸 渣 咋 乍 榨 楂 札 栅 眨 咤 柞 喳 喋 铡 蚱 吒 怍 砟 揸 痄 哳 齄",chai:"差 拆 柴 钗 豺 侪 虿 瘥",ci:"次 此 差 词 辞 刺 瓷 磁 兹 慈 茨 赐 祠 伺 雌 疵 鹚 糍 呲 粢",zi:"资 自 子 字 齐 咨 滋 仔 姿 紫 兹 孜 淄 籽 梓 鲻 渍 姊 吱 秭 恣 甾 孳 訾 滓 锱 辎 趑 龇 赀 眦 缁 呲 笫 谘 嵫 髭 茈 粢 觜 耔",cuo:"措 错 磋 挫 搓 撮 蹉 锉 厝 嵯 痤 矬 瘥 脞 鹾",chan:"产 单 阐 崭 缠 掺 禅 颤 铲 蝉 搀 潺 蟾 馋 忏 婵 孱 觇 廛 谄 谗 澶 骣 羼 躔 蒇 冁",shan:"山 单 善 陕 闪 衫 擅 汕 扇 掺 珊 禅 删 膳 缮 赡 鄯 栅 煽 姗 跚 鳝 嬗 潸 讪 舢 苫 疝 掸 膻 钐 剡 蟮 芟 埏 彡 骟",zhan:"展 战 占 站 崭 粘 湛 沾 瞻 颤 詹 斩 盏 辗 绽 毡 栈 蘸 旃 谵 搌",xin:"新 心 信 辛 欣 薪 馨 鑫 芯 锌 忻 莘 昕 衅 歆 囟 忄 镡",lian:"联 连 练 廉 炼 脸 莲 恋 链 帘 怜 涟 敛 琏 镰 濂 楝 鲢 殓 潋 裢 裣 臁 奁 莶 蠊 蔹",chang:"场 长 厂 常 偿 昌 唱 畅 倡 尝 肠 敞 倘 猖 娼 淌 裳 徜 昶 怅 嫦 菖 鲳 阊 伥 苌 氅 惝 鬯",zhang:"长 张 章 障 涨 掌 帐 胀 彰 丈 仗 漳 樟 账 杖 璋 嶂 仉 瘴 蟑 獐 幛 鄣 嫜",chao:"超 朝 潮 炒 钞 抄 巢 吵 剿 绰 嘲 晁 焯 耖 怊",zhao:"着 照 招 找 召 朝 赵 兆 昭 肇 罩 钊 沼 嘲 爪 诏 濯 啁 棹 笊",zhou:"调 州 周 洲 舟 骤 轴 昼 宙 粥 皱 肘 咒 帚 胄 绉 纣 妯 啁 诌 繇 碡 籀 酎 荮",che:"车 彻 撤 尺 扯 澈 掣 坼 砗 屮",ju:"车 局 据 具 举 且 居 剧 巨 聚 渠 距 句 拒 俱 柜 菊 拘 炬 桔 惧 矩 鞠 驹 锯 踞 咀 瞿 枸 掬 沮 莒 橘 飓 疽 钜 趄 踽 遽 琚 龃 椐 苣 裾 榘 狙 倨 榉 苴 讵 雎 锔 窭 鞫 犋 屦 醵",cheng:"成 程 城 承 称 盛 抢 乘 诚 呈 净 惩 撑 澄 秤 橙 骋 逞 瞠 丞 晟 铛 埕 塍 蛏 柽 铖 酲 裎 枨",rong:"容 荣 融 绒 溶 蓉 熔 戎 榕 茸 冗 嵘 肜 狨 蝾",sheng:"生 声 升 胜 盛 乘 圣 剩 牲 甸 省 绳 笙 甥 嵊 晟 渑 眚",deng:"等 登 邓 灯 澄 凳 瞪 蹬 噔 磴 嶝 镫 簦 戥",zhi:"制 之 治 质 职 只 志 至 指 织 支 值 知 识 直 致 执 置 止 植 纸 拓 智 殖 秩 旨 址 滞 氏 枝 芝 脂 帜 汁 肢 挚 稚 酯 掷 峙 炙 栉 侄 芷 窒 咫 吱 趾 痔 蜘 郅 桎 雉 祉 郦 陟 痣 蛭 帙 枳 踯 徵 胝 栀 贽 祗 豸 鸷 摭 轵 卮 轾 彘 觯 絷 跖 埴 夂 黹 忮 骘 膣 踬",zheng:"政 正 证 争 整 征 郑 丁 症 挣 蒸 睁 铮 筝 拯 峥 怔 诤 狰 徵 钲",tang:"堂 唐 糖 汤 塘 躺 趟 倘 棠 烫 淌 膛 搪 镗 傥 螳 溏 帑 羰 樘 醣 螗 耥 铴 瑭",chi:"持 吃 池 迟 赤 驰 尺 斥 齿 翅 匙 痴 耻 炽 侈 弛 叱 啻 坻 眙 嗤 墀 哧 茌 豉 敕 笞 饬 踟 蚩 柢 媸 魑 篪 褫 彳 鸱 螭 瘛 眵 傺",shi:"是 时 实 事 市 十 使 世 施 式 势 视 识 师 史 示 石 食 始 士 失 适 试 什 泽 室 似 诗 饰 殖 释 驶 氏 硕 逝 湿 蚀 狮 誓 拾 尸 匙 仕 柿 矢 峙 侍 噬 嗜 栅 拭 嘘 屎 恃 轼 虱 耆 舐 莳 铈 谥 炻 豕 鲥 饣 螫 酾 筮 埘 弑 礻 蓍 鲺 贳",qi:"企 其 起 期 气 七 器 汽 奇 齐 启 旗 棋 妻 弃 揭 枝 歧 欺 骑 契 迄 亟 漆 戚 岂 稽 岐 琦 栖 缉 琪 泣 乞 砌 祁 崎 绮 祺 祈 凄 淇 杞 脐 麒 圻 憩 芪 伎 俟 畦 耆 葺 沏 萋 骐 鳍 綦 讫 蕲 屺 颀 亓 碛 柒 啐 汔 綮 萁 嘁 蛴 槭 欹 芑 桤 丌 蜞",chuai:"揣 踹 啜 搋 膪",tuo:"托 脱 拓 拖 妥 驼 陀 沱 鸵 驮 唾 椭 坨 佗 砣 跎 庹 柁 橐 乇 铊 沲 酡 鼍 箨 柝",duo:"多 度 夺 朵 躲 铎 隋 咄 堕 舵 垛 惰 哆 踱 跺 掇 剁 柁 缍 沲 裰 哚 隳",xue:"学 血 雪 削 薛 穴 靴 谑 噱 鳕 踅 泶 彐",chong:"重 种 充 冲 涌 崇 虫 宠 忡 憧 舂 茺 铳 艟",chou:"筹 抽 绸 酬 愁 丑 臭 仇 畴 稠 瞅 踌 惆 俦 瘳 雠 帱",qiu:"求 球 秋 丘 邱 仇 酋 裘 龟 囚 遒 鳅 虬 蚯 泅 楸 湫 犰 逑 巯 艽 俅 蝤 赇 鼽 糗",xiu:"修 秀 休 宿 袖 绣 臭 朽 锈 羞 嗅 岫 溴 庥 馐 咻 髹 鸺 貅",chu:"出 处 础 初 助 除 储 畜 触 楚 厨 雏 矗 橱 锄 滁 躇 怵 绌 搐 刍 蜍 黜 杵 蹰 亍 樗 憷 楮",tuan:"团 揣 湍 疃 抟 彖",zhui:"追 坠 缀 揣 椎 锥 赘 惴 隹 骓 缒",chuan:"传 川 船 穿 串 喘 椽 舛 钏 遄 氚 巛 舡",zhuan:"专 转 传 赚 砖 撰 篆 馔 啭 颛",yuan:"元 员 院 原 源 远 愿 园 援 圆 缘 袁 怨 渊 苑 宛 冤 媛 猿 垣 沅 塬 垸 鸳 辕 鸢 瑗 圜 爰 芫 鼋 橼 螈 眢 箢 掾",cuan:"窜 攒 篡 蹿 撺 爨 汆 镩",chuang:"创 床 窗 闯 幢 疮 怆",zhuang:"装 状 庄 壮 撞 妆 幢 桩 奘 僮 戆",chui:"吹 垂 锤 炊 椎 陲 槌 捶 棰",chun:"春 纯 醇 淳 唇 椿 蠢 鹑 朐 莼 肫 蝽",zhun:"准 屯 淳 谆 肫 窀",cu:"促 趋 趣 粗 簇 醋 卒 蹴 猝 蹙 蔟 殂 徂",dun:"吨 顿 盾 敦 蹲 墩 囤 沌 钝 炖 盹 遁 趸 砘 礅",qu:"区 去 取 曲 趋 渠 趣 驱 屈 躯 衢 娶 祛 瞿 岖 龋 觑 朐 蛐 癯 蛆 苣 阒 诎 劬 蕖 蘧 氍 黢 蠼 璩 麴 鸲 磲",xu:"需 许 续 须 序 徐 休 蓄 畜 虚 吁 绪 叙 旭 邪 恤 墟 栩 絮 圩 婿 戌 胥 嘘 浒 煦 酗 诩 朐 盱 蓿 溆 洫 顼 勖 糈 砉 醑",chuo:"辍 绰 戳 淖 啜 龊 踔 辶",zu:"组 族 足 祖 租 阻 卒 俎 诅 镞 菹",ji:"济 机 其 技 基 记 计 系 期 际 及 集 级 几 给 积 极 己 纪 即 继 击 既 激 绩 急 奇 吉 季 齐 疾 迹 鸡 剂 辑 籍 寄 挤 圾 冀 亟 寂 暨 脊 跻 肌 稽 忌 饥 祭 缉 棘 矶 汲 畸 姬 藉 瘠 骥 羁 妓 讥 稷 蓟 悸 嫉 岌 叽 伎 鲫 诘 楫 荠 戟 箕 霁 嵇 觊 麂 畿 玑 笈 犄 芨 唧 屐 髻 戢 佶 偈 笄 跽 蒺 乩 咭 赍 嵴 虮 掎 齑 殛 鲚 剞 洎 丌 墼 蕺 彐 芰 哜",cong:"从 丛 匆 聪 葱 囱 琮 淙 枞 骢 苁 璁",zong:"总 从 综 宗 纵 踪 棕 粽 鬃 偬 枞 腙",cou:"凑 辏 腠 楱",cui:"衰 催 崔 脆 翠 萃 粹 摧 璀 瘁 悴 淬 啐 隹 毳 榱",wei:"为 位 委 未 维 卫 围 违 威 伟 危 味 微 唯 谓 伪 慰 尾 魏 韦 胃 畏 帷 喂 巍 萎 蔚 纬 潍 尉 渭 惟 薇 苇 炜 圩 娓 诿 玮 崴 桅 偎 逶 倭 猥 囗 葳 隗 痿 猬 涠 嵬 韪 煨 艉 隹 帏 闱 洧 沩 隈 鲔 軎",cun:"村 存 寸 忖 皴",zuo:"作 做 座 左 坐 昨 佐 琢 撮 祚 柞 唑 嘬 酢 怍 笮 阼 胙",zuan:"钻 纂 攥 缵 躜",da:"大 达 打 答 搭 沓 瘩 惮 嗒 哒 耷 鞑 靼 褡 笪 怛 妲",dai:"大 代 带 待 贷 毒 戴 袋 歹 呆 隶 逮 岱 傣 棣 怠 殆 黛 甙 埭 诒 绐 玳 呔 迨",tai:"大 台 太 态 泰 抬 胎 汰 钛 苔 薹 肽 跆 邰 鲐 酞 骀 炱",ta:"他 它 她 拓 塔 踏 塌 榻 沓 漯 獭 嗒 挞 蹋 趿 遢 铊 鳎 溻 闼",dan:"但 单 石 担 丹 胆 旦 弹 蛋 淡 诞 氮 郸 耽 殚 惮 儋 眈 疸 澹 掸 膻 啖 箪 聃 萏 瘅 赕",lu:"路 六 陆 录 绿 露 鲁 卢 炉 鹿 禄 赂 芦 庐 碌 麓 颅 泸 卤 潞 鹭 辘 虏 璐 漉 噜 戮 鲈 掳 橹 轳 逯 渌 蓼 撸 鸬 栌 氇 胪 镥 簏 舻 辂 垆",tan:"谈 探 坦 摊 弹 炭 坛 滩 贪 叹 谭 潭 碳 毯 瘫 檀 痰 袒 坍 覃 忐 昙 郯 澹 钽 锬",ren:"人 任 认 仁 忍 韧 刃 纫 饪 妊 荏 稔 壬 仞 轫 亻 衽",jie:"家 结 解 价 界 接 节 她 届 介 阶 街 借 杰 洁 截 姐 揭 捷 劫 戒 皆 竭 桔 诫 楷 秸 睫 藉 拮 芥 诘 碣 嗟 颉 蚧 孑 婕 疖 桀 讦 疥 偈 羯 袷 哜 喈 卩 鲒 骱",yan:"研 严 验 演 言 眼 烟 沿 延 盐 炎 燕 岩 宴 艳 颜 殷 彦 掩 淹 阎 衍 铅 雁 咽 厌 焰 堰 砚 唁 焉 晏 檐 蜒 奄 俨 腌 妍 谚 兖 筵 焱 偃 闫 嫣 鄢 湮 赝 胭 琰 滟 阉 魇 酽 郾 恹 崦 芫 剡 鼹 菸 餍 埏 谳 讠 厣 罨",dang:"当 党 档 荡 挡 宕 砀 铛 裆 凼 菪 谠",tao:"套 讨 跳 陶 涛 逃 桃 萄 淘 掏 滔 韬 叨 洮 啕 绦 饕 鼗",tiao:"条 调 挑 跳 迢 眺 苕 窕 笤 佻 啁 粜 髫 铫 祧 龆 蜩 鲦",te:"特 忑 忒 铽 慝",de:"的 地 得 德 底 锝",dei:"得",di:"的 地 第 提 低 底 抵 弟 迪 递 帝 敌 堤 蒂 缔 滴 涤 翟 娣 笛 棣 荻 谛 狄 邸 嘀 砥 坻 诋 嫡 镝 碲 骶 氐 柢 籴 羝 睇 觌",ti:"体 提 题 弟 替 梯 踢 惕 剔 蹄 棣 啼 屉 剃 涕 锑 倜 悌 逖 嚏 荑 醍 绨 鹈 缇 裼",tui:"推 退 弟 腿 褪 颓 蜕 忒 煺",you:"有 由 又 优 游 油 友 右 邮 尤 忧 幼 犹 诱 悠 幽 佑 釉 柚 铀 鱿 囿 酉 攸 黝 莠 猷 蝣 疣 呦 蚴 莸 莜 铕 宥 繇 卣 牖 鼬 尢 蚰 侑",dian:"电 点 店 典 奠 甸 碘 淀 殿 垫 颠 滇 癫 巅 惦 掂 癜 玷 佃 踮 靛 钿 簟 坫 阽",tian:"天 田 添 填 甜 甸 恬 腆 佃 舔 钿 阗 忝 殄 畋 栝 掭",zhu:"主 术 住 注 助 属 逐 宁 著 筑 驻 朱 珠 祝 猪 诸 柱 竹 铸 株 瞩 嘱 贮 煮 烛 苎 褚 蛛 拄 铢 洙 竺 蛀 渚 伫 杼 侏 澍 诛 茱 箸 炷 躅 翥 潴 邾 槠 舳 橥 丶 瘃 麈 疰",nian:"年 念 酿 辗 碾 廿 捻 撵 拈 蔫 鲶 埝 鲇 辇 黏",diao:"调 掉 雕 吊 钓 刁 貂 凋 碉 鲷 叼 铫 铞",yao:"要 么 约 药 邀 摇 耀 腰 遥 姚 窑 瑶 咬 尧 钥 谣 肴 夭 侥 吆 疟 妖 幺 杳 舀 窕 窈 曜 鹞 爻 繇 徭 轺 铫 鳐 崾 珧",die:"跌 叠 蝶 迭 碟 爹 谍 牒 耋 佚 喋 堞 瓞 鲽 垤 揲 蹀",she:"设 社 摄 涉 射 折 舍 蛇 拾 舌 奢 慑 赦 赊 佘 麝 歙 畲 厍 猞 揲 滠",ye:"业 也 夜 叶 射 野 液 冶 喝 页 爷 耶 邪 咽 椰 烨 掖 拽 曳 晔 谒 腋 噎 揶 靥 邺 铘 揲",xie:"些 解 协 写 血 叶 谢 械 鞋 胁 斜 携 懈 契 卸 谐 泄 蟹 邪 歇 泻 屑 挟 燮 榭 蝎 撷 偕 亵 楔 颉 缬 邂 鲑 瀣 勰 榍 薤 绁 渫 廨 獬 躞",zhe:"这 者 着 著 浙 折 哲 蔗 遮 辙 辄 柘 锗 褶 蜇 蛰 鹧 谪 赭 摺 乇 磔 螫",ding:"定 订 顶 丁 鼎 盯 钉 锭 叮 仃 铤 町 酊 啶 碇 腚 疔 玎 耵",diu:"丢 铥",ting:"听 庭 停 厅 廷 挺 亭 艇 婷 汀 铤 烃 霆 町 蜓 葶 梃 莛",dong:"动 东 董 冬 洞 懂 冻 栋 侗 咚 峒 氡 恫 胴 硐 垌 鸫 岽 胨",tong:"同 通 统 童 痛 铜 桶 桐 筒 彤 侗 佟 潼 捅 酮 砼 瞳 恸 峒 仝 嗵 僮 垌 茼",zhong:"中 重 种 众 终 钟 忠 仲 衷 肿 踵 冢 盅 蚣 忪 锺 舯 螽 夂",dou:"都 斗 读 豆 抖 兜 陡 逗 窦 渎 蚪 痘 蔸 钭 篼",du:"度 都 独 督 读 毒 渡 杜 堵 赌 睹 肚 镀 渎 笃 竺 嘟 犊 妒 牍 蠹 椟 黩 芏 髑",duan:"断 段 短 端 锻 缎 煅 椴 簖",dui:"对 队 追 敦 兑 堆 碓 镦 怼 憝",rui:"瑞 兑 锐 睿 芮 蕊 蕤 蚋 枘",yue:"月 说 约 越 乐 跃 兑 阅 岳 粤 悦 曰 钥 栎 钺 樾 瀹 龠 哕 刖",tun:"吞 屯 囤 褪 豚 臀 饨 暾 氽",hui:"会 回 挥 汇 惠 辉 恢 徽 绘 毁 慧 灰 贿 卉 悔 秽 溃 荟 晖 彗 讳 诲 珲 堕 诙 蕙 晦 睢 麾 烩 茴 喙 桧 蛔 洄 浍 虺 恚 蟪 咴 隳 缋 哕",wu:"务 物 无 五 武 午 吴 舞 伍 污 乌 误 亡 恶 屋 晤 悟 吾 雾 芜 梧 勿 巫 侮 坞 毋 诬 呜 钨 邬 捂 鹜 兀 婺 妩 於 戊 鹉 浯 蜈 唔 骛 仵 焐 芴 鋈 庑 鼯 牾 怃 圬 忤 痦 迕 杌 寤 阢",ya:"亚 压 雅 牙 押 鸭 呀 轧 涯 崖 邪 芽 哑 讶 鸦 娅 衙 丫 蚜 碣 垭 伢 氩 桠 琊 揠 吖 睚 痖 疋 迓 岈 砑",he:"和 合 河 何 核 盖 贺 喝 赫 荷 盒 鹤 吓 呵 苛 禾 菏 壑 褐 涸 阂 阖 劾 诃 颌 嗬 貉 曷 翮 纥 盍",wo:"我 握 窝 沃 卧 挝 涡 斡 渥 幄 蜗 喔 倭 莴 龌 肟 硪",en:"恩 摁 蒽",n:"嗯 唔",er:"而 二 尔 儿 耳 迩 饵 洱 贰 铒 珥 佴 鸸 鲕",fa:"发 法 罚 乏 伐 阀 筏 砝 垡 珐",quan:"全 权 券 泉 圈 拳 劝 犬 铨 痊 诠 荃 醛 蜷 颧 绻 犭 筌 鬈 悛 辁 畎",fei:"费 非 飞 肥 废 菲 肺 啡 沸 匪 斐 蜚 妃 诽 扉 翡 霏 吠 绯 腓 痱 芾 淝 悱 狒 榧 砩 鲱 篚 镄",pei:"配 培 坏 赔 佩 陪 沛 裴 胚 妃 霈 淠 旆 帔 呸 醅 辔 锫",ping:"平 评 凭 瓶 冯 屏 萍 苹 乒 坪 枰 娉 俜 鲆",fo:"佛",hu:"和 护 许 户 核 湖 互 乎 呼 胡 戏 忽 虎 沪 糊 壶 葫 狐 蝴 弧 瑚 浒 鹄 琥 扈 唬 滹 惚 祜 囫 斛 笏 芴 醐 猢 怙 唿 戽 槲 觳 煳 鹕 冱 瓠 虍 岵 鹱 烀 轷",ga:"夹 咖 嘎 尬 噶 旮 伽 尕 钆 尜",ge:"个 合 各 革 格 歌 哥 盖 隔 割 阁 戈 葛 鸽 搁 胳 舸 疙 铬 骼 蛤 咯 圪 镉 颌 仡 硌 嗝 鬲 膈 纥 袼 搿 塥 哿 虼",ha:"哈 蛤 铪",xia:"下 夏 峡 厦 辖 霞 夹 虾 狭 吓 侠 暇 遐 瞎 匣 瑕 唬 呷 黠 硖 罅 狎 瘕 柙",gai:"改 该 盖 概 溉 钙 丐 芥 赅 垓 陔 戤",hai:"海 还 害 孩 亥 咳 骸 骇 氦 嗨 胲 醢",gan:"干 感 赶 敢 甘 肝 杆 赣 乾 柑 尴 竿 秆 橄 矸 淦 苷 擀 酐 绀 泔 坩 旰 疳 澉",gang:"港 钢 刚 岗 纲 冈 杠 缸 扛 肛 罡 戆 筻",jiang:"将 强 江 港 奖 讲 降 疆 蒋 姜 浆 匠 酱 僵 桨 绛 缰 犟 豇 礓 洚 茳 糨 耩",hang:"行 航 杭 巷 夯 吭 桁 沆 绗 颃",gong:"工 公 共 供 功 红 贡 攻 宫 巩 龚 恭 拱 躬 弓 汞 蚣 珙 觥 肱 廾",hong:"红 宏 洪 轰 虹 鸿 弘 哄 烘 泓 訇 蕻 闳 讧 荭 黉 薨",guang:"广 光 逛 潢 犷 胱 咣 桄",qiong:"穷 琼 穹 邛 茕 筇 跫 蛩 銎",gao:"高 告 搞 稿 膏 糕 镐 皋 羔 锆 杲 郜 睾 诰 藁 篙 缟 槁 槔",hao:"好 号 毫 豪 耗 浩 郝 皓 昊 皋 蒿 壕 灏 嚎 濠 蚝 貉 颢 嗥 薅 嚆",li:"理 力 利 立 里 李 历 例 离 励 礼 丽 黎 璃 厉 厘 粒 莉 梨 隶 栗 荔 沥 犁 漓 哩 狸 藜 罹 篱 鲤 砺 吏 澧 俐 骊 溧 砾 莅 锂 笠 蠡 蛎 痢 雳 俪 傈 醴 栎 郦 俚 枥 喱 逦 娌 鹂 戾 砬 唳 坜 疠 蜊 黧 猁 鬲 粝 蓠 呖 跞 疬 缡 鲡 鳢 嫠 詈 悝 苈 篥 轹",jia:"家 加 价 假 佳 架 甲 嘉 贾 驾 嫁 夹 稼 钾 挟 拮 迦 伽 颊 浃 枷 戛 荚 痂 颉 镓 笳 珈 岬 胛 袈 郏 葭 袷 瘕 铗 跏 蛱 恝 哿",luo:"落 罗 络 洛 逻 螺 锣 骆 萝 裸 漯 烙 摞 骡 咯 箩 珞 捋 荦 硌 雒 椤 镙 跞 瘰 泺 脶 猡 倮 蠃",ke:"可 科 克 客 刻 课 颗 渴 壳 柯 棵 呵 坷 恪 苛 咳 磕 珂 稞 瞌 溘 轲 窠 嗑 疴 蝌 岢 铪 颏 髁 蚵 缂 氪 骒 钶 锞",qia:"卡 恰 洽 掐 髂 袷 咭 葜",gei:"给",gen:"根 跟 亘 艮 哏 茛",hen:"很 狠 恨 痕 哏",gou:"构 购 够 句 沟 狗 钩 拘 勾 苟 垢 枸 篝 佝 媾 诟 岣 彀 缑 笱 鞲 觏 遘",kou:"口 扣 寇 叩 抠 佝 蔻 芤 眍 筘",gu:"股 古 顾 故 固 鼓 骨 估 谷 贾 姑 孤 雇 辜 菇 沽 咕 呱 锢 钴 箍 汩 梏 痼 崮 轱 鸪 牯 蛊 诂 毂 鹘 菰 罟 嘏 臌 觚 瞽 蛄 酤 牿 鲴",pai:"牌 排 派 拍 迫 徘 湃 俳 哌 蒎",gua:"括 挂 瓜 刮 寡 卦 呱 褂 剐 胍 诖 鸹 栝 呙",tou:"投 头 透 偷 愉 骰 亠",guai:"怪 拐 乖",kuai:"会 快 块 筷 脍 蒯 侩 浍 郐 蒉 狯 哙",guan:"关 管 观 馆 官 贯 冠 惯 灌 罐 莞 纶 棺 斡 矜 倌 鹳 鳏 盥 掼 涫",wan:"万 完 晚 湾 玩 碗 顽 挽 弯 蔓 丸 莞 皖 宛 婉 腕 蜿 惋 烷 琬 畹 豌 剜 纨 绾 脘 菀 芄 箢",ne:"呢 哪 呐 讷 疒",gui:"规 贵 归 轨 桂 柜 圭 鬼 硅 瑰 跪 龟 匮 闺 诡 癸 鳜 桧 皈 鲑 刽 晷 傀 眭 妫 炅 庋 簋 刿 宄 匦",jun:"军 均 俊 君 峻 菌 竣 钧 骏 龟 浚 隽 郡 筠 皲 麇 捃",jiong:"窘 炯 迥 炅 冂 扃",jue:"决 绝 角 觉 掘 崛 诀 獗 抉 爵 嚼 倔 厥 蕨 攫 珏 矍 蹶 谲 镢 鳜 噱 桷 噘 撅 橛 孓 觖 劂 爝",gun:"滚 棍 辊 衮 磙 鲧 绲 丨",hun:"婚 混 魂 浑 昏 棍 珲 荤 馄 诨 溷 阍",guo:"国 过 果 郭 锅 裹 帼 涡 椁 囗 蝈 虢 聒 埚 掴 猓 崞 蜾 呙 馘",hei:"黑 嘿 嗨",kan:"看 刊 勘 堪 坎 砍 侃 嵌 槛 瞰 阚 龛 戡 凵 莰",heng:"衡 横 恒 亨 哼 珩 桁 蘅",mo:"万 没 么 模 末 冒 莫 摩 墨 默 磨 摸 漠 脉 膜 魔 沫 陌 抹 寞 蘑 摹 蓦 馍 茉 嘿 谟 秣 蟆 貉 嫫 镆 殁 耱 嬷 麽 瘼 貊 貘",peng:"鹏 朋 彭 膨 蓬 碰 苹 棚 捧 亨 烹 篷 澎 抨 硼 怦 砰 嘭 蟛 堋",hou:"后 候 厚 侯 猴 喉 吼 逅 篌 糇 骺 後 鲎 瘊 堠",hua:"化 华 划 话 花 画 滑 哗 豁 骅 桦 猾 铧 砉",huai:"怀 坏 淮 徊 槐 踝",huan:"还 环 换 欢 患 缓 唤 焕 幻 痪 桓 寰 涣 宦 垸 洹 浣 豢 奂 郇 圜 獾 鲩 鬟 萑 逭 漶 锾 缳 擐",xun:"讯 训 迅 孙 寻 询 循 旬 巡 汛 勋 逊 熏 徇 浚 殉 驯 鲟 薰 荀 浔 洵 峋 埙 巽 郇 醺 恂 荨 窨 蕈 曛 獯",huang:"黄 荒 煌 皇 凰 慌 晃 潢 谎 惶 簧 璜 恍 幌 湟 蝗 磺 隍 徨 遑 肓 篁 鳇 蟥 癀",nai:"能 乃 奶 耐 奈 鼐 萘 氖 柰 佴 艿",luan:"乱 卵 滦 峦 鸾 栾 銮 挛 孪 脔 娈",qie:"切 且 契 窃 茄 砌 锲 怯 伽 惬 妾 趄 挈 郄 箧 慊",jian:"建 间 件 见 坚 检 健 监 减 简 艰 践 兼 鉴 键 渐 柬 剑 尖 肩 舰 荐 箭 浅 剪 俭 碱 茧 奸 歼 拣 捡 煎 贱 溅 槛 涧 堑 笺 谏 饯 锏 缄 睑 謇 蹇 腱 菅 翦 戬 毽 笕 犍 硷 鞯 牮 枧 湔 鲣 囝 裥 踺 搛 缣 鹣 蒹 谫 僭 戋 趼 楗",nan:"南 难 男 楠 喃 囡 赧 腩 囝 蝻",qian:"前 千 钱 签 潜 迁 欠 纤 牵 浅 遣 谦 乾 铅 歉 黔 谴 嵌 倩 钳 茜 虔 堑 钎 骞 阡 掮 钤 扦 芊 犍 荨 仟 芡 悭 缱 佥 愆 褰 凵 肷 岍 搴 箝 慊 椠",qiang:"强 抢 疆 墙 枪 腔 锵 呛 羌 蔷 襁 羟 跄 樯 戕 嫱 戗 炝 镪 锖 蜣",xiang:"向 项 相 想 乡 象 响 香 降 像 享 箱 羊 祥 湘 详 橡 巷 翔 襄 厢 镶 飨 饷 缃 骧 芗 庠 鲞 葙 蟓",jiao:"教 交 较 校 角 觉 叫 脚 缴 胶 轿 郊 焦 骄 浇 椒 礁 佼 蕉 娇 矫 搅 绞 酵 剿 嚼 饺 窖 跤 蛟 侥 狡 姣 皎 茭 峤 铰 醮 鲛 湫 徼 鹪 僬 噍 艽 挢 敫",zhuo:"着 著 缴 桌 卓 捉 琢 灼 浊 酌 拙 茁 涿 镯 淖 啄 濯 焯 倬 擢 斫 棹 诼 浞 禚",qiao:"桥 乔 侨 巧 悄 敲 俏 壳 雀 瞧 翘 窍 峭 锹 撬 荞 跷 樵 憔 鞘 橇 峤 诮 谯 愀 鞒 硗 劁 缲",xiao:"小 效 销 消 校 晓 笑 肖 削 孝 萧 俏 潇 硝 宵 啸 嚣 霄 淆 哮 筱 逍 姣 箫 骁 枭 哓 绡 蛸 崤 枵 魈",si:"司 四 思 斯 食 私 死 似 丝 饲 寺 肆 撕 泗 伺 嗣 祀 厮 驷 嘶 锶 俟 巳 蛳 咝 耜 笥 纟 糸 鸶 缌 澌 姒 汜 厶 兕",kai:"开 凯 慨 岂 楷 恺 揩 锴 铠 忾 垲 剀 锎 蒈",jin:"进 金 今 近 仅 紧 尽 津 斤 禁 锦 劲 晋 谨 筋 巾 浸 襟 靳 瑾 烬 缙 钅 矜 觐 堇 馑 荩 噤 廑 妗 槿 赆 衿 卺",qin:"亲 勤 侵 秦 钦 琴 禽 芹 沁 寝 擒 覃 噙 矜 嗪 揿 溱 芩 衾 廑 锓 吣 檎 螓",jing:"经 京 精 境 竞 景 警 竟 井 惊 径 静 劲 敬 净 镜 睛 晶 颈 荆 兢 靖 泾 憬 鲸 茎 腈 菁 胫 阱 旌 粳 靓 痉 箐 儆 迳 婧 肼 刭 弪 獍",ying:"应 营 影 英 景 迎 映 硬 盈 赢 颖 婴 鹰 荧 莹 樱 瑛 蝇 萦 莺 颍 膺 缨 瀛 楹 罂 荥 萤 鹦 滢 蓥 郢 茔 嘤 璎 嬴 瘿 媵 撄 潆",jiu:"就 究 九 酒 久 救 旧 纠 舅 灸 疚 揪 咎 韭 玖 臼 柩 赳 鸠 鹫 厩 啾 阄 桕 僦 鬏",zui:"最 罪 嘴 醉 咀 蕞 觜",juan:"卷 捐 圈 眷 娟 倦 绢 隽 镌 涓 鹃 鄄 蠲 狷 锩 桊",suan:"算 酸 蒜 狻",yun:"员 运 云 允 孕 蕴 韵 酝 耘 晕 匀 芸 陨 纭 郧 筠 恽 韫 郓 氲 殒 愠 昀 菀 狁",qun:"群 裙 逡 麇",ka:"卡 喀 咖 咔 咯 佧 胩",kang:"康 抗 扛 慷 炕 亢 糠 伉 钪 闶",keng:"坑 铿 吭",kao:"考 靠 烤 拷 铐 栲 尻 犒",ken:"肯 垦 恳 啃 龈 裉",yin:"因 引 银 印 音 饮 阴 隐 姻 殷 淫 尹 荫 吟 瘾 寅 茵 圻 垠 鄞 湮 蚓 氤 胤 龈 窨 喑 铟 洇 狺 夤 廴 吲 霪 茚 堙",kong:"空 控 孔 恐 倥 崆 箜",ku:"苦 库 哭 酷 裤 枯 窟 挎 骷 堀 绔 刳 喾",kua:"跨 夸 垮 挎 胯 侉",kui:"亏 奎 愧 魁 馈 溃 匮 葵 窥 盔 逵 睽 馗 聩 喟 夔 篑 岿 喹 揆 隗 傀 暌 跬 蒉 愦 悝 蝰",kuan:"款 宽 髋",kuang:"况 矿 框 狂 旷 眶 匡 筐 邝 圹 哐 贶 夼 诳 诓 纩",que:"确 却 缺 雀 鹊 阙 瘸 榷 炔 阕 悫",kun:"困 昆 坤 捆 琨 锟 鲲 醌 髡 悃 阃",kuo:"扩 括 阔 廓 蛞",la:"拉 落 垃 腊 啦 辣 蜡 喇 剌 旯 砬 邋 瘌",lai:"来 莱 赖 睐 徕 籁 涞 赉 濑 癞 崃 疠 铼",lan:"兰 览 蓝 篮 栏 岚 烂 滥 缆 揽 澜 拦 懒 榄 斓 婪 阑 褴 罱 啉 谰 镧 漤",lin:"林 临 邻 赁 琳 磷 淋 麟 霖 鳞 凛 拎 遴 蔺 吝 粼 嶙 躏 廪 檩 啉 辚 膦 瞵 懔",lang:"浪 朗 郎 廊 狼 琅 榔 螂 阆 锒 莨 啷 蒗 稂",liang:"量 两 粮 良 辆 亮 梁 凉 谅 粱 晾 靓 踉 莨 椋 魉 墚",lao:"老 劳 落 络 牢 捞 涝 烙 姥 佬 崂 唠 酪 潦 痨 醪 铑 铹 栳 耢",mu:"目 模 木 亩 幕 母 牧 莫 穆 姆 墓 慕 牟 牡 募 睦 缪 沐 暮 拇 姥 钼 苜 仫 毪 坶",le:"了 乐 勒 肋 叻 鳓 嘞 仂 泐",lei:"类 累 雷 勒 泪 蕾 垒 磊 擂 镭 肋 羸 耒 儡 嫘 缧 酹 嘞 诔 檑",sui:"随 岁 虽 碎 尿 隧 遂 髓 穗 绥 隋 邃 睢 祟 濉 燧 谇 眭 荽",lie:"列 烈 劣 裂 猎 冽 咧 趔 洌 鬣 埒 捩 躐",leng:"冷 愣 棱 楞 塄",ling:"领 令 另 零 灵 龄 陵 岭 凌 玲 铃 菱 棱 伶 羚 苓 聆 翎 泠 瓴 囹 绫 呤 棂 蛉 酃 鲮 柃",lia:"俩",liao:"了 料 疗 辽 廖 聊 寥 缪 僚 燎 缭 撂 撩 嘹 潦 镣 寮 蓼 獠 钌 尥 鹩",liu:"流 刘 六 留 柳 瘤 硫 溜 碌 浏 榴 琉 馏 遛 鎏 骝 绺 镏 旒 熘 鹨 锍",lun:"论 轮 伦 仑 纶 沦 抡 囵",lv:"率 律 旅 绿 虑 履 吕 铝 屡 氯 缕 滤 侣 驴 榈 闾 偻 褛 捋 膂 稆",lou:"楼 露 漏 陋 娄 搂 篓 喽 镂 偻 瘘 髅 耧 蝼 嵝 蒌",mao:"贸 毛 矛 冒 貌 茂 茅 帽 猫 髦 锚 懋 袤 牦 卯 铆 耄 峁 瑁 蟊 茆 蝥 旄 泖 昴 瞀",long:"龙 隆 弄 垄 笼 拢 聋 陇 胧 珑 窿 茏 咙 砻 垅 泷 栊 癃",nong:"农 浓 弄 脓 侬 哝",shuang:"双 爽 霜 孀 泷",shu:"术 书 数 属 树 输 束 述 署 朱 熟 殊 蔬 舒 疏 鼠 淑 叔 暑 枢 墅 俞 曙 抒 竖 蜀 薯 梳 戍 恕 孰 沭 赎 庶 漱 塾 倏 澍 纾 姝 菽 黍 腧 秫 毹 殳 疋 摅",shuai:"率 衰 帅 摔 甩 蟀",lve:"略 掠 锊",ma:"么 马 吗 摩 麻 码 妈 玛 嘛 骂 抹 蚂 唛 蟆 犸 杩",me:"么 麽",mai:"买 卖 麦 迈 脉 埋 霾 荬 劢",man:"满 慢 曼 漫 埋 蔓 瞒 蛮 鳗 馒 幔 谩 螨 熳 缦 镘 颟 墁 鞔",mi:"米 密 秘 迷 弥 蜜 谜 觅 靡 泌 眯 麋 猕 谧 咪 糜 宓 汨 醚 嘧 弭 脒 冖 幂 祢 縻 蘼 芈 糸 敉",men:"们 门 闷 瞒 汶 扪 焖 懑 鞔 钔",mang:"忙 盲 茫 芒 氓 莽 蟒 邙 硭 漭",meng:"蒙 盟 梦 猛 孟 萌 氓 朦 锰 檬 勐 懵 蟒 蜢 虻 黾 蠓 艨 甍 艋 瞢 礞",miao:"苗 秒 妙 描 庙 瞄 缪 渺 淼 藐 缈 邈 鹋 杪 眇 喵",mou:"某 谋 牟 缪 眸 哞 鍪 蛑 侔 厶",miu:"缪 谬",mei:"美 没 每 煤 梅 媒 枚 妹 眉 魅 霉 昧 媚 玫 酶 镁 湄 寐 莓 袂 楣 糜 嵋 镅 浼 猸 鹛",wen:"文 问 闻 稳 温 纹 吻 蚊 雯 紊 瘟 汶 韫 刎 璺 玟 阌",mie:"灭 蔑 篾 乜 咩 蠛",ming:"明 名 命 鸣 铭 冥 茗 溟 酩 瞑 螟 暝",na:"内 南 那 纳 拿 哪 娜 钠 呐 捺 衲 镎 肭",nei:"内 那 哪 馁",nuo:"难 诺 挪 娜 糯 懦 傩 喏 搦 锘",ruo:"若 弱 偌 箬",nang:"囊 馕 囔 曩 攮",nao:"脑 闹 恼 挠 瑙 淖 孬 垴 铙 桡 呶 硇 猱 蛲",ni:"你 尼 呢 泥 疑 拟 逆 倪 妮 腻 匿 霓 溺 旎 昵 坭 铌 鲵 伲 怩 睨 猊",nen:"嫩 恁",neng:"能",nin:"您 恁",niao:"鸟 尿 溺 袅 脲 茑 嬲",nie:"摄 聂 捏 涅 镍 孽 捻 蘖 啮 蹑 嗫 臬 镊 颞 乜 陧",niang:"娘 酿",ning:"宁 凝 拧 泞 柠 咛 狞 佞 聍 甯",nu:"努 怒 奴 弩 驽 帑 孥 胬",nv:"女 钕 衄 恧",ru:"入 如 女 乳 儒 辱 汝 茹 褥 孺 濡 蠕 嚅 缛 溽 铷 洳 薷 襦 颥 蓐",nuan:"暖",nve:"虐 疟",re:"热 若 惹 喏",ou:"区 欧 偶 殴 呕 禺 藕 讴 鸥 瓯 沤 耦 怄",pao:"跑 炮 泡 抛 刨 袍 咆 疱 庖 狍 匏 脬",pou:"剖 掊 裒",pen:"喷 盆 湓",pie:"瞥 撇 苤 氕 丿",pin:"品 贫 聘 频 拼 拚 颦 姘 嫔 榀 牝",se:"色 塞 瑟 涩 啬 穑 铯 槭",qing:"情 青 清 请 亲 轻 庆 倾 顷 卿 晴 氢 擎 氰 罄 磬 蜻 箐 鲭 綮 苘 黥 圊 檠 謦",zan:"赞 暂 攒 堑 昝 簪 糌 瓒 錾 趱 拶",shao:"少 绍 召 烧 稍 邵 哨 韶 捎 勺 梢 鞘 芍 苕 劭 艄 筲 杓 潲",sao:"扫 骚 嫂 梢 缫 搔 瘙 臊 埽 缲 鳋",sha:"沙 厦 杀 纱 砂 啥 莎 刹 杉 傻 煞 鲨 霎 嗄 痧 裟 挲 铩 唼 歃",xuan:"县 选 宣 券 旋 悬 轩 喧 玄 绚 渲 璇 炫 萱 癣 漩 眩 暄 煊 铉 楦 泫 谖 痃 碹 揎 镟 儇",ran:"然 染 燃 冉 苒 髯 蚺",rang:"让 壤 攘 嚷 瓤 穰 禳",rao:"绕 扰 饶 娆 桡 荛",reng:"仍 扔",ri:"日",rou:"肉 柔 揉 糅 鞣 蹂",ruan:"软 阮 朊",run:"润 闰",sa:"萨 洒 撒 飒 卅 仨 脎",suo:"所 些 索 缩 锁 莎 梭 琐 嗦 唆 唢 娑 蓑 羧 挲 桫 嗍 睃",sai:"思 赛 塞 腮 噻 鳃",shui:"说 水 税 谁 睡 氵",sang:"桑 丧 嗓 搡 颡 磉",sen:"森",seng:"僧",shai:"筛 晒",shang:"上 商 尚 伤 赏 汤 裳 墒 晌 垧 觞 殇 熵 绱",xing:"行 省 星 腥 猩 惺 兴 刑 型 形 邢 饧 醒 幸 杏 性 姓 陉 荇 荥 擤 悻 硎",shou:"收 手 受 首 售 授 守 寿 瘦 兽 狩 绶 艏 扌",shuo:"说 数 硕 烁 朔 铄 妁 槊 蒴 搠",su:"速 素 苏 诉 缩 塑 肃 俗 宿 粟 溯 酥 夙 愫 簌 稣 僳 谡 涑 蔌 嗉 觫",shua:"刷 耍 唰",shuan:"栓 拴 涮 闩",shun:"顺 瞬 舜 吮",song:"送 松 宋 讼 颂 耸 诵 嵩 淞 怂 悚 崧 凇 忪 竦 菘",sou:"艘 搜 擞 嗽 嗖 叟 馊 薮 飕 嗾 溲 锼 螋 瞍",sun:"损 孙 笋 荪 榫 隼 狲 飧",teng:"腾 疼 藤 滕 誊",tie:"铁 贴 帖 餮 萜",tu:"土 突 图 途 徒 涂 吐 屠 兔 秃 凸 荼 钍 菟 堍 酴",wai:"外 歪 崴",wang:"王 望 往 网 忘 亡 旺 汪 枉 妄 惘 罔 辋 魍",weng:"翁 嗡 瓮 蓊 蕹",zhua:"抓 挝 爪",yang:"样 养 央 阳 洋 扬 杨 羊 详 氧 仰 秧 痒 漾 疡 泱 殃 恙 鸯 徉 佯 怏 炀 烊 鞅 蛘",xiong:"雄 兄 熊 胸 凶 匈 汹 芎",yo:"哟 唷",yong:"用 永 拥 勇 涌 泳 庸 俑 踊 佣 咏 雍 甬 镛 臃 邕 蛹 恿 慵 壅 痈 鳙 墉 饔 喁",za:"杂 扎 咱 砸 咋 匝 咂 拶",zai:"在 再 灾 载 栽 仔 宰 哉 崽 甾",zao:"造 早 遭 枣 噪 灶 燥 糟 凿 躁 藻 皂 澡 蚤 唣",zei:"贼",zen:"怎 谮",zeng:"增 曾 综 赠 憎 锃 甑 罾 缯",zhei:"这",zou:"走 邹 奏 揍 诹 驺 陬 楱 鄹 鲰",zhuai:"转 拽",zun:"尊 遵 鳟 樽 撙",dia:"嗲",nou:"耨"}};export{n as default}; diff --git a/_app/immutable/chunks/czech-AAz70GMU.0cffa7b5.js b/_app/immutable/chunks/czech-AAz70GMU.0cffa7b5.js new file mode 100644 index 00000000..607bff50 --- /dev/null +++ b/_app/immutable/chunks/czech-AAz70GMU.0cffa7b5.js @@ -0,0 +1 @@ +const t={layout:{default:["; + ě š č ř ž ý á í é ´ {bksp}","{tab} q w e r t y u i o p ú ) ¨","{lock} a s d f g h j k l ů § {enter}","{shift} \\ z x c v b n m , . - {shift}",".com @ {space}"],shift:["° 1 2 3 4 5 6 7 8 9 0 % ˇ {bksp}","{tab} Q W E R T Y U I O P / ( '",'{lock} A S D F G H J K L " ! {enter}',"{shift} | Z X C V B N M ? : _ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/farsi-akNUiiy1.62727da0.js b/_app/immutable/chunks/farsi-akNUiiy1.62727da0.js new file mode 100644 index 00000000..96699d62 --- /dev/null +++ b/_app/immutable/chunks/farsi-akNUiiy1.62727da0.js @@ -0,0 +1 @@ +const t={layout:{default:["` ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ ۰ - = {bksp}","{tab} ض ص ث ق ف غ ع ه خ ح ج چ \\","{lock} ش س ی ب ل ا ت ن م ک گ {enter}","{shift} ظ ط ز ر ذ د پ و . / {shift}",".com @ {space}"],shift:["÷ ! ٬ ٫ ﷼ ٪ × ۷ * ) ( ـ + {bksp}","{tab} ْ ٌ ٍ ً ُ ِ َ ّ ] [ } {","{lock} ؤ ئ ي إ أ آ ة » « : ؛ {enter}","{shift} ك ٓ ژ ٰ ‌ ٔ ء < > ؟ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/french-GKHnJmdK.94658ac4.js b/_app/immutable/chunks/french-GKHnJmdK.94658ac4.js new file mode 100644 index 00000000..df4f8858 --- /dev/null +++ b/_app/immutable/chunks/french-GKHnJmdK.94658ac4.js @@ -0,0 +1 @@ +const t={layout:{default:["` 1 2 3 4 5 6 7 8 9 0 ° + {bksp}","{tab} a z e r t y u i o p ^ $","{lock} q s d f g h j k l m ù * {enter}","{shift} < w x c v b n , ; : ! {shift}",".com @ {space}"],shift:[`² & é " ' ( - è _ ç à ) = {bksp}`,"{tab} A Z E R T Y U I O P ¨ £","{lock} Q S D F G H J K L M % µ {enter}","{shift} > W X C V B N ? . / § {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/georgian-SQFgQD3n.89ef2935.js b/_app/immutable/chunks/georgian-SQFgQD3n.89ef2935.js new file mode 100644 index 00000000..418aa325 --- /dev/null +++ b/_app/immutable/chunks/georgian-SQFgQD3n.89ef2935.js @@ -0,0 +1 @@ +const t={layout:{default:["„ 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} ქ წ ე რ ტ ყ უ ი ო პ [ ] \\","{lock} ა ს დ ფ გ ჰ ჯ კ ლ ; ' {enter}","{shift} ზ ხ ც ვ ბ ნ მ , . / {shift}",".com @ {space}"],shift:["“ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} ქ ჭ ე ღ თ ყ უ ი ო პ { } | ~",'{lock} ა შ დ ფ გ ჰ ჟ კ ₾ : " {enter}',"{shift} ძ ხ ჩ ვ ბ ნ მ < > ? {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/german-Wy-4wNPv.fa6f994f.js b/_app/immutable/chunks/german-Wy-4wNPv.fa6f994f.js new file mode 100644 index 00000000..a3e677fe --- /dev/null +++ b/_app/immutable/chunks/german-Wy-4wNPv.fa6f994f.js @@ -0,0 +1 @@ +const t={layout:{default:["^ 1 2 3 4 5 6 7 8 9 0 ß ´ {bksp}","{tab} q w e r t z u i o p ü +","{lock} a s d f g h j k l ö ä # {enter}","{shift} < y x c v b n m , . - {shift}",".com @ {space}"],shift:['° ! " § $ % & / ( ) = ? ` {bksp}',"{tab} Q W E R T Z U I O P Ü *","{lock} A S D F G H J K L Ö Ä ' {enter}","{shift} > Y X C V B N M ; : _ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/gilaki-v742kFIj.beefdad3.js b/_app/immutable/chunks/gilaki-v742kFIj.beefdad3.js new file mode 100644 index 00000000..ad42584b --- /dev/null +++ b/_app/immutable/chunks/gilaki-v742kFIj.beefdad3.js @@ -0,0 +1 @@ +const t={layout:{default:["ٚ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ ۰ - = {bksp}","{tab} ض ص ئ ق ف غ ع ه خ ح ج چ أ","{lock} ش س ي ب ل ا ت ن م ک گ {enter}","{shift} ؤ ۊ ز ر ذ د پ و . / {shift}",".com @ {space}"],shift:["ˇ ! @ # ﷼ ٪ × ، * ) ( ـ + {bksp}","{tab} ك ة ث َ ^ ° ُ ÷ ] [ } { ٰ","{lock} ۋ ً ی ِ ' آ ى , \\ : ؛ {enter}",'{shift} ظ ط ژ " ٔ » « < > ؟ {shift}',".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/greek-lay7OJjb.9c2c2556.js b/_app/immutable/chunks/greek-lay7OJjb.9c2c2556.js new file mode 100644 index 00000000..2243213a --- /dev/null +++ b/_app/immutable/chunks/greek-lay7OJjb.9c2c2556.js @@ -0,0 +1 @@ +const t={layout:{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} ; ς ε ρ τ υ θ ι ο π [ ] \\","{lock} α σ δ φ γ η ξ κ λ ΄ ' {enter}","{shift} < ζ χ ψ ω β ν μ , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} : ΅ Ε Ρ Τ Υ Θ Ι Ο Π { } |",'{lock} Α Σ Δ Φ Γ Η Ξ Κ Λ ¨ " {enter}',"{shift} > Ζ Χ Ψ Ω Β Ν Μ < > ? {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/hebrew-V6ZtD_jG.48875cb9.js b/_app/immutable/chunks/hebrew-V6ZtD_jG.48875cb9.js new file mode 100644 index 00000000..7700b1cd --- /dev/null +++ b/_app/immutable/chunks/hebrew-V6ZtD_jG.48875cb9.js @@ -0,0 +1 @@ +const t={layout:{default:[" 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} / ' ק ר א ט ו ן ם פ ] [ :","{lock} ש ד ג כ ע י ח ל ך ף , {enter}","{shift} ז ס ב ה נ מ צ ת ץ . {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/hindi-uNDpRlqm.76d6c741.js b/_app/immutable/chunks/hindi-uNDpRlqm.76d6c741.js new file mode 100644 index 00000000..053ce4b4 --- /dev/null +++ b/_app/immutable/chunks/hindi-uNDpRlqm.76d6c741.js @@ -0,0 +1 @@ +const t={layout:{default:["` ऍ ॅ ्र र् ज्ञ त्र क्ष श्र ९ ० - ृ {bksp}","{tab} ौ ै ा ी ू ब ह ग द ज ड ़ ॉ \\","{lock} ो े ् ि ु प र क त च ट {enter}","{shift} ं म न व ल स , . य {shift}",".com @ {space}"],shift:["~ १ २ ३ ४ ५ ६ ७ ८ ९ ० ः ऋ {bksp}","{tab} औ ऐ आ ई ऊ भ ङ घ ध झ ढ ञ ऑ","{lock} ओ ए अ इ उ फ ऱ ख थ छ ठ {enter}",'{shift} "" ँ ण न व ळ श ष । य़ {shift}',".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/hungarian-Wnxix6n4.45652951.js b/_app/immutable/chunks/hungarian-Wnxix6n4.45652951.js new file mode 100644 index 00000000..6ed69574 --- /dev/null +++ b/_app/immutable/chunks/hungarian-Wnxix6n4.45652951.js @@ -0,0 +1 @@ +const t={layout:{default:["0 1 2 3 4 5 6 7 8 9 ö ü ó {bksp}","{tab} q w e r t z u i o p ő ú","{lock} a s d f g h j k l é á ű {enter}","{shift} í y x c v b n m , . - {shift}",".com @ {space}"],shift:[`§ ' " + ! % / = ( ) Ö Ü Ó {bksp}`,"{tab} Q W E R T Z U I O P Ő Ú","{lock} A S D F G H J K L É Á Ű {enter}","{shift} Í Y X C V B N M ? : _ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/italian-eDgp6wHT.50798155.js b/_app/immutable/chunks/italian-eDgp6wHT.50798155.js new file mode 100644 index 00000000..169f8ed3 --- /dev/null +++ b/_app/immutable/chunks/italian-eDgp6wHT.50798155.js @@ -0,0 +1 @@ +const t={layout:{default:["\\ 1 2 3 4 5 6 7 8 9 0 ' ì {bksp}","{tab} q w e r t y u i o p è +","{lock} a s d f g h j k l ò à ù {enter}","{shift} < z x c v b n m , . - {shift}",".com @ {space}"],shift:['| ! " £ $ % & / ( ) = ? ^ {bksp}',"{tab} Q W E R T Y U I O P é *","{lock} A S D F G H J K L ç ° § {enter}","{shift} > Z X C V B N M ; : _ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/japanese-Zv_Q1DDl.d78f358a.js b/_app/immutable/chunks/japanese-Zv_Q1DDl.d78f358a.js new file mode 100644 index 00000000..7ddc8913 --- /dev/null +++ b/_app/immutable/chunks/japanese-Zv_Q1DDl.d78f358a.js @@ -0,0 +1 @@ +const t={layout:{default:["1 2 3 4 5 6 7 8 9 0 - ^ ¥ {bksp}","{tab} た て い す か ん な に ら せ ゛ ゜ む","{lock} ち と し は き く ま の り れ け {enter}","{shift} つ さ そ ひ こ み も ね る め {shift}",".com @ {space}"],shift:[`! " # $ % & ' ( ) ́ = ~ | {bksp}`,"{tab} た て ぃ す か ん な に ら せ 「 」 む","{lock} ち と し は き く ま の り れ け {enter}","{shift} っ さ そ ひ こ み も 、 。 ・ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/kannada-1jV6XiS0.41bc3c66.js b/_app/immutable/chunks/kannada-1jV6XiS0.41bc3c66.js new file mode 100644 index 00000000..f1ed3117 --- /dev/null +++ b/_app/immutable/chunks/kannada-1jV6XiS0.41bc3c66.js @@ -0,0 +1 @@ +const t={layout:{default:["ೊ 1 2 3 4 5 6 7 8 9 0 - ೃ {bksp}","{tab} ೌ ೈ ಾ ೀ ೂ ಬ ಹ ಗ ದ ಜ ಡ","ೋ ೇ ್ ಿ ು ಪ ರ ಕ ತ ಚ ಟ {enter}","{shift} ೆ ಂ ಮ ನ ವ ಲ ಸ , . / {shift}",".com @ {space}"],shift:["ಒ ್ರ ರ್ ಜ್ಞ ತ್ರ ಕ್ಷ ಶ್ರ ( ) ಃ ಋ {bksp}","{tab} ಔ ಐ ಆ ಈ ಊ ಭ ಙ ಘ ಧ ಝ ಢ ಞ","ಓ ಏ ಅ ಇ ಉ ಫ ಱ ಖ ಥ ಛ ಠ {enter}","{shift} ಎ ಣ ಳ ಶ ಷ | / {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/kurdish-eencXZUC.4cb27155.js b/_app/immutable/chunks/kurdish-eencXZUC.4cb27155.js new file mode 100644 index 00000000..9126d87b --- /dev/null +++ b/_app/immutable/chunks/kurdish-eencXZUC.4cb27155.js @@ -0,0 +1 @@ +const t={layout:{default:["١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ٠ - = {bksp}","{tab} ق و ە ر ت ی ئ ع ۆ پ","{lock} ا س د ف گ ه ژ ک ل {enter}","{shift} ز خ ج ڤ ب ن م {shift}",".com @ {space}"],shift:["! @ # $ ٪ ^ & * ( ) _ + {bksp}","{tab} ٯ وو ي ڕ ط ێ ء ح ؤ ث","{lock} آ ش ذ إ غ ‌ أ ك ڵ {enter}","{shift} ض ص چ ظ ى ة ـ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/macedonian-Dot-tKLH.04517113.js b/_app/immutable/chunks/macedonian-Dot-tKLH.04517113.js new file mode 100644 index 00000000..6cef1e59 --- /dev/null +++ b/_app/immutable/chunks/macedonian-Dot-tKLH.04517113.js @@ -0,0 +1 @@ +const t={layout:{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} љ њ е р т ѕ у и о п ш ѓ ж","{lock} а с д ф г х ј к л ч ќ {enter}","{shift} з џ ц в б н м , . / {shift}",".com @ {space}"],shift:["~ ! „ ” ҆ % ҅ & * ( ) _ + {bksp}","{tab} Љ Њ Е Р Т Ѕ У И О П Ш Ѓ Ж","{lock} А С Д Ф Г Х Ј К Л Ч Ќ {enter}","{shift} З Џ Ц В Б Н М ; : ? {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/malayalam-1xjnMslS.610dd1c4.js b/_app/immutable/chunks/malayalam-1xjnMslS.610dd1c4.js new file mode 100644 index 00000000..1f0fe039 --- /dev/null +++ b/_app/immutable/chunks/malayalam-1xjnMslS.610dd1c4.js @@ -0,0 +1 @@ +const t={layout:{default:["ഒ ൧ ൨ ൩ ൪ ൫ ൬ ൭ ൮ ൯ ൦ - ഋ {bksp}","{tab} ഔ ഐ ആ ഈ ഊ ഭ ങ ഘ ധ ഝ ഢ ഞ \\","{lock} ഓ ഏ അ ഇ ഉ ഫ റ ഖ ഥ ഛ ഠ {enter}","{shift} എ ഃ ണ ഴ ള ശ ഷ . യ {shift}",".com @ {space}"],shift:["ൊ ! @ # $ % ^ & * ) ( _ ൃ {bksp}","{tab} ൌ ൈ ാ ീ ൂ ബ ഹ ഗ ദ ജ ഡ ൎ \\","{lock} ോ േ ് ി ു പ ര ക ത ച ട {enter}","{shift} െ ം മ ന വ ല സ . യ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/nigerian-IYPkF_j3.5b26cce3.js b/_app/immutable/chunks/nigerian-IYPkF_j3.5b26cce3.js new file mode 100644 index 00000000..716942cd --- /dev/null +++ b/_app/immutable/chunks/nigerian-IYPkF_j3.5b26cce3.js @@ -0,0 +1 @@ +const t={layout:{default:["ˊ 1 2 3 4 5 6 7 8 9 0 ɗ ƙ {bksp}","{tab} q w e r t y u i o p ụ ị","{lock} a s d f g h j k l ọ ẹ ǝ {enter}","{shift} z y x c v b n m , . ṣ {shift}",".com @ {space}"],shift:['ˆ ! " / _ ₦ % = - | ( ) Ɗ Ƙ {bksp}',"{tab} Q W E R T Y U I O P Ụ Ị","{lock} A S D F G H J K L Ọ Ẹ Ǝ {enter}","{shift} Z Ɓ C V B N M ; : Ṣ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/nko-EI8QPheE.3268d6cd.js b/_app/immutable/chunks/nko-EI8QPheE.3268d6cd.js new file mode 100644 index 00000000..e33051e6 --- /dev/null +++ b/_app/immutable/chunks/nko-EI8QPheE.3268d6cd.js @@ -0,0 +1 @@ +const t={layout:{default:["߷ ߁ ߂ ߃ ߄ ߅ ߆ ߇ ߈ ߉ ߀ ߺ = {bksp}","{tab} ߒ ߥ ߋ ߙ ߕ ߦ ߎ ߌ ߐ ߔ [ ] \\","{lock} ߊ ߛ ߘ ߝ ߜ ߤ ߖ ߞ ߟ ߸ ߴ {enter}","{shift} ߢ ߏ ߗ ߍ ߓ ߣ ߡ ߲ ߳ ⸮ {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} ߑ ߠ ߚ ߧ { } |","{lock} ߽ ߲ ߳ ߸ ߹ ߺ ߾ ߿ ߶ ߹ ߵ {enter}","{shift} ߫ ߬ ߭ ߮ ߯ ߰ ߱ < > ߽ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/norwegian-sal6SH2s.847bc0b5.js b/_app/immutable/chunks/norwegian-sal6SH2s.847bc0b5.js new file mode 100644 index 00000000..b2ce5c94 --- /dev/null +++ b/_app/immutable/chunks/norwegian-sal6SH2s.847bc0b5.js @@ -0,0 +1 @@ +const t={layout:{default:["§ 1 2 3 4 5 6 7 8 9 0 + ´ {bksp}","{tab} q w e r t y u i o p å ¨","{lock} a s d f g h j k l ø æ ' {enter}","{shift} < z x c v b n m , . - {shift}",".com @ {space}"],shift:['° ! " # $ % & / ( ) = ? ` {bksp}',"{tab} Q W E R T Y U I O P Å ^","{lock} A S D F G H J K L Ø Æ * {enter}","{shift} > Z X C V B N M ; : _ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/odia-zrWvkRlA.e8b72abc.js b/_app/immutable/chunks/odia-zrWvkRlA.e8b72abc.js new file mode 100644 index 00000000..fd8d371a --- /dev/null +++ b/_app/immutable/chunks/odia-zrWvkRlA.e8b72abc.js @@ -0,0 +1 @@ +const t={layout:{default:["୦ ୧ ୨ ୩ ୪ ୫ ୬ ୭ ୮ ୯ ଋ ୃ {bksp}","{tab} ୌ ୈ ା ୀ ୂ ବ ହ ଗ ଦ ଜ ଡ ଼","{lock} ୋ େ ୍ ି ୁ ପ ର କ ତ ଚ ଟ {enter}","{shift} ୟ ଂ ମ ନ ୱ ଲ ସ , . ୟ {shift}",".com @ {space}"],shift:["୍ର ର୍ ଜ୍ଞ ତ୍ର କ୍ଷ ଶ୍ର ( ) ଃ ୠ ୄ {bksp}","{tab} ଔ ଐ ଆ ଈ ଊ ଭ ଙ ଘ ଧ ଝ ଢ ଡ଼ ଞ","{lock} ଓ ଏ ଅ ୢ ଇ ଉ ଫ ଖ ଥ ଛ ଠ {enter}","{shift} ୱ ଁ ୰ ଣ ଵ ଳ ଶ ଷ । ଯ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/polish-yYQdl0aw.936f6a15.js b/_app/immutable/chunks/polish-yYQdl0aw.936f6a15.js new file mode 100644 index 00000000..5cc2ac05 --- /dev/null +++ b/_app/immutable/chunks/polish-yYQdl0aw.936f6a15.js @@ -0,0 +1 @@ +const t={layout:{default:["˛ 1 2 3 4 5 6 7 8 9 0 + ' {bksp}","{tab} q w e r t z u i o p ż ś","{lock} a s d f g h j k l ł ą ó {enter}","{shift} < y x c v b n m , . - {shift}",".com @ {space}"],shift:['· ! " # ¤ % & / ( ) = ? * {bksp}',"{tab} Q W E R T Z U I O P ń ć","{lock} A S D F G H J K L Ł ę ź {enter}","{shift} > Y X C V B N M ; : _ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/punjabi-0AIiTj_p.01c98b73.js b/_app/immutable/chunks/punjabi-0AIiTj_p.01c98b73.js new file mode 100644 index 00000000..5ef84656 --- /dev/null +++ b/_app/immutable/chunks/punjabi-0AIiTj_p.01c98b73.js @@ -0,0 +1 @@ +const t={layout:{default:["{//} 1 2 3 4 5 6 7 8 9 0 - {//} {bksp}","{tab} ੌ ੈ ਾ ੀ ੂ ਬ ਹ ਗ ਦ ਜ ਡ ਼ {//}","{lock} ੋ ੇ ੍ ਿ ੁ ਪ ਰ ਕ ਤ ਚ ਟ {enter}","{shift} {//} ੰ ਮ ਨ ਵ ਲ ਸ , . ਯ {shift}",".com @ {space}"],shift:["੍ਹ ੍ਵ ੍ਯ ੍ਰ ੱ {//} {//} {//} {//} ( ) {//} {//} {bksp}","{tab} ਔ ਐ ਆ ਈ ਊ ਭ ਙ ਘ ਧ ਝ ਢ ਞ {//}","{lock} ਓ ਏ ਅ ਇ ਉ ਫ ੜ ਖ ਥ ਛ ਠ {enter}","{shift} {//} ਂ ਣ ੲ ਲ਼ ਸ਼ {//} । {//} {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/russian-sQ885m4A.ff7543fb.js b/_app/immutable/chunks/russian-sQ885m4A.ff7543fb.js new file mode 100644 index 00000000..4aaba245 --- /dev/null +++ b/_app/immutable/chunks/russian-sQ885m4A.ff7543fb.js @@ -0,0 +1 @@ +const t={layout:{default:["ё 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} й ц у к е н г ш щ з х ъ \\","{lock} ф ы в а п р о л д ж э {enter}","{shift} / я ч с м и т ь б ю . {shift}",".com @ {space}"],shift:['Ё ! " № ; % : ? * ( ) _ + {bksp}',"{tab} Й Ц У К Е Н Г Ш Щ З Х Ъ /","{lock} Ф Ы В А П Р О Л Д Ж Э {enter}","{shift} | Я Ч С М И Т Ь Б Ю , {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/russianOld-EJwjNEzY.7b3bb226.js b/_app/immutable/chunks/russianOld-EJwjNEzY.7b3bb226.js new file mode 100644 index 00000000..ea405d66 --- /dev/null +++ b/_app/immutable/chunks/russianOld-EJwjNEzY.7b3bb226.js @@ -0,0 +1 @@ +const t={layout:{default:["ё 1 2 3 4 5 6 7 8 9 0 ц э {bksp}","{tab} й i у к е н г ш щ з х ѳ \\","{lock} ф ы в ъ а п р о л д ж ѵ {enter}","{shift} / я ѣ ч с м и т ь б ю . {shift}",".com @ {space}"],shift:['Ё ! " № ; % : ? * ( ) Ц Э {bksp}',"{tab} Й I У К Е Н Г Ш Щ З Х Ѳ /","{lock} Ф Ы В Ъ А П Р О Л Д Ж Ѵ {enter}","{shift} | Я Ѣ Ч С М И Т Ь Б Ю , {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/sindhi-guri82Yy.2a0648bd.js b/_app/immutable/chunks/sindhi-guri82Yy.2a0648bd.js new file mode 100644 index 00000000..05ee5c6e --- /dev/null +++ b/_app/immutable/chunks/sindhi-guri82Yy.2a0648bd.js @@ -0,0 +1 @@ +const t={layout:{default:["` ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ٠ - = {bksp}","{tab} ق و ع ر ت ڀ ء ي ہ پ [ ]","{lock} ا س د ف گ ھ ج ک ل ؛ ، {enter}","{shift} ز ش چ ط ب ن م ڇ , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ ٪ ^ & * ( ) _ + {bksp}","{tab} ﹰ ڌ ڪ ڙ ٽ ﹺ ﻻ ﺋ ڦ | { }","{lock} ٻ ص ڊ ؍ غ ح ض خ ۔ ܃ ״ {enter}","{shift} ذ ٿ ث ظ ٺ ٫ ـ < > ؟ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/spanish-Ww3zYGV_.0ed27470.js b/_app/immutable/chunks/spanish-Ww3zYGV_.0ed27470.js new file mode 100644 index 00000000..d75d16ad --- /dev/null +++ b/_app/immutable/chunks/spanish-Ww3zYGV_.0ed27470.js @@ -0,0 +1 @@ +const t={layout:{default:["| 1 2 3 4 5 6 7 8 9 0 ' ¿ {bksp}","{tab} q w e r t y u i o p ́ +","{lock} a s d f g h j k l ñ { } {enter}","{shift} < z x c v b n m , . - {shift}",".com @ {space}"],shift:['° ! " # $ % & / ( ) = ? ¡ {bksp}',"{tab} Q W E R T Y U I O P ̈ *","{lock} A S D F G H J K L Ñ [ ] {enter}","{shift} > Z X C V B N M ; : _ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/swedish-RpPWxHx_.af07bd5e.js b/_app/immutable/chunks/swedish-RpPWxHx_.af07bd5e.js new file mode 100644 index 00000000..4a98d86e --- /dev/null +++ b/_app/immutable/chunks/swedish-RpPWxHx_.af07bd5e.js @@ -0,0 +1 @@ +const t={layout:{default:["§ 1 2 3 4 5 6 7 8 9 0 + ´ {bksp}","{tab} q w e r t y u i o p å ¨","{lock} a s d f g h j k l ö ä ' {enter}","{shift} < z x c v b n m , . - {shift}",".com @ {space}"],shift:['° ! " # $ % & / ( ) = ? ` {bksp}',"{tab} Q W E R T Y U I O P Å ^","{lock} A S D F G H J K L Ö Ä * {enter}","{shift} > Z X C V B N M ; : _ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/telugu-WPb3GXn5.f8d401d9.js b/_app/immutable/chunks/telugu-WPb3GXn5.f8d401d9.js new file mode 100644 index 00000000..05eaf3c8 --- /dev/null +++ b/_app/immutable/chunks/telugu-WPb3GXn5.f8d401d9.js @@ -0,0 +1 @@ +const t={layout:{default:["ొ 1 2 3 4 5 6 7 8 9 0 - ృ {bksp}","{tab} ౌ ై ా ీ ూ బ హ గ ద జ డ {//} {//}","{lock} ో ే ్ ి ు ప ర క త చ ట {enter}","{shift} {//} ె ం మ న వ ల స , . య {shift}",".com @ {space}"],shift:["ఒ {//} {//} ్ర {//} జ్ఞ త్ర క్ష శ్ర ( ) ః ఋ {bksp}","{tab} ఔ ఐ ఆ ఈ ఊ భ ఙ ఘ ధ ఝ ఢ ఞ {//}","{lock} ఓ ఏ అ ఇ ఉ ఫ ఱ ఖ థ ఛ ఠ {enter}","{shift} {//} ఎ ఁ ణ న {//} ళ శ ష {//} {//} {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/thai-Q-LTk3Id.1148f3d0.js b/_app/immutable/chunks/thai-Q-LTk3Id.1148f3d0.js new file mode 100644 index 00000000..785c1695 --- /dev/null +++ b/_app/immutable/chunks/thai-Q-LTk3Id.1148f3d0.js @@ -0,0 +1 @@ +const t={layout:{default:["_ ๅ / - ภ ถ ุ ึ ค ต จ ข ช {bksp}","{tab} ๆ ไ ำ พ ะ ั ี ร น ย บ ล ฃ","{lock} ฟ ห ก ด เ ้ ่ า ส ว ง {enter}","{shift} ผ ป แ อ ิ ื ท ม ใ ฝ {shift}",".com @ {space}"],shift:["% + ๑ ๒ ๓ ๔ ู ฿ ๕ ๖ ๗ ๘ ๙ {bksp}",'{tab} ๐ " ฎ ฑ ธ ํ ๊ ณ ฯ ญ ฐ , ฅ',"{lock} ฤ ฆ ฏ โ ฌ ็ ๋ ษ ศ ซ . {enter}","{shift} ( ) ฉ ฮ ฺ ์ ? ฒ ฬ ฦ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/turkish-qQEi80RS.cb967a2e.js b/_app/immutable/chunks/turkish-qQEi80RS.cb967a2e.js new file mode 100644 index 00000000..89833bd9 --- /dev/null +++ b/_app/immutable/chunks/turkish-qQEi80RS.cb967a2e.js @@ -0,0 +1 @@ +const t={layout:{default:['" 1 2 3 4 5 6 7 8 9 0 * - # {bksp}',"{tab} q w e r t y u ı o p ğ ü [ ]","{lock} a s d f g h j k l ş i , {enter}","{shift} < z x c v b n m ö ç . | $ € {shift}",".com @ {space}"],shift:["é ! ' ^ + % & / ( ) = ? _ ~ {bksp}","{tab} Q W E R T Y U I O P Ğ Ü { }","{lock} A S D F G H J K L Ş İ ; {enter}","{shift} > Z X C V B N M Ö Ç : \\ ` ´ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/ukrainian-CLoogq0p.3e4781c0.js b/_app/immutable/chunks/ukrainian-CLoogq0p.3e4781c0.js new file mode 100644 index 00000000..28c5e395 --- /dev/null +++ b/_app/immutable/chunks/ukrainian-CLoogq0p.3e4781c0.js @@ -0,0 +1 @@ +const t={layout:{default:["' 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} й ц у к е н г ш щ з х ї ґ \\","{lock} ф і в а п р о л д ж є {enter}","{shift} / я ч с м и т ь б ю . {shift}",".com @ {space}"],shift:['₴ ! " № ; % : ? * ( ) _ + {bksp}',"{tab} Й Ц У К Е Н Г Ш Щ З Х Ї Ґ /","{lock} Ф І В А П Р О Л Д Ж Є {enter}","{shift} | Я Ч С М И Т Ь Б Ю , {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/urdu-NIkHMU4A.9c633ce1.js b/_app/immutable/chunks/urdu-NIkHMU4A.9c633ce1.js new file mode 100644 index 00000000..14734dd5 --- /dev/null +++ b/_app/immutable/chunks/urdu-NIkHMU4A.9c633ce1.js @@ -0,0 +1 @@ +const t={layout:{default:["` ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ٠ - = {bksp}","{tab} ق و ع ر ت ے ء ى ہ پ [ ]","{lock} ا س د ف گ ھ ج ک ل ؛ ، {enter}","{shift} ز ش چ ط ب ن م ۤ , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ ٪ ^ & * ( ) _ + {bksp}","{tab} ﹰ ﹷ ﹹ ڑ ٹ ﹺ ﻻ ﺋ ة | { }","{lock} آ ص ڈ ؍ غ ح ض خ ۔ ܃ ״ {enter}","{shift} ذ ژ ث ظ ں ٫ ـ < > ؟ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/urduStandard-LGkVMfEq.8382df56.js b/_app/immutable/chunks/urduStandard-LGkVMfEq.8382df56.js new file mode 100644 index 00000000..2925d8bc --- /dev/null +++ b/_app/immutable/chunks/urduStandard-LGkVMfEq.8382df56.js @@ -0,0 +1 @@ +const t={layout:{default:["` ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ٠ - = {bksp}","{tab} ط ص ھ د ٹ پ ت ب ج ح ] [ \\","{lock} م و ر ن ل ہ ا ک ى ؛ ٬ {enter}","{shift} ق ف ے س ش غ ع ، ۔ / {shift}",".com @ {space}"],shift:["~ ! @ # $ ٪ ^ ۖ * ) ( - + {bksp}","{tab} ظ ض ذ ڈ ث ̃ ۃ ـ چ خ } { |","{lock} ژ ز ڑ ں ۂ ء آ گ ي ܃ ״ {enter}","{shift} ۓ ؤ ئ > < ؟ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/uyghur-eF-99IjK.066cbfdb.js b/_app/immutable/chunks/uyghur-eF-99IjK.066cbfdb.js new file mode 100644 index 00000000..c5a666b7 --- /dev/null +++ b/_app/immutable/chunks/uyghur-eF-99IjK.066cbfdb.js @@ -0,0 +1 @@ +const t={layout:{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} چ ۋ ې ر ت ي ۇ ڭ و پ ] [ /","{lock} ھ س د ا ە ى ق ك ل ؛ : {enter}","{shift} ز ش غ ۈ ب ن م ، . ئ {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ) ( - + {bksp}","{tab} چ ۋ ې ر ت ي ۇ ڭ و » « \\","{lock} ھ س ژ ف گ خ ج ۆ ل ؛ | {enter}","{shift} ز ش غ ۈ ب ن م ‹ › ؟ {shift}",".com @ {space}"]}};export{t as default}; diff --git a/_app/immutable/chunks/vendor_svelte.92aa1392.js b/_app/immutable/chunks/vendor_svelte.92aa1392.js new file mode 100644 index 00000000..1809ca3f --- /dev/null +++ b/_app/immutable/chunks/vendor_svelte.92aa1392.js @@ -0,0 +1,6 @@ +var Rn=Object.defineProperty;var Tn=(t,e,n)=>e in t?Rn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var G=(t,e,n)=>(Tn(t,typeof e!="symbol"?e+"":e,n),n);import{u as Ln}from"./vendor.1acf520b.js";function z(){}const Xe=t=>t;function bt(t,e){for(const n in e)t[n]=e[n];return t}function Pn(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function Qe(t){return t()}function Ae(){return Object.create(null)}function rt(t){t.forEach(Qe)}function Mt(t){return typeof t=="function"}function ce(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function On(t){return Object.keys(t).length===0}function le(t,...e){if(t==null){for(const r of e)r(void 0);return z}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function yi(t){let e;return le(t,n=>e=n)(),e}function Nn(t,e,n){t.$$.on_destroy.push(le(e,n))}function wi(t,e,n,r){if(t){const i=Ze(t,e,n,r);return t[0](i)}}function Ze(t,e,n,r){return t[1]&&r?bt(n.ctx.slice(),t[1](r(e))):n.ctx}function bi(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const a=[],s=Math.max(e.dirty.length,i.length);for(let o=0;o32){const e=[],n=t.ctx.length/32;for(let r=0;rwindow.performance.now():()=>Date.now(),fe=tn?t=>requestAnimationFrame(t):z;const ct=new Set;function en(t){ct.forEach(e=>{e.c(t)||(ct.delete(e),e.f())}),ct.size!==0&&fe(en)}function Cn(t){let e;return ct.size===0&&fe(en),{promise:new Promise(n=>{ct.add(e={c:t,f:n})}),abort(){ct.delete(e)}}}let Ht=!1;function In(){Ht=!0}function Un(){Ht=!1}function Dn(t,e,n,r){for(;t>1);n(i)<=r?t=i+1:e=i}return t}function Fn(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let l=0;l0&&e[n[i]].claim_order<=l?i+1:Dn(1,i,S=>e[n[S]].claim_order,l))-1;r[c]=n[d]+1;const m=d+1;n[m]=c,i=Math.max(m,i)}const a=[],s=[];let o=e.length-1;for(let c=n[i]+1;c!=0;c=r[c-1]){for(a.push(e[c-1]);o>=c;o--)s.push(e[o]);o--}for(;o>=0;o--)s.push(e[o]);a.reverse(),s.sort((c,l)=>c.claim_order-l.claim_order);for(let c=0,l=0;c=a[l].claim_order;)l++;const d=lt.removeEventListener(e,n,r)}function rn(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Bn=["width","height"];function Te(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Bn.indexOf(r)===-1?t[r]=e[r]:rn(t,r,e[r])}function Le(t,e){for(const n in e)rn(t,n,e[n])}function Ei(t){return t.dataset.svelteH}function Ai(t){return t===""?null:+t}function xt(t){return Array.from(t.childNodes)}function an(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function on(t,e,n,r,i=!1){an(t);const a=(()=>{for(let s=t.claim_info.last_index;s=0;s--){const o=t[s];if(e(o)){const c=n(o);return c===void 0?t.splice(s,1):t[s]=c,i?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,o}}return r()})();return a.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,a}function sn(t,e,n,r){return on(t,i=>i.nodeName===e,i=>{const a=[];for(let s=0;si.removeAttribute(s))},()=>r(e))}function ie(t,e,n){return sn(t,e,n,ft)}function Gn(t,e,n){return sn(t,e,n,ue)}function ae(t,e){return on(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},()=>vt(e),!0)}function Wn(t){return ae(t," ")}function Pe(t,e,n){for(let r=n;r0&&n.push(i);return n}class Jn{constructor(e=!1){G(this,"is_svg",!1);G(this,"e");G(this,"n");G(this,"t");G(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,r=null){this.e||(this.is_svg?this.e=ue(n.nodeName):this.e=ft(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(r)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n>>0}function Xn(t,e){const n={stylesheet:Hn(e),rules:{}};return jt.set(t,n),n}function Ne(t,e,n,r,i,a,s,o=0){const c=16.666/r;let l=`{ +`;for(let R=0;R<=1;R+=c){const x=e+(n-e)*a(R);l+=R*100+`%{${s(x,1-x)}} +`}const d=l+`100% {${s(n,1-n)}} +}`,m=`__svelte_${Yn(d)}_${o}`,S=nn(t),{stylesheet:P,rules:y}=jt.get(S)||Xn(S,t);y[m]||(y[m]=!0,P.insertRule(`@keyframes ${m} ${d}`,P.cssRules.length));const w=t.style.animation||"";return t.style.animation=`${w?`${w}, `:""}${m} ${r}ms linear ${i}ms 1 both`,Ct+=1,m}function Qn(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),i=n.length-r.length;i&&(t.style.animation=r.join(", "),Ct-=i,Ct||Zn())}function Zn(){fe(()=>{Ct||(jt.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&H(e)}),jt.clear())})}let kt;function K(t){kt=t}function zt(){if(!kt)throw new Error("Function called outside component initialization");return kt}function Jt(t){zt().$$.on_mount.push(t)}function Ni(t){zt().$$.after_update.push(t)}function ji(){const t=zt();return(e,n,{cancelable:r=!1}={})=>{const i=t.$$.callbacks[e];if(i){const a=cn(e,n,{cancelable:r});return i.slice().forEach(s=>{s.call(t,a)}),!a.defaultPrevented}return!0}}function Ci(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(r=>r.call(this,e))}const st=[],je=[];let lt=[];const Ce=[],ln=Promise.resolve();let oe=!1;function fn(){oe||(oe=!0,ln.then(de))}function Yt(){return fn(),ln}function It(t){lt.push(t)}const Xt=new Set;let it=0;function de(){if(it!==0)return;const t=kt;do{try{for(;itt.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),lt=e}let _t;function nr(){return _t||(_t=Promise.resolve(),_t.then(()=>{_t=null})),_t}function Qt(t,e,n){t.dispatchEvent(cn(`${e?"intro":"outro"}${n}`))}const Pt=new Set;let J;function rr(){J={r:0,c:[],p:J}}function ir(){J.r||rt(J.c),J=J.p}function un(t,e){t&&t.i&&(Pt.delete(t),t.i(e))}function ar(t,e,n,r){if(t&&t.o){if(Pt.has(t))return;Pt.add(t),J.c.push(()=>{Pt.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const or={duration:0};function Ii(t,e,n,r){let a=e(t,n,{direction:"both"}),s=r?0:1,o=null,c=null,l=null,d;function m(){l&&Qn(t,l)}function S(y,w){const R=y.b-s;return w*=Math.abs(R),{a:s,b:y.b,d:R,duration:w,start:y.start,end:y.start+w,group:y.group}}function P(y){const{delay:w=0,duration:R=300,easing:x=Xe,tick:v=z,css:L}=a||or,Z={start:jn()+w,b:y};y||(Z.group=J,J.r+=1),"inert"in t&&(y?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),o||c?c=Z:(L&&(m(),l=Ne(t,s,y,R,w,x,L)),y&&v(0,1),o=S(Z,R),It(()=>Qt(t,y,"start")),Cn(V=>{if(c&&V>c.start&&(o=S(c,R),c=null,Qt(t,o.b,"start"),L&&(m(),l=Ne(t,s,o.b,o.duration,0,x,a.css))),o){if(V>=o.end)v(s=o.b,1-s),Qt(t,o.b,"end"),c||(o.b?m():--o.group.r||rt(o.group.c)),o=null;else if(V>=o.start){const Y=V-o.start;s=o.a+o.d*x(Y/o.duration),v(s,1-s)}}return!!(o||c)}))}return{run(y){Mt(a)?nr().then(()=>{a=a({direction:y?"in":"out"}),P(y)}):P(y)},end(){m(),o=c=null}}}function Ui(t,e){const n=e.token={};function r(i,a,s,o){if(e.token!==n)return;e.resolved=o;let c=e.ctx;s!==void 0&&(c=c.slice(),c[s]=o);const l=i&&(e.current=i)(c);let d=!1;e.block&&(e.blocks?e.blocks.forEach((m,S)=>{S!==a&&m&&(rr(),ar(m,1,1,()=>{e.blocks[S]===m&&(e.blocks[S]=null)}),ir())}):e.block.d(1),l.c(),un(l,1),l.m(e.mount(),e.anchor),d=!0),e.block=l,e.blocks&&(e.blocks[a]=l),d&&de()}if(Pn(t)){const i=zt();if(t.then(a=>{K(i),r(e.then,1,e.value,a),K(null)},a=>{if(K(i),r(e.catch,2,e.error,a),K(null),!e.hasCatch)throw a}),e.current!==e.pending)return r(e.pending,0),!0}else{if(e.current!==e.then)return r(e.then,1,e.value,t),!0;e.resolved=t}}function Di(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function dn(t,e){const n={},r={},i={$$scope:1};let a=t.length;for(;a--;){const s=t[a],o=e[a];if(o){for(const c in s)c in o||(r[c]=1);for(const c in o)i[c]||(n[c]=o[c],i[c]=1);t[a]=o}else for(const c in s)i[c]=1}for(const s in r)s in n||(n[s]=void 0);return n}function Fi(t){t&&t.c()}function Mi(t,e){t&&t.l(e)}function sr(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),It(()=>{const a=t.$$.on_mount.map(Qe).filter(Mt);t.$$.on_destroy?t.$$.on_destroy.push(...a):rt(a),t.$$.on_mount=[]}),i.forEach(It)}function cr(t,e){const n=t.$$;n.fragment!==null&&(er(n.after_update),rt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function lr(t,e){t.$$.dirty[0]===-1&&(st.push(t),fn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const y=P.length?P[0]:S;return l.ctx&&i(l.ctx[m],l.ctx[m]=y)&&(!l.skip_bound&&l.bound[m]&&l.bound[m](y),d&&lr(t,m)),S}):[],l.update(),d=!0,rt(l.before_update),l.fragment=r?r(l.ctx):!1,e.target){if(e.hydrate){In();const m=xt(e.target);l.fragment&&l.fragment.l(m),m.forEach(H)}else l.fragment&&l.fragment.c();e.intro&&un(t.$$.fragment),sr(t,e.target,e.anchor),Un(),de()}K(c)}class pn{constructor(){G(this,"$$");G(this,"$$set")}$destroy(){cr(this,1),this.$destroy=z}$on(e,n){if(!Mt(n))return z;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!On(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const fr="4";function ur(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function dr(t){return t.split("%25").map(decodeURI).join("%25")}function hr(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}const pr=["href","pathname","search","searchParams","toString","toJSON"];function _r(t,e){const n=new URL(t);for(const r of pr)Object.defineProperty(n,r,{get(){return e(),t[r]},enumerable:!0,configurable:!0});return gr(n),n}function gr(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const mr="/__data.json";function yr(t){return t.replace(/\/$/,"")+mr}function wr(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let i=r.length;for(;i;)e=e*33^r[--i]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}const _n=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&wt.delete(he(t)),_n(t,e));const wt=new Map;function br(t,e){const n=he(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){const{body:i,...a}=JSON.parse(r.textContent),s=r.getAttribute("data-ttl");return s&&wt.set(n,{body:i,init:a,ttl:1e3*Number(s)}),Promise.resolve(new Response(i,a))}return window.fetch(t,e)}function vr(t,e,n){if(wt.size>0){const r=he(t,n),i=wt.get(r);if(i){if(performance.now(){const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(i)return e.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return Zt(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Zt(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=xr.exec(c);if(!d)throw new Error(`Invalid param: ${c}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,m,S,P,y]=d;return e.push({name:P,matcher:y,optional:!!m,rest:!!S,chained:S?l===1&&s[0]==="":!1}),S?"(.*?)":m?"([^/]*)?":"([^/]+?)"}return Zt(c)}).join("")}).join("")}/?$`),params:e}}function $r(t){return!/^\([^)]+\)$/.test(t)}function Sr(t){return t.slice(1).split("/").filter($r)}function Er(t,e,n){const r={},i=t.slice(1),a=i.filter(o=>o!==void 0);let s=0;for(let o=0;od).join("/"),s=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=e[o+1],m=i[o+1];d&&!d.rest&&d.optional&&m&&c.chained&&(s=0),!d&&!m&&Object.keys(r).length===a.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return r}function Zt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ar({nodes:t,server_loads:e,dictionary:n,matchers:r}){const i=new Set(e);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:m,params:S}=kr(o),P={id:o,exec:y=>{const w=m.exec(y);if(w)return Er(w,S,r)},errors:[1,...d||[]].map(y=>t[y]),layouts:[0,...l||[]].map(s),leaf:a(c)};return P.errors.length=P.layouts.length=Math.max(P.errors.length,P.layouts.length),P});function a(o){const c=o<0;return c&&(o=~o),[c,t[o]]}function s(o){return o===void 0?o:[i.has(o),t[o]]}}function gn(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Ie(t,e){const n=JSON.stringify(e);try{sessionStorage[t]=n}catch{}}const at=[];function Rr(t,e){return{subscribe:Vt(t,e).subscribe}}function Vt(t,e=z){let n;const r=new Set;function i(o){if(ce(t,o)&&(t=o,n)){const c=!at.length;for(const l of r)l[1](),at.push(l,t);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:s}}function Hi(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return Rr(n,(s,o)=>{let c=!1;const l=[];let d=0,m=z;const S=()=>{if(d)return;m();const y=e(r?l[0]:l,s,o);a?s(y):m=Mt(y)?y:z},P=i.map((y,w)=>le(y,R=>{l[w]=R,d&=~(1<{d|=1<s)}function i(s){n=!1,e.set(s)}function a(s){let o;return e.subscribe(c=>{(o===void 0||n&&c!==o)&&s(o=c)})}return{notify:r,set:i,subscribe:a}}function Pr(){const{set:t,subscribe:e}=Vt(!1);let n;async function r(){clearTimeout(n);try{const i=await fetch(`${Tr}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!i.ok)return!1;const s=(await i.json()).version!==Lr;return s&&(t(!0),clearTimeout(n)),s}catch{return!1}}return{subscribe:e,check:r}}function Ot(t,e){return t.origin!==Dt||!t.pathname.startsWith(e)}function Or(t){return t.filter(e=>e!=null)}const bn=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...bn];const Nr=new Set([...bn]);[...Nr];async function jr(t,e){var n;for(const r in t)if(typeof((n=t[r])==null?void 0:n.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([i,a])=>[i,await a])));return t}class yt{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class He{constructor(e,n){this.status=e,this.location=n}}const Cr="x-sveltekit-invalidated",Ir="x-sveltekit-trailing-slash";function Ur(t){t.client}const W={url:Me({}),page:Me({}),navigating:Vt(null),updated:Pr()},et=gn(yn)??{},gt=gn(mn)??{};function ee(t){et[t]=mt()}function nt(t){return location.href=t.href,new Promise(()=>{})}function Dr(t,e){var $e;const n=Ar(t),r=t.nodes[0],i=t.nodes[1];r(),i();const a=document.documentElement,s=[],o=[];let c=null;const l={before_navigate:[],on_navigate:[],after_navigate:[]};let d={branch:[],error:null,url:null},m=!1,S=!1,P=!0,y=!1,w=!1,R=!1,x=!1,v,L=($e=history.state)==null?void 0:$e[B];L||(L=Date.now(),history.replaceState({...history.state,[B]:L},"",location.href));const Z=et[L];Z&&(history.scrollRestoration="manual",scrollTo(Z.x,Z.y));let V,Y,ut;async function pe(){if(ut=ut||Promise.resolve(),await ut,!ut)return;ut=null;const f=new URL(location.href),_=ht(f,!0);c=null;const u=Y={},p=_&&await Gt(_);if(u===Y&&p){if(p.type==="redirect")return $t(new URL(p.location,f).href,{},1,u);p.props.page!==void 0&&(V=p.props.page),v.$set(p.props)}}function _e(f){o.some(_=>_==null?void 0:_.snapshot)&&(gt[f]=o.map(_=>{var u;return(u=_==null?void 0:_.snapshot)==null?void 0:u.capture()}))}function ge(f){var _;(_=gt[f])==null||_.forEach((u,p)=>{var h,g;(g=(h=o[p])==null?void 0:h.snapshot)==null||g.restore(u)})}function me(){ee(L),Ie(yn,et),_e(L),Ie(mn,gt)}async function $t(f,{noScroll:_=!1,replaceState:u=!1,keepFocus:p=!1,state:h={},invalidateAll:g=!1},b,A){return typeof f=="string"&&(f=new URL(f,Ue(document))),Rt({url:f,scroll:_?mt():null,keepfocus:p,redirect_count:b,details:{state:h,replaceState:u},nav_token:A,accepted:()=>{g&&(x=!0)},blocked:()=>{},type:"goto"})}async function ye(f){return c={id:f.id,promise:Gt(f).then(_=>(_.type==="loaded"&&_.state.error&&(c=null),_))},c.promise}async function St(...f){const u=n.filter(p=>f.some(h=>p.exec(h))).map(p=>Promise.all([...p.layouts,p.leaf].map(h=>h==null?void 0:h[1]())));await Promise.all(u)}function we(f){var p;d=f.state;const _=document.querySelector("style[data-sveltekit]");_&&_.remove(),V=f.props.page,v=new t.root({target:e,props:{...f.props,stores:W,components:o},hydrate:!0}),ge(L);const u={from:null,to:{params:d.params,route:{id:((p=d.route)==null?void 0:p.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};l.after_navigate.forEach(h=>h(u)),S=!0}async function dt({url:f,params:_,branch:u,status:p,error:h,route:g,form:b}){let A="never";for(const $ of u)($==null?void 0:$.slash)!==void 0&&(A=$.slash);f.pathname=ur(f.pathname,A),f.search=f.search;const T={type:"loaded",state:{url:f,params:_,branch:u,error:h,route:g},props:{constructors:Or(u).map($=>$.node.component)}};b!==void 0&&(T.props.form=b);let E={},I=!V,j=0;for(let $=0;$(A.route=!0,k[D])}),params:new Proxy(p,{get:(k,D)=>(A.params.add(D),k[D])}),data:(g==null?void 0:g.data)??null,url:_r(u,()=>{A.url=!0}),async fetch(k,D){let F;k instanceof Request?(F=k.url,D={body:k.method==="GET"||k.method==="HEAD"?void 0:await k.blob(),cache:k.cache,credentials:k.credentials,headers:k.headers,integrity:k.integrity,keepalive:k.keepalive,method:k.method,mode:k.mode,redirect:k.redirect,referrer:k.referrer,referrerPolicy:k.referrerPolicy,signal:k.signal,...D}):F=k;const q=new URL(F,u);return U(q.href),q.origin===u.origin&&(F=q.href.slice(u.origin.length)),S?vr(F,q.href,D):br(F,D)},setHeaders:()=>{},depends:U,parent(){return A.parent=!0,_()}};b=await T.universal.load.call(null,$)??null,b=b?await jr(b,h.id):null}return{node:T,loader:f,server:g,universal:(I=T.universal)!=null&&I.load?{type:"data",data:b,uses:A}:null,data:b??(g==null?void 0:g.data)??null,slash:((j=T.universal)==null?void 0:j.trailingSlash)??(g==null?void 0:g.slash)}}function be(f,_,u,p,h){if(x)return!0;if(!p)return!1;if(p.parent&&f||p.route&&_||p.url&&u)return!0;for(const g of p.params)if(h[g]!==d.params[g])return!0;for(const g of p.dependencies)if(s.some(b=>b(new URL(g))))return!0;return!1}function Bt(f,_){return(f==null?void 0:f.type)==="data"?f:(f==null?void 0:f.type)==="skip"?_??null:null}async function Gt({id:f,invalidating:_,url:u,params:p,route:h}){if((c==null?void 0:c.id)===f)return c.promise;const{errors:g,layouts:b,leaf:A}=h,T=[...b,A];g.forEach(O=>O==null?void 0:O().catch(()=>{})),T.forEach(O=>O==null?void 0:O[1]().catch(()=>{}));let E=null;const I=d.url?f!==d.url.pathname+d.url.search:!1,j=d.route?h.id!==d.route.id:!1;let U=!1;const $=T.map((O,C)=>{var tt;const N=d.branch[C],M=!!(O!=null&&O[0])&&((N==null?void 0:N.loader)!==O[1]||be(U,j,I,(tt=N.server)==null?void 0:tt.uses,p));return M&&(U=!0),M});if($.some(Boolean)){try{E=await ze(u,$)}catch(O){return Et({status:O instanceof yt?O.status:500,error:await pt(O,{url:u,params:p,route:{id:h.id}}),url:u,route:h})}if(E.type==="redirect")return E}const k=E==null?void 0:E.nodes;let D=!1;const F=T.map(async(O,C)=>{var Wt;if(!O)return;const N=d.branch[C],M=k==null?void 0:k[C];if((!M||M.type==="skip")&&O[1]===(N==null?void 0:N.loader)&&!be(D,j,I,(Wt=N.universal)==null?void 0:Wt.uses,p))return N;if(D=!0,(M==null?void 0:M.type)==="error")throw M;return qt({loader:O[1],url:u,params:p,route:h,parent:async()=>{var Ee;const Se={};for(let Kt=0;Kt{});const q=[];for(let O=0;OPromise.resolve({}),server_data_node:Bt(g)}),T={node:await i(),loader:i,universal:null,server:null,data:null};return await dt({url:u,params:h,branch:[A,T],status:f,error:_,route:null})}function ht(f,_){if(Ot(f,X))return;const u=At(f);for(const p of n){const h=p.exec(u);if(h)return{id:f.pathname+f.search,invalidating:_,route:p,params:hr(h),url:f}}}function At(f){return dr(f.pathname.slice(X.length)||"/")}function xe({url:f,type:_,intent:u,delta:p}){let h=!1;const g=Ve(d,u,f,_);p!==void 0&&(g.navigation.delta=p);const b={...g.navigation,cancel:()=>{h=!0,g.reject(new Error("navigation was cancelled"))}};return w||l.before_navigate.forEach(A=>A(b)),h?null:g}async function Rt({url:f,scroll:_,keepfocus:u,redirect_count:p,details:h,type:g,delta:b,nav_token:A={},accepted:T,blocked:E}){var F,q,O;const I=ht(f,!1),j=xe({url:f,type:g,delta:b,intent:I});if(!j){E();return}const U=L;T(),w=!0,S&&W.navigating.set(j.navigation),Y=A;let $=I&&await Gt(I);if(!$){if(Ot(f,X))return await nt(f);$=await ke(f,{id:null},await pt(new Error(`Not found: ${f.pathname}`),{url:f,params:{},route:{id:null}}),404)}if(f=(I==null?void 0:I.url)||f,Y!==A)return j.reject(new Error("navigation was aborted")),!1;if($.type==="redirect")if(p>=20)$=await Et({status:500,error:await pt(new Error("Redirect loop"),{url:f,params:{},route:{id:null}}),url:f,route:{id:null}});else return $t(new URL($.location,f).href,{},p+1,A),!1;else((F=$.props.page)==null?void 0:F.status)>=400&&await W.updated.check()&&await nt(f);if(s.length=0,x=!1,y=!0,ee(U),_e(U),(q=$.props.page)!=null&&q.url&&$.props.page.url.pathname!==f.pathname&&(f.pathname=(O=$.props.page)==null?void 0:O.url.pathname),h){const C=h.replaceState?0:1;if(h.state[B]=L+=C,history[h.replaceState?"replaceState":"pushState"](h.state,"",f),!h.replaceState){let N=L+1;for(;gt[N]||et[N];)delete gt[N],delete et[N],N+=1}}if(c=null,S){d=$.state,$.props.page&&($.props.page.url=f);const C=(await Promise.all(l.on_navigate.map(N=>N(j.navigation)))).filter(N=>typeof N=="function");if(C.length>0){let N=function(){l.after_navigate=l.after_navigate.filter(M=>!C.includes(M))};C.push(N),l.after_navigate.push(...C)}v.$set($.props)}else we($);const{activeElement:k}=document;if(await Yt(),P){const C=f.hash&&document.getElementById(decodeURIComponent(f.hash.slice(1)));_?scrollTo(_.x,_.y):C?C.scrollIntoView():scrollTo(0,0)}const D=document.activeElement!==k&&document.activeElement!==document.body;!u&&!D&&ne(),P=!0,$.props.page&&(V=$.props.page),w=!1,g==="popstate"&&ge(L),j.fulfil(void 0),l.after_navigate.forEach(C=>C(j.navigation)),W.navigating.set(null),y=!1}async function ke(f,_,u,p){return f.origin===Dt&&f.pathname===location.pathname&&!m?await Et({status:p,error:u,url:f,route:_}):await nt(f)}function An(){let f;a.addEventListener("mousemove",g=>{const b=g.target;clearTimeout(f),f=setTimeout(()=>{p(b,2)},20)});function _(g){p(g.composedPath()[0],1)}a.addEventListener("mousedown",_),a.addEventListener("touchstart",_,{passive:!0});const u=new IntersectionObserver(g=>{for(const b of g)b.isIntersecting&&(St(At(new URL(b.target.href))),u.unobserve(b.target))},{threshold:0});function p(g,b){const A=Fe(g,a);if(!A)return;const{url:T,external:E,download:I}=te(A,X);if(E||I)return;const j=Tt(A);if(!j.reload)if(b<=j.preload_data){const U=ht(T,!1);U&&ye(U)}else b<=j.preload_code&&St(At(T))}function h(){u.disconnect();for(const g of a.querySelectorAll("a")){const{url:b,external:A,download:T}=te(g,X);if(A||T)continue;const E=Tt(g);E.reload||(E.preload_code===Ut.viewport&&u.observe(g),E.preload_code===Ut.eager&&St(At(b)))}}l.after_navigate.push(h),h()}function pt(f,_){return f instanceof yt?f.body:t.hooks.handleError({error:f,event:_})??{message:_.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:f=>{Jt(()=>(l.after_navigate.push(f),()=>{const _=l.after_navigate.indexOf(f);l.after_navigate.splice(_,1)}))},before_navigate:f=>{Jt(()=>(l.before_navigate.push(f),()=>{const _=l.before_navigate.indexOf(f);l.before_navigate.splice(_,1)}))},on_navigate:f=>{Jt(()=>(l.on_navigate.push(f),()=>{const _=l.on_navigate.indexOf(f);l.on_navigate.splice(_,1)}))},disable_scroll_handling:()=>{(y||!S)&&(P=!1)},goto:(f,_={})=>$t(f,_,0),invalidate:f=>{if(typeof f=="function")s.push(f);else{const{href:_}=new URL(f,location.href);s.push(u=>u.href===_)}return pe()},invalidate_all:()=>(x=!0,pe()),preload_data:async f=>{const _=new URL(f,Ue(document)),u=ht(_,!1);if(!u)throw new Error(`Attempted to preload a URL that does not belong to this app: ${_}`);await ye(u)},preload_code:St,apply_action:async f=>{if(f.type==="error"){const _=new URL(location.href),{branch:u,route:p}=d;if(!p)return;const h=await ve(d.branch.length,u,p.errors);if(h){const g=await dt({url:_,params:d.params,branch:u.slice(0,h.idx).concat(h.node),status:f.status??500,error:f.error,route:p});d=g.state,v.$set(g.props),Yt().then(ne)}}else f.type==="redirect"?$t(f.location,{invalidateAll:!0},0):(v.$set({form:null,page:{...V,form:f.data,status:f.status}}),await Yt(),v.$set({form:f.data}),f.type==="success"&&ne())},_start_router:()=>{var _;history.scrollRestoration="manual",addEventListener("beforeunload",u=>{let p=!1;if(me(),!w){const h=Ve(d,void 0,null,"leave"),g={...h.navigation,cancel:()=>{p=!0,h.reject(new Error("navigation was cancelled"))}};l.before_navigate.forEach(b=>b(g))}p?(u.preventDefault(),u.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&me()}),(_=navigator.connection)!=null&&_.saveData||An(),a.addEventListener("click",u=>{var U;if(u.button||u.which!==1||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.defaultPrevented)return;const p=Fe(u.composedPath()[0],a);if(!p)return;const{url:h,external:g,target:b,download:A}=te(p,X);if(!h)return;if(b==="_parent"||b==="_top"){if(window.parent!==window)return}else if(b&&b!=="_self")return;const T=Tt(p);if(!(p instanceof SVGAElement)&&h.protocol!==location.protocol&&!(h.protocol==="https:"||h.protocol==="http:")||A)return;if(g||T.reload){xe({url:h,type:"link"})?w=!0:u.preventDefault();return}const[I,j]=h.href.split("#");if(j!==void 0&&I===location.href.split("#")[0]){if(d.url.hash===h.hash){u.preventDefault(),(U=p.ownerDocument.getElementById(j))==null||U.scrollIntoView();return}if(R=!0,ee(L),f(h),!T.replace_state)return;R=!1,u.preventDefault()}Rt({url:h,scroll:T.noscroll?mt():null,keepfocus:T.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:T.replace_state??h.href===location.href},accepted:()=>u.preventDefault(),blocked:()=>u.preventDefault(),type:"link"})}),a.addEventListener("submit",u=>{if(u.defaultPrevented)return;const p=HTMLFormElement.prototype.cloneNode.call(u.target),h=u.submitter;if(((h==null?void 0:h.formMethod)||p.method)!=="get")return;const b=new URL((h==null?void 0:h.hasAttribute("formaction"))&&(h==null?void 0:h.formAction)||p.action);if(Ot(b,X))return;const A=u.target,{keep_focus:T,noscroll:E,reload:I,replace_state:j}=Tt(A);if(I)return;u.preventDefault(),u.stopPropagation();const U=new FormData(A),$=h==null?void 0:h.getAttribute("name");$&&U.append($,(h==null?void 0:h.getAttribute("value"))??""),b.search=new URLSearchParams(U).toString(),Rt({url:b,scroll:E?mt():null,keepfocus:T??!1,redirect_count:0,details:{state:{},replaceState:j??b.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async u=>{var p;if(Y={},(p=u.state)!=null&&p[B]){if(u.state[B]===L)return;const h=et[u.state[B]],g=new URL(location.href);if(d.url.href.split("#")[0]===location.href.split("#")[0]){f(g),et[L]=mt(),L=u.state[B],scrollTo(h.x,h.y);return}const b=u.state[B]-L;await Rt({url:g,scroll:h,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{L=u.state[B]},blocked:()=>{history.go(-b)},type:"popstate",delta:b,nav_token:Y})}else if(!R){const h=new URL(location.href);f(h)}}),addEventListener("hashchange",()=>{R&&(R=!1,history.replaceState({...history.state,[B]:++L},"",location.href))});for(const u of document.querySelectorAll("link"))u.rel==="icon"&&(u.href=u.href);addEventListener("pageshow",u=>{u.persisted&&W.navigating.set(null)});function f(u){d.url=u,W.page.set({...V,url:u}),W.page.notify()}},_hydrate:async({status:f=200,error:_,node_ids:u,params:p,route:h,data:g,form:b})=>{m=!0;const A=new URL(location.href);({params:p={},route:h={id:null}}=ht(A,!1)||{});let T;try{const E=u.map(async(U,$)=>{const k=g[$];return k!=null&&k.uses&&(k.uses=vn(k.uses)),qt({loader:t.nodes[U],url:A,params:p,route:h,parent:async()=>{const D={};for(let F=0;F<$;F+=1)Object.assign(D,(await E[F]).data);return D},server_data_node:Bt(k)})}),I=await Promise.all(E),j=n.find(({id:U})=>U===h.id);if(j){const U=j.layouts;for(let $=0;$a?"1":"0").join(""));const r=await _n(n.href);if((i=r.headers.get("content-type"))!=null&&i.includes("text/html")&&await nt(t),!r.ok)throw new yt(r.status,await r.json());return new Promise(async a=>{var m;const s=new Map,o=r.body.getReader(),c=new TextDecoder;function l(S){return Ln(S,{Promise:P=>new Promise((y,w)=>{s.set(P,{fulfil:y,reject:w})})})}let d="";for(;;){const{done:S,value:P}=await o.read();if(S&&!d)break;for(d+=!P&&d?` +`:c.decode(P);;){const y=d.indexOf(` +`);if(y===-1)break;const w=JSON.parse(d.slice(0,y));if(d=d.slice(y+1),w.type==="redirect")return a(w);if(w.type==="data")(m=w.nodes)==null||m.forEach(R=>{(R==null?void 0:R.type)==="data"&&(R.uses=vn(R.uses),R.data=l(R.data))}),a(w);else if(w.type==="chunk"){const{id:R,data:x,error:v}=w,L=s.get(R);s.delete(R),v?L.reject(l(v)):L.fulfil(l(x))}}}})}function vn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function ne(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const e=document.body,n=e.getAttribute("tabindex");e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),n!==null?e.setAttribute("tabindex",n):e.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let a=0;a{if(r.rangeCount===i.length){for(let a=0;a{i=d,a=m});return s.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((l=e==null?void 0:e.route)==null?void 0:l.id)??null},url:n},willUnload:!e,type:r,complete:s},fulfil:i,reject:a}}async function zi(t,e,n){const r=Dr(t,e);Ur({client:r}),n?await r._hydrate(n):r.goto(location.href,{replaceState:!0}),r._start_router()}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fr);const Fr=()=>{const t=W;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},Mr={subscribe(t){return Fr().page.subscribe(t)}};function Hr(t){var c;let e,n=t[0].status+"",r,i,a,s=((c=t[0].error)==null?void 0:c.message)+"",o;return{c(){e=ft("h1"),r=vt(n),i=qn(),a=ft("p"),o=vt(s)},l(l){e=ie(l,"H1",{});var d=xt(e);r=ae(d,n),d.forEach(H),i=Wn(l),a=ie(l,"P",{});var m=xt(a);o=ae(m,s),m.forEach(H)},m(l,d){Q(l,e,d),re(e,r),Q(l,i,d),Q(l,a,d),re(a,o)},p(l,[d]){var m;d&1&&n!==(n=l[0].status+"")&&Oe(r,n),d&1&&s!==(s=((m=l[0].error)==null?void 0:m.message)+"")&&Oe(o,s)},i:z,o:z,d(l){l&&(H(e),H(i),H(a))}}}function zr(t,e,n){let r;return Nn(t,Mr,i=>n(0,r=i)),[r]}let Vi=class extends pn{constructor(e){super(),hn(this,e,zr,Hr,ce,{})}};const xn=Object.freeze({left:0,top:0,width:16,height:16}),kn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ft=Object.freeze({...xn,...kn});Object.freeze({...Ft,body:"",hidden:!1});({...xn});const $n=Object.freeze({width:null,height:null}),Sn=Object.freeze({...$n,...kn});function Vr(t,e){const n={...t};for(const r in e){const i=e[r],a=typeof i;r in $n?(i===null||i&&(a==="string"||a==="number"))&&(n[r]=i):a===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const qr=/[\s,]+/;function Br(t,e){e.split(qr).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Gr(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(t);return isNaN(i)?0:r(i)}else if(n!==t){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let a=parseFloat(t.slice(0,t.length-n.length));return isNaN(a)?0:(a=a/i,a%1===0?r(a):0)}}return e}const Wr=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Kr=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function qe(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(Wr);if(r===null||!r.length)return t;const i=[];let a=r.shift(),s=Kr.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?i.push(a):i.push(Math.ceil(o*e*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join("");s=!s}}const Jr=t=>t==="unset"||t==="undefined"||t==="none";function Yr(t,e){const n={...Ft,...t},r={...Sn,...e},i={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach(y=>{const w=[],R=y.hFlip,x=y.vFlip;let v=y.rotate;R?x?v+=2:(w.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),w.push("scale(-1 1)"),i.top=i.left=0):x&&(w.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),w.push("scale(1 -1)"),i.top=i.left=0);let L;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:L=i.height/2+i.top,w.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:w.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:L=i.width/2+i.left,w.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}v%2===1&&(i.left!==i.top&&(L=i.left,i.left=i.top,i.top=L),i.width!==i.height&&(L=i.width,i.width=i.height,i.height=L)),w.length&&(a=''+a+"")});const s=r.width,o=r.height,c=i.width,l=i.height;let d,m;s===null?(m=o===null?"1em":o==="auto"?l:o,d=qe(m,c/l)):(d=s==="auto"?c:s,m=o===null?qe(d,l/c):o==="auto"?l:o);const S={},P=(y,w)=>{Jr(w)||(S[y]=w.toString())};return P("width",d),P("height",m),S.viewBox=i.left.toString()+" "+i.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:S,body:a}}const Xr=/\sid="(\S+)"/g,Qr="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Zr=0;function ti(t,e=Qr){const n=[];let r;for(;r=Xr.exec(t);)n.push(r[1]);if(!n.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const s=typeof e=="function"?e(a):e+(Zr++).toString(),o=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}function ei(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'"+t+""}function ni(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function ri(t){return"data:image/svg+xml,"+ni(t)}function ii(t){return'url("'+ri(t)+'")'}const Be={...Sn,inline:!1},ai={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},oi={display:"inline-block"},se={"background-color":"currentColor"},En={"background-color":"transparent"},Ge={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},We={"-webkit-mask":se,mask:se,background:En};for(const t in We){const e=We[t];for(const n in Ge)e[t+"-"+n]=Ge[n]}function si(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}function ci(t,e){const n=Vr(Be,e),r=e.mode||"svg",i=r==="svg"?{...ai}:{};t.body.indexOf("xlink:")===-1&&delete i["xmlns:xlink"];let a=typeof e.style=="string"?e.style:"";for(let x in e){const v=e[x];if(v!==void 0)switch(x){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[x]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&Br(n,v);break;case"color":a=a+(a.length>0&&a.trim().slice(-1)!==";"?";":"")+"color: "+v+"; ";break;case"rotate":typeof v=="string"?n[x]=Gr(v):typeof v=="number"&&(n[x]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete i["aria-hidden"];break;default:if(x.slice(0,3)==="on:")break;Be[x]===void 0&&(i[x]=v)}}const s=Yr(t,n),o=s.attributes;if(n.inline&&(a="vertical-align: -0.125em; "+a),r==="svg"){Object.assign(i,o),a!==""&&(i.style=a);let x=0,v=e.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),{svg:!0,attributes:i,body:ti(s.body,v?()=>v+"ID"+x++:"iconifySvelte")}}const{body:c,width:l,height:d}=t,m=r==="mask"||(r==="bg"?!1:c.indexOf("currentColor")!==-1),S=ei(c,{...o,width:l+"",height:d+""}),y={"--svg":ii(S)},w=x=>{const v=o[x];v&&(y[x]=si(v))};w("width"),w("height"),Object.assign(y,oi,m?se:En);let R="";for(const x in y)R+=x+": "+y[x]+";";return i.style=R+a,{svg:!1,attributes:i}}const li=Object.create(null);function fi(t){const e=typeof t.icon=="string"?li[t.icon]:typeof t.icon=="object"?{...Ft,...t.icon}:null;return e===null||typeof e!="object"||typeof e.body!="string"?null:ci({...Ft,...e},t)}function Ke(t){let e;function n(a,s){return a[0].svg?di:ui}let r=n(t),i=r(t);return{c(){i.c(),e=Nt()},l(a){i.l(a),e=Nt()},m(a,s){i.m(a,s),Q(a,e,s)},p(a,s){r===(r=n(a))&&i?i.p(a,s):(i.d(1),i=r(a),i&&(i.c(),i.m(e.parentNode,e)))},d(a){a&&H(e),i.d(a)}}}function ui(t){let e,n=[t[0].attributes],r={};for(let i=0;i{n(1,e=bt(bt({},e),Re(i)))},t.$$.update=()=>{n(0,r=fi(e))},e=Re(e),[r]}class Bi extends pn{constructor(e){super(),hn(this,e,pi,hi,ce,{})}}function _i(t){const e=t-1;return e*e*e+1}function Gi(t,{delay:e=0,duration:n=400,easing:r=Xe}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:r,css:a=>`opacity: ${a*i}`}}function Wi(t,{delay:e=0,duration:n=400,easing:r=_i,axis:i="y"}={}){const a=getComputedStyle(t),s=+a.opacity,o=i==="y"?"height":"width",c=parseFloat(a[o]),l=i==="y"?["top","bottom"]:["left","right"],d=l.map(x=>`${x[0].toUpperCase()}${x.slice(1)}`),m=parseFloat(a[`padding${d[0]}`]),S=parseFloat(a[`padding${d[1]}`]),P=parseFloat(a[`margin${d[0]}`]),y=parseFloat(a[`margin${d[1]}`]),w=parseFloat(a[`border${d[0]}Width`]),R=parseFloat(a[`border${d[1]}Width`]);return{delay:e,duration:n,easing:r,css:x=>`overflow: hidden;opacity: ${Math.min(x*20,1)*s};${o}: ${x*c}px;padding-${l[0]}: ${x*m}px;padding-${l[1]}: ${x*S}px;margin-${l[0]}: ${x*P}px;margin-${l[1]}: ${x*y}px;border-${l[0]}-width: ${x*w}px;border-${l[1]}-width: ${x*R}px;`}}export{Gi as $,ae as A,Oe as B,rr as C,Yt as D,Vi as E,je as F,Oi as G,Fi as H,Mi as I,sr as J,cr as K,Li as L,Nn as M,bt as N,Bi as O,Re as P,Hi as Q,yi as R,pn as S,Vt as T,Rr as U,Di as V,ki as W,$i as X,rt as Y,It as Z,Ii as _,ie as a,Wi as a0,Ci as a1,Ri as a2,ji as a3,Ai as a4,Ui as a5,Pi as a6,zi as a7,xt as b,wi as c,H as d,ft as e,rn as f,Q as g,re as h,hn as i,xi as j,bi as k,ar as l,qn as m,Ei as n,Wn as o,Si as p,z as q,Jt as r,ce as s,un as t,vi as u,Nt as v,ir as w,Ni as x,Ti as y,vt as z}; diff --git a/_app/immutable/chunks/vendor_svelte.9533a558.js b/_app/immutable/chunks/vendor_svelte.9533a558.js deleted file mode 100644 index 8c3f7bd8..00000000 --- a/_app/immutable/chunks/vendor_svelte.9533a558.js +++ /dev/null @@ -1,6 +0,0 @@ -var Rn=Object.defineProperty;var Tn=(t,e,n)=>e in t?Rn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var G=(t,e,n)=>(Tn(t,typeof e!="symbol"?e+"":e,n),n);import{u as Ln}from"./vendor.1acf520b.js";function z(){}const Xe=t=>t;function bt(t,e){for(const n in e)t[n]=e[n];return t}function Pn(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function Qe(t){return t()}function Ae(){return Object.create(null)}function rt(t){t.forEach(Qe)}function Mt(t){return typeof t=="function"}function le(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function On(t){return Object.keys(t).length===0}function ce(t,...e){if(t==null){for(const r of e)r(void 0);return z}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function yi(t){let e;return ce(t,n=>e=n)(),e}function Nn(t,e,n){t.$$.on_destroy.push(ce(e,n))}function wi(t,e,n,r){if(t){const i=Ze(t,e,n,r);return t[0](i)}}function Ze(t,e,n,r){return t[1]&&r?bt(n.ctx.slice(),t[1](r(e))):n.ctx}function bi(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const a=[],s=Math.max(e.dirty.length,i.length);for(let o=0;o32){const e=[],n=t.ctx.length/32;for(let r=0;rwindow.performance.now():()=>Date.now(),fe=tn?t=>requestAnimationFrame(t):z;const lt=new Set;function en(t){lt.forEach(e=>{e.c(t)||(lt.delete(e),e.f())}),lt.size!==0&&fe(en)}function Cn(t){let e;return lt.size===0&&fe(en),{promise:new Promise(n=>{lt.add(e={c:t,f:n})}),abort(){lt.delete(e)}}}let Ht=!1;function In(){Ht=!0}function Un(){Ht=!1}function Dn(t,e,n,r){for(;t>1);n(i)<=r?t=i+1:e=i}return t}function Fn(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let c=0;c0&&e[n[i]].claim_order<=c?i+1:Dn(1,i,S=>e[n[S]].claim_order,c))-1;r[l]=n[d]+1;const m=d+1;n[m]=l,i=Math.max(m,i)}const a=[],s=[];let o=e.length-1;for(let l=n[i]+1;l!=0;l=r[l-1]){for(a.push(e[l-1]);o>=l;o--)s.push(e[o]);o--}for(;o>=0;o--)s.push(e[o]);a.reverse(),s.sort((l,c)=>l.claim_order-c.claim_order);for(let l=0,c=0;l=a[c].claim_order;)c++;const d=ct.removeEventListener(e,n,r)}function rn(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Bn=["width","height"];function Te(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Bn.indexOf(r)===-1?t[r]=e[r]:rn(t,r,e[r])}function Le(t,e){for(const n in e)rn(t,n,e[n])}function Ei(t){return t.dataset.svelteH}function Ai(t){return t===""?null:+t}function xt(t){return Array.from(t.childNodes)}function an(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function on(t,e,n,r,i=!1){an(t);const a=(()=>{for(let s=t.claim_info.last_index;s=0;s--){const o=t[s];if(e(o)){const l=n(o);return l===void 0?t.splice(s,1):t[s]=l,i?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,o}}return r()})();return a.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,a}function sn(t,e,n,r){return on(t,i=>i.nodeName===e,i=>{const a=[];for(let s=0;si.removeAttribute(s))},()=>r(e))}function ie(t,e,n){return sn(t,e,n,ft)}function Gn(t,e,n){return sn(t,e,n,ue)}function ae(t,e){return on(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},()=>vt(e),!0)}function Wn(t){return ae(t," ")}function Pe(t,e,n){for(let r=n;r0&&n.push(i);return n}class Jn{constructor(e=!1){G(this,"is_svg",!1);G(this,"e");G(this,"n");G(this,"t");G(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,r=null){this.e||(this.is_svg?this.e=ue(n.nodeName):this.e=ft(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(r)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n>>0}function Xn(t,e){const n={stylesheet:Hn(e),rules:{}};return jt.set(t,n),n}function Ne(t,e,n,r,i,a,s,o=0){const l=16.666/r;let c=`{ -`;for(let R=0;R<=1;R+=l){const x=e+(n-e)*a(R);c+=R*100+`%{${s(x,1-x)}} -`}const d=c+`100% {${s(n,1-n)}} -}`,m=`__svelte_${Yn(d)}_${o}`,S=nn(t),{stylesheet:P,rules:y}=jt.get(S)||Xn(S,t);y[m]||(y[m]=!0,P.insertRule(`@keyframes ${m} ${d}`,P.cssRules.length));const w=t.style.animation||"";return t.style.animation=`${w?`${w}, `:""}${m} ${r}ms linear ${i}ms 1 both`,Ct+=1,m}function Qn(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),i=n.length-r.length;i&&(t.style.animation=r.join(", "),Ct-=i,Ct||Zn())}function Zn(){fe(()=>{Ct||(jt.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&H(e)}),jt.clear())})}let kt;function K(t){kt=t}function zt(){if(!kt)throw new Error("Function called outside component initialization");return kt}function Jt(t){zt().$$.on_mount.push(t)}function Ni(t){zt().$$.after_update.push(t)}function ji(){const t=zt();return(e,n,{cancelable:r=!1}={})=>{const i=t.$$.callbacks[e];if(i){const a=ln(e,n,{cancelable:r});return i.slice().forEach(s=>{s.call(t,a)}),!a.defaultPrevented}return!0}}function Ci(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(r=>r.call(this,e))}const st=[],je=[];let ct=[];const Ce=[],cn=Promise.resolve();let oe=!1;function fn(){oe||(oe=!0,cn.then(de))}function Yt(){return fn(),cn}function It(t){ct.push(t)}const Xt=new Set;let it=0;function de(){if(it!==0)return;const t=kt;do{try{for(;itt.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),ct=e}let _t;function nr(){return _t||(_t=Promise.resolve(),_t.then(()=>{_t=null})),_t}function Qt(t,e,n){t.dispatchEvent(ln(`${e?"intro":"outro"}${n}`))}const Pt=new Set;let J;function rr(){J={r:0,c:[],p:J}}function ir(){J.r||rt(J.c),J=J.p}function un(t,e){t&&t.i&&(Pt.delete(t),t.i(e))}function ar(t,e,n,r){if(t&&t.o){if(Pt.has(t))return;Pt.add(t),J.c.push(()=>{Pt.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const or={duration:0};function Ii(t,e,n,r){let a=e(t,n,{direction:"both"}),s=r?0:1,o=null,l=null,c=null,d;function m(){c&&Qn(t,c)}function S(y,w){const R=y.b-s;return w*=Math.abs(R),{a:s,b:y.b,d:R,duration:w,start:y.start,end:y.start+w,group:y.group}}function P(y){const{delay:w=0,duration:R=300,easing:x=Xe,tick:v=z,css:L}=a||or,Z={start:jn()+w,b:y};y||(Z.group=J,J.r+=1),"inert"in t&&(y?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),o||l?l=Z:(L&&(m(),c=Ne(t,s,y,R,w,x,L)),y&&v(0,1),o=S(Z,R),It(()=>Qt(t,y,"start")),Cn(V=>{if(l&&V>l.start&&(o=S(l,R),l=null,Qt(t,o.b,"start"),L&&(m(),c=Ne(t,s,o.b,o.duration,0,x,a.css))),o){if(V>=o.end)v(s=o.b,1-s),Qt(t,o.b,"end"),l||(o.b?m():--o.group.r||rt(o.group.c)),o=null;else if(V>=o.start){const Y=V-o.start;s=o.a+o.d*x(Y/o.duration),v(s,1-s)}}return!!(o||l)}))}return{run(y){Mt(a)?nr().then(()=>{a=a({direction:y?"in":"out"}),P(y)}):P(y)},end(){m(),o=l=null}}}function Ui(t,e){const n=e.token={};function r(i,a,s,o){if(e.token!==n)return;e.resolved=o;let l=e.ctx;s!==void 0&&(l=l.slice(),l[s]=o);const c=i&&(e.current=i)(l);let d=!1;e.block&&(e.blocks?e.blocks.forEach((m,S)=>{S!==a&&m&&(rr(),ar(m,1,1,()=>{e.blocks[S]===m&&(e.blocks[S]=null)}),ir())}):e.block.d(1),c.c(),un(c,1),c.m(e.mount(),e.anchor),d=!0),e.block=c,e.blocks&&(e.blocks[a]=c),d&&de()}if(Pn(t)){const i=zt();if(t.then(a=>{K(i),r(e.then,1,e.value,a),K(null)},a=>{if(K(i),r(e.catch,2,e.error,a),K(null),!e.hasCatch)throw a}),e.current!==e.pending)return r(e.pending,0),!0}else{if(e.current!==e.then)return r(e.then,1,e.value,t),!0;e.resolved=t}}function Di(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function dn(t,e){const n={},r={},i={$$scope:1};let a=t.length;for(;a--;){const s=t[a],o=e[a];if(o){for(const l in s)l in o||(r[l]=1);for(const l in o)i[l]||(n[l]=o[l],i[l]=1);t[a]=o}else for(const l in s)i[l]=1}for(const s in r)s in n||(n[s]=void 0);return n}function Fi(t){t&&t.c()}function Mi(t,e){t&&t.l(e)}function sr(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),It(()=>{const a=t.$$.on_mount.map(Qe).filter(Mt);t.$$.on_destroy?t.$$.on_destroy.push(...a):rt(a),t.$$.on_mount=[]}),i.forEach(It)}function lr(t,e){const n=t.$$;n.fragment!==null&&(er(n.after_update),rt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function cr(t,e){t.$$.dirty[0]===-1&&(st.push(t),fn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const y=P.length?P[0]:S;return c.ctx&&i(c.ctx[m],c.ctx[m]=y)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](y),d&&cr(t,m)),S}):[],c.update(),d=!0,rt(c.before_update),c.fragment=r?r(c.ctx):!1,e.target){if(e.hydrate){In();const m=xt(e.target);c.fragment&&c.fragment.l(m),m.forEach(H)}else c.fragment&&c.fragment.c();e.intro&&un(t.$$.fragment),sr(t,e.target,e.anchor),Un(),de()}K(l)}class pn{constructor(){G(this,"$$");G(this,"$$set")}$destroy(){lr(this,1),this.$destroy=z}$on(e,n){if(!Mt(n))return z;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!On(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const fr="4";function ur(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function dr(t){return t.split("%25").map(decodeURI).join("%25")}function hr(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}const pr=["href","pathname","search","searchParams","toString","toJSON"];function _r(t,e){const n=new URL(t);for(const r of pr)Object.defineProperty(n,r,{get(){return e(),t[r]},enumerable:!0,configurable:!0});return gr(n),n}function gr(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const mr="/__data.json";function yr(t){return t.replace(/\/$/,"")+mr}function wr(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let i=r.length;for(;i;)e=e*33^r[--i]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}const _n=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&wt.delete(he(t)),_n(t,e));const wt=new Map;function br(t,e){const n=he(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){const{body:i,...a}=JSON.parse(r.textContent),s=r.getAttribute("data-ttl");return s&&wt.set(n,{body:i,init:a,ttl:1e3*Number(s)}),Promise.resolve(new Response(i,a))}return window.fetch(t,e)}function vr(t,e,n){if(wt.size>0){const r=he(t,n),i=wt.get(r);if(i){if(performance.now(){const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(i)return e.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return Zt(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return Zt(String.fromCharCode(...l.slice(2).split("-").map(w=>parseInt(w,16))));const d=xr.exec(l);if(!d)throw new Error(`Invalid param: ${l}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,m,S,P,y]=d;return e.push({name:P,matcher:y,optional:!!m,rest:!!S,chained:S?c===1&&s[0]==="":!1}),S?"(.*?)":m?"([^/]*)?":"([^/]+?)"}return Zt(l)}).join("")}).join("")}/?$`),params:e}}function $r(t){return!/^\([^)]+\)$/.test(t)}function Sr(t){return t.slice(1).split("/").filter($r)}function Er(t,e,n){const r={},i=t.slice(1),a=i.filter(o=>o!==void 0);let s=0;for(let o=0;od).join("/"),s=0),c===void 0){l.rest&&(r[l.name]="");continue}if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=e[o+1],m=i[o+1];d&&!d.rest&&d.optional&&m&&l.chained&&(s=0),!d&&!m&&Object.keys(r).length===a.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function Zt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ar({nodes:t,server_loads:e,dictionary:n,matchers:r}){const i=new Set(e);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:m,params:S}=kr(o),P={id:o,exec:y=>{const w=m.exec(y);if(w)return Er(w,S,r)},errors:[1,...d||[]].map(y=>t[y]),layouts:[0,...c||[]].map(s),leaf:a(l)};return P.errors.length=P.layouts.length=Math.max(P.errors.length,P.layouts.length),P});function a(o){const l=o<0;return l&&(o=~o),[l,t[o]]}function s(o){return o===void 0?o:[i.has(o),t[o]]}}function gn(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Ie(t,e){const n=JSON.stringify(e);try{sessionStorage[t]=n}catch{}}const at=[];function Rr(t,e){return{subscribe:Vt(t,e).subscribe}}function Vt(t,e=z){let n;const r=new Set;function i(o){if(le(t,o)&&(t=o,n)){const l=!at.length;for(const c of r)c[1](),at.push(c,t);if(l){for(let c=0;c{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:s}}function Hi(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return Rr(n,(s,o)=>{let l=!1;const c=[];let d=0,m=z;const S=()=>{if(d)return;m();const y=e(r?c[0]:c,s,o);a?s(y):m=Mt(y)?y:z},P=i.map((y,w)=>ce(y,R=>{c[w]=R,d&=~(1<{d|=1<s)}function i(s){n=!1,e.set(s)}function a(s){let o;return e.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:i,subscribe:a}}function Pr(){const{set:t,subscribe:e}=Vt(!1);let n;async function r(){clearTimeout(n);try{const i=await fetch(`${Tr}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!i.ok)return!1;const s=(await i.json()).version!==Lr;return s&&(t(!0),clearTimeout(n)),s}catch{return!1}}return{subscribe:e,check:r}}function Ot(t,e){return t.origin!==Dt||!t.pathname.startsWith(e)}function Or(t){return t.filter(e=>e!=null)}const bn=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...bn];const Nr=new Set([...bn]);[...Nr];async function jr(t,e){var n;for(const r in t)if(typeof((n=t[r])==null?void 0:n.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([i,a])=>[i,await a])));return t}class yt{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class He{constructor(e,n){this.status=e,this.location=n}}const Cr="x-sveltekit-invalidated",Ir="x-sveltekit-trailing-slash";function Ur(t){t.client}const W={url:Me({}),page:Me({}),navigating:Vt(null),updated:Pr()},et=gn(yn)??{},gt=gn(mn)??{};function ee(t){et[t]=mt()}function nt(t){return location.href=t.href,new Promise(()=>{})}function Dr(t,e){var $e;const n=Ar(t),r=t.nodes[0],i=t.nodes[1];r(),i();const a=document.documentElement,s=[],o=[];let l=null;const c={before_navigate:[],on_navigate:[],after_navigate:[]};let d={branch:[],error:null,url:null},m=!1,S=!1,P=!0,y=!1,w=!1,R=!1,x=!1,v,L=($e=history.state)==null?void 0:$e[B];L||(L=Date.now(),history.replaceState({...history.state,[B]:L},"",location.href));const Z=et[L];Z&&(history.scrollRestoration="manual",scrollTo(Z.x,Z.y));let V,Y,ut;async function pe(){if(ut=ut||Promise.resolve(),await ut,!ut)return;ut=null;const f=new URL(location.href),_=ht(f,!0);l=null;const u=Y={},p=_&&await Gt(_);if(u===Y&&p){if(p.type==="redirect")return $t(new URL(p.location,f).href,{},1,u);p.props.page!==void 0&&(V=p.props.page),v.$set(p.props)}}function _e(f){o.some(_=>_==null?void 0:_.snapshot)&&(gt[f]=o.map(_=>{var u;return(u=_==null?void 0:_.snapshot)==null?void 0:u.capture()}))}function ge(f){var _;(_=gt[f])==null||_.forEach((u,p)=>{var h,g;(g=(h=o[p])==null?void 0:h.snapshot)==null||g.restore(u)})}function me(){ee(L),Ie(yn,et),_e(L),Ie(mn,gt)}async function $t(f,{noScroll:_=!1,replaceState:u=!1,keepFocus:p=!1,state:h={},invalidateAll:g=!1},b,A){return typeof f=="string"&&(f=new URL(f,Ue(document))),Rt({url:f,scroll:_?mt():null,keepfocus:p,redirect_count:b,details:{state:h,replaceState:u},nav_token:A,accepted:()=>{g&&(x=!0)},blocked:()=>{},type:"goto"})}async function ye(f){return l={id:f.id,promise:Gt(f).then(_=>(_.type==="loaded"&&_.state.error&&(l=null),_))},l.promise}async function St(...f){const u=n.filter(p=>f.some(h=>p.exec(h))).map(p=>Promise.all([...p.layouts,p.leaf].map(h=>h==null?void 0:h[1]())));await Promise.all(u)}function we(f){var p;d=f.state;const _=document.querySelector("style[data-sveltekit]");_&&_.remove(),V=f.props.page,v=new t.root({target:e,props:{...f.props,stores:W,components:o},hydrate:!0}),ge(L);const u={from:null,to:{params:d.params,route:{id:((p=d.route)==null?void 0:p.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};c.after_navigate.forEach(h=>h(u)),S=!0}async function dt({url:f,params:_,branch:u,status:p,error:h,route:g,form:b}){let A="never";for(const $ of u)($==null?void 0:$.slash)!==void 0&&(A=$.slash);f.pathname=ur(f.pathname,A),f.search=f.search;const T={type:"loaded",state:{url:f,params:_,branch:u,error:h,route:g},props:{constructors:Or(u).map($=>$.node.component)}};b!==void 0&&(T.props.form=b);let E={},I=!V,j=0;for(let $=0;$(A.route=!0,k[D])}),params:new Proxy(p,{get:(k,D)=>(A.params.add(D),k[D])}),data:(g==null?void 0:g.data)??null,url:_r(u,()=>{A.url=!0}),async fetch(k,D){let F;k instanceof Request?(F=k.url,D={body:k.method==="GET"||k.method==="HEAD"?void 0:await k.blob(),cache:k.cache,credentials:k.credentials,headers:k.headers,integrity:k.integrity,keepalive:k.keepalive,method:k.method,mode:k.mode,redirect:k.redirect,referrer:k.referrer,referrerPolicy:k.referrerPolicy,signal:k.signal,...D}):F=k;const q=new URL(F,u);return U(q.href),q.origin===u.origin&&(F=q.href.slice(u.origin.length)),S?vr(F,q.href,D):br(F,D)},setHeaders:()=>{},depends:U,parent(){return A.parent=!0,_()}};b=await T.universal.load.call(null,$)??null,b=b?await jr(b,h.id):null}return{node:T,loader:f,server:g,universal:(I=T.universal)!=null&&I.load?{type:"data",data:b,uses:A}:null,data:b??(g==null?void 0:g.data)??null,slash:((j=T.universal)==null?void 0:j.trailingSlash)??(g==null?void 0:g.slash)}}function be(f,_,u,p,h){if(x)return!0;if(!p)return!1;if(p.parent&&f||p.route&&_||p.url&&u)return!0;for(const g of p.params)if(h[g]!==d.params[g])return!0;for(const g of p.dependencies)if(s.some(b=>b(new URL(g))))return!0;return!1}function Bt(f,_){return(f==null?void 0:f.type)==="data"?f:(f==null?void 0:f.type)==="skip"?_??null:null}async function Gt({id:f,invalidating:_,url:u,params:p,route:h}){if((l==null?void 0:l.id)===f)return l.promise;const{errors:g,layouts:b,leaf:A}=h,T=[...b,A];g.forEach(O=>O==null?void 0:O().catch(()=>{})),T.forEach(O=>O==null?void 0:O[1]().catch(()=>{}));let E=null;const I=d.url?f!==d.url.pathname+d.url.search:!1,j=d.route?h.id!==d.route.id:!1;let U=!1;const $=T.map((O,C)=>{var tt;const N=d.branch[C],M=!!(O!=null&&O[0])&&((N==null?void 0:N.loader)!==O[1]||be(U,j,I,(tt=N.server)==null?void 0:tt.uses,p));return M&&(U=!0),M});if($.some(Boolean)){try{E=await ze(u,$)}catch(O){return Et({status:O instanceof yt?O.status:500,error:await pt(O,{url:u,params:p,route:{id:h.id}}),url:u,route:h})}if(E.type==="redirect")return E}const k=E==null?void 0:E.nodes;let D=!1;const F=T.map(async(O,C)=>{var Wt;if(!O)return;const N=d.branch[C],M=k==null?void 0:k[C];if((!M||M.type==="skip")&&O[1]===(N==null?void 0:N.loader)&&!be(D,j,I,(Wt=N.universal)==null?void 0:Wt.uses,p))return N;if(D=!0,(M==null?void 0:M.type)==="error")throw M;return qt({loader:O[1],url:u,params:p,route:h,parent:async()=>{var Ee;const Se={};for(let Kt=0;Kt{});const q=[];for(let O=0;OPromise.resolve({}),server_data_node:Bt(g)}),T={node:await i(),loader:i,universal:null,server:null,data:null};return await dt({url:u,params:h,branch:[A,T],status:f,error:_,route:null})}function ht(f,_){if(Ot(f,X))return;const u=At(f);for(const p of n){const h=p.exec(u);if(h)return{id:f.pathname+f.search,invalidating:_,route:p,params:hr(h),url:f}}}function At(f){return dr(f.pathname.slice(X.length)||"/")}function xe({url:f,type:_,intent:u,delta:p}){let h=!1;const g=Ve(d,u,f,_);p!==void 0&&(g.navigation.delta=p);const b={...g.navigation,cancel:()=>{h=!0,g.reject(new Error("navigation was cancelled"))}};return w||c.before_navigate.forEach(A=>A(b)),h?null:g}async function Rt({url:f,scroll:_,keepfocus:u,redirect_count:p,details:h,type:g,delta:b,nav_token:A={},accepted:T,blocked:E}){var F,q,O;const I=ht(f,!1),j=xe({url:f,type:g,delta:b,intent:I});if(!j){E();return}const U=L;T(),w=!0,S&&W.navigating.set(j.navigation),Y=A;let $=I&&await Gt(I);if(!$){if(Ot(f,X))return await nt(f);$=await ke(f,{id:null},await pt(new Error(`Not found: ${f.pathname}`),{url:f,params:{},route:{id:null}}),404)}if(f=(I==null?void 0:I.url)||f,Y!==A)return j.reject(new Error("navigation was aborted")),!1;if($.type==="redirect")if(p>=20)$=await Et({status:500,error:await pt(new Error("Redirect loop"),{url:f,params:{},route:{id:null}}),url:f,route:{id:null}});else return $t(new URL($.location,f).href,{},p+1,A),!1;else((F=$.props.page)==null?void 0:F.status)>=400&&await W.updated.check()&&await nt(f);if(s.length=0,x=!1,y=!0,ee(U),_e(U),(q=$.props.page)!=null&&q.url&&$.props.page.url.pathname!==f.pathname&&(f.pathname=(O=$.props.page)==null?void 0:O.url.pathname),h){const C=h.replaceState?0:1;if(h.state[B]=L+=C,history[h.replaceState?"replaceState":"pushState"](h.state,"",f),!h.replaceState){let N=L+1;for(;gt[N]||et[N];)delete gt[N],delete et[N],N+=1}}if(l=null,S){d=$.state,$.props.page&&($.props.page.url=f);const C=(await Promise.all(c.on_navigate.map(N=>N(j.navigation)))).filter(N=>typeof N=="function");if(C.length>0){let N=function(){c.after_navigate=c.after_navigate.filter(M=>!C.includes(M))};C.push(N),c.after_navigate.push(...C)}v.$set($.props)}else we($);const{activeElement:k}=document;if(await Yt(),P){const C=f.hash&&document.getElementById(decodeURIComponent(f.hash.slice(1)));_?scrollTo(_.x,_.y):C?C.scrollIntoView():scrollTo(0,0)}const D=document.activeElement!==k&&document.activeElement!==document.body;!u&&!D&&ne(),P=!0,$.props.page&&(V=$.props.page),w=!1,g==="popstate"&&ge(L),j.fulfil(void 0),c.after_navigate.forEach(C=>C(j.navigation)),W.navigating.set(null),y=!1}async function ke(f,_,u,p){return f.origin===Dt&&f.pathname===location.pathname&&!m?await Et({status:p,error:u,url:f,route:_}):await nt(f)}function An(){let f;a.addEventListener("mousemove",g=>{const b=g.target;clearTimeout(f),f=setTimeout(()=>{p(b,2)},20)});function _(g){p(g.composedPath()[0],1)}a.addEventListener("mousedown",_),a.addEventListener("touchstart",_,{passive:!0});const u=new IntersectionObserver(g=>{for(const b of g)b.isIntersecting&&(St(At(new URL(b.target.href))),u.unobserve(b.target))},{threshold:0});function p(g,b){const A=Fe(g,a);if(!A)return;const{url:T,external:E,download:I}=te(A,X);if(E||I)return;const j=Tt(A);if(!j.reload)if(b<=j.preload_data){const U=ht(T,!1);U&&ye(U)}else b<=j.preload_code&&St(At(T))}function h(){u.disconnect();for(const g of a.querySelectorAll("a")){const{url:b,external:A,download:T}=te(g,X);if(A||T)continue;const E=Tt(g);E.reload||(E.preload_code===Ut.viewport&&u.observe(g),E.preload_code===Ut.eager&&St(At(b)))}}c.after_navigate.push(h),h()}function pt(f,_){return f instanceof yt?f.body:t.hooks.handleError({error:f,event:_})??{message:_.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:f=>{Jt(()=>(c.after_navigate.push(f),()=>{const _=c.after_navigate.indexOf(f);c.after_navigate.splice(_,1)}))},before_navigate:f=>{Jt(()=>(c.before_navigate.push(f),()=>{const _=c.before_navigate.indexOf(f);c.before_navigate.splice(_,1)}))},on_navigate:f=>{Jt(()=>(c.on_navigate.push(f),()=>{const _=c.on_navigate.indexOf(f);c.on_navigate.splice(_,1)}))},disable_scroll_handling:()=>{(y||!S)&&(P=!1)},goto:(f,_={})=>$t(f,_,0),invalidate:f=>{if(typeof f=="function")s.push(f);else{const{href:_}=new URL(f,location.href);s.push(u=>u.href===_)}return pe()},invalidate_all:()=>(x=!0,pe()),preload_data:async f=>{const _=new URL(f,Ue(document)),u=ht(_,!1);if(!u)throw new Error(`Attempted to preload a URL that does not belong to this app: ${_}`);await ye(u)},preload_code:St,apply_action:async f=>{if(f.type==="error"){const _=new URL(location.href),{branch:u,route:p}=d;if(!p)return;const h=await ve(d.branch.length,u,p.errors);if(h){const g=await dt({url:_,params:d.params,branch:u.slice(0,h.idx).concat(h.node),status:f.status??500,error:f.error,route:p});d=g.state,v.$set(g.props),Yt().then(ne)}}else f.type==="redirect"?$t(f.location,{invalidateAll:!0},0):(v.$set({form:null,page:{...V,form:f.data,status:f.status}}),await Yt(),v.$set({form:f.data}),f.type==="success"&&ne())},_start_router:()=>{var _;history.scrollRestoration="manual",addEventListener("beforeunload",u=>{let p=!1;if(me(),!w){const h=Ve(d,void 0,null,"leave"),g={...h.navigation,cancel:()=>{p=!0,h.reject(new Error("navigation was cancelled"))}};c.before_navigate.forEach(b=>b(g))}p?(u.preventDefault(),u.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&me()}),(_=navigator.connection)!=null&&_.saveData||An(),a.addEventListener("click",u=>{var U;if(u.button||u.which!==1||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.defaultPrevented)return;const p=Fe(u.composedPath()[0],a);if(!p)return;const{url:h,external:g,target:b,download:A}=te(p,X);if(!h)return;if(b==="_parent"||b==="_top"){if(window.parent!==window)return}else if(b&&b!=="_self")return;const T=Tt(p);if(!(p instanceof SVGAElement)&&h.protocol!==location.protocol&&!(h.protocol==="https:"||h.protocol==="http:")||A)return;if(g||T.reload){xe({url:h,type:"link"})?w=!0:u.preventDefault();return}const[I,j]=h.href.split("#");if(j!==void 0&&I===location.href.split("#")[0]){if(d.url.hash===h.hash){u.preventDefault(),(U=p.ownerDocument.getElementById(j))==null||U.scrollIntoView();return}if(R=!0,ee(L),f(h),!T.replace_state)return;R=!1,u.preventDefault()}Rt({url:h,scroll:T.noscroll?mt():null,keepfocus:T.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:T.replace_state??h.href===location.href},accepted:()=>u.preventDefault(),blocked:()=>u.preventDefault(),type:"link"})}),a.addEventListener("submit",u=>{if(u.defaultPrevented)return;const p=HTMLFormElement.prototype.cloneNode.call(u.target),h=u.submitter;if(((h==null?void 0:h.formMethod)||p.method)!=="get")return;const b=new URL((h==null?void 0:h.hasAttribute("formaction"))&&(h==null?void 0:h.formAction)||p.action);if(Ot(b,X))return;const A=u.target,{keep_focus:T,noscroll:E,reload:I,replace_state:j}=Tt(A);if(I)return;u.preventDefault(),u.stopPropagation();const U=new FormData(A),$=h==null?void 0:h.getAttribute("name");$&&U.append($,(h==null?void 0:h.getAttribute("value"))??""),b.search=new URLSearchParams(U).toString(),Rt({url:b,scroll:E?mt():null,keepfocus:T??!1,redirect_count:0,details:{state:{},replaceState:j??b.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async u=>{var p;if(Y={},(p=u.state)!=null&&p[B]){if(u.state[B]===L)return;const h=et[u.state[B]],g=new URL(location.href);if(d.url.href.split("#")[0]===location.href.split("#")[0]){f(g),et[L]=mt(),L=u.state[B],scrollTo(h.x,h.y);return}const b=u.state[B]-L;await Rt({url:g,scroll:h,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{L=u.state[B]},blocked:()=>{history.go(-b)},type:"popstate",delta:b,nav_token:Y})}else if(!R){const h=new URL(location.href);f(h)}}),addEventListener("hashchange",()=>{R&&(R=!1,history.replaceState({...history.state,[B]:++L},"",location.href))});for(const u of document.querySelectorAll("link"))u.rel==="icon"&&(u.href=u.href);addEventListener("pageshow",u=>{u.persisted&&W.navigating.set(null)});function f(u){d.url=u,W.page.set({...V,url:u}),W.page.notify()}},_hydrate:async({status:f=200,error:_,node_ids:u,params:p,route:h,data:g,form:b})=>{m=!0;const A=new URL(location.href);({params:p={},route:h={id:null}}=ht(A,!1)||{});let T;try{const E=u.map(async(U,$)=>{const k=g[$];return k!=null&&k.uses&&(k.uses=vn(k.uses)),qt({loader:t.nodes[U],url:A,params:p,route:h,parent:async()=>{const D={};for(let F=0;F<$;F+=1)Object.assign(D,(await E[F]).data);return D},server_data_node:Bt(k)})}),I=await Promise.all(E),j=n.find(({id:U})=>U===h.id);if(j){const U=j.layouts;for(let $=0;$a?"1":"0").join(""));const r=await _n(n.href);if((i=r.headers.get("content-type"))!=null&&i.includes("text/html")&&await nt(t),!r.ok)throw new yt(r.status,await r.json());return new Promise(async a=>{var m;const s=new Map,o=r.body.getReader(),l=new TextDecoder;function c(S){return Ln(S,{Promise:P=>new Promise((y,w)=>{s.set(P,{fulfil:y,reject:w})})})}let d="";for(;;){const{done:S,value:P}=await o.read();if(S&&!d)break;for(d+=!P&&d?` -`:l.decode(P);;){const y=d.indexOf(` -`);if(y===-1)break;const w=JSON.parse(d.slice(0,y));if(d=d.slice(y+1),w.type==="redirect")return a(w);if(w.type==="data")(m=w.nodes)==null||m.forEach(R=>{(R==null?void 0:R.type)==="data"&&(R.uses=vn(R.uses),R.data=c(R.data))}),a(w);else if(w.type==="chunk"){const{id:R,data:x,error:v}=w,L=s.get(R);s.delete(R),v?L.reject(c(v)):L.fulfil(c(x))}}}})}function vn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function ne(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const e=document.body,n=e.getAttribute("tabindex");e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),n!==null?e.setAttribute("tabindex",n):e.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let a=0;a{if(r.rangeCount===i.length){for(let a=0;a{i=d,a=m});return s.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((l=t.route)==null?void 0:l.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((c=e==null?void 0:e.route)==null?void 0:c.id)??null},url:n},willUnload:!e,type:r,complete:s},fulfil:i,reject:a}}async function zi(t,e,n){const r=Dr(t,e);Ur({client:r}),n?await r._hydrate(n):r.goto(location.href,{replaceState:!0}),r._start_router()}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fr);const Fr=()=>{const t=W;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},Mr={subscribe(t){return Fr().page.subscribe(t)}};function Hr(t){var l;let e,n=t[0].status+"",r,i,a,s=((l=t[0].error)==null?void 0:l.message)+"",o;return{c(){e=ft("h1"),r=vt(n),i=qn(),a=ft("p"),o=vt(s)},l(c){e=ie(c,"H1",{});var d=xt(e);r=ae(d,n),d.forEach(H),i=Wn(c),a=ie(c,"P",{});var m=xt(a);o=ae(m,s),m.forEach(H)},m(c,d){Q(c,e,d),re(e,r),Q(c,i,d),Q(c,a,d),re(a,o)},p(c,[d]){var m;d&1&&n!==(n=c[0].status+"")&&Oe(r,n),d&1&&s!==(s=((m=c[0].error)==null?void 0:m.message)+"")&&Oe(o,s)},i:z,o:z,d(c){c&&(H(e),H(i),H(a))}}}function zr(t,e,n){let r;return Nn(t,Mr,i=>n(0,r=i)),[r]}let Vi=class extends pn{constructor(e){super(),hn(this,e,zr,Hr,le,{})}};const xn=Object.freeze({left:0,top:0,width:16,height:16}),kn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ft=Object.freeze({...xn,...kn});Object.freeze({...Ft,body:"",hidden:!1});({...xn});const $n=Object.freeze({width:null,height:null}),Sn=Object.freeze({...$n,...kn});function Vr(t,e){const n={...t};for(const r in e){const i=e[r],a=typeof i;r in $n?(i===null||i&&(a==="string"||a==="number"))&&(n[r]=i):a===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const qr=/[\s,]+/;function Br(t,e){e.split(qr).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Gr(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(t);return isNaN(i)?0:r(i)}else if(n!==t){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let a=parseFloat(t.slice(0,t.length-n.length));return isNaN(a)?0:(a=a/i,a%1===0?r(a):0)}}return e}const Wr=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Kr=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function qe(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(Wr);if(r===null||!r.length)return t;const i=[];let a=r.shift(),s=Kr.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?i.push(a):i.push(Math.ceil(o*e*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join("");s=!s}}const Jr=t=>t==="unset"||t==="undefined"||t==="none";function Yr(t,e){const n={...Ft,...t},r={...Sn,...e},i={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach(y=>{const w=[],R=y.hFlip,x=y.vFlip;let v=y.rotate;R?x?v+=2:(w.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),w.push("scale(-1 1)"),i.top=i.left=0):x&&(w.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),w.push("scale(1 -1)"),i.top=i.left=0);let L;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:L=i.height/2+i.top,w.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:w.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:L=i.width/2+i.left,w.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}v%2===1&&(i.left!==i.top&&(L=i.left,i.left=i.top,i.top=L),i.width!==i.height&&(L=i.width,i.width=i.height,i.height=L)),w.length&&(a=''+a+"")});const s=r.width,o=r.height,l=i.width,c=i.height;let d,m;s===null?(m=o===null?"1em":o==="auto"?c:o,d=qe(m,l/c)):(d=s==="auto"?l:s,m=o===null?qe(d,c/l):o==="auto"?c:o);const S={},P=(y,w)=>{Jr(w)||(S[y]=w.toString())};return P("width",d),P("height",m),S.viewBox=i.left.toString()+" "+i.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:S,body:a}}const Xr=/\sid="(\S+)"/g,Qr="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Zr=0;function ti(t,e=Qr){const n=[];let r;for(;r=Xr.exec(t);)n.push(r[1]);if(!n.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const s=typeof e=="function"?e(a):e+(Zr++).toString(),o=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}function ei(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'"+t+""}function ni(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function ri(t){return"data:image/svg+xml,"+ni(t)}function ii(t){return'url("'+ri(t)+'")'}const Be={...Sn,inline:!1},ai={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},oi={display:"inline-block"},se={"background-color":"currentColor"},En={"background-color":"transparent"},Ge={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},We={"-webkit-mask":se,mask:se,background:En};for(const t in We){const e=We[t];for(const n in Ge)e[t+"-"+n]=Ge[n]}function si(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}function li(t,e){const n=Vr(Be,e),r=e.mode||"svg",i=r==="svg"?{...ai}:{};t.body.indexOf("xlink:")===-1&&delete i["xmlns:xlink"];let a=typeof e.style=="string"?e.style:"";for(let x in e){const v=e[x];if(v!==void 0)switch(x){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[x]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&Br(n,v);break;case"color":a=a+(a.length>0&&a.trim().slice(-1)!==";"?";":"")+"color: "+v+"; ";break;case"rotate":typeof v=="string"?n[x]=Gr(v):typeof v=="number"&&(n[x]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete i["aria-hidden"];break;default:if(x.slice(0,3)==="on:")break;Be[x]===void 0&&(i[x]=v)}}const s=Yr(t,n),o=s.attributes;if(n.inline&&(a="vertical-align: -0.125em; "+a),r==="svg"){Object.assign(i,o),a!==""&&(i.style=a);let x=0,v=e.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),{svg:!0,attributes:i,body:ti(s.body,v?()=>v+"ID"+x++:"iconifySvelte")}}const{body:l,width:c,height:d}=t,m=r==="mask"||(r==="bg"?!1:l.indexOf("currentColor")!==-1),S=ei(l,{...o,width:c+"",height:d+""}),y={"--svg":ii(S)},w=x=>{const v=o[x];v&&(y[x]=si(v))};w("width"),w("height"),Object.assign(y,oi,m?se:En);let R="";for(const x in y)R+=x+": "+y[x]+";";return i.style=R+a,{svg:!1,attributes:i}}const ci=Object.create(null);function fi(t){const e=typeof t.icon=="string"?ci[t.icon]:typeof t.icon=="object"?{...Ft,...t.icon}:null;return e===null||typeof e!="object"||typeof e.body!="string"?null:li({...Ft,...e},t)}function Ke(t){let e;function n(a,s){return a[0].svg?di:ui}let r=n(t),i=r(t);return{c(){i.c(),e=Nt()},l(a){i.l(a),e=Nt()},m(a,s){i.m(a,s),Q(a,e,s)},p(a,s){r===(r=n(a))&&i?i.p(a,s):(i.d(1),i=r(a),i&&(i.c(),i.m(e.parentNode,e)))},d(a){a&&H(e),i.d(a)}}}function ui(t){let e,n=[t[0].attributes],r={};for(let i=0;i{n(1,e=bt(bt({},e),Re(i)))},t.$$.update=()=>{n(0,r=fi(e))},e=Re(e),[r]}class Bi extends pn{constructor(e){super(),hn(this,e,pi,hi,le,{})}}function _i(t){const e=t-1;return e*e*e+1}function Gi(t,{delay:e=0,duration:n=400,easing:r=Xe}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:r,css:a=>`opacity: ${a*i}`}}function Wi(t,{delay:e=0,duration:n=400,easing:r=_i,axis:i="y"}={}){const a=getComputedStyle(t),s=+a.opacity,o=i==="y"?"height":"width",l=parseFloat(a[o]),c=i==="y"?["top","bottom"]:["left","right"],d=c.map(x=>`${x[0].toUpperCase()}${x.slice(1)}`),m=parseFloat(a[`padding${d[0]}`]),S=parseFloat(a[`padding${d[1]}`]),P=parseFloat(a[`margin${d[0]}`]),y=parseFloat(a[`margin${d[1]}`]),w=parseFloat(a[`border${d[0]}Width`]),R=parseFloat(a[`border${d[1]}Width`]);return{delay:e,duration:n,easing:r,css:x=>`overflow: hidden;opacity: ${Math.min(x*20,1)*s};${o}: ${x*l}px;padding-${c[0]}: ${x*m}px;padding-${c[1]}: ${x*S}px;margin-${c[0]}: ${x*P}px;margin-${c[1]}: ${x*y}px;border-${c[0]}-width: ${x*w}px;border-${c[1]}-width: ${x*R}px;`}}export{Gi as $,ae as A,Oe as B,rr as C,Yt as D,Vi as E,je as F,Oi as G,Fi as H,Mi as I,sr as J,lr as K,Li as L,Nn as M,bt as N,Bi as O,Re as P,Hi as Q,yi as R,pn as S,Vt as T,Rr as U,Di as V,ki as W,$i as X,rt as Y,It as Z,Ii as _,ie as a,Wi as a0,Ci as a1,Ri as a2,ji as a3,Ai as a4,Ui as a5,Pi as a6,zi as a7,xt as b,wi as c,H as d,ft as e,rn as f,Q as g,re as h,hn as i,xi as j,bi as k,ar as l,qn as m,Ei as n,Wn as o,Si as p,z as q,Jt as r,le as s,un as t,vi as u,Nt as v,ir as w,Ni as x,Ti as y,vt as z}; diff --git a/_app/immutable/entry/app.046e4e3c.js b/_app/immutable/entry/app.3bc85028.js similarity index 89% rename from _app/immutable/entry/app.046e4e3c.js rename to _app/immutable/entry/app.3bc85028.js index 506e9325..c3cc637f 100644 --- a/_app/immutable/entry/app.046e4e3c.js +++ b/_app/immutable/entry/app.3bc85028.js @@ -1 +1 @@ -import{_ as y}from"../chunks/preload-helper.a4192956.js";import{S as z,i as B,s as F,m as G,v as u,o as H,g as w,l as m,w as N,t as p,d,x as J,r as K,e as M,a as U,b as j,f as R,y as E,z as Q,A as W,B as X,C as D,D as Y,F as A,G as g,H as b,I as P,J as k,K as v}from"../chunks/vendor_svelte.9533a558.js";const ae={};function Z(o){let e,n,r;var i=o[1][0];function c(t,f){return{props:{data:t[3],form:t[2]}}}return i&&(e=g(i,c(o)),o[15](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][0])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[15](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&8&&(s.data=t[3]),f&4&&(s.form=t[2]),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[15](null),e&&v(e,t)}}}function x(o){let e,n,r;var i=o[1][0];function c(t,f){return{props:{data:t[3],$$slots:{default:[ie]},$$scope:{ctx:t}}}}return i&&(e=g(i,c(o)),o[14](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][0])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[14](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&8&&(s.data=t[3]),f&65591&&(s.$$scope={dirty:f,ctx:t}),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[14](null),e&&v(e,t)}}}function ee(o){let e,n,r;var i=o[1][1];function c(t,f){return{props:{data:t[4],form:t[2]}}}return i&&(e=g(i,c(o)),o[13](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][1])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[13](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&16&&(s.data=t[4]),f&4&&(s.form=t[2]),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[13](null),e&&v(e,t)}}}function te(o){let e,n,r;var i=o[1][1];function c(t,f){return{props:{data:t[4],$$slots:{default:[ne]},$$scope:{ctx:t}}}}return i&&(e=g(i,c(o)),o[12](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][1])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[12](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&16&&(s.data=t[4]),f&65575&&(s.$$scope={dirty:f,ctx:t}),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[12](null),e&&v(e,t)}}}function ne(o){let e,n,r;var i=o[1][2];function c(t,f){return{props:{data:t[5],form:t[2]}}}return i&&(e=g(i,c(o)),o[11](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][2])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[11](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&32&&(s.data=t[5]),f&4&&(s.form=t[2]),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[11](null),e&&v(e,t)}}}function ie(o){let e,n,r,i;const c=[te,ee],t=[];function f(s,_){return s[1][2]?0:1}return e=f(o),n=t[e]=c[e](o),{c(){n.c(),r=u()},l(s){n.l(s),r=u()},m(s,_){t[e].m(s,_),w(s,r,_),i=!0},p(s,_){let l=e;e=f(s),e===l?t[e].p(s,_):(D(),m(t[l],1,1,()=>{t[l]=null}),N(),n=t[e],n?n.p(s,_):(n=t[e]=c[e](s),n.c()),p(n,1),n.m(r.parentNode,r))},i(s){i||(p(n),i=!0)},o(s){m(n),i=!1},d(s){s&&d(r),t[e].d(s)}}}function L(o){let e,n=o[7]&&O(o);return{c(){e=M("div"),n&&n.c(),this.h()},l(r){e=U(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=j(e);n&&n.l(i),i.forEach(d),this.h()},h(){R(e,"id","svelte-announcer"),R(e,"aria-live","assertive"),R(e,"aria-atomic","true"),E(e,"position","absolute"),E(e,"left","0"),E(e,"top","0"),E(e,"clip","rect(0 0 0 0)"),E(e,"clip-path","inset(50%)"),E(e,"overflow","hidden"),E(e,"white-space","nowrap"),E(e,"width","1px"),E(e,"height","1px")},m(r,i){w(r,e,i),n&&n.m(e,null)},p(r,i){r[7]?n?n.p(r,i):(n=O(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(r){r&&d(e),n&&n.d()}}}function O(o){let e;return{c(){e=Q(o[8])},l(n){e=W(n,o[8])},m(n,r){w(n,e,r)},p(n,r){r&256&&X(e,n[8])},d(n){n&&d(e)}}}function se(o){let e,n,r,i,c;const t=[x,Z],f=[];function s(l,h){return l[1][1]?0:1}e=s(o),n=f[e]=t[e](o);let _=o[6]&&L(o);return{c(){n.c(),r=G(),_&&_.c(),i=u()},l(l){n.l(l),r=H(l),_&&_.l(l),i=u()},m(l,h){f[e].m(l,h),w(l,r,h),_&&_.m(l,h),w(l,i,h),c=!0},p(l,[h]){let I=e;e=s(l),e===I?f[e].p(l,h):(D(),m(f[I],1,1,()=>{f[I]=null}),N(),n=f[e],n?n.p(l,h):(n=f[e]=t[e](l),n.c()),p(n,1),n.m(r.parentNode,r)),l[6]?_?_.p(l,h):(_=L(l),_.c(),_.m(i.parentNode,i)):_&&(_.d(1),_=null)},i(l){c||(p(n),c=!0)},o(l){m(n),c=!1},d(l){l&&(d(r),d(i)),f[e].d(l),_&&_.d(l)}}}function re(o,e,n){let{stores:r}=e,{page:i}=e,{constructors:c}=e,{components:t=[]}=e,{form:f}=e,{data_0:s=null}=e,{data_1:_=null}=e,{data_2:l=null}=e;J(r.page.notify);let h=!1,I=!1,V=null;K(()=>{const a=r.page.subscribe(()=>{h&&(n(7,I=!0),Y().then(()=>{n(8,V=document.title||"untitled page")}))});return n(6,h=!0),a});function T(a){A[a?"unshift":"push"](()=>{t[2]=a,n(0,t)})}function $(a){A[a?"unshift":"push"](()=>{t[1]=a,n(0,t)})}function C(a){A[a?"unshift":"push"](()=>{t[1]=a,n(0,t)})}function S(a){A[a?"unshift":"push"](()=>{t[0]=a,n(0,t)})}function q(a){A[a?"unshift":"push"](()=>{t[0]=a,n(0,t)})}return o.$$set=a=>{"stores"in a&&n(9,r=a.stores),"page"in a&&n(10,i=a.page),"constructors"in a&&n(1,c=a.constructors),"components"in a&&n(0,t=a.components),"form"in a&&n(2,f=a.form),"data_0"in a&&n(3,s=a.data_0),"data_1"in a&&n(4,_=a.data_1),"data_2"in a&&n(5,l=a.data_2)},o.$$.update=()=>{o.$$.dirty&1536&&r.page.set(i)},[t,c,f,s,_,l,h,I,V,r,i,T,$,C,S,q]}class le extends z{constructor(e){super(),B(this,e,re,se,F,{stores:9,page:10,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5})}}const _e=[()=>y(()=>import("../nodes/0.f2bf2a97.js"),["../nodes/0.f2bf2a97.js","../chunks/vendor_svelte.9533a558.js","../chunks/vendor.1acf520b.js","../assets/tailwind.51d3662c.css"],import.meta.url),()=>y(()=>import("../nodes/1.85542212.js"),["../nodes/1.85542212.js","../chunks/vendor_svelte.9533a558.js","../chunks/vendor.1acf520b.js"],import.meta.url),()=>y(()=>import("../nodes/2.359a7bf0.js"),["../nodes/2.359a7bf0.js","../chunks/vendor_svelte.9533a558.js","../chunks/vendor.1acf520b.js","../assets/tailwind.51d3662c.css"],import.meta.url),()=>y(()=>import("../nodes/3.069112b4.js"),["../nodes/3.069112b4.js","../chunks/3.8c3c04e9.js","../chunks/preload-helper.a4192956.js","../chunks/vendor_svelte.9533a558.js","../chunks/vendor.1acf520b.js","../assets/3.09e3bbae.css"],import.meta.url),()=>y(()=>import("../nodes/4.42c58d77.js"),["../nodes/4.42c58d77.js","../chunks/vendor_svelte.9533a558.js","../chunks/vendor.1acf520b.js"],import.meta.url)],ce=[],ue={"/(site)":[3,[2]],"/(site)/synth":[4,[2]]},me={handleError:({error:o})=>{console.error(o)}};export{ue as dictionary,me as hooks,ae as matchers,_e as nodes,le as root,ce as server_loads}; +import{_ as y}from"../chunks/preload-helper.a4192956.js";import{S as z,i as B,s as F,m as G,v as u,o as H,g as w,l as m,w as N,t as p,d,x as J,r as K,e as M,a as U,b as j,f as R,y as E,z as Q,A as W,B as X,C as D,D as Y,F as A,G as g,H as b,I as P,J as k,K as v}from"../chunks/vendor_svelte.92aa1392.js";const ae={};function Z(o){let e,n,r;var i=o[1][0];function c(t,f){return{props:{data:t[3],form:t[2]}}}return i&&(e=g(i,c(o)),o[15](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][0])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[15](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&8&&(s.data=t[3]),f&4&&(s.form=t[2]),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[15](null),e&&v(e,t)}}}function x(o){let e,n,r;var i=o[1][0];function c(t,f){return{props:{data:t[3],$$slots:{default:[ie]},$$scope:{ctx:t}}}}return i&&(e=g(i,c(o)),o[14](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][0])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[14](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&8&&(s.data=t[3]),f&65591&&(s.$$scope={dirty:f,ctx:t}),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[14](null),e&&v(e,t)}}}function ee(o){let e,n,r;var i=o[1][1];function c(t,f){return{props:{data:t[4],form:t[2]}}}return i&&(e=g(i,c(o)),o[13](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][1])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[13](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&16&&(s.data=t[4]),f&4&&(s.form=t[2]),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[13](null),e&&v(e,t)}}}function te(o){let e,n,r;var i=o[1][1];function c(t,f){return{props:{data:t[4],$$slots:{default:[ne]},$$scope:{ctx:t}}}}return i&&(e=g(i,c(o)),o[12](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][1])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[12](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&16&&(s.data=t[4]),f&65575&&(s.$$scope={dirty:f,ctx:t}),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[12](null),e&&v(e,t)}}}function ne(o){let e,n,r;var i=o[1][2];function c(t,f){return{props:{data:t[5],form:t[2]}}}return i&&(e=g(i,c(o)),o[11](e)),{c(){e&&b(e.$$.fragment),n=u()},l(t){e&&P(e.$$.fragment,t),n=u()},m(t,f){e&&k(e,t,f),w(t,n,f),r=!0},p(t,f){if(f&2&&i!==(i=t[1][2])){if(e){D();const s=e;m(s.$$.fragment,1,0,()=>{v(s,1)}),N()}i?(e=g(i,c(t)),t[11](e),b(e.$$.fragment),p(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else if(i){const s={};f&32&&(s.data=t[5]),f&4&&(s.form=t[2]),e.$set(s)}},i(t){r||(e&&p(e.$$.fragment,t),r=!0)},o(t){e&&m(e.$$.fragment,t),r=!1},d(t){t&&d(n),o[11](null),e&&v(e,t)}}}function ie(o){let e,n,r,i;const c=[te,ee],t=[];function f(s,_){return s[1][2]?0:1}return e=f(o),n=t[e]=c[e](o),{c(){n.c(),r=u()},l(s){n.l(s),r=u()},m(s,_){t[e].m(s,_),w(s,r,_),i=!0},p(s,_){let l=e;e=f(s),e===l?t[e].p(s,_):(D(),m(t[l],1,1,()=>{t[l]=null}),N(),n=t[e],n?n.p(s,_):(n=t[e]=c[e](s),n.c()),p(n,1),n.m(r.parentNode,r))},i(s){i||(p(n),i=!0)},o(s){m(n),i=!1},d(s){s&&d(r),t[e].d(s)}}}function L(o){let e,n=o[7]&&O(o);return{c(){e=M("div"),n&&n.c(),this.h()},l(r){e=U(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=j(e);n&&n.l(i),i.forEach(d),this.h()},h(){R(e,"id","svelte-announcer"),R(e,"aria-live","assertive"),R(e,"aria-atomic","true"),E(e,"position","absolute"),E(e,"left","0"),E(e,"top","0"),E(e,"clip","rect(0 0 0 0)"),E(e,"clip-path","inset(50%)"),E(e,"overflow","hidden"),E(e,"white-space","nowrap"),E(e,"width","1px"),E(e,"height","1px")},m(r,i){w(r,e,i),n&&n.m(e,null)},p(r,i){r[7]?n?n.p(r,i):(n=O(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(r){r&&d(e),n&&n.d()}}}function O(o){let e;return{c(){e=Q(o[8])},l(n){e=W(n,o[8])},m(n,r){w(n,e,r)},p(n,r){r&256&&X(e,n[8])},d(n){n&&d(e)}}}function se(o){let e,n,r,i,c;const t=[x,Z],f=[];function s(l,h){return l[1][1]?0:1}e=s(o),n=f[e]=t[e](o);let _=o[6]&&L(o);return{c(){n.c(),r=G(),_&&_.c(),i=u()},l(l){n.l(l),r=H(l),_&&_.l(l),i=u()},m(l,h){f[e].m(l,h),w(l,r,h),_&&_.m(l,h),w(l,i,h),c=!0},p(l,[h]){let I=e;e=s(l),e===I?f[e].p(l,h):(D(),m(f[I],1,1,()=>{f[I]=null}),N(),n=f[e],n?n.p(l,h):(n=f[e]=t[e](l),n.c()),p(n,1),n.m(r.parentNode,r)),l[6]?_?_.p(l,h):(_=L(l),_.c(),_.m(i.parentNode,i)):_&&(_.d(1),_=null)},i(l){c||(p(n),c=!0)},o(l){m(n),c=!1},d(l){l&&(d(r),d(i)),f[e].d(l),_&&_.d(l)}}}function re(o,e,n){let{stores:r}=e,{page:i}=e,{constructors:c}=e,{components:t=[]}=e,{form:f}=e,{data_0:s=null}=e,{data_1:_=null}=e,{data_2:l=null}=e;J(r.page.notify);let h=!1,I=!1,V=null;K(()=>{const a=r.page.subscribe(()=>{h&&(n(7,I=!0),Y().then(()=>{n(8,V=document.title||"untitled page")}))});return n(6,h=!0),a});function T(a){A[a?"unshift":"push"](()=>{t[2]=a,n(0,t)})}function $(a){A[a?"unshift":"push"](()=>{t[1]=a,n(0,t)})}function C(a){A[a?"unshift":"push"](()=>{t[1]=a,n(0,t)})}function S(a){A[a?"unshift":"push"](()=>{t[0]=a,n(0,t)})}function q(a){A[a?"unshift":"push"](()=>{t[0]=a,n(0,t)})}return o.$$set=a=>{"stores"in a&&n(9,r=a.stores),"page"in a&&n(10,i=a.page),"constructors"in a&&n(1,c=a.constructors),"components"in a&&n(0,t=a.components),"form"in a&&n(2,f=a.form),"data_0"in a&&n(3,s=a.data_0),"data_1"in a&&n(4,_=a.data_1),"data_2"in a&&n(5,l=a.data_2)},o.$$.update=()=>{o.$$.dirty&1536&&r.page.set(i)},[t,c,f,s,_,l,h,I,V,r,i,T,$,C,S,q]}class le extends z{constructor(e){super(),B(this,e,re,se,F,{stores:9,page:10,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5})}}const _e=[()=>y(()=>import("../nodes/0.a5f5e278.js"),["../nodes/0.a5f5e278.js","../chunks/vendor_svelte.92aa1392.js","../chunks/vendor.1acf520b.js","../assets/tailwind.51d3662c.css"],import.meta.url),()=>y(()=>import("../nodes/1.16512379.js"),["../nodes/1.16512379.js","../chunks/vendor_svelte.92aa1392.js","../chunks/vendor.1acf520b.js"],import.meta.url),()=>y(()=>import("../nodes/2.f30ac75f.js"),["../nodes/2.f30ac75f.js","../chunks/vendor_svelte.92aa1392.js","../chunks/vendor.1acf520b.js","../assets/tailwind.51d3662c.css"],import.meta.url),()=>y(()=>import("../nodes/3.64d7238a.js"),["../nodes/3.64d7238a.js","../chunks/3.715a6b2e.js","../chunks/preload-helper.a4192956.js","../chunks/vendor_svelte.92aa1392.js","../chunks/vendor.1acf520b.js","../assets/3.09e3bbae.css"],import.meta.url),()=>y(()=>import("../nodes/4.56f78c50.js"),["../nodes/4.56f78c50.js","../chunks/vendor_svelte.92aa1392.js","../chunks/vendor.1acf520b.js"],import.meta.url)],ce=[],ue={"/(site)":[3,[2]],"/(site)/synth":[4,[2]]},me={handleError:({error:o})=>{console.error(o)}};export{ue as dictionary,me as hooks,ae as matchers,_e as nodes,le as root,ce as server_loads}; diff --git a/_app/immutable/entry/start.11bc0f32.js b/_app/immutable/entry/start.11bc0f32.js new file mode 100644 index 00000000..74864cdd --- /dev/null +++ b/_app/immutable/entry/start.11bc0f32.js @@ -0,0 +1 @@ +import{a7 as t}from"../chunks/vendor_svelte.92aa1392.js";export{t as start}; diff --git a/_app/immutable/entry/start.16f067c5.js b/_app/immutable/entry/start.16f067c5.js deleted file mode 100644 index dce648b4..00000000 --- a/_app/immutable/entry/start.16f067c5.js +++ /dev/null @@ -1 +0,0 @@ -import{a7 as t}from"../chunks/vendor_svelte.9533a558.js";export{t as start}; diff --git a/_app/immutable/nodes/0.f2bf2a97.js b/_app/immutable/nodes/0.a5f5e278.js similarity index 91% rename from _app/immutable/nodes/0.f2bf2a97.js rename to _app/immutable/nodes/0.a5f5e278.js index 9f4aeb53..d43ef1dc 100644 --- a/_app/immutable/nodes/0.f2bf2a97.js +++ b/_app/immutable/nodes/0.a5f5e278.js @@ -1 +1 @@ -import{S as a,i as r,s as i,c as u,u as _,j as f,k as c,t as p,l as m}from"../chunks/vendor_svelte.9533a558.js";/* empty css */const d=!0,S=Object.freeze(Object.defineProperty({__proto__:null,prerender:d},Symbol.toStringTag,{value:"Module"}));function $(n){let s;const l=n[1].default,e=u(l,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&_(e,l,t,t[0],s?c(l,t[0],o,null):f(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function g(n,s,l){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&l(0,t=o.$$scope)},[t,e]}class j extends a{constructor(s){super(),r(this,s,g,$,i,{})}}export{j as component,S as universal}; +import{S as a,i as r,s as i,c as u,u as _,j as f,k as c,t as p,l as m}from"../chunks/vendor_svelte.92aa1392.js";/* empty css */const d=!0,S=Object.freeze(Object.defineProperty({__proto__:null,prerender:d},Symbol.toStringTag,{value:"Module"}));function $(n){let s;const l=n[1].default,e=u(l,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&_(e,l,t,t[0],s?c(l,t[0],o,null):f(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function g(n,s,l){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&l(0,t=o.$$scope)},[t,e]}class j extends a{constructor(s){super(),r(this,s,g,$,i,{})}}export{j as component,S as universal}; diff --git a/_app/immutable/nodes/1.16512379.js b/_app/immutable/nodes/1.16512379.js new file mode 100644 index 00000000..6585509b --- /dev/null +++ b/_app/immutable/nodes/1.16512379.js @@ -0,0 +1 @@ +import{E as m}from"../chunks/vendor_svelte.92aa1392.js";export{m as component}; diff --git a/_app/immutable/nodes/1.85542212.js b/_app/immutable/nodes/1.85542212.js deleted file mode 100644 index 5b75fd55..00000000 --- a/_app/immutable/nodes/1.85542212.js +++ /dev/null @@ -1 +0,0 @@ -import{E as m}from"../chunks/vendor_svelte.9533a558.js";export{m as component}; diff --git a/_app/immutable/nodes/2.359a7bf0.js b/_app/immutable/nodes/2.f30ac75f.js similarity index 93% rename from _app/immutable/nodes/2.359a7bf0.js rename to _app/immutable/nodes/2.f30ac75f.js index 2299a4a8..a6b32173 100644 --- a/_app/immutable/nodes/2.359a7bf0.js +++ b/_app/immutable/nodes/2.f30ac75f.js @@ -1 +1 @@ -import{S as d,i as h,s as p,c as $,e as u,a as f,b as _,d as r,f as m,g as v,h as y,u as g,j,k as b,t as x,l as E}from"../chunks/vendor_svelte.9533a558.js";/* empty css */function I(i){let s,a,n;const o=i[1].default,e=$(o,i,i[0],null);return{c(){s=u("div"),a=u("main"),e&&e.c(),this.h()},l(t){s=f(t,"DIV",{class:!0});var l=_(s);a=f(l,"MAIN",{class:!0});var c=_(a);e&&e.l(c),c.forEach(r),l.forEach(r),this.h()},h(){m(a,"class","flex-col items-center justify-center h-full min-h-screen max-w-[764px] mx-[auto]"),m(s,"class","flex-col items-center justify-center")},m(t,l){v(t,s,l),y(s,a),e&&e.m(a,null),n=!0},p(t,[l]){e&&e.p&&(!n||l&1)&&g(e,o,t,t[0],n?b(o,t[0],l,null):j(t[0]),null)},i(t){n||(x(e,t),n=!0)},o(t){E(e,t),n=!1},d(t){t&&r(s),e&&e.d(t)}}}function S(i,s,a){let{$$slots:n={},$$scope:o}=s;return i.$$set=e=>{"$$scope"in e&&a(0,o=e.$$scope)},[o,n]}class w extends d{constructor(s){super(),h(this,s,S,I,p,{})}}export{w as component}; +import{S as d,i as h,s as p,c as $,e as u,a as f,b as _,d as r,f as m,g as v,h as y,u as g,j,k as b,t as x,l as E}from"../chunks/vendor_svelte.92aa1392.js";/* empty css */function I(i){let s,a,n;const o=i[1].default,e=$(o,i,i[0],null);return{c(){s=u("div"),a=u("main"),e&&e.c(),this.h()},l(t){s=f(t,"DIV",{class:!0});var l=_(s);a=f(l,"MAIN",{class:!0});var c=_(a);e&&e.l(c),c.forEach(r),l.forEach(r),this.h()},h(){m(a,"class","flex-col items-center justify-center h-full min-h-screen max-w-[764px] mx-[auto]"),m(s,"class","flex-col items-center justify-center")},m(t,l){v(t,s,l),y(s,a),e&&e.m(a,null),n=!0},p(t,[l]){e&&e.p&&(!n||l&1)&&g(e,o,t,t[0],n?b(o,t[0],l,null):j(t[0]),null)},i(t){n||(x(e,t),n=!0)},o(t){E(e,t),n=!1},d(t){t&&r(s),e&&e.d(t)}}}function S(i,s,a){let{$$slots:n={},$$scope:o}=s;return i.$$set=e=>{"$$scope"in e&&a(0,o=e.$$scope)},[o,n]}class w extends d{constructor(s){super(),h(this,s,S,I,p,{})}}export{w as component}; diff --git a/_app/immutable/nodes/3.069112b4.js b/_app/immutable/nodes/3.069112b4.js deleted file mode 100644 index 9f63c8dd..00000000 --- a/_app/immutable/nodes/3.069112b4.js +++ /dev/null @@ -1 +0,0 @@ -import{P as m}from"../chunks/3.8c3c04e9.js";export{m as component}; diff --git a/_app/immutable/nodes/3.64d7238a.js b/_app/immutable/nodes/3.64d7238a.js new file mode 100644 index 00000000..6a45316c --- /dev/null +++ b/_app/immutable/nodes/3.64d7238a.js @@ -0,0 +1 @@ +import{P as m}from"../chunks/3.715a6b2e.js";export{m as component}; diff --git a/_app/immutable/nodes/4.42c58d77.js b/_app/immutable/nodes/4.56f78c50.js similarity index 93% rename from _app/immutable/nodes/4.42c58d77.js rename to _app/immutable/nodes/4.56f78c50.js index b59cf2ab..19b634d4 100644 --- a/_app/immutable/nodes/4.42c58d77.js +++ b/_app/immutable/nodes/4.56f78c50.js @@ -1 +1 @@ -import{S as y,i as C,s as v,e as u,m as b,a as m,n as _,o as g,b as k,d as c,f as p,g as d,h as S,p as P,q as x,r as T}from"../chunks/vendor_svelte.9533a558.js";function q(i){let t,l="Synth",o,n,s,h="Play",r,f;return{c(){t=u("h1"),t.textContent=l,o=b(),n=u("section"),s=u("button"),s.textContent=h,this.h()},l(e){t=m(e,"H1",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-5kacpm"&&(t.textContent=l),o=g(e),n=m(e,"SECTION",{class:!0});var a=k(n);s=m(a,"BUTTON",{class:!0,"data-svelte-h":!0}),_(s)!=="svelte-12ba69d"&&(s.textContent=h),a.forEach(c),this.h()},h(){p(t,"class","my-8 md:text-5xl mt-12 px-4 md:px-0 text-3xl font-cursive tracking-tight"),p(s,"class","btn primary"),p(n,"class","px-4 md:px-0")},m(e,a){d(e,t,a),d(e,o,a),d(e,n,a),S(n,s),r||(f=P(s,"click",i[0]),r=!0)},p:x,i:x,o:x,d(e){e&&(c(t),c(o),c(n)),r=!1,f()}}}function E(i){let t;T(()=>{t=new AudioContext});function l(){t.resume().then(()=>{console.log("Playback resumed successfully")})}return[l]}class O extends y{constructor(t){super(),C(this,t,E,q,v,{})}}export{O as component}; +import{S as y,i as C,s as v,e as u,m as b,a as m,n as _,o as g,b as k,d as c,f as p,g as d,h as S,p as P,q as x,r as T}from"../chunks/vendor_svelte.92aa1392.js";function q(i){let t,l="Synth",o,n,s,h="Play",r,f;return{c(){t=u("h1"),t.textContent=l,o=b(),n=u("section"),s=u("button"),s.textContent=h,this.h()},l(e){t=m(e,"H1",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-5kacpm"&&(t.textContent=l),o=g(e),n=m(e,"SECTION",{class:!0});var a=k(n);s=m(a,"BUTTON",{class:!0,"data-svelte-h":!0}),_(s)!=="svelte-12ba69d"&&(s.textContent=h),a.forEach(c),this.h()},h(){p(t,"class","my-8 md:text-5xl mt-12 px-4 md:px-0 text-3xl font-cursive tracking-tight"),p(s,"class","btn primary"),p(n,"class","px-4 md:px-0")},m(e,a){d(e,t,a),d(e,o,a),d(e,n,a),S(n,s),r||(f=P(s,"click",i[0]),r=!0)},p:x,i:x,o:x,d(e){e&&(c(t),c(o),c(n)),r=!1,f()}}}function E(i){let t;T(()=>{t=new AudioContext});function l(){t.resume().then(()=>{console.log("Playback resumed successfully")})}return[l]}class O extends y{constructor(t){super(),C(this,t,E,q,v,{})}}export{O as component}; diff --git a/_app/version.json b/_app/version.json index 1d8fe40a..7358c2b8 100644 --- a/_app/version.json +++ b/_app/version.json @@ -1 +1 @@ -{"version":"1709722676870"} \ No newline at end of file +{"version":"1709727855387"} \ No newline at end of file diff --git a/index.html b/index.html index 4954ffee..2bd5810d 100644 --- a/index.html +++ b/index.html @@ -22,10 +22,10 @@ - - + + - + @@ -33,7 +33,7 @@