UNPKG

@adstage/web-sdk

Version:

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

1 lines 110 kB
var t,e,n,r,s,o,i,a,c,l,d,u;function p(){var t=["WEB","MOBILE","INTERSTITIAL","428aDkzNB","CLICK","VIDEO","DESKTOP","3831669PBQaek","7MMXgwb","20933YCnsoN","8ThXuFp","NATIVE","289234RzMApC","1757706OCzrJf","7377QnCQaM","VIEWABLE","TABLET","BANNER","POPUP","TEXT","2367865GkJvjN","5170lVyVly","376338nApVFU"];return(p=function(){return t})()}function h(t,e){var n=p();return(h=function(t,e){return n[t-=444]})(t,e)}function f(t,e){const n=v();return(f=function(t,e){return n[t-=217]})(t,e)}!function(){for(var t=h,e=p();;)try{if(239806===-parseInt(t(444))/1+parseInt(t(457))/2+-parseInt(t(459))/3*(-parseInt(t(448))/4)+parseInt(t(465))/5+parseInt(t(458))/6*(parseInt(t(453))/7)+parseInt(t(455))/8*(parseInt(t(452))/9)+parseInt(t(466))/10*(-parseInt(t(454))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=h)(462)]=n(462),e[n(463)]=n(463),e[n(447)]=n(447),e.NATIVE=n(456),e[n(450)]=n(450),e.TEXT=n(464),(s=r||(r={}))[(o=h)(445)]=o(445),s.MOBILE=o(446),(a=i||(i={}))[(c=h)(460)]=c(460),a[c(449)]=c(449),(d=l||(l={}))[(u=h)(451)]=u(451),d.MOBILE=u(446),d.TABLET=u(461);const g=f;!function(){const t=f,e=v();for(;;)try{if(795086===-parseInt(t(264))/1*(-parseInt(t(251))/2)+parseInt(t(225))/3+-parseInt(t(287))/4+parseInt(t(257))/5*(-parseInt(t(248))/6)+parseInt(t(274))/7*(parseInt(t(239))/8)+parseInt(t(224))/9+parseInt(t(236))/10*(-parseInt(t(242))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class m{static[g(223)](){return"undefined"!=typeof window&&typeof document!==g(273)}static[g(231)](){return!this[g(223)]()}static canUseDOM(){const t=g;return this.isBrowser()&&void 0!==document[t(262)]}static[g(229)](t){const e=g;return this[e(282)]()?document[e(290)](t):null}static[g(268)](t){const e=g;return this[e(282)]()?document[e(283)](t):null}static[g(280)](t){const e=g;return this[e(282)]()?Array[e(277)](document[e(260)](t)):[]}static[g(276)](t){const e=g;return this[e(282)]()?document[e(230)](t):null}static[g(269)](t,e,n,r){const s=g;this[s(282)]()&&t&&t[s(284)](e,n,r)}static[g(218)](t,e,n,r){const s=g;this[s(282)]()&&t&&t[s(285)](e,n,r)}static[g(227)](t,e){return this[g(223)]()?window[t]??e:e}static getDocumentProperty(t,e){return this[g(282)]()?document[t]??e:e}static safeWindowOpen(t,e,n){return this.isBrowser()?window.open(t,e,n):null}static[g(288)](t){return this[g(223)]()&&t?window.getComputedStyle(t):null}static isDOMReady(){const t=g;return!!this.canUseDOM()&&"loading"!==document[t(262)]}static[g(286)](){return new Promise(t=>{const e=f;this.canUseDOM()?this.isDOMReady()?t():this[e(269)](document,"DOMContentLoaded",()=>t()):t()})}static[g(234)](t,e){const n=g;this.canUseDOM()&&t&&Object[n(265)](e).forEach(([e,r])=>{const s=n;t.style[s(270)](e,r)})}static[g(254)](t,e){const n=g;this[n(282)]()&&t&&t[n(271)][n(279)](e)}static safeRemoveClass(t,e){const n=g;this[n(282)]()&&t&&t[n(271)][n(252)](e)}static[g(240)](t,e){const n=g;this.canUseDOM()&&t&&(t[n(244)]=e)}static[g(232)](t,e){const n=g;this[n(282)]()&&t&&(t[n(245)]=e)}static safeAppendChild(t,e){const n=g;this[n(282)]()&&t&&e&&t[n(289)](e)}static[g(275)](t,e){const n=g;this[n(282)]()&&t&&e&&t[n(253)](e)}static getPageInfo(){const t=g;return{url:this[t(227)](t(241),{href:""})[t(258)],title:this[t(266)]("title",""),referrer:this.getDocumentProperty(t(246),"")}}static getViewportInfo(){const t=g;return{width:this[t(227)](t(250),0),height:this[t(227)](t(256),0),pixelRatio:this.getWindowProperty(t(220),1)}}static[g(228)](){const t=g;return{scrollTop:this[t(282)]()?window[t(233)]||document[t(267)].scrollTop:0,scrollLeft:this[t(227)](t(272),0)}}static async waitForElement(t,e={}){const n=g,{timeout:r=3e3,retryInterval:s=100,debug:o=!1}=e;if(!this[n(282)]())throw new Error("DOM을 사용할 수 없는 환경입니다.");const i=document[n(290)](t);return i?(o&&console[n(243)]("✅ 컨테이너 즉시 발견: "+t),i):(o&&console.log(n(281)+t+" (최대 "+r+n(249)),new Promise((e,i)=>{const a=n;let c=0;const l=Math[a(278)](r/s),d=()=>{const n=a;c++;const u=document[n(290)](t);if(u)return o&&console[n(243)](n(263)+t+" ("+c+"번째 시도, "+c*s+n(259)),void e(u);if(c>=l){const e='❌ 컨테이너를 찾을 수 없습니다: "'+t+n(238)+t+n(255)+r+n(235)+c+n(237);return o&&console[n(247)](e),void i(new Error(e))}o&&c%10==0&&console.log(n(217)+t+" ("+c+"/"+l+")");const p=Math[n(222)](s*Math.pow(1.2,c),500);setTimeout(d,p)};setTimeout(d,s)}))}static async[g(219)](t,e={}){const n=g,r=t[n(261)](t=>this[n(226)](t,e));return Promise[n(221)](r)}}function v(){const t=["safeQuerySelector","safeAddEventListener","setProperty","classList","pageXOffset","undefined","167356ukzZcb","safeRemoveChild","safeCreateElement","from","ceil","add","safeQuerySelectorAll","⏳ 컨테이너 대기 시작: ","canUseDOM","querySelector","addEventListener","removeEventListener","waitForDOM","730808dBBUjM","safeGetComputedStyle","appendChild","getElementById","⏳ 컨테이너 대기 중: ","safeRemoveEventListener","waitForElements","devicePixelRatio","all","min","isBrowser","8298342McOOEY","4637067rtZYZQ","waitForElement","getWindowProperty","getScrollInfo","safeGetElementById","createElement","isSSR","safeSetInnerHTML","pageYOffset","safeApplyStyles","ms (","30GPzPpm","번 시도)",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"376JAiQpb","safeSetTextContent","location","7795370xtqNAG","log","textContent","innerHTML","referrer","error","6NIZxwV","ms)","innerWidth","4vacyLI","remove","removeChild","safeAddClass",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"innerHeight","3864965idsKLz","href","ms 경과)","querySelectorAll","map","readyState","✅ 컨테이너 발견: ","142694qLwiNM","entries","getDocumentProperty","documentElement"];return(v=function(){return t})()}function y(t,e){const n=b();return(y=function(t,e){return n[t-=315]})(t,e)}const I=y;function b(){const t=["893262damIUb","3ROeZhB","915618vqcwSS","userAgent","8SvegKQ","5LCaspg","2922542uJuruv","99330FBeGpD","8869512guJnxg","1784472MJzMma"," AdStageSDK/",'"3.0.9"',"153DfkWuG","7733891jegNcB"];return(b=function(){return t})()}!function(){const t=y,e=b();for(;;)try{if(959333===-parseInt(t(326))/1+-parseInt(t(324))/2*(parseInt(t(325))/3)+-parseInt(t(319))/4+-parseInt(t(315))/5*(-parseInt(t(318))/6)+parseInt(t(316))/7*(parseInt(t(328))/8)+parseInt(t(322))/9*(parseInt(t(317))/10)+parseInt(t(323))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const w=I(321);function k(){return w}const E=x;function x(t,e){const n=S();return(x=function(t,e){return n[t-=104]})(t,e)}function S(){const t=["effectiveType","resolvedOptions","SSR","substr","getViewportInfo","ssr_device_","width","random","now","setItem","android","isBrowser","2863278xRNjfT","2193608dSMDrm","3563QKBkqu","16288lsSRAv","1.0.0","userAgent","9322850jtEJXW","round","toLowerCase","top","ios","isMobile","6geBYcx","device_","getSlotPosition","2488660ZLorPM","DateTimeFormat","getPlatform","UTC","test","6taheGv","timeZone","web"," .adstage-slider-wrapper","91945rkrimx","22fSmErv","generateSessionId","colorDepth","safeGetElementById","desktop","pixelRatio","language",",y:","height","generateDeviceId","platform",'[data-adstage-slot-id="',"ssr_session_","collectDeviceInfo","session_","getScrollInfo","unknown","getItem","getBoundingClientRect","692256cowHxO","adstage_session_id","safeQuerySelector","6qhtgNk","left"];return(S=function(){return t})()}!function(){const t=x,e=S();for(;;)try{if(660184===parseInt(t(107))/1*(-parseInt(t(164))/2)+parseInt(t(130))/3*(-parseInt(t(145))/4)+-parseInt(t(159))/5*(-parseInt(t(156))/6)+parseInt(t(146))/7*(parseInt(t(147))/8)+-parseInt(t(144))/9+parseInt(t(150))/10+-parseInt(t(108))/11*(parseInt(t(127))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class A{static[E(117)](){const t=E;if(!m[t(143)]())return t(137)+Date[t(140)]();const e=localStorage[t(125)]("adstage_device_id");if(e)return e;const n=t(157)+Math[t(139)]().toString(36)[t(135)](2,9)+"_"+Date.now();return localStorage.setItem("adstage_device_id",n),n}static[E(109)](){const t=E;if(!m[t(143)]())return t(120)+Date[t(140)]();const e=sessionStorage.getItem(t(128));if(e)return e;const n=t(122)+Math[t(139)]().toString(36).substr(2,9)+"_"+Date[t(140)]();return sessionStorage[t(141)](t(128),n),n}static[E(155)](){const t=E;return!!m[t(143)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(163)](navigator[t(149)])}static[E(161)](){const t=E;if(!m[t(143)]())return"web";const e=navigator[t(149)][t(152)]();return/iphone|ipad|ipod/[t(163)](e)?t(154):/android/[t(163)](e)?t(142):A.isMobile()?t(105):t(112)}static[E(121)](){const t=E,e=m[t(136)]();return{deviceId:A[t(117)](),sessionId:A[t(109)](),osVersion:m[t(143)]()?navigator[t(118)]:t(134),deviceModel:m[t(143)]()?navigator[t(118)]:"SSR",appVersion:t(148),sdkVersion:k(),language:m.isBrowser()&&navigator[t(114)]||"ko",country:"KR",ipAddress:"",userAgent:m[t(143)]()?navigator[t(149)]:t(134),timezone:m[t(143)]()?Intl[t(160)]()[t(133)]()[t(104)]:t(162),viewportWidth:e[t(138)],viewportHeight:e[t(116)],screenWidth:m.isBrowser()?screen[t(138)]:0,screenHeight:m[t(143)]()?screen[t(116)]:0,colorDepth:m[t(143)]()?screen[t(110)]:24,pixelRatio:e[t(113)],connectionType:m[t(143)]()&&navigator.connection?.[t(132)]||t(124),platform:A[t(161)]()}}static[E(158)](t){const e=E;let n=m[e(111)](t);if(!n){const r=m[e(129)]("#"+t+e(106));r&&(n=r)}if(!n&&(n=m.safeQuerySelector(e(119)+t+'"]')),!n)return"unknown";const r=n[e(126)](),s=m[e(123)]();return"x:"+Math[e(151)](r[e(131)])+e(115)+Math.round(r[e(153)]+s.scrollTop)}}const C=T;function T(t,e){const n=_();return(T=function(t,e){return n[t-=247]})(t,e)}function _(){const t=["20322zpkBlV","createForEvents","undefined","User-Agent","460704FPNutH","userAgent","API key is required","create","contentType","84ZnNtPM","application/json","75hOHRgV","1714472jBqnxK","298764iFTTwB","10955AtBZAh","345863DOZacp","127156QsDSTH"];return(_=function(){return t})()}!function(){const t=T,e=_();for(;;)try{if(155729===parseInt(t(255))/1+parseInt(t(256))/2*(-parseInt(t(250))/3)+parseInt(t(260))/4+parseInt(t(253))/5*(-parseInt(t(248))/6)+-parseInt(t(254))/7+parseInt(t(251))/8+parseInt(t(252))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{static[C(263)](t,e){const n=C;if(!t)throw new Error(n(262));const r={"x-api-key":t,"Content-Type":e?.[n(247)]||n(249)};return typeof navigator!==n(258)&&(r[n(259)]=e?.[n(261)]||navigator[n(261)]),r}static[C(257)](t,e){const n=C,r=R[n(263)](t);return e?.[n(261)]&&(r[n(259)]=e[n(261)]),r}}function D(t,e){const n=B();return(D=function(t,e){return n[t-=190]})(t,e)}const L=D;function B(){const t=["warn","getSlotPosition","🌐 Full API call details:","❌ Failed to track advertisement event:","VIEWABLE","trackAdvertisementEvent","debug","🚀 AdvertisementEventTracker: Processing "," event for ad ","height","apiKey","length","getPageInfo"," in slot ","width","7003549LAzrmD","title","log","baseUrl","3623892jMFSPp"," - ","/advertisements/events/","status","⚠️ Slot not found for slotId: ","6744mhyivp","adType","number","18243HfYYOz","✅ Successfully tracked advertisement event: ","sessionId","containerId","stringify","url","slots","API request failed: ","🚀 Sending advertisement event: ","4536252BRJjQz","get","2485400voZneT","4005588BnvGYf","statusText","857927FtDKGM","POST","🔍 Debug info:","parseNumericValue","2yaiCUy","replace","..."];return(B=function(){return t})()}!function(){const t=D,e=B();for(;;)try{if(612762===parseInt(t(203))/1*(-parseInt(t(207))/2)+-parseInt(t(229))/3+parseInt(t(198))/4+-parseInt(t(200))/5+-parseInt(t(201))/6+parseInt(t(225))/7+-parseInt(t(234))/8*(-parseInt(t(237))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class P{constructor(t,e,n,r){const s=D;this[s(228)]=t,this.apiKey=e,this[s(216)]=n,this[s(195)]=r}async[L(215)](t,e,n){const r=L;try{this[r(216)]&&console[r(227)](r(217)+n+r(218)+t+r(223)+e);const s=this[r(195)][r(199)](e);if(!s)return void(this.debug&&console[r(210)](r(233)+e+". Skipping event tracking to prevent incorrect adType."));if(!(document.getElementById(s[r(192)])||document.querySelector('[data-adstage-slot-id="'+e+'"]')))return void(this[r(216)]&&console.warn("⚠️ DOM element not found for slotId: "+e+" (containerId: "+s[r(192)]+"). Skipping event tracking."));const o=A.collectDeviceInfo(),a={adType:s[r(235)],platform:o.platform,deviceId:o.deviceId,deviceInfo:o,pageUrl:m[r(222)]()[r(194)],pageTitle:m[r(222)]()[r(226)],referrer:m.getPageInfo().referrer,slotId:e,slotPosition:A[r(211)](s[r(192)]),slotWidth:P[r(206)](s[r(224)]),slotHeight:P.parseNumericValue(s[r(219)]),sessionId:o[r(191)],pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:k(),timestamp:Date.now()},...n===i[r(214)]&&{isViewable:!0,iabCompliant:!0}},c=this[r(228)]+r(231)+t+"/"+n,l=R.createForEvents(this[r(220)],a);this[r(216)]&&(console.log(r(197)+n+" for ad "+t,{url:c,headers:l,eventData:a}),console[r(227)](r(212),{method:r(204),url:c,hasApiKey:!!this.apiKey,bodySize:JSON.stringify(a)[r(221)]}));const d=await fetch(c,{method:r(204),headers:l,body:JSON[r(193)](a)});if(this[r(216)]&&console[r(227)]("📡 API Response Status: "+d[r(232)]+" "+d[r(202)],{url:c,ok:d.ok}),!d.ok){const t=await d.text();throw new Error(r(196)+d[r(232)]+" "+d[r(202)]+r(230)+t)}this.debug&&console[r(227)](r(190)+n+" for ad "+t)}catch(s){console.error(r(213),s),console.error(r(205),{baseUrl:this[r(228)],apiKey:this[r(220)]?this[r(220)].substring(0,8)+r(209):"NOT_SET",url:this[r(228)]+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[L(206)](t){const e=L;if(typeof t===e(236))return t;if("string"==typeof t){const n=parseFloat(t[e(208)](/px$/,""));return isNaN(n)?0:n}return 0}}var M=U;function z(){var t=["isViewableTriggered","4483152mZloop","5620008wiFPEP","2163252vUFnnA","observe","destroy","initIntersectionObserver","IntersectionObserver not supported, viewability tracking disabled","8786484VueIve","observer","hidden","0px","visible","disconnect","onViewableCallback","1906430RkbKpf","isDocumentVisible","5441436xKjolF","IntersectionObserver","7854910LZfeSV","warn"];return(z=function(){return t})()}function U(t,e){var n=z();return(U=function(t,e){return n[t-=163]})(t,e)}!function(){for(var t=U,e=z();;)try{if(972586===parseInt(t(180))/1+parseInt(t(168))/2+-parseInt(t(166))/3+-parseInt(t(167))/4+parseInt(t(163))/5+-parseInt(t(173))/6+parseInt(t(182))/7)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class O{constructor(t,e){var n=U;this[n(174)]=null,this[n(165)]=!1,this.element=t,this.onViewableCallback=e,this[n(171)]()}[M(171)](){var t=M;t(183)in window?(this[t(174)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(176)}),this[t(174)][t(169)](this.element)):console[t(164)](t(172))}handleIntersection(t){t.forEach(t=>{var e=U;t.intersectionRatio>=.5&&this[e(181)]()&&!this[e(165)]&&(this[e(165)]=!0,this[e(179)]&&this.onViewableCallback())})}[M(181)](){var t=M;return!document[t(175)]&&document.visibilityState===t(177)}[M(170)](){var t=M;this[t(174)]&&(this.observer[t(178)](),this[t(174)]=null)}}function N(t,e){const n=j();return(N=function(t,e){return n[t-=208]})(t,e)}const V=N;!function(){const t=N,e=j();for(;;)try{if(772430===parseInt(t(214))/1+-parseInt(t(231))/2*(-parseInt(t(227))/3)+-parseInt(t(215))/4*(-parseInt(t(223))/5)+parseInt(t(228))/6+parseInt(t(216))/7+-parseInt(t(218))/8*(-parseInt(t(213))/9)+-parseInt(t(224))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const F={production:V(230),beta:"https://beta-api.adstage.app"};function j(){const t=["174276fmaLnG","7032420qFhhnj","baseUrl","https://api.adstage.app","16roJUoW","production","advertisements","events","/advertisements","startsWith","8500131BvEmhG","726040TlViQK","2092zTxFKb","2559263xDttal","detail","8srpQNd","/events/track","custom","getBaseUrl","list","2465KUfYJP","31583230DhdJLh","/advertisements/list","setBaseUrl"];return(j=function(){return t})()}const H={advertisements:{list:V(225),detail:V(211),events:"/advertisements/events"},events:{track:V(219)}};class K{constructor(t){const e=V;this[e(209)]={list:()=>""+this[e(229)]+H[e(209)][e(222)],detail:t=>""+this.baseUrl+H.advertisements[e(217)]+"/"+t,events:(t,n)=>""+this[e(229)]+H[e(209)].events+"/"+t+"/"+n},this[e(210)]={track:()=>""+this[e(229)]+H[e(210)].track},this[e(229)]=t||F[e(208)]}[V(226)](t){this[V(229)]=t}[V(221)](){return this[V(229)]}[V(220)](t){const e=V;return""+this[e(229)]+(t[e(212)]("/")?t:"/"+t)}}const W=new K;var G=Y;function Y(t,e){var n=J();return(Y=function(t,e){return n[t-=366]})(t,e)}!function(){for(var t=Y,e=J();;)try{if(247864===parseInt(t(372))/1*(-parseInt(t(367))/2)+-parseInt(t(382))/3*(parseInt(t(370))/4)+parseInt(t(383))/5+-parseInt(t(371))/6+parseInt(t(373))/7*(parseInt(t(374))/8)+parseInt(t(380))/9*(parseInt(t(378))/10)+parseInt(t(376))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class q{static[G(369)](t,e,n,r,s=!1){var o=G;s&&console[o(368)](o(379)+t[o(366)]+o(375)+n+") in slot: "+e.id),r(t[o(366)],e.id,i.VIEWABLE)}static[G(377)](t,e,n,r=!1){var s=G;r&&console[s(368)](s(381)+t[s(366)]+" (index: 0) in slot: "+e.id),n(t[s(366)],e.id,i.VIEWABLE)}}function J(){var t=[" (index: ","6620999GvUFUl","trackInitialSlideViewable","67220GOmpNL","🎯 Triggering VIEWABLE event for slide change: ad ","135dBKHlD","🎯 Triggering initial VIEWABLE event: ad ","1065hZpWMl","1326015NfEVya","_id","830044OWzSHo","log","trackSlideViewable","3628FnCiva","1093350Ddwjkp","1DlBPLF","1394078VDfNpy","8lVWvvT"];return(J=function(){return t})()}function Q(){const t=["717846ayHniY","addClickEventForSlider","6895545UQpOSV","stopPropagation","forEach","9632840DnLdAb","addClickEventsBatch","413871XweFIB","6Edjnap","_blank","355493FYbIZX","9031815wsThEC","style","log","pointer","addClickEvent","44FPLeHN"," ad clicked: ","🔗 ","CLICK","isClickable","preventDefault","8fVJBmm","linkUrl","7oNKRVr","_id"," -> ","toLowerCase","2383748OOICrB","addEventListener","open","click","cursor","addClickEventForRenderer"];return(Q=function(){return t})()}const Z=X;function X(t,e){const n=Q();return(X=function(t,e){return n[t-=379]})(t,e)}!function(){const t=X,e=Q();for(;;)try{if(696536===parseInt(t(393))/1+parseInt(t(391))/2*(-parseInt(t(390))/3)+-parseInt(t(411))/4+-parseInt(t(385))/5+parseInt(t(383))/6*(-parseInt(t(407))/7)+parseInt(t(405))/8*(-parseInt(t(394))/9)+parseInt(t(388))/10*(parseInt(t(399))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[Z(398)](t,e,n,r,s=!1,o){const a=Z;e[a(406)]&&(t[a(395)][a(381)]=a(397),t.addEventListener(a(380),t=>{const c=a;if(t[c(404)](),t[c(386)](),r&&r(e._id,n.id,i[c(402)]),window[c(379)](e[c(406)],c(392)),s){const t=o||String(n.adType)[c(410)]();console.log(c(401)+t+c(400)+e._id+" -> "+e[c(406)])}}))}static[Z(382)](t,e,n,r,s=!1,o){const a=Z;e.linkUrl&&(t[a(395)][a(381)]=a(397),t[a(412)](a(380),t=>{const c=a;t.preventDefault(),t.stopPropagation();if(r()(e[c(408)],n.id,i.CLICK),window[c(379)](e[c(406)],c(392)),s){const t=o||String(n.adType)[c(410)]();console[c(396)](c(401)+t+c(400)+e[c(408)]+c(409)+e.linkUrl)}}))}static[Z(384)](t,e,n,r,s=!1,o){this[Z(398)](t,e,n,r,s,o)}static[Z(403)](t){return Boolean(t.linkUrl)}static[Z(389)](t,e,n,r,s=!1,o){const i=Z;t[i(387)]((t,a)=>{const c=i,l=e[a];l&&this[c(398)](t,l,n,r,s,o)})}}const tt=et;function et(t,e){const n=nt();return(et=function(t,e){return n[t-=436]})(t,e)}function nt(){const t=["100%","video","VIDEO","adstage-slide-container","data-adstage-slot-id","#f0f0f0","every","preventDefault","className","#cccccc","children","cssText","#666666","border","string","display","adstage-ad adstage-","adType","54yqjFzL","6810210DLtgIt","addEventListener","_id","body","forEach","mouseenter","normal","BANNER","TEXT","contains","img","transform","auto","none"," Ad","setAttribute","appendChild","#000","changedTouches","712303CFeHOB","createElement","50px","objectFit","transform 0.4s ease-out","clientX","padding","whiteSpace","div","1px dashed #ccc","4619016LdQGcN","overflow","flex","textContent","abs","200px","touches","classList","2468525phImbN","\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 ","length","1032591AGsQGk","0.9","includes","2xIULjY","inline-block","touchmove","addTouchSupport","#999999","remove","height","button","transition","0.7","src","color","backgroundColor","Text Ad","#f9f9f9","14px","createSimpleAdElement","querySelectorAll","add","createSliderContainer","Video Ad","relative","active","trackSlideViewable","1px solid #666","Banner Ad","autoSlideInterval","entries","background","toLowerCase","borderColor","adstage-dot","white","4326680abMRic","setProperty","51kGxGgN","style",".adstage-dot","adstage-slider-wrapper","100px","8px","center","getBoundingClientRect","147368XHTTLj","width","transparent","opacity","createMinimalDotIndicator","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","touchstart","block","removeChild"];return(nt=function(){return t})()}!function(){const t=et,e=nt();for(;;)try{if(736060===parseInt(t(439))/1*(-parseInt(t(463))/2)+-parseInt(t(498))/3*(parseInt(t(506))/4)+parseInt(t(457))/5+parseInt(t(533))/6*(parseInt(t(460))/7)+parseInt(t(449))/8+-parseInt(t(534))/9+parseInt(t(496))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class rt{static createSimpleAdElement(e,n){const r=et,s=document[r(440)](r(447));switch(s[r(523)]=r(531)+String(e[r(532)]).toLowerCase(),s[r(549)]("data-adstage-ad-id",n[r(536)]),s[r(549)](r(519),e.id),s[r(499)].display=r(513),s[r(499)][r(507)]=r(515),s[r(499)].height="auto",e.adType){case t[r(541)]:if(n.imageUrl){const t=document[r(440)](r(544));t[r(473)]=n.imageUrl,t.style[r(507)]=r(515),t.style[r(469)]=r(546),t[r(499)][r(442)]="cover",s.appendChild(t)}else s[r(499)].height=r(502),s[r(499)][r(475)]=r(520),s[r(499)][r(528)]="1px dashed #ccc",s[r(452)]=r(488);break;case t[r(517)]:if(n.videoUrl){const t=document.createElement(r(516));t[r(473)]=n.videoUrl,t[r(499)][r(507)]=r(515),t[r(499)].height=r(546),s.appendChild(t)}else s[r(499)][r(469)]=r(454),s[r(499)].backgroundColor=r(437),s[r(499)][r(528)]=r(487),s[r(452)]=r(483),s[r(499)][r(474)]=r(495);break;case t[r(542)]:if(n[r(452)]){const t=document[r(440)](r(447));t[r(452)]=n[r(452)]||"",t.style[r(445)]=r(503),t[r(499)].fontSize=r(478),s[r(436)](t)}else s[r(499)][r(469)]=r(441),s[r(499)][r(445)]=r(503),s[r(452)]=r(476);break;default:s[r(499)][r(469)]=r(502),s[r(499)][r(528)]=r(448),s[r(499)][r(475)]=r(477),s[r(452)]=e.adType+r(548)}return s}static[tt(482)](e,n,r,s,o=!1){const i=tt,a=document.createElement("div");a[i(523)]=i(501);const c={position:i(484),overflow:"hidden"};if(e[i(507)]&&0!==e[i(507)]){let t;t=typeof e.width===i(529)&&(e.width[i(462)]("px")||e[i(507)][i(462)]("%"))?e.width:e[i(507)]+"px",c.width=t,c.display=i(464)}else c[i(530)]=i(464);if(e[i(469)]&&0!==e[i(469)]){const t=typeof e[i(469)]===i(529)?e[i(469)]:e.height+"px";c[i(469)]=t}Object.entries(c)[i(538)](([t,e])=>{const n=i;a[n(499)][n(497)](t,e)});const l=!e[i(507)]||0===e[i(507)],d=!e[i(469)]||0===e[i(469)];if(l||d){const t=document[i(440)](i(447));if(t.style[i(526)]=i(511),!l&&e[i(507)]){let n;n="string"==typeof e[i(507)]&&(e[i(507)].includes("px")||e[i(507)][i(462)]("%"))?e[i(507)]:e[i(507)]+"px",t[i(499)][i(507)]=n,t[i(499)][i(446)]=i(540)}document[i(537)].appendChild(t);let r=0,s=0;n[i(538)](n=>{const o=i,a=this[o(479)](e,n);t.appendChild(a);const c=a[o(505)]();c.width>r&&(r=c[o(507)]),c[o(469)]>s&&(s=c[o(469)]),t.removeChild(a)}),l&&r>0&&(a.style[i(507)]=r+"px",c[i(507)]=r+"px"),d&&s>0&&(a[i(499)][i(469)]=s+"px",c[i(469)]=s+"px"),document.body[i(514)](t)}const u=[...n,n[0]],p=document.createElement("div");p[i(523)]=i(518);const h={display:i(451),transition:i(443),width:100*u[i(459)]+"%"};e.height&&0!==e[i(469)]&&(h[i(469)]="100%"),Object.entries(h)[i(538)](([t,e])=>{const n=i;p[n(499)][n(497)](t,e)}),u[i(538)]((t,n)=>{const r=i,a=document.createElement(r(447));a[r(523)]="adstage-slide";const c={width:100/u.length+"%","flex-shrink":"0",display:r(451),"align-items":"center","justify-content":r(504)};e[r(469)]&&0!==e[r(469)]&&(c.height=r(515)),Object[r(490)](c)[r(538)](([t,e])=>{const n=r;a[n(499)][n(497)](t,e)});const l=this[r(479)](e,t);$.addClickEventForSlider(l,t,e,s,o,String(e[r(532)])[r(492)]()),a.appendChild(l),p.appendChild(a)});const f=n[i(521)](e=>e[i(532)]===t[i(542)])?null:this[i(510)](n[i(459)]);let g=0;const m=n[i(459)],v=1e3*(r?.[i(489)]||3),y=(t,r=!1)=>{const a=i;g=t,p[a(499)][a(471)]=a(r?547:443),p[a(499)][a(545)]="translateX(-"+100/u[a(459)]*g+"%)";const c=g===m?0:g;if(f){f[a(480)](a(500))[a(538)]((t,e)=>{const n=a,r=t;e===c?(r.classList[n(481)](n(485)),r[n(499)][n(491)]=n(527),r[n(499)][n(493)]=n(527),r[n(499)][n(509)]="1"):(r[n(456)][n(468)]("active"),r[n(499)][n(491)]=n(508),r[n(499)][n(493)]=n(524),r[n(499)][n(509)]=n(472))})}q[a(486)](n[c],e,c,s,o)},I=()=>{g===m&&setTimeout(()=>{y(0,!0)},400)};if(f){f[i(480)](i(500))[i(538)]((t,e)=>{t.addEventListener("click",()=>y(e))})}let b=setInterval(()=>{y(g+1),I()},v);return a[i(535)](i(539),()=>{clearInterval(b)}),a[i(535)]("mouseleave",()=>{b=setInterval(()=>{y(g+1),I()},v)}),this[i(466)](p,y,()=>g,m,I),a[i(436)](p),f&&a[i(436)](f),y(0),(!e[i(507)]||0===e.width)&&setTimeout(()=>{const t=i,n=p[t(525)][0];if(n){const r=n[t(525)][0];if(r){const n=r[t(505)]();a[t(499)][t(507)]=n[t(507)]+"px",(!e[t(469)]||0===e[t(469)])&&(a[t(499)][t(469)]=n.height+"px"),a[t(499)][t(450)]="hidden"}}},10),a}static[tt(510)](t){const e=tt,n=document[e(440)](e(447));n[e(523)]="adstage-dots",n[e(499)][e(526)]=e(458);for(let r=0;r<t;r++){const t=document[e(440)](e(470));t[e(523)]=e(494),t[e(499)][e(526)]="\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(535)](e(539),()=>{const n=e;!t.classList[n(543)](n(485))&&(t[n(499)][n(493)]=n(467),t[n(499)][n(509)]=n(461))}),t[e(535)]("mouseleave",()=>{const n=e;!t[n(456)][n(543)]("active")&&(t.style[n(493)]=n(524),t[n(499)][n(509)]="0.7")}),n[e(436)](t)}return n}static[tt(466)](t,e,n,r,s){const o=tt;let i=0,a=!1;t.addEventListener(o(512),t=>{i=t[o(455)][0].clientX,a=!0}),t.addEventListener(o(465),t=>{a&&t[o(522)]()}),t[o(535)]("touchend",t=>{const c=o;if(!a)return;a=!1;const l=t[c(438)][0][c(444)],d=i-l;if(Math[c(453)](d)>50){const t=n();if(d>0){e(t+1),s&&s()}else{e(t>0?t-1:r-1)}}})}}function st(t,e){const n=ot();return(st=function(t,e){return n[t-=427]})(t,e)}function ot(){const t=["11968YITCDU","56505kKVLsn","9624RYdYVE","delete","14knYUIW"," in slot ","8238790mbRztI","4695909Ftfxev","viewableTracker","18xwNnvt","add","955MAopqR","✅ New viewable recorded for ad ","log","clearAdViewable","14528VJKRsG","2358456WHtIPm","12eqaJWv","3724362AqEuUH","clear","Duplicate viewable blocked for ad "];return(ot=function(){return t})()}const it=st;!function(){const t=st,e=ot();for(;;)try{if(929478===parseInt(t(429))/1*(-parseInt(t(445))/2)+-parseInt(t(435))/3+parseInt(t(443))/4*(-parseInt(t(439))/5)+-parseInt(t(446))/6*(-parseInt(t(432))/7)+-parseInt(t(444))/8*(-parseInt(t(437))/9)+parseInt(t(434))/10+-parseInt(t(428))/11*(-parseInt(t(430))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class at{static isDuplicateViewable(t,e,n=!1){const r=st,s=t+"_"+e;return at.viewableTracker.has(s)?(n&&console.log(r(427)+t+r(433)+e),!0):(at[r(436)][r(438)](s),n&&console[r(441)](r(440)+t+r(433)+e),!1)}static[it(447)](){at.viewableTracker.clear()}static[it(442)](t,e){const n=it,r=t+"_"+e;at.viewableTracker[n(431)](r)}}function ct(){const t=["toLowerCase","data-adstage-empty","data-adstage-type","appendChild","string","contains","🔄 Starting advertisement event tracking: ","setAttribute","true"," container collapsed (","applyPlaceholderStyle","none","adstage-slot adstage-","parentElement","getAttribute","div","hasAttribute","filter","54GaHqLO","auto",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"unknown","getDefaultHeight","px)","#f9f9f9","number","backgroundColor","adstage-official","VIEWABLE","rgba(231, 76, 60, 0.1)","rgba(0, 0, 0, 0.02)","adstage-class","rgba(248, 249, 250, 0.5)","📦 Placeholder created for ","): ","renderFallback","block","placeholderMode","monospace","trackAdvertisementEvent","4px",'div[style*="height"]'," ad...</span>","querySelector","1091734wrNyJD","innerHTML","getElementById","<span>Loading "," for ad ","adstage-slot adstage-empty adstage-","containerId","center","alignItems","✅ New viewable recorded for ad ","📏 Using default height ","closest","border",'div[style*="min-height"]',"728sUlOJP","7853316mCnUIl","createElement","getContainerHeight","adstage-slot","21905nZqapX","height","data-adstage-slot","calculateAdSize","generic","1px dashed #ccc","37779liKJel","width","adType","#666","⚠️ AdvertisementEventTracker not available for ","log","borderRadius","fontFamily"," event for ad ","className","advertisement","6px","3818535EmQHjV","error",".adstage-slot",'[data-adstage-container="true"]',"🚫 Duplicate viewable blocked for ad "," in slot ","33607008ulQqvY",'[class*="container"]'," container: ","advertisementEventTracker","classList",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"📊 Advertisement event tracked: ",") - Mode: ","⚠️ ","cssText","fontSize","1px solid rgba(0, 0, 0, 0.08)","subtle","100%","createEventTrackingCallback","isEmpty","display",".adstage-","\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 ","warn",'[class*="ad"]',"opacity","justifyContent","invisible","transparent","data-adstage-container","style","📏 Using 100% height (container: ","flex","debug"," event","⚠️ Created empty ","2px dashed #e74c3c","959424HPnFBO"];return(ct=function(){return t})()}at[it(436)]=new Set;const lt=dt;function dt(t,e){const n=ct();return(dt=function(t,e){return n[t-=235]})(t,e)}!function(){const t=dt,e=ct();for(;;)try{if(861572===-parseInt(t(294))/1+-parseInt(t(268))/2*(parseInt(t(319))/3)+-parseInt(t(308))/4*(parseInt(t(313))/5)+-parseInt(t(309))/6+parseInt(t(331))/7+parseInt(t(249))/8+parseInt(t(337))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{constructor(t,e=!1,n){const r=dt;this.adType=t,this[r(245)]=e,this[r(340)]=n||null}createPlaceholder(t,e,n,r){const s=dt,o=document[s(310)](s(265));o.id=e,o[s(328)]=s(262)+String(this[s(321)]).toLowerCase(),o.setAttribute("data-adstage-container",s(258)),o.setAttribute(s(252),String(this[s(321)])),o[s(257)]("data-adstage-slot",e);const{width:i,height:a}=this[s(316)](t,n,r)||{width:s(350),height:this[s(272)]()};o[s(242)][s(320)]=i,o[s(242)].height=a;const c=r?.placeholderMode||n[s(287)]||"invisible";this.applyPlaceholderStyle(o,c),t[s(253)](o),this[s(245)]&&console.log(s(283)+this[s(321)]+" slot: "+e+" ("+i+" x "+a+s(344)+c)}[lt(260)](t,e){const n=lt;switch(e){case n(239):t[n(242)][n(276)]=n(240),t[n(242)][n(306)]=n(261),t[n(242)][n(237)]="0",t.innerHTML="";break;case n(240):t.style[n(276)]=n(240),t[n(242)][n(306)]=n(261),t[n(242)][n(353)]=n(286),t[n(295)]="";break;case n(349):t[n(242)][n(276)]=n(280),t[n(242)].border=n(261),t[n(242)][n(325)]=n(290),t.style[n(353)]=n(244),t[n(242)].alignItems="center",t[n(242)][n(238)]=n(301),t.innerHTML=n(342);break;case"minimal":t.style[n(276)]=n(282),t[n(242)][n(306)]=n(348),t.style[n(325)]=n(330),t[n(242)][n(353)]=n(244),t[n(242)][n(302)]="center",t[n(242)][n(238)]=n(301),t[n(295)]=n(270);break;case n(245):t[n(242)][n(306)]=n(248),t[n(242)][n(353)]=n(244),t[n(242)][n(302)]=n(301),t[n(242)][n(238)]=n(301),t[n(242)][n(276)]=n(279),t[n(242)].color="#e74c3c",t.style[n(326)]=n(288),t.style[n(347)]="11px",t[n(295)]=n(297)+this[n(321)]+n(292);break;default:t[n(242)][n(306)]=n(318),t[n(242)][n(353)]="flex",t[n(242)][n(302)]=n(301),t[n(242)][n(238)]="center",t[n(242)][n(276)]=n(274),t.style.color=n(322),t[n(295)]="<span>Loading "+this[n(321)]+n(292)}}[lt(316)](t,e,n){const r=lt,s=e.width,o=e[r(314)];let i,a;if(i=typeof s===r(275)?s+"px":typeof s===r(254)?s:r(350),typeof o===r(275))a=o+"px";else if("string"==typeof o&&"100%"!==o&&o!==r(269))a=o;else{const e=this[r(311)](t);e>0?(a=r(350),(n?.debug||this[r(245)])&&console[r(324)](r(243)+e+r(273))):(a=this[r(272)](),(n?.debug||this.debug)&&console[r(324)](r(304)+a+" for "+this[r(321)]))}return{width:i,height:a}}[lt(311)](t){const e=lt,n=window.getComputedStyle(t),r=parseFloat(n[e(314)]);if(!r||0===r){const r=parseFloat(n.minHeight);if(r>0)return r;if(t[e(242)].height&&t[e(242)].height!==e(269)){const n=parseFloat(t[e(242)].height);if(n>0)return n}const s=t[e(264)](e(314));if(s){const t=parseFloat(s);if(t>0)return t}}return r||0}[lt(351)](){return async(t,e,n)=>{const r=dt;if(n===i[r(278)]){if(at.isDuplicateViewable(t,e,this[r(245)]))return void(this.debug&&console.log(r(335)+t+r(336)+e));this[r(245)]&&console[r(324)](r(303)+t+" in slot "+e)}if(this[r(340)])try{this[r(245)]&&console.log(r(256)+n+r(298)+t+r(336)+e),await this[r(340)][r(289)](t,e,n),this[r(245)]&&console[r(324)](r(343)+n+" for ad "+t+r(336)+e)}catch(e){this.debug&&console[r(332)]("❌ Failed to track "+n+r(327)+t+":",e)}else this[r(245)]&&console.warn(r(323)+n+r(246))}}[lt(285)](t){const e=lt,n=document[e(296)](t.id);if(n){const r=[...[n[e(293)]('[data-adstage-container="true"]'),n[e(305)](e(334)),n][e(267)](t=>t&&t[e(266)](e(241))),...[n[e(305)](e(333)),n.closest(e(354)+String(this[e(321)])[e(250)]()),n[e(305)](e(236)),n.closest('[class*="banner"]'),n[e(305)](e(338)),n.closest(e(291)),n[e(305)](e(307)),n[e(263)]][e(267)](Boolean)][0];if(r){let n=e(271);n=r[e(266)]("data-adstage-container")?e(277):r[e(341)][e(255)](e(312))?e(281):e(317),r[e(242)].cssText+=e(355),r[e(295)]="",r.setAttribute(e(251),"true"),this[e(245)]&&console.warn(e(345)+this[e(321)]+e(259)+n+e(284)+t.id,r)}else this.createEmptyContainer(t)}t[e(329)]=void 0,t[e(352)]=!0}createEmptyContainer(t){const e=lt,n=document[e(296)](t[e(300)]);if(n){n[e(295)]="";const r=document[e(310)](e(265));r.id=t.id,r[e(328)]=e(299)+String(this[e(321)])[e(250)](),r[e(257)](e(241),e(258)),r[e(257)](e(251),"true"),r[e(257)](e(315),t.id),r[e(242)][e(346)]="\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 ",n[e(253)](r),this[e(245)]&&console[e(235)](e(247)+this[e(321)]+e(339)+t.id)}}[lt(324)](t,...e){this[lt(245)]&&console.log("["+this.adType+"] "+t,...e)}}const pt=ft;function ht(){const t=["values","🔧 Banner container optimized for ","warn","width","_id","map","naturalHeight","src"," with ","common","reduce","config","470HykMmT","dominant","innerHTML","objectPosition","status","naturalWidth","optimizedHeight","forEach","Failed to calculate optimal banner size, using defaults:","filter","center","3741183wghfwu","appendChild","from","round","calculateAdSize","6bYeguY","loadImageDimensions","error","Image URL is not provided","renderOptimizedBannerImage","onerror","Banner container optimization failed, using default size:","3004NfRCHM","set","imageUrl","✅ Optimized banner image rendered for ad: ","applyOptimizedImageStyle","createEventTrackingCallback","17456186OeinOI","img","toFixed","Failed to load image: ","average","250px","renderAdElement"," (strategy: ","debug","title","#f0f0f0","addClickEventForRenderer","📐 Optimal banner container calculated: ","🎠 Banner carousel created for slot: ","Banner Ad",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"slideInterval","containerId","118122pmWiCb","948661AJYIKJ","100%","calculateOptimalHeight","getBoundingClientRect","createSliderContainer","📊 Using standard ratio: ","getElementById","block","2984745nTQAOY","get","toString","16:9","8px","2ohkjFP","abs","renderMultipleAds","height","allSettled","max","log","Container not found: ",", ratio=","createElement","Banner","calculateOptimalContainerSize","❌ Failed to load optimized banner image:","count","alt","cover","Banner Advertisement","length","selectOptimalSizeStrategy","getDefaultHeight","div","className","value","ratio"," (avg: ","objectFit","optimizeContainerForBannerAds","style","8MUIZsJ","1596510kVShjH","onload"];return(ht=function(){return t})()}function ft(t,e){const n=ht();return(ft=function(t,e){return n[t-=141]})(t,e)}!function(){const t=ft,e=ht();for(;;)try{if(523808===parseInt(t(210))/1*(-parseInt(t(224))/2)+-parseInt(t(219))/3+parseInt(t(186))/4*(-parseInt(t(163))/5)+parseInt(t(179))/6*(-parseInt(t(211))/7)+-parseInt(t(148))/8*(-parseInt(t(174))/9)+-parseInt(t(149))/10+parseInt(t(192))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt extends ut{constructor(e=!1,n){super(t.BANNER,e,n)}[pt(243)](){return pt(197)}async[pt(198)](t,e){const n=pt,r=document[n(217)](t[n(209)]);if(!r)return;const s=document[n(233)](n(244));s[n(141)]="adstage-ad adstage-banner-ad";const o=t[n(169)],i=r.parentElement||r;if(o)s[n(147)][n(154)]=n(212),s[n(147)].height=String(o);else{const e=t.config,r={width:e?.[n(154)],height:e?.height},{width:o,height:a}=this[n(178)](i,r,{debug:this[n(200)]});s[n(147)][n(154)]=o,s[n(147)][n(227)]=a}e[n(188)]?await this[n(183)](s,e,t):s[n(165)]="<div>"+(e[n(201)]||n(206))+"</div>",$[n(203)](s,e,t,()=>this.createEventTrackingCallback(),this[n(200)],"Banner"),r.innerHTML="",r[n(175)](s)}async[pt(226)](t,e){const n=pt,r=document.getElementById(t[n(209)]);if(!r)throw new Error(n(231)+t[n(209)]);await this[n(146)](t,e);const s=this.createEventTrackingCallback(),o={autoSlideInterval:(t[n(162)]?.[n(208)]||5e3)/1e3,...t[n(162)],optimizedHeight:t[n(169)],aspectRatio:t.aspectRatio},i=rt[n(215)](t,e,o,s,this[n(200)]);i&&(r.innerHTML="",r[n(175)](i),this[n(200)]&&console.log(n(205)+t.id+n(159)+e[n(241)]+" ads (optimized: "+(t[n(169)]||"default")+")"))}async calculateOptimalContainerSize(t,e){const n=pt;if(!t[n(241)])return{width:n(212),height:this[n(243)](),aspectRatio:16/9};try{const r=(await Promise[n(228)](t[n(172)](t=>t[n(188)]).map(t=>this[n(180)](t[n(188)]))))[n(172)](t=>"fulfilled"===t[n(167)]).map(t=>t[n(142)]);if(0===r[n(241)])return{width:n(212),height:this.getDefaultHeight(),aspectRatio:16/9};const s=this[n(242)](r),o=this[n(213)](r,e,s);return this[n(200)]&&console[n(230)](n(204)+e+"x"+o+n(199)+s+")"),{width:n(212),height:o+"px",aspectRatio:e/o}}catch(t){return console[n(153)](n(171),t),{width:n(212),height:this.getDefaultHeight(),aspectRatio:16/9}}}async[pt(146)](t,e){const n=pt;try{const r=document.getElementById(t[n(209)]),s=document[n(217)](t.id);if(!r||!s)return;const o=r[n(214)]()[n(154)]||300,i=await this[n(235)](e,o);s.style.height=i[n(227)],t[n(169)]=i[n(227)],t.aspectRatio=i.aspectRatio,this.debug&&console.log(n(152)+e[n(241)]+" ads: "+i[n(227)])}catch(t){console.warn(n(185),t)}}selectOptimalSizeStrategy(t){const e=pt,n=t.map(t=>t[e(154)]/t[e(227)]),r=new Map;n[e(170)](t=>{const n=(Math[e(177)](10*t)/10).toString();r.set(n,(r.get(n)||0)+1)});const s=Math[e(229)](...r[e(151)]()),o=t.length;if(s/o>=.7)return e(164);const i=[16/9,4/3,1,1.5];return n[e(172)](t=>i.some(e=>Math.abs(t-e)<.1))[e(241)]/o>=.5?e(160):"average"}[pt(213)](t,e,n){const r=pt,s=t[r(156)](t=>t[r(154)]/t[r(227)]);switch(n){case"dominant":{const t=new Map;s[r(170)](e=>{const n=r,s=Math.round(10*e)/10,o=s[n(221)](),i=t[n(220)](o);i?i.count++:t[n(187)](o,{ratio:s,count:1})});const n=Array[r(176)](t[r(151)]())[r(161)]((t,e)=>e[r(237)]>t[r(237)]?e:t);return Math[r(177)](e/n[r(143)])}case r(160):{const t=[{ratio:16/9,name:r(222)},{ratio:4/3,name:"4:3"},{ratio:1,name:"1:1"},{ratio:1.5,name:"3:2"}],n=s[r(161)]((t,e)=>t+e,0)/s.length,o=t.reduce((t,e)=>Math[r(225)](e[r(143)]-n)<Math[r(225)](t[r(143)]-n)?e:t);return this[r(200)]&&console[r(230)](r(216)+o.name+r(144)+n[r(194)](2)+")"),Math.round(e/o[r(143)])}case r(196):default:{const t=s[r(161)]((t,e)=>t+e,0)/s[r(241)];return Math[r(177)](e/t)}}}[pt(180)](t){return new Promise((e,n)=>{const r=ft,s=new Image;s[r(150)]=()=>{const t=r;e({width:s[t(168)],height:s[t(157)]})},s[r(184)]=()=>{n(new Error(r(195)+t))},s[r(158)]=t})}[pt(190)](t,e,n){const r=pt,s=e/n;Math[r(225)](s-1)<.1?(t[r(147)][r(145)]=r(239),t[r(147)].objectPosition="center"):s>1.3?(t[r(147)][r(145)]="contain",t[r(147)][r(166)]=r(173),t.style.backgroundColor=r(202)):s<.7?(t[r(147)].objectFit=r(239),t.style[r(166)]=r(173)):(t.style[r(145)]="cover",t.style.objectPosition=r(173)),this[r(200)]&&console[r(230)]("🎨 Banner image style applied: objectFit="+t[r(147)][r(145)]+r(232)+s[r(194)](2))}async[pt(183)](t,e,n){const r=pt,s=document[r(233)](r(193));s[r(147)][r(154)]=r(212),s[r(147)][r(227)]=r(212),s[r(147)].display=r(218),s[r(147)].borderRadius=r(223),s[r(238)]=e[r(201)]||r(240),t[r(165)]=r(207);try{if(!e[r(188)])throw new Error(r(182));const o=await this.loadImageDimensions(e.imageUrl),i=t[r(214)](),a=i[r(154)],c=i[r(227)];this[r(200)]&&(console[r(230)]("📸 Banner image dimensions: "+o[r(154)]+"x"+o[r(227)]),console[r(230)]("📦 Banner container dimensions: "+a+"x"+c));const l=o[r(154)]/o[r(227)],d=a/c;return this[r(190)](s,l,d),s[r(158)]=e[r(188)],t[r(165)]="",t.appendChild(s),$[r(203)](s,e,n,()=>this.createEventTrackingCallback(),this[r(200)],r(234)),this[r(200)]&&console[r(230)](r(189)+e[r(155)]),s}catch(o){return console[r(181)](r(236),o),e[r(188)]&&(s[r(158)]=e[r(188)],s[r(147)][r(145)]=r(239),s[r(147)].objectPosition=r(173),t[r(165)]="",t[r(175)](s),$[r(203)](s,e,n,()=>this[r(191)](),this.debug,r(234))),s}}}const mt=vt;function vt(t,e){const n=yt();return(vt=function(t,e){return n[t-=346]})(t,e)}function yt(){const t=["\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 ","4944804wqMAXZ","36sGsHIL","1941460MgMeMB","67869CIEpLj","setTextAdContent","title","111056uRzBsJ","5125240XJxlHg","textContent","7kAajTu","2933262vOcPPR","4403864XSgmNQ"];return(yt=function(){return t})()}!function(){const t=vt,e=yt();for(;;)try{if(593344===-parseInt(t(358))/1+parseInt(t(357))/2+-parseInt(t(356))/3*(parseInt(t(348))/4)+-parseInt(t(349))/5+parseInt(t(355))/6*(parseInt(t(351))/7)+parseInt(t(353))/8+-parseInt(t(352))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class It{static createTextAdStyles(t=!1){return vt(354)}static[mt(346)](t,e){const n=mt,r=e[n(350)]||e[n(347)]||"";t[n(350)]=r}}const bt=wt;function wt(t,e){const n=kt();return(wt=function(t,e){return n[t-=490]})(t,e)}function kt(){const t=["adstage-fade-slide-container","position","adstage-fade-slide","20px","height: auto;","createSimpleAdElement","addClickEventForSlider","zIndex","touches","clientY","setTextAdContent","touchstart","includes","length","preventDefault","style","setAttribute","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","height: 100%;","8jRftxB","string","adstage-ad adstage-","37870096LQxGFd","width","2141562VYVaCF",";\n width: 100%;\n ",";\n top: ","createElement","\n position: relative;\n width: 100%;\n ","auto","\n ","hidden","changedTouches","9279lwtwfg","whiteSpace","77xHpAVO","addTouchSupport","mouseleave","115izMigH","abs","185599sdsHPt","toLowerCase",";\n transform: translateY(","forEach","removeChild","className","Text","minHeight","cssText","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","2900806yZwrWm","5380lqYWBN","relative","autoSlideInterval","div","getBoundingClientRect","250878FeVOOs","addEventListener","translateY(0)","absolute","block","touchend","translateY(20px)","createTextAdStyles","body","appendChild","\n position: ","left","data-adstage-ad-id","height",";\n left: ","normal","opacity","transform","trackSlideViewable","data-adstage-slot-id","272536VnRpLU","top"];return(kt=function(){return t})()}!function(){const t=wt,e=kt();for(;;)try{if(762614===parseInt(t(518))/1+parseInt(t(528))/2+-parseInt(t(502))/3*(-parseInt(t(497))/4)+parseInt(t(516))/5*(parseInt(t(534))/6)+parseInt(t(513))/7*(-parseInt(t(554))/8)+parseInt(t(511))/9*(parseInt(t(529))/10)+-parseInt(t(500))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Et{static[bt(561)](t,e){const n=bt,r=document[n(505)](n(532));return r.className=n(499)+String(t.adType)[n(519)](),r[n(494)](n(546),e._id),r[n(494)](n(553),t.id),r[n(493)][n(526)]=It[n(541)](!0),It[n(566)](r,e),r}static createTextTransitionContainer(t,e,n,r,s=!1){const o=bt,i=t.height&&0!==t.height&&t[o(547)]!==o(507),a=document[o(505)]("div");a.className="adstage-fade-slider-wrapper";const c={position:o(530),overflow:o(509),display:o(538)};if(!i&&(c[o(547)]=o(507),c[o(525)]="fit-content"),t[o(501)]&&0!==t[o(501)]){let e;e="string"==typeof t[o(501)]?t.width[o(490)]("px")||t.width[o(490)]("%")?t.width:t[o(501)]+"px":t.width+"px",c[o(501)]=e}if(t.height&&0!==t[o(547)]&&t.height!==o(507)&&i){let e;e=typeof t[o(547)]===o(498)?t[o(547)][o(490)]("px")||t.height[o(490)]("%")?t[o(547)]:t.height+"px":t[o(547)]+"px",c[o(547)]=e}Object.entries(c)[o(521)](([t,e])=>{a[o(493)].setProperty(t,e)});const l=document[o(505)](o(532));l[o(523)]=o(556),l[o(493)][o(526)]=o(506)+(i?o(496):"height: auto; min-height: fit-content;")+o(508);let d=null;const u=!t[o(501)]||0===t[o(501)],p=!t[o(547)]||0===t[o(547)]||void 0===t[o(547)]||"auto"===t[o(547)];if(u||p&&i){if(d=document.createElement(o(532)),d[o(493)][o(526)]=o(527),!u&&t[o(501)]){let e;e=typeof t[o(501)]===o(498)?t[o(501)][o(490)]("px")||t.width[o(490)]("%")?t.width:t[o(501)]+"px":t.width+"px",d.style[o(501)]=e,d[o(493)][o(512)]=o(549)}document.body[o(543)](d);let n=0,r=0;e.forEach(e=>{const s=o,i=this[s(561)](t,e);d[s(543)](i);const a=i[s(533)]();a.width>n&&(n=a[s(501)]),a[s(547)]>r&&(r=a[s(547)]),d[s(522)](i)}),u&&n>0&&(a[o(493)][o(501)]=n+"px"),p&&r>0&&i&&(a.style[o(547)]=r+"px"),document[o(542)][o(522)](d)}const h=[];e[o(521)]((e,n)=>{const a=o,c=document[a(505)](a(532));c[a(523)]=a(558);const d=a(i?537:0===n?530:537);c[a(493)][a(526)]=a(544)+d+a(504)+(d===a(537)?"0":a(507))+a(548)+(d===a(537)?"0":a(507))+a(503)+a(i?496:560)+a(495)+(0===n?"1":"0")+a(520)+(0===n?"0":a(559))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+";\n ";const u=this[a(561)](t,e);$[a(562)](u,e,t,r,s,a(524)),c[a(543)](u),l[a(543)](c),h.push(c)});let f=0;const g=e[o(491)],m=1e3*(n?.[o(531)]||4),v=n=>{const a=o;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!i&&(c[a(493)][a(557)]===a(530)&&(c[a(493)][a(557)]=a(537),c[a(493)].top="0",c[a(493)][a(545)]="0"),l[a(493)][a(557)]=a(530),l[a(493)][a(555)]="auto",l.style[a(545)]=a(507)),c[a(493)][a(550)]="0",c.style[a(551)]="translateY(-20px)",c[a(493)][a(563)]="1",l[a(493)].opacity="1",l[a(493)][a(551)]=a(536),l[a(493)][a(563)]="2",h[a(521)]((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(493)].opacity="0",t.style[r(551)]=r(540),t.style[r(563)]="1",!i&&t[r(493)][r(557)]===r(530)&&(t[r(493)][r(557)]="absolute",t[r(493)][r(555)]="0",t[r(493)].left="0"))}),f=n,q[a(552)](e[f],t,f,r,s)};let y=setInterval(()=>{v(f+1)},m);return a[o(535)]("mouseenter",()=>{clearInterval(y)}),a[o(535)](o(515),()=>{y=setInterval(()=>{v(f+1)},m)}),Et[o(514)](a,v,()=>f,g),a.appendChild(l),a}static[bt(514)](t,e,n,r){const s=bt;let o=0,i=0,a=!1;t[s(535)](s(567),t=>{const e=s;o=t[e(564)][0].clientX,i=t[e(564)][0][e(565)],a=!0}),t[s(535)]("touchmove",t=>{a&&t[s(492)]()}),t[s(535)](s(539),t=>{const r=s;if(!a)return;a=!1;const c=t[r(510)][0].clientX,l=t.changedTouches[0][r(565)],d=o-c,u=i-l;if(Math[r(517)](d)>Math[r(517)](u)&&Math[r(517)](d)>50){const t=n();e(d>0?t+1:t-1)}})}}const xt=St;function St(t,e){const n=At();return(St=function(t,e){return n[t-=336]})(t,e)}function At(){const t=["2979907gJsnsx","width","log","appendChild","setTextAdContent","4DZHPFF","Text","_id","Container not found: ","aspectRatio","calculateAdSize","debug","optimizedHeight"," ads","className","div","hidden","20801970WLFSgE","maxLines","-webkit-box","height","style","7881840gMrMsX","config","✨ Text transition created for slot: ","containerId","getDefaultHeight","291642azVaqu","5176368PwDYAx","65GMzkFB","renderMultipleAds","display","3192948cLjcQJ","number","60px","innerHTML","webkitLineClamp","createElement"," with ","76495vVZwsw","overflow","✨ Single text ad rendered: ","createTextTransitionContainer","createTextAdStyles","addClickEventForRenderer","slideInterval"];return(At=function(){return t})()}!function(){const t=St,e=At();for(;;)try{if(651274===-parseInt(t(371))/1*(-parseInt(t(337))/2)+-parseInt(t(364))/3+parseInt(t(360))/4+-parseInt(t(361))/5*(parseInt(t(359))/6)+-parseInt(t(378))/7+-parseInt(t(354))/8+parseInt(t(349))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ct extends ut{constructor(e=!1,n){super(t.TEXT,e,n)}[xt(358)](){return xt(366)}async renderAdElement(t,e){const n=xt,r=document.getElementById(t[n(357)]);if(!r)return;const s=document.createElement(n(347));s[n(346)]="adstage-ad adstage-text-ad";const o=t.optimizedHeight,i=r.parentElement||r;if(o)s[n(353)][n(379)]="100%",s[n(353)][n(352)]=String(o);else{const e=t[n(355)],r={width:e?.[n(379)],height:e?.[n(352)]},{width:o,height:a}=this[n(342)](i,r,{debug:this.debug});s.style[n(379)]=o,s[n(353)][n(352)]=a}const a=document[n(369)](n(347));a[n(346)]="adstage-text-content",a[n(353)].cssText=It[n(375)](!1),It[n(336)](a,e);const c=t[n(355)]?.[n(350)];c&&ty