1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1808],{1808:(e,t,r)=>{r.r(t),r.d(t,{default:()=>E});var o=r(95155),n=r(28678),a=r(60577),i=r(12115),l=r(13627),s=r(15738);let c=(0,i.cache)(async e=>{let t=(0,l.UG)("\n query ReadAlsoLivePostQuery($id: ID!) {\n post(id: $id, idType: DATABASE_ID) {\n databaseId\n title\n link\n is_live\n featuredImage {\n node {\n altText\n mediaItemUrl\n }\n }\n }\n }\n "),r=await (0,a.JK)(),o=(0,s.KU)((0,s.pU)(r));return(await o.request(t,{id:String(e)})).post});var u=r(38627);async function E(e){var t,r,a,i;let{block:l,image:s,text:E,link:d,post_id:p}=e,f=p?Number(p):NaN;if(!Number.isFinite(f)||f<=0)return(0,o.jsx)(u.default,{block:l,image:s,text:E,link:d,isLive:!1});await (0,n.addCacheTag)([String(f)]);let g=null;try{g=await c(f)}catch(e){g=null}return g?(0,o.jsx)(u.default,{block:l,image:(null==(r=g.featuredImage)||null==(t=r.node)?void 0:t.mediaItemUrl)||s,alt:(null==(i=g.featuredImage)||null==(a=i.node)?void 0:a.altText)||E,text:g.title||E,link:g.link||d,isLive:!!g.is_live}):(0,o.jsx)(u.default,{block:l,image:s,text:E,link:d,isLive:!1})}},20558:(e,t,r)=>{var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{getDeadline:()=>c}),e.exports=((e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(l=n(t,r))||l.enumerable});return e})(o({},"__esModule",{value:!0}),l);var s=r(49296);function c(){let e=(0,s.getContext)().deadline;if(void 0===e)return;let t=new Date(e);if(!isNaN(t.getTime()))return t}},22598:e=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(a,{metric:()=>l}),e.exports=((e,a,i,l)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let i of o(a))n.call(e,i)||void 0===i||t(e,i,{get:()=>a[i],enumerable:!(l=r(a,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),a);let i=Symbol.for("@vercel/rusty-runtime-ipc");function l(e,t,r){let o=globalThis[i];o?.sendMetric?.(e,t,r)}},28678:(e,t,r)=>{var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{addCacheTag:()=>_.addCacheTag,attachDatabasePool:()=>g.attachDatabasePool,dangerouslyDeleteBySrcImage:()=>m.dangerouslyDeleteBySrcImage,dangerouslyDeleteByTag:()=>m.dangerouslyDeleteByTag,experimental_attachDatabasePool:()=>g.experimental_attachDatabasePool,experimental_upgradeWebSocket:()=>y.experimental_upgradeWebSocket,geolocation:()=>s.geolocation,getCache:()=>f.getCache,getDeadline:()=>u.getDeadline,getEnv:()=>c.getEnv,invalidateBySrcImage:()=>m.invalidateBySrcImage,invalidateByTag:()=>m.invalidateByTag,ipAddress:()=>s.ipAddress,metric:()=>d.metric,next:()=>p.next,rewrite:()=>p.rewrite,waitUntil:()=>E.waitUntil}),e.exports=((e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(l=n(t,r))||l.enumerable});return e})(o({},"__esModule",{value:!0}),l);var s=r(73496),c=r(31332),u=r(20558),E=r(38262),d=r(22598),p=r(33594),f=r(75787),g=r(45727),m=r(36918),_=r(28912),y=r(61294)},28912:(e,t,r)=>{var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{addCacheTag:()=>c}),e.exports=((e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(l=n(t,r))||l.enumerable});return e})(o({},"__esModule",{value:!0}),l);var s=r(49296);let c=e=>{let t=(0,s.getContext)().addCacheTag;return t?t(e):Promise.resolve()}},31332:(e,t,r)=>{var o=r(95704),n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s={};((e,t)=>
1{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(s,{getEnv:()=>c}),e.exports=((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of i(t))l.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e})(n({},"__esModule",{value:!0}),s);let c=(e=o.env)=>({VERCEL:u(e,"VERCEL"),CI:u(e,"CI"),VERCEL_ENV:u(e,"VERCEL_ENV"),VERCEL_URL:u(e,"VERCEL_URL"),VERCEL_BRANCH_URL:u(e,"VERCEL_BRANCH_URL"),VERCEL_PROJECT_PRODUCTION_URL:u(e,"VERCEL_PROJECT_PRODUCTION_URL"),VERCEL_REGION:u(e,"VERCEL_REGION"),VERCEL_DEPLOYMENT_ID:u(e,"VERCEL_DEPLOYMENT_ID"),VERCEL_SKEW_PROTECTION_ENABLED:u(e,"VERCEL_SKEW_PROTECTION_ENABLED"),VERCEL_AUTOMATION_BYPASS_SECRET:u(e,"VERCEL_AUTOMATION_BYPASS_SECRET"),VERCEL_GIT_PROVIDER:u(e,"VERCEL_GIT_PROVIDER"),VERCEL_GIT_REPO_SLUG:u(e,"VERCEL_GIT_REPO_SLUG"),VERCEL_GIT_REPO_OWNER:u(e,"VERCEL_GIT_REPO_OWNER"),VERCEL_GIT_REPO_ID:u(e,"VERCEL_GIT_REPO_ID"),VERCEL_GIT_COMMIT_REF:u(e,"VERCEL_GIT_COMMIT_REF"),VERCEL_GIT_COMMIT_SHA:u(e,"VERCEL_GIT_COMMIT_SHA"),VERCEL_GIT_COMMIT_MESSAGE:u(e,"VERCEL_GIT_COMMIT_MESSAGE"),VERCEL_GIT_COMMIT_AUTHOR_LOGIN:u(e,"VERCEL_GIT_COMMIT_AUTHOR_LOGIN"),VERCEL_GIT_COMMIT_AUTHOR_NAME:u(e,"VERCEL_GIT_COMMIT_AUTHOR_NAME"),VERCEL_GIT_PREVIOUS_SHA:u(e,"VERCEL_GIT_PREVIOUS_SHA"),VERCEL_GIT_PULL_REQUEST_ID:u(e,"VERCEL_GIT_PULL_REQUEST_ID")}),u=(e,t)=>{let r=e[t];return""===r?void 0:r}},33594:e=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a={};function i(e,t){if(e?.request?.headers){if(!(e.request.headers instanceof Headers))throw Error("request.headers must be an instance of Headers");let r=[];for(let[o,n]of e.request.headers)t.set("x-middleware-request-"+o,n),r.push(o);t.set("x-middleware-override-headers",r.join(","))}}function l(e,t){let r=new Headers(t?.headers??{});return r.set("x-middleware-rewrite",String(e)),i(t,r),new Response(null,{...t,headers:r})}function s(e){let t=new Headers(e?.headers??{});return t.set("x-middleware-next","1"),i(e,t),new Response(null,{...e,headers:t})}((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(a,{next:()=>s,rewrite:()=>l}),e.exports=((e,a,i,l)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let i of o(a))n.call(e,i)||void 0===i||t(e,i,{get:()=>a[i],enumerable:!(l=r(a,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),a)},36918:(e,t,r)=>{var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{dangerouslyDeleteBySrcImage:()=>d,dangerouslyDeleteByTag:()=>u,invalidateBySrcImage:()=>E,invalidateByTag:()=>c}),e.exports=((e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(l=n(t,r))||l.enumerable});return e})(o({},"__esModule",{value:!0}),l);var s=r(49296);let c=e=>{let t=(0,s.getContext)().purge;return t?t.invalidateByTag(e):Promise.resolve()},u=(e,t)=>{let r=(0,s.getContext)().purge;return r?r.dangerouslyDeleteByTag(e,t):Promise.resolve()},E=e=>{let t=(0,s.getContext)().purge;return t?t.invalidateBySrcImage(e):Promise.resolve()},d=(e,t)=>{let r=(0,s.getContext)().purge;return r?r.dangerouslyDeleteBySrcImage(e,t):Promise.resolve()}},38262:(e,t,r)=>{var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{waitUntil:()=>c}),e.exports=((e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(l=n(t,r))||l.enumerable});return e})(o({},"__esModule",{value:!0}),l);var s=r(49296);let c=e=>{if(null===e||"object"!=typeof e||"function"!=typeof e.then)throw TypeError(`waitUntil can only be called with a Promise, got ${typeof e}`);return(0,s.getContext)().waitUntil?.(e)}},45727:(e,t,r)=>{var o=r(95704),n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s={};((e,t)=>
1{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(s,{attachDatabasePool:()=>g,experimental_attachDatabasePool:()=>m}),e.exports=((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of i(t))l.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e})(n({},"__esModule",{value:!0}),s);var c=r(49296),u=r(20558);let E=!!o.env.DEBUG,d=null,p=()=>{};function f(e){if(!o.env.VERCEL_URL||!o.env.VERCEL_REGION)return;d&&(clearTimeout(d),p());let t=new Promise(e=>{p=e}),r=(0,u.getDeadline)(),n=r?r.getTime()-Date.now()-1e3:899e3;d=setTimeout(()=>{p?.(),E&&console.log("Database pool idle timeout reached. Releasing connections.")},Math.min(function(e){if("options"in e&&e.options){if("idleTimeoutMillis"in e.options)return"number"==typeof e.options.idleTimeoutMillis?e.options.idleTimeoutMillis:1e4;if("maxIdleTimeMS"in e.options)return"number"==typeof e.options.maxIdleTimeMS?e.options.maxIdleTimeMS:0;if("status"in e)return 5e3;if("connect"in e&&"execute"in e)return 3e4}if("config"in e&&e.config){if("connectionConfig"in e.config&&e.config.connectionConfig)return e.config.connectionConfig.idleTimeout||6e4;if("idleTimeout"in e.config)return"number"==typeof e.config.idleTimeout?e.config.idleTimeout:6e4}return"poolTimeout"in e?"number"==typeof e.poolTimeout?e.poolTimeout:6e4:"idleTimeout"in e?"number"==typeof e.idleTimeout?e.idleTimeout:0:1e4}(e)+100,Math.max(100,n)));let a=(0,c.getContext)();a?.waitUntil?a.waitUntil(t):console.warn("Pool release event triggered outside of request scope.")}function g(e){if(d&&(p?.(),clearTimeout(d)),"on"in e&&e.on&&"options"in e&&"idleTimeoutMillis"in e.options)return void e.on("release",()=>{E&&console.log("Client released from pool"),f(e)});if("on"in e&&e.on&&"config"in e&&e.config&&"connectionConfig"in e.config)return void e.on("release",()=>{E&&console.log("MySQL client released from pool"),f(e)});if("on"in e&&e.on&&"config"in e&&e.config&&"idleTimeout"in e.config)return void e.on("release",()=>{E&&console.log("MySQL2/MariaDB client released from pool"),f(e)});if("on"in e&&e.on&&"options"in e&&e.options&&"maxIdleTimeMS"in e.options)return void e.on("connectionCheckedOut",()=>{E&&console.log("MongoDB connection checked out"),f(e)});if("on"in e&&e.on&&"options"in e&&e.options&&"socket"in e.options)return void e.on("end",()=>{E&&console.log("Redis connection ended"),f(e)});throw Error("Unsupported database pool type")}let m=g},49296:e=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(a,{SYMBOL_FOR_REQ_CONTEXT:()=>i,getContext:()=>l}),e.exports=((e,a,i,l)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let i of o(a))n.call(e,i)||void 0===i||t(e,i,{get:()=>a[i],enumerable:!(l=r(a,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),a);let i=Symbol.for("@vercel/request-context");function l(){let e=globalThis;return e[i]?.get?.()??{}}},60025:e=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(a,{InMemoryCache:()=>i}),e.exports=((e,a,i,l)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let i of o(a))n.call(e,i)||void 0===i||t(e,i,{get:()=>a[i],enumerable:!(l=r(a,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),a);class i{constructor(){this.cache={}}async get(e){let t=this.cache[e];return t?t.ttl&&t.lastModified+1e3*t.ttl<Date.now()?(await this.delete(e),null):JSON.parse(t.value):null}async set(e,t,r){let o=JSON.stringify(t??null);this.cache[e]={value:o,lastModified:Date.now(),ttl:r?.ttl,tags:new Set(r?.tags||[])}}async delete(e){delete this.cache[e]}async expireTag(e){let t=Array.isArray(e)?e:[e];for(let e in this.cache)if(Object.prototype.hasOwnProperty.call(this.cache,e)){let r=this.cache[e];t.some(e=>r.tags.has(e))&&delete this.cache[e]}}}},61294:(e,t,r)=>{Object.create;var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames;Object.getPrototypeOf;var i=Object.prototype.hasOwnProperty,l={};((e,t)=>
1{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{experimental_upgradeWebSocket:()=>u}),e.exports=((e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(l=n(t,r))||l.enumerable});return e})(o({},"__esModule",{value:!0}),l);var s=r(49296);async function c(){try{return(await r.e(6793).then(r.t.bind(r,46793,23))).WebSocketServer}catch{throw Error('The "ws" package is required for experimental_upgradeWebSocket(). Install it with: npm install ws')}}async function u(e,t={}){let r=(0,s.getContext)();if("function"!=typeof r.upgradeWebSocket)throw Error("experimental_upgradeWebSocket is not available in the current runtime environment. This feature requires a Vercel runtime that supports WebSocket upgrades.");let o=await c(),{req:n,socket:a,head:i}=r.upgradeWebSocket(),l=new o({noServer:!0,maxPayload:t.maxPayload??262144}),E=await new Promise((e,t)=>{let r=()=>{a.removeListener("error",s),a.removeListener("close",c)},o=e=>{if(r(),e instanceof Error)return void t(e);let o=Error("WebSocket upgrade failed");o.cause=e,t(o)},s=e=>o(e),c=()=>o(Error("socket closed before the WebSocket upgrade completed"));a.once("error",s),a.once("close",c);try{l.handleUpgrade(n,a,i,t=>{r(),e(t)})}catch(e){o(e)}});try{await e(E)}catch(e){throw E.close(1011,"WebSocket handler failed"),e}return new Response(null,{status:204})}},73496:e=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(a,{CITY_HEADER_NAME:()=>i,COUNTRY_HEADER_NAME:()=>l,EMOJI_FLAG_UNICODE_STARTING_POSITION:()=>f,IP_HEADER_NAME:()=>s,LATITUDE_HEADER_NAME:()=>c,LONGITUDE_HEADER_NAME:()=>u,POSTAL_CODE_HEADER_NAME:()=>d,REGION_HEADER_NAME:()=>E,REQUEST_ID_HEADER_NAME:()=>p,geolocation:()=>_,ipAddress:()=>m}),e.exports=((e,a,i,l)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let i of o(a))n.call(e,i)||void 0===i||t(e,i,{get:()=>a[i],enumerable:!(l=r(a,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),a);let i="x-vercel-ip-city",l="x-vercel-ip-country",s="x-real-ip",c="x-vercel-ip-latitude",u="x-vercel-ip-longitude",E="x-vercel-ip-country-region",d="x-vercel-ip-postal-code",p="x-vercel-id",f=127397;function g(e,t){return e.get(t)??void 0}function m(e){return g("headers"in e?e.headers:e,s)}function _(e){var t;return{city:function(e,t){let r=g(e.headers,t);return r?decodeURIComponent(r):void 0}(e,i),country:g(e.headers,l),flag:function(e){let t=RegExp("^[A-Z]{2}$").test(e);if(e&&t)return String.fromCodePoint(...e.split("").map(e=>f+e.charCodeAt(0)))}(g(e.headers,l)),countryRegion:g(e.headers,E),region:(t=g(e.headers,p))?t.split(":")[0]:"dev1",latitude:g(e.headers,c),longitude:g(e.headers,u),postalCode:g(e.headers,d)}}},75787:(e,t,r)=>{var o=r(95704),n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})}
1)(s,{HEADERS_VERCEL_CACHE_ITEM_NAME:()=>O,HEADERS_VERCEL_CACHE_STATE:()=>y,HEADERS_VERCEL_CACHE_TAGS:()=>b,HEADERS_VERCEL_REVALIDATE:()=>h,PkgCacheState:()=>_,getCache:()=>g}),e.exports=((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of i(t))l.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e})(n({},"__esModule",{value:!0}),s);var c=r(49296),u=r(60025),E=r(87417);let d=e=>{let t=5381;for(let r=0;r<e.length;r++)t=33*t^e.charCodeAt(r);return(t>>>0).toString(16)},p=null,f=null,g=e=>(function(e,t){return{get:r=>e().get(t(r)),set:(r,o,n)=>e().set(t(r),o,{...n,name:n?.name??r}),delete:r=>e().delete(t(r)),expireTag:t=>e().expireTag(t)}})(()=>(0,c.getContext)().cache?(0,c.getContext)().cache:function(e){if(p||(p=new u.InMemoryCache),"true"===o.env.RUNTIME_CACHE_DISABLE_BUILD_CACHE)return e&&console.log("Using InMemoryCache as build cache is disabled"),p;let{RUNTIME_CACHE_ENDPOINT:t,RUNTIME_CACHE_HEADERS:r}=o.env;if(e&&console.log("Runtime cache environment variables:",{RUNTIME_CACHE_ENDPOINT:t,RUNTIME_CACHE_HEADERS:r}),!t||!r)return m||(console.warn("Runtime Cache unavailable in this environment. Falling back to in-memory cache."),m=!0),p;if(!f){let e={};try{e=JSON.parse(r)}catch(e){return console.error("Failed to parse RUNTIME_CACHE_HEADERS:",e),p}let n=500;if(o.env.RUNTIME_CACHE_TIMEOUT){let e=parseInt(o.env.RUNTIME_CACHE_TIMEOUT,10);!isNaN(e)&&e>0?n=e:console.warn(`Invalid RUNTIME_CACHE_TIMEOUT value: "${o.env.RUNTIME_CACHE_TIMEOUT}". Using default: ${n}ms`)}f=new E.BuildCache({endpoint:t,headers:e,onError:e=>console.error(e),timeout:n})}return f}("true"===o.env.SUSPENSE_CACHE_DEBUG),function(e){let t=e?.keyHashFunction||d;return r=>{if(!e?.namespace)return t(r);let o=e.namespaceSeparator||"$";return`${e.namespace}${o}${t(r)}`}}(e)),m=!1;var _=(e=>(e.Fresh="fresh",e.Stale="stale",e.Expired="expired",e.NotFound="notFound",e.Error="error",e))(_||{});let y="x-vercel-cache-state",h="x-vercel-revalidate",b="x-vercel-cache-tags",O="x-vercel-cache-item-name"},87417:(e,t,r)=>{var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{BuildCache:()=>c}),e.exports=((e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(l=n(t,r))||l.enumerable});return e})(o({},"__esModule",{value:!0}),l);var s=r(75787);class c{constructor({endpoint:e,headers:t,onError:r,timeout:o=500}){this.get=async e=>{let t=new AbortController,r=setTimeout(()=>t.abort(),this.timeout);try{let o=await fetch(`${this.endpoint}${e}`,{headers:this.headers,method:"GET",signal:t.signal});if(404===o.status)return clearTimeout(r),null;if(200===o.status){if(o.headers.get(s.HEADERS_VERCEL_CACHE_STATE)!==s.PkgCacheState.Fresh)return o.body?.cancel?.(),clearTimeout(r),null;let e=await o.json();return clearTimeout(r),e}throw clearTimeout(r),Error(`Failed to get cache: ${o.statusText}`)}catch(e){if(clearTimeout(r),"AbortError"===e.name){let t=Error(`Cache request timed out after ${this.timeout}ms`);t.stack=e.stack,this.onError?.(t)}else this.onError?.(e);return null}},this.set=async(e,t,r)=>{let o=new AbortController,n=setTimeout(()=>o.abort(),this.timeout);try{let a={};r?.ttl&&(a[s.HEADERS_VERCEL_REVALIDATE]=r.ttl.toString()),r?.tags&&r.tags.length>0&&(a[s.HEADERS_VERCEL_CACHE_TAGS]=r.tags.join(",")),r?.name&&(a[s.HEADERS_VERCEL_CACHE_ITEM_
1NAME]=r.name);let i=await fetch(`${this.endpoint}${e}`,{method:"POST",headers:{...this.headers,...a},body:JSON.stringify(t),signal:o.signal});if(clearTimeout(n),200!==i.status)throw Error(`Failed to set cache: ${i.status} ${i.statusText}`)}catch(e){if(clearTimeout(n),"AbortError"===e.name){let t=Error(`Cache request timed out after ${this.timeout}ms`);t.stack=e.stack,this.onError?.(t)}else this.onError?.(e)}},this.delete=async e=>{let t=new AbortController,r=setTimeout(()=>t.abort(),this.timeout);try{let o=await fetch(`${this.endpoint}${e}`,{method:"DELETE",headers:this.headers,signal:t.signal});if(clearTimeout(r),200!==o.status)throw Error(`Failed to delete cache: ${o.statusText}`)}catch(e){if(clearTimeout(r),"AbortError"===e.name){let t=Error(`Cache request timed out after ${this.timeout}ms`);t.stack=e.stack,this.onError?.(t)}else this.onError?.(e)}},this.expireTag=async e=>{let t=new AbortController,r=setTimeout(()=>t.abort(),this.timeout);try{Array.isArray(e)&&(e=e.join(","));let o=await fetch(`${this.endpoint}revalidate?tags=${e}`,{method:"POST",headers:this.headers,signal:t.signal});if(clearTimeout(r),200!==o.status)throw Error(`Failed to revalidate tag: ${o.statusText}`)}catch(e){if(clearTimeout(r),"AbortError"===e.name){let t=Error(`Cache request timed out after ${this.timeout}ms`);t.stack=e.stack,this.onError?.(t)}else this.onError?.(e)}},this.endpoint=e,this.headers=t,this.onError=r,this.timeout=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.