(()=>{"use strict";var t={249:function(t,e,n){var i=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,s){function o(t){try{d(i.next(t))}catch(t){s(t)}}function a(t){try{d(i.throw(t))}catch(t){s(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,a)}d((i=i.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SliseApi=void 0;const r=n(737);e.SliseApi=class{constructor(){this.apiURL=(0,r.getSliseAPIUrl)()}getAdServeURL(t,e,n,i){"string"!=typeof e&&(e=e.join(",")),n=encodeURIComponent(n),i=encodeURIComponent(i);let r=encodeURIComponent(window.location.pathname),s=encodeURIComponent(window.location.host);return`${this.apiURL}/serve?pub=${t}&size=${e}&slot=${n}&path=${r}&rnd=${i}&host=${s}`}post(t,e){return i(this,void 0,void 0,(function*(){return fetch(`${this.apiURL}${t}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}))}sendTrackingEvent(t){return i(this,void 0,void 0,(function*(){yield this.post("/analytics",t)}))}sendTrackingData(t){return i(this,void 0,void 0,(function*(){const e=yield this.post("/track",t);return yield e.json()}))}sendThirdPartyEvent(t){return i(this,void 0,void 0,(function*(){yield this.post("/analytics/tpe",t)}))}}},181:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Stopwatch=void 0,e.Stopwatch=class{constructor(t=500){this.updateInterval=t,this.running=!1,this.elapsed=0,this._lastUpdated=0,this._handlers=[]}_trackTime(t){if(tt.time-e.time)),n}removeHandler(t){this._handlers=this._handlers.filter((e=>e.id!==t))}start(t=Date.now()){if(this.running)return this._trackTime(t);this.running=!0,this._lastUpdated=t,this._intervalTimer=function(t,e){let n=Date.now();return setInterval((()=>{let t=Date.now(),i=t-n;n=t,e(i)}),t)}(this.updateInterval,(t=>{this.running||clearInterval(this._intervalTimer),this._trackTime(this._lastUpdated+t),this._lastUpdated+=t}))}stop(t=Date.now()){this.running&&this._trackTime(t),this.running=!1,clearInterval(this._intervalTimer)}reset(t=Date.now()){this._trackTime(t),this.elapsed=0,this._lastUpdated=t,this.running=!1,clearInterval(this._intervalTimer)}}},737:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSliseAPIUrl=void 0,e.getSliseAPIUrl=()=>"https://v1.slise.xyz"},525:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.injectTooltipStyles=e.appendTooltip=void 0,e.appendTooltip=(t,e)=>{try{const e=document.createElement("div");e.innerHTML='\n
\n\n\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\n\n\n\n

Web3-native ads—powered by Slise

\n
\n',t.appendChild(e)}catch(t){}},e.injectTooltipStyles=t=>{try{var e=document.createElement("style");e.innerText=`.slise-tooltip-container {\n \n position: absolute;\n top: 5px;\n left: calc(${t}px - 17px);\n display: inline-block;\n \n}\n\n.slise-tooltip-text {\n font-family: "Neue Montreal", Helvetica, Verdana, Arial, sans-serif;\n font-size: 10px;\n margin: 0;\n opacity: 0;\n width: max-content;\n background-color: #F4F4F4;\n color: black;\n text-align: center;\n border-radius: 6px;\n border-top-right-radius: 0px;\n padding: 5px 8px;\n position: absolute;\n z-index: 999;\n right: calc(105% + 10px);\n top: 50%;\n transition: opacity 300ms ease-in-out;\n}\n\n.slise-tooltip-text::after {\n content: "";\n position: absolute;\n top: 0;\n right: -7px;\n width: 0px;\n height: 0px;\n border-top: 5px solid #F4F4F4;\n border-left: 5px solid #F4F4F4;\n border-right: 5px solid transparent;\n border-bottom: 5px solid transparent;\n transform: rotate(0deg);\n}\n\n.slise-tooltip-container:hover .slise-tooltip-text {\n opacity: 1;\n}`,document.head.appendChild(e)}catch(t){}}},215:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createBannerVisibilityContext=void 0,e.createBannerVisibilityContext=function({stopwatchStart:t,stopwatchStop:e,trackError:n}){let i={isDocumentFocused:!document.hidden,isBannerVisible:!1,hasTrackedError:!1,hasErrored:!1};function r(r){r(i),function(){if(!i.isBannerVisible||!i.isDocumentFocused||i.hasErrored)return e();t()}(),i.hasErrored&&!i.hasTrackedError&&(n(),i.hasTrackedError=!0)}return{onDocumentVisibilityChange:t=>r((e=>e.isDocumentFocused=!t)),onEntryIntersectionChange:t=>r((e=>e.isBannerVisible=t)),onError:()=>r((t=>t.hasErrored=!0))}}},173:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.init=e.initTrackers=void 0;const i=n(181),r=n(525),s=n(215),o="slise-display";function a(t,e,n){const{REFRESH_INTERVAL:i,EVENT_GLOBAL_PARAMS:r,stopwatch:s,sliseApi:o}=n;s.addHandler(2e3,(()=>o.sendTrackingEvent(Object.assign({event:"view"},r)))),s.addHandler(i,(()=>location.reload())),new IntersectionObserver((function(t){const n=t[0];n&&e.onEntryIntersectionChange(n.isIntersecting)}),{threshold:.8}).observe(t),document.addEventListener("visibilitychange",(()=>e.onDocumentVisibilityChange(document.hidden))),t.addEventListener("click",(()=>o.sendTrackingEvent(Object.assign({event:"click"},r)))),o.sendTrackingEvent(Object.assign({event:"loaded"},r))}e.initTrackers=a,e.init=function(t){let e={ad:"",pub:"",client:"",origin:"",path:"",slot:""},n=1/0,d=new i.Stopwatch(1e3),l=(0,s.createBannerVisibilityContext)({stopwatchStart:()=>d.start(),stopwatchStop:()=>d.stop(),trackError:()=>{t.sendTrackingEvent(Object.assign({event:"error"},e)),function(){const t=document.querySelector(`a:has(#${o}`);t&&(t.style.display="none")}()}});const c=document.getElementById(o);if(!c)return void t.sendTrackingEvent(Object.assign({event:"error"},e));e.ad=c.getAttribute("data-ad-id")||"",e.pub=c.getAttribute("data-pub-id")||"",e.client=c.getAttribute("data-client-id")||"",e.origin=c.getAttribute("data-origin")||"",e.path=c.getAttribute("data-path")||"",e.slot=c.getAttribute("data-slot-id")||"",n=1e3*parseFloat(c.getAttribute("data-refresh")||"0")||1/0,c.addEventListener("error",(()=>l.onError()));const p=()=>{a(c,l,{EVENT_GLOBAL_PARAMS:e,REFRESH_INTERVAL:n,stopwatch:d,sliseApi:t}),(0,r.injectTooltipStyles)(c.width),(0,r.appendTooltip)(document.body,e.pub)};c.complete?p():c.addEventListener("load",(function(){p()}))}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}(()=>{const t=n(249),e=n(173);!function(){let n=new t.SliseApi;(0,e.init)(n)}()})()})();