1!function(){"use strict";class e{constructor(){addEventListener("load",()=>{this.setupAdCloseButton()})}static init(){e.instance||(e.instance=new e)}setupAdCloseButton(){let e=document.querySelector(".google-ad-manager-fixed-mobile-ads"),t=document.querySelector(".google-ad-manager-fixed-mobile-ads__close");e&&t&&t.addEventListener("click",()=>{e.style.transition="opacity 0.2s ease",e.style.opacity="0",setTimeout(()=>{e.style.display="none"},100)})}}var t,i=((t=i||{}).POST="post",t.CATEGORY="category",t.HOMEPAGE="homepage",t);let s=class e{constructor(e){if(this.userInfoService=e,!this.isContentIgniteEnabled())return;this.init()}isContentIgniteEnabled(){var e;return!0==(null==(e=window.ads_settings)?void 0:e.content_ignite_enabled)}getPageType(){var e,t;return null!=(t=({post:"post",category:"category",homepage:"homepage"})[null==(e=window.contentIgnite)?void 0:e.pagetype])?t:"homepage"}init(){window.addEventListener("pageshow",e=>{this.onEventLoad()}),window.addEventListener("new_post_inserted",e=>{let t=this.getTargetingDataFromEvent(e.detail);this.sendData(t)}),window.addEventListener("current_post_changed",e=>{let t=this.getTargetingDataFromEvent(e.detail);this.sendData(t)})}onEventLoad(){var e;let t=null!=(e=this.getTargetingDataFromConfig())?e:this.getTargetingDataFromDOM();this.sendData(t)}getTargetingDataFromConfig(){var e;let t=null==(e=window.contentIgnite)?void 0:e.targeting;return t?{typepage:this.getPageType(),post_id:t.post_id,post_slug:t.post_slug,category:t.category,post_template:t.post_template}:null}getTargetingDataFromDOM(){var e,t,i;let s=document.querySelector('article[id^="post-"]'),n={typepage:this.getPageType()};if(!s)return n;let a=s.id;return(null==a?void 0:a.startsWith("post-"))&&(n.post_id=a.replace("post-","")),n.post_slug=null==(e=s.dataset)?void 0:e.postSlug,n.category=null==(t=s.dataset)?void 0:t.primaryCategorySlug,n.post_template=null==(i=s.dataset)?void 0:i.postTemplate,n}getExperimentTargeting(){var e,t;let i=null==(e=window.contentIgnite)?void 0:e.experiments;if(i&&Object.keys(i).length>0)return i;let s=(null==(t=window.SMNPayloadData)?void 0:t.tests)||{},n={};return Object.values(s).forEach(e=>{e.experiment_id&&e.variation_id&&(n[e.experiment_id]=e.variation_id)}),n}getTargetingDataFromEvent(e){var t;return{post_id:null==(t=e.id)?void 0:t.toString(),post_slug:e.slug,category:e.category_slug,post_template:e.post_template,typepage:"post"}}sendData(e){var t;(null==(t=window.__ciads)?void 0:t.cmd)&&window.__ciads.cmd.push(()=>{var t;(null==(t=window.__ciads)?void 0:t.setTargeting)&&(e.post_id&&window.__ciads.setTargeting("post_id",e.post_id),e.post_slug&&window.__ciads.setTargeting("post_slug",e.post_slug),e.category&&window.__ciads.setTargeting("category",e.category),e.typepage&&window.__ciads.setTargeting("typepage",e.typepage),e.post_template&&window.__ciads.setTargeting("post_template",e.post_template),Object.entries(this.getExperimentTargeting()).forEach(([e,t])=>{window.__ciads.setTargeting(e,t)}),this.sendUserEmail())})}sendUserEmail(){var e;if(!(null==(e=window.__ciads)?void 0:e.passSignalData))return;let t=this.userInfoService.getUserInfo(),i=null==t?void 0:t.email;i&&window.__ciads.passSignalData("email",i)}static init(t){e.instance||(e.instance=new e(t))}};s.instance=null;let n=class e{static init(){!e.listener&&e.shouldListen()&&(e.listener=e.handleMessage.bind(e),window.addEventListener("message",e.listener))}static shouldListen(){return document.body.classList.contains(e.BODY_CLASS_MUSIC_ARCHIVE)&&document.body.classList.contains(e.BODY_CLASS_SKIN_PENDING)}static handleMessage(t){e.isDiceSkinEnableMessage(t)&&(document.body.classList.remove(e.BODY_CLASS_SKIN_PENDING),e.removeListener())}static isDiceSkinEnableMessage(t){if(!e.isAllowedOrigin(t.origin)||!t.data||"object"!=typeof t.data)return!1;let i=t.data;return i.type===e.MESSAGE_TYPE&&i.source===e.MESSAGE_SOURCE&&i.feature===e.MESSAGE_FEATURE}static isAllowedOrigin(t){return t===window.location.origin||e.GOOGLE_SYNDICATION_ORIGIN_PATTERN.test(t)}static removeListener(){e.listener&&(window.removeEventListener("message",e.listener),e.listener=null)}};n.BODY_CLASS_MUSIC_ARCHIVE="is-dice-music-archive",n.BODY_CLASS_SKIN_PENDING="dice-skin-pending",n.MESSAGE_TYPE="smn:dice-skin-enable",n.MESSAGE_SOURCE="google-ad-manager",n.MESSAGE_FEATURE="dice-skin",n.GOOGLE_SYNDICATION_ORIGIN_PATTERN=/^https:\/\/([a-z0-9-]+\.)*googlesyndication\.com$/,n.listener=null;class a{constructor(e){this.storage=e||window.localStorage}saveItem(e,t){try{let i=JSON.stringify(t);this.storage.setItem(e,i)}catch(e){}}getItem(e){try{let t=this.storage.getItem(e);if(null===t)return null;return JSON.parse(t)}catch(t){return this.removeItem(e),null}}removeItem(e){this.storage.removeItem(e)}clearAll(){this.storage.clear()}}
1n.init(),e.init();let o=new class{constructor(e){this.userKey="smnUserInfo",this.storageService=e}saveUserInfo(e){this.storageService.saveItem(this.userKey,e)}getUserInfo(){return this.storageService.getItem(this.userKey)}clearUserInfo(){this.storageService.removeItem(this.userKey)}}(new class extends a{constructor(){super(window.localStorage)}});s.init(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.