PageSourceSearch

https://www.kessel.media/assets/chunks/chunk-CIC1LLhC.js

js kessel.media collected 2026-10-02 05:50:00 UTC 1,632 bytes, 1 lines download raw bytes

1import{n as e}from"./chunk-ZpXINNZb.js";async function t(e){let t=await Promise.allSettled(e),n=t.filter(e=>e.status===`fulfilled`);if(n.length)return{first:n[0].value,succeeded:n.length,failed:t.length-n.length};let r=t.find(e=>e.status===`rejected`);throw r?r.reason:Error(`subscribe failed`)}async function n(e){return(await t(e)).first}function r(t,n){return t.map(async t=>{let r=await e(`v2/author_pages/subscriptions/free`,{method:`POST`,body:{newsletter_id:t,...n}});if(!r)throw Error(`Authenticated subscription returned no response`);return{confirmationRequired:r.confirmation_required}})}async function i({newsIds:e,sourceOptions:t}){return n(r(e,t))}function a({newsIds:e,sourceOptions:n}){return t(r(e,n))}function o(t,n,r){return n.map(async n=>{let i=await e(`v2/author_pages/public/subscriptions/free`,{method:`POST`,body:{email:t,newsletter_id:n,...r},redirectIfUnauthorized:!1});if(!i)throw Error(`Anonymous subscription returned no response`);return{confirmationRequired:i.confirmation_required}})}async function s({email:e,newsIds:t,sourceOptions:r}){return n(o(e,t,r))}function c({email:e,newsIds:n,sourceOptions:r}){return t(o(e,n,r))}async function l({newsId:t,priceId:n,sourceOptions:r}){return(await e(`v2/author_pages/subscriptions/checkout`,{method:`POST`,body:{newsletter_id:t,price_id:n,...r}}))?.checkout_url??null}async function u({email:t,newsId:n,priceId:r,sourceOptions:i}){return(await e(`v2/author_pages/public/subscriptions/checkout`,{method:`POST`,body:{email:t,newsletter_id:n,price_id:r,...i},redirectIfUnauthorized:!1}))?.checkout_url??null}export{c as a,s as i,a as n,u as o,l as r,i as t};

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.