1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="58c39c9c-21ae-1fed-7be5-ecff3c56fef5")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,175696,e=>{"use strict";var t=e.i(861745),r=e.i(843476);e.s(["default",0,function({locale:e,...n}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...n})}])},363178,e=>{"use strict";var t=e.i(271645),r=(e,t,r,n,i,a,s,o)=>{let l=document.documentElement,u=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&a?i.map(e=>a[e]||e):i;r?(l.classList.remove(...n),l.classList.add(a&&a[t]?a[t]:t)):l.setAttribute(e,t)}),r=t,o&&u.includes(r)&&(l.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=s&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},n=["light","dark"],i="(prefers-color-scheme: dark)",a="u"<typeof window,s=t.createContext(void 0),o={setTheme:e=>{},themes:[]},l=["light","dark"],u=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:a=!0,enableColorScheme:o=!0,storageKey:u="theme",themes:p=l,defaultTheme:m=a?"system":"light",attribute:y="data-theme",value:v,children:g,nonce:b,scriptProps:x})=>{let[w,k]=t.useState(()=>d(u,m)),[j,S]=t.useState(()=>"system"===w?f():w),_=v?Object.values(v):p,C=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=f());let i=v?v[t]:t,s=r?h(b):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(..._),i&&l.classList.add(i)):e.startsWith("data-")&&(i?l.setAttribute(e,i):l.removeAttribute(e))};if(Array.isArray(y)?y.forEach(u):u(y),o){let e=n.includes(m)?m:null,r=n.includes(t)?t:e;l.style.colorScheme=r}null==s||s()},[b]),M=t.useCallback(e=>{let t="function"==typeof e?e(w):e;k(t);try{localStorage.setItem(u,t)}catch(e){}},[w]),N=t.useCallback(t=>{S(f(t)),"system"===w&&a&&!e&&C("system")},[w,e]);t.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(N),N(e),()=>e.removeListener(N)},[N]),t.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?k(e.newValue):M(m))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[M]),t.useEffect(()=>{C(null!=e?e:w)},[e,w]);let P=t.useMemo(()=>({theme:w,setTheme:M,forcedTheme:e,resolvedTheme:"system"===w?j:w,themes:a?[...p,"system"]:p,systemTheme:a?j:void 0}),[w,M,e,j,a,p]);return t.createElement(s.Provider,{value:P},t.createElement(c,{forcedTheme:e,storageKey:u,attribute:y,enableSystem:a,enableColorScheme:o,defaultTheme:m,value:v,themes:p,nonce:b,scriptProps:x}),g)},c=t.memo(({forcedTheme:e,storageKey:n,attribute:i,enableSystem:a,enableColorScheme:s,defaultTheme:o,value:l,themes:u,nonce:c,scriptProps:d})=>{let h=JSON.stringify([i,n,o,e,u,l,a,s]).slice(1,-1);return t.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${h}
2)`}})}),d=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},h=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light");e.s(["ThemeProvider",0,e=>t.useContext(s)?t.createElement(t.Fragment,null,e.children):t.createElement(u,{...e}),"useTheme",0,()=>{var e;return null!=(e=t.useContext(s))?e:o}])},779805,e=>{"use strict";function t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}e.i(247167);var r=function e(r,n){function i(e,i,a){if("u">typeof document){"number"==typeof(a=t({},n,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var o in a)a[o]&&(s+="; "+o,!0!==a[o]&&(s+="="+a[o].split(";")[0]));return document.cookie=e+"="+r.write(i,e)+s}}return Object.create({set:i,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var a=t[i].split("="),s=a.slice(1).join("=");try{var o=decodeURIComponent(a[0]);if(n[o]=r.read(s,o),e===o)break}catch(e){}}return e?n[e]:n}},remove:function(e,r){i(e,"",t({},r,{expires:-1}))},withAttributes:function(r){return e(this.converter,t({},this.attributes,r))},withConverter:function(r){return e(t({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let n="np_analytics_consent";e.s(["readConsentClient",0,function(){if("u"<typeof document)return null;let e=r.get(n);return"granted"===e||"rejected"===e?e:null},"setConsentClient",0,function(e){r.set(n,e,{expires:365,sameSite:"lax",path:"/",secure:!0})}],779805)},314038,e=>{"use strict";var t=e.i(843476),r=e.i(207670);let n=(0,e.i(475254).default)("cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);var i=e.i(948148),a=e.i(271645),s=e.i(277462),o=e.i(779805),l=e.i(311996);let u="np-consent-pending",c="--np-consent-banner-height";e.s(["CONSENT_PENDING_CLASS",0,u,"default",0,function({initialDecision:e,fromApp:d=!1}){let h=(0,i.useTranslations)("ConsentBanner"),[f,p]=(0,a.useState)(e),[m,y]=(0,a.useState)(!1),v=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(new URLSearchParams(window.location.search).has("fromApp"))return void y(!0);if(d)return;let t=(0,o.readConsentClient)();t!==e&&p(t)},[d,e]);let g=!d&&!m&&null===f;return((0,a.useEffect)(()=>{let e=document.body;if(!g){e.classList.remove(u),e.style.removeProperty(c);return}let t=v.current;if(!t)return;e.classList.add(u);let r=()=>{e.style.setProperty(c,`${t.getBoundingClientRect().height}px`)};r();let n=new ResizeObserver(r);return n.observe(t),()=>{n.disconnect(),e.style.removeProperty(c),e.classList.remove(u)}},[g]),g)?(0,t.jsx)("div",{ref:v,role:"dialog","aria-label":h("title"),className:(0,r.default)("fixed inset-x-0 bottom-0 z-50","border-t border-gray-700 bg-gray-900/95 backdrop-blur","px-4 py-4 sm:px-6"),children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-7xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between sm:gap-6 sm:px-2 lg:px-8",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 sm:items-center",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-white/5 text-gray-300",children:(0,t.jsx)(n,{className:"size-4 sm:size-5"})}),(0,t.jsx)("p",{className:"text-sm leading-snug text-gray-300",children:h.rich("message",{policyLink:e=>(0,t.jsx)(l.Link,{href:s.policyLink,className:"text-sky-400 hover:text-sky-300 hover:underline",target:"_blank",prefetch:!1,children:e}),consentLink:e=>(0,t.jsx)(l.Link,{href:s.consentLink,className:"text-sky-400 hover:text-sky-300 hover:underline",target:"_blank",prefetch:!1,children:e})})})]}),(0,t.jsx)("button",{type:"button",onClick:function(){(0,o.setConsentClient)("granted"),window.location.reload()},className:(0,r.default)("shrink-0 inline-flex h-9 items-center justify-center rounded-full px-5 text-sm font-semibold text-white btn-primary curs
2or-pointer","shadow-sm transition-shadow hover:shadow-md","focus:outline-none focus-visible:ring-2 focus-visible:ring-white/70 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-900"),children:h("accept")})]})}):null}],314038)},339864,(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.createResponsiveComponents=function(){var e=a.default.createContext({});return e.displayName="Media.DynamicContext",{Consumer:e.Consumer,Provider:function(t){var r;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function i(e){if(!(this instanceof i))throw TypeError("Cannot call a class as a function");t=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return u(e)}(this,o(i).call(this,e)),c(u(u(t)),"isSupportedEnvironment",function(){return"u">typeof window&&void 0!==window.matchMedia}),c(u(u(t)),"setupMatchers",function(e){return Object.keys(e).reduce(function(t,r){return s({},t,c({},r,window.matchMedia(e[r])))},{})}),c(u(u(t)),"checkMatchers",function(e){return Object.keys(e).reduce(function(t,r){return s({},t,c({},r,e[r].matches))},{})}),c(u(u(t)),"mediaQueryStatusChangedCallback",function(){var e=t.checkMatchers(t.state.mediaQueryMatchers);t.setState({mediaQueryMatches:e})});var t,r,a=void 0;return t.isSupportedEnvironment()?(a=t.setupMatchers(e.mediaQueries),r=t.checkMatchers(a)):r=Object.keys(e.mediaQueries).reduce(function(t,r){return s({},t,c({},r,!!e.initialMatchingMediaQueries&&e.initialMatchingMediaQueries.includes(r)))},{}),t.state={mediaQueryMatchers:a,mediaQueryMatches:r},t}return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),t&&l(i,t),r=[{key:"componentDidMount",value:function(){if(this.state.mediaQueryMatchers){var e=this.mediaQueryStatusChangedCallback;Object.values(this.state.mediaQueryMatchers).forEach(function(t){t.addListener(e)})}}},{key:"componentWillUnmount",value:function(){if(this.state.mediaQueryMatchers){var e=this.mediaQueryStatusChangedCallback;Object.values(this.state.mediaQueryMatchers).forEach(function(t){return t.removeListener(e)})}}},{key:"shouldComponentUpdate",value:function(e,t){return!!this.state.mediaQueryMatchers&&(e.children!==this.props.children||!d(this.state.mediaQueryMatches,t.mediaQueryMatches))}},{key:"render",value:function(){return a.default.createElement(e.Provider,{value:this.state.mediaQueryMatches},this.props.children)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(i.prototype,r),i}(a.default.Component)}};var i,a=(i=e.r(271645))&&i.__esModule?i:{default:i};function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),n.forEach(function(t){c(e,t,r[t])})}return e}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=function(e,t){for(var r in e)if(e[r]!==t[r])return!1;return!0}},951298,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.propKey=function(e){return Object.keys(e)[0]},r.intersection=function(e,t){return t?e.filter(function(e){return t.indexOf(e)>=0}):a(e)},r.createRuleSet=function(e,t){return"@media ".concat(t,"{.").concat(e,"{display:none!important;}}")},r.createClassName=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return["fresnel"].concat(a(t.reduce(function(e,t){return Array.isArray(t)?a(e).concat(a(t)):a(e).concat([t])},[]))).join("-")},r.castBreakpointsToIntegers=function(e){var t=Object.keys(e);return t.reduce(function(r,n,a){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
2)),n.forEach(function(t){i(e,t,r[t])})}return e}({},r,i({},t[a],Math.round(Number(e[n]))))},{})},r.memoize=function(e){var t={};return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=JSON.stringify(n);return t[a]||(t[a]=e.apply(void 0,n)),t[a]}},r.useIsFirstRender=function(){var e=(0,n.useRef)(!0);return!!e.current&&(e.current=!1,!0)};var n=e.r(271645);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return s(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}},363986,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Breakpoints=r.BreakpointConstraint=void 0;var n,i,a=e.r(951298);function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,t)||l(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.BreakpointConstraint=i,(n=i||(r.BreakpointConstraint=i={})).at="at",n.lessThan="lessThan",n.greaterThan="greaterThan",n.greaterThanOrEqual="greaterThanOrEqual",n.between="between",r.Breakpoints=function(){function e(t){var r,n=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");h(this,"_sortedBreakpoints",void 0),h(this,"_breakpoints",void 0),h(this,"_mediaQueries",void 0),h(this,"findBreakpointsForWidths",function(e,t){var r=n.findBreakpointAtWidth(e);if(r){var i=n.findBreakpointAtWidth(t);return i&&r!==i?n._sortedBreakpoints.slice(n._sortedBreakpoints.indexOf(r),n._sortedBreakpoints.indexOf(i)+1):[r]}}),h(this,"findBreakpointAtWidth",function(e){return n._sortedBreakpoints.find(function(t,r){var i=n._sortedBreakpoints[r+1];return i?e>=n._breakpoints[t]&&e<n._breakpoints[i]:e>=n._breakpoints[t]})}),h(this,"valuesWithBreakpointProps",function(e){var t,r=e.length,i=[];return n._sortedBreakpoints.forEach(function(n,a){var s=e[a];a<r&&(!t||t[0]!==s)?(t=[s,[n]],i.push(t)):t[1].push(n)}),i.map(function(e,t){var r=o(e,2),n=r[0],a=r[1],s={};return t===i.length-1?s.greaterThanOrEqual=a[0]:1===a.length?s.at=a[0]:s.between=[a[0],i[t+1][1][0]],[n,s]})}),this._breakpoints=t,this._sortedBreakpoints=Object.keys(t).map(function(e){return[e,t[e]
2]}).sort(function(e,t){return e[1]<t[1]?-1:1}).map(function(e){return e[0]});var a=this._sortedBreakpoints.slice(0,-1).reduce(function(e,t,r){return s(e).concat(s(n._sortedBreakpoints.slice(r+1).map(function(e){return[t,e]})))},[]);this._mediaQueries=(h(r={},i.at,this._createBreakpointQueries(i.at,this._sortedBreakpoints)),h(r,i.lessThan,this._createBreakpointQueries(i.lessThan,this._sortedBreakpoints.slice(1))),h(r,i.greaterThan,this._createBreakpointQueries(i.greaterThan,this._sortedBreakpoints.slice(0,-1))),h(r,i.greaterThanOrEqual,this._createBreakpointQueries(i.greaterThanOrEqual,this._sortedBreakpoints)),h(r,i.between,this._createBreakpointQueries(i.between,a)),r)}return d(e,null,[{key:"validKeys",value:function(){return[i.at,i.lessThan,i.greaterThan,i.greaterThanOrEqual,i.between]}}]),d(e,[{key:"toVisibleAtBreakpointSet",value:function(e){if((e=this._normalizeProps(e)).lessThan){var t=this.sortedBreakpoints.findIndex(function(t){return t===e.lessThan});return this.sortedBreakpoints.slice(0,t)}if(e.greaterThan){var r=this.sortedBreakpoints.findIndex(function(t){return t===e.greaterThan});return this.sortedBreakpoints.slice(r+1)}if(e.greaterThanOrEqual){var n=this.sortedBreakpoints.findIndex(function(t){return t===e.greaterThanOrEqual});return this.sortedBreakpoints.slice(n)}if(e.between){var i=e.between,a=this.sortedBreakpoints.findIndex(function(e){return e===i[0]}),s=this.sortedBreakpoints.findIndex(function(e){return e===i[1]});return this.sortedBreakpoints.slice(a,s)}return[]}},{key:"toRuleSets",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.validKeys();return Object.entries(r.reduce(function(e,r){return e[r]=t._mediaQueries[r],e},{})).reduce(function(e,t){var r=o(t,2),n=r[0];return r[1].forEach(function(t,r){e.push((0,a.createRuleSet)((0,a.createClassName)(n,r),"not all and ".concat(t)))}),e},[])}},{key:"shouldRenderMediaQuery",value:function(e,t){var r=this;if((e=this._normalizeProps(e)).lessThan){var n=this._breakpoints[e.lessThan];return Math.min.apply(Math,s(t.map(function(e){return r._breakpoints[e]})))<n}if(e.greaterThan){var i=this._breakpoints[this._findNextBreakpoint(e.greaterThan)];return Math.max.apply(Math,s(t.map(function(e){return r._breakpoints[e]})))>=i}if(e.greaterThanOrEqual){var a=this._breakpoints[e.greaterThanOrEqual];return Math.max.apply(Math,s(t.map(function(e){return r._breakpoints[e]})))>=a}if(e.between){var o=this._breakpoints[e.between[0]],l=this._breakpoints[e.between[1]],u=t.map(function(e){return r._breakpoints[e]});return!(Math.max.apply(Math,s(u))<o||Math.min.apply(Math,s(u))>=l)}return!1}},{key:"_normalizeProps",value:function(e){if(e.at){var t=this._sortedBreakpoints.indexOf(e.at),r=this._sortedBreakpoints[t+1];return r?{between:[e.at,r]}:{greaterThanOrEqual:e.at}}return e}},{key:"_createBreakpointQuery",value:function(e){if((e=this._normalizeProps(e)).lessThan){var t=this._breakpoints[e.lessThan];return"(max-width:".concat(t-.02,"px)")}if(e.greaterThan){var r=this._breakpoints[this._findNextBreakpoint(e.greaterThan)];return"(min-width:".concat(r,"px)")}if(e.greaterThanOrEqual){var n=this._breakpoints[e.greaterThanOrEqual];return"(min-width:".concat(n,"px)")}if(e.between){var i=this._breakpoints[e.between[0]],a=this._breakpoints[e.between[1]];return"(min-width:".concat(i,"px) and (max-width:").concat(a-.02,"px)")}throw Error("Unexpected breakpoint props: ".concat(JSON.stringify(e)))}},{key:"_createBreakpointQueries",value:function(e,t){var r=this;return t.reduce(function(t,n){return t.set(Array.isArray(n)?n.join("-"):n,r._createBreakpointQuery(h({}
2,e,n))),t},new Map)}},{key:"_findNextBreakpoint",value:function(e){var t=this._sortedBreakpoints[this._sortedBreakpoints.indexOf(e)+1];if(!t)throw Error("There is no breakpoint larger than ".concat(e));return t}},{key:"sortedBreakpoints",get:function(){return this._sortedBreakpoints}},{key:"dynamicResponsiveMediaQueries",get:function(){return Array.from(this._mediaQueries[i.at].entries()).reduce(function(e,t){var r=o(t,2);return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),n.forEach(function(t){h(e,t,r[t])})}return e}({},e,h({},r[0],r[1]))},{})}},{key:"largestBreakpoint",get:function(){return this._sortedBreakpoints[this._sortedBreakpoints.length-1]}}]),e}()},584910,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Interactions=r.InteractionKey=void 0;var n,i=e.r(951298);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,t)||s(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.InteractionKey=n,(n||(r.InteractionKey=n={})).interaction="interaction",r.Interactions=function(){function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");c(this,"_interactions",void 0),this._interactions=t}return u(e,null,[{key:"validKeys",value:function(){return[n.interaction]}}]),u(e,[{key:"toRuleSets",value:function(){return Object.entries(this._interactions).reduce(function(e,t){var r=a(t,2),l=r[0],u=r[1];return((function(e){if(Array.isArray(e))return o(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([(0,i.createRuleSet)((0,i.createClassName)(n.interaction,l),u)])},[])}},{key:"shouldRenderMediaQuery",value:function(e,t){return!!(t&&t.includes(e))}},{key:"interactions",get:function(){return Object.keys(this._interactions)}},{key:"dynamicResponsiveMediaQueries",get:function(){return Object.entries(this._interactions).reduce(function(e,t){var r=a(t,2);return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),n.forEach(function(t){c(e,t,r[t])})}return e}({},e,c({},r[0],r[1]))},{})}}]),e}()},346389,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MediaQueries=void 0;var n=e.r(363986),i=e.r(584910),a=e.r(951298);function s(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return o(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.MediaQueries=function(){function e(t,r){var a=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");c(this,"_breakpoints",void 0),c(this,"_interactions",void 0),c(this,"toStyle",function(e){return[".fresnel-container{margin:0;padding:0;}"].concat(s(a._breakpoints.toRuleSets(e)),s(a._interactions.toRuleSets())).join("\n")}),this._breakpoints=new n.Breakpoints(t),this._interactions=new i.Interactions(r||{})}return u(e,null,[{key:"validKeys",value:function(){return s(n.Breakpoints.val
2idKeys()).concat(s(i.Interactions.validKeys()))}}]),u(e,[{key:"shouldRenderMediaQuery",value:function(e,t){var r=e.interaction,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["interaction"]);if(r)return this._interactions.shouldRenderMediaQuery(r,t);var i=(0,a.intersection)(t,this._breakpoints.sortedBreakpoints);return this._breakpoints.shouldRenderMediaQuery(n,i)}},{key:"breakpoints",get:function(){return this._breakpoints}},{key:"mediaQueryTypes",get:function(){return s(this._breakpoints.sortedBreakpoints).concat(s(this._interactions.interactions))}},{key:"dynamicResponsiveMediaQueries",get:function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),n.forEach(function(t){c(e,t,r[t])})}return e}({},this._breakpoints.dynamicResponsiveMediaQueries,this._interactions.dynamicResponsiveMediaQueries)}}]),e}()},62641,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createMedia=function(e){var t,r=(0,o.castBreakpointsToIntegers)(e.breakpoints),n=new s.MediaQueries(r,e.interactions||{}),c=(0,a.createResponsiveComponents)(),d=i.default.createContext({});d.displayName="Media.Context";var h=i.default.createContext({hasParentMedia:!1,breakpointProps:{}});d.displayName="MediaParent.Context";var f=(0,o.memoize)(function(e){return{onlyMatch:e}}),p=c.Provider;return{Media:function(e){(function(e){var t=Object.keys(e).filter(function(e){return u.includes(e)});if(t.length<1)throw Error("1 of ".concat(u.join(", ")," is required."));if(t.length>1)throw Error("Only 1 of ".concat(t.join(", ")," is allowed at a time."))})(e),e.children;var t,r=e.className,a=e.style,s=e.interaction,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className","style","interaction"]),c=i.default.useMemo(function(){return(0,o.memoize)(function(e){return{hasParentMedia:!0,breakpointProps:e}})},[]),f=i.default.useContext(h),p=c(l),m=i.default.useContext(d).onlyMatch,y=i.default.useId(),v="u">typeof window,g=(0,o.useIsFirstRender)();if(e.interaction)t=(0,o.createClassName)("interaction",e.interaction);else{if(e.at){var b=n.breakpoints.largestBreakpoint;e.at===b&&console.warn("[@artsy/fresnel] `at` is being used with the largest breakpoint. Consider using `<Media greaterThanOrEqual="+'"'.concat(b,'">` to account for future ')+"breakpoint definitions outside of this range.")}var x=(0,o.propKey)(l),w=l[x];t=(0,o.createClassName)(x,w)}var k=(!f.hasParentMedia||(0,o.intersection)(n.breakpoints.toVisibleAtBreakpointSet(f.breakpointProps),n.breakpoints.toVisibleAtBreakpointSet(l)).length>0)&&(void 0===m||n.shouldRenderMediaQuery(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),n.forEach(function(t){var n,i,a;n=e,i=t,a=r[t],i in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a})}return e}({},l,{interaction:s}),m)),j=" fresnel-".concat(y);return t+=j,v&&g&&!k&&Array.from(document.getElementsByClassName(j)).forEach(function(e){return e.innerHTML=""}),i.default.createElement(h.Provider,{value:p},e.children instanceof Function?e.children(t,k):i.default.createElement("div",{className:["fresnel-container",t,r].filter(
2Boolean).join(" "),style:a,suppressHydrationWarning:!0},k?e.children:null))},MediaContextProvider:function(e){var t=e.disableDynamicMediaQueries,r=e.onlyMatch,a=e.children;if(!t)return i.default.createElement(p,{mediaQueries:n.dynamicResponsiveMediaQueries,initialMatchingMediaQueries:(0,o.intersection)(n.mediaQueryTypes,r)},i.default.createElement(c.Consumer,null,function(e){var t=Object.keys(e).filter(function(t){return e[t]}),n=f((0,o.intersection)(t,r));return i.default.createElement(d.Provider,{value:n},a)}));var s=f(r);return i.default.createElement(d.Provider,{value:s},a)},createMediaStyle:n.toStyle,SortedBreakpoints:function(e){if(Array.isArray(e))return l(e)}(t=n.breakpoints.sortedBreakpoints)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return l(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),findBreakpointAtWidth:n.breakpoints.findBreakpointAtWidth,findBreakpointsForWidths:n.breakpoints.findBreakpointsForWidths,valuesWithBreakpointProps:n.breakpoints.valuesWithBreakpointProps}};var n,i=(n=e.r(271645))&&n.__esModule?n:{default:n},a=e.r(339864),s=e.r(346389),o=e.r(951298);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u=s.MediaQueries.validKeys()},870195,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createMedia",{enumerable:!0,get:function(){return n.createMedia}}),Object.defineProperty(r,"BreakpointKey",{enumerable:!0,get:function(){return i.BreakpointConstraint}});var n=e.r(62641),i=e.r(363986)},298582,e=>{"use strict";let t=(0,e.i(870195).createMedia)({breakpoints:{xs:0,sm:520,md:768,lg:1200}}),r=t.createMediaStyle(),{Media:n,MediaContextProvider:i}=t;e.s(["Media",0,n,"MediaContextProvider",0,i,"mediaStyles",0,r])},185823,e=>{"use strict";var t=e.i(843476),r=e.i(298582);e.s(["default",0,function({pathname:e,locale:n,analyticsConsent:i,streamSampleRate:a}){return(0,t.jsxs)("head",{children:[(0,t.jsx)("link",{rel:"manifest",href:`/${n}/manifest.json?v=4`,crossOrigin:"anonymous"}),(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:r.mediaStyles},type:"text/css",suppressHydrationWarning:!0},"fresnel-css"),"/"===e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("link",{rel:"preload",href:"https://unpkg.com/@rive-app/[email protected]/rive.wasm",as:"fetch",crossOrigin:"anonymous"}),(0,t.jsx)("link",{rel:"preload",href:"/neuropunk.riv",as:"fetch",crossOrigin:"anonymous"})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:'
vendor: 386 bytes, line 2
2(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date(); for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(
296284156
vendor: 126 bytes, line 2
2, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true, trackHash:true, ecommerce:"dataLayer" });
2'}}),(0,t.jsx)("noscript",{children:(0,t.jsx)("div",{children:(0,t.jsx)("img",{src:"https://mc.yandex.ru/watch/96284156",style:{position:"absolute",left:"-9999px"},alt:""})})})]}),(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || [];"}}),null!=a&&(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:`window.__STREAM_TELEMETRY_SUCCESS_RATE__=${a};`}})]})}],185823)},902938,e=>{"use strict";e.i(247167);var t=e.i(271645);e.i(21749);var r=e.i(100637),n=e.i(153343),i=e.i(842321);e.s(["default",0,function(){return!function(){let e=(0,i.useAnalytics)(),{currentTrack:a,currentTime:s}=(0,r.usePlaybackContext)(),o=(0,t.useRef)({currentTrack:a,currentTime:s});o.current={currentTrack:a,currentTime:s};let l=(0,t.useRef)(e);l.current=e,(0,t.useEffect)(()=>{let e=()=>{let{currentTrack:e,currentTime:t}=o.current;return{request_id:null,track_id:e?.id??null,release_id:e?.releaseId??null,track_position_sec:Number.isFinite(t)?Math.round(t):null}};return(0,n.startStreamTelemetry)({onEvent:t=>{let r=l.current;switch(t.kind){case"completed":r.trackStreamRequestCompleted({...t.props,...e()});break;case"failed":r.trackStreamRequestFailed({...t.props,...e()});break;case"throttled":r.trackStreamTelemetryThrottled(t.props)}}})},[])}(),null}],902938)},351626,e=>{"use strict";var t=e.i(843476),r=e.i(170319);e.s(["default",0,function(){return(0,t.jsx)(r.ToastContainer,{theme:"light"})}])},645779,e=>{"use strict";var t=e.i(843476),r=e.i(207670),n=e.i(495242),i=e.i(431343),a=e.i(475254);let s=(0,a.default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),o=(0,a.default)("skip-back",[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]]),l=(0,a.default)("skip-forward",[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]]);var u=e.i(948148),c=e.i(770703),d=e.i(271645);e.i(21749);var h=e.i(914916),f=e.i(402245),p=e.i(962543),m=e.i(520013),y=e.i(660555),v=e.i(100637),g=e.i(898317),b=e.i(206142),x=e.i(700713),w=e.i(819700),k=e.i(611473),j=e.i(89239),S=e.i(402438);let _=(0,a.default)("list-music",[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M11 19H3",key:"zflm78"}],["path",{d:"M21 16V5",key:"yxg4q8"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),C=(0,p.getShortcut)("toggleQueue");function M({className:e}){let n=(0,u.useTranslations)("AudioPlayer"),{isQueuePanelOpen:i,toggleQueuePanel:a}=(0,y.usePanelContext)();return(0,t.jsx)("button",{onClick:a,className:(0,r.default)("queue-toggle relative w-9 h-9 flex items-center justify-center rounded-full","transition-colors",i?"text-[#1ed760] bg-white/10":"text-white/50 hover:text-white hover:bg-white/10",e),"aria-label":n("queue"),"aria-expanded":i,"aria-controls":"queue-panel","aria-keyshortcuts":C?.ariaKeyshortcuts,title:n("withShortcut",{label:n("queue"),key:C?.display.join(" / ")??"Q"}),children:(0,t.jsx)(_,{className:"w-5 h-5"})})}var N=e.i(643531);let P=(0,a.default)("repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]),T=(0,a.default)("repeat-1",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}],["path",{d:"M11 10h1v4",key:"70cz1p"}]]);var E=e.i(216089),O=e.i(842321);let R={[h.RepeatMode.Off]:h.RepeatMode.One,[h.RepeatMode.One]:h.RepeatMode.Playlist,[h.RepeatMode.Playlist]:h.RepeatMode.Off},A={[h.RepeatMode.Off]:"repeatOff",[h.RepeatMode.One]:"repeatOne",[h.RepeatMode.Playlist]:"repeatAll"};function L({className:e}){let n=(0,u.useTranslations)("AudioPlayer"),i=(0,O.useAnalytics)(),{repeatMode:a,cycleRepeatMode:s,updateRepeatMode:o}=(0,E.useQueueContext)(),[l,c]=(0,d.useState)(!1),f=(0,d.useRef)(null),p=(0,d.useRef)(null),m=(0,d.useRef)(!1);(0,d.useEffect)(()=>
2{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&f.current&&!f.current.contains(e.target)&&c(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[l]),(0,d.useEffect)(()=>{if(!l)return;let e=e=>{"Escape"===e.key&&(c(!1),f.current?.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[l]),(0,d.useEffect)(()=>{if(!l||!m.current)return;m.current=!1;let e=requestAnimationFrame(()=>{p.current?.querySelector('[role="menuitemradio"]')?.focus()});return()=>cancelAnimationFrame(e)},[l]);let y=[{mode:h.RepeatMode.Off,label:n("repeatOff"),icon:(0,t.jsx)(P,{className:"w-4 h-4 flex-shrink-0"})},{mode:h.RepeatMode.One,label:n("repeatOne"),icon:(0,t.jsx)(T,{className:"w-4 h-4 flex-shrink-0"})},{mode:h.RepeatMode.Playlist,label:n("repeatAll"),icon:(0,t.jsx)(P,{className:"w-4 h-4 flex-shrink-0"})}];return(0,t.jsxs)("div",{className:(0,r.default)("relative",e),children:[(0,t.jsx)("button",{ref:f,onClick:()=>{i.trackRepeatModeChanged(R[a],"cycle"),s()},onContextMenu:e=>{e.preventDefault(),l||i.trackContextMenuOpened("repeat","player_bar"),c(e=>!e)},onKeyDown:e=>{(e.shiftKey&&"F10"===e.key||"ContextMenu"===e.key)&&(e.preventDefault(),l?c(!1):(i.trackContextMenuOpened("repeat","player_bar"),m.current=!0,c(!0)))},className:(0,r.default)("flex w-9 h-9 items-center justify-center flex-shrink-0 rounded-full","transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50",a===h.RepeatMode.Off?"text-white/40 hover:text-white/70 hover:bg-white/10":"text-emerald-400 hover:text-emerald-300 hover:bg-emerald-400/10"),"aria-label":`${n("repeat")}: ${n(A[a])}`,"aria-haspopup":"menu","aria-expanded":l,title:`${n("repeat")}: ${n(A[a])} â ${n("repeatMenuHint")}`,children:a===h.RepeatMode.One?(0,t.jsx)(T,{className:"w-4 h-4"}):(0,t.jsx)(P,{className:"w-4 h-4"})}),l&&(0,t.jsx)("div",{ref:p,role:"menu",onContextMenu:e=>e.preventDefault(),onKeyDown:e=>{let t;if("Tab"===e.key)return void c(!1);if(!["ArrowDown","ArrowUp","Home","End"].includes(e.key))return;e.preventDefault();let r=Array.from(p.current?.querySelectorAll('[role="menuitemradio"]')??[]);if(0===r.length)return;let n=r.indexOf(document.activeElement);t="Home"===e.key?0:"End"===e.key?r.length-1:"ArrowDown"===e.key?n<0?0:(n+1)%r.length:n<0?r.length-1:(n-1+r.length)%r.length,r[t]?.focus()},className:(0,r.default)("absolute bottom-full left-1/2 -translate-x-1/2 mb-3 z-50","min-w-[10rem] whitespace-nowrap rounded-lg py-1.5","bg-black/80 backdrop-blur-md","border border-white/10 shadow-xl shadow-black/40"),children:y.map(({mode:e,label:n,icon:s})=>{let l=a===e;return(0,t.jsxs)("button",{type:"button",role:"menuitemradio","aria-checked":l,onClick:()=>{i.trackRepeatModeChanged(e,"menu"),o(e),c(!1),f.current?.focus()},className:(0,r.default)("flex items-center gap-3 w-full px-3 py-1.5 text-sm cursor-pointer","hover:bg-white/[0.08] focus:bg-white/[0.08] focus:outline-none transition-colors",l?"text-emerald-400":"text-white/80"),children:[s,n,l&&(0,t.jsx)(N.Check,{className:"w-4 h-4 ml-auto flex-shrink-0"})]},e)})})]})}var B=e.i(53508),I=e.i(148556);function z({segment:e}){let n=(0,u.useTranslations)("Track"),a=(0,O.useAnalytics)(),{playbackState:s,seek:o,resume:l,currentTrack:c,releaseTitle:f,releaseArtist:p}=(0,v.usePlaybackContext)(),m=(0,d.useRef)(null),y=(0,d.useCallback)(()=>{o(e.time),(s===h.PlaybackState.Paused||s===h.PlaybackState.Ended)&&l(),c&&a.trackSegmentSeek(c,e,e.time,"segment_strip")},[o,l,s,e,c,a]),g=(0,d.useCallback)(e=>{e.target.closest("a")||y()},[y]),b=(0,d.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),y())},[y]),x=(0,d.useCallback)(e=>{e.preventDefault(),m.current?.open(e.clientX,e.clientY)},[]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute bottom-full left-0 right-0 mb-2 flex justify-center pointer-events-none animate-in fade-in duration-150 motion-reduce:animate-none",children:(0,t.jsxs)("div",{className:(0,r.default)("flex items-center gap-1.5 min-w-0 max-w-full pointer-events-auto","opacity-85 hover:opacity-100 transition-opacity duration-150","group/segment cursor-pointer rounded","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50"),onClick:g,onContextMenu:x,role:"button",tabIndex:0,onKeyDown:b,children:[(0,t.jsx)(i.Play,{className:"w-3 h-3 text-white/50 opacity-0 group-hover/segment:opacity-100 group-focus-visible/segment:opacity-100 transition-opacity duration-150 flex-shrink-0",fill:"currentColor"}),(0,t.jsxs)("span",{className:"text-[12px] truncate min-w-0",children:[e.artist&&(0,t.jsxs)("span",{className:"text-white/50",children:[(0,B.getArtistString)(e.artist,n),(0,t.jsx)("span",{className:"mx-1 pointer-events-none",children:"-"})]}),(0,t.jsx)("span",{className:"text-white/70",children:(0,B.getTitleString)(e.title,n)})]}),(0,t.jsx)(I.TrackContextMenuTrigger,{menuRef:m,className:"flex-shrink-0 opacity-0 group-hover/segment:opacity-100 group-focus-within/segment:opacity-100 transition-opacity"})]})}),c&&(0,t.jsx)(I.TrackContextMenu,{ref:m,source:"segment_strip",target:{releaseId:c.releaseId,releaseSlug:c.releaseSlug,kind:c.kind,trackId:c.id,artist:e.artist,title:e.title,coverThumbnail:c.coverThumbnail,releaseTitle:f??void 0,releaseArtist:p??void 0,timestampSeconds:e.time},actions:["openRelease","findArtist","findTrack","copyLink","copy","share"]})]})}var D=e.i(657688),F=e.i(311996),Q=e.i(233745);function $({track:e,tTrack:r,isCurrentTrack:n,releaseTitle:i,releaseArtist:a}){let s=`/${(e.kind??"RELEASE").toLowerCase()}/${e.releaseSlug||e.releaseId}`,o=(0,d.useRef)(null),l=(0,d.useCallback)(e=>{e.preventDefault(),o.current?.open(e.clientX,e.clientY)},[]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"group/track-info flex items-center gap-2 min-w-0 flex-1 md:flex-none md:w-[180px] lg:w-[220px]",onContextMenu:l,children:[(0,t.jsx)(F.Link,{href:s,className:"group/release-link flex-shrink-0",children:(0,t.jsx)("div",{className:"relative w-12 h-12 flex-shrink-0 rounded overflow-hidden bg-gray-800 shadow-lg",children:e.coverThumbnail&&(0,t.jsx)(D.default,{src:e.coverThumbnail,alt:"",fill:!0,className:"object-cover transition-opacity duration-150 group-hover/release-link:opacity-80",sizes:"48px"})})}),(0,t.jsxs)("div",{className:"track-info__marquee min-w-0 flex-1 block",children:[(0,t.jsx)(F.Link,{href:s,className:"block leading-tight hover:underline",children:(0,t.jsx)(Q.MarqueeText,{className:"text-sm font-medium text-white",children:e.title})}),(0,t.jsx)(Q.MarqueeText,{className:"text-xs text-white/60",children:(0,B.getArtistString)(e.artist,r)})]}),(0,t.jsx)(I.TrackContextMenuTrigger,{menuRef:o,className:"hidden group-hover/track-info:flex group-focus-within/track-info:flex flex-shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50"})]}),(0,t.jsx)(I.TrackContextMenu,{ref:o,source:"player_bar",target:{releaseId:e.releaseId,releaseSlug:e.releaseSlug,kind:e.kind,trackId:e.id,artist:e.artist,title:e.title,coverThumbnail:e.coverThumbnail,releaseTitle:i??void 0,releaseArtist:a??void 0},actions:["openRelease","findArtist","findTrack","copyLink","copy","share"],isCurrentTrack:n})]})}var q=e.i(153748);let K=(0,a.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),U=(0,p.getShortcut)("toggleTracklist");function H({showToggle:e,reserveSlot:n,isOpen:i,onToggle:a,onIntentStart:s,onIntentEnd:o,onIntentNow:l,className:c}){let d=(0,u.useTranslations)("AudioPlayer");return e?(0,t.jsx)("button",{type:"button",onClick:a,onPointerEnter:s,onPointerLeave:o,onPointerDown:l,onFocus:l,className:(0,r.default)("relative w-9 h-9 flex items-center justify-center rounded-full","transition-colors animate-in fade-in duration-150 motion-reduce:animate-none",i?"text-[#1ed760] bg-white/10":"text-white/50 hover:text-white hover:bg-white/10",c),"aria-label":d("tracklist"),"aria-expanded":i,"aria-controls":"tracklist-panel","aria-keyshortcuts":U?.ariaKeyshortcuts,title:d("withShortcut",{label:d("tracklist"),key:U?.display.join(" / ")??"T"}),children:(0,t.jsx)(K,{className:"w-5 h-5"})}):n?(0,t.jsx)("span",{"aria-hidden":"true","data-testid":"tracklist-toggle-placeholder",className:(0,r.default)("w-9 h-9 flex-shrink-0",c)}):null}function G({className:e}){let{isTracklistPanelOpen:r,toggleTracklistPanel:n}=(0,y.usePanelContext)(),{currentTrack:i,playbackState:a}=(0,v.usePlaybackContext)(),s=a===h.PlaybackState.Loading,{showToggle:o,reserveSlot:l}=(0,m.useActiveTracklist)(),u=i?.releaseId,c=(0,d.useRef)(null),f=(0,d.useRef)(()=>{}),p=(0,d.useCallback)(()=>{c.current&&(clearTimeout(c.current),c.current=null),f.current(),f.current=()=>{}},[]),g=(0,d.useCallback)(()=>{s||(f.current=(0,q.preloadTracklist)(u,"intent"))},[u,s]),b=(0,d.useCallback)(()=>{p(),c.current=setTimeout(g,65)},[p,g]);return(0,d.useEffect)(()=>p,[p,u]),(0,t.jsx)(H,{showToggle:o,reserveSlot:l,isOpen:r,onToggle:n,onIntentStart:b,onIntentEnd:p,onIntentNow:g,className:e})}var V=e.i(164668);let W=(0,a.default)("mic-vocal",[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]]);function X({className:e}){let n=(0,u.useTranslations)("AudioPlayer"),{voicePairedTrack:i,isVoiceless:a,switchVoiceVersion:s,isVoiceSwitching:o}=(0,v.usePlaybackContext)();if(!i)return null;let l=n(a?"switchToVoice":"switchToVoiceless");return(0,t.jsx)("button",{onClick:o?void 0:s,"aria-disabled":o,className:(0,r.default)("relative w-9 h-9 flex items-center justify-center rounded-full","transition-colors",o?"text-white/30 curs
2or-wait":a?"text-white/50 hover:text-white":"text-[#1ed760] hover:text-[#1ed760]/80",e),"aria-label":l,title:l,children:o?(0,t.jsx)(V.LoaderCircle,{className:"w-5 h-5 animate-spin"}):(0,t.jsx)(W,{className:"w-5 h-5"})})}let Y=(0,a.default)("volume",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]]),Z=(0,a.default)("volume-1",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}]]);var J=e.i(382373),ee=e.i(135116),et=e.i(344831);let er=(0,p.getShortcut)("mute");function en(e,r){return r||0===e?(0,t.jsx)(ee.VolumeX,{className:"w-5 h-5"}):e<.33?(0,t.jsx)(Y,{className:"w-5 h-5"}):e<.67?(0,t.jsx)(Z,{className:"w-5 h-5"}):(0,t.jsx)(J.Volume2,{className:"w-5 h-5"})}function ei(e,t){let r=t.getBoundingClientRect();return Math.max(0,Math.min(e-r.left,r.width))/r.width}function ea(e,t){let r=t.getBoundingClientRect();return Math.max(0,Math.min(e-r.left,r.width))}function es(e,t){let r=t.getBoundingClientRect();return 1-Math.max(0,Math.min(e-r.top,r.height))/r.height}function eo(e,t){let r=t.getBoundingClientRect();return Math.max(0,Math.min(e-r.top,r.height))}let el=(0,d.memo)(function({className:e}){let n=(0,u.useTranslations)("AudioPlayer"),{volume:i,isMuted:a,setVolume:s,toggleMute:o}=(0,et.useVolumeContext)(),[l,c]=(0,d.useState)(i),[h,p]=(0,d.useState)(!1),m=(0,d.useRef)(!1),y=(0,d.useRef)(null),[v,g]=(0,d.useState)(null),[b,x]=(0,d.useState)(null),w=(0,d.useRef)(null),k=(0,d.useRef)(null),[j,S]=(0,d.useState)(!1),_=(0,d.useRef)(null),C=(0,d.useRef)(null),[M,N]=(0,d.useState)(!1);(0,d.useEffect)(()=>{let e=window.matchMedia("(max-width: 1023px)"),t=()=>N(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,d.useEffect)(()=>{y.current=document.querySelector("audio")},[]),(0,d.useEffect)(()=>{m.current||c(i)},[i]);let P=(0,d.useCallback)(e=>{y.current&&(y.current.volume=e,y.current.muted=!1)},[]),T=(0,d.useCallback)((e,t,r)=>{e.preventDefault();let n=t.current;if(!n)return;n.setPointerCapture(e.pointerId),m.current=!0,p(!0);let i=ei(e.clientX,n);c(i),P(i),r({percent:Math.round(100*i),position:ea(e.clientX,n)})},[P]),E=(0,d.useCallback)((e,t,r)=>{let n=t.current;if(!n)return;let i=ea(e.clientX,n),a=ei(e.clientX,n);r({percent:Math.round(100*a),position:i}),m.current&&(c(a),P(a))},[P]),O=(0,d.useCallback)((e,t)=>{if(!m.current)return;let r=t.current;r&&r.releasePointerCapture(e.pointerId);let n=r?ei(e.clientX,r):l;m.current=!1,p(!1),c(n),s(n)},[l,s]),R=(0,d.useCallback)(e=>{e.preventDefault();let t=k.current;if(!t)return;t.setPointerCapture(e.pointerId),m.current=!0,p(!0);let r=es(e.clientY,t);c(r),P(r),x({percent:Math.round(100*r),position:eo(e.clientY,t)})},[P]),A=(0,d.useCallback)(e=>{let t=k.current;if(!t)return;let r=eo(e.clientY,t),n=es(e.clientY,t);x({percent:Math.round(100*n),position:r}),m.current&&(c(n),P(n))},[P]),L=(0,d.useCallback)(e=>{if(!m.current)return;let t=k.current;t&&t.releasePointerCapture(e.pointerId);let r=t?es(e.clientY,t):l;m.current=!1,p(!1),c(r),s(r)},[l,s]),B=(0,d.useCallback)(e=>{m.current||e(null)},[]),I=(0,d.useCallback)(e=>{let t;if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;let r=a?0:l;switch(e.key){case"ArrowUp":case"ArrowRight":t=r+f.VOLUME_STEP;break;case"ArrowDown":case"ArrowLeft":t=r-f.VOLUME_STEP;break;case"PageUp":t=r+f.VOLUME_LARGE_STEP;break;case"PageDown":t=r-f.VOLUME_LARGE_STEP;break;case"Home":t=0;break;case"End":t=1;break;default:return}e.preventDefault();let n=Math.max(0,Math.min(1,t));c(n),P(n),s(n)},[a,l,P,s]),z=(0,d.useCallback)(()=>{window.innerWidth<1024?S(e=>!e):o()},[o]);(0,d.useEffect)(()=>{if(!j)return;let e=e=>{_.current&&!_.current.contains(e.target)&&C.current&&!C.current.contains(e.target)&&S(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[j]),(0,d.useEffect)(()=>
2{if(!j)return;let e=requestAnimationFrame(()=>{k.current?.focus()});return()=>cancelAnimationFrame(e)},[j]);let D=(0,d.useCallback)(e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),S(!1),C.current?.focus())},[]),F=n(a?"unmute":"mute"),Q=n("volume"),$=Math.round(100*(a?0:l));return(0,t.jsxs)("div",{className:(0,r.default)("volume-slider relative flex items-center",e),children:[(0,t.jsx)("button",{ref:C,onClick:z,className:"w-9 h-9 flex items-center justify-center rounded-full text-white/50 hover:text-white hover:bg-white/10 transition-colors","aria-label":F,title:n("withShortcut",{label:F,key:er?.display.join(" / ")??"M"}),"aria-keyshortcuts":er?.ariaKeyshortcuts,"aria-haspopup":M?"dialog":void 0,"aria-expanded":M?j:void 0,children:en(l,a)}),(0,t.jsx)("div",{className:"hidden lg:flex items-center ml-1 group/volume",children:(0,t.jsxs)("div",{ref:w,className:(0,r.default)("relative w-20 h-1 touch-none cursor-pointer group/vtrack rounded-full","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50","focus-visible:ring-offset-2 focus-visible:ring-offset-[#161616]"),onPointerDown:e=>T(e,w,g),onPointerMove:e=>E(e,w,g),onPointerUp:e=>O(e,w),onPointerCancel:e=>O(e,w),onPointerLeave:()=>B(g),onKeyDown:I,role:"slider","aria-label":Q,"aria-orientation":"horizontal","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":$,"aria-valuetext":`${$}%`,tabIndex:0,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-white/30 rounded-full"}),(0,t.jsx)("div",{className:"absolute top-0 left-0 h-full bg-white rounded-full group-hover/volume:bg-[#1ed760] group-focus-visible/vtrack:bg-[#1ed760] transition-colors pointer-events-none",style:{width:`${$}%`}}),(0,t.jsx)("div",{className:(0,r.default)("absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full shadow pointer-events-none transition-opacity",h?"opacity-100":"opacity-0 group-hover/volume:opacity-100 group-focus-visible/vtrack:opacity-100"),style:{left:`calc(${$}% - 6px)`}}),v&&(0,t.jsxs)("div",{className:"absolute -top-7 -translate-x-1/2 px-2 py-1 bg-gray-900 text-white text-xs rounded shadow-lg pointer-events-none whitespace-nowrap",style:{left:`${v.position}px`},children:[v.percent,"%"]}),(0,t.jsx)("div",{className:"absolute -top-2 -bottom-2 left-0 right-0"})]})}),j&&(0,t.jsx)("div",{ref:_,role:"dialog","aria-label":Q,onKeyDown:D,className:(0,r.default)("volume-popover","lg:hidden absolute bottom-full left-1/2 -translate-x-1/2 mb-3 z-50","px-3 py-4 rounded-lg","bg-black/80 backdrop-blur-md","border border-white/10 shadow-xl shadow-black/40","focus:outline-none"),children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,t.jsxs)("span",{className:"text-[11px] text-white/70 tabular-nums select-none w-8 text-center",children:[$,"%"]}),(0,t.jsxs)("div",{ref:k,className:(0,r.default)("relative w-1 h-28 touch-none cursor-pointer rounded-full","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50","focus-visible:ring-offset-2 focus-visible:ring-offset-black"),onPointerDown:R,onPointerMove:A,onPointerUp:L,onPointerCancel:L,onPointerLeave:()=>B(x),onKeyDown:I,role:"slider","aria-label":Q,"aria-orientation":"vertical","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":$,"aria-valuetext":`${$}%`,tabIndex:0,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-white/15 rounded-full"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-full bg-[#1ed760] rounded-full pointer-events-none shadow-[0_0_8px_-2px_rgba(30,215,96,0.6)]",style:{height:`${$}%`}}),(0,t.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 w-3 h-3 bg-white rounded-full shadow-md ring-1 ring-black/20 pointer-events-none",style:{bottom:`calc(${$}% - 6px)`}}),(0,t.jsx)("div",{className:"absolute -left-3 -right-3 top-0 bottom-0"})]}),(0,t.jsx)("button",{onClick:o,className:"w-8 h-8 flex items-center justify-center rounded-full text-white/60 hover:text-white hover:bg-white/10 transition-colors","aria-label":F,title:F,children:en(l,a)})]})})]})}),eu=(0,c.default)(()=>e.A(566260).then(e=>e.QueuePanel),{loadableGenerated:{modules:[712611]},ssr:!1}),ec=(0,c.default)(()=>e.A(903545).then(e=>
2e.TracklistPanel),{loadableGenerated:{modules:[301150]},ssr:!1}),ed=(0,p.getShortcut)("playPause"),eh=(0,p.getShortcut)("previousTrack"),ef=(0,p.getShortcut)("nextTrack");e.s(["AudioPlayerBarClient",0,function({initialState:e}){let a=(0,u.useTranslations)("AudioPlayer"),c=(0,u.useTranslations)("Track"),p=(0,d.useRef)(null),[_,C]=(0,d.useState)(null),[N,P]=(0,d.useState)(0),[T,E]=(0,d.useState)(!1),[O,R]=(0,d.useState)(0),{playbackState:A,currentTrack:B,currentTime:I,duration:D,isVisible:F,releaseTitle:Q,releaseArtist:q,stallRecoveryFailed:K,retryPlayback:U,pause:H,resume:V,seek:W,playPrevious:Y,playNext:Z,canPlayPrevious:J,canPlayNext:ee,getCurrentTime:et,isMuted:er,toggleMute:en,volume:ei,setVolume:ea}=(0,v.usePlaybackContext)(),es=(0,m.useActiveTracklist)(),{setShowShortcutsModal:eo}=(0,b.usePlayerModalContext)(),{toggleQueuePanel:ep,toggleTracklistPanel:em}=(0,y.usePanelContext)(),{user:ey}=(0,x.useAuthContext)(),ev=(0,d.useMemo)(()=>"u">typeof navigator&&(0,S.isDeviceMobile)((0,S.getDeviceTypeFromUserAgent)(navigator.userAgent)),[]),eg=(0,j.useHydrated)()?null:e?.currentTrack??null,eb=B??eg,ex=F||!!eg,ew=D||eb?.duration||0,ek=(0,d.useCallback)(()=>eo(!0),[eo]),ej=(0,g.usePlayerHotkeys)({enabled:ex&&!!eb&&!ev,playbackState:A,stallRecoveryFailed:K,duration:ew,getCurrentTime:et,seek:W,pause:H,resume:V,retryPlayback:U,isMuted:er,toggleMute:en,volume:ei,setVolume:ea,playNext:Z,playPrevious:Y,canPlayNext:ee,canPlayPrevious:J,toggleQueuePanel:ep,toggleTracklistPanel:em,hasTracklist:es.showToggle,openShortcutsHelp:ek});(0,d.useLayoutEffect)(()=>(ex&&eb?document.body.classList.add("audio-player-visible"):document.body.classList.remove("audio-player-visible"),()=>{document.body.classList.remove("audio-player-visible")}),[ex,eb]);let eS=(0,d.useCallback)(e=>{if("u"<typeof document)return;let t=document.documentElement;if(!e)return void t.style.setProperty("--np-player-bar-height","0px");let r=e=>{t.style.setProperty("--np-player-bar-height",`${e}px`)};r(e.getBoundingClientRect().height);let n=new ResizeObserver(e=>{for(let t of e)r(t.contentRect.height)});return n.observe(e),()=>{n.disconnect()}},[]),e_=B?.id,eC=(0,d.useRef)(!1);(0,d.useEffect)(()=>{if(!eC.current){eC.current=!0;return}R(0),E(!1)},[e_]),(0,d.useEffect)(()=>{T||R(I)},[I,T]);let eM=(0,d.useCallback)(e=>{let t=p.current;if(!t||!ew)return 0;let r=t.getBoundingClientRect();return Math.max(0,Math.min(e-r.left,r.width))/r.width*ew},[ew]),eN=(0,d.useCallback)(e=>{e.preventDefault();let t=p.current;t&&ew&&(t.setPointerCapture(e.pointerId),E(!0),R(eM(e.clientX)))},[ew,eM]),eP=(0,d.useCallback)(e=>{let t=p.current;if(!t||!ew)return;let r=t.getBoundingClientRect(),n=Math.max(0,Math.min(e.clientX-r.left,r.width));C(n/r.width*ew),P(n),T&&R(eM(e.clientX))},[ew,T,eM]),eT=(0,d.useCallback)(e=>{if(!T)return;let t=p.current;t&&t.releasePointerCapture(e.pointerId);let r=eM(e.clientX);E(!1),R(r),W(r)},[T,eM,W]),eE=(0,d.useCallback)(()=>{T||C(null)},[T]),eO=(0,d.useCallback)(e=>{if(!D)return;let t=null;switch(e.key){case"ArrowRight":case"ArrowUp":t=Math.min(I+f.SEEK_STEP,D);break;case"ArrowLeft":case"ArrowDown":t=Math.max(I-f.SEEK_STEP,0);break;case"PageUp":t=Math.min(I+f.SEEK_LARGE_STEP,D);break;case"PageDown":t=Math.max(I-f.SEEK_LARGE_STEP,0);break;case"Home":t=0;break;case"End":t=D;break;default:return}e.preventDefault(),W(t)},[I,D,W]),eR=(0,d.useCallback)(()=>{A===h.PlaybackState.Playing?H():(A===h.PlaybackState.Paused||A===h.PlaybackState.Ended)&&V()},[A,H,V]),eA=es.segments;if(!ex||!eb||ev||!ey)return null;let eL=A===h.PlaybackState.Loading,eB=A===h.PlaybackState.Playing,eI=A===h.PlaybackState.Error||K,ez=T?O:I,eD=(0,k.findActiveSegmentIndex)(ez,eA),eF=eD>=0?eA[eD]:null,eQ=ew>0?Math.min(100,Math.max(0,ez/ew*100)):0,e$=eI?a("retry"):eB?a("pause"):a("play"),eq=(ed?.display??["Space","K"]).map(e=>"Space"===e?a("keySpace"):e).join(" / ");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{}),(0,t.jsx)(eu,{}),(0,t.jsx)("div",{className:"sr-only","aria-live":"polite","aria-atomic":"true",children:ej}),(0,t.jsxs)("div",{ref:eS,role:"region","aria-label":a("player"),className:(0,r.default)("audio-player-bar fixed bottom-0 inset-x-0 z-50","border-t border-white/10","bg-[#161616]/95 supports-[backdrop-filter]:bg-[#161616]/80 backdrop-blur-xl","shadow-[0_-8px_24px_-12px_rgba(0,0,0,0.6)]"),suppressHydrationWarning:!0,children:[(0,t.jsx)("div",{"aria-hidden":!0,
2className:"pointer-events-none absolute inset-x-0 -top-px h-px bg-gradient-to-r from-transparent via-white/15 to-transparent"}),(0,t.jsx)("div",{className:"max-w-full xl:container mx-auto px-3 sm:px-4",children:(0,t.jsxs)("div",{className:(0,r.default)("flex flex-wrap items-center gap-x-3 gap-y-2 py-2","md:flex-nowrap md:gap-x-4 md:py-0 md:h-[80px]"),children:[(0,t.jsxs)("div",{className:(0,r.default)("order-1 flex items-center gap-1.5 sm:gap-2 min-w-0","flex-1 md:flex-none md:min-w-0"),children:[(0,t.jsx)("button",{onClick:Y,disabled:!J,className:(0,r.default)("hidden sm:flex w-9 h-9 items-center justify-center flex-shrink-0 rounded-full","text-white/70 hover:text-white hover:bg-white/10","transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50","disabled:opacity-30 disabled:hover:bg-transparent disabled:hover:text-white/70 disabled:cursor-not-allowed"),"aria-label":a("previous"),title:a("withShortcut",{label:a("previous"),key:eh?.display.join(" / ")??"Shift+P"}),"aria-keyshortcuts":eh?.ariaKeyshortcuts,children:(0,t.jsx)(o,{className:"w-5 h-5 fill-current"})}),(0,t.jsx)("button",{onClick:eI?U:eR,className:(0,r.default)("w-11 h-11 flex items-center justify-center rounded-full flex-shrink-0","bg-white text-black","transition-transform duration-150","hover:scale-105 active:scale-95","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50 focus-visible:ring-offset-2 focus-visible:ring-offset-[#161616]","shadow-[0_2px_12px_-2px_rgba(255,255,255,0.25)]",eL&&!eI&&"pause-shimmer cursor-wait"),"aria-label":e$,title:a("withShortcut",{label:e$,key:eq}),"aria-keyshortcuts":ed?.ariaKeyshortcuts,children:eI?(0,t.jsx)(s,{className:"w-5 h-5"}):eL||eB?(0,t.jsx)(n.Pause,{className:"w-5 h-5 fill-current"}):(0,t.jsx)(i.Play,{className:"w-5 h-5 fill-current ml-0.5"})}),(0,t.jsx)("button",{onClick:Z,disabled:!ee,className:(0,r.default)("hidden sm:flex w-9 h-9 items-center justify-center flex-shrink-0 rounded-full","text-white/70 hover:text-white hover:bg-white/10","transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50","disabled:opacity-30 disabled:hover:bg-transparent disabled:hover:text-white/70 disabled:cursor-not-allowed"),"aria-label":a("next"),title:a("withShortcut",{label:a("next"),key:ef?.display.join(" / ")??"Shift+N"}),"aria-keyshortcuts":ef?.ariaKeyshortcuts,children:(0,t.jsx)(l,{className:"w-5 h-5 fill-current"})}),(0,t.jsx)(L,{className:"hidden lg:flex flex-shrink-0"}),(0,t.jsx)($,{track:eb,tTrack:c,isCurrentTrack:!!B,releaseTitle:Q,releaseArtist:q}),(0,t.jsx)(G,{className:"flex-shrink-0"})]}),(0,t.jsxs)("div",{className:(0,r.default)("order-3 md:order-2 flex items-center gap-2 min-w-0","basis-full md:basis-auto md:flex-1"),children:[(0,t.jsx)("span",{className:"text-[11px] text-white/60 tabular-nums w-10 text-right select-none flex-shrink-0",children:(0,w.formatTime)(ez)}),(0,t.jsxs)("div",{className:"relative flex-1 min-w-0",children:[eF&&(0,t.jsx)(z,{segment:eF}),(0,t.jsxs)("div",{ref:p,className:(0,r.default)("audio-player-bar__progress-container relative h-1 cursor-pointer group rounded-full overflow-visible touch-none","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50","focus-visible:ring-offset-2 focus-visible:ring-offset-[#161616]"),onPointerDown:eN,onPointerMove:eP,onPointerUp:eT,onPointerCancel:eT,onPointerLeave:eE,onKeyDown:eO,role:"slider","aria-label":a("progressBar"),"aria-orientation":"horizontal","aria-valuemin":0,"aria-valuemax":ew,"aria-valuenow":Math.min(Math.round(ez),ew),"aria-valuetext":a("progressValueText",{current:(0,w.formatTime)(ez),total:(0,w.formatTime)(ew)}),tabIndex:0,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-white/20 rounded-full overflow-hidden"}),(0,t.jsx)("div",{className:"audio-player-bar__progress absolute top-0 left-0 h-full bg-[#1ed760] rounded-full overflow-hidden",style:{width:`${eQ}%`}}),(0,t.jsx)("div",{className:(0,r.default)("absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full shadow-lg pointer-events-none transition-opacity duration-150",T?"opacity-100":"opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100"),style:{left:`calc(${eQ}% - 6px)`}}),null!==_&&(0,t.jsx)("div",{className:"absolute -top-7 -translate-x-1/2 px-2 py-1 bg-gray-900 text-white text-xs rounded shadow-lg pointer-events-none whitespace-nowrap",style:{left:`${N}px`},children:(0,w.formatTime)(_)}),(0,t.jsx)("div",{className:"absolute -top-2 -bottom-2 left-0 right-0"})]})]}),(0,t.jsx)("span",{className:"text-[11px] text-white/60 tabular-nums w-10 select-none flex-shrink-0",children:(0,w.formatTime)(ew)})]}),(0,t.jsxs)("div",{className:(0,r.default)("order-2 md:order-3 flex items-center gap-0.5 sm:gap-1 flex-shrink-0","md:flex-none md:justify-end"),children:[(0,t.jsx)(X,{}),(0,t.jsx)(M,{}),(0,t.jsx)(el,{})]})]})})]})]})}],645779)},770635,e=>{"use strict";e.i(247167);var t=e.i(843476),r=e.i(912598);e.i(770703);var n=e.i(271645);e.i(21749);var i=e.i(660555),a=e.i(100637),s=e.i(206142),o=e.i(216089),l=e.i(344831),u=e.i(562733),c=e.i(844241),d=e.i(958576),h=e.i(171373);async function f(e,t){if((0,h.peekTracklist)(e)?.v===t)return;let r=await (0,c.readPersistedTracklist)(e);r?.v===t?(0,h.seedTracklist)(e,r.text,"cross-tab"):(0,u.getTracklistQueryClient)().invalidateQueries({queryKey:(0,d.tracklistQueryKey)(e),refetchType:"none"})}let p=null,m=()=>null;e.s(["default",0,function({children:e}
2){let[d]=(0,n.useState)(()=>{let e,t,r;return p||(e="u">typeof BroadcastChannel?new BroadcastChannel("np-tracklist"):null,t=(0,h.onTracklistSeeded)((t,r,n)=>{"cross-tab"!==n&&"migration"!==n&&"snapshot"!==n&&(0,c.writePersistedTracklist)(t,r.text,r.v).then(()=>{let n={type:"tracklist-seeded",releaseId:t,v:r.v};try{e?.postMessage(n)}catch{}})}),r=e=>{var t;"object"==typeof(t=e.data)&&null!==t&&"tracklist-seeded"===t.type&&"string"==typeof t.releaseId&&"string"==typeof t.v&&f(e.data.releaseId,e.data.v)},e?.addEventListener("message",r),p=()=>{t(),e?.removeEventListener("message",r),e?.close()}),(0,u.getTracklistQueryClient)()});return(0,t.jsxs)(r.QueryClientProvider,{client:d,children:[(0,t.jsx)(l.VolumeProvider,{children:(0,t.jsx)(i.PanelProvider,{children:(0,t.jsx)(s.PlayerModalProvider,{children:(0,t.jsx)(o.QueueProvider,{children:(0,t.jsx)(a.PlaybackProvider,{children:e})})})})}),(0,t.jsx)(m,{buttonPosition:"bottom-left"})]})}],770635)},871946,e=>{"use strict";var t=e.i(843476),r=e.i(761946);e.s(["default",0,function({initialSession:e,children:n}){return(0,t.jsx)(r.AuthProvider,{initialSession:e,children:n})}])},204554,e=>{"use strict";var t=e.i(843476),r=e.i(176124);e.s(["default",0,function({children:e}){return(0,t.jsx)(r.DeploySkewProvider,{children:e})}])},129827,e=>{"use strict";var t=e.i(419049),r=e.i(271645);let n=[{pattern:/^\/release\/[^/]+/,route:"/release/:id"},{pattern:/^\/podcast\/[^/]+/,route:"/podcast/:id"},{pattern:/^\/changelog\/[^/]+/,route:"/changelog/:version"},{pattern:/^\/complete\/[^/]+/,route:"/complete/:id"},{pattern:/^\/in-app\/.+/,route:"/in-app/*"}];var i=e.i(311996);e.s(["AnalyticsRouteTracker",0,function(){let e=(0,t.useOpenPanel)(),a=(0,i.usePathname)();return(0,r.useEffect)(()=>{e.setGlobalProperties({route:function(e){if(!e)return"/";let t=e.split(/[?#]/)[0];if(t.length>1&&(t=t.replace(/\/+$/,"")),!t)return"/";for(let{pattern:e,route:r}of n)if(e.test(t))return r;return t}(a)})},[e,a]),null}],129827)},3303,(e,t,r)=>{t.exports=e.r(479520)},406126,e=>{"use strict";e.i(247167);var t=e.i(843476),r=e.i(419049),n=e.i(948148),i=e.i(3303),a=e.i(618566),s=e.i(271645),o=e.i(779805),l=e.i(861745),u=e.i(95187);let c=(0,u.createServerReference)("005f149063f7ed277994bcab53d348c5af5fc2a418",u.callServer,void 0,u.findSourceMapURL,"getChatwootIdentity");var d=e.i(472530);e.i(761946);var h=e.i(700713),f=e.i(176124);e.i(21749);var p=e.i(100637),m=e.i(660555),y=e.i(713018);e.s(["default",0,function({locale:e,appVersion:u,analyticsConsent:v}){let g="https://support.neuropunk.app",b="2jpCNYr7zfjSpDfUyjbkTAoM",x=(0,n.useTranslations)("ChatwootWidget"),[w,k]=(0,s.useState)(!1),[j,S]=(0,s.useState)(!1),[_,C]=(0,s.useState)(!1);(0,s.useEffect)(()=>{new URLSearchParams(window.location.search).has("fromApp")&&S(!0),"granted"===(0,o.readConsentClient)()&&C(!0)},[]);let M=(0,r.useOpenPanel)(),N=(0,a.usePathname)(),P=(0,s.useRef)(N);return(P.current=N,!function(){let{isVisible:e}=(0,p.usePlaybackContext)();(0,s.useEffect)(()=>{if("u"<typeof document)return;let t=document.documentElement;return t.dataset.playerVisible=e?"true":"false",()=>{delete t.dataset.playerVisible}},[e])}(),!function(){let{isQueuePanelOpen:e}=(0,m.usePanelContext)();(0,s.useEffect)(()=>{e&&(0,y.closeSupportChat)()},[e])}(),!function({isReady:e,appVersion:t}){let{user:r}=(0,h.useAuthContext)(),n=(0,l.useLocale)(),{reportError:i}=(0,f.useDeploySkew)(),a=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!e)return;let s=window.$chatwoot;if(!s)return;if(!r){if(null!==a.current){try{s.reset()}catch(e){d.default.error("Chatwoot reset failed during sign-out",e instanceof Error?e:Error(String(e)))}a.current=null}return}if(a.current===r.id)return;let o=!1;return(async()=>{try{let e=await c();if(o)return;let i=window.$chatwoot;if(!i)return;if(a.current&&a.current!==e.identifier)try{i.reset()}catch(e){d.default.error("Chatwoot reset failed during account swap",e instanceof Error?e:Error(String(e)))}i.setUser(e.identifier,{identifier_hash:e.identifierHash,email:e.email??void 0,name:e.name??void 0,avatar_url:r.image??void 0}),i.setCustomAttributes({locale:n,app_version:t??"unknown",region:e.region}),a.current=e.identifier}catch(e){if(o||i(e))return;d.default.captureError(e instanceof Error?e:Error(String(e)),{hook:"useChatwootIdentity",uid:r.id})}})(),()=>{o=!0}},[e,r,n,t,i])}({isReady:w,appVersion:u}),(0,s.useEffect)(()=>{window.chatwootSettings={...window.chatwootSettings,locale:e,position:"right",type:"standard",darkMode:"light",hideMessageBubble:!1,showPopoutButton:!1,enableEndConversation:!0,launcherTitle:x("launcherTitle"),welcomeTitle:x("welcomeTitle"),welcomeDescription:x("welcomeDescription"),availableMessage:x("availableMessage"),unavailableMessage:x("unavailableMessage")}},[g,b,e,x]),(0,s.useEffect)(()=>{let t=()=>k(!0),r=()=>{M?.track("support_chat_opened",{route:P.current??"unknown",locale:e})},n=t=>{let r=t.detail;r?.type==="outgoing"&&M?.track("support_chat_message_sent",{route:P.current??"unknown",locale:e})},i=t=>{let r=t.detail;M?.track("support_unread_changed",{route:P.current??"unknown",locale:e,unread_count:r?.unreadMessageCount??0})};return window.addEventListener("chatwoot:ready",t),window.addEventListener("chatwoot:opened",r),window.addEventListener("chatwoot:on-message",n),window.addEventListener("chatwoot:on-unread-message-count-changed",i),window.$chatwoot?.hasLoaded&&k(!0),()=>{window.removeEventListener("chatwoot:ready",t),window.removeEventListener("chatwoot:opened",r),window.removeEventListener("chatwoot:on-message",n),window.removeEventListener("chatwoot:on-unread-message-count-changed",i)}},[M,e]),g&&b&&(v||j||_))?(0,t.jsx)(i.default,{id:"chatwoot-widget",src:`${g}/packs/js/sdk.js`,strategy:"lazyOnload",onLoad:()=>
2{if(window.chatwootSDK)try{window.chatwootSDK.run({websiteToken:b,baseUrl:g})}catch{}}}):null}],406126)},516015,(e,t,r)=>{},898547,(e,t,r)=>{var n=e.i(247167);e.r(516015);var i=e.r(271645),a=i&&"object"==typeof i&&"default"in i?i:{default:i},s=void 0!==n.default&&n.default.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,a=void 0===i?s:i;u(o(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(o(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var r="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"u">
2typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(o(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),n&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=a,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=h(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);function y(){return new p}function v(){return i.useContext(m)}m.displayName="StyleSheetContext";var g=a.default.useInsertionEffect||a.default.useLayoutEffect,b="u">typeof window?y():void 0;function x(e){var t=b||v();return t&&("u"<typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}x.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},r.StyleRegistry=function(e){var t=e.registry,r=e.children,n=i.useContext(m),s=i.useState(function(){return n||t||y()})[0];return a.default.createElement(m.Provider,{value:s},r)},r.createStyleRegistry=y,r.style=x,r.useStyleRegistry=v},437902,(e,t,r)=>{t.exports=e.r(898547).style},274921,e=>{"use strict";var t,r=e.i(843476),n=e.i(770703),i=e.i(618566),a=e.i(271645);e.i(247167);var s=e.i(207670),o=e.i(861745),l=e.i(948148),u=e.i(657688),c=e.i(277462),d=e.i(848753),h=e.i(708681),f=e.i(311996),p=e.i(298582),m=e.i(327075),y=e.i(575364),v=e.i(752921);let g=["ru","global"];function b(){let e=(0,v.currentRegion)(),t=(0,l.useTranslations)("RegionChoice"),n=(0,l.useTranslations)("RegionSwitcher"),a=(0,i.usePathname)(),o=(0,i.useSearchParams)();function u(e){return(0,y.regionSwitchUrl)(e,a,o.toString())}return(0,r.jsxs)("div",{className:"inline-flex items-center gap-2.5",children:[(0,r.jsxs)("span",{className:"text-[11px] font-medium text-gray-600",children:[n("label"),":"]}),(0,r.jsx)("div",{className:"inline-flex items-center gap-0.5 rounded-full bg-white/[0.02] p-0.5 ring-1 ring-white/[0.06]",role:"group","aria-label":n("label"),children:g.map(i=>{let a=i===e,o=t(i),l="group inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-medium transition-all duration-200",c=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.RegionMark,{region:i,className:(0,s.default)("h-3.5 w-3.5 grayscale-[0.5] transition duration-200",a?"opacity-80":"opacity-45 group-hover:opacity-70"),globeClassName:"h-2.5 w-2.5"}),(0,r.jsx)("span",{children:o})]});return a?(0,r.jsx)("span",{className:(0,s.default)(l,"bg-white/[0.05] text-gray-300 pointer-events-none"),"aria-current":"true",children:c},i):(0,r.jsx)("a",{href:u(i),rel:"nofollow",onClick:e=>{e.preventDefault(),(0,v.writeRegionPreference)(i),window.location.assign(u(i))},className:(0,s.default)(l,"text-gray-500 hover:text-gray-300 hover:bg-white/[0.03]","focus:outline-none focus-visible:ring-2 focus-visible:ring-white/20"),"aria-label":n("switchTo",{region:o}),children:c},i)})})]})}var x=e.i(475254);let w=(0,x.default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);var k=e.i(842321),j=e.i(997116);function S(){let e=(0,l.useTranslations)("LocaleSwitcher"),t=(0,o.useLocale)(),n=(0,f.useRouter)(),u=(0,k.useAnalytics)(),[c,d]=(0,a.useTransition)(),h=(0,f.usePathname)(),p=(0,i.useParams)(),m=(0,i.useSearchParams)(),y=(0,a.useMemo)(()=>{let e=m.toString();return e?`${h}?${e}`:h},[h,m]),[v,g]=(0,a.useState)(null);(0,a.useEffect)(()=>{v&&v===t&&g(null)},[t,v]);let b=v||t;return(0,r.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,r.jsx)(w,{className:"w-4 h-4 text-gray-400","aria-hidden":"true"}),(0,r.jsx)("div",{className:"inline-flex gap-1",role:"group","aria-label":e("label"),children:j.routing.locales.map(t=>{let i=t===b;return(0,r.jsx)(f.Link,{onClick:e=>{e.preventDefault(),e.stopPropagation(),t===b||c||(u.trackBrowseLocaleSwitched(b,t),g(t),d(()=>{let e=m.toString(),r=e?`${h}?${e}`:h;n.replace({pathname:r,params:p},{locale:t}),n.refresh()}))},href:y,locale:t,"data-locale-switcher":"true",className:(0,s.default)("px-2 py-1 text-sm font-medium rounded transition-all","hover:text-white focus:outline-none focus:ring-2 focus:ring-white/20",i?"text-white bg-white/10 pointer-events-none":"text-gray-400 hover:bg-white/5",c&&"opacity-50 cursor-not-allowed"),"aria-disabled":i||c,"aria-current":i?"true":void 0,"aria-label":e("locale",{locale:t}),prefetch:!1,children:t.toUpperCase()},t)})})]})}let _=e=>(0,r.jsx)("div",{className:(0,s.default)("pt-5 socials gap-2","grid grid-cols-3 lg:max-w-[60%]"),children:e.map((e,t)=>{let n=e.map(e=>(0,r.jsx)("li",{className:e.class,children:(0,r.jsx)(f.Link,{href:e.href,rel:"noopener",target:"_blank",title:e.title,children:(0,r.jsx)("span",{children:e.text})})},e.href));return(0,r.jsx)("ul",{className:"flex flex-col gap-2",children:n},`list-${t}`)})});function C(){let e=(0,l.useTranslations)("Footer"),t=new Date,n=(0,a.useMemo)(()=>({youtube:{href:d.socialLinks.youtube,class:"yt",title:e("socials.youtube.title"),text:"YouTube"},telegram:{href:d.socialLinks.telegram,class:"tg",title:e("socials.telegram.title"),text:"Telegram"},vkontakte1:{href:d.socialLinks.vk,class:"vk-1",title:e("socials.vk.title"),text:"VK: @neuropunkrecords"},soundcloud:{href:d.socialLinks.soundcloud,class:"sc",title:e("socials.soundcloud.title"),text:"SoundCloud"},academy_dj:{href:d.socialLinks.academy_dj,class:"academy_dj",title:e("socials.academy_dj.title"),text:e("socials.academy_dj.text")},vkontakte2:{href:d.socialLinks.vk_academy,class:"vk-2",title:e("socials.vk_academy.title"),text:"VK: @neuropunkacademy"},shop:{href:d.socialLinks.shop,class:"shop",title:e("socials.shop.title"),text:e("socials.shop.text")},gear:{href:d.socialLinks.gear,class:"gear",title:"Neuropunk Gear",text:"GEAR"},discogs:{href:d.socialLinks.discogs,class:"disc",title:e("socials.discogs.title"),text:"Discogs"},beatport:{href:d.socialLinks.beatport,class:"bp",title:e("socials.beatport.title"),text:"Beatport"}
2,juno_download:{href:d.socialLinks.juno_download,class:"jd",title:e("socials.juno_download.title"),text:"Juno Download"}}),[e]),i=(0,a.useMemo)(()=>[[n.youtube,n.soundcloud,n.discogs,n.academy_dj],[n.juno_download,n.telegram,n.shop,n.beatport],[n.vkontakte1,n.gear,n.vkontakte2]],[n]),m=(0,a.useMemo)(()=>[[n.youtube,n.soundcloud,n.telegram,n.beatport,n.shop,n.gear],[n.academy_dj,n.vkontakte1,n.vkontakte2,n.discogs,n.juno_download]],[n]),y=(0,o.useLocale)()===h.Locale.RU?"/img/neuropunk-logo-ru.png":"/img/neuropunk-logo.png";return(0,r.jsx)(p.MediaContextProvider,{children:(0,r.jsx)("footer",{id:"footer",children:(0,r.jsx)("div",{className:"mx-auto max-w-7xl pt-12 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"border-t px-8 sm:px-0 border-gray-700 py-8 sm:py-6 sm:pt-4",children:[(0,r.jsxs)("div",{className:(0,s.default)("flex lg:items-center lg:justify-between","flex-col-reverse lg:flex-row","sm:pb-1"),children:[(0,r.jsxs)("div",{className:(0,s.default)("flex flex-col gap-y-1","sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-6 sm:gap-y-2","lg:order-2 lg:justify-end"),children:[(0,r.jsx)(f.Link,{href:"/support",prefetch:!1,className:"text-gray-300 hover:text-white sm:whitespace-nowrap",children:e("support")}),(0,r.jsx)(f.Link,{href:c.policyLink,prefetch:!1,className:"text-gray-300 hover:text-white sm:whitespace-nowrap",target:"_blank",rel:"noopener",children:e("privacyPolicy")}),(0,r.jsx)(f.Link,{href:c.termsOfServiceLink,prefetch:!1,className:"text-gray-300 hover:text-white sm:whitespace-nowrap",target:"_blank",rel:"noopener",children:e("termsOfService")}),(0,r.jsx)(f.Link,{href:c.consentLink,prefetch:!1,className:"text-gray-300 hover:text-white sm:whitespace-nowrap",target:"_blank",rel:"noopener",children:e("consent")}),(0,r.jsx)("div",{className:"pt-1 sm:pt-0",children:(0,r.jsx)(S,{})})]}),(0,r.jsx)("div",{className:(0,s.default)("text-base text-gray-400 shrink-0","lg:order-1 mb-4 lg:mb-0"),children:(0,r.jsx)(f.Link,{href:"/",className:"opacity-75 hover:opacity-100",children:(0,r.jsx)(u.default,{src:y,width:"182",height:"33",alt:e("logoAlt"),unoptimized:!0,loading:"lazy"})})})]}),(0,r.jsx)(p.Media,{lessThan:"md",children:_(m)}),(0,r.jsx)(p.Media,{greaterThanOrEqual:"md",children:_(i)}),(0,r.jsxs)("div",{className:"copyright pt-4 opacity-30 flex items-end justify-between gap-2",children:[(0,r.jsxs)("span",{children:["© ",t.getFullYear()," ",(0,r.jsx)(f.Link,{href:"https://neuropunk.ru",target:"_blank",children:"Neuropunk"})]}),(0,r.jsxs)("span",{className:"version text-[11px]",title:e("versionTitle"),children:["v","2026.9.25"]})]}),(0,r.jsx)("div",{className:"mt-5 border-t border-gray-700/50 pt-4",children:(0,r.jsx)(b,{})})]})})})})}var M=e.i(972520),N=e.i(248256),P=e.i(37727),T=e.i(779805);let E=["true","1"].includes(""),O="global-version-notice-dismissed";function R(){let e=(0,l.useTranslations)("GlobalVersionNotice"),t=(0,i.usePathname)(),n=(0,i.useSearchParams)(),[s,o]=(0,a.useState)(!0);(0,a.useEffect)(()=>{let e="true"===localStorage.getItem(O),t=null===(0,T.readConsentClient)();o(e||t)},[]);let u=(0,a.useMemo)(()=>{let e="https://ru.neuropunk.app".replace(/\/+$/,""),r=n.toString();return`${e}${t}${r?`?${r}`:""}`},[t,n]),c=(0,a.useCallback)(e=>{if("u"<typeof document)return;let t=document.documentElement;if(!e)return void t.style.setProperty("--np-global-version-notice-height","0px");let r=e=>{t.style.setProperty("--np-global-version-notice-height",`${e}px`)};r(e.getBoundingClientRect().height);let n=new ResizeObserver(e=>{for(let t of e)r(t.contentRect.height)});return n.observe(e),()=>{n.disconnect(),t.style.setProperty("--np-global-version-notice-height","0px")}},[]);return E&&u&&!s?(0,r.jsx)("div",{ref:c,className:"pointer-events-none fixed inset-x-0 z-40 px-2 pb-4 sm:px-4 sm:pb-5",style:{bottom:"calc(var(--np-player-bar-height, 0px) + var(--np-release-app-btn-height, 0px))"},children:(0,r.jsxs)("div",{className:"pointer-events-auto mx-auto flex max-w-3xl items-start gap-2.5 rounded-xl border border-white/10 bg-zinc-900/95 p-3 shadow-2xl shadow-black/50 backdrop-blur sm:items-center sm:gap-4 sm:p-4",children:[(0,r.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-white/5 text-gray-300 sm:size-10",children:(0,r.jsx)(N.Globe,{className:"size-4 sm:size-5"})}),(0,r.jsxs)("div",{className:"min-w-0 flex-grow text-xs sm:text-sm",children:[(0,r.jsx)("p",{className:"font-semibold text-white",children:e("title")}),(0,r.jsx)("p",{className:"mt-0.5 text-gray-400",children:e("description")}),(0,r.jsxs)("a",{href:u,rel:"noopener",className:"mt-1.5 inline-block font-medium text-gray-100 hover:text-white sm:mt-2",children:[e("linkText"),(0,r.jsx)(M.ArrowRight,{className:"ml-1 inline size-3.5 align-text-bottom sm:size-4"})]})]}),(0,r.jsx)("button",{type:"button",onClick:()=>{localStorage.setItem(O,"true"),o(!0)},"aria-label":e("dismiss"),className:"-mr-0.5 -mt-0.5 shrink-0 rounded-lg p-1.5 text-gray-500 transition-colors hover:bg-white/5 hover:text-white",children:(0,r.jsx)(P.X,{className:"size-4"})})]})}):null}var A=e.i(886148),L=e.i(437902),B=e.i(522269);function I({animated:e=!0,withLink:t=!0,width:n=180,height:i=33,priority:a=!1,className:c=""}){let d=(0,l.useTranslations)("NeuropunkLogo"),p=(0,o.useLocale)()===h.Locale.RU?"/img/neuropunk-logo-ru.png":"/img/neuropunk-logo.png",m=(0,r.jsxs)("div",{className:`jsx-9c4a580772eae92a relative inline-block group ${c}`,children:[(0,r.jsxs)("div",{"aria-hidden":"true",className:"jsx-9c4a580772eae92a inset-0 z-20 pointer-events-none overflow-hidden rounded-sm",children:[(0,r.jsx)(u.default,{src:p,alt:d("alt"),width:n,height:i,priority:a,unoptimized:!0,className:"relative z-10",style:{mixBlendMode:"darken"}}),(0,r.jsx)(B.default,{when:e,children:(0,r.jsx)("div",{className:"jsx-9c4a580772eae92a shimmer-wrapper",children:(0,r.jsx)("div",{className:"jsx-9c4a580772eae92a shimmer-gradient"})})})]}),(0,r.jsx)(L.default,{id:"9c4a580772eae92a",children:".shimmer-wrapper.jsx-9c4a580772eae92a{position:absolute;inset:0;overflow:hidden}.shimmer-gradient.jsx-9c4a580772eae92a{will-change:transform;background:linear-gradient(to bottom right,#0000 0% 35%,#1e29391a 40%,#1e293966 45%,#1e2939cc 48%,#1e2939 50%,#1e2939cc 52%,#1e293966 55%,#1e29391a 60%,#0000 65% 100%);width:300%;height:300%;animation:2.5s cubic-bezier(.4,0,.2,1) infinite logo-shimmer;position:absolute;top:-100%;left:-100%}@keyframes logo-shimmer{0%{transform:translate(-100%,-100%)rotate(25deg)}to{transform:translate(100%,100%)rotate(25deg)}}@media (prefers-reduced-motion:reduce){.shimmer-gradient.jsx-9c4a580772eae92a{animation:none}}"})]});return t?(0,r.jsx)(f.Link,{href:"/",className:(0,s.default)("opacity-95","inline-flex"),"aria-label":d("homeLink"),children:m}):m}var z=e.i(204997),D=e.i(555436);let F=(0,n.default)(()=>e.A(421390).then(e=>e.ProfileMenu),{loadableGenerated:{modules:[747903]}});function Q({user:e,isAccountPage:t,isReleasesPage:n,onSignOut:i,onSubscriptionClick:a}){let o=(0,f.useRouter)(),u=(0,l.useTranslations)("NavigationBar"),c=(0,r.jsxs)(f.Link,{href:"/account",scroll:!1,prefetch:!1,className:(0,s.default)("bg-gray-900 hover:bg-gray-700 text-white","flex items-center gap-2 px-3 py-1 rounded-md text-base font-medium"),onClick:e=>{e.preventDefault(),o.push("#sign-in",{scroll:!1})},children:[(0,r.jsx)(z.LogIn,{className:"w-4 h-4"}),u("signIn")]});return(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsxs)("div",{className:"ml-4 flex items-center gap-4",children:[(0,r.jsx)(B.default,{when:!n,children:(0,r.jsx)(f.Link,{href:"/releases",className:(0,s.default)("flex items-center justify-center w-8 h-8 rounded","text-gray-300 hover:text-white hover:bg-gray-700"),title:u("searchReleases"),children:(0,r.jsx)(D.Search,{className:"w-5 h-5"})})}),(0,r.jsx)(f.Link,{href:"/#subscription",scroll:!1,className:(0,s.default)("flex items-center text-xs h-8 font-semibold px-4 roun
2ded","btn-primary text-white"),onClick:a,children:u("subscription")}),(0,r.jsx)(B.default,{when:null!==e,fallback:t?null:c,children:(0,r.jsx)(F,{user:e,onSignOut:i})})]})})}function $({menuItems:e}){return(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)("div",{className:"ml-8 flex items-baseline space-x-4",children:e.filter(e=>!["account","roadmap","faq"].includes(e.id)).map(e=>(0,r.jsx)(f.Link,{href:e.href,className:(0,s.default)(e.current?"bg-gray-900 text-white":"text-gray-100 hover:bg-gray-700 hover:text-white","uppercase px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200"),"aria-current":e.current?"page":void 0,...e.external&&{rel:"noopener",target:"_blank"},children:e.title},e.title))})})}let q=(0,x.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);function K({isOpen:e,isReleasesPage:t,navCloseRef:n}){let i=(0,l.useTranslations)("NavigationBar");return(0,r.jsxs)("div",{className:(0,s.default)("flex md:hidden items-center justify-end relative","min-w-[70px] w-[70px]","right-[-10px]"),children:[(0,r.jsx)(B.default,{when:!t,children:(0,r.jsx)(f.Link,{href:"/releases",className:(0,s.default)("flex items-center justify-center h-10","text-gray-300 rounded-md","hover:text-white hover:bg-gray-700","touch:active:text-white touch:active:bg-gray-700","pl-2.5 pr-2.5"),title:i("searchReleases"),children:(0,r.jsx)(D.Search,{className:"w-5 h-5"})})}),(0,r.jsxs)(A.DisclosureButton,{ref:n,className:(0,s.default)("bg-gray-800 inline-flex items-center justify-center text-gray-400","hover:text-white hover:bg-gray-700 cursor-pointer rounded-md","pl-2 pr-2 h-10"),children:[(0,r.jsx)("span",{className:"sr-only",children:i("openMainMenu")}),(0,r.jsx)(B.default,{when:e,fallback:(0,r.jsx)(q,{className:"block h-6 w-6","aria-hidden":"true"}),children:(0,r.jsx)(P.X,{className:"block h-6 w-6","aria-hidden":"true"})})]})]})}var U=e.i(713018);function H({onClick:e}){let t=(0,l.useTranslations)("NavigationBar");return(0,r.jsx)("div",{className:(0,s.default)("flex md:hidden items-center","min-w-[70px] w-[70px]"),children:(0,r.jsx)(f.Link,{href:"/#subscription",scroll:!1,className:(0,s.default)("flex items-center justify-center text-[10px] h-7 font-semibold w-full rounded","btn-primary text-white text-center mr-[10px]"),onClick:t=>{(0,U.closeSupportChat)(),e(t)},children:t("subscription")})})}function G({className:e}){let t=(0,v.currentRegion)(),n=(0,l.useTranslations)("RegionChoice"),i=(0,l.useTranslations)("RegionSwitcher");return(0,r.jsx)("span",{className:(0,s.default)("self-start text-[10px] font-semibold uppercase leading-none tracking-wide","text-gray-400 select-none",e),title:i("onSite",{region:n(t)}),children:"ru"===t?"RU":"GLOBAL"})}e.i(761946);var V=e.i(700713),W=e.i(227990);let X=(e,t)=>{document.addEventListener(e,t)},Y=(e,t)=>{document.removeEventListener(e,t)},Z=(e,t)=>{let r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)};var J=((t={}).CloseMobileMenu="closeMobileMenu",t.SearchInput="searchInput",t.NavigationStart="navigationStart",t.ModalNavigationComplete="modalNavigationComplete",t),ee=e.i(561186),et=e.i(188105),er=e.i(23737),er=er,en=e.i(419851),ei=e.i(73526),ea=e.i(95740);let es=(0,a.forwardRef)(({className:e,size:t=24,...n},i)=>(0,r.jsx)("svg",{ref:i,xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"132.45 207.9 329.73 327.03",fill:"currentColor",className:e,"aria-hidden":"true",...n,children:(0,r.jsx)("path",{transform:"matrix(1,0,0,-1,0,841.8898)",d:"M462.1643 514.2606C457.5773 441.8467 438.0021 381.7996 399.2142 320.4941 328.862 302.4672 265.8093 302.4771 195.4423 320.4244 156.5949 381.7301 137.1487 441.8334 132.4723 514.2458 178.7964 570.181 229.8433 607.144 297.3141 633.9691 364.8611 607.1936 415.8369 570.1164 462.1643 514.2606ZM418.6653 436.6171 372.7352 482.5604H336.9796L275.891 421.4534 254.2241 443.1217C277.6 466.471 300.9489 489.8449 324.3115 513.2075H385.4035L426.6967 471.9141C428.5582 482.557 429.9341 493.278 430.8069 504.0266 394.7465 545.9873 348.3975 579.7542 297.3291 601.0648 246.274 579.721 199.8836 546.0321 163.8414 504.0383 164.8483 491.7379 166.5074 479.482 168.7927 467.3404L215.2162 513.7639 236.8811 492.1021C229.0221 484.2329 221.1579 476.3687 213.2952 468.5046L238.7013 443.1186 217.0327 421.4503 216.0706 422.4124 191.6351 446.8493 177.1917 432.4045C185.9783 402.501 198.635 373.7251 214.8253 347.1551 268.6096 334.4289 326.0188 334.3363 379.8096 347.0888 396.7302 374.8992 409.8291 405.1738 418.6653 436.6171ZM297.8804 540.7645 317.1129 521.532 295.4446 499.862 285.2107 510.1174H254.8933L244.6611 499.862 222.9911 521.532 242.2233 540.7645ZM246.4642 435.3602 311.3186 370.506 300.0881 359.2718H279.2112L224.7942 413.6902Z"})}));es.displayName="GearIcon";let eo=(0,a.forwardRef)(({className:e,size:t=24,...n},i)=>(0,r.jsx)("svg",{ref:i,xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 640 512",fill:"
2currentColor",className:e,"aria-hidden":"true",...n,children:(0,r.jsx)("path",{d:"M211.8 0c7.8 0 14.3 5.7 16.7 13.2C240.8 51.9 277.1 80 320 80s79.2-28.1 91.5-66.8C413.9 5.7 420.4 0 428.2 0l12.6 0c22.5 0 44.2 7.9 61.5 22.3L628.5 127.4c6.6 5.5 10.7 13.5 11.4 22.1s-2.1 17.1-7.8 23.6l-56 64c-11.4 13.1-31.2 14.6-44.6 3.5L480 197.7 480 448c0 35.3-28.7 64-64 64l-192 0c-35.3 0-64-28.7-64-64l0-250.3-51.5 42.9c-13.3 11.1-33.1 9.6-44.6-3.5l-56-64c-5.7-6.5-8.5-15-7.8-23.6s4.8-16.6 11.4-22.1L137.7 22.3C155 7.9 176.7 0 199.2 0l12.6 0z"})}));eo.displayName="ShopIcon";var el=e.i(726781);let eu=(0,n.default)(()=>e.A(62574),{loadableGenerated:{modules:[194856]},ssr:!1});function ec({open:e,...t}){return(0,et.useLatch)(e)?(0,r.jsx)(eu,{...t}):null}function ed(){let e,t,{user:n,signOutHandler:o}=(0,V.useAuthContext)(),{items:u}=(e=(0,f.usePathname)(),t=(0,l.useTranslations)("MainMenu"),{items:(0,a.useMemo)(()=>[{id:"releases",title:t("releases"),href:"/releases",current:!1,icon:en.Disc3},{id:"merch",title:t("merch"),href:d.socialLinks.shop,current:!1,external:!0,icon:eo},{id:"gear",title:"Gear",href:d.socialLinks.gear,current:!1,external:!0,icon:es},{id:"roadmap",title:t("roadmap"),href:"/roadmap",current:!1,icon:ei.Map},{id:"faq",title:t("faq"),href:"/faq",current:!1,icon:er.default},{id:"account",title:t("account"),href:"/account",current:!1,icon:ea.UserCircle}].map(t=>t.href===e?{...t,current:!0}:{...t,current:!1}),[t,e])}),c=(0,f.usePathname)(),{isNavigating:h}=(()=>{let e=(0,i.usePathname)(),t=(0,i.useSearchParams)(),r=(0,a.useRef)(null),[n,s]=(0,a.useState)(!1),[o,l]=(0,a.useState)("");return(0,a.useEffect)(()=>
2{l(window.location.hash.slice(1))},[]),(0,a.useEffect)(()=>{let e=()=>{l(window.location.hash.slice(1))};return window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[]),(0,a.useEffect)(()=>{let e=()=>{s(!0),window.matchMedia("(max-width: 1023px)").matches&&(0,U.closeSupportChat)()};return X(J.NavigationStart,e),()=>{Y(J.NavigationStart,e)}},[]),(0,a.useEffect)(()=>{let e=()=>{setTimeout(()=>{s(!1)},400)};return X(J.ModalNavigationComplete,e),()=>{Y(J.ModalNavigationComplete,e)}},[]),(0,a.useEffect)(()=>{let n=(0,el.isModalHash)(o)?o:"",i=(0,el.createUrlString)(e,t,n);if(null===r.current){r.current=i;return}if((0,el.hasNavigationCompleted)(r.current,i)){r.current=i;let e=setTimeout(()=>{s(!1)},400);return()=>clearTimeout(e)}},[e,t,o]),(0,a.useEffect)(()=>{let e=e=>{(0,el.shouldTrackNavigation)(e)&&Z(J.NavigationStart)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]),{isNavigating:n}})(),p=(0,a.useRef)(null),m="/account"===c,y="/releases"===c,v="/"===c,g=e=>{v&&(e.preventDefault(),(0,ee.scrollToElement)("#subscription"))};return(0,a.useEffect)(()=>{let e=()=>{p.current?.dataset.headlessuiState==="open"&&p.current?.click()};return X(J.CloseMobileMenu,e),()=>{Y(J.CloseMobileMenu,e)}},[]),(0,a.useEffect)(()=>{p.current?.dataset.headlessuiState==="open"&&p.current?.click()},[c]),(0,r.jsx)(A.Disclosure,{as:"nav",className:(0,s.default)("fixed w-full","bg-gray-800",W.navbarZIndex),children:({open:e})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-3.5 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:(0,s.default)("flex items-center justify-between h-14","sm:gap-0"),children:[(0,r.jsx)(H,{onClick:g}),(0,r.jsxs)("div",{className:"flex items-center justify-center relative z-10",children:[(0,r.jsx)(I,{priority:!0,animated:h,className:"relative active:top-[1px]"}),(0,r.jsx)(G,{className:"ml-1 shrink-0"}),(0,r.jsx)($,{menuItems:u})]}),(0,r.jsx)(Q,{user:n,isAccountPage:m,isReleasesPage:y,onSignOut:o,onSubscriptionClick:g}),(0,r.jsx)(K,{isOpen:e,isReleasesPage:y,navCloseRef:p})]})}),(0,r.jsx)(ec,{open:e,menuItems:u,user:n,isAccountPage:m,onSignOut:o})]})})}var eh=e.i(16715),ef=e.i(176124);function ep(){let e=(0,l.useTranslations)("UpdateAvailableNotice"),{isSkewed:t}=(0,ef.useDeploySkew)(),[n,i]=(0,a.useState)(!1),s=(0,a.useCallback)(e=>{if("u"<typeof document)return;let t=document.documentElement;if(!e)return void t.style.setProperty("--np-update-notice-height","0px");let r=e=>{t.style.setProperty("--np-update-notice-height",`${e}px`)};r(e.getBoundingClientRect().height);let n=new ResizeObserver(e=>{for(let t of e)r(t.contentRect.height)});return n.observe(e),()=>{n.disconnect(),t.style.setProperty("--np-update-notice-height","0px")}},[]);return!t||n?null:(0,r.jsx)("div",{ref:s,className:"pointer-events-none fixed inset-x-0 z-40 px-2 pb-4 sm:px-4 sm:pb-5",style:{bottom:"calc(var(--np-player-bar-height, 0px) + var(--np-release-app-btn-height, 0px) + var(--np-global-version-notice-height, 0px) + var(--np-consent-banner-height, 0px))"},children:(0,r.jsxs)("div",{className:"pointer-events-auto mx-auto flex max-w-3xl items-start gap-2.5 rounded-xl border border-white/10 bg-zinc-900/95 p-3 shadow-2xl shadow-black/50 backdrop-blur sm:items-center sm:gap-4 sm:p-4",children:[(0,r.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-white/5 text-gray-300 sm:size-10",children:(0,r.jsx)(eh.RefreshCw,{className:"size-4 sm:size-5"})}),(0,r.jsxs)("div",{className:"min-w-0 flex-grow text-xs sm:text-sm",children:[(0,r.jsx)("p",{className:"font-semibold text-white",children:e("title")}),(0,r.jsx)("p",{className:"mt-0.5 text-gray-400",children:e("description")}),(0,r.jsx)("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-1.5 inline-block font-medium text-gray-100 hover:text-white sm:mt-2",children:e("reload")})]}),(0,r.jsx)("button",{type:"button",onClick:()=>i(!0),"aria-label":e("dismiss"),className:"-mr-0.5 -mt-0.5 shrink-0 rounded-lg p-1.5 text-gray-500 transition-colors hover:bg-white/5 hover:text-white",children:(0,r.jsx)(P.X,{className:"size-4"})})]})})}e.i(21749);var em=e.i(100637),ey=e.i(206142),ev=e.i(570192),eg=e.i(194609);let eb=(0,n.default)(()=>e.A(577261),{loadableGenerated:{modules:[290276]},ssr:!1}),ex=(0,n.default)(()=>e.A(306665),{loadableGenerated:{modules:[569528]},ssr:!1}),ew=(0,n.default)(()=>e.A(971777),{loadableGenerated:{modules:[303234]},ssr:!1}),ek=!(0,y.isGlobalVersion)(),ej=(0,n.default)(()=>e.A(988367),{loadableGenerated:{modules:[837835]},ssr:!1}),eS=(0,n.default)(()=>e.A(157677),{loadableGenerated:{modules:[471641]},ssr:!1}),e_=(0,n.default)(()=>e.A(22436),{loadableGenerated:{modules:[351754]},ssr:!1}),eC=(0,n.default)(()=>e.A(221524),{loadableGenerated:{modules:[643835]},ssr:!1}),eM=(0,n.default)(()=>e.A(593221),{loadableGenerated:{modules:[496045]},ssr:!1}),eN=(0,n.default)(()=>
2e.A(849562),{loadableGenerated:{modules:[593896]},ssr:!1}),eP=(0,n.default)(()=>e.A(168250),{loadableGenerated:{modules:[391780]},ssr:!1}),eT=(0,n.default)(()=>e.A(561888),{loadableGenerated:{modules:[963955]},ssr:!1});e.s(["default",0,function({children:e}){!function(){let{setShowAuthModal:e,setForgotPasswordModal:t,setSignUpModal:r,setVerificationModal:n,refreshSession:s,user:o}=(0,V.useAuthContext)(),{setShowShortcutsModal:l}=(0,ey.usePlayerModalContext)(),{successMessages:u}=(0,eg.useMessages)(),c=(0,f.useRouter)(),d=(0,f.usePathname)(),h=(0,i.useSearchParams)();(0,a.useEffect)(()=>{let i=async i=>{let a=i||window.location.hash.slice(1),f=(0,el.normalizeModalHash)(a);if(f!==a){let e=window.location.pathname+window.location.search+(f?`#${f}`:"");window.history.replaceState(null,"",e)}let p=h?.toString()||"",m=d+(p?`?${p}`:""),y=!1;if(m.includes("?password-reset-completed")){(0,ev.successToast)(u.dynamicLinks.password_reset_completed,{toastId:"password-reset-completed"}),c.replace(o?"/":"/#sign-in");return}if(m.includes("?account-verification-completed")){(0,ev.successToast)(u.dynamicLinks.account_verification_completed,{toastId:"account-verification-completed"}),n(!1),s(),c.replace(o?"/":"/#sign-in");return}let{open:v,suppressed:g}=(0,el.resolveModalHash)({hash:f,signedIn:!!o});g&&1&&["#sign-in","#sign-up"].includes(window.location.hash)&&window.history.replaceState(null,"",window.location.pathname+window.location.search);let b={"sign-in":e,"forgot-password":t,"sign-up":r,shortcuts:l};if(v){for(let[e,t]of(y=!0,Z(J.CloseMobileMenu),Object.entries(b)))t(e===v);Z(J.ModalNavigationComplete)}else for(let[e,t]of Object.entries(b))("shortcuts"!==e||void 0!==i)&&t(!1);if("u">typeof document){let e=document.documentElement;(y||""!==e.style.overflow)&&setTimeout(()=>{e.style.overflow=y?"hidden":""},300)}},a=e=>{i(new URL(e.newURL).hash.slice(1))};return window.addEventListener("hashchange",a),i(),"#subscription"===window.location.hash&&(0,ee.scrollToElement)("#subscription"),()=>{window.removeEventListener("hashchange",a)}},[c,d,h,t,e,r,l,n,s,o,u.dynamicLinks.password_reset_completed,u.dynamicLinks.account_verification_completed]),(0,a.useEffect)(()=>{(async()=>{let e=window.location.hash.slice(1),t=h?.toString()||"",r=d+(t?`?${t}`:"");if(r.includes("?password-reset-completed")){(0,ev.successToast)(u.dynamicLinks.password_reset_completed,{toastId:"password-reset-completed"}),c.replace(o?"/":"/#sign-in");return}if(r.includes("?account-verification-completed")){(0,ev.successToast)(u.dynamicLinks.account_verification_completed,{toastId:"account-verification-completed"}),n(!1),s(),c.replace(o?"/":"/#sign-in");return}"subscription"===e&&(0,ee.scrollToElement)("#subscription")})()},[d,h,c,o,n,s,u.dynamicLinks.password_reset_completed,u.dynamicLinks.account_verification_completed])}(),function(){let e=(0,i.useSearchParams)(),t=(0,f.useRouter)(),r=(0,f.usePathname)(),{errorMessages:n}=(0,eg.useMessages)(),s=(0,a.useRef)(null),o=e?.get("error")||null;(0,a.useEffect)(()=>{if(!o){s.current=null;return}if(s.current===o)return;s.current=o,(0,ev.errorToast)(n.oauthError(o),{toastId:`oauth-error-${o}`});let i=new URLSearchParams(e?.toString()||"");i.delete("error"),i.delete("error_description"),i.delete("error_code");let a=i.toString();t.replace(`${r}${a?`?${a}`:""}`)},[o,n,r,t,e])}();let{user:t,showAuthModal:n,showSignUpModal:s,showForgotPasswordModal:o,showVerificationModal:l,showContactEmailModal:u}=(0,V.useAuthContext)(),{showBanModal:c,setShowBanModal:d,showSubscriptionModal:h,setShowSubscriptionModal:p,showBetaModal:m,showMobileGateModal:y,setShowMobileGateModal:v,mobileGateRelease:g,showShortcutsModal:b,setShowShortcutsModal:x}=(0,ey.usePlayerModalContext)(),{dismissBetaModal:w}=(0,em.usePlaybackContext)(),k=(0,i.useSearchParams)().get("show_banner_id"),[j,S]=(0,a.useState)(null),[_,M]=(0,a.useState)(null);_!==k&&(M(k),S(k));let N="3"===j,P=c||"1"===j,T=h||"2"===j,E=m||N,O=N&&!m,A=(0,et.useLatch)(n),L=(0,et.useLatch)(s),B=(0,et.useLatch)(o),I=(0,et.useLatch)(l),z=(0,et.useLatch)(u),D=(0,et.useLatch)(P),F=(0,et.useLatch)(T),Q=(0,et.useLatch)(E),$=(0,et.useLatch)(y),q=(0,et.useLatch)(b),K=!!t&&!t.regionWelcomeSeen;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"min-h-svh h-full flex flex-col",children:[(0,r.jsx)(ed,{}),(0,r.jsx)("main",{className:"flex pt-[56px] flex-grow",children:(0,r.jsx)("div",{className:"mx-auto py-6 px-1 sm:px-6 lg:px-8 w-full justify-center",children:e})}),(0,r.jsx)(C,{}),(0,r.jsx)(R,{}),(0,r.jsx)(ep,{})]}),A&&!t&&(0,r.jsx)(ex,{}),B&&(0,r.jsx)(eb,{}),I&&(0,r.jsx)(e_,{}),K&&(0,r.jsx)(eS,{}),ek&&z&&(0,r.jsx)(ej,{}),L&&!t&&(0,r.jsx)(ew,{}),D&&(0,r.jsx)(eC,{open:P,onClose:()=>{d(!1),S(null)}}),F&&(0,r.jsx)(eM,{open:T,onClose:()=>{p(!1),S(null)}}),Q&&(0,r.jsx)(eN,{open:E,onClose:e=>{S(null),w(O?void 0:e)},isDebug:O}),$&&(0,r.jsx)(eT,{open:y,onClose:()=>v(!1),release:g}),q&&(0,r.jsx)(eP,{open:b,onClose:()=>{x(!1),"#shortcuts"===window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search)}})]})}],274921)}]); 3
4//# debugId=58c39c9c-21ae-1fed-7be5-ecff3c56fef5
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.