1"use strict";(self.webpackChunk_contentpass_sdk=self.webpackChunk_contentpass_sdk||[]).push([[463],{8478(e,t,n){n.d(t,{default:()=>H});n(1453),n(6913),n(7054),n(2103),n(7905),n(2729),n(279),n(5385),n(7519),n(8258),n(3094),n(7012),n(2597);const o="v2";function r(e){let{authHint:t="",externalIdentityPropertyId:n="",hasPremiumPlans:r,hasPrivacyPlans:i,isLoggedIn:a}=e;return[o,t,a?"1":"0",i?"1":"0",r?"1":"0",n].join(":")}function i(e){return[o,(null==e?void 0:e.toString())??"0","0","0","0"].join(":")}var a=n(2208),u=n(9360);function s(e){let t=0;e&&"IdentityCredential"in e&&(t+=1);const n=null==e?void 0:e.document;return"function"==typeof(null==n?void 0:n.hasPrivateToken)&&(t+=2),t}var c=n(3678);const l=new RegExp(`(${["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"].join("|")})`,"ig");function d(e){if(!e)return null;if((e=>{var t;if((e=>{try{return!!e.ReactNativeWebView}catch(e){return!1}})(e))return!0;const n=null==e||null===(t=e.navigator)||void 0===t?void 0:t.userAgent;return!!n&&!!n.match(l)})(e))return"webview";try{const t=(e=>e.self!==e.top)(e);if(t)return"iframe"}catch(e){return"iframe-check-err"}return"standard"}var m=n(1847),p=n(7089),v=n(8396);const f=e=>e?1:0,g=e=>e&&/headless/i.test(e.toLowerCase())?2:0,h=e=>e&&/headless/i.test(e.toLowerCase())?4:0,y=e=>{const t=[],{navigator:n}=e||{};if(void 0===n)return 0;const o=n.languages,r=n.language||n.userLanguage||n.browserLanguage||n.systemLanguage;if(void 0!==r&&t.push(r),Array.isArray(o))t.push(...o);else if("string"==typeof o){const e=o;e&&t.push(...e.split(","))}return 0===t.length?8:0},w=e=>{var t;const{outerHeight:n}=e||{},{outerWidth:o}=e||{};return"function"!=typeof(null==e||null===(t=e.document)||void 0===t?void 0:t.hasFocus)?0:e.document.hasFocus()&&0===n&&0===o?16:0};async function b(e){var t,n,o;const r=null==e||null===(t=e.navigator)||void 0===t?void 0:t.permissions;
1if(!r)return 0;const i=null==e||null===(n=e.Notification)||void 0===n?void 0:n.permission;let a;try{a=await Promise.race([r.query({name:"notifications"}),new Promise(e=>{setTimeout(()=>e(null),200)})])}catch(e){a=null}return"denied"===i&&"prompt"===(null===(o=a)||void 0===o?void 0:o.state)?32:0}const q=e=>{const t=null==e?void 0:e.devicePixelRatio;return null==t?0:0===t?64:0},P=e=>{const{screen:t}=e||{};return t&&(0===t.width||0===t.height)?128:0},x=e=>e&&"number"==typeof e.hardwareConcurrency&&0===e.hardwareConcurrency?256:0,$=e=>{var t;const n=null==e||null===(t=e.screen)||void 0===t?void 0:t.colorDepth;return"number"!=typeof n?0:0===n?512:0},k=e=>{const t=null==e?void 0:e.deviceMemory;return"number"!=typeof t?0:0===t?1024:0},A=async e=>{let t=0;if(!e)return t;const n=(e=>{const{navigator:t}=e||{};return[{id:"webdriver",testFunction:f,argument:null==t?void 0:t.webdriver},{id:"user-agent",testFunction:g,argument:null==t?void 0:t.userAgent},{id:"app-version",testFunction:h,argument:null==t?void 0:t.appVersion},{id:"languages",testFunction:y,argument:e},{id:"outer",testFunction:w,argument:e},{id:"permission",testFunction:b,argument:e},{id:"device-pixel-ratio",testFunction:q,argument:e},{id:"screen-dimensions",testFunction:P,argument:e},{id:"hardware-concurrency",testFunction:x,argument:t},{id:"color-depth",testFunction:$,argument:e},{id:"device-memory",testFunction:k,argument:t}]})(e);for(const e of n){const{testFunction:n,argument:o}=e;try{t+=await n(o)}catch(e){}}return t};function I(){try{var e,t;const n=(null===(e=window)||void 0===e||null===(e=e.performance)||void 0===e||null===(t=e.getEntriesByType)||void 0===t?void 0:t.call(e,"navigation"))||[];return n.length>0?n[0].type:null}catch(e){return null}}function _(e){switch(null==e?void 0:e.visibilityState){case"visible":return!0;case"hidden":return!1;default:return}}function C(e){if(e.propertyId)return e.propertyId;const t=e.oidcPropertyId||e.defaultPropertyId;return null==t?void 0:t.substring(0,t.indexOf("-"))}let L=null,F={};function S(e,t){const n=(0,v.A)(e),o=!!n.auth,i=Array.isArray(n.plans)?n.plans:[],a=i.filter(e=>!e.includes(":")),u=i.filter(e=>e.includes(":")),s=o&&a.length>0,c=o&&u.length>0;return r({authHint:t,externalIdentityPropertyId:n.externalIdentityPropertyId,hasPremiumPlans:c,hasPrivacyPlans:s,isLoggedIn:o})}const E="v3";function N(e){return e?Object.values(e).filter(e=>!0===e).length:0}let j=!1;function R(e){return null==e?"":String(e).replace(/:/g,"")}const V=new Map([["tcloaded",1],["cmpuishown",2],["useractioncomplete",3],["loading",4]]);function M(e,t){const n=t.cmp_config_data;if(null==n||"object"!=typeof n)return`${e}::`;return`${e}:${R(n.dbgdesignid)}:${R(n.intID)}`}
1async function T(e){if(!j){if(!await function(e){const t=e.__tcfapi;return t?new Promise(e=>{t("ping",2,(t,n)=>{e(n&&!(null==t||!t.cmpLoaded))})}):Promise.resolve(!1)}(e))return{cpcs:`${E}:err:ping_failed`};j=!0}const t=await function(e){const t=e.__tcfapi;return t?new Promise(e=>{t("addEventListener",2,(n,o)=>{var r,i,a,u;if(void 0!==(null==n?void 0:n.listenerId)&&t("removeEventListener",2,()=>{},n.listenerId),!o)return void e(null);const s=R(n.cmpId),c=N(null===(r=n.purpose)||void 0===r?void 0:r.consents),l=N(null===(i=n.purpose)||void 0===i?void 0:i.legitimateInterests),d=N(null===(a=n.vendor)||void 0===a?void 0:a.consents),m=N(null===(u=n.vendor)||void 0===u?void 0:u.legitimateInterests),p=N(null==n?void 0:n.customPurposeConsents),v=N(null==n?void 0:n.customVendorConsents),f=N(null==n?void 0:n.googleVendorConsents),g=[E,s,c,l,d,m,p,v,f,(y=n.gdprApplies,!0===y?"1":!1===y?"0":""),(h=n.eventStatus,null==h?"":String(V.get(String(h))??-1))];var h,y;e(g.join(":"))})}):Promise.resolve(null)}(e);return t?{cpcs:M(t,e)}:{cpcs:`${E}:err:tcdata_failed`}}const W=[e=>{var t,n;let{global:o}=e;const r=(null===(t=o.environment)||void 0===t?void 0:t.contentpassVersion)??o.contentpassVersion;return{cpabid:o.instanceId||"",cppid:C(o),cpamp:o.isAmp,cpv:r,cpsv:null===(n=o.window)||void 0===n||null===(n=n.cp)||void 0===n?void 0:n.sv}},e=>{let{eventCategory:t,eventAction:n,eventLabel:o,nonInteraction:r,userLanguage:i}=e;return{ec:t,ea:n,el:o,ni:r,ul:i}},e=>{let{cmp:t,cmpRendersWall:n}=e;return{cpcmp:t,cpcrw:n}},e=>{let{global:t}=e;return{cpbf:s(t.window)}},async e=>{let{global:t}=e;return{cpbotr:await A(t.window)}},e=>{var t,n;let{global:o}=e;const r=o.window,i=d(r);return{cpdf:null===(t=document)||void 0===t?void 0:t.hasFocus(),cpdvs:_(document),cpnt:I(),cpbfc:o.bfCache,dl:null==r||null===(n=r.location)||void 0===n?void 0:n.host,...i&&{cpwt:i}}},e=>{var t,n;let{global:o}=e;const r=o.window,i=Math.max((null===(t=document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.clientWidth)||0,(null==r?void 0:r.innerWidth)||0),a=Math.max((null===(n=document)||void 0===n||null===(n=n.documentElement)||void 0===n?void 0:n.clientHeight)||0,(null==r?void 0:r.innerHeight)||0);return i&&a?{vp:`${i}x${a}`}:{}},e=>{let{global:t}=e;const n=(0,c.A)(t.window);return n?{cpdr:n}:{}},e=>{let{theme:t}=e;const n=(0,p.Lg)(a.jM);return{...t&&{cpt:t},...n&&{cpur:n}}},e=>{let{offer:t,hasCoupon:n}=e;return{...t&&{offer:t},...void 0!==n&&{cphc:n}}},e=>{var t;let{customDimension:n,global:o}=e;const r=(0,p.Lg)(a.iO),i=null===(t=o.layerDelay)||void 0===t?void 0:t.factor;return{...n&&{cd1:n},...r&&{cd2:r},...void 0!==i&&{cd3:`${i}`}}},e=>{let{experiments:t,features:n}=e;return{...void 0!==t&&{cpev:`${t}`},...void 0!==n&&{cptf:`${n}`}}},e=>{let{global:t}=e;const n=function(e){return e.productFamily?e.productFamily:"premium"===e.instance?u.x9:"default"===e.instance?u.EF:void 0}(t);return n?{cppf:n}:{}},e=>{let{global:t}=e;const{cookiePrefix:n}=t;if(!n)return{};const o=(0,m.A)(n)||"0",r=(0,p.Lg)(`${n}${a.yJ}`);if(!r)return L=null,{cpus:i(o)};const u=`${o}:${r}`;if(u===L)return F;try{return F={cpus:S(r,o)},L=u,F}catch{return L=null,{}}},async e=>{let{global:t}=e;if(t.isAmp)return{};const n=t.window;if("function"!=typeof(null==n?void 0:n.__tcfapi))return{};try{return await Promise.race([T(n),new Promise(e=>setTimeout(()=>e({cpcs:`${E}:err:timeout`}),200))])}catch{return{cpcs:`${E}:err:exception`}}}];function H(e){return async function(e,t){const n=await Promise.all(t.map(t=>t(e)));return Object.assign({},...n)}(e,[...W,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]])}},3678(e,t,n){n.d(t,{A:()=>c});n(1453),n(6913),n(7054),n(2103),n(7905),n(2729),n(279),n(5385),n(7519),n(8258),n(3094),n(7012),n(2597);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.match(/(\.com?)?\.[a-z]{2,63}$/);if(!t)return;return`${e.slice(0,t.index).split(".").pop()}${t[0]}`}var r=n(6589);const i=new Map,a="none",u=[["chatgpt","utmSource","equals","chatgpt"],["chatgpt","utmSource","equals","chatgpt.com"],["perplexity","utmSource","equals","perplexity"],["chatgpt","hostname","equals","chatgpt.com"],["chatgpt","hostname","equals","openai.com"],["perplexity","hostname","equals","perplexity.ai"],["gemini","hostname","equals","gemini.google.com"],["copilot","hostname","equals","copilot.microsoft.com"],["copilot","hostname","equals","m365.cloud.microsoft"],["claude","hostname","equals","claude.ai"],["deepseek","hostname","equals","deepseek.com"],["cp","hostname","matches",/contentpass\.\w+$/],["gd","hostname","matches",/google\.android\.googlequicksearchbox/],["gn","hostname","equals","news.google.com"],["seo","tpd","matches",/google(\.com?)?\.[a-z]{2,3}$/],["seo","tpd","equals","duckduckgo.com"],["seo","tpd","equals","bing.com"],["seo","hostname","equals","search.yahoo.com"],["seo","hostname","equals","www.ecosia.org"],["seo","hostname","equals","search.brave.com"],["social","hostname","equals","l.facebook.com"],["social","hostname","equals","l.instagram.com"],["social","tpd","equals","t.co"],["social","tpd","equals","youtube.com"],["social","tpd","equals","vevo.com"],["social","tpd","equals","linkin.bio"],["social","tpd","equals","pinterest.de"],["social","tpd","equals","reddit.com"],["social","tpd","equals","tiktok.com"],["social","tpd","equals","linktr.ee"],["social","tpd","equals","lnk.to"],["social","tpd","equals","komi.io"],["social","tpd","equals","t.me"],["ads","tpd","equals","googlesyndication.com"],["ads","hostname","equals","s0.2mdn.net"],["ads","hostname","equals","pdt.tradedoubler.com"],["ads","hostname","equals","paid.outbrain.com"],["utm","queryNames","contain","utm_term"],["utm","queryNames","contain","utm_source"],["utm","queryNames","contain","utm_medium"],["utm","queryNames","contain","utm_campaign"],["utm","queryNames","contain","utm_content"]];function s(e,t){let n="";try{({hostname:n}=new URL(e.document.referrer))}catch(e){}const i=n?o(n):"",u=e.location.search?new URLSearchParams(e.location.search):void 0;if(i===o(e.location.hostname))return"publisher";if(!e.document.referrer&&!u)return a;const s=t.find(e=>{const t=function(e,t,n,o){var i;switch(e){case"hostname":return t;case"tpd":return n;case"queryNames":return o;case"utmSource":return null==o||null===(i=o.get("utm_source"))||void 0===i?void 0:i.toLowerCase();default:return void r.A.error("[CP] Received unsupported url part",e)}}(e[1],n,i,u);return t&&function(e,t){switch(e[2]){case"equals":return e[3]===t;case"matches":return t.match(e[3]);case"contain":return t.has(e[3]);default:return r.A.error("[CP] Received unsupported operation",e),!1}}(e,t)});if(!s)return e.document.referrer?"unclassified":a;const c=s[0];if("seo"===c)try{var l,d;if(null!==(l=e.location.hash)&&void 0!==l&&l.includes(":~:text="))return"gao";if("function"==typeof(null===(d=e.performance)||void 0===d?void 0:d.getEntriesByType)){if(e.performance.getEntriesByType("navigation").some(e=>
1e.name&&e.name.includes(":~:text=")))return"gao"}}catch(e){r.A.warn("[CP] Error during GAO detection",e)}return c}function c(e){var t;if(!(null!=e&&null!==(t=e.document)&&void 0!==t&&t.referrer||null!=e&&e.location))return r.A.warn("[CP] No referrer and location found"),a;if(function(e){const t=e.location.href.split("#")[0];return e.document.referrer===t}(e))return"reload";const{referrer:n}=e.document;if(i.has(n))return i.get(n);const o=s(e,u);return n&&i.set(n,o),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.