"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4446],{37455:function(e,t,a){a.d(t,{y:function(){return l}});var s=a(52676),n=a(7441),r=a(81478),i=a(31951);let l=()=>(0,s.jsx)("section",{className:"bg-white absolute top-0 left-0 right-0 bottom-0 flex flex-col items-center justify-center min-w-72",children:(0,s.jsxs)("p",{className:"text-xs flex gap-2 px-3 py-2 border-gray-200 border-1 rounded-md",children:["Oh no! Something went wrong."," ",(0,s.jsxs)(i.u,{href:r.pK.FEEDBACK,target:"_blank",className:"text-xs",children:[(0,s.jsx)(n.R,{})," Report"]})]})})},26829:function(e,t,a){a.d(t,{u:function(){return n}});var s=a(52676);let n=e=>(0,s.jsxs)("svg",{viewBox:"0 0 645 645",...e,children:[(0,s.jsx)("circle",{cx:"79.23",cy:"565.15",r:"79.23"}),(0,s.jsx)("circle",{cx:"322.5",cy:"322.5",r:"79.23"}),(0,s.jsx)("circle",{cx:"565.77",cy:"79.85",r:"79.23"})]})},33551:function(e,t,a){a.d(t,{b:function(){return n}});var s=a(52676);let n=e=>(0,s.jsxs)("svg",{viewBox:"0 0 645 645",...e,children:[(0,s.jsx)("line",{x1:"80",y1:"79.5",x2:"565",y2:"565.5",style:{fill:"none",strokeMiterlimit:10,strokeWidth:"25px"}}),(0,s.jsx)("circle",{cx:"79.85",cy:"79.23",r:"79.23"}),(0,s.jsx)("circle",{cx:"322.5",cy:"322.5",r:"79.23"}),(0,s.jsx)("path",{d:"M565.15,645a79.23,79.23,0,1,1,79.23-79.23A79.23,79.23,0,0,1,565.15,645Z"})]})},10737:function(e,t,a){a.d(t,{v:function(){return r}});var s=a(52676),n=a(64150);let r=e=>(0,s.jsx)(n.bkH,{...e})},53022:function(e,t,a){a.d(t,{L:function(){return r}});var s=a(52676),n=a(2307);let r=e=>(0,s.jsx)(n.fuJ,{...e})},59331:function(e,t,a){a.d(t,{i:function(){return r}});var s=a(52676),n=a(54031);let r=e=>(0,s.jsx)(n.xqh,{...e})},14446:function(e,t,a){a.r(t),a.d(t,{Navigation:function(){return eg}});var s=a(52676),n=a(75271),r=a(30968),i=a(37455),l=a(78995),c=a(40210),o=a(74836),d=a(933),u=a(28345),x=a(5329),p=a(33015),h=a(97767),j=a(88913),v=a(33131),f=a(54031);let m=e=>(0,s.jsx)(f._fJ,{...e});var g=a(59331),b=a(33396),S=a(75865);let y="inline-block text-xs mr-2 w-3 text-icon",N=e=>{let t=(0,n.useContext)(c.UG),a=(0,j.usePathname)(),r=(0,S.l)(),i=[{text:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:y,children:(0,s.jsx)(v.U,{})})," ","My Account"]}),href:h.Og.Account,currentPath:a,type:"link"},{text:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:y,children:(0,s.jsx)(g.i,{})})," ","Log Out"]}),type:"button",callback(){t((0,l.cf)({modalType:"logOut"}))}}],o=[{text:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:y,children:(0,s.jsx)(m,{})})," ","Log In"]}),href:h.Og.LogIn,currentPath:a,type:"link"}],d={text:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:y,children:(0,s.jsx)(b.H,{})})," ","Subscription Features"]}),href:h.Og.SubscriptionFeatures,currentPath:a,type:"link"},u=r?i:i.splice(1,0,d),x=[d,...o];return{currentPath:a,isOpen:!0,data:e?u:x}};var k=a(35106),C=a.n(k),O=a(19879),E=a(31951),R=a(91423),w=a.n(R),P=a(54317),A=a(967);let I=({...e})=>{let t=(0,A.zk)("copy");return(0,s.jsx)(w(),{href:"/",className:`${t} relative`,title:"Home",...e,children:(0,s.jsx)("span",{className:"relative z-50",children:(0,s.jsx)(P.A,{size:14})})})},T=()=>(0,s.jsx)("hr",{className:"border-t-2 border-nav-background-dark my-2 w-[200px] mx-auto"});var D=a(15471);let L=e=>(0,s.jsx)(D.GVK,{...e}),G=e=>(0,s.jsx)(D.RP_,{...e}),$=({pinMenu:e,handlePinMenuToggle:t,...a})=>{let r=(0,A.zk)("copy"),i="pin-menu-tooltip",l=e?"Unpin menu":"Pin menu";return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)("button",{type:"button",className:`${r} text-primary relative`,"data-tooltip-id":i,"data-tooltip-content":l,"data-tooltip-place":"left",title:l,onClick:t,...a,children:(0,s.jsx)("span",{className:"relative z-10",children:e?(0,s.jsx)(G,{"data-testid":"icon-pinned",size:17}):(0,s.jsx)(L,{"data-testid":"icon-pin",size:17})})}),(0,s.jsx)(O.z,{id:i})]})};var z=a(55837);let U=e=>(0,s.jsx)(z.pwh,{...e}),F=e=>(0,s.jsx)(z.poH,{...e}),B=({text:e,Icon:t,isOpen:a,showOpenCloseIcon:n=!0,...r})=>{let i=(0,A.Bk)(!!a);return(0,s.jsxs)("button",{type:"button",className:`${a?"bg-active rounded-t text-active-text pn-tr-svg":"bg-white hover:bg-active-light rounded"} ${i}`,...r,children:[(0,s.jsx)("span",{className:`w-5 ${a?"fill-active-text stroke-active-text":""}`,children:(0,s.jsx)(t,{})})," ",(0,s.jsx)("span",{children:e})," ",n?(0,s.jsx)("span",{className:"ml-auto",children:a?(0,s.jsx)(U,{"data-testid":"icon-close",size:15}):(0,s.jsx)(F,{"data-testid":"icon-open",size:15})}):null]})},H=({text:e,href:t,Icon:a,...n})=>{let r=(0,A.Bk)(!1);return(0,s.jsxs)(w(),{href:t,className:`rounded ${r}`,...n,children:[(0,s.jsx)("span",{className:"w-5",children:(0,s.jsx)(a,{})})," ",(0,s.jsx)("span",{children:e})]})};var M=a(35191);let K=({handleSearchMenuToggle:e,...t})=>{let a=(0,A.zk)("copy"),r="pin-menu-tooltip",i="Open search menu";return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)("button",{type:"button",className:`${a} relative`,"data-tooltip-id":r,"data-tooltip-content":i,"data-tooltip-place":"left","data-testid":"nav-open-search-button",title:i,onClick:e,...t,children:(0,s.jsx)("span",{className:"relative z-50",children:(0,s.jsx)(M.j,{size:14})})}),(0,s.jsx)(O.z,{id:r})]})},_=({children:e,callback:t,text:a,...n})=>(0,s.jsxs)("button",{type:"button",className:A.jX,onClick:t,...n,children:[e,(0,s.jsx)("div",{className:A.jL,children:a})]}),V=({isExternal:e,children:t,href:a,text:n,...r})=>e?(0,s.jsxs)("a",{href:a,target:"_blank",rel:"noreferrer",className:A.jX,...r,children:[t,(0,s.jsx)("div",{className:A.jL,children:n})]}):(0,s.jsxs)(w(),{href:a,className:A.jX,...r,children:[t,(0,s.jsx)("div",{className:A.jL,children:n})]});var Q=a(8893);let Y=({handleToggleMenu:e,...t})=>{let a=(0,A.zk)("primary"),n="nav-close-nav-tooltip",r="Close menu";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button","data-tooltip-id":n,"data-tooltip-content":r,"data-tooltip-place":"left",title:r,className:`${a} relative`,onClick:e,...t,children:(0,s.jsx)(Q.u,{className:"relative z-10",size:22})}),(0,s.jsx)(O.z,{id:n})]})};var Z=a(26829),J=a(796),W=a(12916),X=a(33551),q=a(7441),ee=a(10737),et=a(53022),ea=a(92561),es=a(73699);let en=e=>(0,s.jsx)(z.E$Q,{...e}),er=e=>(0,s.jsxs)("svg",{viewBox:"0 0 645 645",...e,children:[(0,s.jsx)("path",{d:"M328,70.5c33.9,0,66.77,6.63,97.69,19.71,29.88,12.64,56.73,30.74,79.8,53.81s41.17,49.91,53.81,79.8c13.08,30.92,19.71,63.79,19.71,97.69s-6.63,66.77-19.71,97.69c-12.64,29.88-30.74,56.73-53.81,79.8s-49.91,41.17-79.8,53.81c-30.92,13.08-63.79,19.71-97.69,19.71s-66.77-6.63-97.69-19.71c-29.88-12.64-56.73-30.74-79.8-53.81s-41.17-49.91-53.81-79.8c-13.08-30.92-19.71-63.79-19.71-97.69s6.63-66.77,19.71-97.69c12.64-29.88,30.74-56.73,53.81-79.8s49.91-41.17,79.8-53.81c30.92-13.08,63.79-19.71,97.69-19.71m0-40C167.29,30.5,37,160.79,37,321.5s130.29,291,291,291,291-130.29,291-291S488.71,30.5,328,30.5h0Z"}),(0,s.jsx)("circle",{cx:"328",cy:"321.5",r:"79.23"})]});var ei=a(81969),el=a(83567);let ec=({listRoot:e,currentRoot:t,currentPath:a,currentSlug:n})=>{let r=(0,el.v)(e),i=`/${a}/${r}${n}`,l=(0,A.bt)(t===e);return(0,s.jsx)(w(),{href:i,className:l,children:e})},eo=({data:e,isOpen:t,currentPath:a,currentRoot:n,currentSlug:r})=>{let i=(0,A.Mn)(t,!1);return(0,s.jsxs)("ul",{className:`${i} grid grid-cols-3`,children:[e.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(ec,{currentRoot:n,currentPath:a,currentSlug:r,listRoot:e})},e)),(0,s.jsx)("li",{className:"bg-white"})]})};var ed=a(81478),eu=a(15896);let ex=C()(()=>a.e(712).then(a.bind(a,60712)).then(({NavigationSection:e})=>e),{loadableGenerated:{webpack:()=>[60712]}}),ep=C()(()=>a.e(7106).then(a.bind(a,87106)).then(({NavigationSectionFavourites:e})=>e),{loadableGenerated:{webpack:()=>[87106]}}),eh=C()(()=>a.e(4425).then(a.bind(a,34425)).then(({NavigationLearningSection:e})=>e),{loadableGenerated:{webpack:()=>[34425]}}),ej=C()(()=>a.e(7707).then(a.bind(a,7707)).then(({NavigationSongsSection:e})=>e),{loadableGenerated:{webpack:()=>[7707]}}),ev=C()(()=>a.e(6189).then(a.bind(a,66189)).then(({NavigationAccountSection:e})=>e),{loadableGenerated:{webpack:()=>[66189]}}),ef=({data:e,key:t,listPath:a,currentPath:s,currentSlug:n,currentRoot:r})=>e[t].map(({name:e,patternShortName:t,abbreviation:i})=>({text:e,abbreviation:i,listPath:a,listRoot:r,listSlug:t,currentPath:s,currentRoot:r,currentSlug:n})),em=({navigationData:e,appVersion:t,learningNav:a,songsNav:r,accountData:i,isMenuOpen:l,subNavCurrent:c,currentRoot:o,currentPath:d,currentSlug:u,serverPattern:x,isDesktop:p,favouritesData:j,isAuthenticated:f,pinMenu:m,fretboardVariant:g,handleTogglePinMenu:b,handleToggleHand:S,handleToggleMenu:y,handleSearchMenuToggle:N,setCurrentOpenSection:k})=>{let C=(0,n.useRef)(null),R=["none","chord-finder","free-play","daily-practice"].includes(g),{patternShortName:w}=x??{},P="portrait-max:hidden landscape-min:w-0 landscape-min:h-0 landscape-min:overflow-hidden",[D,L]=(0,n.useState)(P),{totalPages:G,roots:z}=e;(0,n.useEffect)(()=>{l&&C?.current?.focus()},[l]),(0,n.useEffect)(()=>{l&&!p?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden"),setTimeout(()=>{L(l?"portrait-max:fixed portrait-max:inset-0 landscape-min:w-[400px] drop-shadow-2xl p-3":P)},h.n8)},[l,p]);let U=e=>{k(e===c?eu.a.NONE:e)},F=ef({data:e,key:"chords",listPath:ed.DL.CHORDS,currentRoot:o,currentPath:d,currentSlug:u}),Q=ef({data:e,key:"scales",listPath:ed.DL.SCALES,currentRoot:o,currentPath:d,currentSlug:u}),el=ef({data:e,key:"arpeggios",listPath:ed.DL.ARPEGGIOS,currentRoot:o,currentPath:d,currentSlug:u}),ec=c===eu.a.CHORDS,em=c===eu.a.SCALES,eg=c===eu.a.ARPEGGIOS,eb=c===eu.a.FAVOURITES,eS=c===eu.a.ROOTS,ey=c===eu.a.ACCOUNT,eN=c===eu.a.LEARNING,ek=c===eu.a.SONGS,eC=p&&f,eO=!p,eE="change-hand-tooltip",eR="about-fretmap-tooltip",ew="feedback-tooltip";return(0,s.jsxs)("nav",{ref:C,"data-testid":"navigation-menu",className:`h-dvh bg-nav-background transition-all duration-150 flex flex-col gap-3 overflow-y-auto z-50 ${D}`,children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-5",children:[eC?(0,s.jsx)($,{pinMenu:m,handlePinMenuToggle:b,"data-testid":"nav-pin-menu"}):null,eO?(0,s.jsx)(I,{"data-testid":"nav-home-link"}):null,(0,s.jsx)(K,{handleSearchMenuToggle:N,"data-testid":"nav-search-toggle"}),m?null:(0,s.jsx)(Y,{handleToggleMenu:y,"data-testid":"nav-close-menu"})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)(B,{text:ed.$v.ACCOUNT,Icon:()=>(0,s.jsx)(v.U,{width:15}),isOpen:ey,"data-testid":"nav-account-toggle-button",onClick:()=>U(eu.a.ACCOUNT)}),(0,s.jsx)(ev,{isOpen:ey,data:i.data,currentPath:i.currentPath})]}),(0,s.jsx)(T,{}),(0,s.jsxs)("span",{children:[(0,s.jsx)(B,{text:ed.QS.LEARNING,Icon:()=>(0,s.jsx)(J.m,{}),isOpen:eN,"data-testid":"nav-learning-toggle-button",onClick:()=>U(eu.a.LEARNING)}),(0,s.jsx)(eh,{isOpen:eN,data:a,currentPath:i.currentPath})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)(B,{text:ed.QS.SONGS,Icon:()=>(0,s.jsx)(ee.v,{}),isOpen:ek,"data-testid":"nav-songs-toggle-button",onClick:()=>U(eu.a.SONGS)}),(0,s.jsx)(ej,{isOpen:ek,data:r,currentPath:i.currentPath})]}),(0,s.jsx)(T,{}),(0,s.jsx)(H,{text:ed.QS.CHORD_FINDER,href:`/${ed.pK.CHORD_FINDER}`,"data-testid":"nav-chord-finder-link",Icon:()=>(0,s.jsx)(M.j,{size:13})}),(0,s.jsx)(H,{text:ed.QS.FREE_PLAY,href:`/${ed.pK.FREE_PLAY}`,"data-testid":"nav-free-play-link",Icon:()=>(0,s.jsx)(en,{size:15})}),(0,s.jsx)(H,{text:ed.QS.DAILY_PRACTICE,href:`/${ed.pK.DAILY_PRACTICE}`,"data-testid":"nav-daily-practice-link",Icon:()=>(0,s.jsx)(W.j,{size:15})}),(0,s.jsx)(T,{}),(0,s.jsxs)("span",{children:[(0,s.jsx)(B,{text:ed.$v.CHORDS,Icon:()=>(0,s.jsx)(X.b,{width:15}),isOpen:ec,"data-testid":"nav-chords-toggle-button",onClick:()=>U(eu.a.CHORDS)}),(0,s.jsx)(ex,{isOpen:ec,data:F,currentRoot:o,currentSlug:u,currentPath:ed.DL.CHORDS})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)(B,{text:ed.$v.SCALES,Icon:()=>(0,s.jsx)(ei.B,{width:15}),isOpen:em,"data-testid":"nav-scales-toggle-button",onClick:()=>U(eu.a.SCALES)}),(0,s.jsx)(ex,{isOpen:em,data:Q,currentRoot:o,currentSlug:u,currentPath:ed.DL.SCALES})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)(B,{text:ed.$v.ARPEGGIOS,Icon:()=>(0,s.jsx)(Z.u,{width:15}),isOpen:eg,"data-testid":"nav-arpeggios-toggle-button",onClick:()=>U(eu.a.ARPEGGIOS)}),(0,s.jsx)(ex,{isOpen:eg,data:el,currentRoot:o,currentSlug:u,currentPath:ed.DL.ARPEGGIOS})]}),R?null:(0,s.jsxs)("span",{children:[(0,s.jsx)(B,{text:ed.$v.ROOTS,Icon:()=>(0,s.jsx)(er,{width:15}),isOpen:eS,"data-testid":"nav-roots-toggle-button",onClick:()=>U(eu.a.ROOTS)}),(0,s.jsx)(eo,{isOpen:eS,data:z,currentRoot:o,currentPath:d,currentSlug:w})]}),(0,s.jsx)(T,{}),(0,s.jsxs)("span",{children:[(0,s.jsx)(B,{text:ed.$v.FAVOURITES,Icon:()=>(0,s.jsx)(ea.t,{size:15}),isOpen:eb,"data-testid":"nav-favourites-toggle-button",onClick:()=>U(eu.a.FAVOURITES)}),(0,s.jsx)(ep,{isOpen:eb,data:j??[]})]}),(0,s.jsxs)("div",{className:"mt-auto py-5",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center gap-3 px-2 mb-5",children:[(0,s.jsxs)("p",{className:A.bB,children:[G.toLocaleString()," patterns"]}),(0,s.jsx)(E.u,{href:`/${ed.pK.UPDATES}`,className:A.bB,prefetch:!1,children:t})]}),(0,s.jsxs)("div",{className:"flex justify-center items-stretch gap-3 mt-3",children:[(0,s.jsx)(_,{text:"Hand","data-cy":"nav-switch-hands","data-tooltip-id":eE,"data-tooltip-content":"Switch hand","data-tooltip-place":"top","data-testid":"nav-switch-hands",callback:S,children:(0,s.jsx)(et.L,{})}),(0,s.jsx)(V,{text:"About","data-cy":"nav-about","data-tooltip-id":eR,"data-tooltip-content":`About ${h.xw}`,"data-tooltip-place":"top","data-testid":"nav-about",href:"/about",children:(0,s.jsx)(es.a,{})}),(0,s.jsx)(V,{isExternal:!0,"data-cy":"nav-feedback",text:"Feedback","data-tooltip-id":ew,"data-tooltip-content":"Provide feedback","data-tooltip-place":"top","data-testid":"nav-feedback",href:"https://forms.gle/z8KZGRA4jfeJhFe57",children:(0,s.jsx)(q.R,{})})]}),(0,s.jsxs)("div",{className:"flex justify-center items-center gap-3 mt-8",children:[(0,s.jsx)(E.u,{grey:!0,href:`/${ed.pK.INSTALL}`,className:A.bB,children:"Install"}),(0,s.jsx)(E.u,{grey:!0,href:`/${ed.pK.PRIVACY}`,className:A.bB,children:"Privacy"}),(0,s.jsx)(E.u,{grey:!0,href:`/${ed.pK.TERMS}`,className:A.bB,children:"Terms"})]})]}),(0,s.jsx)(O.z,{id:eE}),(0,s.jsx)(O.z,{id:eR}),(0,s.jsx)(O.z,{id:ew})]})},eg=({navigationData:e,learningNav:t,songsNav:a,appVersion:j,serverPattern:v})=>{let{page:f,savable:m}=(0,n.useContext)(c.Kn),g=(0,n.useContext)(c.UG),{setSavableHand:b,setSavablePinOpenMenu:S}=(0,p.W)(),{isAuthenticated:y}=(0,o.k)(),k=(0,d.z)(),{favouritePatternsData:C}=(0,x.c)({pattern:v}),{root:O=h.Tb,slug:E,path:R}=v??{},{isMenuOpen:w,subNavCurrent:P}=f,{hand:A,pinMenuOpen:I}=m,T=N(y),D=(0,u.C)();return(0,s.jsx)(r.SV,{fallback:(0,s.jsx)(i.y,{}),children:(0,s.jsx)(em,{appVersion:j,serverPattern:v,currentRoot:O,currentPath:R,currentSlug:E,subNavCurrent:P,fretboardVariant:k,isDesktop:D,isAuthenticated:y,accountData:T,navigationData:e,learningNav:t,songsNav:a,preferredHand:A??"RIGHT",isMenuOpen:!!I||w,pinMenu:I??!1,favouritesData:C,handleTogglePinMenu:()=>{S(!I)},handleToggleHand:()=>{b("LEFT"===A?"RIGHT":"LEFT")},handleToggleMenu:()=>{g((0,l.gG)(!w))},handleSearchMenuToggle:()=>{g((0,l.cf)({modalType:"search"}))},setCurrentOpenSection:e=>{g((0,l.B9)(e))}})})}},94097:function(e,t,a){a.d(t,{l:function(){return i}});var s=a(75271),n=a(28769),r=a(40210);let i=()=>{let e=(0,s.useContext)(r.UG),{app:t}=(0,s.useContext)(r.Kn),{isTalkingToServer:a}=t;return{setIsTalkingToServer:t=>{t!==a&&e((0,n.dH)(t))}}}},33015:function(e,t,a){a.d(t,{W:function(){return x}});var s=a(75271),n=a(38824),r=a(40210),i=a(34446),l=a(97205),c=a(54011),o=a(94097);let d=({onSuccess:e})=>{let t=(0,s.useId)(),a=(0,s.useContext)(r.UG),n=c.h.useUtils(),{setIsTalkingToServer:i}=(0,o.l)(),{mutate:d}=c.h.account.updateUserPreferences.useMutation({async onMutate(e){i(!0),await n.account.readUserPreferences.cancel();let t=n.account.readUserPreferences.getData();if(t)return n.account.readUserPreferences.setData(void 0,{...t,...e}),{previousUserDataFromCache:t}},onError(e,s,r){n.account.readUserPreferences.setData(void 0,r?.previousUserDataFromCache),i(!1),a((0,l.G)({uuid:t,type:"error",title:"Oh no!",message:"Error occurred updating User preferences data"}))},onSuccess(){i(!1),e?.()},async onSettled(){i(!1),await n.account.readUserPreferences.invalidate()}});return{updateUserPreferences:d}};var u=a(74836);let x=()=>{let e=(0,s.useContext)(r.UG),{updateUserPreferences:t}=d({}),{isAuthenticated:a}=(0,u.k)(),{stringsTuning:l="STANDARD",noteDisplay:c="NOTES",pinMenu:o=!1,preferredHand:x="RIGHT",showColoredNotes:p=!1}=(0,i.n)()??{},h={stringsTuning:l,noteDisplay:c,pinMenu:o,preferredHand:x,showColoredNotes:p};return{setSavableHand:s=>{e((0,n.IC)(s)),a&&t({...h,preferredHand:s})},setSavablePinOpenMenu:s=>{e((0,n.nZ)(s)),a&&t({...h,pinMenu:s})},setSavableNotesDisplay:s=>{e((0,n.Zi)(s)),a&&t({...h,noteDisplay:s})},setSavableStringsTunings:s=>{e((0,n.dO)(s)),a&&t({...h,stringsTuning:s})},setSavableShowColoredNotes:()=>{let s=!p;e((0,n._V)(s)),a&&t({...h,showColoredNotes:s})}}}},83567:function(e,t,a){a.d(t,{v:function(){return r}});let s=e=>e.replaceAll(/\s/g,"-").replaceAll("-/-","-"),n=e=>s(e).toLowerCase(),r=e=>{if(e)return n(`${e} `.replace("### ","-triple-sharp-").replace("## ","-double-sharp-").replace("# ","-sharp-").replace("bbb ","-triple-flat-").replace("bb ","-double-flat-").replace("b ","-flat-"))}},30968:function(e,t,a){a.d(t,{SV:function(){return i}});var s=a(75271);let n=(0,s.createContext)(null),r={didCatch:!1,error:null};class i extends s.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=r}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,a,s=arguments.length,n=Array(s),i=0;i<s;i++)n[i]=arguments[i];null===(t=(a=this.props).onReset)||void 0===t||t.call(a,{args:n,reason:"imperative-api"}),this.setState(r)}}componentDidCatch(e,t){var a,s;null===(a=(s=this.props).onError)||void 0===a||a.call(s,e,t)}componentDidUpdate(e,t){let{didCatch:a}=this.state,{resetKeys:s}=this.props;if(a&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,a)=>!Object.is(e,t[a]))}(e.resetKeys,s)){var n,i;null===(n=(i=this.props).onReset)||void 0===n||n.call(i,{next:s,prev:e.resetKeys,reason:"keys"}),this.setState(r)}}render(){let{children:e,fallbackRender:t,FallbackComponent:a,fallback:r}=this.props,{didCatch:i,error:l}=this.state,c=e;if(i){let e={error:l,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)c=t(e);else if(a)c=(0,s.createElement)(a,e);else if(void 0!==r)c=r;else throw l}return(0,s.createElement)(n.Provider,{value:{didCatch:i,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}}}}]);