1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60017,e=>{"use strict";let t="chessmood:cookie-preferences";e.s(["onOpenCookiePreferences",0,function(e){return window.addEventListener(t,e),()=>window.removeEventListener(t,e)},"openCookiePreferences",0,function(){window.dispatchEvent(new Event(t))}])},42802,e=>{"use strict";var t=e.i(76350);let n={primary:"bg-brand text-white font-semibold border border-transparent hover:bg-brand-hover active:bg-brand-pressed",orangeOutline:"bg-panel text-brand-text font-medium border border-brand-outline hover:bg-brand-tint active:bg-brand-tint-pressed",neutral:"bg-panel text-btn-neutral-text font-medium border border-line-btn hover:bg-panel-soft hover:text-btn-neutral-text-hover hover:border-line-btn-hover active:bg-panel-pressed",iconChip:"w-7 h-7 p-0 bg-panel text-muted-2 border border-line-chip hover:bg-panel-soft hover:text-btn-neutral-text",link:"bg-transparent text-brand font-medium border-none p-0 hover:underline underline-offset-2",secondary:"bg-brand-50 text-brand-text font-medium border border-transparent hover:bg-brand-tint-pressed",tertiary:"bg-panel text-btn-neutral-text font-medium border border-line-btn hover:bg-panel-soft hover:text-btn-neutral-text-hover hover:border-line-btn-hover active:bg-panel-pressed",ghost:"bg-transparent text-btn-neutral-text font-medium border border-transparent hover:bg-panel-muted hover:text-btn-neutral-text-hover","danger-ghost":"bg-transparent text-error-text font-medium border border-transparent hover:bg-error-ring"},r={compact:"px-[13px] py-[7px] text-[12.5px] leading-none",large:"px-[22px] py-3 text-sm leading-none",sm:"h-8 px-3 text-[13px] leading-none",md:"h-9 px-[18px] text-[13px] leading-none",lg:"h-11 px-5 text-[15px] leading-none"};function o({variant:e="neutral",size:t="compact",className:a=""}={}){let i="iconChip"===e||"link"===e?"":r[t];return`inline-flex items-center justify-center gap-2 rounded-btn font-sans whitespace-nowrap cursor-pointer transition-colors duration-150 ease-out disabled:cursor-not-allowed disabled:opacity-55 ${n[e]} ${i} ${a}`}e.s(["Button",0,function({variant:e="neutral",size:n="compact",children:r,iconLeft:a,icon:i,iconRight:s,className:l="",...d}){return(0,t.jsxs)("button",{type:"button",className:o({variant:e,size:n,className:l}),...d,children:[i??a,r,s]})},"buttonClasses",0,o])},51245,e=>{"use strict";var t=e.i(76350),n=e.i(73576);function r({on:e,onChange:n,label:o,disabled:a=!1}){let i=a?e?"bg-brand/55":"bg-line-btn":e?"bg-brand":"bg-line-btn-hover";return(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":o,disabled:a,onClick:()=>n(!e),className:`relative h-6 w-[39px] shrink-0 rounded-full p-0 transition-colors duration-150 ${i} ${a?"cursor-default":"cursor-pointer"}`,children:(0,t.jsx)("span",{className:`absolute top-[3px] h-[18px] w-[18px] rounded-full bg-white shadow-[0_1px_2px_rgba(16,24,40,0.25)] transition-[left] duration-150 ${e?"left-[18px]":"left-[3px]"}`})})}e.s(["Field",0,function({label:e,hint:n,error:r,children:o}){return(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[e&&(0,t.jsx)("span",{className:"text-[13px] leading-[1.4] font-medium text-muted",children:e}),o,(n||r)&&(0,t.jsx)("span",{className:`text-xs leading-normal ${r?"text-error-text":"text-muted"}`,children:r||n})]})},"TextInput",0,function({error:e=!1,addon:r,...o}){let[a,i]=(0,n.useState)(!1);return(0,t.jsxs)("div",{className:`flex h-[42px] items-center gap-2 rounded bg-panel border px-3 transition-shadow ${e?"border-error-border":a?"border-focus-border":"border-line-input"} ${a?e?"ring-[3px] ring-error-ring":"ring-[3px] ring-focus-ring":""} ${o.disabled?"opacity-70":""}`,children:[r&&(0,t.jsx)("span",{className:"shrink-0 text-sm text-muted-2",children:r}),(0,t.jsx)("input",{...o,onFocus:e=>{i(!0),o.onFocus?.(e)},onBlur:e=>{i(!1),o.onBlur?.(e)},className:"min-w-0 flex-1 border-none bg-transparent text-sm leading-5 text-text outline-none placeholder:text-muted-2"})]})},"ToggleRow",0,function({title:e,desc:n,on:o,onChange:a,last:i=!1,disabled:s=!1}){return(0,t.jsxs)("div",{className:`flex items-center gap-5 py-3.5 ${i?"":"border-b border-line-soft"}`,children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"text-sm leading-[1.4] font-medium text-text",children:e}),n&&(0,t.jsx)("div",{className:"mt-0.5 text-[12.5px] leading-normal text-muted text-pretty",children:n})]}),(0,t.jsx)(r,{on:o,onChange:a,label:e,disabled:s})]})}])},73694,e=>{"use strict";var t=e.i(76350),n=e.i(73576),r=e.i(42802);function o(e){(0,n.useEffect)(()=>{let t=t=>{"Escape"!==t.key||t.isComposing||t.defaultPrevented||e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e])}function a({dismiss:e,children:n}){return(0,t.jsx)("div",{onMouseDown:e?t=>{t.target===t.currentTarget&&e()}:void 0,className:"fixed inset-0 z-[120] flex items-center justify-center bg-[rgba(15,22,31,0.62)] p-3.5 backdrop-blur-[4px]",children:n})}e.s(["ConfirmDialog",0,function({id:e,title:n,body:i,cancelLabel:s,confirmLabel:l,tone:d="primary",onCancel:c,onConfirm:x}){return o(c),(0,t.jsx)(a,{dismiss:c,children:(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":`${e}-title`,className:"box-border w-full max-w-[420px] rounded-card-lg bg-panel px-[26px] py-6 shadow-modal",children:[(0,t.jsx)("h3",{id:`${e}-title`,className:"m-0 font-display text-[18px] leading-[1.3] font-bold tracking-[-0.015em] text-ink",children:n}),(0,t.jsx)("p",{className:"mb-0 mt-2.5 text-sm leading-[1.6] text-muted",children:i}),(0,t.jsxs)("div",{className:"mt-5 flex justify-end gap-2.5",children:[(0,t.jsx)(r.Button,{variant:"neutral",size:"md",onClick:c,children:s}),"danger"===d?(0,t.jsx)("button",{type:"button",onClick:x,className:"inline-flex h-9 cursor-pointer items-center justify-center rounded-btn border border-transparent bg-danger px-[18px] text-[13px] leading-none font-semibold text-white transition-colors duration-150 hover:bg-danger-deep",children:l}):(0,t.jsx)(r.Button,{variant:"primary",size:"md",onClick:x,children:l})]})]})})},"ContentModal",0,function({label:e,onClose:n,width:r=480,dismissOnBackdrop:i=!0,children:s}){return o(n),(0,t.jsx)(a,{dismiss:i?n:null,children:(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":e,style:{width:`min(${r}px, 100%)`},className:"relative box-border max-h-[min(92vh,92svh)] overflow-y-auto rounded-card-lg bg-panel p-[clamp(20px,5vw,28px)] shadow-modal",children:[(0,t.jsx)("button",{type:"button","aria-label":"Close",onClick:n,className:"absolute right-3 top-3 grid h-8 w-8 cursor-pointer place-items-center rounded-btn border-none bg-transparent text-muted-2 transition-colors hover:bg-panel-soft hover:text-ink",children:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5 5l14 14M19 5 5 19"})})}),s]})})}])},92050,e=>{"use strict";var t=e.i(76350),n=e.i(73576),r=e.i(12612),o=e.i(42802),a=e.i(73694),i=e.i(51245),s=e.i(51905),l=e.i(53045),d=e.i(96908);async function c(e){try{return(await (0,d.postForm)(s.CONSENT_PATH,(0,s.consentFormFields)(e))).ok}catch{return!1}}var x=e.i(60017);function u({busy:e,error:n,onCustomize:r,onReject:a,onAcceptAll:i}){return(0,t.jsx)("div",{role:"region","aria-label":"Cookie consent",className:"pointer-events-none fixed inset-x-0 bottom-0 z-[44] px-4 pb-4 font-sans sm:px-5 sm:pb-5",children:(0,t.jsxs)("div",{className:"pointer-events-auto mx-auto flex max-w-[1080px] flex-col gap-4 roun
1ded-card-lg border border-line bg-panel px-5 py-[18px] shadow-modal md:flex-row md:items-center md:gap-6",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("p",{className:"m-0 text-[13.5px] leading-[1.55] text-muted text-pretty",children:["We use cookies to run the site and, with your permission, to measure traffic and improve our marketing. You choose what to allow â see our"," ",(0,t.jsx)("a",{href:s.COOKIE_POLICY_HREF,className:"text-brand-text underline underline-offset-2 hover:text-brand",children:"Cookie Policy"}),"."]}),n&&(0,t.jsx)("p",{className:"m-0 mt-2 text-[13px] leading-[1.45] text-error-text",role:"alert",children:n})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap gap-2.5 max-md:justify-end",children:[(0,t.jsx)(o.Button,{variant:"neutral",size:"md",onClick:r,disabled:e,children:"Customize"}),(0,t.jsx)(o.Button,{variant:"neutral",size:"md",onClick:a,disabled:e,children:"Reject"}),(0,t.jsx)(o.Button,{variant:"primary",size:"md",onClick:i,disabled:e,children:"Accept all"})]})]})})}e.s(["CookieConsent",0,function({decided:e}
1){let d=(0,r.useRouter)(),[p,m]=(0,n.useState)(e),[b,h]=(0,n.useState)(!1);p!==e&&(m(e),h(!1));let[g,f]=(0,n.useState)(!1),[v,j]=(0,n.useState)(()=>(0,s.proposedChoice)(s.NO_CHOICE)),[C,y]=(0,n.useState)(!1),[w,k]=(0,n.useState)(!1),[N,O]=(0,n.useState)(null),E=(0,n.useCallback)(()=>{(O(null),f(!0),e)?(j((0,s.everyCategory)(!1)),y(!0),(0,l.fetchConsentState)().then(e=>{y(!1),j((0,s.proposedChoice)(e??{...s.NO_CHOICE,made:!0}))})):j((0,s.proposedChoice)(s.NO_CHOICE))},[e]);(0,n.useEffect)(()=>(0,x.onOpenCookiePreferences)(E),[E]);let S=async e=>{k(!0),O(null);let t=await c(e);(k(!1),t)?(h(!0),f(!1),d.refresh()):O("We couldnât save that. Please check your connection and try again.")};return(0,t.jsxs)(t.Fragment,{children:[!e&&!b&&(0,t.jsx)(u,{busy:w,error:N,onCustomize:E,onReject:()=>void S((0,s.everyCategory)(!1)),onAcceptAll:()=>void S((0,s.everyCategory)(!0))}),g&&(0,t.jsxs)(a.ContentModal,{label:"Cookie preferences",width:520,onClose:()=>f(!1),children:[(0,t.jsx)("h3",{className:"m-0 pr-8 font-display text-[18px] leading-[1.3] font-bold tracking-[-0.015em] text-ink",children:"Cookie preferences"}),(0,t.jsx)("p",{className:"mb-0 mt-2.5 text-sm leading-[1.6] text-muted",children:"We use cookies to keep ChessMood working, to understand how itâs used, and to support our marketing. Strictly necessary cookies are always on; choose whether to allow the rest."}),(0,t.jsx)("div",{className:"mt-3.5",children:s.CONSENT_CATEGORIES.map((e,n)=>(0,t.jsx)(i.ToggleRow,{title:e.name,desc:e.description,on:e.alwaysOn||v[e.key],disabled:e.alwaysOn||C||w,onChange:t=>{var n;return n=e.key,void(j(e=>({...e,[n]:t})),O(null))},last:n===s.CONSENT_CATEGORIES.length-1},e.key))}),(0,t.jsxs)("div",{className:"mt-5 flex flex-wrap items-center justify-end gap-2.5",children:[N&&(0,t.jsx)("span",{className:"mr-auto text-[13px] leading-[1.45] text-error-text",role:"alert",children:N}),(0,t.jsx)(o.Button,{variant:"neutral",size:"md",onClick:()=>void S((0,s.everyCategory)(!1)),disabled:w||C,children:"Reject all"}),(0,t.jsx)(o.Button,{variant:"primary",size:"md",onClick:()=>void S(v),disabled:w||C,children:w?"Savingâ¦":(0,s.confirmLabel)(v)})]}),(0,t.jsxs)("p",{className:"mb-0 mt-4 text-[12.5px] leading-normal text-muted-3",children:["Read more in our"," ",(0,t.jsx)("a",{href:s.COOKIE_POLICY_HREF,className:"text-brand-text underline underline-offset-2 hover:text-brand",children:"Cookie Policy"}),"."]})]})]})}],92050)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.