UNPKG

@adstage/web-sdk

Version:

AdStage Web SDK - Production-ready marketing platform SDK with React Provider support for seamless integration

1 lines 117 kB
var t,e,n,r,s,o,i,a,c,l,d;function u(t,e){var n=p();return(u=function(t,e){return n[t-=471]})(t,e)}function p(){var t=["9470741faiAot","8276292uNavRE","1128344KAPsek","4683393Wpsery","BANNER","80708ZJDAHd","2379042cdpFtG","16ggsTUe","55iYfvge","MOBILE","1imBIGX","VIEWABLE","WEB","VIDEO","TABLET","INTERSTITIAL","TEXT","NATIVE","DESKTOP","11LXFOGu","POPUP","30588260tCwfvH"];return(p=function(){return t})()}!function(){for(var t=u,e=p();;)try{if(955712===parseInt(t(485))/1*(-parseInt(t(477))/2)+parseInt(t(478))/3+parseInt(t(480))/4*(parseInt(t(483))/5)+-parseInt(t(481))/6+parseInt(t(475))/7+-parseInt(t(482))/8*(-parseInt(t(476))/9)+-parseInt(t(474))/10*(parseInt(t(472))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=u)(479)]=n(479),e[n(473)]="POPUP",e[n(490)]=n(490),e[n(492)]=n(492),e.VIDEO=n(488),e[n(491)]=n(491),(s=r||(r={}))[(o=u)(487)]=o(487),s[o(484)]=o(484),(a=i||(i={}))[u(486)]="VIEWABLE",a.CLICK="CLICK",(l=c||(c={}))[(d=u)(471)]="DESKTOP",l[d(484)]=d(484),l[d(489)]="TABLET";const h=f;function f(t,e){const n=m();return(f=function(t,e){return n[t-=262]})(t,e)}!function(){const t=f,e=m();for(;;)try{if(548704===parseInt(t(316))/1*(-parseInt(t(306))/2)+-parseInt(t(311))/3+parseInt(t(281))/4+parseInt(t(269))/5+parseInt(t(301))/6+parseInt(t(302))/7*(-parseInt(t(329))/8)+parseInt(t(280))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class g{static[h(320)](){const t=h;return typeof window!==t(266)&&typeof document!==t(266)}static[h(325)](){return!this[h(320)]()}static[h(296)](){return this[h(320)]()&&void 0!==document.readyState}static[h(299)](t){const e=h;return this[e(296)]()?document[e(324)](t):null}static[h(300)](t){const e=h;return this[e(296)]()?document[e(272)](t):null}static[h(264)](t){const e=h;return this[e(296)]()?Array[e(270)](document.querySelectorAll(t)):[]}static[h(271)](t){const e=h;return this.canUseDOM()?document[e(273)](t):null}static[h(326)](t,e,n,r){const s=h;this.canUseDOM()&&t&&t[s(304)](e,n,r)}static[h(313)](t,e,n,r){const s=h;this[s(296)]()&&t&&t[s(317)](e,n,r)}static[h(292)](t,e){return this[h(320)]()?window[t]??e:e}static[h(319)](t,e){return this[h(296)]()?document[t]??e:e}static[h(305)](t,e,n){return this[h(320)]()?window.open(t,e,n):null}static[h(315)](t){return this[h(320)]()&&t?window.getComputedStyle(t):null}static[h(330)](){const t=h;return!!this[t(296)]()&&document[t(276)]!==t(282)}static[h(303)](){return new Promise(t=>{const e=f;this[e(296)]()?this[e(330)]()?t():this[e(326)](document,"DOMContentLoaded",()=>t()):t()})}static[h(284)](t,e){const n=h;this[n(296)]()&&t&&Object[n(327)](e).forEach(([e,r])=>{const s=n;t.style[s(309)](e,r)})}static[h(289)](t,e){const n=h;this[n(296)]()&&t&&t[n(278)][n(287)](e)}static safeRemoveClass(t,e){const n=h;this.canUseDOM()&&t&&t[n(278)].remove(e)}static[h(262)](t,e){this[h(296)]()&&t&&(t.textContent=e)}static safeSetInnerHTML(t,e){const n=h;this[n(296)]()&&t&&(t[n(277)]=e)}static[h(295)](t,e){const n=h;this.canUseDOM()&&t&&e&&t[n(263)](e)}static[h(307)](t,e){const n=h;this[n(296)]()&&t&&e&&t[n(328)](e)}static[h(290)](){const t=h;return{url:this[t(292)](t(314),{href:""}).href,title:this[t(319)]("title",""),referrer:this.getDocumentProperty(t(279),"")}}static[h(322)](){const t=h;return{width:this[t(292)]("innerWidth",0),height:this[t(292)](t(268),0),pixelRatio:this.getWindowProperty(t(265),1)}}static[h(332)](){const t=h;return{scrollTop:this.canUseDOM()?window[t(333)]||document[t(267)][t(286)]:0,scrollLeft:this[t(292)](t(318),0)}}static async[h(310)](t,e={}){const n=h,{timeout:r=3e3,retryInterval:s=100,debug:o=!1}=e;if(!this[n(296)]())throw new Error("DOM을 사용할 수 없는 환경입니다.");const i=document[n(324)](t);return i?(o&&console[n(288)](n(297)+t),i):(o&&console[n(288)]("⏳ 컨테이너 대기 시작: "+t+" (최대 "+r+n(323)),new Promise((e,i)=>{const a=n;let c=0;const l=Math[a(331)](r/s),d=()=>{const n=a;c++;const u=document[n(324)](t);if(u)return o&&console[n(288)](n(312)+t+" ("+c+n(283)+c*s+n(294)),void e(u);if(c>=l){const e=n(308)+t+n(291)+t+n(274)+r+n(321)+c+n(298);return o&&console.error(e),void i(new Error(e))}o&&c%10==0&&console[n(288)](n(293)+t+" ("+c+"/"+l+")");const p=Math[n(285)](s*Math[n(275)](1.2,c),500);setTimeout(d,p)};setTimeout(d,s)}))}static async waitForElements(t,e={}){const n=h,r=t.map(t=>this[n(310)](t,e));return Promise.all(r)}}function m(){const t=["ms (","getViewportInfo","ms)","getElementById","isSSR","safeAddEventListener","entries","removeChild","40rvuGkA","isDOMReady","ceil","getScrollInfo","pageYOffset","safeSetTextContent","appendChild","safeQuerySelectorAll","devicePixelRatio","undefined","documentElement","innerHeight","4289740oOVftu","from","safeCreateElement","querySelector","createElement",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"pow","readyState","innerHTML","classList","referrer","8993745RrsNBZ","1675864RWdKrT","loading","번째 시도, ","safeApplyStyles","min","scrollTop","add","log","safeAddClass","getPageInfo",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"getWindowProperty","⏳ 컨테이너 대기 중: ","ms 경과)","safeAppendChild","canUseDOM","✅ 컨테이너 즉시 발견: ","번 시도)","safeGetElementById","safeQuerySelector","91476roFllS","1222319rxWQVT","waitForDOM","addEventListener","safeWindowOpen","2pXEEGf","safeRemoveChild",'❌ 컨테이너를 찾을 수 없습니다: "',"setProperty","waitForElement","1580925ADuvhw","✅ 컨테이너 발견: ","safeRemoveEventListener","location","safeGetComputedStyle","342701NDEZza","removeEventListener","pageXOffset","getDocumentProperty","isBrowser"];return(m=function(){return t})()}const y=b;!function(){const t=b,e=w();for(;;)try{if(366837===-parseInt(t(389))/1+-parseInt(t(401))/2+-parseInt(t(390))/3+-parseInt(t(394))/4+parseInt(t(391))/5+parseInt(t(398))/6*(parseInt(t(396))/7)+parseInt(t(400))/8*(parseInt(t(392))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const v=y(397);function I(){return v}function b(t,e){const n=w();return(b=function(t,e){return n[t-=389]})(t,e)}function w(){const t=["30oYGPNV","undefined","9296uRYwGw","1449494HAoIsm","634196HgwHjR","325827NZeXkM","353045prNiWK","13842HFIGvx","AdStageSDK/","1271684KHyVoj"," AdStageSDK/","412363neUXHf","3.0.10"];return(w=function(){return t})()}const k=S;!function(){const t=S,e=x();for(;;)try{if(418091===parseInt(t(301))/1*(parseInt(t(298))/2)+-parseInt(t(283))/3*(-parseInt(t(310))/4)+parseInt(t(330))/5*(-parseInt(t(319))/6)+-parseInt(t(308))/7*(parseInt(t(309))/8)+-parseInt(t(317))/9+-parseInt(t(314))/10+parseInt(t(299))/11*(parseInt(t(306))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class E{static[k(307)](){const t=k;if(!g[t(304)]())return t(329)+Date[t(323)]();const e=localStorage[t(313)](t(280));if(e)return e;const n=t(324)+Math.random().toString(36)[t(286)](2,9)+"_"+Date[t(323)]();return localStorage.setItem(t(280),n),n}static[k(305)](){const t=k;if(!g.isBrowser())return t(289)+Date.now();const e=sessionStorage.getItem(t(315));if(e)return e;const n=t(302)+Math.random()[t(290)](36)[t(286)](2,9)+"_"+Date[t(323)]();return sessionStorage[t(300)](t(315),n),n}static[k(281)](){const t=k;return!!g[t(304)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator[t(285)])}static getPlatform(){const t=k;if(!g[t(304)]())return"web";const e=navigator.userAgent.toLowerCase();return/iphone|ipad|ipod/.test(e)?t(312):/android/[t(288)](e)?t(293):E[t(281)]()?t(279):t(295)}static collectDeviceInfo(){const t=k,e=g[t(318)]();return{deviceId:E[t(307)](),sessionId:E[t(305)](),osVersion:g[t(304)]()?navigator[t(278)]:t(296),deviceModel:g[t(304)]()?navigator.platform:t(296),appVersion:"1.0.0",sdkVersion:I(),language:g.isBrowser()&&navigator[t(311)]||"ko",country:"KR",ipAddress:"",userAgent:g[t(304)]()?navigator.userAgent:t(296),timezone:g[t(304)]()?Intl.DateTimeFormat()[t(284)]()[t(321)]:"UTC",viewportWidth:e[t(327)],viewportHeight:e[t(325)],screenWidth:g[t(304)]()?screen[t(327)]:0,screenHeight:g.isBrowser()?screen[t(325)]:0,colorDepth:g[t(304)]()?screen[t(292)]:24,pixelRatio:e.pixelRatio,connectionType:g.isBrowser()&&navigator[t(294)]?.effectiveType||"unknown",platform:E[t(331)]()}}static[k(303)](t){const e=k;let n=g[e(322)](t);if(!n){const r=g[e(316)]("#"+t+e(297));r&&(n=r)}if(!n&&(n=g[e(316)](e(332)+t+'"]')),!n)return e(291);const r=n[e(282)](),s=g.getScrollInfo();return"x:"+Math[e(326)](r[e(328)])+",y:"+Math[e(326)](r[e(287)]+s[e(320)])}}function S(t,e){const n=x();return(S=function(t,e){return n[t-=278]})(t,e)}function x(){const t=['[data-adstage-slot-id="',"platform","web","adstage_device_id","isMobile","getBoundingClientRect","138942ojXjpV","resolvedOptions","userAgent","substr","top","test","ssr_session_","toString","unknown","colorDepth","android","connection","desktop","SSR"," .adstage-slider-wrapper","20MbUcTf","50732xDGtlv","setItem","64661hnhTmS","session_","getSlotPosition","isBrowser","generateSessionId","3144ofoHXp","generateDeviceId","168OQsdLW","46656rLwkdC","40FvOXQL","language","ios","getItem","5067540egIfAd","adstage_session_id","safeQuerySelector","5634612uIAXWj","getViewportInfo","3763278jwYJIr","scrollTop","timeZone","safeGetElementById","now","device_","height","round","width","left","ssr_device_","5FURuXM","getPlatform"];return(x=function(){return t})()}function A(){const t=["User-Agent","application/json","4sNKHef","undefined","23537781xvKLUj","3702528cVbKYb","4377947HvWrGc","44EOPlDc","87708qsRchA","3895805OiNCrS","API key is required","481315tXdiHA","create","userAgent","createForEvents","contentType","4695136kQcxRq"];return(A=function(){return t})()}const C=T;function T(t,e){const n=A();return(T=function(t,e){return n[t-=500]})(t,e)}!function(){const t=T,e=A();for(;;)try{if(440562===-parseInt(t(512))/1+parseInt(t(508))/2*(-parseInt(t(509))/3)+-parseInt(t(503))/4*(-parseInt(t(510))/5)+-parseInt(t(506))/6+-parseInt(t(507))/7+-parseInt(t(500))/8+parseInt(t(505))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class _{static create(t,e){const n=T;if(!t)throw new Error(n(511));const r={"x-api-key":t,"Content-Type":e?.[n(516)]||n(502)};return typeof navigator!==n(504)&&(r[n(501)]=e?.userAgent||navigator[n(514)]),r}static[C(515)](t,e){const n=C,r=_[n(513)](t);return e?.[n(514)]&&(r[n(501)]=e[n(514)]),r}}function R(t,e){const n=L();return(R=function(t,e){return n[t-=237]})(t,e)}const D=R;function L(){const t=["5175384vGqbxB","1015170EsgaqK","VIEWABLE","querySelector","referrer","apiKey"," (containerId: ","width","5895075WaPBDX","collectDeviceInfo","⚠️ DOM element not found for slotId: ","stringify","POST","createForEvents","status","getPageInfo","🚀 AdvertisementEventTracker: Processing ","10Gsmqnf","trackAdvertisementEvent","NOT_SET","3137464MdfdhN","debug","📡 API Response Status: ","). Skipping event tracking.","title","get","14GRqPVy","containerId","❌ Failed to track advertisement event:","adType"," for ad ","replace","number","sessionId","statusText","/advertisements/events/","6125607fOBQrr","✅ Successfully tracked advertisement event: ","168396wXuNJn","slots","log","API request failed: ","1415740ygpJIE","platform"," in slot ","now","baseUrl","deviceId","getSlotPosition","...","3KSzDMN",". Skipping event tracking to prevent incorrect adType.","error","warn","height","parseNumericValue"];return(L=function(){return t})()}!function(){const t=R,e=L();for(;;)try{if(612117===parseInt(t(244))/1+parseInt(t(285))/2*(-parseInt(t(237))/3)+-parseInt(t(263))/4+parseInt(t(251))/5+parseInt(t(281))/6*(-parseInt(t(269))/7)+parseInt(t(243))/8+parseInt(t(279))/9*(-parseInt(t(260))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class P{constructor(t,e,n,r){const s=R;this[s(289)]=t,this.apiKey=e,this[s(264)]=n,this[s(282)]=r}async[D(261)](t,e,n){const r=D;try{this[r(264)]&&console[r(283)](r(259)+n+" event for ad "+t+r(287)+e);const s=this.slots[r(268)](e);if(!s)return void(this[r(264)]&&console[r(240)]("⚠️ Slot not found for slotId: "+e+r(238)));if(!(document.getElementById(s[r(270)])||document[r(246)]('[data-adstage-slot-id="'+e+'"]')))return void(this[r(264)]&&console[r(240)](r(253)+e+r(249)+s[r(270)]+r(266)));const o=E[r(252)](),a={adType:s[r(272)],platform:o[r(286)],deviceId:o[r(290)],deviceInfo:o,pageUrl:g[r(258)]().url,pageTitle:g[r(258)]()[r(267)],referrer:g[r(258)]()[r(247)],slotId:e,slotPosition:E[r(291)](s[r(270)]),slotWidth:P[r(242)](s[r(250)]),slotHeight:P[r(242)](s[r(241)]),sessionId:o[r(276)],pageLoadTime:performance[r(288)](),metadata:{eventType:n,sdkVersion:I(),timestamp:Date[r(288)]()},...n===i[r(245)]&&{isViewable:!0,iabCompliant:!0}},c=this[r(289)]+r(278)+t+"/"+n,l=_[r(256)](this[r(248)],a);this.debug&&(console.log("🚀 Sending advertisement event: "+n+r(273)+t,{url:c,headers:l,eventData:a}),console[r(283)]("🌐 Full API call details:",{method:r(255),url:c,hasApiKey:!!this[r(248)],bodySize:JSON.stringify(a).length}));const d=await fetch(c,{method:r(255),headers:l,body:JSON[r(254)](a)});if(this[r(264)]&&console.log(r(265)+d[r(257)]+" "+d[r(277)],{url:c,ok:d.ok}),!d.ok){const t=await d.text();throw new Error(r(284)+d[r(257)]+" "+d[r(277)]+" - "+t)}this.debug&&console[r(283)](r(280)+n+" for ad "+t)}catch(s){console[r(239)](r(271),s),console[r(239)]("🔍 Debug info:",{baseUrl:this[r(289)],apiKey:this.apiKey?this[r(248)].substring(0,8)+r(292):r(262),url:this[r(289)]+r(278)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[D(242)](t){const e=D;if(typeof t===e(275))return t;if("string"==typeof t){const n=parseFloat(t[e(274)](/px$/,""));return isNaN(n)?0:n}return 0}}var B=U;function O(){var t=["3KyKeoB","IntersectionObserver not supported, viewability tracking disabled","4899430NtfXIa","4804236FFBthL","visibilityState","0px","107942KMOVJe","1281372RmArKh","isViewableTriggered","8lVNOPF","observer","1004213bvWDxG","initIntersectionObserver","forEach","handleIntersection","2601850JsNVBg","isDocumentVisible","561244TvoxtT","destroy","onViewableCallback","12afuglk","IntersectionObserver"];return(O=function(){return t})()}function U(t,e){var n=O();return(U=function(t,e){return n[t-=134]})(t,e)}!function(){for(var t=U,e=O();;)try{if(341359===-parseInt(t(134))/1*(parseInt(t(140))/2)+parseInt(t(141))/3+-parseInt(t(151))/4+-parseInt(t(149))/5+-parseInt(t(154))/6*(parseInt(t(145))/7)+-parseInt(t(143))/8*(-parseInt(t(137))/9)+parseInt(t(136))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class z{constructor(t,e){var n=U;this[n(144)]=null,this[n(142)]=!1,this.element=t,this[n(153)]=e,this[n(146)]()}[B(146)](){var t=B;t(155)in window?(this[t(144)]=new IntersectionObserver(e=>this[t(148)](e),{threshold:.5,rootMargin:t(139)}),this[t(144)].observe(this.element)):console.warn(t(135))}[B(148)](t){var e=B;t[e(147)](t=>{var n=e;t.intersectionRatio>=.5&&this.isDocumentVisible()&&!this.isViewableTriggered&&(this.isViewableTriggered=!0,this[n(153)]&&this[n(153)]())})}[B(150)](){var t=B;return!document.hidden&&"visible"===document[t(138)]}[B(152)](){var t=B;this.observer&&(this[t(144)].disconnect(),this[t(144)]=null)}}const N=M;function M(t,e){const n=F();return(M=function(t,e){return n[t-=380]})(t,e)}!function(){const t=M,e=F();for(;;)try{if(202929===-parseInt(t(382))/1+-parseInt(t(388))/2*(parseInt(t(386))/3)+parseInt(t(392))/4+-parseInt(t(399))/5*(parseInt(t(400))/6)+-parseInt(t(403))/7*(parseInt(t(404))/8)+parseInt(t(380))/9+-parseInt(t(395))/10*(-parseInt(t(394))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const V={production:"https://api.adstage.app",beta:N(391)};function F(){const t=["getBaseUrl","/events/track","https://beta-api.adstage.app","792124yEUBFE","track","1943953GSslrm","60GZmIPd","registerAttribution","events","list","13570VgGoxu","822saZSpl","baseUrl","detail","14yVLgix","1132536MljWYT","startsWith","1614870qoFjsW","production","187437iPgVIS","custom","/events/register/attribution","advertisements","1177443Pvkorx","/advertisements/events","2krBtZM"];return(F=function(){return t})()}N(381);const K={advertisements:{list:"/advertisements/list",detail:"/advertisements",events:N(387)},events:{track:N(390),registerAttribution:N(384)}};class j{constructor(t){const e=N;this[e(385)]={list:()=>""+this[e(401)]+K.advertisements[e(398)],detail:t=>""+this[e(401)]+K[e(385)][e(402)]+"/"+t,events:(t,n)=>""+this.baseUrl+K.advertisements[e(397)]+"/"+t+"/"+n},this[e(397)]={track:()=>""+this[e(401)]+K[e(397)][e(393)],registerAttribution:()=>""+this.baseUrl+K[e(397)][e(396)]},this[e(401)]=t||V.production}setBaseUrl(t){this[N(401)]=t}[N(389)](){return this[N(401)]}[N(383)](t){const e=N;return""+this[e(401)]+(t[e(405)]("/")?t:"/"+t)}}const H=new j;var W=Y;function Y(t,e){var n=X();return(Y=function(t,e){return n[t-=363]})(t,e)}function X(){var t=["🎯 Triggering VIEWABLE event for slide change: ad ","trackSlideViewable","🎯 Triggering initial VIEWABLE event: ad ","log","66TtSrko","4XxHMtO","8026600EeoiiU","VIEWABLE","121ovONew"," (index: 0) in slot: ","652841OBJmyM","332379roBJqp",") in slot: ","1504600AggnUe","2XxTElJ","1062sHPwsZ","508183xfqIVf","78312tkxcmR","_id","4274556xiBbay"];return(X=function(){return t})()}!function(){for(var t=Y,e=X();;)try{if(901464===-parseInt(t(379))/1*(-parseInt(t(377))/2)+parseInt(t(374))/3+-parseInt(t(368))/4*(parseInt(t(369))/5)+parseInt(t(367))/6*(-parseInt(t(373))/7)+-parseInt(t(380))/8*(parseInt(t(378))/9)+parseInt(t(376))/10+-parseInt(t(371))/11*(-parseInt(t(382))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class G{static[W(364)](t,e,n,r,s=!1){var o=W;s&&console[o(366)](o(363)+t[o(381)]+" (index: "+n+o(375)+e.id),r(t[o(381)],e.id,i[o(370)])}static trackInitialSlideViewable(t,e,n,r=!1){var s=W;r&&console[s(366)](s(365)+t[s(381)]+s(372)+e.id),n(t[s(381)],e.id,i[s(370)])}}function q(t,e){const n=Q();return(q=function(t,e){return n[t-=342]})(t,e)}const J=q;!function(){const t=q,e=Q();for(;;)try{if(654111===-parseInt(t(354))/1*(-parseInt(t(347))/2)+parseInt(t(350))/3*(parseInt(t(352))/4)+parseInt(t(369))/5+parseInt(t(365))/6+parseInt(t(358))/7*(parseInt(t(372))/8)+parseInt(t(368))/9+-parseInt(t(356))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Z{static[J(363)](t,e,n,r,s=!1,o){const a=J;e[a(342)]&&(t[a(367)].cursor="pointer",t[a(360)](a(364),t=>{const c=a;if(t.preventDefault(),t[c(362)](),r&&r(e[c(357)],n.id,i[c(353)]),window[c(373)](e.linkUrl,c(370)),s){const t=o||String(n[c(355)])[c(345)]();console.log("🔗 "+t+c(346)+e[c(357)]+c(366)+e[c(342)])}}))}static addClickEventForRenderer(t,e,n,r,s=!1,o){const a=J;e.linkUrl&&(t[a(367)][a(344)]=a(343),t.addEventListener(a(364),t=>{const c=a;t[c(348)](),t[c(362)]();if(r()(e[c(357)],n.id,i[c(353)]),window.open(e.linkUrl,c(370)),s){const t=o||String(n[c(355)])[c(345)]();console[c(371)](c(349)+t+c(346)+e[c(357)]+c(366)+e[c(342)])}}))}static[J(361)](t,e,n,r,s=!1,o){this[J(363)](t,e,n,r,s,o)}static[J(359)](t){return Boolean(t[J(342)])}static addClickEventsBatch(t,e,n,r,s=!1,o){const i=J;t[i(351)]((t,a)=>{const c=i,l=e[a];l&&this[c(363)](t,l,n,r,s,o)})}}function Q(){const t=["248qGHcjG","CLICK","59XdNymY","adType","29400930XLrSHd","_id","212737vPHPTH","isClickable","addEventListener","addClickEventForSlider","stopPropagation","addClickEvent","click","2545296gWHkIB"," -> ","style","10107045VCnRaZ","582575GTWJGd","_blank","log","232SDXMio","open","linkUrl","pointer","cursor","toLowerCase"," ad clicked: ","10894AcWkEI","preventDefault","🔗 ","35214MOgucW","forEach"];return(Q=function(){return t})()}const $=et;function tt(){const t=["0.7","addEventListener","relative","1px dashed #ccc","appendChild","display","body","50px","imageUrl","touchend","auto","color","borderColor","adstage-dot","setProperty","1px solid #666","active","adstage-slide","VIDEO","objectFit","border","style","trackSlideViewable","getBoundingClientRect","mouseleave","className","cssText","data-adstage-ad-id","overflow","add","entries","button","Text Ad","5910utDpAl","hidden","padding","100px","backgroundColor","createElement","center","videoUrl","adstage-slider-wrapper","Banner Ad","abs","addTouchSupport","block","white","cover","5ykYKCR","touches","forEach","createSliderContainer","904DyxmQR","6033618VwcogY","654378HnnygD","adType","BANNER","26761SeILos","width","mouseenter","toLowerCase","every","height","2558016XKNeKQ","clientX","src","inline-block"," Ad",".adstage-dot","#f0f0f0","div","whiteSpace","transform 0.4s ease-out","remove","translateX(-","TEXT","6347XiufII","adstage-slide-container","transform","adstage-dots","transition","includes","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","Video Ad","querySelectorAll","background","setAttribute","none","#999999","\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ","removeChild","contains","opacity","click","video","children","8px","14px","classList","0.9","100%","flex","string","length","17EKywAL","img","touchmove","#666666","1559823mfQcSH","createSimpleAdElement","createMinimalDotIndicator","touchstart","#f9f9f9","85262hokRWY","fontSize","autoSlideInterval","#cccccc","#000","textContent"];return(tt=function(){return t})()}function et(t,e){const n=tt();return(et=function(t,e){return n[t-=491]})(t,e)}!function(){const t=et,e=tt();for(;;)try{if(393497===parseInt(t(586))/1*(parseInt(t(595))/2)+parseInt(t(590))/3+-parseInt(t(545))/4+-parseInt(t(530))/5*(parseInt(t(536))/6)+parseInt(t(539))/7*(-parseInt(t(534))/8)+parseInt(t(535))/9+-parseInt(t(515))/10*(parseInt(t(558))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class nt{static createSimpleAdElement(e,n){const r=et,s=document[r(520)](r(552));switch(s[r(507)]="adstage-ad adstage-"+String(e[r(537)])[r(542)](),s.setAttribute(r(509),n._id),s[r(568)]("data-adstage-slot-id",e.id),s[r(503)][r(606)]=r(527),s[r(503)][r(540)]=r(582),s[r(503)][r(544)]=r(492),e[r(537)]){case t[r(538)]:if(n.imageUrl){const t=document[r(520)](r(587));t[r(547)]=n[r(609)],t.style[r(540)]="100%",t[r(503)].height=r(492),t[r(503)][r(501)]=r(529),s[r(605)](t)}else s.style[r(544)]=r(518),s[r(503)].backgroundColor=r(551),s[r(503)][r(502)]="1px dashed #ccc",s[r(600)]=r(524);break;case t[r(500)]:if(n.videoUrl){const t=document[r(520)](r(576));t.src=n[r(522)],t[r(503)][r(540)]=r(582),t[r(503)][r(544)]=r(492),s[r(605)](t)}else s[r(503)].height="200px",s[r(503)][r(519)]=r(599),s[r(503)][r(502)]=r(497),s.textContent=r(565),s[r(503)][r(493)]=r(528);break;case t[r(557)]:if(n[r(600)]){const t=document[r(520)](r(552));t[r(600)]=n[r(600)]||"",t.style[r(517)]=r(578),t[r(503)][r(596)]=r(579),s[r(605)](t)}else s[r(503)][r(544)]=r(608),s[r(503)][r(517)]=r(578),s.textContent=r(514);break;default:s.style[r(544)]=r(518),s[r(503)][r(502)]=r(604),s[r(503)].backgroundColor=r(594),s[r(600)]=e[r(537)]+r(549)}return s}static[$(533)](e,n,r,s,o=!1){const i=$,a=document[i(520)](i(552));a[i(507)]=i(523);const c={position:i(603),overflow:i(516)};if(e.width&&0!==e[i(540)]){let t;t=typeof e[i(540)]===i(584)?e[i(540)][i(563)]("px")||e[i(540)].includes("%")?e[i(540)]:e[i(540)]+"px":e.width+"px",c[i(540)]=t,c[i(606)]=i(548)}else c[i(606)]="inline-block";if(e.height&&0!==e[i(544)]){const t=typeof e.height===i(584)?e[i(544)]:e[i(544)]+"px";c[i(544)]=t}Object[i(512)](c)[i(532)](([t,e])=>{const n=i;a.style[n(496)](t,e)});const l=!e[i(540)]||0===e[i(540)],d=!e[i(544)]||0===e[i(544)];if(l||d){const t=document[i(520)](i(552));if(t[i(503)].cssText=i(564),!l&&e[i(540)]){let n;n=typeof e[i(540)]===i(584)&&(e[i(540)][i(563)]("px")||e[i(540)][i(563)]("%"))?e.width:e[i(540)]+"px",t[i(503)].width=n,t[i(503)][i(553)]="normal"}document.body[i(605)](t);let r=0,s=0;n[i(532)](n=>{const o=i,a=this[o(591)](e,n);t[o(605)](a);const c=a[o(505)]();c[o(540)]>r&&(r=c[o(540)]),c[o(544)]>s&&(s=c.height),t[o(572)](a)}),l&&r>0&&(a[i(503)][i(540)]=r+"px",c[i(540)]=r+"px"),d&&s>0&&(a[i(503)][i(544)]=s+"px",c[i(544)]=s+"px"),document[i(607)][i(572)](t)}const u=[...n,n[0]],p=document.createElement("div");p[i(507)]=i(559);const h={display:"flex",transition:i(554),width:100*u[i(585)]+"%"};e[i(544)]&&0!==e[i(544)]&&(h[i(544)]=i(582)),Object[i(512)](h).forEach(([t,e])=>{const n=i;p.style[n(496)](t,e)}),u[i(532)]((t,n)=>{const r=i,a=document[r(520)](r(552));a[r(507)]=r(499);const c={width:100/u[r(585)]+"%","flex-shrink":"0",display:r(583),"align-items":r(521),"justify-content":r(521)};e[r(544)]&&0!==e[r(544)]&&(c[r(544)]=r(582)),Object[r(512)](c)[r(532)](([t,e])=>{const n=r;a.style[n(496)](t,e)});const l=this[r(591)](e,t);Z.addClickEventForSlider(l,t,e,s,o,String(e[r(537)])[r(542)]()),a[r(605)](l),p[r(605)](a)});const f=n[i(543)](e=>e.adType===t[i(557)])?null:this[i(592)](n.length);let g=0;const m=n[i(585)],y=1e3*(r?.[i(597)]||3),v=(t,r=!1)=>{const a=i;g=t,r?p[a(503)].transition=a(569):p[a(503)][a(562)]=a(554),p[a(503)][a(560)]=a(556)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(566)](a(550))[a(532)]((t,e)=>{const n=a,r=t;e===c?(r[n(580)][n(511)](n(498)),r[n(503)][n(567)]="#666666",r[n(503)].borderColor=n(589),r[n(503)].opacity="1"):(r[n(580)][n(555)]("active"),r.style[n(567)]="transparent",r[n(503)][n(494)]=n(598),r.style.opacity=n(601))})}G[a(504)](n[c],e,c,s,o)},I=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[i(566)](i(550))[i(532)]((t,e)=>{const n=i;t[n(602)](n(575),()=>v(e))})}let b=setInterval(()=>{v(g+1),I()},y);return a[i(602)](i(541),()=>{clearInterval(b)}),a[i(602)](i(506),()=>{b=setInterval(()=>{v(g+1),I()},y)}),this[i(526)](p,v,()=>g,m,I),a[i(605)](p),f&&a.appendChild(f),v(0),(!e[i(540)]||0===e[i(540)])&&setTimeout(()=>{const t=i,n=p[t(577)][0];if(n){const r=n[t(577)][0];if(r){const n=r[t(505)]();a[t(503)].width=n[t(540)]+"px",(!e.height||0===e[t(544)])&&(a.style.height=n[t(544)]+"px"),a[t(503)][t(510)]="hidden"}}},10),a}static[$(592)](t){const e=$,n=document.createElement(e(552));n[e(507)]=e(561),n[e(503)][e(508)]=e(571);for(let r=0;r<t;r++){const t=document[e(520)](e(513));t[e(507)]=e(495),t[e(503)][e(508)]="\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ",t[e(602)](e(541),()=>{const n=e;!t[n(580)].contains(n(498))&&(t.style[n(494)]=n(570),t.style[n(574)]=n(581))}),t[e(602)]("mouseleave",()=>{const n=e;!t.classList[n(573)](n(498))&&(t[n(503)][n(494)]=n(598),t[n(503)].opacity=n(601))}),n[e(605)](t)}return n}static[$(526)](t,e,n,r,s){const o=$;let i=0,a=!1;t.addEventListener(o(593),t=>{i=t[o(531)][0].clientX,a=!0}),t[o(602)](o(588),t=>{a&&t.preventDefault()}),t[o(602)](o(491),t=>{const c=o;if(!a)return;a=!1;const l=t.changedTouches[0][c(546)],d=i-l;if(Math[c(525)](d)>50){const t=n();if(d>0){e(t+1),s&&s()}else{e(t>0?t-1:r-1)}}})}}const rt=st;function st(t,e){const n=ot();return(st=function(t,e){return n[t-=439]})(t,e)}function ot(){const t=["delete","124113mRjcMu"," in slot ","246886JXdMgs","has","clearAdViewable","54caikpG","8561645yzUIiw","4540cIyolM","isDuplicateViewable","51pvVzvZ","clear","add","✅ New viewable recorded for ad ","132322CUOqmQ","6680772CJcJqL","log","1438192yhzvjq","6iHbXKT","viewableTracker","5208133EQFEZO"];return(ot=function(){return t})()}!function(){const t=st,e=ot();for(;;)try{if(960554===-parseInt(t(452))/1+parseInt(t(442))/2*(parseInt(t(459))/3)+parseInt(t(443))/4+parseInt(t(456))/5*(parseInt(t(446))/6)+parseInt(t(448))/7+parseInt(t(445))/8*(parseInt(t(455))/9)+-parseInt(t(457))/10*(parseInt(t(450))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static[rt(458)](t,e,n=!1){const r=rt,s=t+"_"+e;return it[r(447)][r(453)](s)?(n&&console[r(444)]("Duplicate viewable blocked for ad "+t+" in slot "+e),!0):(it[r(447)][r(440)](s),n&&console.log(r(441)+t+r(451)+e),!1)}static[rt(439)](){const t=rt;it.viewableTracker[t(439)]()}static[rt(454)](t,e){const n=rt,r=t+"_"+e;it.viewableTracker[n(449)](r)}}it[rt(447)]=new Set;const at=ct;function ct(t,e){const n=lt();return(ct=function(t,e){return n[t-=414]})(t,e)}function lt(){const t=["log","560120XnoubM","35RIIQlt","border","querySelector","data-adstage-container","applyPlaceholderStyle","closest"," event for ad ","minHeight","setAttribute","string","4px","⚠️ AdvertisementEventTracker not available for ","containerId","1061360BATLje","unknown","): ","875768zDyxZN","hasAttribute","getContainerHeight","advertisementEventTracker","createElement"," for ad "," x ","2px dashed #e74c3c","data-adstage-slot","#e74c3c",'[class*="banner"]',"auto","color","6px","none","📦 Placeholder created for ","true","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","1px solid rgba(0, 0, 0, 0.08)",'div[style*="height"]'," in slot ",'div[style*="min-height"]','[class*="ad"]',"warn","generic","✅ New viewable recorded for ad ","alignItems"," event","2609370jItXWr","flex","196454ZPXSuS","createEmptyContainer","debug","createPlaceholder","contains","borderRadius","1409067eDFbnb","isDuplicateViewable",'[class*="container"]',"<span>Loading ","🚫 Duplicate viewable blocked for ad ","⚠️ Created empty ",") - Mode: ","style","100%","className","subtle","appendChild","transparent","1px dashed #ccc"," slot: ","width","div","invisible","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","display","calculateAdSize","parentElement","center","getAttribute","#666","toLowerCase","createEventTrackingCallback",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"adType","filter","getDefaultHeight",".adstage-slot","justifyContent"," container: ","adstage-slot","adstage-slot adstage-","📏 Using default height ","VIEWABLE","adstage-official","innerHTML","px)",'[data-adstage-container="true"]',"fontSize","height",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"fontFamily","11px"," ad...</span>","renderFallback","data-adstage-type","getElementById",".adstage-","3088685YOahig","backgroundColor","monospace","placeholderMode","minimal","adstage-slot adstage-empty adstage-","getComputedStyle"];return(lt=function(){return t})()}!function(){const t=ct,e=lt();for(;;)try{if(326596===parseInt(t(446))/1+parseInt(t(526))/2+parseInt(t(452))/3+-parseInt(t(512))/4+-parseInt(t(504))/5+parseInt(t(444))/6+-parseInt(t(513))/7*(parseInt(t(416))/8))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class dt{constructor(t,e=!1,n){const r=ct;this[r(480)]=t,this[r(448)]=e,this[r(419)]=n||null}[at(449)](t,e,n,r){const s=at,o=document[s(420)](s(468));o.id=e,o.className=s(487)+String(this[s(480)]).toLowerCase(),o[s(521)]("data-adstage-container","true"),o[s(521)](s(501),String(this.adType)),o[s(521)](s(424),e);const{width:i,height:a}=this[s(472)](t,n,r)||{width:s(460),height:this[s(482)]()};o[s(459)].width=i,o.style[s(495)]=a;const c=r?.placeholderMode||n[s(507)]||"invisible";this[s(517)](o,c),t[s(463)](o),this[s(448)]&&console[s(511)](s(431)+this[s(480)]+s(466)+e+" ("+i+s(422)+a+s(458)+c)}[at(517)](t,e){const n=at;switch(e){case n(469):t[n(459)][n(505)]=n(464),t[n(459)][n(514)]=n(430),t[n(459)].opacity="0",t[n(491)]="";break;case"transparent":t[n(459)].backgroundColor=n(464),t[n(459)][n(514)]=n(430),t[n(459)][n(471)]="block",t[n(491)]="";break;case n(462):t[n(459)][n(505)]="rgba(0, 0, 0, 0.02)",t.style[n(514)]="none",t[n(459)][n(451)]=n(523),t[n(459)][n(471)]=n(445),t[n(459)][n(442)]=n(474),t[n(459)][n(484)]="center",t[n(491)]=n(479);break;case n(508):t[n(459)].backgroundColor="rgba(248, 249, 250, 0.5)",t.style[n(514)]=n(434),t[n(459)][n(451)]=n(429),t[n(459)][n(471)]="flex",t.style[n(442)]=n(474),t[n(459)].justifyContent=n(474),t[n(491)]=n(496);break;case n(448):t[n(459)][n(514)]=n(423),t.style.display=n(445),t[n(459)][n(442)]=n(474),t[n(459)].justifyContent=n(474),t.style[n(505)]="rgba(231, 76, 60, 0.1)",t[n(459)][n(428)]=n(425),t[n(459)][n(497)]=n(506),t[n(459)][n(494)]=n(498),t[n(491)]=n(455)+this[n(480)]+n(499);break;default:t.style[n(514)]=n(465),t[n(459)].display=n(445),t[n(459)][n(442)]="center",t[n(459)].justifyContent=n(474),t.style[n(505)]="#f9f9f9",t.style[n(428)]=n(476),t.innerHTML=n(455)+this.adType+n(499)}}[at(472)](t,e,n){const r=at,s=e[r(467)],o=e.height;let i,a;if(i="number"==typeof s?s+"px":typeof s===r(522)?s:r(460),"number"==typeof o)a=o+"px";else if(typeof o===r(522)&&o!==r(460)&&o!==r(427))a=o;else{const e=this[r(418)](t);e>0?(a="100%",(n?.debug||this.debug)&&console.log("📏 Using 100% height (container: "+e+r(492))):(a=this[r(482)](),(n?.[r(448)]||this[r(448)])&&console[r(511)](r(488)+a+" for "+this[r(480)]))}return{width:i,height:a}}[at(418)](t){const e=at,n=window[e(510)](t),r=parseFloat(n[e(495)]);if(!r||0===r){const r=parseFloat(n[e(520)]);if(r>0)return r;if(t[e(459)][e(495)]&&t.style[e(495)]!==e(427)){const n=parseFloat(t[e(459)].height);if(n>0)return n}const s=t[e(475)](e(495));if(s){const t=parseFloat(s);if(t>0)return t}}return r||0}[at(478)](){return async(t,e,n)=>{const r=ct;if(n===i[r(489)]){if(it[r(453)](t,e,this[r(448)]))return void(this[r(448)]&&console[r(511)](r(456)+t+r(436)+e));this[r(448)]&&console.log(r(441)+t+r(436)+e)}if(this.advertisementEventTracker)try{this[r(448)]&&console.log("🔄 Starting advertisement event tracking: "+n+r(421)+t+r(436)+e),await this[r(419)].trackAdvertisementEvent(t,e,n),this.debug&&console[r(511)]("📊 Advertisement event tracked: "+n+r(421)+t+" in slot "+e)}catch(e){this[r(448)]&&console.error("❌ Failed to track "+n+r(519)+t+":",e)}else this[r(448)]&&console[r(439)](r(524)+n+r(443))}}[at(500)](t){const e=at,n=document[e(502)](t.id);if(n){const r=[...[n[e(515)]('[data-adstage-container="true"]'),n.closest(e(493)),n][e(481)](t=>t&&t[e(417)](e(516))),...[n[e(518)](e(483)),n[e(518)](e(503)+String(this[e(480)])[e(477)]()),n[e(518)](e(438)),n[e(518)](e(426)),n[e(518)](e(454)),n.closest(e(435)),n.closest(e(437)),n[e(473)]][e(481)](Boolean)][0];if(r){let n=e(414);n=r[e(417)](e(516))?e(490):r.classList[e(450)](e(486))?"adstage-class":e(440),r[e(459)].cssText+=e(470),r[e(491)]="",r[e(521)]("data-adstage-empty","true"),this[e(448)]&&console[e(439)]("⚠️ "+this[e(480)]+" container collapsed ("+n+e(415)+t.id,r)}else this[e(447)](t)}t.advertisement=void 0,t.isEmpty=!0}[at(447)](t){const e=at,n=document[e(502)](t[e(525)]);if(n){n[e(491)]="";const r=document[e(420)](e(468));r.id=t.id,r[e(461)]=e(509)+String(this[e(480)]).toLowerCase(),r[e(521)](e(516),e(432)),r[e(521)]("data-adstage-empty","true"),r.setAttribute(e(424),t.id),r[e(459)].cssText=e(433),n[e(463)](r),this[e(448)]&&console[e(439)](e(457)+this.adType+e(485)+t.id)}}[at(511)](t,...e){const n=at;this[n(448)]&&console[n(511)]("["+this[n(480)]+"] "+t,...e)}}const ut=pt;function pt(t,e){const n=ft();return(pt=function(t,e){return n[t-=340]})(t,e)}!function(){const t=pt,e=ft();for(;;)try{if(122766===parseInt(t(446))/1*(parseInt(t(372))/2)+parseInt(t(392))/3*(parseInt(t(396))/4)+parseInt(t(391))/5*(parseInt(t(437))/6)+parseInt(t(398))/7+parseInt(t(355))/8*(parseInt(t(413))/9)+parseInt(t(348))/10+-parseInt(t(409))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ht extends dt{constructor(e=!1,n){super(t.BANNER,e,n)}[ut(438)](){return ut(385)}async[ut(377)](t,e){const n=ut,r=document[n(375)](t.containerId);if(!r)return;const s=document[n(445)](n(369));s[n(448)]=n(341);const o=t.optimizedHeight,i=r[n(395)]||r;if(o)s[n(452)][n(363)]="100%",s[n(452)][n(401)]=String(o);else{const e=t[n(365)],r={width:e?.[n(363)],height:e?.height},{width:o,height:a}=this[n(379)](i,r,{debug:this[n(393)]});s[n(452)][n(363)]=o,s[n(452)][n(401)]=a}e[n(384)]?await this[n(388)](s,e,t):s[n(430)]=n(374)+(e[n(387)]||n(394))+n(371),Z[n(436)](s,e,t,()=>this[n(403)](),this[n(393)],n(381)),r.innerHTML="",r[n(349)](s)}async[ut(423)](t,e){const n=ut,r=document[n(375)](t.containerId);if(!r)throw new Error(n(342)+t[n(431)]);await this[n(358)](t,e);const s=this[n(403)](),o={autoSlideInterval:(t.config?.[n(429)]||5e3)/1e3,...t.config,optimizedHeight:t[n(373)],aspectRatio:t[n(411)]},i=nt[n(359)](t,e,o,s,this.debug);i&&(r[n(430)]="",r[n(349)](i),this[n(393)]&&console[n(435)]("🎠 Banner carousel created for slot: "+t.id+n(368)+e[n(406)]+n(433)+(t[n(373)]||"default")+")"))}async[ut(345)](t,e){const n=ut;if(!t[n(406)])return{width:n(408),height:this[n(438)](),aspectRatio:16/9};try{const r=(await Promise[n(350)](t.filter(t=>t.imageUrl)[n(362)](t=>this[n(364)](t[n(384)]))))[n(378)](t=>"fulfilled"===t[n(366)])[n(362)](t=>t[n(410)]);if(0===r.length)return{width:n(408),height:this[n(438)](),aspectRatio:16/9};const s=this.selectOptimalSizeStrategy(r),o=this[n(443)](r,e,s);return this.debug&&console.log(n(425)+e+"x"+o+n(346)+s+")"),{width:"100%",height:o+"px",aspectRatio:e/o}}catch(t){return console[n(439)](n(405),t),{width:n(408),height:this[n(438)](),aspectRatio:16/9}}}async[ut(358)](t,e){const n=ut;try{const r=document.getElementById(t.containerId),s=document[n(375)](t.id);if(!r||!s)return;const o=r[n(367)]()[n(363)]||300,i=await this.calculateOptimalContainerSize(e,o);s[n(452)][n(401)]=i[n(401)],t[n(373)]=i[n(401)],t[n(411)]=i[n(411)],this.debug&&console[n(435)](n(356)+e[n(406)]+n(422)+i[n(401)])}catch(t){console[n(439)](n(432),t)}}selectOptimalSizeStrategy(t){const e=ut,n=t[e(362)](t=>t[e(363)]/t[e(401)]),r=new Map;n[e(440)](t=>{const n=e,s=(Math[n(424)](10*t)/10)[n(428)]();r[n(441)](s,(r[n(347)](s)||0)+1)});const s=Math.max(...r[e(449)]()),o=t.length;if(s/o>=.7)return e(390);const i=[16/9,4/3,1,1.5],a=n[e(378)](t=>i[e(402)](n=>Math[e(400)](t-n)<.1))[e(406)];return e(a/o>=.5?417:370)}[ut(443)](t,e,n){const r=ut,s=t.map(t=>t[r(363)]/t.height);switch(n){case"dominant":{const t=new Map;s[r(440)](e=>{const n=r,s=Math[n(424)](10*e)/10,o=s.toString(),i=t[n(347)](o);i?i.count++:t[n(441)](o,{ratio:s,count:1})});const n=Array.from(t[r(449)]())[r(427)]((t,e)=>e.count>t[r(414)]?e:t);return Math[r(424)](e/n[r(418)])}case r(417):{const t=[{ratio:16/9,name:r(353)},{ratio:4/3,name:r(416)},{ratio:1,name:r(434)},{ratio:1.5,name:r(397)}],n=s[r(427)]((t,e)=>t+e,0)/s[r(406)],o=t[r(427)]((t,e)=>Math[r(400)](e[r(418)]-n)<Math[r(400)](t[r(418)]-n)?e:t);return this.debug&&console.log("📊 Using standard ratio: "+o.name+" (avg: "+n[r(352)](2)+")"),Math[r(424)](e/o[r(418)])}case r(370):default:{const t=s[r(427)]((t,e)=>t+e,0)/s.length;return Math.round(e/t)}}}[ut(364)](t){return new Promise((e,n)=>{const r=pt,s=new Image;s[r(421)]=()=>{const t=r;e({width:s[t(351)],height:s[t(399)]})},s[r(376)]=()=>{n(new Error(r(450)+t))},s.src=t})}[ut(419)](t,e,n){const r=ut,s=e/n;Math.abs(s-1)<.1?(t[r(452)].objectFit=r(415),t[r(452)][r(451)]="center"):s>1.3?(t[r(452)][r(407)]=r(412),t[r(452)].objectPosition="center",t[r(452)][r(404)]="#f0f0f0"):s<.7?(t[r(452)].objectFit=r(415),t[r(452)][r(451)]=r(386)):(t[r(452)][r(407)]=r(415),t[r(452)][r(451)]=r(386)),this.debug&&console[r(435)](r(344)+t.style[r(407)]+r(426)+s[r(352)](2))}async renderOptimizedBannerImage(t,e,n){const r=ut,s=document[r(445)](r(382));s[r(452)].width="100%",s[r(452)][r(401)]=r(408),s[r(452)][r(360)]=r(420),s[r(452)][r(354)]=r(442),s.alt=e.title||r(447),t[r(430)]=r(389);try{if(!e[r(384)])throw new Error(r(444));const o=await this[r(364)](e[r(384)]),i=t.getBoundingClientRect(),a=i.width,c=i[r(401)];this[r(393)]&&(console.log(r(380)+o.width+"x"+o[r(401)]),console[r(435)]("📦 Banner container dimensions: "+a+"x"+c));const l=o[r(363)]/o[r(401)],d=a/c;return this[r(419)](s,l,d),s[r(340)]=e[r(384)],t[r(430)]="",t.appendChild(s),Z[r(436)](s,e,n,()=>this[r(403)](),this[r(393)],r(381)),this.debug&&console.log(r(383)+e[r(361)]),s}catch(o){return console[r(343)](r(357),o),e.imageUrl&&(s[r(340)]=e[r(384)],s[r(452)].objectFit=r(415),s[r(452)][r(451)]=r(386),t[r(430)]="",t[r(349)](s),Z[r(436)](s,e,n,()=>this[r(403)](),this.debug,r(381))),s}}}function ft(){const t=["backgroundColor","Failed to calculate optimal banner size, using defaults:","length","objectFit","100%","3653903dEDrOQ","value","aspectRatio","contain","81VxmgvY","count","cover","4:3","common","ratio","applyOptimizedImageStyle","block","onload"," ads: ","renderMultipleAds","round","📐 Optimal banner container calculated: ",", ratio=","reduce","toString","slideInterval","innerHTML","containerId","Banner container optimization failed, using default size:"," ads (optimized: ","1:1","log","addClickEventForRenderer","32952kuhzQR","getDefaultHeight","warn","forEach","set","8px","calculateOptimalHeight","Image URL is not provided","createElement","41pauFqu","Banner Advertisement","className","values","Failed to load image: ","objectPosition","style","src","adstage-ad adstage-banner-ad","Container not found: ","error","🎨 Banner image style applied: objectFit=","calculateOptimalContainerSize"," (strategy: ","get","1067350xQljBB","appendChild","allSettled","naturalWidth","toFixed","16:9","borderRadius","12504ZMwhZd","🔧 Banner container optimized for ","❌ Failed to load optimized banner image:","optimizeContainerForBannerAds","createSliderContainer","display","_id","map","width","loadImageDimensions","config","status","getBoundingClientRect"," with ","div","average","</div>","1756ywKWgP","optimizedHeight","<div>","getElementById","onerror","renderAdElement","filter","calculateAdSize","📸 Banner image dimensions: ","Banner","img","✅ Optimized banner image rendered for ad: ","imageUrl","250px","center","title","renderOptimizedBannerImage",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"dominant","205kekKnL","96999rrGKiY","debug","Banner Ad","parentElement","8ZGFrmk","3:2","58107zoOHec","naturalHeight","abs","height","some","createEventTrackingCallback"];return(ft=function(){return t})()}const gt=yt;function mt(){const t=["10lGbGMI","430902GiMBnL","6ECHsBM","30rjJEEy","4142259HvjHuC","textContent","1409890TvoAEd","2007ArpnGw","title","85626rAakqD","2957486haYrbl","\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n ","15776jqzRDA","createTextAdStyles","5036WbsOCH"];return(mt=function(){return t})()}function yt(t,e){const n=mt();return(yt=function(t,e){return n[t-=444]})(t,e)}!function(){const t=yt,e=mt();for(;;)try{if(229084===-parseInt(t(446))/1+parseInt(t(453))/2+parseInt(t(455))/3*(-parseInt(t(451))/4)+-parseInt(t(458))/5*(parseInt(t(454))/6)+-parseInt(t(447))/7+-parseInt(t(449))/8*(-parseInt(t(444))/9)+parseInt(t(452))/10*(parseInt(t(456))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class vt{static[gt(450)](t=!1){return gt(448)}static setTextAdContent(t,e){const n=gt,r=e[n(457)]||e[n(445)]||"";t[n(457)]=r}}const It=bt;function bt(t,e){const n=wt();return(bt=function(t,e){return n[t-=256]})(t,e)}function wt(){const t=["createSimpleAdElement","height: 100%;","touchend","mouseleave","8pSqsvE","top","clientY","preventDefault","addTouchSupport","touchmove","clientX","touchstart","height: auto;","autoSlideInterval","length","absolute","left","forEach","cssText","createTextTransitionContainer","auto","1365623LPSEGk","block","style","addEventListener","transform","position","width","appendChild","21857180ObSuTX","376pnYIdV","translateY(20px)","235340QrFtkW","_id","getBoundingClientRect","toLowerCase","data-adstage-ad-id","normal","div","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","removeChild","minHeight","22kBBXgR","adstage-fade-slide","createElement","adstage-fade-slide-container","hidden","body","height",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","zIndex",";\n width: 100%;\n ","className","24FdWkiE","push","3357132CZwKYi","whiteSpace","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","\n position: ","setTextAdContent","adType","abs","changedTouches","3880548djGOTB","trackSlideViewable","adstage-fade-slider-wrapper","relative","translateY(0)","opacity","height: auto; min-height: fit-content;","411406ZrVzcl",";\n ","touches","16569VnKLtO","string","Text",";\n left: ","fit-content","includes"];return(wt=function(){return t})()}!function(){const t=bt,e=wt();for(;;)try{if(849741===parseInt(t(260))/1+-parseInt(t(324))/2+-parseInt(t(332))/3+parseInt(t(273))/4*(-parseInt(t(301))/5)+-parseInt(t(322))/6*(parseInt(t(290))/7)+parseInt(t(299))/8*(-parseInt(t(263))/9)+parseInt(t(298))/10*(parseInt(t(311))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class kt{static[It(269)](t,e){const n=It,r=document.createElement(n(307));return r[n(321)]="adstage-ad adstage-"+String(t[n(329)])[n(304)](),r.setAttribute(n(305),e[n(302)]),r.setAttribute("data-adstage-slot-id",t.id),r[n(292)][n(287)]=vt.createTextAdStyles(!0),vt[n(328)](r,e),r}static[It(288)](t,e,n,r,s=!1){const o=It,i=t[o(317)]&&0!==t[o(317)]&&t[o(317)]!==o(289),a=document[o(313)]("div");a[o(321)]=o(334);const c={position:o(256),overflow:o(315),display:o(291)};if(!i&&(c.height=o(289),c[o(310)]=o(267)),t[o(296)]&&0!==t[o(296)]){let e;e=typeof t[o(296)]===o(264)&&(t.width[o(268)]("px")||t[o(296)][o(268)]("%"))?t[o(296)]:t[o(296)]+"px",c.width=e}if(t[o(317)]&&0!==t[o(317)]&&t[o(317)]!==o(289)&&i){let e;e=typeof t.height===o(264)&&(t[o(317)][o(268)]("px")||t[o(317)][o(268)]("%"))?t[o(317)]:t[o(317)]+"px",c.height=e}Object.entries(c).forEach(([t,e])=>{a[o(292)].setProperty(t,e)});const l=document[o(313)](o(307));l[o(321)]=o(314),l[o(292)].cssText="\n position: relative;\n width: 100%;\n "+(i?"height: 100%;":o(259))+"\n ";let d=null;const u=!t[o(296)]||0===t.width,p=!t[o(317)]||0===t[o(317)]||void 0===t.height||"auto"===t[o(317)];if(u||p&&i){if(d=document[o(313)](o(307)),d[o(292)][o(287)]=o(308),!u&&t[o(296)]){let e;e="string"==typeof t.width?t.width[o(268)]("px")||t.width.includes("%")?t[o(296)]:t.width+"px":t[o(296)]+"px",d.style[o(296)]=e,d.style[o(325)]=o(306)}document[o(316)][o(297)](d);let n=0,r=0;e[o(286)](e=>{const s=o,i=this.createSimpleAdElement(t,e);d[s(297)](i);const a=i[s(303)]();a[s(296)]>n&&(n=a.width),a.height>r&&(r=a[s(317)]),d[s(309)](i)}),u&&n>0&&(a[o(292)][o(296)]=n+"px"),p&&r>0&&i&&(a.style[o(317)]=r+"px"),document[o(316)].removeChild(d)}const h=[];e[o(286)]((e,n)=>{const a=o,c=document[a(313)](a(307));c[a(321)]=a(312);const d=i?"absolute":0===n?"relative":a(284);c[a(292)][a(287)]=a(327)+d+";\n top: "+("absolute"===d?"0":a(289))+a(266)+(d===a(284)?"0":a(289))+a(320)+a(i?270:281)+a(326)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":"20px")+a(318)+(0===n?"2":"1")+a(261);const u=this[a(269)](t,e);Z.addClickEventForSlider(u,e,t,r,s,a(265)),c[a(297)](u),l[a(297)](c),h[a(323)](c)});let f=0;const g=e[o(283)],m=1e3*(n?.[o(282)]||4),y=n=>{const a=o;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!i&&(c.style.position===a(256)&&(c.style.position="absolute",c[a(292)][a(274)]="0",c[a(292)][a(285)]="0"),l[a(292)].position="relative",l[a(292)].top="auto",l[a(292)].left="auto"),c.style.opacity="0",c[a(292)].transform="translateY(-20px)",c.style.zIndex="1",l.style[a(258)]="1",l[a(292)][a(294)]=a(257),l[a(292)][a(319)]="2",h.forEach((t,e)=>{const r=a;e!==n&&e!==f&&(t.style[r(258)]="0",t[r(292)][r(294)]=r(300),t[r(292)].zIndex="1",!i&&t.style[r(295)]===r(256)&&(t[r(292)][r(295)]="absolute",t[r(292)].top="0",t[r(292)][r(285)]="0"))}),f=n,G[a(333)](e[f],t,f,r,s)};let v=setInterval(()=>{y(f+1)},m);return a[o(293)]("mouseenter",()=>{clearInterval(v)}),a[o(293)](o(272),()=>{v=setInterval(()=>{y(f+1)},m)}),kt[o(277)](a,y,()=>f,g),a.appendChild(l),a}static addTouchSupport(t,e,n,r){const s=It;let o=0,i=0,a=!1;t[s(293)](s(280),t=>{const e=s;o=t[e(262)][0][e(279)],i=t[e(262)][0][e(275)],a=!0}),t.addEventListener(s(278),t=>{a&&t[s(276)]()}),t[s(293)](s(271),t=>{const r=s;if(!a)return;a=!1;const c=t.changedTouches[0][r(279)],l=t[r(331)][0][r(275)],d=o-c,u=i-l;if(Math[r(330)](d)>Math[r(330)](u)&&Math[r(330)](d)>50){const t=n();e(d>0?t+1:t-1)}})}}const Et=St;function St(t,e){const n=xt();return(St=function(t,e){return n[t-=297]})(t,e)}function xt(){const t=["length","1124450nEOMzM","cssText"," with ","adstage-ad adstage-text-ad","width","style","100%","className","-webkit-box","innerHTML","vertical","webkitBoxOrient","adstage-text-content","7140133TBZzQA","2748AkcqWa","806aUNETa","createEventTrackingCallback","height","229748zKeoUD","addClickEventForRenderer","number","TEXT","config","log","getElementById","renderAdElement","createTextAdStyles","containerId","✨ Text transition created for slot: ","24QPiNrK","createElement","optimizedHeight","display","div","15OAvhWC","createTextTransitionContainer","debug","setTextAdContent","12188cMEKbu","18JKdxvl","989bjeptl","calculateAdSize","60px","renderMultipleAds","27KPjYDv","getDefaultHeight","maxLines","✨ Single text ad rendered: ","parentElement","31318FFmszI","211098xPceBP","appendChild"];return(xt=function(){return t})()}!function(){const t=St,e=xt();for(;;)try{if(202472===parseInt(t(346))/1*(parseInt(t(321))/2)+parseInt(t(345))/3*(parseInt(t(324))/4)+parseInt(t(340))/5*(parseInt(t(303))/6)+-parseInt(t(302))/7*(parseInt(t(335))/8)+parseInt(t(297))/9*(-parseInt(t(306))/10)+parseInt(t(344))/11*(parseInt(t(320))/12)+-parseInt(t(319))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class At extends dt{constructor(e=!1,n){super(t[St(327)],e,n)}[Et(298)](){return Et(348)}async[Et(331)](t,e){const n=Et,r=document[n(330)](t[n(333)]);if(!r)return;const s=document[n(336)](n(339));s[n(313)]=n(309);const o=t[n(337)]