PageSourceSearch

https://www.uneversleep.com/_next/static/chunks/app/layout-610d738bafeb41df.js

js uneversleep.com collected 2026-10-02 00:19:25 UTC 8,849 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{880:(e,r,t)=>{"use strict";t.d(r,{default:()=>u});var n=t(4568),o=t(9664),a=t.n(o),i=t(7541),s=t(7620),c=t(1453),l=t(6625);function u(){let[e,r]=(0,s.useState)(!1),t=(0,i.usePathname)(),o=c.Mp[(0,c.iY)(t)].consent;return((0,s.useEffect)(()=>{r(null===(0,l.F0)())},[]),e)?(0,n.jsxs)("aside",{className:"fixed inset-x-3 bottom-3 z-[100] mx-auto max-w-3xl rounded-xl border border-border bg-background p-4 text-foreground shadow-2xl","aria-label":o.aria,children:[(0,n.jsxs)("p",{className:"text-sm text-muted-foreground",children:[o.textBefore,(0,n.jsx)(a(),{href:"/privacy",className:"underline",children:o.privacyLink}),o.textAfter]}),(0,n.jsxs)("div",{className:"mt-3 flex flex-col gap-2 sm:flex-row sm:justify-end",children:[(0,n.jsx)("button",{type:"button",className:"rounded border border-border px-4 py-2 text-sm font-semibold",onClick:()=>{let e="accepted"===(0,l.F0)();(0,l.T1)("rejected"),r(!1),e&&window.location.reload()},children:o.reject}),(0,n.jsx)("button",{type:"button",className:"rounded bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground",onClick:()=>{(0,l.T1)("accepted"),r(!1)},children:o.accept})]})]}):(0,n.jsx)("button",{type:"button",className:"fixed bottom-3 left-3 z-[90] rounded border border-border bg-background px-3 py-2 text-xs text-foreground shadow",onClick:()=>r(!0),children:o.privacyChoices})}},3210:()=>{},3652:(e,r,t)=>{"use strict";t.d(r,{Yp:()=>g,fe:()=>y,l9:()=>h});let n=/\b(?:chrome|chrome-untrusted|moz|safari-web|safari|ms-browser|opera|edge)-extension:\/\//i,o=/[a-z][a-z0-9+.-]*:\/\/[^\s)]+/i,a=/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/gi,i=/https?:\/\/[^\s"'<>]+/gi,s=/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,c=/\b[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\b/gi,l=/\b[A-Za-z0-9_-]{32,}\b/g,u=/\b(access_token|refresh_token|provider_token|provider_refresh_token|id_token|authorization|api[_-]?key|password|secret|token)=([^\s&]+)/gi,d=/(email|password|token|secret|authorization|cookie|api[_-]?key|phone|name|message|content)/i,f=new Set(["filename","file_name","script","script_source"]),p=new Map;function m(e,r){return e.length<=r?e:`${e.slice(0,Math.max(0,r-12))}[truncated]`}function h(e,r=500){return m((e instanceof Error?e.message:String(e??"Unknown error")).replace(i,"[redacted-url]").replace(a,"[redacted-email]").replace(u,"$1=[redacted]").replace(s,"[redacted-token]").replace(c,"[redacted-id]").replace(l,"[redacted-secret]").replace(/\s+/g," ").trim()||"Unknown error",r)}function g(e){if("string"!=typeof e||!e.trim())return null;let r=e.trim();try{let e=window.location.origin,t=new URL(r,e),n="http:"===t.protocol||"https:"===t.protocol?"":`${t.protocol}//`;return m(`${n}${t.host}${t.pathname}`,300)}catch{return h(r,300)}}function w(e,r,t=80){return h(e??r,t).replace(/[^a-zA-Z0-9_.:/-]+/g,"-").replace(/^-+|-+$/g,"")||r}async function b(){let{getSupabase:e}=await Promise.all([t.e(804),t.e(379)]).then(t.bind(t,9379));return e()}async function v(){let{posthog:e}=await t.e(819).then(t.bind(t,2819));return e}async function y(e,r={}){let t=function(e){let r=e.error,t=e.source||"frontend",n=w(e.service,"web"),o=e.area?w(e.area,"global"):null,a=function(e){let r=e||window.location.pathname;if(!r)return null;try{let e=window.location.origin,t=new URL(r,e);return h(t.pathname,300)}catch{return h(r,300)}}(e.route),i={source:t,service:n,area:o,route:a,severity:e.severity||"error",message:h(e.message||(r instanceof Error?r.message:r),500),fingerprint:"pending",stack:r instanceof Error&&r.stack?h(r.stack,3e3):null,release:e.release?h(e.release,120):null,metadata:function e(r,t=0){return r?Object.entries(r).slice(0,20).reduce((r,[n,o])=>{let a=w(n,"key",60),i=!f.has(a.toLowerCase())&&d.test(n);return r[a]=i?"[redacted]":function r(t,n){return null==t?null:"boolean"==typeof t||"number"==typeof t?t:"string"==typeof t?h(t,300):t instanceof Error?h(t.message,300):Array.isArray(t)?n>=3?"[redacted-depth-limit]":t.slice(0,10).map(e=>r(e,n+1)):"object"==typeof t?n>=3?"[redacted-depth-limit]":e(t,n+1):h(t,300)}(o,t),r},{}):{}}(e.metadata)};return i.fingerprint=function(e){let r=e.message.toLowerCase().replace(/\b\d+\b/g,"#").replace(/\[redacted-[^\]]+\]/g,"[redacted]").slice(0,180);return`err_${function(e){let r=5381;for(let t=0;t<e.length;t+=1)r=33*r^e.charCodeAt(t);return(r>>>0).toString(36).padStart(8,"0")}([e.source,e.service,e.area||"global",r].join("|"))}`}(i),i}(e),a=r.now?.()??Date.now();if(function(e){if(!e||!n.test(e))return!1;let r=e.match(o);return!!(r&&n.test(r[0]))}(t.stack))return{status:"ignored",fingerprint:t.fingerprint};
1if(!r.skipThrottle&&function(e,r){let t=(p.get(e)||[]).filter(e=>r-e<6e4);return t.length>=5?(p.set(e,t),!0):(t.push(r),p.set(e,t),!1)}(t.fingerprint,a))return{status:"throttled",fingerprint:t.fingerprint};try{var i;i=r.posthogClient||await v(),i.capture("app_error_captured",{source:t.source,service:t.service,area:t.area,route:t.route,severity:t.severity,fingerprint:t.fingerprint,release:t.release,has_stack:!!t.stack,message_length:t.message.length})}catch(e){console.warn("[webErrorTracking] PostHog capture failed",h(e,160))}try{let e=r.supabaseClient||await b();if(!e.functions?.invoke)return{status:"failed",fingerprint:t.fingerprint,reason:"record-error-event transport unavailable"};let n=await e.functions.invoke("record-error-event",{body:t});if(n.error){let e=h(n.error,160);return console.warn("[webErrorTracking] record-error-event failed",e),{status:"failed",fingerprint:t.fingerprint,reason:e}}return{status:"captured",fingerprint:t.fingerprint}}catch(e){return{status:"failed",fingerprint:t.fingerprint,reason:h(e,160)}}}},6617:(e,r,t)=>{"use strict";t.d(r,{GlobalErrorCapture:()=>c});var n=t(7620),o=t(3652);let a="__unsDomReconcilerGuard";function i(e,r){return!!r&&"object"==typeof r&&r.parentNode!==e}var s=t(7001);function c(){return(0,n.useEffect)(()=>{let e=new Set,r=(r,t)=>{let n=(0,s.Q6)(r,t);e.add(n)},t=e=>{let t=e.error||e.message,n=(0,s.oz)(t),a=(0,o.fe)({error:t,service:"web",area:n?"chunk_load_error":"window_error",severity:n?"warning":void 0,route:window.location.pathname,metadata:{filename:(0,o.Yp)(e.filename),line:e.lineno,column:e.colno}});n&&r(t,a)},n=e=>{let t=(0,s.oz)(e.reason),n=(0,o.fe)({error:e.reason instanceof Error?e.reason:(0,o.l9)(e.reason),service:"web",area:t?"chunk_load_error":"unhandled_rejection",severity:t?"warning":void 0,route:window.location.pathname});t&&r(e.reason,n)};return window.addEventListener("error",t),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",n),e.forEach(e=>e()),e.clear()}},[]),null}!function(e="undefined"==typeof Node?void 0:Node.prototype){if(!e||e[a])return;let r=e.removeChild,t=e.insertBefore;e.removeChild=function(e){return i(this,e)?e:r.call(this,e)},e.insertBefore=function(e,r){return i(this,r)?t.call(this,e,null):t.call(this,e,r)},e[a]=!0,()=>{e.removeChild=r,e.insertBefore=t,delete e[a]}}()},7001:(e,r,t)=>{"use strict";t.d(r,{Q6:()=>i,oz:()=>a});let n="uns_web_chunk_reload_at",o=/loading (?:css )?chunk [^\s]+ failed/i;function a(e){if(!e)return!1;if("object"==typeof e&&"name"in e&&"ChunkLoadError"===String(e.name))return!0;let r=e instanceof Error?e.message:"string"==typeof e?e:"object"==typeof e&&"message"in e?String(e.message??""):"";return o.test(r)||/ChunkLoadError/.test(r)}function i(e,r,t={}){if(!a(e))return()=>{};let o=!1,s=()=>{o||(o=!0,function(e,r={}){if(!a(e))return;let t=void 0===r.storage?function(){try{return window.sessionStorage}catch{return null}}():r.storage;if(!t)return;let o=r.now?.()??Date.now(),i=null;try{let e=t.getItem(n),r=null===e?NaN:Number(e);Number.isFinite(r)&&(i=r)}catch{return"storage-unavailable"}if(null===i||!(o-i<6e5)||!(o>=i)){try{t.setItem(n,String(o))}catch{return"storage-unavailable"}(r.reload??(()=>window.location.reload()))()}}(e,t))},c=t.setTimer??((e,r)=>window.setTimeout(e,r)),l=t.clearTimer??(e=>window.clearTimeout(e));if(r.then(s,s),!c)return()=>{};let u=c(s,2e3);return()=>l?.(u)}},7541:(e,r,t)=>{"use strict";var n=t(3041);t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}})},8503:(e,r,t)=>{"use strict";t.d(r,{default:()=>i});var n=t(7620),o=t(1076),a=t(6625);function i(){return(0,n.useEffect)(()=>{let e=()=>{"accepted"===(0,a.F0)()&&(0,o.xc)()};return e(),window.addEventListener(a.Dn,e),()=>window.removeEventListener(a.Dn,e)},[]),null}},8801:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,3210,23)),Promise.resolve().then(t.bind(t,880)),Promise.resolve().then(t.bind(t,6617)),Promise.resolve().then(t.bind(t,2819)),Promise.resolve().then(t.bind(t,8503))}},e=>{e.O(0,[857,664,507,587,18,358],()=>e(e.s=8801)),_N_E=e.O()}]);

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.