PageSourceSearch

https://www.innherred.no/spill/KilkayaLoader.astro_astro_type_script_index_0_lang.DdXiI7ME.js

js innherred.no collected 2026-10-01 12:30:03 UTC 2,842 bytes, 1 lines download raw bytes

1import{t as e}from"./store.jVkxpP33.js";import{t}from"./resolveSubscriberState.B35j8KWo.js";import{t as n}from"./dist.Cnxa_LV8.js";import{r}from"./computed.D2jhKQGe.js";import{t as i}from"./getReferrer.Ckn0xFtA.js";import{t as a}from"./store.U5bFIlhs.js";var o=`article-body`,s=`https://cl.k5a.io/61484fd82f894143d543e432.js`;function c(){return{$userState:r({loggedIn:!1,subscriber:!1}),$hasTrackedConversion:r(!1)}}function l(){if(typeof window>`u`)return c();if(window._polarx?.kilkayaState)return window._polarx.kilkayaState;let e=c();return window._polarx||={},window._polarx.kilkayaState=e,e}function u(e){return e?new URL(e,window.location.origin).toString():document.URL}function d(e){if(typeof window>`u`)throw Error(`Kilkaya meta should only be updated on the client`);let{$userState:t,$hasTrackedConversion:n}=l(),{loggedIn:r,subscriber:a,ageSegment:o=[`agebin_unknown`]}=t.get(),s=e.cntTag||[];for(let e of o)e===`agebin_unknown`&&s.some(e=>e.startsWith(`agebin_`))||s.includes(e)||s.push(e);let c={paid:0,paywall:`open`,type:`listing`,title:document.title,image:new URL(`/applefavicon.png`,window.location.origin).toString(),referer:i(),...e,url:u(e.url),author:e.author||[],tag:e.tag||[],login:r||a?1:0,subscriber:+!!a,cntTag:s};n.get()?c.conversion=0:(n.set(!0),c.conversion=+(sessionStorage.getItem(`redirectAfterBuy`)===`true`)),localStorage.getItem(`CMP:rejectedToAll`)===`1`&&(c.consent=0),window.k5aMeta=c}function f(e,t,n={}){if(typeof window>`u`)throw Error(`Kilkaya should only be setup on the client`);let r=l();t&&r.$userState.set(t),d(e);let{debug:i,logger:a=console}=n;e.type===`article`&&!document.getElementsByClassName(`article-body`).length&&a.warn(`[setupKilkaya] article tracked but no element with main content class found: '${o}'`);let c=document.createElement(`script`);c.src=s,c.async=!0,i&&(c.onload=()=>{a.info(`[setupKilkaya] kilkaya script loaded %o`,window.k5aMeta);try{window.kilkaya.debugModeOn()}catch{}},c.onerror=()=>{a.error(`[setupKilkaya] kilkaya script failed to load`)}),document.head.appendChild(c)}function p(e){if(!e)return[`agebin_unknown`];let t=new Date(e);if(isNaN(t.valueOf()))return[`agebin_unknown`];let n=new Date().valueOf()-t.valueOf(),r=Math.floor(n/315576e5);if(r<10||r>=100)return[`agebin_unknown`];let i=Number(r.toString().charAt(0)),a=[`agebin_${i}0_${i}9`];return r>=15&&r<=99&&a.push(`agebin_15_99`),r>=15&&r<=39&&a.push(`agebin_15_39`),r>=30&&r<=49&&a.push(`agebin_30_49`),a}var m=f,h=class extends HTMLElement{async connectedCallback(){let r=e(),i=a(),[o]=await Promise.all([r.isLoggedIn(),i.syncUser().catch(()=>n.warn(`[kilkaya-loader] Failed to sync touchpoint user data`))]),s=p(i.$user.get()?.profile?.birthdate),c=t();m(JSON.parse(this.dataset.metadata||`{}`),{loggedIn:o,subscriber:c===`subscription`,ageSegment:s})}};customElements.define(`kilkaya-loader`,h);

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.