@adstage/web-sdk 3.0.4 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";var t,e,n,s,r,i,o,a,c,d,l,u,p=require("react/jsx-runtime"),h=require("react");function f(t,e){var n=g();return(f=function(t,e){return n[t-=286]})(t,e)}function g(){var t=["INTERSTITIAL","MOBILE","TABLET","754580Orobwj","POPUP","40fBysbT","283240XYvBkc","BANNER","1335693EZfMZV","2307582TfTZGD","7eHBbex","VIEWABLE","376vpYwST","VIDEO","CLICK","TEXT","7311918JxdoIQ","WEB","143433kccaMD","DESKTOP","292036vnakqt"];return(g=function(){return t})()}!function(){for(var t=f,e=g();;)try{if(882842===parseInt(t(286))/1+-parseInt(t(289))/2+parseInt(t(288))/3+-parseInt(t(300))/4*(parseInt(t(306))/5)+parseInt(t(296))/6*(parseInt(t(290))/7)+parseInt(t(292))/8*(parseInt(t(298))/9)+-parseInt(t(304))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=f)(287)]="BANNER",e[n(305)]=n(305),e[n(301)]=n(301),e.NATIVE="NATIVE",e[n(293)]=n(293),e[n(295)]=n(295),(r=s||(s={}))[(i=f)(297)]=i(297),r[i(302)]="MOBILE",(a=o||(o={}))[(c=f)(291)]="VIEWABLE",a[c(294)]="CLICK",l=d||(d={}),u=f,l.DESKTOP=u(299),l[u(302)]="MOBILE",l[u(303)]="TABLET";const m=v;function I(){const t=["pageYOffset",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"open","ms (","safeWindowOpen","getViewportInfo","ms 경과)","getDocumentProperty","435DlUvYA","innerHeight","40403evQQnv","safeAppendChild","49UpbsVQ","safeRemoveEventListener","undefined","safeSetTextContent","error","safeAddClass","appendChild",'❌ 컨테이너를 찾을 수 없습니다: "',"safeGetElementById","querySelectorAll","7FINJCc","classList","location","getScrollInfo","loading","294542tIyxrD","10516rqnOju","18NGHEmk","entries","safeRemoveChild","safeCreateElement","getElementById","canUseDOM","1428SiQUem","safeGetComputedStyle","removeChild","번째 시도, ","addEventListener","log","4189368TIpCTF","safeQuerySelectorAll","removeEventListener","isBrowser","DOM을 사용할 수 없는 환경입니다.","pageXOffset","safeAddEventListener","style","add","remove","innerWidth","5142430viLTtr"," (최대 ","isDOMReady","674408OfIMWQ","readyState","waitForDOM","getComputedStyle","devicePixelRatio","from","getWindowProperty","31913128uFOJNJ","5PryfZt","querySelector","href","textContent","min","setProperty","번 시도)","all","⏳ 컨테이너 대기 중: ",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"✅ 컨테이너 즉시 발견: ","safeSetInnerHTML","innerHTML","safeQuerySelector","pow","scrollTop","✅ 컨테이너 발견: ","referrer","ceil","getPageInfo"];return(I=function(){return t})()}function v(t,e){const n=I();return(v=function(t,e){return n[t-=439]})(t,e)}!function(){const t=v,e=I();for(;;)try{if(559476===-parseInt(t(439))/1*(parseInt(t(444))/2)+-parseInt(t(508))/3*(parseInt(t(445))/4)+-parseInt(t(480))/5*(-parseInt(t(458))/6)+-parseInt(t(512))/7*(parseInt(t(472))/8)+parseInt(t(446))/9*(-parseInt(t(469))/10)+parseInt(t(510))/11*(parseInt(t(452))/12)+parseInt(t(479))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class y{static[m(461)](){return"undefined"!=typeof window&&typeof document!==m(514)}static isSSR(){return!this[m(461)]()}static[m(451)](){const t=m;return this[t(461)]()&&void 0!==document[t(473)]}static[m(520)](t){const e=m;return this.canUseDOM()?document[e(450)](t):null}static[m(493)](t){const e=m;return this.canUseDOM()?document[e(481)](t):null}static[m(459)](t){const e=m;return this[e(451)]()?Array[e(477)](document[e(521)](t)):[]}static[m(449)](t){return this[m(451)]()?document.createElement(t):null}static safeAddEventListener(t,e,n,s){const r=m;this.canUseDOM()&&t&&t[r(456)](e,n,s)}static[m(513)](t,e,n,s){const r=m;this[r(451)]()&&t&&t[r(460)](e,n,s)}static[m(478)](t,e){return this[m(461)]()?window[t]??e:e}static[m(507)](t,e){return this[m(451)]()?document[t]??e:e}static[m(504)](t,e,n){const s=m;return this.isBrowser()?window[s(502)](t,e,n):null}static[m(453)](t){const e=m;return this[e(461)]()&&t?window[e(475)](t):null}static[m(471)](){const t=m;return!!this[t(451)]()&&document[t(473)]!==t(443)}static[m(474)](){return new Promise(t=>{const e=v;this.canUseDOM()?this[e(471)]()?t():this[e(464)](document,"DOMContentLoaded",()=>t()):t()})}static safeApplyStyles(t,e){const n=m;this[n(451)]()&&t&&Object[n(447)](e).forEach(([e,s])=>{const r=n;t[r(465)][r(485)](e,s)})}static[m(517)](t,e){const n=m;this[n(451)]()&&t&&t[n(440)][n(466)](e)}static safeRemoveClass(t,e){const n=m;this[n(451)]()&&t&&t[n(440)][n(467)](e)}static[m(515)](t,e){const n=m;this[n(451)]()&&t&&(t[n(483)]=e)}static[m(491)](t,e){const n=m;this[n(451)]()&&t&&(t[n(492)]=e)}static[m(511)](t,e){const n=m;this[n(451)]()&&t&&e&&t[n(518)](e)}static[m(448)](t,e){const n=m;this[n(451)]()&&t&&e&&t[n(454)](e)}static[m(499)](){const t=m;return{url:this[t(478)](t(441),{href:""})[t(482)],title:this.getDocumentProperty("title",""),referrer:this.getDocumentProperty(t(497),"")}}static[m(505)](){const t=m;return{width:this[t(478)](t(468),0),height:this[t(478)](t(509),0),pixelRatio:this[t(478)](t(476),1)}}static[m(442)](){const t=m;return{scrollTop:this[t(451)]()?window[t(500)]||document.documentElement[t(495)]:0,scrollLeft:this.getWindowProperty(t(463),0)}}static async waitForElement(t,e={}){const n=m,{timeout:s=3e3,retryInterval:r=100,debug:i=!1}=e;if(!this[n(451)]())throw new Error(n(462));const o=document[n(450)](t);return o?(i&&console[n(457)](n(490)+t),o):(i&&console[n(457)]("⏳ 컨테이너 대기 시작: "+t+n(470)+s+"ms)"),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(498)](s/r),l=()=>{const n=a;c++;const u=document[n(450)](t);if(u)return i&&console.log(n(496)+t+" ("+c+n(455)+c*r+n(506)),void e(u);if(c>=d){const e=n(519)+t+n(501)+t+n(489)+s+n(503)+c+n(486);return i&&console[n(516)](e),void o(new Error(e))}i&&c%10==0&&console.log(n(488)+t+" ("+c+"/"+d+")");const p=Math[n(484)](r*Math[n(494)](1.2,c),500);setTimeout(l,p)};setTimeout(l,r)}))}static async waitForElements(t,e={}){const n=m,s=t.map(t=>this.waitForElement(t,e));return Promise[n(487)](s)}}function b(){const t=["9871470xTWFyl","412htDjAL","userAgent","50595bFBqqp","12mCySGK",'"3.0.4"',"undefined"," AdStageSDK/","11446720ByepLe","2012844MhZmEn","1901796JGRtbh","1120276TllyrF","AdStageSDK/","4365613ZwcgDj"];return(b=function(){return t})()}const w=E;function E(t,e){const n=b();return(E=function(t,e){return n[t-=396]})(t,e)}!function(){const t=E,e=b();for(;;)try{if(786557===parseInt(t(408))/1+parseInt(t(407))/2+parseInt(t(406))/3+-parseInt(t(398))/4*(parseInt(t(400))/5)+parseInt(t(401))/6*(-parseInt(t(396))/7)+parseInt(t(405))/8+-parseInt(t(397))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const k=w(402);function x(){return k}const S=T;function A(){const t=["subtle","35tLYlVI","config","80575ewfiWy","debug","apiKey","9odDoDk","1370780SBwKoE","24ArBQrB","getTimeout","getAppVersion","4140ybpcOH","ads","placeholderMode","getEnabledModules","5NZirMq","1898718tviPkE","1563528vSihlS","isDebugMode","108582QAJCTz","getApiKey","timeout","appVersion","3331740SBREMf","3434910yVBvEG","getConfig","modules"];return(A=function(){return t})()}function T(t,e){const n=A();return(T=function(t,e){return n[t-=363]})(t,e)}!function(){const t=T,e=A();for(;;)try{if(695624===parseInt(t(370))/1*(parseInt(t(386))/2)+-parseInt(t(375))/3+-parseInt(t(374))/4+-parseInt(t(366))/5*(parseInt(t(367))/6)+parseInt(t(379))/7*(-parseInt(t(368))/8)+parseInt(t(384))/9*(parseInt(t(385))/10)+-parseInt(t(381))/11*(-parseInt(t(389))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class C{static[S(376)](){try{const{AdStage:t}=require("../core/adstage");return t.getConfig()}catch{return null}}static[S(388)](){const t=S,e=C.getConfig();return e?.[t(373)]||"1.0.0"}static[S(369)](){const t=S,e=C[t(376)]();return e?.[t(382)]||!1}static[S(371)](){const t=S,e=C[t(376)]();return e?.[t(383)]}static[S(387)](){const t=S,e=C[t(376)]();return e?.[t(372)]||3e4}static getPlaceholderMode(){const t=S,e=C[t(376)]();return e?.[t(364)]||t(378)}static[S(365)](){const t=S,e=C.getConfig();return e?.[t(377)]||[t(363),"events",t(380)]}}const D=B;function B(t,e){const n=z();return(B=function(t,e){return n[t-=116]})(t,e)}function z(){const t=["pixelRatio","resolvedOptions","isBrowser","ssr_device_","879620gpESNB","4951620NEyJWp","SSR","round","getPlatform","android","getScrollInfo","isMobile","getSlotPosition","session_","getBoundingClientRect","device_","152ypXykK","connection","generateSessionId","660798KOeaax","toLowerCase","setItem","13075JzHMoN","166313DLXROA","getItem","test","387153NTOxDJ","language","generateDeviceId","636gmNHqu","adstage_session_id","scrollTop","unknown","height","DateTimeFormat","collectDeviceInfo","timeZone","ssr_session_","safeGetElementById","getAppVersion","substr","adstage_device_id","now","9mZznVc","getViewportInfo","286276fzAAgG","desktop","toString","left","width","userAgent","platform","colorDepth"];return(z=function(){return t})()}!function(){const t=B,e=z();for(;;)try{if(309528===-parseInt(t(142))/1+-parseInt(t(135))/2+-parseInt(t(159))/3*(-parseInt(t(161))/4)+parseInt(t(138))/5*(-parseInt(t(145))/6)+parseInt(t(139))/7*(parseInt(t(132))/8)+parseInt(t(121))/9+parseInt(t(120))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{static[D(144)](){const t=D;if(!y[t(118)]())return t(119)+Date.now();const e=localStorage[t(140)](t(157));if(e)return e;const n=t(131)+Math.random()[t(163)](36)[t(156)](2,9)+"_"+Date[t(158)]();return localStorage.setItem(t(157),n),n}static generateSessionId(){const t=D;if(!y[t(118)]())return t(153)+Date[t(158)]();const e=sessionStorage[t(140)]("adstage_session_id");if(e)return e;const n=t(129)+Math.random().toString(36).substr(2,9)+"_"+Date[t(158)]();return sessionStorage[t(137)](t(146),n),n}static[D(127)](){const t=D;return!!y[t(118)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator[t(166)])}static[D(124)](){const t=D;if(!y[t(118)]())return"web";const e=navigator[t(166)][t(136)]();return/iphone|ipad|ipod/[t(141)](e)?"ios":/android/[t(141)](e)?t(125):R[t(127)]()?"web":t(162)}static[D(151)](){const t=D,e=y[t(160)]();return{deviceId:R[t(144)](),sessionId:R[t(134)](),osVersion:y[t(118)]()?navigator[t(167)]:t(122),deviceModel:y[t(118)]()?navigator.platform:t(122),appVersion:C[t(155)](),sdkVersion:x(),language:y[t(118)]()&&navigator[t(143)]||"ko",country:"KR",ipAddress:"",userAgent:y.isBrowser()?navigator.userAgent:t(122),timezone:y[t(118)]()?Intl[t(150)]()[t(117)]()[t(152)]:"UTC",viewportWidth:e[t(165)],viewportHeight:e[t(149)],screenWidth:y[t(118)]()?screen[t(165)]:0,screenHeight:y.isBrowser()?screen[t(149)]:0,colorDepth:y[t(118)]()?screen[t(168)]:24,pixelRatio:e[t(116)],connectionType:y[t(118)]()&&navigator[t(133)]?.effectiveType||t(148),platform:R.getPlatform()}}static[D(128)](t){const e=D,n=y[e(154)](t);if(!n)return e(148);const s=n[e(130)](),r=y[e(126)]();return"x:"+Math[e(123)](s[e(164)])+",y:"+Math[e(123)](s.top+r[e(147)])}}function L(){const t=["undefined","8874756tNcKof","userAgent","630307lInkyw","1525190MOiXpj","36065jcOLjg","create","User-Agent","2725380HPgbTz","80WrszBG","createForEvents","284wvmhgg","2TFouzG","331933cHMVDT","602955hcqYDB"];return(L=function(){return t})()}const P=U;function U(t,e){const n=L();return(U=function(t,e){return n[t-=345]})(t,e)}!function(){const t=U,e=L();for(;;)try{if(534356===parseInt(t(358))/1*(-parseInt(t(352))/2)+-parseInt(t(354))/3+-parseInt(t(351))/4*(-parseInt(t(345))/5)+-parseInt(t(348))/6+-parseInt(t(353))/7*(-parseInt(t(349))/8)+parseInt(t(356))/9+-parseInt(t(359))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{static[P(346)](t,e){const n=P;if(!t)throw new Error("API key is required");const s={"x-api-key":t,"Content-Type":e?.contentType||"application/json"};return typeof navigator!==n(355)&&(s[n(347)]=e?.[n(357)]||navigator[n(357)]),s}static[P(350)](t,e){const n=P,s=M[n(346)](t);return e?.[n(357)]&&(s[n(347)]=e[n(357)]),s}}const N=F;function V(){const t=["208189rsnpsl","platform","apiKey","log","referrer","1334853VqCNLs","containerId","API request failed: ","debug","/advertisements/events/","collectDeviceInfo","error","url","statusText","height","number","80vPjIxi","substring","POST","now","NOT_SET","slots","📡 API Response Status: ","stringify","width","6anAUEn","parseNumericValue"," - ","...","🚀 Sending advertisement event: ","389330XrZUKt","❌ Failed to track advertisement event:","252HJzzVe","getPageInfo","deviceId","baseUrl","text","createForEvents","sessionId","149258QdUKRU","get","56450cwtpQs"," for ad ","843703NbCEfm"," event for ad ","🌐 Full API call details:","BANNER","VIEWABLE","646956nVroRu","string","status","121cvfaKy"];return(V=function(){return t})()}function F(t,e){const n=V();return(F=function(t,e){return n[t-=211]})(t,e)}!function(){const t=F,e=V();for(;;)try{if(462297===-parseInt(t(233))/1+-parseInt(t(220))/2+parseInt(t(238))/3+-parseInt(t(213))/4*(-parseInt(t(222))/5)+parseInt(t(258))/6*(-parseInt(t(224))/7)+parseInt(t(249))/8*(-parseInt(t(229))/9)+-parseInt(t(211))/10*(-parseInt(t(232))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class O{constructor(t,e,n,s){const r=F;this[r(216)]=t,this[r(235)]=e,this[r(241)]=n,this[r(254)]=s}async trackAdvertisementEvent(t,e,n){const s=F;try{this[s(241)]&&console.log("🚀 AdvertisementEventTracker: Processing "+n+s(225)+t+" in slot "+e);const r=this.slots[s(221)](e),i=R[s(243)](),a={adType:r?.adType||s(227),platform:i[s(234)],deviceId:i[s(215)],deviceInfo:i,pageUrl:y[s(214)]()[s(245)],pageTitle:y[s(214)]().title,referrer:y[s(214)]()[s(237)],slotId:e,slotPosition:R.getSlotPosition(r?.[s(239)]||""),slotWidth:O[s(259)](r?.[s(257)]),slotHeight:O[s(259)](r?.[s(247)]),sessionId:i[s(219)],pageLoadTime:performance[s(252)](),metadata:{eventType:n,sdkVersion:x(),timestamp:Date[s(252)]()},...n===o[s(228)]&&{isViewable:!0,iabCompliant:!0}},c=this.baseUrl+"/advertisements/events/"+t+"/"+n,d=M[s(218)](this[s(235)],a);this[s(241)]&&(console[s(236)](s(262)+n+" for ad "+t,{url:c,headers:d,eventData:a}),console.log(s(226),{method:s(251),url:c,hasApiKey:!!this[s(235)],bodySize:JSON[s(256)](a).length}));const l=await fetch(c,{method:"POST",headers:d,body:JSON[s(256)](a)});if(this[s(241)]&&console[s(236)](s(255)+l[s(231)]+" "+l[s(246)],{url:c,ok:l.ok}),!l.ok){const t=await l[s(217)]();throw new Error(s(240)+l[s(231)]+" "+l.statusText+s(260)+t)}this[s(241)]&&console[s(236)]("✅ Successfully tracked advertisement event: "+n+s(223)+t)}catch(r){console[s(244)](s(212),r),console.error("🔍 Debug info:",{baseUrl:this.baseUrl,apiKey:this.apiKey?this.apiKey[s(250)](0,8)+s(261):s(253),url:this[s(216)]+s(242)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[N(259)](t){const e=N;if(typeof t===e(248))return t;if(typeof t===e(230)){const e=parseFloat(t.replace(/px$/,""));return isNaN(e)?0:e}return 0}}var _=H;function H(t,e){var n=K();return(H=function(t,e){return n[t-=312]})(t,e)}function K(){var t=["5795680TBfIYH","9591354LYXJYV","292704QcHjmS","visible","isDocumentVisible","0px","257jPzWbl","handleIntersection","element","4114925ICRSxm","6588726GTeebK","observer","intersectionRatio","3095304pZBpXs","initIntersectionObserver","warn","onViewableCallback","destroy","isViewableTriggered","7wSBzTB","3244gcjeiS","forEach"];return(K=function(){return t})()}!function(){for(var t=H,e=K();;)try{if(725977===parseInt(t(317))/1*(-parseInt(t(331))/2)+parseInt(t(313))/3+parseInt(t(333))/4+-parseInt(t(320))/5+parseInt(t(321))/6*(parseInt(t(330))/7)+parseInt(t(324))/8+-parseInt(t(312))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class j{constructor(t,e){var n=H;this[n(322)]=null,this.isViewableTriggered=!1,this[n(319)]=t,this[n(327)]=e,this[n(325)]()}initIntersectionObserver(){var t=H;"IntersectionObserver"in window?(this[t(322)]=new IntersectionObserver(e=>this[t(318)](e),{threshold:.5,rootMargin:t(316)}),this[t(322)].observe(this[t(319)])):console[t(326)]("IntersectionObserver not supported, viewability tracking disabled")}handleIntersection(t){var e=H;t[e(332)](t=>{var n=e;t[n(323)]>=.5&&this[n(315)]()&&!this[n(329)]&&(this.isViewableTriggered=!0,this[n(327)]&&this[n(327)]())})}isDocumentVisible(){var t=H;return!document.hidden&&document.visibilityState===t(314)}[_(328)](){var t=_;this[t(322)]&&(this.observer.disconnect(),this[t(322)]=null)}}const W=Y;!function(){const t=Y,e=G();for(;;)try{if(655439===parseInt(t(391))/1*(-parseInt(t(400))/2)+-parseInt(t(386))/3+-parseInt(t(403))/4*(-parseInt(t(396))/5)+parseInt(t(404))/6*(parseInt(t(389))/7)+-parseInt(t(397))/8*(parseInt(t(395))/9)+-parseInt(t(390))/10+parseInt(t(405))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const X={production:W(384),beta:"https://beta-api.adstage.app"},q={advertisements:{list:"/advertisements/list",detail:W(394),events:W(406)},events:{track:W(383)}};function G(){const t=["/advertisements/events","events","startsWith","/events/track","https://api.adstage.io","custom","1143168NxPdhz","baseUrl","detail","70896kYmebF","777410HrGKuJ","155lKMeGn","track","production","/advertisements","5384565qbjTmf","1540BBFkPX","16xtOQFH","list","setBaseUrl","15842gZSwGj","advertisements","getBaseUrl","144DNXBHz","162aECguW","35794187GFDOdO"];return(G=function(){return t})()}function Y(t,e){const n=G();return(Y=function(t,e){return n[t-=381]})(t,e)}class Q{constructor(t){const e=W;this[e(401)]={list:()=>""+this.baseUrl+q[e(401)][e(398)],detail:t=>""+this[e(387)]+q[e(401)][e(388)]+"/"+t,events:(t,n)=>""+this[e(387)]+q[e(401)][e(381)]+"/"+t+"/"+n},this.events={track:()=>""+this.baseUrl+q.events[e(392)]},this[e(387)]=t||X[e(393)]}[W(399)](t){this[W(387)]=t}[W(402)](){return this[W(387)]}[W(385)](t){const e=W;return""+this.baseUrl+(t[e(382)]("/")?t:"/"+t)}}const Z=new Q;var J=tt;function $(){var t=["VIEWABLE","152otNmbM","1010612hMkuGY","log","131572CCRjbd","769PgMajt","trackSlideViewable","652mxnIBv","9667300rKAOkA","1970079XKwRjE","6047280LPKGRc","93336GEzQTT"," (index: ","5gFFxvX"," (index: 0) in slot: ","🎯 Triggering VIEWABLE event for slide change: ad ","_id"];return($=function(){return t})()}function tt(t,e){var n=$();return(tt=function(t,e){return n[t-=189]})(t,e)}!function(){for(var t=tt,e=$();;)try{if(642348===parseInt(t(195))/1*(-parseInt(t(197))/2)+-parseInt(t(199))/3+parseInt(t(192))/4+parseInt(t(203))/5*(parseInt(t(201))/6)+-parseInt(t(194))/7*(parseInt(t(191))/8)+parseInt(t(200))/9+parseInt(t(198))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class et{static[J(196)](t,e,n,s,r=!1){var i=J;r&&console[i(193)](i(205)+t._id+i(202)+n+") in slot: "+e.id),s(t[i(189)],e.id,o[i(190)])}static trackInitialSlideViewable(t,e,n,s=!1){var r=J;s&&console[r(193)]("🎯 Triggering initial VIEWABLE event: ad "+t._id+r(204)+e.id),n(t[r(189)],e.id,o[r(190)])}}const nt=st;function st(t,e){const n=rt();return(st=function(t,e){return n[t-=214]})(t,e)}function rt(){const t=["log","preventDefault","toLowerCase","7543520fmmhUA","_blank","CLICK","addClickEvent","366499bESjLt","cursor","addClickEventForRenderer","9895uYptkX","stopPropagation","pointer","click"," ad clicked: ","3008961TWpczR","adType","_id","forEach","4LUvhgh","8794646EnxIzi","open","2143824nnWVDb","1362rwlZWw","linkUrl","style","27537822LJZcZF"," -> ","addClickEventsBatch"];return(rt=function(){return t})()}!function(){const t=st,e=rt();for(;;)try{if(923612===parseInt(t(220))/1*(-parseInt(t(232))/2)+-parseInt(t(228))/3+-parseInt(t(235))/4+-parseInt(t(223))/5*(-parseInt(t(236))/6)+-parseInt(t(233))/7+parseInt(t(216))/8+parseInt(t(239))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static[nt(219)](t,e,n,s,r=!1,i){const a=nt;e[a(237)]&&(t[a(238)][a(221)]=a(225),t.addEventListener(a(226),t=>{const c=a;if(t.preventDefault(),t[c(224)](),s&&s(e._id,n.id,o[c(218)]),window[c(234)](e[c(237)],c(217)),r){const t=i||String(n[c(229)])[c(215)]();console[c(242)]("🔗 "+t+c(227)+e[c(230)]+" -> "+e.linkUrl)}}))}static[nt(222)](t,e,n,s,r=!1,i){const a=nt;e[a(237)]&&(t[a(238)].cursor=a(225),t.addEventListener(a(226),t=>{const c=a;t[c(214)](),t[c(224)]();if(s()(e[c(230)],n.id,o[c(218)]),window[c(234)](e[c(237)],c(217)),r){const t=i||String(n[c(229)])[c(215)]();console.log("🔗 "+t+c(227)+e._id+c(240)+e[c(237)])}}))}static addClickEventForSlider(t,e,n,s,r=!1,i){this[nt(219)](t,e,n,s,r,i)}static isClickable(t){return Boolean(t[nt(237)])}static[nt(241)](t,e,n,s,r=!1,i){t[nt(231)]((t,o)=>{const a=e[o];a&&this.addClickEvent(t,a,n,s,r,i)})}}function ot(){const t=["className","1px solid #666","imageUrl","adstage-dot","inline-block","style","forEach","setAttribute","relative","mouseleave","mouseenter","data-adstage-slot-id","adstage-ad adstage-","adType","clientX","100px","abs","99530vAEqrO",".adstage-dot","div","5352952cmAFmV","Text Ad","getBoundingClientRect","string","white","hidden","appendChild","VIDEO","8px","0.9","overflow","transform","1087898xSCFiO","2szrREw","addClickEventForSlider","trackSlideViewable","fontSize","\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 ","cssText","TEXT","#999999","children","background","borderColor","flex","12eZuRuR","#f9f9f9","textContent","height","src","touchend","every","555736SRgtvk","entries","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","4126495LuCGtJ","transparent","4160299JYRzEJ","1px dashed #ccc","setProperty","auto","padding","contains","adstage-slide","#cccccc","#666666","includes","add"," Ad","adstage-slide-container","createElement","border","BANNER","remove","createMinimalDotIndicator","6kATxZJ","objectFit","0.7","length","classList","block","addTouchSupport","cover","display","100%","toLowerCase","changedTouches","querySelectorAll","active","60661EXtkBE","createSimpleAdElement","width","addEventListener","backgroundColor","createSliderContainer","\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 ","#f0f0f0","transform 0.4s ease-out","videoUrl","whiteSpace","center","touchstart","45TsBdio","transition","opacity"];return(ot=function(){return t})()}const at=ct;function ct(t,e){const n=ot();return(ct=function(t,e){return n[t-=360]})(t,e)}!function(){const t=ct,e=ot();for(;;)try{if(704991===-parseInt(t(424))/1*(parseInt(t(368))/2)+parseInt(t(380))/3*(-parseInt(t(387))/4)+parseInt(t(390))/5*(parseInt(t(410))/6)+parseInt(t(367))/7+parseInt(t(460))/8+parseInt(t(437))/9*(parseInt(t(457))/10)+-parseInt(t(392))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class dt{static[at(425)](e,n){const s=at,r=document.createElement(s(459));switch(r.className=s(452)+String(e[s(453)])[s(420)](),r[s(447)]("data-adstage-ad-id",n._id),r[s(447)](s(451),e.id),r[s(445)].display=s(415),r[s(445)][s(426)]="100%",r[s(445)][s(383)]=s(395),e[s(453)]){case t[s(407)]:if(n[s(442)]){const t=document[s(405)]("img");t.src=n[s(442)],t[s(445)][s(426)]=s(419),t[s(445)][s(383)]=s(395),t[s(445)][s(411)]=s(417),r[s(361)](t)}else r[s(445)].height=s(455),r.style[s(428)]=s(431),r[s(445)].border=s(393),r[s(382)]="Banner Ad";break;case t[s(362)]:if(n[s(433)]){const t=document[s(405)]("video");t[s(384)]=n.videoUrl,t[s(445)].width=s(419),t.style[s(383)]=s(395),r[s(361)](t)}else r[s(445)][s(383)]="200px",r[s(445)][s(428)]="#000",r.style[s(406)]=s(441),r[s(382)]="Video Ad",r.style.color=s(464);break;case t[s(374)]:if(n[s(382)]){const t=document[s(405)](s(459));t.textContent=n[s(382)]||"",t[s(445)][s(396)]="8px",t[s(445)][s(371)]="14px",r[s(361)](t)}else r[s(445)][s(383)]="50px",r[s(445)][s(396)]=s(363),r[s(382)]=s(461);break;default:r[s(445)][s(383)]=s(455),r.style[s(406)]=s(393),r[s(445)][s(428)]=s(381),r[s(382)]=e.adType+s(403)}return r}static[at(429)](e,n,s,r,i=!1){const o=at,a=document.createElement(o(459));a[o(440)]="adstage-slider-wrapper";const c={position:o(448),overflow:o(360)};if(e[o(426)]&&0!==e[o(426)]){let t;t=typeof e.width===o(463)&&(e.width[o(401)]("px")||e.width[o(401)]("%"))?e[o(426)]:e.width+"px",c[o(426)]=t,c[o(418)]=o(444)}else c[o(418)]=o(444);if(e[o(383)]&&0!==e[o(383)]){const t=typeof e[o(383)]===o(463)?e.height:e[o(383)]+"px";c[o(383)]=t}Object[o(388)](c)[o(446)](([t,e])=>{const n=o;a[n(445)][n(394)](t,e)});const d=!e.width||0===e[o(426)],l=!e.height||0===e[o(383)];if(d||l){const t=document.createElement("div");if(t.style[o(373)]=o(389),!d&&e[o(426)]){let n;n="string"==typeof e[o(426)]&&(e[o(426)][o(401)]("px")||e[o(426)][o(401)]("%"))?e.width:e[o(426)]+"px",t[o(445)][o(426)]=n,t[o(445)][o(434)]="normal"}document.body.appendChild(t);let s=0,r=0;n[o(446)](n=>{const i=o,a=this[i(425)](e,n);t[i(361)](a);const c=a.getBoundingClientRect();c[i(426)]>s&&(s=c[i(426)]),c[i(383)]>r&&(r=c[i(383)]),t.removeChild(a)}),d&&s>0&&(a[o(445)][o(426)]=s+"px",c.width=s+"px"),l&&r>0&&(a[o(445)].height=r+"px",c[o(383)]=r+"px"),document.body.removeChild(t)}const u=[...n,n[0]],p=document[o(405)](o(459));p[o(440)]=o(404);const h={display:o(379),transition:o(432),width:100*u.length+"%"};e[o(383)]&&0!==e[o(383)]&&(h.height=o(419)),Object.entries(h)[o(446)](([t,e])=>{p[o(445)].setProperty(t,e)}),u[o(446)]((t,n)=>{const s=o,a=document[s(405)]("div");a[s(440)]=s(398);const c={width:100/u[s(413)]+"%","flex-shrink":"0",display:s(379),"align-items":s(435),"justify-content":"center"};e[s(383)]&&0!==e[s(383)]&&(c[s(383)]=s(419)),Object[s(388)](c)[s(446)](([t,e])=>{a[s(445)].setProperty(t,e)});const d=this[s(425)](e,t);it[s(369)](d,t,e,r,i,String(e[s(453)])[s(420)]()),a[s(361)](d),p[s(361)](a)});const f=n[o(386)](e=>e.adType===t[o(374)])?null:this[o(409)](n[o(413)]);let g=0;const m=n.length,I=1e3*(s?.autoSlideInterval||3),v=(t,s=!1)=>{const a=o;g=t,p[a(445)][a(438)]=s?"none":"transform 0.4s ease-out",p.style[a(366)]="translateX(-"+100/u[a(413)]*g+"%)";const c=g===m?0:g;if(f){f[a(422)](a(458)).forEach((t,e)=>{const n=a,s=t;e===c?(s.classList[n(402)]("active"),s[n(445)][n(377)]=n(400),s[n(445)][n(378)]="#666666",s[n(445)][n(439)]="1"):(s.classList[n(408)]("active"),s.style[n(377)]=n(391),s[n(445)].borderColor=n(399),s[n(445)].opacity=n(412))})}et[a(370)](n[c],e,c,r,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[o(422)](o(458))[o(446)]((t,e)=>{t[o(427)]("click",()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(427)](o(450),()=>{clearInterval(b)}),a[o(427)](o(449),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[o(416)](p,v,()=>g,m,y),a[o(361)](p),f&&a[o(361)](f),v(0),(!e[o(426)]||0===e[o(426)])&&setTimeout(()=>{const t=o,n=p[t(376)][0];if(n){const s=n[t(376)][0];if(s){const n=s[t(462)]();a.style.width=n[t(426)]+"px",(!e[t(383)]||0===e[t(383)])&&(a[t(445)][t(383)]=n[t(383)]+"px"),a[t(445)][t(365)]="hidden"}}},10),a}static[at(409)](t){const e=at,n=document[e(405)](e(459));n[e(440)]="adstage-dots",n[e(445)][e(373)]=e(430);for(let s=0;s<t;s++){const t=document[e(405)]("button");t[e(440)]=e(443),t[e(445)][e(373)]=e(372),t[e(427)](e(450),()=>{const n=e;!t[n(414)][n(397)](n(423))&&(t[n(445)][n(378)]=n(375),t[n(445)][n(439)]=n(364))}),t[e(427)](e(449),()=>{const n=e;!t[n(414)][n(397)](n(423))&&(t.style[n(378)]=n(399),t[n(445)].opacity=n(412))}),n[e(361)](t)}return n}static addTouchSupport(t,e,n,s,r){const i=at;let o=0,a=!1;t[i(427)](i(436),t=>{o=t.touches[0].clientX,a=!0}),t.addEventListener("touchmove",t=>{a&&t.preventDefault()}),t[i(427)](i(385),t=>{const c=i;if(!a)return;a=!1;const d=t[c(421)][0][c(454)],l=o-d;if(Math[c(456)](l)>50){const t=n();if(l>0){e(t+1),r&&r()}else{e(t>0?t-1:s-1)}}})}}function lt(t,e){const n=pt();return(lt=function(t,e){return n[t-=383]})(t,e)}const ut=lt;function pt(){const t=["2091065APzrfx"," in slot ","9570YEGuyV","✅ New viewable recorded for ad ","viewableTracker","71757FFVQAC","1506692wxyyOn","45YKlHon","log","delete","82072iDJfqh","Duplicate viewable blocked for ad ","1112vvnvKJ","1015cAzFey","4501839GRvncW","502460zCVpnT","clear","clearAdViewable","isDuplicateViewable","add"];return(pt=function(){return t})()}!function(){const t=lt,e=pt();for(;;)try{if(940889===parseInt(t(396))/1*(parseInt(t(399))/2)+-parseInt(t(383))/3+-parseInt(t(395))/4+-parseInt(t(389))/5+-parseInt(t(391))/6*(-parseInt(t(402))/7)+parseInt(t(401))/8*(parseInt(t(394))/9)+parseInt(t(384))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ht{static[ut(387)](t,e,n=!1){const s=ut,r=t+"_"+e;return ht[s(393)].has(r)?(n&&console[s(397)](s(400)+t+s(390)+e),!0):(ht[s(393)][s(388)](r),n&&console[s(397)](s(392)+t+" in slot "+e),!1)}static[ut(385)](){const t=ut;ht[t(393)][t(385)]()}static[ut(386)](t,e){const n=ut,s=t+"_"+e;ht.viewableTracker[n(398)](s)}}ht[ut(393)]=new Set;const ft=mt;function gt(){const t=["1648332LYFzIF","createEmptyContainer","center","hasAttribute","#666","1657293jvakPz","toLowerCase","): ","div","minimal","⚠️ Created empty ","height","unknown","borderRadius","backgroundColor","fontFamily","opacity","579590YNItMf","🚫 Duplicate viewable blocked for ad ","monospace","log","\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 ","adstage-class","setAttribute","cssText","6gyQRtu",'[class*="banner"]',"4px","data-adstage-slot","100%","createElement","adType","none","placeholderMode"," ad...</span>"," x ","transparent","classList","closest","minHeight","⚠️ ","containerId","advertisementEventTracker","createPlaceholder","getDefaultHeight",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"388251ZKdQSV","number","querySelector","📏 Using 100% height (container: ","parentElement","adstage-slot adstage-empty adstage-","alignItems"," for ad ",".adstage-slot","\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 ","trackAdvertisementEvent",'[data-adstage-container="true"]',"warn","🔄 Starting advertisement event tracking: ",".adstage-","❌ Failed to track ","<span>Loading ","border","color","getAttribute","11px","getContainerHeight","true"," in slot ","270citLWO","appendChild","1px dashed #ccc","advertisement","⚠️ AdvertisementEventTracker not available for ","innerHTML","flex","width",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"data-adstage-container","applyPlaceholderStyle","#e74c3c","132fNTtce","rgba(231, 76, 60, 0.1)","generic","720840LHIRoC","📦 Placeholder created for ","filter","VIEWABLE","1px solid rgba(0, 0, 0, 0.08)","display","debug","2px dashed #e74c3c","getElementById","6px","auto",'div[style*="height"]',"justifyContent","data-adstage-type","contains","invisible","2114xKgdrQ","3417242jFFjFA","data-adstage-empty","string","style","16928FqpTbS","calculateAdSize",'[class*="container"]',"className"," for "," slot: "," container collapsed (","1ktWIEZ","isEmpty"];return(gt=function(){return t})()}function mt(t,e){const n=gt();return(mt=function(t,e){return n[t-=465]})(t,e)}!function(){const t=mt,e=gt();for(;;)try{if(948393===-parseInt(t(555))/1*(-parseInt(t(544))/2)+-parseInt(t(557))/3+-parseInt(t(527))/4+-parseInt(t(574))/5*(-parseInt(t(467))/6)+-parseInt(t(543))/7*(parseInt(t(548))/8)+-parseInt(t(488))/9*(parseInt(t(512))/10)+-parseInt(t(562))/11*(-parseInt(t(524))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class It{constructor(t,e=!1,n){const s=mt;this.adType=t,this[s(533)]=e,this[s(484)]=n||null}[ft(485)](t,e,n,s){const r=ft,i=document[r(472)](r(565));i.id=e,i[r(551)]="adstage-slot adstage-"+String(this[r(473)])[r(563)](),i[r(465)](r(521),r(510)),i[r(465)](r(540),String(this[r(473)])),i[r(465)](r(470),e);const{width:o,height:a}=this[r(549)](t,n,s)||{width:r(471),height:this[r(486)]()};i[r(547)][r(519)]=o,i.style[r(568)]=a;const c=s?.[r(475)]||n[r(475)]||r(542);this[r(522)](i,c),t[r(513)](i),this.debug&&console[r(577)](r(528)+this[r(473)]+r(553)+e+" ("+o+r(477)+a+") - Mode: "+c)}[ft(522)](t,e){const n=ft;switch(e){case n(542):t[n(547)].backgroundColor=n(478),t.style[n(505)]=n(474),t[n(547)][n(573)]="0",t[n(517)]="";break;case n(478):t[n(547)][n(571)]="transparent",t[n(547)][n(505)]="none",t[n(547)].display="block",t.innerHTML="";break;case"subtle":t[n(547)].backgroundColor="rgba(0, 0, 0, 0.02)",t[n(547)][n(505)]=n(474),t[n(547)].borderRadius=n(469),t.style[n(532)]="flex",t[n(547)][n(494)]=n(559),t[n(547)][n(539)]=n(559),t.innerHTML=n(487);break;case n(566):t[n(547)][n(571)]="rgba(248, 249, 250, 0.5)",t[n(547)][n(505)]=n(531),t[n(547)][n(570)]=n(536),t[n(547)][n(532)]="flex",t[n(547)][n(494)]=n(559),t.style[n(539)]=n(559),t[n(517)]=n(520);break;case n(533):t.style[n(505)]=n(534),t[n(547)].display=n(518),t[n(547)][n(494)]=n(559),t.style[n(539)]=n(559),t[n(547)][n(571)]=n(525),t.style[n(506)]=n(523),t.style[n(572)]=n(576),t[n(547)].fontSize=n(508),t[n(517)]=n(504)+this.adType+" ad...</span>";break;default:t.style[n(505)]=n(514),t[n(547)].display=n(518),t[n(547)][n(494)]=n(559),t[n(547)][n(539)]=n(559),t[n(547)][n(571)]="#f9f9f9",t[n(547)].color=n(561),t[n(517)]=n(504)+this[n(473)]+n(476)}}[ft(549)](t,e,n){const s=ft,r=e.width,i=e.height;let o,a;if(o="number"==typeof r?r+"px":"string"==typeof r?r:s(471),typeof i===s(489))a=i+"px";else if(typeof i===s(546)&&"100%"!==i&&i!==s(537))a=i;else{const e=this[s(509)](t);e>0?(a="100%",(n?.debug||this[s(533)])&&console[s(577)](s(491)+e+"px)")):(a=this[s(486)](),(n?.[s(533)]||this.debug)&&console.log("📏 Using default height "+a+s(552)+this[s(473)]))}return{width:o,height:a}}[ft(509)](t){const e=ft,n=window.getComputedStyle(t),s=parseFloat(n[e(568)]);if(!s||0===s){const s=parseFloat(n[e(481)]);if(s>0)return s;if(t[e(547)][e(568)]&&t[e(547)].height!==e(537)){const n=parseFloat(t[e(547)][e(568)]);if(n>0)return n}const r=t[e(507)](e(568));if(r){const t=parseFloat(r);if(t>0)return t}}return s||0}createEventTrackingCallback(){return async(t,e,n)=>{const s=mt;if(n===o[s(530)]){if(ht.isDuplicateViewable(t,e,this[s(533)]))return void(this[s(533)]&&console.log(s(575)+t+s(511)+e));this[s(533)]&&console[s(577)]("✅ New viewable recorded for ad "+t+s(511)+e)}if(this[s(484)])try{this[s(533)]&&console[s(577)](s(501)+n+s(495)+t+s(511)+e),await this[s(484)][s(498)](t,e,n),this[s(533)]&&console[s(577)]("📊 Advertisement event tracked: "+n+s(495)+t+s(511)+e)}catch(e){this[s(533)]&&console.error(s(503)+n+" event for ad "+t+":",e)}else this[s(533)]&&console[s(500)](s(516)+n+" event")}}renderFallback(t){const e=ft,n=document[e(535)](t.id);if(n){const s=[...[n[e(490)]('[data-adstage-container="true"]'),n[e(480)](e(499)),n][e(529)](t=>t&&t.hasAttribute(e(521))),...[n[e(480)](e(496)),n[e(480)](e(502)+String(this.adType)[e(563)]()),n[e(480)]('[class*="ad"]'),n[e(480)](e(468)),n[e(480)](e(550)),n[e(480)](e(538)),n[e(480)]('div[style*="min-height"]'),n[e(492)]][e(529)](Boolean)][0];if(s){let n=e(569);n=s[e(560)]("data-adstage-container")?"adstage-official":s[e(479)][e(541)]("adstage-slot")?e(579):e(526),s[e(547)][e(466)]+=e(578),s[e(517)]="",s[e(465)]("data-adstage-empty",e(510)),this[e(533)]&&console[e(500)](e(482)+this[e(473)]+e(554)+n+e(564)+t.id,s)}else this[e(558)](t)}t[e(515)]=void 0,t[e(556)]=!0}[ft(558)](t){const e=ft,n=document.getElementById(t[e(483)]);if(n){n[e(517)]="";const s=document[e(472)](e(565));s.id=t.id,s[e(551)]=e(493)+String(this[e(473)])[e(563)](),s[e(465)]("data-adstage-container",e(510)),s[e(465)](e(545),e(510)),s[e(465)](e(470),t.id),s[e(547)][e(466)]=e(497),n[e(513)](s),this.debug&&console[e(500)](e(567)+this.adType+" container: "+t.id)}}[ft(577)](t,...e){const n=ft;this[n(533)]&&console[n(577)]("["+this[n(473)]+"] "+t,...e)}}function vt(t,e){const n=bt();return(vt=function(t,e){return n[t-=233]})(t,e)}const yt=vt;function bt(){const t=["style"," (avg: ","allSettled","filter","16:9","height","some","📐 Optimal banner container calculated: ","62334RjBIEQ","onerror","aspectRatio","selectOptimalSizeStrategy","47844GscESj","Banner container optimization failed, using default size:","ratio","forEach","innerHTML","22150THZMnn","common","containerId","loadImageDimensions","borderRadius","toFixed"," with ","calculateAdSize","className","optimizedHeight","log","#f0f0f0","Banner Ad","🎠 Banner carousel created for slot: ","adstage-ad adstage-banner-ad","onload","renderMultipleAds","Failed to load image: ","118UEdpjD","3383608EqXdDg","status","Banner"," ads: ","abs","Banner Advertisement","✅ Optimized banner image rendered for ad: ","addClickEventForRenderer","toString",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"createElement","default","250px","set","debug","objectPosition","imageUrl","calculateOptimalContainerSize","📊 Using standard ratio: ","100%","error","value","naturalHeight","backgroundColor",", ratio=","renderAdElement","config","getElementById","8508696AuaFkT","values","📸 Banner image dimensions: ","parentElement","8px","fulfilled","block","src","3:2","dominant","1498015aXqtLQ","calculateOptimalHeight","alt","warn","2010cyWpET","reduce","optimizeContainerForBannerAds","appendChild","objectFit","average","map","BANNER","1:1","</div>","renderOptimizedBannerImage","Image URL is not provided","🔧 Banner container optimized for ","cover","getDefaultHeight","max","contain","length","Container not found: ","width","get","4795064beJZeA","applyOptimizedImageStyle","createEventTrackingCallback","title","3820kyESCZ","getBoundingClientRect","img","center","4:3","Failed to calculate optimal banner size, using defaults:","round"];return(bt=function(){return t})()}!function(){const t=vt,e=bt();for(;;)try{if(749756===parseInt(t(249))/1+-parseInt(t(320))/2*(parseInt(t(297))/3)+parseInt(t(321))/4+-parseInt(t(302))/5*(parseInt(t(253))/6)+-parseInt(t(239))/7+-parseInt(t(274))/8+-parseInt(t(293))/9*(-parseInt(t(278))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class wt extends It{constructor(e=!1,n){super(t[vt(260)],e,n)}[yt(267)](){return yt(333)}async[yt(236)](t,e){const n=yt,s=document[n(238)](t.containerId);if(!s)return;const r=document.createElement("div");r[n(310)]=n(316);const i=t.optimizedHeight,o=s[n(242)]||s;if(i)r[n(285)].width=n(340),r[n(285)][n(290)]=String(i);else{const e=t[n(237)],s={width:e?.[n(272)],height:e?.[n(290)]},{width:i,height:a}=this[n(309)](o,s,{debug:this[n(335)]});r.style[n(272)]=i,r.style[n(290)]=a}e[n(337)]?await this[n(263)](r,e,t):r[n(301)]="<div>"+(e[n(277)]||n(314))+n(262),it[n(328)](r,e,t,()=>this[n(276)](),this[n(335)],"Banner"),s.innerHTML="",s[n(256)](r)}async[yt(318)](t,e){const n=yt,s=document.getElementById(t[n(304)]);if(!s)throw new Error(n(271)+t[n(304)]);await this[n(255)](t,e);const r=this[n(276)](),i={autoSlideInterval:(t[n(237)]?.slideInterval||5e3)/1e3,...t[n(237)],optimizedHeight:t[n(311)],aspectRatio:t.aspectRatio},o=dt.createSliderContainer(t,e,i,r,this[n(335)]);o&&(s[n(301)]="",s[n(256)](o),this[n(335)]&&console.log(n(315)+t.id+n(308)+e[n(270)]+" ads (optimized: "+(t[n(311)]||n(332))+")"))}async[yt(338)](t,e){const n=yt;if(!t[n(270)])return{width:n(340),height:this[n(267)](),aspectRatio:16/9};try{const s=(await Promise[n(287)](t[n(288)](t=>t[n(337)])[n(259)](t=>this[n(305)](t.imageUrl))))[n(288)](t=>t[n(322)]===n(244))[n(259)](t=>t[n(342)]);if(0===s[n(270)])return{width:n(340),height:this[n(267)](),aspectRatio:16/9};const r=this[n(296)](s),i=this[n(250)](s,e,r);return this[n(335)]&&console[n(312)](n(292)+e+"x"+i+" (strategy: "+r+")"),{width:n(340),height:i+"px",aspectRatio:e/i}}catch(t){return console[n(252)](n(283),t),{width:"100%",height:this[n(267)](),aspectRatio:16/9}}}async optimizeContainerForBannerAds(t,e){const n=yt;try{const s=document.getElementById(t[n(304)]),r=document[n(238)](t.id);if(!s||!r)return;const i=s[n(279)]()[n(272)]||300,o=await this.calculateOptimalContainerSize(e,i);r[n(285)].height=o[n(290)],t.optimizedHeight=o[n(290)],t[n(295)]=o[n(295)],this[n(335)]&&console[n(312)](n(265)+e.length+n(324)+o[n(290)])}catch(t){console[n(252)](n(298),t)}}[yt(296)](t){const e=yt,n=t.map(t=>t[e(272)]/t[e(290)]),s=new Map;n[e(300)](t=>{const n=e,r=(Math[n(284)](10*t)/10)[n(329)]();s[n(334)](r,(s[n(273)](r)||0)+1)});const r=Math[e(268)](...s[e(240)]()),i=t[e(270)];if(r/i>=.7)return e(248);const o=[16/9,4/3,1,1.5],a=n.filter(t=>o[e(291)](e=>Math.abs(t-e)<.1))[e(270)];return e(a/i>=.5?303:258)}[yt(250)](t,e,n){const s=yt,r=t[s(259)](t=>t[s(272)]/t[s(290)]);switch(n){case s(248):{const t=new Map;r[s(300)](e=>{const n=s,r=Math[n(284)](10*e)/10,i=r[n(329)](),o=t[n(273)](i);o?o.count++:t[n(334)](i,{ratio:r,count:1})});const n=Array.from(t.values()).reduce((t,e)=>e.count>t.count?e:t);return Math[s(284)](e/n[s(299)])}case s(303):{const t=[{ratio:16/9,name:s(289)},{ratio:4/3,name:s(282)},{ratio:1,name:s(261)},{ratio:1.5,name:s(247)}],n=r[s(254)]((t,e)=>t+e,0)/r.length,i=t[s(254)]((t,e)=>Math[s(325)](e[s(299)]-n)<Math[s(325)](t[s(299)]-n)?e:t);return this[s(335)]&&console[s(312)](s(339)+i.name+s(286)+n.toFixed(2)+")"),Math[s(284)](e/i[s(299)])}case s(258):default:{const t=r[s(254)]((t,e)=>t+e,0)/r[s(270)];return Math[s(284)](e/t)}}}[yt(305)](t){return new Promise((e,n)=>{const s=vt,r=new Image;r[s(317)]=()=>{const t=s;e({width:r.naturalWidth,height:r[t(233)]})},r[s(294)]=()=>{n(new Error(s(319)+t))},r[s(246)]=t})}[yt(275)](t,e,n){const s=yt,r=e/n;Math[s(325)](r-1)<.1?(t.style[s(257)]=s(266),t[s(285)].objectPosition="center"):r>1.3?(t[s(285)].objectFit=s(269),t[s(285)][s(336)]=s(281),t[s(285)][s(234)]=s(313)):r<.7?(t[s(285)][s(257)]=s(266),t.style[s(336)]=s(281)):(t[s(285)][s(257)]=s(266),t[s(285)].objectPosition="center"),this[s(335)]&&console.log("🎨 Banner image style applied: objectFit="+t[s(285)][s(257)]+s(235)+r[s(307)](2))}async[yt(263)](t,e,n){const s=yt,r=document[s(331)](s(280));r.style[s(272)]=s(340),r[s(285)].height="100%",r[s(285)].display=s(245),r[s(285)][s(306)]=s(243),r[s(251)]=e[s(277)]||s(326),t[s(301)]=s(330);try{if(!e[s(337)])throw new Error(s(264));const i=await this[s(305)](e.imageUrl),o=t.getBoundingClientRect(),a=o.width,c=o[s(290)];this[s(335)]&&(console[s(312)](s(241)+i.width+"x"+i[s(290)]),console[s(312)]("📦 Banner container dimensions: "+a+"x"+c));const d=i.width/i[s(290)],l=a/c;return this[s(275)](r,d,l),r[s(246)]=e[s(337)],t[s(301)]="",t[s(256)](r),it[s(328)](r,e,n,()=>this.createEventTrackingCallback(),this[s(335)],"Banner"),this.debug&&console[s(312)](s(327)+e._id),r}catch(i){return console[s(341)]("❌ Failed to load optimized banner image:",i),e.imageUrl&&(r[s(246)]=e[s(337)],r[s(285)][s(257)]=s(266),r[s(285)].objectPosition=s(281),t.innerHTML="",t.appendChild(r),it.addClickEventForRenderer(r,e,n,()=>this[s(276)](),this[s(335)],s(323))),r}}}function Et(t,e){const n=xt();return(Et=function(t,e){return n[t-=116]})(t,e)}const kt=Et;function xt(){const t=["setTextAdContent","1071484MZddlE","152gcwAZs","\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 ","createTextAdStyles","293EjJOBj","55413seuOsR","10KamxgG","542680VuWqvV","192997dfDUWf","2618ehXVYv","1883652LZIVqk","1092774KPoDGp","title"];return(xt=function(){return t})()}!function(){const t=Et,e=xt();for(;;)try{if(393225===-parseInt(t(121))/1*(-parseInt(t(126))/2)+-parseInt(t(128))/3+-parseInt(t(117))/4*(-parseInt(t(123))/5)+parseInt(t(127))/6+parseInt(t(125))/7*(-parseInt(t(118))/8)+-parseInt(t(122))/9+parseInt(t(124))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class St{static[kt(120)](t=!1){return kt(119)}static[kt(116)](t,e){const n=kt,s=e.textContent||e[n(129)]||"";t.textContent=s}}const At=Tt;function Tt(t,e){const n=Ct();return(Tt=function(t,e){return n[t-=314]})(t,e)}function Ct(){const t=["913614TpBTyc","position","minHeight",";\n ","getBoundingClientRect",";\n left: ","adstage-fade-slide","height","entries","mouseenter","342CunqHm","style","push","addEventListener","42833ssQrJs","\n position: ","clientY","appendChild","cssText","_id","height: auto;","className","data-adstage-slot-id","clientX","opacity",";\n width: 100%;\n ",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","createTextTransitionContainer","toLowerCase","\n ","touchstart","height: auto; min-height: fit-content;","5527528bpqwdf","autoSlideInterval","data-adstage-ad-id","addTouchSupport","abs","adstage-fade-slider-wrapper","left","20px","2948823cogwzt","508730QLmRqS","Text","body","touchend","154IVjzpS","4reXjIx","relative","transform","changedTouches","adstage-fade-slide-container","block","16mfuCDQ","auto","preventDefault","adType","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ",";\n transform: translateY(","543753ZuUohh","normal","top","forEach","absolute","mouseleave","translateY(-20px)","createElement","815090ADkuFT","setTextAdContent","string","removeChild","fit-content","length","width","touches","touchmove","height: 100%;","zIndex","div","trackSlideViewable","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","whiteSpace","createTextAdStyles","\n position: relative;\n width: 100%;\n ","addClickEventForSlider","createSimpleAdElement","setAttribute","setProperty","hidden","includes"];return(Ct=function(){return t})()}!function(){const t=Tt,e=Ct();for(;;)try{if(543174===parseInt(t(375))/1+-parseInt(t(363))/2*(-parseInt(t(317))/3)+-parseInt(t(369))/4*(parseInt(t(383))/5)+-parseInt(t(327))/6*(-parseInt(t(331))/7)+-parseInt(t(349))/8+-parseInt(t(357))/9+-parseInt(t(358))/10*(-parseInt(t(362))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Dt{static[At(401)](t,e){const n=At,s=document.createElement("div");return s[n(338)]="adstage-ad adstage-"+String(t[n(372)])[n(345)](),s[n(402)](n(351),e[n(336)]),s[n(402)](n(339),t.id),s[n(328)][n(335)]=St[n(398)](!0),St[n(384)](s,e),s}static[At(344)](t,e,n,s,r=!1){const i=At,o=t.height&&0!==t.height&&"auto"!==t[i(324)],a=document[i(382)](i(394));a.className=i(354);const c={position:i(364),overflow:i(315),display:i(368)};if(!o&&(c[i(324)]=i(370),c[i(319)]=i(387)),t.width&&0!==t[i(389)]){let e;e=typeof t[i(389)]===i(385)&&(t.width.includes("px")||t[i(389)][i(316)]("%"))?t.width:t[i(389)]+"px",c[i(389)]=e}if(t[i(324)]&&0!==t[i(324)]&&t.height!==i(370)&&o){let e;e="string"==typeof t.height&&(t.height[i(316)]("px")||t.height[i(316)]("%"))?t[i(324)]:t.height+"px",c[i(324)]=e}Object[i(325)](c)[i(378)](([t,e])=>{const n=i;a[n(328)][n(314)](t,e)});const d=document.createElement("div");d[i(338)]=i(367),d[i(328)].cssText=i(399)+(o?"height: 100%;":i(348))+i(346);let l=null;const u=!t.width||0===t[i(389)],p=!t.height||0===t[i(324)]||void 0===t[i(324)]||"auto"===t[i(324)];if(u||p&&o){if(l=document.createElement(i(394)),l.style[i(335)]=i(396),!u&&t.width){let e;e=typeof t[i(389)]===i(385)&&(t[i(389)][i(316)]("px")||t.width[i(316)]("%"))?t[i(389)]:t[i(389)]+"px",l[i(328)].width=e,l[i(328)][i(397)]=i(376)}document[i(360)].appendChild(l);let n=0,s=0;e[i(378)](e=>{const r=i,o=this[r(401)](t,e);l.appendChild(o);const a=o[r(321)]();a[r(389)]>n&&(n=a.width),a.height>s&&(s=a[r(324)]),l[r(386)](o)}),u&&n>0&&(a[i(328)].width=n+"px"),p&&s>0&&o&&(a.style[i(324)]=s+"px"),document[i(360)][i(386)](l)}const h=[];e.forEach((e,n)=>{const a=i,c=document[a(382)](a(394));c.className=a(323);const l=a(o?379:0===n?364:379);c[a(328)][a(335)]=a(332)+l+";\n top: "+("absolute"===l?"0":a(370))+a(322)+("absolute"===l?"0":a(370))+a(342)+a(o?392:337)+a(373)+(0===n?"1":"0")+a(374)+(0===n?"0":a(356))+a(343)+(0===n?"2":"1")+a(320);const u=this[a(401)](t,e);it[a(400)](u,e,t,s,r,a(359)),c[a(334)](u),d[a(334)](c),h[a(329)](c)});let f=0;const g=e[i(388)],m=1e3*(n?.[i(350)]||4),I=n=>{const a=i;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&("relative"===c[a(328)][a(318)]&&(c[a(328)][a(318)]=a(379),c[a(328)][a(377)]="0",c[a(328)].left="0"),d.style[a(318)]=a(364),d[a(328)].top=a(370),d.style.left="auto"),c.style[a(341)]="0",c.style[a(365)]=a(381),c[a(328)].zIndex="1",d[a(328)][a(341)]="1",d[a(328)].transform="translateY(0)",d[a(328)].zIndex="2",h.forEach((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(328)][s(341)]="0",t.style.transform="translateY(20px)",t[s(328)][s(393)]="1",!o&&"relative"===t.style[s(318)]&&(t[s(328)].position=s(379),t[s(328)].top="0",t[s(328)][s(355)]="0"))}),f=n,et[a(395)](e[f],t,f,s,r)};let v=setInterval(()=>{I(f+1)},m);return a.addEventListener(i(326),()=>{clearInterval(v)}),a[i(330)](i(380),()=>{v=setInterval(()=>{I(f+1)},m)}),Dt[i(352)](a,I,()=>f,g),a.appendChild(d),a}static[At(352)](t,e,n,s){const r=At;let i=0,o=0,a=!1;t[r(330)](r(347),t=>{i=t[r(390)][0].clientX,o=t.touches[0].clientY,a=!0}),t[r(330)](r(391),t=>{a&&t[r(371)]()}),t[r(330)](r(361),t=>{const s=r;if(!a)return;a=!1;const c=t[s(366)][0][s(340)],d=t[s(366)][0][s(333)],l=i-c,u=o-d;if(Math.abs(l)>Math[s(353)](u)&&Math[s(353)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}function Bt(){const t=["5cplDQy","createTextAdStyles","577752yGDzZr","2232748wCsNrm","optimizedHeight","height","TEXT","display","Text","slideInterval","calculateAdSize","createEventTrackingCallback","3MkLAMh","259461VDmFwN","className","setTextAdContent","width","getElementById","1353MBTPhV"," ads","div","length","aspectRatio","renderMultipleAds","60px","style","100%","log","appendChild","1710160YQswAW","hidden","createElement","innerHTML","Container not found: ","1014DBgEue","containerId","parentElement","number"," with ","cssText","_id","adstage-text-content","config","overflow","debug","375436jeUUEH","vertical","maxLines","✨ Text transition created for slot: ","adstage-ad adstage-text-ad","39570WkxJBc","6391rXdzfc"];return(Bt=function(){return t})()}const zt=Rt;function Rt(t,e){const n=Bt();return(Rt=function(t,e){return n[t-=154]})(t,e)}!function(){const t=Rt,e=Bt();for(;;)try{if(411402===-parseInt(t(156))/1*(-parseInt(t(189))/2)+-parseInt(t(198))/3+parseInt(t(199))/4*(parseInt(t(196))/5)+-parseInt(t(178))/6*(-parseInt(t(195))/7)+-parseInt(t(173))/8+parseInt(t(157))/9+-parseInt(t(194))/10*(parseInt(t(162))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt extends It{constructor(e=!1,n){super(t[Rt(202)],e,n)}getDefaultHeight(){return Rt(168)}async renderAdElement(t,e){const n=Rt,s=document[n(161)](t[n(179)]);if(!s)return;const r=document[n(175)](n(164));r[n(158)]=n(193);const i=t[n(200)],o=s[n(180)]||s;if(i)r[n(169)].width=n(170),r[n(169)][n(201)]=String(i);else{const e=t.config,s={width:e?.[n(160)],height:e?.[n(201)]},{width:i,height:a}=this[n(154)](o,s,{debug:this[n(188)]});r[n(169)].width=i,r[n(169)][n(201)]=a}const a=document.createElement(n(164));a[n(158)]=n(185),a[n(169)][n(183)]=St[n(197)](!1),St[n(159)](a,e);const c=t[n(186)]?.[n(191)];c&&typeof c===n(181)&&(a[n(169)][n(203)]="-webkit-box",a[n(169)].webkitLineClamp=String(c),a.style.webkitBoxOrient=n(190),a.style[n(187)]=n(174)),r[n(172)](a),it.addClickEventForRenderer(r,e,t,()=>this[n(155)](),this[n(188)],n(204)),s[n(176)]="",s.appendChild(r),this[n(188)]&&console[n(171)]("✨ Single text ad rendered: "+e[n(184)])}async[zt(167)](t,e){const n=zt,s=document[n(161)](t.containerId);if(!s)throw new Error(n(177)+t[n(179)]);const r=this[n(155)](),i={autoSlideInterval:(t.config?.[n(205)]||5e3)/1e3,...t.config,optimizedHeight:t[n(200)],aspectRatio:t[n(166)]},o=Dt.createTextTransitionContainer(t,e,i,r,this.debug);o&&(s.innerHTML="",s[n(172)](o),this[n(188)]&&console.log(n(192)+t.id+n(182)+e[n(165)]+n(163)))}}const Pt=Ut;function Ut(t,e){const n=Mt();return(Ut=function(t,e){return n[t-=468]})(t,e)}function Mt(){const t=["playsinline","disabled (default)","49AwiuLl","Container not found: ","6vfgWDB","🔊 Video mute toggled: ","🎬 Video data loaded, attempting autoplay...","contain","getElementById","background","src"," (autoplay: ","videoUrl","2653530MnWNVX","\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n ","addEventListener","hideFullscreenButton","createEventTrackingCallback","⚠️ No video advertisements available for slot: ","\n pointer-events: none;\n "," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","alt","1984248olJZcv","imageUrl","🎬 Video controls setting:","debug","🎬 Video can play, attempting autoplay...","VIDEO","style","innerHTML","🎬 Trying muted autoplay fallback...","🎬 Video metadata loaded, attempting autoplay...","Video load failed:","adstage-video-mute-button","hideControls","stopPropagation","autoplay","VIEWABLE","video","loop","length","img","controls","mouseleave","unmuted","cssText","muted","3633264SthLHv","🎬 User explicitly enabled controls, overriding default","containerId","renderMultipleAds","_id","width","transform","loadedmetadata","enabled","360px","position","height","catch","mouseenter","Video fallback","100%","rgba(0, 0, 0, 0.7)"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","3VOtNPN","scale(1)","🎬 Autoplay completely failed:","Video","hideVolumeSlider","49193iKqVGa","addClickEventForRenderer","none",", muted: ","getDefaultHeight","block","textContent","rgba(0, 0, 0, 0.9)","className",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',"appendChild","canplay","play","🎬 Initial autoplay attempt after timeout...","265704xzYlLW","objectFit","div","adstage-video-default-controls","hidePlayButton"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","loadeddata","adstage-video-container","warn","renderAdElement","scale(1.1)","head","🎬 Video element created for ad: ","click","renderVideoElementDirect","metadata","🎬 Auto-play was prevented:",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ',"customControls","68748pWydlZ","hideMuteButton","log","createElement","hideRemainingTime","error","2520050VXYMhB","Video thumbnail"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "];return(Mt=function(){return t})()}!function(){const t=Ut,e=Mt();for(;;)try{if(273007===-parseInt(t(540))/1*(parseInt(t(474))/2)+parseInt(t(535))/3*(parseInt(t(554))/4)+parseInt(t(483))/5+-parseInt(t(573))/6*(parseInt(t(472))/7)+-parseInt(t(492))/8+parseInt(t(517))/9+-parseInt(t(579))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Nt extends It{constructor(e=!1,n){super(t[Ut(497)],e,n)}[Pt(544)](){return Pt(526)}async[Pt(563)](t,e){const n=Pt,s=document[n(478)](t[n(519)]);if(!s)return;const r=document[n(576)](n(556));r[n(548)]=n(561),r[n(498)][n(515)]="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this[n(568)](r,e,t),s[n(499)]="",s[n(550)](r),this.debug&&console.log("🎬 Single video ad rendered: "+e[n(521)])}async[Pt(520)](t,e){const n=Pt,s=document[n(478)](t[n(519)]);if(!s)throw new Error(n(473)+t[n(519)]);if(e[n(510)]>0){const r=e[0],i=document[n(576)](n(556));i[n(548)]=n(561),i.style[n(515)]="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this[n(568)](i,r,t),s[n(499)]="",s[n(550)](i);const a=this[n(487)]();setTimeout(()=>{const e=n;a(r[e(521)],t.id,o[e(507)])},100),this[n(495)]&&console.log("🎬 Single video rendered for VIDEO slot: "+t.id+" ("+r._id+")")}else this[n(495)]&&console[n(562)](n(488)+t.id)}[Pt(568)](t,e,n){const s=Pt;t[s(498)][s(527)]="relative";const r=document[s(576)](s(508));r[s(498)][s(522)]=s(532),r[s(498)][s(528)]="100%",r[s(498)][s(555)]=s(477),r.preload=s(569);const i=n.config;if(this[s(495)]&&console.log("🎬 Video config received:",i),r[s(512)]=!1,r[s(506)]=!1!==i?.[s(506)],r.muted=!0,r.loop=!1!==i?.loop,this[s(495)]&&console[s(575)]("🎬 Final video settings:",{autoplay:r[s(506)],muted:r[s(516)],loop:r.loop,controls:r[s(512)]}),!1!==i?.[s(470)]&&r.setAttribute(s(470),""),!0===i?.[s(512)]&&(r[s(512)]=!0,this.debug&&console.log(s(518))),i?.[s(504)])r[s(512)]=!1,r[s(498)][s(515)]+=s(489);else if(i?.[s(572)]){if(r[s(512)]){const t=document[s(576)](s(498));t[s(546)]="\n video::-webkit-media-controls-play-button {\n display: "+(i[s(572)][s(558)]?"none":"block")+s(534)+(i.customControls.hideProgressBar?"none":s(545))+s(490)+(i.customControls.hideCurrentTime?s(542):s(545))+s(469)+(i[s(572)][s(577)]?s(542):s(545))+s(559)+(i[s(572)][s(539)]?s(542):s(545))+" !important;\n }\n video::-webkit-media-controls-mute-button {\n display: "+(i[s(572)][s(574)]?s(542):"block")+" !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: "+(i[s(572)][s(486)]?s(542):s(545))+" !important;\n }\n ",document.head.appendChild(t)}}else if(r[s(512)]){const t=document[s(576)]("style");t.id=s(557),t[s(546)]=s(484),!document.getElementById(s(557))&&document[s(565)][s(550)](t)}this[s(495)]&&console[s(575)](s(494),r[s(512)]?s(525):s(471));const o=document[s(576)]("button");o.className=s(503),o.style[s(515)]="\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ",i?.[s(504)]&&(o[s(498)].display=s(542));const a=()=>{const t=s,e=t(571),n=t(549);o[t(499)]=r[t(516)]?e:n,o.title=r[t(516)]?"Click to unmute":"Click to mute"};if(a(),o[s(485)](s(567),t=>{const e=s;t[e(505)](),r[e(516)]=!r[e(516)],a(),this[e(495)]&&console[e(575)](e(475)+(r.muted?"muted":e(514)))}),o[s(485)](s(530),()=>{const t=s;o[t(498)].background=t(547),o[t(498)][t(523)]=t(564)}),o[s(485)](s(513),()=>{const t=s;o[t(498)][t(479)]=t(533),o[t(498)][t(523)]=t(536)}),e[s(482)]){r[s(480)]=e[s(482)];const t=()=>{const t=s;r.autoplay&&r.muted&&r.paused&&r[t(552)]().catch(e=>{const n=t;this.debug&&(console.warn(n(570),e),console.warn(n(500))),r[n(516)]=!0,r[n(552)]()[n(529)](t=>{const e=n;this[e(495)]&&console.error(e(537),t)})})};r[s(485)](s(524),()=>{const e=s;this.debug&&console[e(575)](e(501)),t()}),r[s(485)](s(551),()=>{const e=s;this[e(495)]&&console[e(575)](e(496)),t()}),r.addEventListener(s(560),()=>{const e=s;this.debug&&console[e(575)](e(476)),t()}),setTimeout(()=>{const e=s;this[e(495)]&&console[e(575)](e(553)),t()},100)}else if(e[s(493)]){const n=document[s(576)](s(511));return n.src=e.imageUrl,n[s(498)][s(522)]=s(532),n[s(498)][s(528)]=s(532),n[s(498)][s(555)]=s(477),n[s(491)]=e.title||s(468),void t[s(550)](n)}it[s(541)](r,e,n,()=>this[s(487)](),this[s(495)],s(538)),r[s(485)](s(578),r=>{const i=s;if(console.error(i(502),r),e.imageUrl){const s=document.createElement(i(511));s[i(480)]=e[i(493)],s[i(498)].width=i(532),s[i(498)][i(528)]=i(532),s[i(498)][i(555)]=i(477),s.alt=e.title||i(468),it[i(541)](s,e,n,()=>this[i(487)](),this.debug,i(531)),t[i(499)]="",t[i(550)](s)}}),t[s(550)](r),t[s(550)](o),this[s(495)]&&console[s(575)](s(566)+e[s(521)]+s(481)+r[s(506)]+s(543)+r[s(516)]+", loop: "+r[s(509)]+")")}}function Vt(){const t=["img","style","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","mouseleave","9xkgQxQ","🏠 Single native ad rendered: ","18peoUoo","click","29822GcUHnn","log","Native Advertisement","length","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","div","warn","Learn More","textContent","): ","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","debug","advertisementEventTracker","6739997nckQbb","backgroundColor","_id","createElement","getElementById","115iMPbIs","button","20avFbHk","#2563eb","NATIVE","src","imageUrl","open","adstage-ad adstage-native-ad","addEventListener","innerHTML","title","mouseenter","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","renderMultipleAds","alt","665216dNweHE","200px","cssText","renderAdElement","containerId","106wFvPdg","appendChild","9325421hKWyTR","🏠 Native ad rendered (first of ","11249448bUOBWz","117900XNwTHM","341382MhmUNk","Native click tracked for ad: ","\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n "];return(Vt=function(){return t})()}const Ft=Ot;function Ot(t,e){const n=Vt();return(Ot=function(t,e){return n[t-=489]})(t,e)}!function(){const t=Ot,e=Vt();for(;;)try{if(860643===-parseInt(t(506))/1*(parseInt(t(523))/2)+parseInt(t(519))/3*(parseInt(t(511))/4)+-parseInt(t(541))/5*(parseInt(t(512))/6)+parseInt(t(508))/7+parseInt(t(501))/8*(parseInt(t(521))/9)+-parseInt(t(543))/10*(-parseInt(t(536))/11)+parseInt(t(510))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class _t extends It{constructor(e=!1,n){super(t[Ot(489)],e,n)}getDefaultHeight(){return Ot(502)}async[Ft(504)](t,e){const n=Ft,s=document[n(540)](t[n(505)]);if(!s)return;const r=document[n(539)](n(528));if(r.className=n(493),r[n(516)].cssText=n(527),e.title){const t=document[n(539)]("h3");t.textContent=e[n(496)],t[n(516)][n(503)]="\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ",r[n(507)](t)}if(e[n(531)]){const t=document[n(539)]("p");t[n(531)]=e[n(531)],t[n(516)][n(503)]=n(533),r[n(507)](t)}if(e[n(491)]){const t=document[n(539)](n(528));t[n(516)][n(503)]=n(498);const s=document[n(539)](n(515));s[n(490)]=e[n(491)],s[n(500)]=e[n(496)]||n(525),s[n(516)][n(503)]=n(517),t[n(507)](s),r.appendChild(t)}if(e.linkUrl){const t=document[n(539)](n(542));t[n(531)]=n(530),t[n(516)].cssText=n(514),t[n(494)](n(522),()=>{const t=n;this[t(535)]&&console[t(524)](t(513)+e._id),window[t(492)](e.linkUrl,"_blank")}),t[n(494)](n(497),()=>{const e=n;t[e(516)][e(537)]=e(544)}),t[n(494)](n(518),()=>{const e=n;t.style[e(537)]="#3b82f6"}),r.appendChild(t)}s[n(495)]="",s[n(507)](r),this[n(534)]&&console[n(524)](n(520)+e[n(538)])}async[Ft(499)](t,e){const n=Ft;e[n(526)]>0?(await this.renderAdElement(t,e[0]),this[n(534)]&&console[n(524)](n(509)+e[n(526)]+n(532)+t.id)):this[n(534)]&&console[n(529)]("⚠️ No native advertisements available for slot: "+t.id)}}const Ht=Kt;function Kt(t,e){const n=jt();return(Kt=function(t,e){return n[t-=495]})(t,e)}function jt(){const t=["🖼️ Interstitial ad rendered: ","backgroundColor","\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ","⚠️ No interstitial advertisements available for slot: ","createElement","img","click","): ","getDefaultHeight","log","textContent","linkUrl","_blank","320QeqcMO","renderAdElement","1355620NyFslT","appendChild","Get Started","color","fadeOut 0.3s ease-out forwards","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","mouseenter","538437XNUqZq","addEventListener","length","11735DCtHTE","button","containerId","\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ","removeEventListener","parentNode","getElementById","keydown","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","head","advertisementEventTracker","body","#f3f4f6","Interstitial click tracked for ad: ","mouseleave","324518KZnWsy","imageUrl","\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ","div","400px","src","animation","innerHTML","key","1711902hXVyvl","title","className","debug","adstage-interstitial-styles","1249672KpWkqO","_id","2204460Yzpivh","#2563eb","open","renderMultipleAds","removeChild","closeInterstitial","adstage-interstitial-overlay","9ZHeYwV","cssText","style"];return(jt=function(){return t})()}!function(){const t=Kt,e=jt();for(;;)try{if(753611===parseInt(t(548))/1+parseInt(t(500))/2+parseInt(t(509))/3+parseInt(t(539))/4*(-parseInt(t(551))/5)+-parseInt(t(516))/6+parseInt(t(541))/7+-parseInt(t(514))/8*(parseInt(t(523))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Wt extends It{constructor(e=!1,n){super(t.INTERSTITIAL,e,n)}[Ht(534)](){return Ht(504)}async[Ht(540)](t,e){const n=Ht;if(!document[n(557)](t[n(553)]))return;const s=document[n(530)](n(503));s[n(511)]=n(522),s.style[n(524)]=n(528);const r=document[n(530)](n(503));r.className="adstage-interstitial-content",r.style[n(524)]=n(502);const i=document[n(530)](n(552));if(i[n(507)]="×",i.style.cssText=n(554),i[n(549)](n(532),()=>{this[n(521)](s)}),i.addEventListener(n(547),()=>{const t=n;i.style[t(527)]="#e5e7eb",i[t(525)][t(544)]="#374151"}),i[n(549)](n(499),()=>{const t=n;i.style.backgroundColor=t(497),i[t(525)][t(544)]="#6b7280"}),e[n(501)]){const t=document.createElement(n(531));t[n(505)]=e[n(501)],t.alt=e[n(510)]||"Interstitial Advertisement",t[n(525)][n(524)]="\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ",r[n(542)](t)}if(e[n(510)]){const t=document[n(530)]("h2");t[n(536)]=e.title,t[n(525)][n(524)]=n(559),r[n(542)](t)}if(e.textContent){const t=document[n(530)]("p");t[n(536)]=e[n(536)],t.style.cssText="\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ",r[n(542)](t)}if(e.linkUrl){const t=document.createElement(n(552));t[n(536)]=n(543),t.style.cssText="\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ",t.addEventListener(n(532),()=>{const t=n;this[t(495)]&&console[t(535)](t(498)+e[t(515)]),window[t(518)](e[t(537)],t(538)),this.closeInterstitial(s)}),t[n(549)](n(547),()=>{const e=n;t[e(525)][e(527)]=e(517)}),t.addEventListener(n(499),()=>{const e=n;t[e(525)][e(527)]="#3b82f6"}),r.appendChild(t)}const o=t=>{const e=n;"Escape"===t[e(508)]&&(this[e(521)](s),document[e(555)]("keydown",o))};if(document[n(549)](n(558),o),s[n(549)](n(532),t=>{const e=n;t.target===s&&this[e(521)](s)}),!document[n(557)]("adstage-interstitial-styles")){const t=document.createElement("style");t.id=n(513),t.textContent=n(546),document[n(560)].appendChild(t)}r[n(542)](i),s[n(542)](r),document[n(496)].appendChild(s),this.debug&&console[n(535)](n(526)+e[n(515)])}async[Ht(519)](t,e){const n=Ht;e[n(550)]>0?(await this.renderAdElement(t,e[0]),this[n(512)]&&console[n(535)]("🖼️ Interstitial ad rendered (first of "+e[n(550)]+n(533)+t.id)):this[n(512)]&&console.warn(n(529)+t.id)}[Ht(521)](t){const e=Ht;t.style[e(506)]=e(545),setTimeout(()=>{const n=e;t[n(556)]&&t.parentNode[n(520)](t)},300),this[e(512)]&&console[e(535)]("🖼️ Interstitial ad closed")}}const Xt=qt;function qt(t,e){const n=Gt();return(qt=function(t,e){return n[t-=459]})(t,e)}function Gt(){const t=["debug","renderers","19213328GLmNFW","2630280Fatjpo","set","padding","1471942MuuDro","textContent","renderAd","naturalWidth","8px","img","No renderer found for ad type: ","isLoaded","1px dashed #ccc","createPlaceholder"," Ad","calculateOptimalContainerSize","warn","942054WBCWmN","onerror","createElement","loadImageDimensions","#f9f9f9","1jZbavu","No advertisement to render","setAttribute","getDefaultHeight","advertisementEventTracker","adType","4362140KwPgoU","border","renderOptimizedBannerImage","Failed to load image: ","appendChild","renderFallback","NATIVE","style","naturalHeight","src","width","log","imageUrl","_id","cover","data-adstage-ad-id","objectFit","display"," renderers","renderAdElement","initializeRenderers","onload","video","renderOptimizedBannerImage is only supported for BANNER ads","TEXT","div","calculateAdSize","toLowerCase","config","height","100%","optimizeContainerForBannerAds","⚠️ Container optimization is only supported for BANNER ads, got: ","getRenderer","765532uvPWyu","videoUrl","advertisement","renderAdSlider","data-adstage-slot-id","3728543uFoPOa","BANNER"];return(Gt=function(){return t})()}!function(){const t=qt,e=Gt();for(;;)try{if(483530===parseInt(t(509))/1*(-parseInt(t(491))/2)+-parseInt(t(488))/3+parseInt(t(478))/4+-parseInt(t(515))/5+-parseInt(t(504))/6+parseInt(t(483))/7+parseInt(t(487))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Yt{constructor(t=!1,e){const n=qt;this[n(486)]=new Map,this[n(485)]=t,this.advertisementEventTracker=e||null,this[n(464)]()}[Xt(464)](){const e=Xt;this[e(486)][e(489)](t[e(484)],new wt(this.debug,this[e(513)])),this.renderers[e(489)](t[e(468)],new Lt(this[e(485)],this[e(513)])),this[e(486)][e(489)](t.VIDEO,new Nt(this[e(485)],this.advertisementEventTracker)),this.renderers[e(489)](t[e(521)],new _t(this[e(485)],this[e(513)])),this.renderers[e(489)](t.INTERSTITIAL,new Wt(this[e(485)],this.advertisementEventTracker)),this[e(485)]&&console.log("🏭 AdRenderer factory initialized with "+this[e(486)].size+e(462))}createAdElement(e,n){const s=Xt,r=this.getRenderer(e[s(514)]),i=document[s(506)]("div");i.className="adstage-ad adstage-"+String(e[s(514)])[s(471)](),i[s(511)](s(459),n[s(528)]),i[s(511)](s(482),e.id);const{width:o,height:a}=r[s(470)](i,e[s(472)]||{},n);switch(i[s(522)][s(525)]=o,i[s(522)][s(473)]=a,i.style[s(461)]="block",e[s(514)]){case t[s(484)]:if(n[s(527)]){const t=document[s(506)](s(496));t[s(524)]=n[s(527)],t.style[s(525)]=s(474),t[s(522)].height="100%",t[s(522)][s(460)]=s(529),i.appendChild(t)}break;case t.VIDEO:if(n[s(479)]){const t=document.createElement(s(466));t[s(524)]=n.videoUrl,t[s(522)][s(525)]=s(474),t[s(522)][s(473)]=s(474),i[s(519)](t)}break;case t[s(468)]:if(n[s(492)]){const t=document[s(506)](s(469));t[s(492)]=n[s(492)]||"",t[s(522)][s(490)]=s(495),i[s(519)](t)}break;default:i[s(522)][s(516)]=s(499),i[s(522)].backgroundColor=s(508),i[s(492)]=e[s(514)]+s(501)}return i}[Xt(477)](t){const e=Xt,n=this[e(486)].get(t);if(!n)throw new Error(e(497)+t);return n}[Xt(500)](t,e,n,s,r){const i=Xt;this[i(477)](n)[i(500)](t,e,s,r)}async[Xt(475)](e,n){const s=Xt;if(e[s(514)]!==t[s(484)])return void(this[s(485)]&&console[s(503)](s(476)+e.adType));const r=this[s(477)](t[s(484)]);await r.optimizeContainerForBannerAds(e,n)}async[Xt(481)](t,e){const n=this[Xt(477)](t.adType);await n.renderMultipleAds(t,e)}async[Xt(493)](t){const e=Xt;if(!t[e(480)])throw new Error(e(510));const n=this[e(477)](t[e(514)]);await n.renderAdElement(t,t[e(480)]),t[e(498)]=!0}async[Xt(463)](t,e){const n=Xt,s=this[n(477)](t[n(514)]);await s[n(463)](t,e)}[Xt(520)](t){const e=Xt;this[e(477)](t[e(514)])[e(520)](t)}getDefaultHeightForAdType(t){const e=Xt;return this[e(477)](t)[e(512)]()}[Xt(470)](t,e,n,s){return this[Xt(477)](e).calculateAdSize(t,n,s)}[Xt(507)](t){return new Promise((e,n)=>{const s=qt,r=new Image;r[s(465)]=()=>{const t=s;e({width:r[t(494)],height:r[t(523)]})},r[s(505)]=()=>{n(new Error(s(518)+t))},r.src=t})}async renderOptimizedBannerImage(e,n,s){const r=Xt;if(s[r(514)]!==t.BANNER)throw new Error(r(467));const i=this[r(477)](t[r(484)]);return await i[r(517)](e,n,s)}async[Xt(502)](e,n,s){const r=Xt;if(s!==t.BANNER){const t=this.getRenderer(s);return{width:r(474),height:t[r(512)](),aspectRatio:16/9}}const i=this[r(477)](t.BANNER);return await i[r(502)](e,n)}[Xt(526)](t,...e){const n=Xt;this.debug&&console[n(526)]("[AdRenderer] "+t,...e)}}const Qt=Jt;function Zt(){const t=["onClick","destroy","getBaseUrl","warn","auto-","native","🔍 Auto-cleanup MutationObserver enabled","getElementById","[data-adstage-slot-id]",", filters:","BANNER","slots","getAllSlots","set","_config","list","playsinline","from","string","innerHTML","now","🗑️ Ad slot destroyed: ","Failed to fetch ad data: ","controls","1739705PqvPvj","loop","delete","🚫 Advertisement not found with ID: ","error","4uwHrPk","disconnect","advertisement","data-adstage-slot-id","language","append","2815311OGBlgK","autoDestroy","_isReady","nodeType","viewabilityTracker","config","NATIVE","adType","createAdInternal","2043108SEVQqi","create","getSlotById","slideInterval","getConfig","ms... (attempt ","Ads module not initialized. Call AdStage.init() first.","observe","API key not configured","banner","deviceType","isReady","setupAutoCleanup","handleRemovedElement","GET","handleViewableEvent","hideControls","9985010ceoGxe","refreshAdSlot","startSimpleViewabilityTracking","_id"," (element found)","getAttribute","renderFallback","json","mutationObserver","🗑️ Ads module destroyed","log","setAttribute","🎠 Slider will handle VIEWABLE events for ","❌ Failed to track viewable impression:","status","clear","loadAdContentInBackground","📊 Fetched ","100%","autoplay","VIEWABLE","customControls","forEach","body","9vmbWFb","🧹 Auto-cleanup: slot ","createAd","renderAdElement","apiKey","18VguUQA","1278744QbfXeG","renderAdSlider","refresh","optimizeContainerForBannerAds","Container not found: ","fetchAdData","then"," attempts: ","VIDEO","createAdWithRetry","autoSlide","trackAdvertisementEvent","undefined"," ads automatically","debug","Ad slot not found: ","596092GVHcjY","width","advertisements","adRenderer","removedNodes","toString","substr","renderAd","1857408XCZGIp","values","height","TEXT","ELEMENT_NODE"," removed","get","adId","advertisementEventTracker","muted","INTERSTITIAL","country","length","adstage-","ensureReady","createPlaceholder","detail","🔄 Ad slot refreshed: ","📊 Fetched specific ad with ID: ","광고 생성 중 오류 발생:"];return(Zt=function(){return t})()}function Jt(t,e){const n=Zt();return(Jt=function(t,e){return n[t-=342]})(t,e)}!function(){const t=Jt,e=Zt();for(;;)try{if(663798===parseInt(t(371))/1+-parseInt(t(443))/2+-parseInt(t(434))/3*(-parseInt(t(428))/4)+parseInt(t(423))/5*(parseInt(t(354))/6)+parseInt(t(379))/7+-parseInt(t(355))/8+parseInt(t(349))/9*(-parseInt(t(460))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class $t{constructor(){const t=Jt;this._isReady=!1,this[t(413)]=null,this[t(410)]=new Map,this.advertisementEventTracker=null,this.adRenderer=null,this.mutationObserver=null}init(t){const e=Jt;this[e(413)]=t,this[e(387)]=new O(Z[e(401)](),t[e(353)],t.debug||!1,this[e(410)]),this[e(374)]=new Yt(t[e(369)]||!1,this.advertisementEventTracker),this.setupAutoCleanup(),this[e(436)]=!0,t[e(369)]&&console[e(470)]("🎯 Ads module initialized (sync mode) with auto-cleanup")}[Qt(454)](){return this[Qt(436)]}[Qt(447)](){return this[Qt(413)]}[Qt(452)](e,n){const s=Qt;this[s(393)]();const r={width:n?.width||s(343),height:n?.[s(381)]||"auto",autoSlide:n?.[s(365)]||!1,slideInterval:n?.[s(446)]||5e3,onClick:n?.[s(399)],adId:n?.adId,language:n?.[s(432)],deviceType:n?.[s(453)],country:n?.[s(390)]};return this[s(351)](e,t[s(409)],r)}text(e,n){const s=Qt;this[s(393)]();const r={maxLines:n?.maxLines||3,style:n?.style||"default",onClick:n?.[s(399)],adId:n?.adId,language:n?.[s(432)],deviceType:n?.[s(453)],country:n?.[s(390)]};return this[s(351)](e,t[s(382)],r)}video(e,n){const s=Qt;this[s(393)]();const r={width:n?.width||640,height:n?.[s(381)]||360,autoplay:void 0===n?.[s(344)]||n[s(344)],muted:void 0===n?.[s(388)]||n[s(388)],loop:void 0===n?.[s(424)]||n.loop,playsinline:!1!==n?.[s(415)],controls:void 0!==n?.[s(422)]&&n[s(422)],hideControls:n?.[s(459)]||!1,customControls:n?.[s(346)],autoSlide:!1,maxAds:1,onClick:n?.[s(399)],...n?.[s(386)]&&{adId:n.adId}};return this[s(351)](e,t[s(363)],r)}[Qt(404)](e,n){const s=Qt;return this[s(393)](),this.createAd(e,t[s(440)],n||{})}interstitial(e,n){const s=Qt;return this[s(393)](),this[s(351)](e,t[s(389)],n||{})}[Qt(357)](t){const e=Qt;this[e(393)]();const n=this[e(410)].get(t);if(!n)throw new Error(e(370)+t);this[e(461)](n),this[e(413)]?.[e(369)]&&console[e(470)](e(396)+t)}[Qt(400)](t){const e=Qt;this.ensureReady();const n=this[e(410)][e(385)](t);if(!n)throw new Error("Ad slot not found: "+t);n.viewabilityTracker&&n[e(438)][e(400)]();const s=document[e(406)](n.containerId);s&&(s[e(418)]=""),this[e(410)][e(425)](t),this[e(413)]?.[e(369)]&&console[e(470)](e(420)+t)}[Qt(411)](){const t=Qt;return this[t(393)](),Array[t(416)](this[t(410)][t(380)]())}[Qt(445)](t){const e=Qt;return this[e(393)](),this[e(410)][e(385)](t)||null}[Qt(351)](t,e,n){const s=Qt;if(!this[s(413)]?.[s(353)])throw new Error(s(451));const r=s(392)+e+"-"+Date[s(419)]()+"-"+Math.random().toString(36)[s(377)](2,9);return this[s(364)](t,e,n,r,0),r}async[Qt(364)](t,e,n,s,r){const i=Qt,o=[0,50,100,200,500];let a,c=null;if(typeof t===i(417)){if(a=t,c=document[i(406)](t),!c)return r<4?(this[i(413)]?.[i(369)]&&console[i(402)](i(359)+t+". Retrying in "+o[r+1]+i(448)+(r+1)+"/5)"),void setTimeout(()=>{this[i(364)](t,e,n,s,r+1)},o[r+1])):void console[i(427)]("Container not found after 5"+i(362)+t)}else c=t,a=c.id||i(403)+s,!c.id&&(c.id=a);try{this[i(442)](a,e,n,s,c)}catch(t){console[i(427)](i(398),t)}}[Qt(442)](e,n,s,r,i){const o=Qt;i[o(471)](o(431),r),this[o(374)]?.[o(394)](i,r,n,s,this[o(413)]);const a={id:r,containerId:e,adType:n,width:s[o(372)]||o(343),height:s[o(381)]||(n===t[o(382)]?"auto":250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...s},load:async()=>this[o(360)](n,s)[o(361)](t=>t[0]||null),render:t=>this[o(374)]?.[o(352)](a,t),refresh:async()=>this[o(461)](a),destroy:()=>this[o(400)](r)};this[o(410)][o(412)](r,a),this[o(476)](a),this[o(387)]&&this[o(413)]?.[o(369)]&&console[o(470)]("📊 Advertisement event tracking enabled for slot: "+r)}async[Qt(476)](e){const n=Qt;try{const s=await this.fetchAdData(e[n(441)],e[n(439)]);if(!s||0===s[n(391)])return void this[n(374)]?.renderFallback(e);e[n(441)]===t[n(409)]&&s[n(391)]>0&&await(this[n(374)]?.[n(358)](e,s)),s[n(391)]>1||e[n(439)]?.autoSlide?(await(this.adRenderer?.[n(356)](e,s)),this[n(413)]?.[n(369)]&&console[n(470)](n(472)+s.length+n(368))):(e[n(430)]=s[0],await(this[n(374)]?.renderAdElement(e,s[0])),this[n(462)](e,s[0])),e.isLoaded=!0,this[n(413)]?.[n(369)]&&console.log("✅ Ad loaded for slot: "+e.id+" ("+s.length+" ads)")}catch(t){console[n(427)]("❌ Failed to load ad for slot: "+e.id,t),this[n(374)]?.[n(466)](e)}}[Qt(462)](t,e){const n=(s=0)=>{const r=Jt,i=document[r(406)](t.id);if(!i)return void(s<5?(setTimeout(()=>n(s+1),300),this[r(413)]?.[r(369)]&&console[r(470)]("🔄 Retrying viewability tracking for slot: "+t.id+" (attempt "+(s+1)+")")):console[r(402)]("❌ Failed to find element for viewability tracking: "+t.id));const o=new j(i,async()=>{const n=r;await this[n(458)](e,t)});t[r(438)]=o,this._config?.[r(369)]&&console[r(470)]("🎯 Simple viewability tracking started for slot: "+t.id+r(464))};n()}async[Qt(458)](t,e){const n=Qt;try{this.advertisementEventTracker&&(await this.advertisementEventTracker[n(366)](t._id,e.id,o[n(345)]),this[n(413)]?.[n(369)]&&console[n(470)]("✅ Simple viewable impression tracked for ad "+t[n(463)]))}catch(t){console[n(427)](n(473),t)}}async[Qt(360)](t,e){const n=Qt;if(!this[n(413)]?.[n(353)])throw new Error(n(451));if(e.adId){const t=""+Z.advertisements[n(395)](e[n(386)]),s=await fetch(t,{method:n(457),headers:M.create(this[n(413)].apiKey)});if(!s.ok){if(404===s[n(474)])return console[n(402)](n(426)+e[n(386)]),[];throw new Error(n(421)+s[n(474)])}const r=await s[n(467)]();return this._config?.[n(369)]&&console[n(470)](n(397)+e.adId,r),[r]}const s=new URLSearchParams;s.append("adType",t),e[n(432)]&&s[n(433)](n(432),e[n(432)]),e[n(453)]&&s[n(433)]("deviceType",e.deviceType),e[n(390)]&&s[n(433)](n(390),e[n(390)]);const r=Z[n(373)][n(414)]()+"?"+s[n(376)](),i=await fetch(r,{method:n(457),headers:M[n(444)](this[n(413)][n(353)])});if(!i.ok)throw new Error(n(421)+i[n(474)]);const o=(await i[n(467)]())[n(373)]||[];return this[n(413)]?.[n(369)]&&console[n(470)](n(342)+o.length+" ads for type: "+t+n(408),{language:e[n(432)],deviceType:e[n(453)],country:e[n(390)]}),o}async[Qt(461)](t){const e=Qt;try{const n=await this.fetchAdData(t[e(441)],t[e(439)]||{});n&&n[e(391)]>0&&(t[e(430)]=n[0],await(this.adRenderer?.[e(378)](t)),this[e(387)]&&console[e(470)]("New advertisement viewable tracked for slot:",t.id))}catch(n){console[e(427)]("Failed to refresh ad slot: "+t.id,n)}}[Qt(393)](){const t=Qt;if(!this[t(436)])throw new Error(t(449))}[Qt(455)](){const t=Qt;typeof window!==t(367)&&typeof document!==t(367)&&(this[t(468)]&&this[t(468)][t(429)](),this[t(468)]=new MutationObserver(e=>{const n=t;e[n(347)](t=>{const e=n;t[e(375)].forEach(t=>{const n=e;t[n(437)]===Node[n(383)]&&this[n(456)](t)})})}),this[t(468)][t(450)](document[t(348)],{childList:!0,subtree:!0}),this[t(413)]?.[t(369)]&&console[t(470)](t(405)))}[Qt(456)](t){const e=Qt,n=t[e(465)](e(431));if(n)return void this.autoDestroy(n);t.querySelectorAll(e(407))[e(347)](t=>{const n=e,s=t[n(465)](n(431));s&&this[n(435)](s)})}[Qt(435)](t){const e=Qt;if(this[e(410)][e(385)](t))try{this[e(410)][e(425)](t),this[e(413)]?.debug&&console[e(470)](e(350)+t+e(384))}catch(n){this[e(413)]?.debug&&console[e(402)]("Auto-cleanup failed for slot "+t+":",n)}}destroyModule(){const t=Qt,e=this[t(413)]?.[t(369)];this.mutationObserver&&(this.mutationObserver[t(429)](),this[t(468)]=null),this.slots[t(475)](),this[t(387)]=null,this.adRenderer=null,this[t(436)]=!1,this[t(413)]=null,e&&console[t(470)](t(469))}}var te=ee;function ee(t,e){var n=ne();return(ee=function(t,e){return n[t-=283]})(t,e)}function ne(){var t=["_isReady","250gQmXng","948980ElFzoP","ads","Config module not initialized","8PEXFIV","apiKey","includes","getApiHeaders","1499500elXbCD","4SaxaVN","3218887WQTtDl","events","6JYrvdc","1547082etbqkc","log","4670829XMUbGQ","getBaseUrl","isModuleEnabled","getEnabledModules","setBaseUrl","init","modules","245370Pnefkj","debug","🔄 Config updated","_organizationInfo","config","773674EKcAIW","getConfig","getOrganizationInfo","isDebugMode","development","API key not available","baseUrl","_config","isReady","✅ Config module initialized (sync mode)"];return(ne=function(){return t})()}!function(){for(var t=ee,e=ne();;)try{if(273911===parseInt(t(311))/1*(-parseInt(t(298))/2)+-parseInt(t(302))/3+-parseInt(t(290))/4+-parseInt(t(297))/5+-parseInt(t(301))/6*(parseInt(t(299))/7)+-parseInt(t(293))/8*(-parseInt(t(304))/9)+-parseInt(t(289))/10*(-parseInt(t(316))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class se{constructor(){var t=ee;this[t(288)]=!1,this[t(285)]=null,this[t(314)]=null}[te(309)](t){var e=te;this[e(285)]={timeout:3e4,debug:!1,modules:[e(291),e(300),e(315)],...t},t[e(284)]&&Z[e(308)](t[e(284)]),this._isReady=!0,t[e(312)]&&console[e(303)](e(287),{modules:this[e(285)][e(310)],endpoint:Z[e(305)](),mode:e(320)})}[te(286)](){return this[te(288)]}[te(317)](){return this[te(285)]}[te(318)](){return this._organizationInfo}getApiEndpoint(){return Z[te(305)]()}[te(319)](){var t=te;return this[t(285)]?.[t(312)]||!1}[te(307)](){var t=te;return this[t(285)]?.[t(310)]||[]}[te(306)](t){var e=te;return this.getEnabledModules()[e(295)](t)}updateConfig(t){var e=te;if(!this[e(285)])throw new Error(e(292));this._config={...this[e(285)],...t},this[e(319)]()&&console[e(303)](e(313),t)}[te(296)](){var t=te;if(!this[t(285)]?.[t(294)])throw new Error(t(283));return M.create(this._config[t(294)])}}function re(t,e){const n=ie();return(re=function(t,e){return n[t-=333]})(t,e)}function ie(){const t=["119PPcPxe","1258956RVsdfm","18903FOYhhT","Android","getDeviceInfo","iOS","setDeviceInfo","269507BRcQDY","isMobile","_userProvidedDeviceInfo","isBrowser","129568fapOHc","cookieEnabled","1790lQTrFP","userAgent","tablet","height","Mobile Web","getAutoDetectedDeviceInfo","6996jtbZgq","getDetailedInfo","43788FRgUSc","Unknown","SSR","clearDeviceInfo","platform","getViewportInfo","348XCnVWB","60561WKuUFf","width","mobile","ko-KR","mapPlatformForEvents","getPlatform","other","android","645276zlhCQd","Desktop Web","desktop","0x0","5LoYUky"];return(ie=function(){return t})()}const oe=re;!function(){const t=re,e=ie();for(;;)try{if(771931===parseInt(t(353))/1+-parseInt(t(373))/2*(parseInt(t(348))/3)+parseInt(t(347))/4+parseInt(t(345))/5*(-parseInt(t(341))/6)+-parseInt(t(346))/7*(-parseInt(t(357))/8)+-parseInt(t(333))/9*(parseInt(t(359))/10)+-parseInt(t(365))/11*(-parseInt(t(367))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ae{static[oe(350)](){const t=oe;return{...ae[t(364)](),...ae[t(355)]}}static[oe(364)](){const t=oe;if(!y[t(356)]())return{category:t(339),platform:t(369),model:t(369),osVersion:t(369)};const e=navigator[t(360)].toLowerCase();let n=t(343);/tablet|ipad/.test(e)?n=t(361):R[t(354)]()&&(n=t(335));const s=R[t(338)]();return{category:n,platform:ae.mapPlatformForEvents(s),model:navigator[t(371)],osVersion:navigator[t(371)]}}static[oe(352)](t){const e=oe;ae[e(355)]={...ae[e(355)],...t}}static setDeviceProperty(t,e){ae[oe(355)][t]=e}static[oe(370)](){ae[oe(355)]={}}static getUserDeviceInfo(){return{...ae[oe(355)]}}static[oe(337)](t){const e=oe;switch(t){case"ios":return e(351);case e(340):return e(349);case"web":return e(363);case e(343):return e(342);default:return e(368)}}static[oe(366)](){const t=oe;if(!y[t(356)]())return{userAgent:"SSR",language:"ko-KR",platform:t(369),cookieEnabled:!1,onLine:!0,screenResolution:"0x0",viewportSize:t(344)};const e=y[t(372)]();return{userAgent:navigator[t(360)],language:navigator.language||t(336),platform:navigator[t(371)],cookieEnabled:navigator[t(358)],onLine:navigator.onLine,screenResolution:screen[t(334)]+"x"+screen[t(362)],viewportSize:e.width+"x"+e.height}}}ae[oe(355)]={};const ce=ue;function de(){const t=["getUserInfo","DateTimeFormat","estimateLocation","187425ERcMMD","393950GPJTYE","getBaseUserInfo","77078DBLxCy","1553112MMZXIj","3324rkELeS","1456896EnHxWm","timeZone","getCurrentUserProperties","clearUserProperties","544040zIiCgS","_userProperties","extractCountryFromLanguage","ko-KR","split","1883JzUZLX","isBrowser","3lnmuhj","setUserProperties","resolvedOptions"];return(de=function(){return t})()}!function(){const t=ue,e=de();for(;;)try{if(128460===-parseInt(t(310))/1*(-parseInt(t(319))/2)+-parseInt(t(316))/3+parseInt(t(326))/4+parseInt(t(317))/5+parseInt(t(321))/6*(-parseInt(t(308))/7)+parseInt(t(322))/8+-parseInt(t(320))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ce(313)](){const t=ce;return{...le[t(318)](),...le[t(304)]}}static[ce(318)](){const t=ce;if(!y[t(309)]())return{language:t(306),country:"KR"};const e=navigator.language||"ko-KR";return{language:e,country:le[t(305)](e)}}static[ce(305)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t[ce(307)]("-")[0]]||"KR"}static[ce(311)](t){const e=ce;le[e(304)]={...le[e(304)],...t}}static setUserProperty(t,e){le[ce(304)][t]=e}static[ce(325)](){le[ce(304)]={}}static[ce(324)](){return{...le._userProperties}}static[ce(315)](){const t=ce;if(!y[t(309)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(314)]()[t(312)]()[t(323)];return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function ue(t,e){const n=de();return(ue=function(t,e){return n[t-=304]})(t,e)}le[ce(304)]={};const pe=he;function he(t,e){const n=fe();return(he=function(t,e){return n[t-=152]})(t,e)}function fe(){const t=["substr","session_","_sessionStartTime","_userId","adstage_user_id","adstage_session_id","setItem","clearUserId","3ADLLNy","4968145KMMeHk","9050568pUDuOu","ssr_session_","adstage_session_start","setUserId","153FJBKZV","getItem","toString","isBrowser","isSessionExpired","3282834yYliEx","getUserId","isNewSession","652996IYbcns","getSessionId","getSessionStats","removeItem","random","now","1827940rubisP","refreshSession","getSessionDuration","9045090mSCUOa","705080CTuzyk"];return(fe=function(){return t})()}!function(){const t=he,e=fe();for(;;)try{if(957436===-parseInt(t(178))/1+parseInt(t(175))/2+-parseInt(t(164))/3*(-parseInt(t(184))/4)+parseInt(t(154))/5+-parseInt(t(166))/6+parseInt(t(165))/7+parseInt(t(155))/8*(-parseInt(t(170))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ge{static[pe(179)](){const t=pe;if(!y[t(173)]())return t(167)+Date[t(183)]();const e=sessionStorage[t(171)]("adstage_session_id");if(e)return e;const n=t(157)+Math[t(182)]()[t(172)](36)[t(156)](2,9)+"_"+Date.now();return sessionStorage[t(162)](t(161),n),!ge._sessionStartTime&&(ge[t(158)]=Date[t(183)](),y[t(173)]()&&sessionStorage[t(162)](t(168),String(ge[t(158)]))),n}static[pe(169)](t){const e=pe;ge[e(159)]=t,y.isBrowser()&&localStorage[e(162)]("adstage_user_id",t)}static[pe(176)](){const t=pe;if(ge[t(159)])return ge[t(159)];if(y[t(173)]()){const e=localStorage.getItem(t(160));if(e)return ge._userId=e,e}}static[pe(163)](){const t=pe;ge[t(159)]=void 0,y[t(173)]()&&localStorage.removeItem("adstage_user_id")}static getSessionInfo(){const t=pe,e=ge[t(179)](),n=ge[t(176)](),s=ge[t(177)]();return{sessionId:e,userId:n,sessionDuration:ge[t(153)](),isNewSession:s}}static isNewSession(){const t=pe;if(!y[t(173)]())return!0;const e=sessionStorage[t(171)](t(161)),n=sessionStorage[t(171)](t(168));return!e||!n}static getSessionDuration(){const t=pe;if(!y.isBrowser())return 0;const e=sessionStorage[t(171)]("adstage_session_start");return e?Date[t(183)]()-parseInt(e,10):0}static[pe(152)](){const t=pe;return y[t(173)]()&&(sessionStorage[t(181)](t(161)),sessionStorage[t(181)]("adstage_session_start")),ge._sessionStartTime=void 0,ge[t(179)]()}static[pe(174)](t=24){return ge[pe(153)]()>60*t*60*1e3}static[pe(180)](){const t=pe,e=ge.getSessionId(),n=ge[t(176)](),s=ge[t(153)](),r=ge[t(174)](),i=ge[t(177)]();let o;if(y.isBrowser()){const e=sessionStorage[t(171)](t(168));o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:r,isNewSession:i}}}const me=ve;function Ie(){const t=["getSessionId","227194ztZdxS","getUserDeviceInfo","👤 User properties set:","125990cEcvYl","setUserProperties","track","Events module not initialized. Call AdStage.init() first.","debug","apiKey","2558016xwdlov","sendEventToServer","📱 User provided device info cleared","1210xPXOqN","log","init","application/json","API key not configured for event tracking.","POST","getUserProperties","9xEilpm","📱 Device property set:","getDeviceInfo","_config","41376yoHPpP","4fuAHNA","Event tracking failed: ","getUserInfo","create","error","710883GyrQSO","📊 Events module initialized","546488DBjzcq","👤 User ID set:","462eTgjvH","setDeviceInfo","getCurrentUserProperties","stringify","getUserId","statusText","warn","setDeviceProperty","2126375SIhqFa","❌ Failed to track event:","getConfig","events","_isReady"];return(Ie=function(){return t})()}function ve(t,e){const n=Ie();return(ve=function(t,e){return n[t-=342]})(t,e)}!function(){const t=ve,e=Ie();for(;;)try{if(251010===parseInt(t(342))/1*(-parseInt(t(366))/2)+-parseInt(t(361))/3*(parseInt(t(373))/4)+parseInt(t(383))/5+parseInt(t(365))/6*(-parseInt(t(375))/7)+-parseInt(t(351))/8+parseInt(t(371))/9+parseInt(t(345))/10*(parseInt(t(354))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ye{constructor(){const t=ve;this._isReady=!1,this[t(364)]=null}[me(356)](t){const e=me;this._config=t,this[e(387)]=!0,t[e(349)]&&console[e(355)](e(372))}isReady(){return this[me(387)]}[me(385)](){return this[me(364)]}setUserId(t){const e=me;ge.setUserId(t),this[e(364)]?.[e(349)]&&console.log(e(374),t)}[me(379)](){return ge[me(379)]()}[me(346)](t){const e=me;le[e(346)](t),this[e(364)]?.debug&&console[e(355)](e(344),t)}[me(360)](){return le.getCurrentUserProperties()}[me(376)](t){const e=me;ae.setDeviceInfo(t),this._config?.debug&&console[e(355)]("📱 Device info set:",t)}[me(382)](t,e){const n=me;ae[n(382)](t,e),this[n(364)]?.[n(349)]&&console[n(355)](n(362),t,e)}clearDeviceInfo(){const t=me;ae.clearDeviceInfo(),this[t(364)]?.[t(349)]&&console[t(355)](t(353))}[me(343)](){return ae.getUserDeviceInfo()}getDeviceInfo(){return ae[me(363)]()}getUserInfo(){return le[me(368)]()}[me(377)](){return le[me(377)]()}async track(t,e){const n=me;if(this._isReady)if(this[n(364)]?.[n(350)])try{const s={eventName:t,userId:ge[n(379)](),sessionId:ge[n(388)](),sdkVersion:x(),device:ae.getDeviceInfo(),user:le.getUserInfo(),params:e||{}};await this[n(352)](s),this[n(364)][n(349)]&&console[n(355)]("✅ Event tracked:",t,e)}catch(s){console[n(370)](n(384),s),this[n(364)][n(349)]&&console[n(370)]("Event data:",{eventName:t,properties:e})}else console[n(381)](n(358));else console[n(381)](n(348))}async[me(352)](t){const e=me,n=await fetch(Z[e(386)][e(347)](),{method:e(359),headers:{...M[e(369)](this._config[e(350)]),"Content-Type":e(357)},body:JSON[e(378)](t)});if(!n.ok)throw new Error(e(367)+n.status+" "+n[e(380)])}}const be=we;function we(t,e){const n=Ee();return(we=function(t,e){return n[t-=135]})(t,e)}function Ee(){const t=["function","369758iJNHuF","1123528edeEkl","viewableTracker","AdStage not initialized. Call AdStage.init() first.","development","3162190iEuROa","ads","7nSDSzg","342620qMnyYK","debug","apiKey","size","9NLOIeA","6vSKUoi","modules","404195DLCQrT","🌐 API endpoint configured:","instance","📊 AdStage Debug: 현재 viewable 추적 상태","API key is required for AdStage initialization","config","getConfig","2.0.0","...","init","_config","setBaseUrl","175832hNbGIv","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","✅ AdStage Debug: 광고 ","2573106kQyuiW","_isInitialized","🚀 AdStage SDK initialized (sync mode)","baseUrl","events","log","getInstance","reset"];return(Ee=function(){return t})()}!function(){const t=we,e=Ee();for(;;)try{if(233334===parseInt(t(153))/1+-parseInt(t(161))/2+-parseInt(t(166))/3*(-parseInt(t(141))/4)+-parseInt(t(168))/5+-parseInt(t(144))/6*(parseInt(t(160))/7)+parseInt(t(154))/8+-parseInt(t(165))/9*(-parseInt(t(158))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ke{constructor(){const t=we;this._isInitialized=!1,this[t(139)]=null,this[t(173)]=new se,this[t(159)]=new $t,this[t(148)]=new ye}static init(t){const e=we;!ke[e(170)]&&(ke[e(170)]=new ke);const n=ke.instance;if(!t[e(163)])throw new Error(e(172));n._config={timeout:3e4,debug:!1,modules:["ads",e(148),e(173)],...t},n[e(139)][e(147)]&&(Z[e(140)](n[e(139)][e(147)]),t[e(162)]&&console[e(149)](e(169),n._config.baseUrl));const s=n._config[e(167)]||["ads",e(148),e(173)];for(const t of s){const s=n[t];s&&typeof s.init===e(152)&&s[e(138)](n[e(139)])}n[e(145)]=!0,t[e(162)]&&console[e(149)](e(146),{version:e(136),modules:s,apiKey:t.apiKey.substring(0,8)+e(137),mode:e(157)})}static isReady(){const t=we;return ke[t(170)]?._isInitialized||!1}static[be(135)](){const t=be;return ke[t(170)]?.[t(139)]||null}static getInstance(){const t=be;if(!ke[t(170)])throw new Error(t(156));return ke.instance}static get[be(159)](){const t=be;return ke[t(150)]()[t(159)]}static get[be(148)](){const t=be;return ke[t(150)]()[t(148)]}static get[be(173)](){return ke.getInstance().config}static[be(151)](){const t=be;ke[t(170)]&&(ke[t(170)]._isInitialized=!1,ke[t(170)][t(139)]=null)}}function xe(){var t=["240KzLZDI","warn","getUserProperties","7327632PmEDHy","2838852LZSrkX","resolve","310hwtkjd","track","setUserId","getUserId","168575CmrARJ","130GXCHba","events","101922cKqYrL","264902sibddI","isReady","977428VYbguQ","3iIGuzt","setUserProperties","AdStage not initialized. Call AdStage.init() first.","127729oLWgAY","4tBXHdc"];return(xe=function(){return t})()}function Se(t,e){var n=xe();return(Se=function(t,e){return n[t-=157]})(t,e)}ke[be(162)]={clearAllViewable:()=>{const t=be;ht.clear(),console.log(t(142))},clearAdViewable:(t,e)=>{const n=be;ht.clearAdViewable(t,e),console[n(149)](n(143)+t+"("+e+")의 viewable 추적 초기화됨")},getViewableStatus:()=>{const t=be;console[t(149)](t(171),{trackedCount:ht[t(155)][t(164)],trackedItems:Array.from(ht[t(155)])})}},function(){for(var t=Se,e=xe();;)try{if(428920===parseInt(t(172))/1*(parseInt(t(157))/2)+parseInt(t(175))/3*(parseInt(t(174))/4)+-parseInt(t(169))/5*(parseInt(t(171))/6)+-parseInt(t(178))/7*(-parseInt(t(158))/8)+-parseInt(t(162))/9+-parseInt(t(164))/10*(-parseInt(t(168))/11)+-parseInt(t(161))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ae=h.createContext(null);function Te(){const t=h.useContext(Ae);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Ce(t,e){var n=De();return(Ce=function(t,e){return n[t-=130]})(t,e)}function De(){var t=["1130XEJoZq","17170nNcIsu","996uFSKWV","6098990eNcBOQ","1297rrRWEo","8uLwgjL","4696983kIHzKE","121231SVRFDt","554475qPmtWM","96zFxGEg","241843InycoH","1134ddTBQF"];return(De=function(){return t})()}!function(){for(var t=Ce,e=De();;)try{if(650974===parseInt(t(139))/1*(parseInt(t(135))/2)+-parseInt(t(131))/3*(-parseInt(t(140))/4)+parseInt(t(136))/5*(-parseInt(t(134))/6)+-parseInt(t(133))/7*(-parseInt(t(132))/8)+-parseInt(t(141))/9+-parseInt(t(138))/10+-parseInt(t(130))/11*(-parseInt(t(137))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Be=ze;function ze(t,e){const n=Re();return(ze=function(t,e){return n[t-=183]})(t,e)}function Re(){const t=["99nYlbSc","691690LRuEYS","events","6858488Shqdms","822sOieqn","undefined","config","49994CZHKec","48JBORAr","1907380wvgooz","10464zTGraU","5wbcRyf","43202IDrPcT","3193003niQaZr"];return(Re=function(){return t})()}!function(){const t=ze,e=Re();for(;;)try{if(614662===parseInt(t(183))/1*(parseInt(t(184))/2)+parseInt(t(194))/3*(-parseInt(t(196))/4)+-parseInt(t(195))/5+-parseInt(t(190))/6*(parseInt(t(193))/7)+parseInt(t(189))/8+parseInt(t(186))/9*(parseInt(t(187))/10)+parseInt(t(185))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Le=["ads",Be(188),Be(192)];typeof window!==Be(191)&&(window.AdStage=ke),exports.AdStage=ke,exports.AdStageProvider=function({children:t,config:e}){const[n,s]=h.useState(!1),[r,i]=h.useState(null),[o,a]=h.useState(null),c=t=>{try{a(null),n&&ke.reset(),ke.init(t),i(t),s(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),s(!1),i(null)}};h.useEffect(()=>{e&&!n&&c(e)},[e,n]);const d={isInitialized:n,config:r,initialize:c,reset:()=>{try{ke.reset(),s(!1),i(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:o};return p.jsx(Ae.Provider,{value:d,children:t})},exports.SDK_VERSION="2.0.0",exports.SUPPORTED_MODULES=Le,exports.getUserId=function(){var t=Se;if(ke[t(173)]())return ke[t(170)][t(167)]();console.warn(t(177))},exports.getUserProperties=function(){var t=Se;if(ke[t(173)]())return ke[t(170)][t(160)]();console.warn("AdStage not initialized. Call AdStage.init() first.")},exports.setUserId=function(t){var e=Se;ke[e(173)]()?ke[e(170)][e(166)](t):console.warn(e(177))},exports.setUserProperties=function(t){var e=Se;ke[e(173)]()?ke[e(170)][e(176)](t):console[e(159)]("AdStage not initialized. Call AdStage.init() first.")},exports.track=function(t,e){var n=Se;return ke[n(173)]()?ke[n(170)][n(165)](t,e):(console[n(159)](n(177)),Promise[n(163)]())},exports.useAdStageContext=Te,exports.useAdStageInstance=function(){const{isInitialized:t}=Te();return t?ke:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)};
1
+ "use strict";var t,e,n,s,r,i,o,a,c,d,l,u,p=require("react/jsx-runtime"),h=require("react");function f(){var t=["7fCfnNO","CLICK","4633404dQLIba","NATIVE","683712mpjquR","DESKTOP","30QVWcZz","6213966XGbMfN","TEXT","VIDEO","INTERSTITIAL","MOBILE","POPUP","TABLET","WEB","BANNER","12yGWOmZ","1397619xigSKR","13wkNQQY","260920XTJNRp","VIEWABLE","109166QsJPpt","16brtdpW","5jlCkIg","16140421dfiVjY"];return(f=function(){return t})()}function g(t,e){var n=f();return(g=function(t,e){return n[t-=141]})(t,e)}!function(){for(var t=g,e=f();;)try{if(993073===parseInt(t(161))/1*(-parseInt(t(160))/2)+-parseInt(t(155))/3*(parseInt(t(143))/4)+-parseInt(t(162))/5*(-parseInt(t(146))/6)+-parseInt(t(164))/7*(parseInt(t(158))/8)+-parseInt(t(156))/9*(-parseInt(t(145))/10)+parseInt(t(163))/11+-parseInt(t(141))/12*(parseInt(t(157))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=g)(154)]=n(154),e[n(151)]=n(151),e[n(149)]="INTERSTITIAL",e[n(142)]=n(142),e[n(148)]=n(148),e[n(147)]=n(147),(r=s||(s={}))[(i=g)(153)]=i(153),r[i(150)]="MOBILE",(a=o||(o={}))[(c=g)(159)]=c(159),a[c(165)]=c(165),l=d||(d={}),u=g,l.DESKTOP=u(144),l[u(150)]=u(150),l[u(152)]=u(152);const m=I;function I(t,e){const n=y();return(I=function(t,e){return n[t-=319]})(t,e)}!function(){const t=I,e=y();for(;;)try{if(940475===-parseInt(t(363))/1*(parseInt(t(358))/2)+-parseInt(t(331))/3*(parseInt(t(391))/4)+parseInt(t(369))/5*(parseInt(t(338))/6)+-parseInt(t(339))/7+parseInt(t(326))/8+-parseInt(t(344))/9*(-parseInt(t(367))/10)+parseInt(t(350))/11*(parseInt(t(393))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class v{static[m(372)](){const t=m;return typeof window!==t(320)&&typeof document!==t(320)}static[m(354)](){return!this.isBrowser()}static[m(332)](){const t=m;return this[t(372)]()&&void 0!==document[t(334)]}static[m(356)](t){return this[m(332)]()?document.getElementById(t):null}static safeQuerySelector(t){return this.canUseDOM()?document.querySelector(t):null}static safeQuerySelectorAll(t){const e=m;return this.canUseDOM()?Array[e(329)](document[e(337)](t)):[]}static[m(389)](t){const e=m;return this.canUseDOM()?document[e(380)](t):null}static[m(322)](t,e,n,s){const r=m;this[r(332)]()&&t&&t[r(371)](e,n,s)}static[m(342)](t,e,n,s){const r=m;this[r(332)]()&&t&&t[r(388)](e,n,s)}static[m(325)](t,e){return this[m(372)]()?window[t]??e:e}static[m(330)](t,e){return this.canUseDOM()?document[t]??e:e}static safeWindowOpen(t,e,n){const s=m;return this.isBrowser()?window[s(328)](t,e,n):null}static safeGetComputedStyle(t){const e=m;return this[e(372)]()&&t?window[e(359)](t):null}static[m(327)](){return!!this.canUseDOM()&&"loading"!==document.readyState}static[m(379)](){return new Promise(t=>{const e=I;this[e(332)]()?this[e(327)]()?t():this[e(322)](document,e(333),()=>t()):t()})}static safeApplyStyles(t,e){const n=m;this[n(332)]()&&t&&Object[n(373)](e)[n(351)](([e,s])=>{const r=n;t[r(347)][r(366)](e,s)})}static[m(385)](t,e){const n=m;this[n(332)]()&&t&&t[n(384)][n(346)](e)}static[m(355)](t,e){const n=m;this[n(332)]()&&t&&t[n(384)].remove(e)}static[m(387)](t,e){const n=m;this.canUseDOM()&&t&&(t[n(381)]=e)}static safeSetInnerHTML(t,e){const n=m;this[n(332)]()&&t&&(t[n(382)]=e)}static[m(357)](t,e){const n=m;this[n(332)]()&&t&&e&&t[n(374)](e)}static[m(392)](t,e){const n=m;this[n(332)]()&&t&&e&&t[n(394)](e)}static[m(365)](){const t=m;return{url:this[t(325)]("location",{href:""})[t(364)],title:this[t(330)](t(362),""),referrer:this.getDocumentProperty(t(345),"")}}static[m(377)](){const t=m;return{width:this[t(325)]("innerWidth",0),height:this[t(325)](t(335),0),pixelRatio:this[t(325)]("devicePixelRatio",1)}}static[m(352)](){const t=m;return{scrollTop:this[t(332)]()?window[t(375)]||document.documentElement[t(336)]:0,scrollLeft:this.getWindowProperty(t(341),0)}}static async waitForElement(t,e={}){const n=m,{timeout:s=3e3,retryInterval:r=100,debug:i=!1}=e;if(!this[n(332)]())throw new Error(n(383));const o=document[n(343)](t);return o?(i&&console[n(376)](n(321)+t),o):(i&&console[n(376)](n(378)+t+n(370)+s+"ms)"),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(368)](s/r),l=()=>{const n=a;c++;const u=document.getElementById(t);if(u)return i&&console[n(376)](n(386)+t+" ("+c+n(353)+c*r+n(323)),void e(u);if(c>=d){const e=n(361)+t+n(348)+t+n(360)+s+"ms ("+c+n(340);return i&&console[n(319)](e),void o(new Error(e))}i&&c%10==0&&console.log(n(349)+t+" ("+c+"/"+d+")");const p=Math.min(r*Math.pow(1.2,c),500);setTimeout(l,p)};setTimeout(l,r)}))}static async waitForElements(t,e={}){const n=m,s=t[n(390)](t=>this.waitForElement(t,e));return Promise[n(324)](s)}}function y(){const t=["canUseDOM","DOMContentLoaded","readyState","innerHeight","scrollTop","querySelectorAll","3527346FPSicI","12505948CzBQCh","번 시도)","pageXOffset","safeRemoveEventListener","getElementById","46350GgwSyf","referrer","add","style",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"⏳ 컨테이너 대기 중: ","11SfGVrA","forEach","getScrollInfo","번째 시도, ","isSSR","safeRemoveClass","safeGetElementById","safeAppendChild","293078gDQAaC","getComputedStyle",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ','❌ 컨테이너를 찾을 수 없습니다: "',"title","9AYvMYR","href","getPageInfo","setProperty","30spwaWq","ceil","15tyBSdm"," (최대 ","addEventListener","isBrowser","entries","appendChild","pageYOffset","log","getViewportInfo","⏳ 컨테이너 대기 시작: ","waitForDOM","createElement","textContent","innerHTML","DOM을 사용할 수 없는 환경입니다.","classList","safeAddClass","✅ 컨테이너 발견: ","safeSetTextContent","removeEventListener","safeCreateElement","map","16ynAhhX","safeRemoveChild","19065948SOnQxs","removeChild","error","undefined","✅ 컨테이너 즉시 발견: ","safeAddEventListener","ms 경과)","all","getWindowProperty","5873776jUeiIy","isDOMReady","open","from","getDocumentProperty","42213fYIjHs"];return(y=function(){return t})()}const b=E;!function(){const t=E,e=k();for(;;)try{if(868659===-parseInt(t(143))/1+-parseInt(t(151))/2+parseInt(t(148))/3+-parseInt(t(142))/4+-parseInt(t(144))/5+parseInt(t(147))/6+parseInt(t(146))/7)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const w=b(145);function E(t,e){const n=k();return(E=function(t,e){return n[t-=142]})(t,e)}function k(){const t=["361537IyWkEN","1659095gNXfhi",'"3.0.6"',"9742810yhZdRq","6911082TDuwFU","1409232oEhJcu","undefined"," AdStageSDK/","2043608BweoFG","AdStageSDK/","1718408hggBqn"];return(k=function(){return t})()}function x(){return w}const S=A;function A(t,e){const n=C();return(A=function(t,e){return n[t-=307]})(t,e)}!function(){const t=A,e=C();for(;;)try{if(519332===-parseInt(t(322))/1+parseInt(t(314))/2*(parseInt(t(327))/3)+-parseInt(t(320))/4+parseInt(t(357))/5*(-parseInt(t(317))/6)+-parseInt(t(331))/7*(-parseInt(t(328))/8)+parseInt(t(352))/9+parseInt(t(338))/10*(parseInt(t(358))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class T{static generateDeviceId(){const t=A;if(!v.isBrowser())return t(309)+Date[t(336)]();const e=localStorage.getItem("adstage_device_id");if(e)return e;const n=t(308)+Math[t(364)]()[t(330)](36)[t(329)](2,9)+"_"+Date[t(336)]();return localStorage.setItem(t(323),n),n}static[S(332)](){const t=S;if(!v[t(318)]())return t(344)+Date[t(336)]();const e=sessionStorage[t(356)](t(335));if(e)return e;const n="session_"+Math[t(364)]()[t(330)](36).substr(2,9)+"_"+Date[t(336)]();return sessionStorage[t(310)](t(335),n),n}static[S(334)](){const t=S;return!!v[t(318)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator[t(354)])}static[S(311)](){const t=S;if(!v.isBrowser())return t(321);const e=navigator[t(354)][t(345)]();return/iphone|ipad|ipod/[t(360)](e)?t(362):/android/.test(e)?t(346):T[t(334)]()?t(321):t(343)}static collectDeviceInfo(){const t=S,e=v[t(363)]();return{deviceId:T[t(325)](),sessionId:T[t(332)](),osVersion:v[t(318)]()?navigator.platform:"SSR",deviceModel:v.isBrowser()?navigator[t(359)]:t(350),appVersion:t(342),sdkVersion:x(),language:v.isBrowser()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:v[t(318)]()?navigator.userAgent:t(350),timezone:v[t(318)]()?Intl[t(340)]()[t(312)]()[t(324)]:t(355),viewportWidth:e[t(348)],viewportHeight:e.height,screenWidth:v[t(318)]()?screen[t(348)]:0,screenHeight:v.isBrowser()?screen[t(319)]:0,colorDepth:v[t(318)]()?screen[t(313)]:24,pixelRatio:e[t(353)],connectionType:v[t(318)]()&&navigator[t(361)]?.[t(341)]||"unknown",platform:T[t(311)]()}}static[S(347)](t){const e=S,n=v[e(349)](t);if(!n)return e(316);const s=n[e(337)](),r=v[e(333)]();return"x:"+Math.round(s[e(351)])+e(326)+Math[e(307)](s[e(315)]+r[e(339)])}}function C(){const t=["450zslIxI","isBrowser","height","430820OvjEHy","web","937816MRyGbF","adstage_device_id","timeZone","generateDeviceId",",y:","148347RjQoBP","8FJUJgE","substr","toString","2287789dJqyEW","generateSessionId","getScrollInfo","isMobile","adstage_session_id","now","getBoundingClientRect","180PBdBTe","scrollTop","DateTimeFormat","effectiveType","1.0.0","desktop","ssr_session_","toLowerCase","android","getSlotPosition","width","safeGetElementById","SSR","left","2248488RVFzSc","pixelRatio","userAgent","UTC","getItem","10785vMrfac","491227QOSDwV","platform","test","connection","ios","getViewportInfo","random","round","device_","ssr_device_","setItem","getPlatform","resolvedOptions","colorDepth","14twEqjh","top","unknown"];return(C=function(){return t})()}const D=B;function R(){const t=["createForEvents","API key is required","16103432fnwifb","application/json","1228430ySyIhV","userAgent","3848484CXJrwP","5758HBHGXw","1254115owsEVT","User-Agent","contentType","9nvjyow","625088rZEUNM","create","2634032GcAUgB"];return(R=function(){return t})()}function B(t,e){const n=R();return(B=function(t,e){return n[t-=109]})(t,e)}!function(){const t=B,e=R();for(;;)try{if(329757===parseInt(t(119))/1+parseInt(t(114))/2*(-parseInt(t(118))/3)+parseInt(t(121))/4+parseInt(t(115))/5+parseInt(t(113))/6+parseInt(t(111))/7+-parseInt(t(109))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{static[D(120)](t,e){const n=D;if(!t)throw new Error(n(123));const s={"x-api-key":t,"Content-Type":e?.[n(117)]||n(110)};return"undefined"!=typeof navigator&&(s["User-Agent"]=e?.[n(112)]||navigator[n(112)]),s}static[D(122)](t,e){const n=D,s=U.create(t);return e?.[n(112)]&&(s[n(116)]=e[n(112)]),s}}function L(t,e){const n=P();return(L=function(t,e){return n[t-=294]})(t,e)}const z=L;function P(){const t=["VIEWABLE","stringify","apiKey","30SvjpRd","sessionId","replace"," - ","containerId","height","/advertisements/events/","❌ Failed to track advertisement event:","adType","status","collectDeviceInfo","POST","6EdPPVP","11066240xMsnEf","error","baseUrl","BANNER","number","✅ Successfully tracked advertisement event: ","length","33976ELdWxv","1584364vDRPtZ","statusText","text","🌐 Full API call details:","referrer"," event for ad ","deviceId","NOT_SET","platform","string","🔍 Debug info:","🚀 Sending advertisement event: "," in slot ","5ytKxWz","3769157lQBUsM","slots","trackAdvertisementEvent","createForEvents","getSlotPosition"," for ad ","parseNumericValue","now","895560ZvDfEj","url","getPageInfo","debug","4409550ogBXjh","substring","get","1465554eXwQQz","log"];return(P=function(){return t})()}!function(){const t=L,e=P();for(;;)try{if(448071===-parseInt(t(303))/1*(-parseInt(t(338))/2)+parseInt(t(333))/3+-parseInt(t(304))/4*(-parseInt(t(317))/5)+-parseInt(t(295))/6*(-parseInt(t(318))/7)+parseInt(t(326))/8+-parseInt(t(330))/9+-parseInt(t(296))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t,e,n,s){const r=L;this.baseUrl=t,this.apiKey=e,this[r(329)]=n,this.slots=s}async[z(320)](t,e,n){const s=z;try{this[s(329)]&&console.log("🚀 AdvertisementEventTracker: Processing "+n+s(309)+t+s(316)+e);const r=this[s(319)][s(332)](e),i=T[s(348)](),a={adType:r?.[s(346)]||s(299),platform:i[s(312)],deviceId:i[s(310)],deviceInfo:i,pageUrl:v.getPageInfo()[s(327)],pageTitle:v[s(328)]().title,referrer:v.getPageInfo()[s(308)],slotId:e,slotPosition:T[s(322)](r?.[s(342)]||""),slotWidth:M[s(324)](r?.width),slotHeight:M[s(324)](r?.[s(343)]),sessionId:i[s(339)],pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:x(),timestamp:Date[s(325)]()},...n===o[s(335)]&&{isViewable:!0,iabCompliant:!0}},c=this.baseUrl+"/advertisements/events/"+t+"/"+n,d=U[s(321)](this[s(337)],a);this[s(329)]&&(console[s(334)](s(315)+n+s(323)+t,{url:c,headers:d,eventData:a}),console[s(334)](s(307),{method:s(294),url:c,hasApiKey:!!this[s(337)],bodySize:JSON[s(336)](a)[s(302)]}));const l=await fetch(c,{method:s(294),headers:d,body:JSON[s(336)](a)});if(this[s(329)]&&console[s(334)]("📡 API Response Status: "+l.status+" "+l[s(305)],{url:c,ok:l.ok}),!l.ok){const t=await l[s(306)]();throw new Error("API request failed: "+l[s(347)]+" "+l[s(305)]+s(341)+t)}this[s(329)]&&console[s(334)](s(301)+n+s(323)+t)}catch(r){console[s(297)](s(345),r),console[s(297)](s(314),{baseUrl:this[s(298)],apiKey:this.apiKey?this.apiKey[s(331)](0,8)+"...":s(311),url:this[s(298)]+s(344)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[z(324)](t){const e=z;if(typeof t===e(300))return t;if(typeof t===e(313)){const n=parseFloat(t[e(340)](/px$/,""));return isNaN(n)?0:n}return 0}}var V=O;!function(){for(var t=O,e=F();;)try{if(693820===-parseInt(t(295))/1+-parseInt(t(302))/2+parseInt(t(296))/3*(parseInt(t(318))/4)+parseInt(t(306))/5*(-parseInt(t(315))/6)+parseInt(t(310))/7*(parseInt(t(297))/8)+-parseInt(t(309))/9+parseInt(t(313))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class N{constructor(t,e){var n=O;this[n(317)]=null,this[n(301)]=!1,this[n(311)]=t,this[n(316)]=e,this.initIntersectionObserver()}[V(304)](){var t=V;t(314)in window?(this[t(317)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(305)}),this.observer.observe(this.element)):console[t(319)](t(308))}[V(298)](t){t.forEach(t=>{var e=O;t.intersectionRatio>=.5&&this[e(307)]()&&!this[e(301)]&&(this[e(301)]=!0,this[e(316)]&&this.onViewableCallback())})}[V(307)](){var t=V;return!document.hidden&&document[t(299)]===t(300)}[V(312)](){var t=V;this.observer&&(this[t(317)][t(303)](),this[t(317)]=null)}}function O(t,e){var n=F();return(O=function(t,e){return n[t-=295]})(t,e)}function F(){var t=["destroy","13183890RoxDlw","IntersectionObserver","78izTnIH","onViewableCallback","observer","3963556Xksvqp","warn","1065428WXHhay","3JeqHpr","1897624fGiVKN","handleIntersection","visibilityState","visible","isViewableTriggered","683156ZPkrON","disconnect","initIntersectionObserver","0px","85565ohEvFV","isDocumentVisible","IntersectionObserver not supported, viewability tracking disabled","8413155yiCAuk","28sxqKwH","element"];return(F=function(){return t})()}const _=j;function H(){const t=["1487686WezbxT","events","https://beta-api.adstage.app","custom","584208NDEFhO","baseUrl","3111451MZegXW","detail","startsWith","advertisements","https://api.adstage.app","production","/events/track","getBaseUrl","/advertisements","2080269cxkMGG","3798620VPXPnq","/advertisements/events","48tPjGKe","setBaseUrl","1862610PLOzat","3302956clPAKh","6CymzVA","track"];return(H=function(){return t})()}function j(t,e){const n=H();return(j=function(t,e){return n[t-=332]})(t,e)}!function(){const t=j,e=H();for(;;)try{if(415103===-parseInt(t(354))/1+parseInt(t(350))/2+-parseInt(t(346))/3+-parseInt(t(347))/4+parseInt(t(342))/5+-parseInt(t(348))/6*(parseInt(t(332))/7)+-parseInt(t(344))/8*(-parseInt(t(341))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const K={production:_(336),beta:_(352)};_(337);const W={advertisements:{list:"/advertisements/list",detail:_(340),events:_(343)},events:{track:_(338)}};class q{constructor(t){const e=_;this[e(335)]={list:()=>""+this.baseUrl+W[e(335)].list,detail:t=>""+this[e(355)]+W.advertisements[e(333)]+"/"+t,events:(t,n)=>""+this[e(355)]+W[e(335)][e(351)]+"/"+t+"/"+n},this[e(351)]={track:()=>""+this.baseUrl+W[e(351)][e(349)]},this[e(355)]=t||K[e(337)]}[_(345)](t){this.baseUrl=t}[_(339)](){return this.baseUrl}[_(353)](t){const e=_;return""+this[e(355)]+(t[e(334)]("/")?t:"/"+t)}}const G=new q;var J=X;function X(t,e){var n=Y();return(X=function(t,e){return n[t-=171]})(t,e)}!function(){for(var t=X,e=Y();;)try{if(283712===-parseInt(t(173))/1+-parseInt(t(184))/2+parseInt(t(183))/3+-parseInt(t(175))/4+-parseInt(t(171))/5+parseInt(t(172))/6+parseInt(t(177))/7*(parseInt(t(180))/8))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Q{static trackSlideViewable(t,e,n,s,r=!1){var i=X;r&&console[i(182)]("🎯 Triggering VIEWABLE event for slide change: ad "+t[i(178)]+i(179)+n+") in slot: "+e.id),s(t[i(178)],e.id,o.VIEWABLE)}static[J(176)](t,e,n,s=!1){var r=J;s&&console.log(r(181)+t[r(178)]+" (index: 0) in slot: "+e.id),n(t._id,e.id,o[r(174)])}}function Y(){var t=["2030749vaQwDC","_id"," (index: ","8ftVSgR","🎯 Triggering initial VIEWABLE event: ad ","log","1346799grpzyV","481074OKVLKD","2433655hjhjEw","3255408nTXDLp","158317erYajZ","VIEWABLE","449244FqKYpi","trackInitialSlideViewable"];return(Y=function(){return t})()}function Z(t,e){const n=et();return(Z=function(t,e){return n[t-=482]})(t,e)}const $=Z;!function(){const t=Z,e=et();for(;;)try{if(725614===parseInt(t(485))/1+-parseInt(t(484))/2*(parseInt(t(483))/3)+parseInt(t(502))/4+parseInt(t(498))/5+-parseInt(t(493))/6*(parseInt(t(488))/7)+parseInt(t(510))/8*(parseInt(t(512))/9)+parseInt(t(496))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static addClickEvent(t,e,n,s,r=!1,i){const a=Z;e[a(501)]&&(t[a(492)][a(487)]=a(499),t.addEventListener(a(508),t=>{const c=a;if(t[c(509)](),t[c(482)](),s&&s(e[c(489)],n.id,o[c(500)]),window[c(490)](e.linkUrl,c(494)),r){const t=i||String(n.adType)[c(511)]();console[c(503)](c(495)+t+c(491)+e._id+" -> "+e.linkUrl)}}))}static[$(506)](t,e,n,s,r=!1,i){const a=$;e[a(501)]&&(t[a(492)].cursor="pointer",t[a(507)](a(508),t=>{const c=a;t.preventDefault(),t[c(482)]();if(s()(e[c(489)],n.id,o[c(500)]),window[c(490)](e[c(501)],c(494)),r){const t=i||String(n[c(486)])[c(511)]();console[c(503)](c(495)+t+" ad clicked: "+e[c(489)]+c(513)+e[c(501)])}}))}static addClickEventForSlider(t,e,n,s,r=!1,i){this[$(497)](t,e,n,s,r,i)}static isClickable(t){return Boolean(t[$(501)])}static[$(505)](t,e,n,s,r=!1,i){t[$(504)]((t,o)=>{const a=e[o];a&&this.addClickEvent(t,a,n,s,r,i)})}}function et(){const t=["1010988tpWgdS","log","forEach","addClickEventsBatch","addClickEventForRenderer","addEventListener","click","preventDefault","8mlCOxz","toLowerCase","1450683IPSBxy"," -> ","stopPropagation","123ddtcpK","23572sDGnjp","972897cvnlUK","adType","cursor","613781MTKBfK","_id","open"," ad clicked: ","style","18lTeMCz","_blank","🔗 ","440350xyvqie","addClickEvent","205115MRVSdR","pointer","CLICK","linkUrl"];return(et=function(){return t})()}const nt=rt;function st(){const t=["addEventListener","adstage-dots","BANNER","6538986fGtaLo","22569sxvdLS","toLowerCase","createSliderContainer","inline-block","transform","setProperty","#cccccc","background","transparent","cssText","center","createSimpleAdElement","src","overflow","adstage-dot","appendChild","display","3iKFgRu","fontSize","preventDefault","div","13363LgOebM","TEXT","forEach","62gyqSLW","normal","touchstart","createMinimalDotIndicator","addClickEventForSlider","data-adstage-ad-id","210HRubRl","data-adstage-slot-id","trackSlideViewable","1px dashed #ccc","button","children","block","classList","string","video","8px","Banner Ad","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","border","0.7","className","1616NUubbA","contains","_id","none","14px","2714852UOfmIq","length","textContent","querySelectorAll","1px solid #666","relative","backgroundColor","mouseleave","touchmove","adType","translateX(-","auto","removeChild","200px","transform 0.4s ease-out","height","entries","\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 ","style","#999999","#f9f9f9","#666666","body","Text Ad","includes","adstage-slide","#f0f0f0","changedTouches","touchend","opacity","add","12KcfZbD","addTouchSupport","click","4636920AXYJMO","50px","videoUrl","\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 ","getBoundingClientRect","setAttribute","100%","createElement","mouseenter","objectFit","color","1737769ZCkpqc","padding","adstage-slider-wrapper",".adstage-dot","cover","clientX","100px","remove","transition","imageUrl","424341HciIaY","abs","width","autoSlideInterval","active","borderColor","Video Ad","VIDEO"];return(st=function(){return t})()}function rt(t,e){const n=st();return(rt=function(t,e){return n[t-=303]})(t,e)}!function(){const t=rt,e=st();for(;;)try{if(579117===-parseInt(t(358))/1*(parseInt(t(382))/2)+parseInt(t(375))/3*(parseInt(t(409))/4)+parseInt(t(325))/5+-parseInt(t(357))/6+parseInt(t(379))/7*(-parseInt(t(404))/8)+-parseInt(t(346))/9*(-parseInt(t(388))/10)+-parseInt(t(336))/11*(-parseInt(t(322))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static createSimpleAdElement(e,n){const s=rt,r=document.createElement(s(378));switch(r[s(403)]="adstage-ad adstage-"+String(e[s(418)])[s(359)](),r[s(330)](s(387),n[s(406)]),r[s(330)](s(389),e.id),r[s(309)][s(374)]=s(394),r.style[s(348)]=s(331),r[s(309)][s(306)]="auto",e.adType){case t[s(356)]:if(n[s(345)]){const t=document.createElement("img");t[s(370)]=n[s(345)],t[s(309)][s(348)]="100%",t[s(309)][s(306)]=s(420),t[s(309)][s(334)]=s(340),r.appendChild(t)}else r[s(309)][s(306)]=s(342),r[s(309)].backgroundColor=s(317),r[s(309)][s(401)]=s(391),r[s(411)]=s(399);break;case t[s(353)]:if(n[s(327)]){const t=document[s(332)](s(397));t.src=n.videoUrl,t.style.width=s(331),t.style.height=s(420),r.appendChild(t)}else r[s(309)][s(306)]=s(304),r[s(309)][s(415)]="#000",r.style[s(401)]=s(413),r[s(411)]=s(352),r.style[s(335)]="white";break;case t[s(380)]:if(n[s(411)]){const t=document[s(332)](s(378));t.textContent=n[s(411)]||"",t[s(309)][s(337)]=s(398),t[s(309)][s(376)]=s(408),r[s(373)](t)}else r[s(309)][s(306)]=s(326),r[s(309)][s(337)]=s(398),r[s(411)]=s(314);break;default:r[s(309)].height=s(342),r.style[s(401)]=s(391),r[s(309)][s(415)]=s(311),r[s(411)]=e[s(418)]+" Ad"}return r}static[nt(360)](e,n,s,r,i=!1){const o=nt,a=document[o(332)]("div");a[o(403)]=o(338);const c={position:o(414),overflow:"hidden"};if(e.width&&0!==e.width){let t;t=typeof e.width===o(396)&&(e[o(348)][o(315)]("px")||e[o(348)][o(315)]("%"))?e.width:e[o(348)]+"px",c[o(348)]=t,c[o(374)]=o(361)}else c[o(374)]=o(361);if(e[o(306)]&&0!==e[o(306)]){const t=typeof e.height===o(396)?e[o(306)]:e[o(306)]+"px";c[o(306)]=t}Object[o(307)](c)[o(381)](([t,e])=>{const n=o;a[n(309)][n(363)](t,e)});const d=!e[o(348)]||0===e[o(348)],l=!e[o(306)]||0===e.height;if(d||l){const t=document[o(332)](o(378));if(t[o(309)][o(367)]=o(400),!d&&e.width){let n;n=typeof e[o(348)]===o(396)?e.width[o(315)]("px")||e[o(348)][o(315)]("%")?e.width:e[o(348)]+"px":e.width+"px",t[o(309)][o(348)]=n,t[o(309)].whiteSpace=o(383)}document[o(313)][o(373)](t);let s=0,r=0;n.forEach(n=>{const i=o,a=this[i(369)](e,n);t[i(373)](a);const c=a[i(329)]();c.width>s&&(s=c.width),c[i(306)]>r&&(r=c[i(306)]),t[i(303)](a)}),d&&s>0&&(a.style[o(348)]=s+"px",c.width=s+"px"),l&&r>0&&(a.style[o(306)]=r+"px",c[o(306)]=r+"px"),document[o(313)][o(303)](t)}const u=[...n,n[0]],p=document[o(332)](o(378));p[o(403)]="adstage-slide-container";const h={display:"flex",transition:o(305),width:100*u[o(410)]+"%"};e[o(306)]&&0!==e.height&&(h[o(306)]="100%"),Object[o(307)](h)[o(381)](([t,e])=>{p[o(309)].setProperty(t,e)}),u.forEach((t,n)=>{const s=o,a=document[s(332)](s(378));a[s(403)]=s(316);const c={width:100/u.length+"%","flex-shrink":"0",display:"flex","align-items":s(368),"justify-content":s(368)};e[s(306)]&&0!==e[s(306)]&&(c[s(306)]=s(331)),Object[s(307)](c)[s(381)](([t,e])=>{const n=s;a[n(309)][n(363)](t,e)});const d=this[s(369)](e,t);tt[s(386)](d,t,e,r,i,String(e[s(418)])[s(359)]()),a[s(373)](d),p.appendChild(a)});const f=n.every(e=>e[o(418)]===t[o(380)])?null:this[o(385)](n[o(410)]);let g=0;const m=n[o(410)],I=1e3*(s?.[o(349)]||3),v=(t,s=!1)=>{const a=o;g=t,p.style[a(344)]=a(s?407:305),p.style[a(362)]=a(419)+100/u[a(410)]*g+"%)";const c=g===m?0:g;if(f){f.querySelectorAll(a(339))[a(381)]((t,e)=>{const n=a,s=t;e===c?(s[n(395)][n(321)](n(350)),s[n(309)][n(365)]=n(312),s.style.borderColor=n(312),s.style[n(320)]="1"):(s[n(395)][n(343)](n(350)),s[n(309)].background=n(366),s[n(309)][n(351)]=n(364),s[n(309)][n(320)]=n(402))})}Q[a(390)](n[c],e,c,r,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[o(412)](".adstage-dot")[o(381)]((t,e)=>{const n=o;t[n(354)](n(324),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(354)]("mouseenter",()=>{clearInterval(b)}),a[o(354)](o(416),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this.addTouchSupport(p,v,()=>g,m,y),a[o(373)](p),f&&a[o(373)](f),v(0),(!e[o(348)]||0===e[o(348)])&&setTimeout(()=>{const t=o,n=p[t(393)][0];if(n){const s=n[t(393)][0];if(s){const n=s[t(329)]();a[t(309)][t(348)]=n[t(348)]+"px",(!e[t(306)]||0===e[t(306)])&&(a.style.height=n[t(306)]+"px"),a[t(309)][t(371)]="hidden"}}},10),a}static[nt(385)](t){const e=nt,n=document.createElement(e(378));n[e(403)]=e(355),n[e(309)][e(367)]=e(328);for(let s=0;s<t;s++){const t=document[e(332)](e(392));t.className=e(372),t.style[e(367)]=e(308),t.addEventListener(e(333),()=>{const n=e;!t[n(395)][n(405)](n(350))&&(t[n(309)][n(351)]=n(310),t[n(309)][n(320)]="0.9")}),t.addEventListener(e(416),()=>{const n=e;!t[n(395)][n(405)](n(350))&&(t.style[n(351)]=n(364),t[n(309)][n(320)]="0.7")}),n.appendChild(t)}return n}static[nt(323)](t,e,n,s,r){const i=nt;let o=0,a=!1;t[i(354)](i(384),t=>{const e=i;o=t.touches[0][e(341)],a=!0}),t[i(354)](i(417),t=>{a&&t[i(377)]()}),t[i(354)](i(319),t=>{const c=i;if(!a)return;a=!1;const d=t[c(318)][0][c(341)],l=o-d;if(Math[c(347)](l)>50){const t=n();if(l>0){e(t+1),r&&r()}else{e(t>0?t-1:s-1)}}})}}const ot=ct;function at(){const t=["323512gnAYDw","log","2724129FoCJNA","102822BxXsJF","isDuplicateViewable","clear","1504768SlfbqK","✅ New viewable recorded for ad ","56iEmEkW"," in slot ","add","Duplicate viewable blocked for ad ","3VSFiYZ","1211145Ubfiuj","has","346996UCTlVk","viewableTracker","delete","10iWwxfr","147203RuvpDG"];return(at=function(){return t})()}function ct(t,e){const n=at();return(ct=function(t,e){return n[t-=404]})(t,e)}!function(){const t=ct,e=at();for(;;)try{if(147522===-parseInt(t(417))/1+parseInt(t(418))/2+-parseInt(t(410))/3*(parseInt(t(413))/4)+parseInt(t(411))/5+-parseInt(t(421))/6*(parseInt(t(406))/7)+-parseInt(t(404))/8+-parseInt(t(420))/9*(-parseInt(t(416))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class dt{static[ot(422)](t,e,n=!1){const s=ot,r=t+"_"+e;return dt[s(414)][s(412)](r)?(n&&console[s(419)](s(409)+t+s(407)+e),!0):(dt.viewableTracker[s(408)](r),n&&console[s(419)](s(405)+t+s(407)+e),!1)}static[ot(423)](){dt[ot(414)].clear()}static clearAdViewable(t,e){const n=ot,s=t+"_"+e;dt.viewableTracker[n(415)](s)}}function lt(t,e){const n=ut();return(lt=function(t,e){return n[t-=398]})(t,e)}function ut(){const t=["getContainerHeight","calculateAdSize",'[class*="ad"]',"block","number","createEmptyContainer","classList","debug","🚫 Duplicate viewable blocked for ad ","2067930FTcQFG","advertisementEventTracker","#e74c3c","center",'[class*="container"]',"createElement","none","true","getElementById","minimal","184336dJXUba","adstage-slot adstage-empty adstage-","): ","adType","data-adstage-slot","placeholderMode","cssText","renderFallback","getDefaultHeight","appendChild","error","borderRadius","6px","#f9f9f9","✅ New viewable recorded for ad "," ad...</span>",".adstage-slot","border","\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 ",'[class*="banner"]',"isDuplicateViewable","alignItems","adstage-slot adstage-","color","contains","3cbZUAW","45IilVZT","filter","closest"," for ad ","invisible","monospace","data-adstage-container","justifyContent","height","string",'[data-adstage-container="true"]',"createEventTrackingCallback","toLowerCase","isEmpty",".adstage-"," container: ",") - Mode: ","style","adstage-official","fontSize","🔄 Starting advertisement event tracking: "," x ","adstage-slot","⚠️ ","unknown","adstage-class","getComputedStyle","flex","containerId","1761506NDJzSU","querySelector","warn","7dCmOHV","parentElement","3872eGidyk","<span>Loading ","getAttribute","\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 ","#666",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"📦 Placeholder created for ","100%","rgba(231, 76, 60, 0.1)","createPlaceholder","973062AUpUQt","subtle",'div[style*="height"]',"📊 Advertisement event tracked: "," event","generic","innerHTML","📏 Using default height ","3095AHDwdg","opacity","📏 Using 100% height (container: ","backgroundColor","5234251CIzFVY","774724zIplMQ","transparent","minHeight","4px","fontFamily","className","display"," in slot ","width","div","setAttribute","hasAttribute","log"];return(ut=function(){return t})()}dt[ot(414)]=new Set;const pt=lt;!function(){const t=lt,e=ut();for(;;)try{if(466858===-parseInt(t(473))/1+parseInt(t(445))/2*(parseInt(t(415))/3)+parseInt(t(450))/4*(-parseInt(t(468))/5)+parseInt(t(460))/6*(parseInt(t(448))/7)+-parseInt(t(505))/8*(-parseInt(t(416))/9)+parseInt(t(495))/10+parseInt(t(472))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ht{constructor(t,e=!1,n){const s=lt;this[s(508)]=t,this.debug=e,this[s(496)]=n||null}[pt(459)](t,e,n,s){const r=pt,i=document[r(500)](r(482));i.id=e,i.className=r(412)+String(this[r(508)])[r(428)](),i[r(483)](r(422),r(502)),i.setAttribute("data-adstage-type",String(this[r(508)])),i[r(483)]("data-adstage-slot",e);const{width:o,height:a}=this.calculateAdSize(t,n,s)||{width:r(457),height:this[r(398)]()};i[r(433)].width=o,i[r(433)][r(424)]=a;const c=s?.[r(510)]||n[r(510)]||r(420);this.applyPlaceholderStyle(i,c),t[r(399)](i),this[r(493)]&&console.log(r(456)+this[r(508)]+" slot: "+e+" ("+o+r(437)+a+r(432)+c)}applyPlaceholderStyle(t,e){const n=pt;switch(e){case n(420):t[n(433)][n(471)]=n(474),t[n(433)][n(407)]=n(501),t[n(433)][n(469)]="0",t.innerHTML="";break;case n(474):t[n(433)][n(471)]="transparent",t.style.border="none",t.style[n(479)]=n(489),t.innerHTML="";break;case n(461):t.style[n(471)]="rgba(0, 0, 0, 0.02)",t[n(433)][n(407)]=n(501),t[n(433)][n(401)]=n(476),t.style[n(479)]=n(443),t[n(433)][n(411)]=n(498),t[n(433)][n(423)]=n(498),t[n(466)]='<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>';break;case n(504):t[n(433)].backgroundColor="rgba(248, 249, 250, 0.5)",t.style[n(407)]="1px solid rgba(0, 0, 0, 0.08)",t[n(433)].borderRadius=n(402),t[n(433)][n(479)]=n(443),t[n(433)].alignItems=n(498),t[n(433)][n(423)]=n(498),t.innerHTML=n(455);break;case n(493):t[n(433)].border="2px dashed #e74c3c",t[n(433)][n(479)]=n(443),t[n(433)][n(411)]=n(498),t.style[n(423)]=n(498),t.style[n(471)]=n(458),t.style[n(413)]=n(497),t[n(433)][n(477)]=n(421),t.style[n(435)]="11px",t.innerHTML=n(451)+this.adType+" ad...</span>";break;default:t.style[n(407)]="1px dashed #ccc",t[n(433)].display=n(443),t[n(433)][n(411)]=n(498),t[n(433)][n(423)]=n(498),t[n(433)][n(471)]=n(403),t[n(433)].color=n(454),t[n(466)]=n(451)+this.adType+n(405)}}[pt(487)](t,e,n){const s=pt,r=e[s(481)],i=e.height;let o,a;if(o=typeof r===s(490)?r+"px":typeof r===s(425)?r:s(457),typeof i===s(490))a=i+"px";else if(typeof i===s(425)&&i!==s(457)&&"auto"!==i)a=i;else{const e=this[s(486)](t);e>0?(a=s(457),(n?.debug||this[s(493)])&&console[s(485)](s(470)+e+"px)")):(a=this[s(398)](),(n?.[s(493)]||this.debug)&&console.log(s(467)+a+" for "+this.adType))}return{width:o,height:a}}[pt(486)](t){const e=pt,n=window[e(442)](t),s=parseFloat(n[e(424)]);if(!s||0===s){const s=parseFloat(n[e(475)]);if(s>0)return s;if(t[e(433)].height&&"auto"!==t.style[e(424)]){const e=parseFloat(t.style.height);if(e>0)return e}const r=t[e(452)](e(424));if(r){const t=parseFloat(r);if(t>0)return t}}return s||0}[pt(427)](){return async(t,e,n)=>{const s=lt;if(n===o.VIEWABLE){if(dt[s(410)](t,e,this.debug))return void(this[s(493)]&&console.log(s(494)+t+s(480)+e));this[s(493)]&&console[s(485)](s(404)+t+s(480)+e)}if(this[s(496)])try{this[s(493)]&&console[s(485)](s(436)+n+s(419)+t+s(480)+e),await this[s(496)].trackAdvertisementEvent(t,e,n),this[s(493)]&&console.log(s(463)+n+s(419)+t+s(480)+e)}catch(e){this.debug&&console[s(400)]("❌ Failed to track "+n+" event for ad "+t+":",e)}else this[s(493)]&&console[s(447)]("⚠️ AdvertisementEventTracker not available for "+n+s(464))}}[pt(512)](t){const e=pt,n=document[e(503)](t.id);if(n){const s=[...[n[e(446)](e(426)),n[e(418)](e(426)),n][e(417)](t=>t&&t.hasAttribute(e(422))),...[n.closest(e(406)),n[e(418)](e(430)+String(this[e(508)])[e(428)]()),n[e(418)](e(488)),n.closest(e(409)),n.closest(e(499)),n[e(418)](e(462)),n.closest('div[style*="min-height"]'),n[e(449)]][e(417)](Boolean)][0];if(s){let n=e(440);n=s[e(484)](e(422))?e(434):s[e(492)][e(414)](e(438))?e(441):e(465),s[e(433)].cssText+=e(408),s[e(466)]="",s[e(483)]("data-adstage-empty",e(502)),this[e(493)]&&console[e(447)](e(439)+this[e(508)]+" container collapsed ("+n+e(507)+t.id,s)}else this[e(491)](t)}t.advertisement=void 0,t[e(429)]=!0}[pt(491)](t){const e=pt,n=document[e(503)](t[e(444)]);if(n){n[e(466)]="";const s=document[e(500)]("div");s.id=t.id,s[e(478)]=e(506)+String(this.adType).toLowerCase(),s[e(483)](e(422),e(502)),s[e(483)]("data-adstage-empty",e(502)),s[e(483)](e(509),t.id),s[e(433)][e(511)]=e(453),n[e(399)](s),this.debug&&console[e(447)]("⚠️ Created empty "+this[e(508)]+e(431)+t.id)}}log(t,...e){const n=pt;this[n(493)]&&console[n(485)]("["+this.adType+"] "+t,...e)}}const ft=mt;function gt(){const t=["style","from","1443525LCFlmm","config","abs","warn","Banner container optimization failed, using default size:","imageUrl","onerror","set","block","innerHTML","📊 Using standard ratio: ","some","alt","applyOptimizedImageStyle","log","📦 Banner container dimensions: ","❌ Failed to load optimized banner image:","length","701368hLabYJ","getBoundingClientRect","get","✅ Optimized banner image rendered for ad: ","ratio","center","forEach","calculateOptimalContainerSize","fulfilled","renderMultipleAds","259743BexZMV","250px","3:2","debug","map","div","onload","createElement","getElementById","objectPosition","loadImageDimensions","reduce","1882181dCPlLO","parentElement","optimizeContainerForBannerAds","🔧 Banner container optimized for ","contain","value","BANNER","8px","Container not found: ","values","display",", ratio=","aspectRatio","20352wOlWma","naturalHeight","addClickEventForRenderer","Banner Ad","average","toFixed","name","className","createSliderContainer"," (avg: ","1:1"," ads (optimized: ","Banner","🎨 Banner image style applied: objectFit=","selectOptimalSizeStrategy","16:9","status","_id","optimizedHeight","renderOptimizedBannerImage","4:3","</div>","calculateOptimalHeight"," with ","5mGzTXj"," (strategy: ","backgroundColor","865232lqzyzU","naturalWidth","height","100%","cover","getDefaultHeight","Failed to calculate optimal banner size, using defaults:","objectFit","round","width","filter","common","adstage-ad adstage-banner-ad","createEventTrackingCallback","allSettled","#f0f0f0","Banner Advertisement","3338934kHDBWV","🎠 Banner carousel created for slot: ","<div>","renderAdElement","src","borderRadius","default","title","dominant","count","containerId","appendChild","toString"];return(gt=function(){return t})()}function mt(t,e){const n=gt();return(mt=function(t,e){return n[t-=422]})(t,e)}!function(){const t=mt,e=gt();for(;;)try{if(378126===-parseInt(t(488))/1+parseInt(t(513))/2+-parseInt(t(460))/3+parseInt(t(478))/4+parseInt(t(425))/5*(parseInt(t(445))/6)+parseInt(t(500))/7+parseInt(t(428))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class It extends ht{constructor(e=!1,n){super(t[mt(506)],e,n)}[ft(433)](){return ft(489)}async[ft(448)](t,e){const n=ft,s=document[n(496)](t[n(455)]);if(!s)return;const r=document[n(495)](n(493));r[n(520)]=n(440);const i=t[n(531)],o=s[n(501)]||s;if(i)r[n(458)][n(437)]=n(431),r[n(458)][n(430)]=String(i);else{const e=t[n(461)],s={width:e?.[n(437)],height:e?.[n(430)]},{width:i,height:a}=this.calculateAdSize(o,s,{debug:this[n(491)]});r[n(458)].width=i,r[n(458)][n(430)]=a}e[n(465)]?await this[n(532)](r,e,t):r[n(469)]=n(447)+(e[n(452)]||n(516))+n(422),tt.addClickEventForRenderer(r,e,t,()=>this[n(441)](),this[n(491)],n(525)),s.innerHTML="",s[n(456)](r)}async[ft(487)](t,e){const n=ft,s=document.getElementById(t.containerId);if(!s)throw new Error(n(508)+t[n(455)]);await this.optimizeContainerForBannerAds(t,e);const r=this[n(441)](),i={autoSlideInterval:(t[n(461)]?.slideInterval||5e3)/1e3,...t[n(461)],optimizedHeight:t[n(531)],aspectRatio:t[n(512)]},o=it[n(521)](t,e,i,r,this[n(491)]);o&&(s.innerHTML="",s[n(456)](o),this[n(491)]&&console[n(474)](n(446)+t.id+n(424)+e[n(477)]+n(524)+(t[n(531)]||n(451))+")"))}async[ft(485)](t,e){const n=ft;if(!t[n(477)])return{width:n(431),height:this.getDefaultHeight(),aspectRatio:16/9};try{const s=(await Promise[n(442)](t[n(438)](t=>t[n(465)])[n(492)](t=>this[n(498)](t[n(465)]))))[n(438)](t=>t[n(529)]===n(486))[n(492)](t=>t[n(505)]);if(0===s.length)return{width:"100%",height:this[n(433)](),aspectRatio:16/9};const r=this[n(527)](s),i=this[n(423)](s,e,r);return this.debug&&console[n(474)]("📐 Optimal banner container calculated: "+e+"x"+i+n(426)+r+")"),{width:n(431),height:i+"px",aspectRatio:e/i}}catch(t){return console[n(463)](n(434),t),{width:n(431),height:this[n(433)](),aspectRatio:16/9}}}async[ft(502)](t,e){const n=ft;try{const s=document[n(496)](t.containerId),r=document[n(496)](t.id);if(!s||!r)return;const i=s.getBoundingClientRect()[n(437)]||300,o=await this[n(485)](e,i);r[n(458)].height=o[n(430)],t[n(531)]=o[n(430)],t[n(512)]=o[n(512)],this[n(491)]&&console[n(474)](n(503)+e[n(477)]+" ads: "+o.height)}catch(t){console[n(463)](n(464),t)}}selectOptimalSizeStrategy(t){const e=ft,n=t[e(492)](t=>t[e(437)]/t[e(430)]),s=new Map;n[e(484)](t=>{const n=e,r=(Math.round(10*t)/10)[n(457)]();s.set(r,(s[n(480)](r)||0)+1)});const r=Math.max(...s.values()),i=t[e(477)];if(r/i>=.7)return e(453);const o=[16/9,4/3,1,1.5];return n[e(438)](t=>o[e(471)](e=>Math.abs(t-e)<.1))[e(477)]/i>=.5?"common":"average"}[ft(423)](t,e,n){const s=ft,r=t.map(t=>t.width/t[s(430)]);switch(n){case s(453):{const t=new Map;r[s(484)](e=>{const n=s,r=Math.round(10*e)/10,i=r[n(457)](),o=t[n(480)](i);o?o[n(454)]++:t[n(467)](i,{ratio:r,count:1})});const n=Array[s(459)](t[s(509)]()).reduce((t,e)=>e.count>t[s(454)]?e:t);return Math[s(436)](e/n.ratio)}case s(439):{const t=[{ratio:16/9,name:s(528)},{ratio:4/3,name:s(533)},{ratio:1,name:s(523)},{ratio:1.5,name:s(490)}],n=r[s(499)]((t,e)=>t+e,0)/r[s(477)],i=t.reduce((t,e)=>Math[s(462)](e[s(482)]-n)<Math[s(462)](t[s(482)]-n)?e:t);return this[s(491)]&&console[s(474)](s(470)+i[s(519)]+s(522)+n.toFixed(2)+")"),Math.round(e/i[s(482)])}case s(517):default:{const t=r[s(499)]((t,e)=>t+e,0)/r.length;return Math[s(436)](e/t)}}}[ft(498)](t){return new Promise((e,n)=>{const s=mt,r=new Image;r[s(494)]=()=>{const t=s;e({width:r[t(429)],height:r[t(514)]})},r[s(466)]=()=>{n(new Error("Failed to load image: "+t))},r[s(449)]=t})}[ft(473)](t,e,n){const s=ft,r=e/n;Math[s(462)](r-1)<.1?(t[s(458)].objectFit="cover",t.style[s(497)]="center"):r>1.3?(t.style[s(435)]=s(504),t[s(458)][s(497)]=s(483),t.style[s(427)]=s(443)):r<.7?(t.style[s(435)]=s(432),t.style.objectPosition="center"):(t[s(458)][s(435)]=s(432),t.style[s(497)]="center"),this[s(491)]&&console.log(s(526)+t[s(458)][s(435)]+s(511)+r[s(518)](2))}async[ft(532)](t,e,n){const s=ft,r=document[s(495)]("img");r.style[s(437)]=s(431),r[s(458)][s(430)]="100%",r.style[s(510)]=s(468),r[s(458)][s(450)]=s(507),r[s(472)]=e.title||s(444),t[s(469)]='<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>';try{if(!e.imageUrl)throw new Error("Image URL is not provided");const i=await this[s(498)](e[s(465)]),o=t[s(479)](),a=o.width,c=o[s(430)];this[s(491)]&&(console[s(474)]("📸 Banner image dimensions: "+i[s(437)]+"x"+i[s(430)]),console[s(474)](s(475)+a+"x"+c));const d=i[s(437)]/i.height,l=a/c;return this[s(473)](r,d,l),r[s(449)]=e[s(465)],t[s(469)]="",t[s(456)](r),tt.addClickEventForRenderer(r,e,n,()=>this.createEventTrackingCallback(),this[s(491)],s(525)),this[s(491)]&&console.log(s(481)+e[s(530)]),r}catch(i){return console.error(s(476),i),e[s(465)]&&(r[s(449)]=e[s(465)],r[s(458)][s(435)]=s(432),r.style[s(497)]=s(483),t[s(469)]="",t.appendChild(r),tt[s(515)](r,e,n,()=>this[s(441)](),this[s(491)],s(525))),r}}}const vt=bt;function yt(){const t=["15251830CoJFjJ","4119336WcOnYe","2526rjDFco","8292105dldUhX","title","24UnLFtN","textContent","3917MSTjbJ","createTextAdStyles","871490mZqyaR","987900OdHQkm","194TsfHkl","setTextAdContent","19467XLnMhh"];return(yt=function(){return t})()}function bt(t,e){const n=yt();return(bt=function(t,e){return n[t-=327]})(t,e)}!function(){const t=bt,e=yt();for(;;)try{if(694207===parseInt(t(327))/1*(-parseInt(t(331))/2)+parseInt(t(330))/3+-parseInt(t(339))/4*(parseInt(t(329))/5)+parseInt(t(336))/6*(-parseInt(t(333))/7)+parseInt(t(335))/8+parseInt(t(337))/9+parseInt(t(334))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class wt{static[vt(328)](t=!1){return"\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 "}static[vt(332)](t,e){const n=vt,s=e[n(340)]||e[n(338)]||"";t[n(340)]=s}}const Et=kt;function kt(t,e){const n=xt();return(kt=function(t,e){return n[t-=373]})(t,e)}function xt(){const t=["\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","164605KDeWGg","8382IrEvsQ","auto","toLowerCase","adstage-fade-slider-wrapper","190104POscmZ","body","cssText","abs","transform","435600CCmRfM","hidden","includes","changedTouches","translateY(0)","addEventListener","left","3IHoSGZ","div","createSimpleAdElement","adstage-fade-slide","width",";\n transform: translateY(","translateY(-20px)","position","whiteSpace","addTouchSupport","style","clientX","opacity","setTextAdContent","appendChild","clientY","block","height: auto; min-height: fit-content;","data-adstage-ad-id","1085BCJNVa","className","getBoundingClientRect","Text","20px","mouseenter","517238FyRizu","\n position: ","createElement","autoSlideInterval","createTextAdStyles","adstage-fade-slide-container","touches","absolute","135776cUEMzI","minHeight","mouseleave","adstage-ad adstage-","adType","height","string","data-adstage-slot-id","translateY(20px)","preventDefault","removeChild","touchend","\n position: relative;\n width: 100%;\n ",";\n left: ","normal","height: 100%;","createTextTransitionContainer","setAttribute","90OdVfTa","relative","zIndex","429550DnjUpz","top","forEach","\n "];return(xt=function(){return t})()}!function(){const t=kt,e=xt();for(;;)try{if(159514===-parseInt(t(448))/1+-parseInt(t(409))/2*(-parseInt(t(384))/3)+-parseInt(t(377))/4+parseInt(t(403))/5*(parseInt(t(444))/6)+parseInt(t(443))/7+parseInt(t(417))/8*(-parseInt(t(435))/9)+parseInt(t(438))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class St{static[Et(386)](t,e){const n=Et,s=document[n(411)](n(385));return s[n(404)]=n(420)+String(t[n(421)])[n(446)](),s[n(434)](n(402),e._id),s[n(434)](n(424),t.id),s[n(394)][n(374)]=wt[n(413)](!0),wt[n(397)](s,e),s}static[Et(433)](t,e,n,s,r=!1){const i=Et,o=t[i(422)]&&0!==t[i(422)]&&t[i(422)]!==i(445),a=document[i(411)](i(385));a[i(404)]=i(447);const c={position:i(436),overflow:i(378),display:i(400)};if(!o&&(c.height=i(445),c[i(418)]="fit-content"),t[i(388)]&&0!==t.width){let e;e="string"==typeof t[i(388)]&&(t[i(388)][i(379)]("px")||t[i(388)][i(379)]("%"))?t[i(388)]:t[i(388)]+"px",c.width=e}if(t.height&&0!==t.height&&t[i(422)]!==i(445)&&o){let e;e=typeof t[i(422)]===i(423)&&(t[i(422)].includes("px")||t[i(422)].includes("%"))?t.height:t[i(422)]+"px",c.height=e}Object.entries(c).forEach(([t,e])=>{a[i(394)].setProperty(t,e)});const d=document[i(411)](i(385));d[i(404)]=i(414),d.style[i(374)]=i(429)+i(o?432:401)+i(441);let l=null;const u=!t[i(388)]||0===t[i(388)],p=!t.height||0===t[i(422)]||void 0===t[i(422)]||"auto"===t[i(422)];if(u||p&&o){if(l=document[i(411)](i(385)),l[i(394)][i(374)]=i(442),!u&&t[i(388)]){let e;e=typeof t.width===i(423)?t.width[i(379)]("px")||t[i(388)][i(379)]("%")?t[i(388)]:t[i(388)]+"px":t.width+"px",l[i(394)][i(388)]=e,l[i(394)][i(392)]=i(431)}document[i(373)][i(398)](l);let n=0,s=0;e.forEach(e=>{const r=i,o=this[r(386)](t,e);l[r(398)](o);const a=o[r(405)]();a[r(388)]>n&&(n=a[r(388)]),a.height>s&&(s=a[r(422)]),l[r(427)](o)}),u&&n>0&&(a[i(394)].width=n+"px"),p&&s>0&&o&&(a[i(394)][i(422)]=s+"px"),document.body[i(427)](l)}const h=[];e.forEach((e,n)=>{const a=i,c=document.createElement(a(385));c[a(404)]=a(387);const l=o?"absolute":0===n?"relative":a(416);c[a(394)].cssText=a(410)+l+";\n top: "+(l===a(416)?"0":a(445))+a(430)+(l===a(416)?"0":a(445))+";\n width: 100%;\n "+(o?a(432):"height: auto;")+"\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "+(0===n?"1":"0")+a(389)+(0===n?"0":a(407))+");\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(386)](t,e);tt.addClickEventForSlider(u,e,t,s,r,a(406)),c[a(398)](u),d[a(398)](c),h.push(c)});let f=0;const g=e.length,m=1e3*(n?.[i(412)]||4),I=n=>{const a=i;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(394)][a(391)]===a(436)&&(c[a(394)][a(391)]=a(416),c[a(394)][a(439)]="0",c[a(394)].left="0"),d[a(394)].position="relative",d[a(394)][a(439)]="auto",d[a(394)][a(383)]=a(445)),c.style.opacity="0",c[a(394)][a(376)]=a(390),c.style[a(437)]="1",d[a(394)][a(396)]="1",d[a(394)][a(376)]=a(381),d[a(394)].zIndex="2",h[a(440)]((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(394)][s(396)]="0",t[s(394)].transform=s(425),t.style.zIndex="1",!o&&"relative"===t[s(394)][s(391)]&&(t[s(394)][s(391)]="absolute",t[s(394)][s(439)]="0",t[s(394)].left="0"))}),f=n,Q.trackSlideViewable(e[f],t,f,s,r)};let v=setInterval(()=>{I(f+1)},m);return a.addEventListener(i(408),()=>{clearInterval(v)}),a[i(382)](i(419),()=>{v=setInterval(()=>{I(f+1)},m)}),St[i(393)](a,I,()=>f,g),a.appendChild(d),a}static[Et(393)](t,e,n,s){const r=Et;let i=0,o=0,a=!1;t.addEventListener("touchstart",t=>{const e=kt;i=t[e(415)][0][e(395)],o=t[e(415)][0][e(399)],a=!0}),t[r(382)]("touchmove",t=>{a&&t[r(426)]()}),t[r(382)](r(428),t=>{const s=r;if(!a)return;a=!1;const c=t[s(380)][0][s(395)],d=t[s(380)][0].clientY,l=i-c,u=o-d;if(Math.abs(l)>Math[s(375)](u)&&Math.abs(l)>50){const t=n();e(l>0?t+1:t-1)}})}}const At=Tt;function Tt(t,e){const n=Ct();return(Tt=function(t,e){return n[t-=102]})(t,e)}function Ct(){const t=["containerId","height","className","appendChild","adstage-ad adstage-text-ad","adstage-text-content","Container not found: ","2367174VARsGI","701538ETiuvf","getDefaultHeight","✨ Single text ad rendered: ","277643CNrIfu","maxLines","vertical","_id","60px","log","setTextAdContent","div","cssText","getElementById","debug","addClickEventForRenderer"," ads","innerHTML","style","createElement","888192WcYJij","length","webkitBoxOrient","display","✨ Text transition created for slot: ","6zIEopl","7noShdF","createEventTrackingCallback","2513665fvftde","2417928fPtjoy","width","aspectRatio","-webkit-box","optimizedHeight","293104ugTEUb","renderAdElement","hidden","calculateAdSize","parentElement","config","number","webkitLineClamp","100%"];return(Ct=function(){return t})()}!function(){const t=Tt,e=Ct();for(;;)try{if(278631===parseInt(t(119))/1+parseInt(t(116))/2+-parseInt(t(140))/3*(-parseInt(t(149))/4)+-parseInt(t(143))/5+-parseInt(t(115))/6*(parseInt(t(141))/7)+parseInt(t(144))/8+parseInt(t(135))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Dt extends ht{constructor(e=!1,n){super(t.TEXT,e,n)}[At(117)](){return At(123)}async[At(150)](t,e){const n=At,s=document[n(128)](t[n(108)]);if(!s)return;const r=document[n(134)](n(126));r[n(110)]=n(112);const i=t[n(148)],o=s[n(103)]||s;if(i)r[n(133)][n(145)]=n(107),r[n(133)][n(109)]=String(i);else{const e=t[n(104)],s={width:e?.width,height:e?.[n(109)]},{width:i,height:a}=this[n(102)](o,s,{debug:this.debug});r[n(133)].width=i,r.style[n(109)]=a}const a=document[n(134)]("div");a[n(110)]=n(113),a[n(133)][n(127)]=wt.createTextAdStyles(!1),wt[n(125)](a,e);const c=t[n(104)]?.[n(120)];c&&typeof c===n(105)&&(a.style[n(138)]=n(147),a[n(133)][n(106)]=String(c),a[n(133)][n(137)]=n(121),a[n(133)].overflow=n(151)),r[n(111)](a),tt[n(130)](r,e,t,()=>this[n(142)](),this[n(129)],"Text"),s.innerHTML="",s[n(111)](r),this[n(129)]&&console[n(124)](n(118)+e[n(122)])}async renderMultipleAds(t,e){const n=At,s=document[n(128)](t[n(108)]);if(!s)throw new Error(n(114)+t[n(108)]);const r=this.createEventTrackingCallback(),i={autoSlideInterval:(t[n(104)]?.slideInterval||5e3)/1e3,...t[n(104)],optimizedHeight:t[n(148)],aspectRatio:t[n(146)]},o=St.createTextTransitionContainer(t,e,i,r,this[n(129)]);o&&(s[n(132)]="",s.appendChild(o),this[n(129)]&&console[n(124)](n(139)+t.id+" with "+e[n(136)]+n(131)))}}const Rt=Ut;function Bt(){const t=["containerId","cssText","contain","966252jOrNIa","rgba(0, 0, 0, 0.7)","getDefaultHeight","🎬 Trying muted autoplay fallback...","controls","Video thumbnail","🎬 Video element created for ad: ","video",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',"createEventTrackingCallback","Container not found: ","hideRemainingTime","scale(1.1)","🔊 Video mute toggled: ","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","renderAdElement","innerHTML","929032exDjXs","disabled (default)","img","objectFit","\n video::-webkit-media-controls-play-button {\n display: ","scale(1)","8521436wjlROn","height","840811arKpyd","paused","canplay","transform","position","src","playsinline","textContent","hideMuteButton","hidePlayButton","🎬 Video metadata loaded, attempting autoplay...","relative","🎬 Autoplay completely failed:"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","videoUrl","hideProgressBar","stopPropagation","\n pointer-events: none;\n ","3256105rgkUaG"," (autoplay: ","renderMultipleAds","loop","unmuted","adstage-video-mute-button","alt","error","\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n "," !important;\n }\n ","className","addClickEventForRenderer","27080505FyPiaB","click","addEventListener","🎬 Auto-play was prevented:","debug","Video","background","🎬 Video config received:","\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n ","customControls","Video load failed:","loadeddata","_id","setAttribute","width","mouseleave","display","loadedmetadata","config","🎬 Initial autoplay attempt after timeout...","6975JkwQMw","style","head","play","title","6OjHlQJ","none","getElementById","208RrilSU"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","log","preload"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","Click to mute","imageUrl","hideFullscreenButton","div","muted","adstage-video-default-controls","Click to unmute","autoplay","adstage-video-container","renderVideoElementDirect","appendChild","catch","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","100%","hideControls"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","createElement","warn",", loop: ","Video fallback","block"];return(Bt=function(){return t})()}function Ut(t,e){const n=Bt();return(Ut=function(t,e){return n[t-=236]})(t,e)}!function(){const t=Ut,e=Bt();for(;;)try{if(777920===-parseInt(t(250))/1+parseInt(t(337))/2+parseInt(t(300))/3*(-parseInt(t(308))/4)+parseInt(t(268))/5*(-parseInt(t(305))/6)+-parseInt(t(248))/7+parseInt(t(242))/8+parseInt(t(280))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt extends ht{constructor(e=!1,n){super(t.VIDEO,e,n)}[Rt(339)](){return"360px"}async[Rt(240)](t,e){const n=Rt,s=document.getElementById(t[n(334)]);if(!s)return;const r=document.createElement(n(316));r.className="adstage-video-container",r.style.cssText=n(325),this[n(322)](r,e,t),s[n(241)]="",s[n(323)](r),this.debug&&console[n(310)]("🎬 Single video ad rendered: "+e[n(292)])}async[Rt(270)](t,e){const n=Rt,s=document.getElementById(t[n(334)]);if(!s)throw new Error(n(347)+t.containerId);if(e.length>0){const r=e[0],i=document.createElement(n(316));i[n(278)]=n(321),i[n(301)][n(335)]=n(239),this[n(322)](i,r,t),s[n(241)]="",s[n(323)](i);const a=this[n(346)]();setTimeout(()=>{a(r[n(292)],t.id,o.VIEWABLE)},100),this[n(284)]&&console[n(310)]("🎬 Single video rendered for VIDEO slot: "+t.id+" ("+r[n(292)]+")")}else this[n(284)]&&console.warn("⚠️ No video advertisements available for slot: "+t.id)}[Rt(322)](t,e,n){const s=Rt;t[s(301)][s(254)]=s(261);const r=document[s(329)](s(344));r.style[s(294)]=s(326),r[s(301)].height=s(326),r.style[s(245)]=s(336),r[s(311)]="metadata";const i=n[s(298)];if(this[s(284)]&&console[s(310)](s(287),i),r[s(341)]=!1,r[s(320)]=!1!==i?.autoplay,r[s(317)]=!0,r.loop=!1!==i?.[s(271)],this[s(284)]&&console[s(310)]("🎬 Final video settings:",{autoplay:r[s(320)],muted:r[s(317)],loop:r[s(271)],controls:r.controls}),!1!==i?.[s(256)]&&r[s(293)](s(256),""),!0===i?.controls&&(r[s(341)]=!0,this[s(284)]&&console[s(310)]("🎬 User explicitly enabled controls, overriding default")),i?.[s(327)])r[s(341)]=!1,r.style[s(335)]+=s(267);else if(i?.[s(289)]){if(r[s(341)]){const t=document[s(329)](s(301));t.textContent=s(246)+(i.customControls[s(259)]?"none":s(333))+" !important;\n }\n video::-webkit-media-controls-timeline {\n display: "+(i[s(289)][s(265)]?s(306):"block")+s(309)+(i[s(289)].hideCurrentTime?s(306):s(333))+s(328)+(i[s(289)][s(236)]?"none":s(333))+" !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: "+(i[s(289)].hideVolumeSlider?s(306):s(333))+s(263)+(i[s(289)][s(258)]?s(306):s(333))+s(312)+(i[s(289)][s(315)]?s(306):s(333))+s(277),document[s(302)][s(323)](t)}}else if(r[s(341)]){const t=document[s(329)]("style");t.id="adstage-video-default-controls",t[s(257)]=s(288),!document[s(307)](s(318))&&document[s(302)].appendChild(t)}this[s(284)]&&console[s(310)]("🎬 Video controls setting:",r.controls?"enabled":s(243));const o=document[s(329)]("button");o[s(278)]=s(273),o.style[s(335)]=s(276),i?.[s(327)]&&(o[s(301)][s(296)]=s(306));const a=()=>{const t=s,e=t(345);o[t(241)]=r[t(317)]?'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ':e,o.title=r[t(317)]?t(319):t(313)};if(a(),o.addEventListener(s(281),t=>{const e=s;t[e(266)](),r[e(317)]=!r[e(317)],a(),this[e(284)]&&console[e(310)](e(238)+(r[e(317)]?e(317):e(272)))}),o[s(282)]("mouseenter",()=>{const t=s;o[t(301)][t(286)]="rgba(0, 0, 0, 0.9)",o[t(301)][t(253)]=t(237)}),o[s(282)](s(295),()=>{const t=s;o.style[t(286)]=t(338),o.style[t(253)]=t(247)}),e.videoUrl){r[s(255)]=e[s(264)];const t=()=>{const t=s;r[t(320)]&&r[t(317)]&&r[t(251)]&&r.play()[t(324)](e=>{const n=t;this[n(284)]&&(console.warn(n(283),e),console[n(330)](n(340))),r[n(317)]=!0,r[n(303)]().catch(t=>{const e=n;this[e(284)]&&console[e(275)](e(262),t)})})};r.addEventListener(s(297),()=>{const e=s;this[e(284)]&&console[e(310)](e(260)),t()}),r[s(282)](s(252),()=>{const e=s;this[e(284)]&&console[e(310)]("🎬 Video can play, attempting autoplay..."),t()}),r[s(282)](s(291),()=>{const e=s;this[e(284)]&&console[e(310)]("🎬 Video data loaded, attempting autoplay..."),t()}),setTimeout(()=>{const e=s;this[e(284)]&&console[e(310)](e(299)),t()},100)}else if(e[s(314)]){const n=document[s(329)](s(244));return n.src=e[s(314)],n[s(301)][s(294)]=s(326),n[s(301)][s(249)]=s(326),n.style.objectFit=s(336),n.alt=e[s(304)]||s(342),void t[s(323)](n)}tt[s(279)](r,e,n,()=>this[s(346)](),this[s(284)],s(285)),r[s(282)](s(275),r=>{const i=s;if(console[i(275)](i(290),r),e[i(314)]){const s=document.createElement(i(244));s[i(255)]=e[i(314)],s[i(301)][i(294)]=i(326),s[i(301)][i(249)]="100%",s.style.objectFit=i(336),s[i(274)]=e.title||i(342),tt[i(279)](s,e,n,()=>this[i(346)](),this.debug,i(332)),t.innerHTML="",t[i(323)](s)}}),t[s(323)](r),t[s(323)](o),this[s(284)]&&console.log(s(343)+e[s(292)]+s(269)+r.autoplay+", muted: "+r.muted+s(331)+r.loop+")")}}function zt(t,e){const n=Mt();return(zt=function(t,e){return n[t-=191]})(t,e)}const Pt=zt;function Mt(){const t=["738414XlcNBb","): ","9076482fDmxPq","debug","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","imageUrl","renderAdElement","length","13202896cVEEly","⚠️ No native advertisements available for slot: ","appendChild","872291DfQBem","504062vYihPT","🏠 Single native ad rendered: ","div","Learn More","className","log","Native click tracked for ad: ","linkUrl","adstage-ad adstage-native-ad","mouseleave","#2563eb","addEventListener","backgroundColor","textContent","cssText","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","click","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","renderMultipleAds","mouseenter","NATIVE","🏠 Native ad rendered (first of ","getDefaultHeight","style","alt","_id","src","_blank","1378706FzMLXU","innerHTML","5220668uPalED","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n ","title","open","createElement","getElementById","200px","#3b82f6","5GXuake","advertisementEventTracker","button"];return(Mt=function(){return t})()}!function(){const t=zt,e=Mt();for(;;)try{if(833936===parseInt(t(199))/1+parseInt(t(225))/2+parseInt(t(213))/3+-parseInt(t(201))/4+-parseInt(t(210))/5*(parseInt(t(215))/6)+parseInt(t(224))/7+parseInt(t(221))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Vt extends ht{constructor(e=!1,n){super(t[zt(191)],e,n)}[Pt(193)](){return Pt(208)}async[Pt(219)](t,e){const n=Pt,s=document[n(207)](t.containerId);if(!s)return;const r=document[n(206)]("div");if(r[n(229)]=n(233),r[n(194)][n(239)]=n(242),e.title){const t=document[n(206)]("h3");t[n(238)]=e.title,t[n(194)][n(239)]=n(240),r[n(223)](t)}if(e[n(238)]){const t=document[n(206)]("p");t[n(238)]=e[n(238)],t[n(194)].cssText=n(202),r.appendChild(t)}if(e.imageUrl){const t=document[n(206)](n(227));t.style.cssText=n(243);const s=document[n(206)]("img");s[n(197)]=e[n(218)],s[n(195)]=e[n(204)]||"Native Advertisement",s.style[n(239)]=n(217),t.appendChild(s),r[n(223)](t)}if(e.linkUrl){const t=document[n(206)](n(212));t.textContent=n(228),t.style[n(239)]=n(203),t[n(236)](n(241),()=>{const t=n;this[t(211)]&&console[t(230)](t(231)+e[t(196)]),window[t(205)](e[t(232)],t(198))}),t[n(236)](n(245),()=>{const e=n;t[e(194)][e(237)]=e(235)}),t[n(236)](n(234),()=>{const e=n;t[e(194)][e(237)]=e(209)}),r.appendChild(t)}s[n(200)]="",s[n(223)](r),this[n(216)]&&console[n(230)](n(226)+e[n(196)])}async[Pt(244)](t,e){const n=Pt;e[n(220)]>0?(await this[n(219)](t,e[0]),this[n(216)]&&console.log(n(192)+e.length+n(214)+t.id)):this[n(216)]&&console.warn(n(222)+t.id)}}const Nt=Ft;!function(){const t=Ft,e=_t();for(;;)try{if(802491===-parseInt(t(404))/1+-parseInt(t(431))/2+-parseInt(t(437))/3*(-parseInt(t(465))/4)+parseInt(t(415))/5+-parseInt(t(428))/6*(-parseInt(t(401))/7)+parseInt(t(466))/8*(parseInt(t(398))/9)+-parseInt(t(463))/10*(parseInt(t(458))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ot extends ht{constructor(e=!1,n){super(t[Ft(411)],e,n)}[Nt(421)](){return"400px"}async[Nt(433)](t,e){const n=Nt;if(!document[n(430)](t[n(438)]))return;const s=document.createElement("div");s[n(448)]="adstage-interstitial-overlay",s[n(402)][n(426)]=n(414);const r=document[n(460)](n(467));r[n(448)]=n(442),r[n(402)][n(426)]=n(418);const i=document[n(460)]("button");if(i[n(443)]="×",i[n(402)][n(426)]=n(471),i[n(399)](n(457),()=>{this[n(407)](s)}),i[n(399)]("mouseenter",()=>{const t=n;i[t(402)][t(434)]=t(416),i[t(402)][t(397)]=t(441)}),i.addEventListener(n(456),()=>{const t=n;i.style[t(434)]=t(420),i[t(402)].color="#6b7280"}),e[n(419)]){const t=document[n(460)](n(451));t[n(406)]=e.imageUrl,t[n(453)]=e.title||"Interstitial Advertisement",t[n(402)][n(426)]=n(410),r[n(424)](t)}if(e[n(400)]){const t=document[n(460)]("h2");t[n(454)]=e[n(400)],t[n(402)][n(426)]="\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ",r[n(424)](t)}if(e[n(454)]){const t=document[n(460)]("p");t[n(454)]=e[n(454)],t.style.cssText=n(452),r[n(424)](t)}if(e[n(435)]){const t=document[n(460)](n(449));t[n(454)]=n(450),t.style[n(426)]=n(447),t[n(399)](n(457),()=>{const t=n;this[t(468)]&&console.log(t(422)+e[t(425)]),window.open(e[t(435)],t(455)),this[t(407)](s)}),t[n(399)](n(429),()=>{const e=n;t.style[e(434)]=e(436)}),t.addEventListener("mouseleave",()=>{const e=n;t.style[e(434)]=e(461)}),r[n(424)](t)}const o=t=>{const e=n;t[e(445)]===e(470)&&(this[e(407)](s),document.removeEventListener(e(403),o))};if(document[n(399)]("keydown",o),s[n(399)](n(457),t=>{const e=n;t[e(469)]===s&&this[e(407)](s)}),!document[n(430)](n(423))){const t=document.createElement(n(402));t.id=n(423),t[n(454)]=n(408),document[n(459)][n(424)](t)}r[n(424)](i),s[n(424)](r),document[n(444)].appendChild(s),this[n(464)]&&console.log(n(412)+e[n(425)])}async[Nt(405)](t,e){const n=Nt;e.length>0?(await this[n(433)](t,e[0]),this[n(464)]&&console[n(432)](n(439)+e[n(462)]+n(440)+t.id)):this[n(464)]&&console.warn(n(413)+t.id)}[Nt(407)](t){const e=Nt;t[e(402)][e(417)]=e(446),setTimeout(()=>{const n=e;t.parentNode&&t[n(427)][n(409)](t)},300),this.debug&&console[e(432)](e(472))}}function Ft(t,e){const n=_t();return(Ft=function(t,e){return n[t-=397]})(t,e)}function _t(){const t=["2421665ZBPIoq","#e5e7eb","animation","\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ","imageUrl","#f3f4f6","getDefaultHeight","Interstitial click tracked for ad: ","adstage-interstitial-styles","appendChild","_id","cssText","parentNode","12ZkmqRE","mouseenter","getElementById","1345242tXPnic","log","renderAdElement","backgroundColor","linkUrl","#2563eb","3438903cxrFVb","containerId","🖼️ Interstitial ad rendered (first of ","): ","#374151","adstage-interstitial-content","innerHTML","body","key","fadeOut 0.3s ease-out forwards","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","className","button","Get Started","img","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","alt","textContent","_blank","mouseleave","click","3487wJJFrV","head","createElement","#3b82f6","length","54330WGfOLo","debug","4JqTqCk","40BPKuva","div","advertisementEventTracker","target","Escape","\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ","🖼️ Interstitial ad closed","color","648909viDgqU","addEventListener","title","5593315gcgQgR","style","keydown","391856NhdpkJ","renderMultipleAds","src","closeInterstitial","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","removeChild","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","INTERSTITIAL","🖼️ Interstitial ad rendered: ","⚠️ No interstitial advertisements available for slot: ","\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n "];return(_t=function(){return t})()}const Ht=Kt;function jt(){const t=[" renderers","initializeRenderers","toLowerCase","objectFit","renderOptimizedBannerImage is only supported for BANNER ads","VIDEO","img","size","Failed to load image: ","1px dashed #ccc","debug","video","renderMultipleAds","adstage-ad adstage-","renderFallback"," Ad","log","onerror","renderAdElement","renderAd","appendChild","cover","loadImageDimensions","100%","calculateOptimalContainerSize","13954890qjmeiB","videoUrl","renderers","width","_id","5773688WLUoXe","No renderer found for ad type: ","⚠️ Container optimization is only supported for BANNER ads, got: ","advertisementEventTracker","set","advertisement","12WQQmIZ","2275371ZThysq","imageUrl","adType","🏭 AdRenderer factory initialized with ","INTERSTITIAL","getRenderer","NATIVE","BANNER","warn","isLoaded","textContent","createElement","#f9f9f9","border","config","data-adstage-ad-id","style","18OVjVxI","div","createAdElement","height","src","display","block","setAttribute","padding","5TujHde","calculateAdSize","createPlaceholder","64846cBCbpK","renderAdSlider","No advertisement to render","22NCxJDy","757956rhScmB","3370110luoTLw","optimizeContainerForBannerAds","getDefaultHeight","6890898dhDyBi","TEXT","data-adstage-slot-id"];return(jt=function(){return t})()}function Kt(t,e){const n=jt();return(Kt=function(t,e){return n[t-=205]})(t,e)}!function(){const t=Kt,e=jt();for(;;)try{if(601645===parseInt(t(259))/1*(parseInt(t(271))/2)+parseInt(t(275))/3*(-parseInt(t(241))/4)+parseInt(t(268))/5*(-parseInt(t(276))/6)+-parseInt(t(279))/7+-parseInt(t(235))/8+parseInt(t(242))/9+parseInt(t(230))/10*(parseInt(t(274))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Wt{constructor(t=!1,e){const n=Kt;this.renderers=new Map,this[n(215)]=t,this[n(238)]=e||null,this[n(206)]()}initializeRenderers(){const e=Kt;this[e(232)][e(239)](t.BANNER,new It(this[e(215)],this[e(238)])),this[e(232)][e(239)](t[e(280)],new Dt(this[e(215)],this[e(238)])),this.renderers[e(239)](t[e(210)],new Lt(this.debug,this[e(238)])),this[e(232)].set(t[e(248)],new Vt(this.debug,this[e(238)])),this[e(232)][e(239)](t[e(246)],new Ot(this.debug,this[e(238)])),this[e(215)]&&console[e(221)](e(245)+this.renderers[e(212)]+e(205))}[Ht(261)](e,n){const s=Ht,r=this.getRenderer(e[s(244)]),i=document[s(253)](s(260));i.className=s(218)+String(e[s(244)])[s(207)](),i.setAttribute(s(257),n[s(234)]),i[s(266)](s(281),e.id);const{width:o,height:a}=r[s(269)](i,e[s(256)]||{},n);switch(i[s(258)].width=o,i[s(258)].height=a,i.style[s(264)]=s(265),e[s(244)]){case t.BANNER:if(n[s(243)]){const t=document[s(253)](s(211));t[s(263)]=n[s(243)],t[s(258)][s(233)]=s(228),t[s(258)][s(262)]="100%",t[s(258)][s(208)]=s(226),i.appendChild(t)}break;case t[s(210)]:if(n[s(231)]){const t=document[s(253)](s(216));t[s(263)]=n[s(231)],t.style.width="100%",t[s(258)][s(262)]="100%",i[s(225)](t)}break;case t[s(280)]:if(n[s(252)]){const t=document[s(253)](s(260));t[s(252)]=n[s(252)]||"",t.style[s(267)]="8px",i[s(225)](t)}break;default:i[s(258)][s(255)]=s(214),i[s(258)].backgroundColor=s(254),i.textContent=e.adType+s(220)}return i}[Ht(247)](t){const e=Ht,n=this[e(232)].get(t);if(!n)throw new Error(e(236)+t);return n}[Ht(270)](t,e,n,s,r){this[Ht(247)](n).createPlaceholder(t,e,s,r)}async[Ht(277)](e,n){const s=Ht;if(e.adType!==t[s(249)])return void(this[s(215)]&&console[s(250)](s(237)+e.adType));const r=this.getRenderer(t[s(249)]);await r[s(277)](e,n)}async[Ht(272)](t,e){const n=Ht,s=this[n(247)](t[n(244)]);await s[n(217)](t,e)}async[Ht(224)](t){const e=Ht;if(!t.advertisement)throw new Error(e(273));const n=this.getRenderer(t[e(244)]);await n[e(223)](t,t[e(240)]),t[e(251)]=!0}async[Ht(223)](t,e){const n=Ht,s=this[n(247)](t[n(244)]);await s.renderAdElement(t,e)}[Ht(219)](t){const e=Ht;this[e(247)](t[e(244)])[e(219)](t)}getDefaultHeightForAdType(t){return this[Ht(247)](t).getDefaultHeight()}[Ht(269)](t,e,n,s){const r=Ht;return this[r(247)](e)[r(269)](t,n,s)}[Ht(227)](t){return new Promise((e,n)=>{const s=Kt,r=new Image;r.onload=()=>{e({width:r.naturalWidth,height:r.naturalHeight})},r[s(222)]=()=>{n(new Error(s(213)+t))},r[s(263)]=t})}async renderOptimizedBannerImage(e,n,s){const r=Ht;if(s[r(244)]!==t[r(249)])throw new Error(r(209));const i=this[r(247)](t[r(249)]);return await i.renderOptimizedBannerImage(e,n,s)}async[Ht(229)](e,n,s){const r=Ht;if(s!==t[r(249)]){const t=this[r(247)](s);return{width:r(228),height:t[r(278)](),aspectRatio:16/9}}const i=this.getRenderer(t.BANNER);return await i.calculateOptimalContainerSize(e,n)}[Ht(221)](t,...e){const n=Ht;this[n(215)]&&console[n(221)]("[AdRenderer] "+t,...e)}}const qt=Gt;function Gt(t,e){const n=Jt();return(Gt=function(t,e){return n[t-=281]})(t,e)}function Jt(){const t=["refresh","광고 생성 중 오류 발생:","2ZUuExM"," (element found)","advertisement","then","json","height","clear","length","playsinline","_config","nodeType","📊 Fetched ","init","🗑️ Ads module destroyed","slideInterval","viewabilityTracker","🚫 Advertisement not found with ID: ","getElementById","🗑️ Ad slot destroyed: ","create","Container not found after ","❌ Failed to track viewable impression:","🔄 Retrying viewability tracking for slot: ","Failed to refresh ad slot: ","detail","isLoaded","forEach","📊 Fetched specific ad with ID: ","data-adstage-slot-id","createAdInternal","3130ZQsIbs"," attempts: "," ads for type: "," ads automatically","error","deviceType","getAllSlots","getConfig","3461032mLmcDO","setupAutoCleanup","Ads module not initialized. Call AdStage.init() first.","append","refreshAdSlot","72YWcfgU","adRenderer","_isReady","100%","getAttribute","delete"," ads)","📊 Advertisement event tracking enabled for slot: ","mutationObserver","handleRemovedElement","controls","64116EoRqdy","log","autoplay",", filters:","🔄 Ad slot refreshed: ","createAd","undefined","language","4230855BKwEYF","fetchAdData","country","interstitial","toString","🧹 Auto-cleanup: slot ","Container not found: ","auto-","isReady","onClick","warn","list","native","getBaseUrl","renderFallback","237078krlFVG","adType","style","slots","querySelectorAll","apiKey","renderAd","autoDestroy","✅ Simple viewable impression tracked for ad ","7wmBRNb","createAdWithRetry","adstage-","customControls","config","Ad slot not found: ","BANNER","values","maxLines","hideControls","5304600qjuNEt","GET","TEXT","destroyModule","❌ Failed to load ad for slot: ","get","autoSlide","adId","removedNodes","New advertisement viewable tracked for slot:","video","ensureReady","🎯 Ads module initialized (sync mode) with auto-cleanup","debug","substr","loop","loadAdContentInBackground","width","disconnect","Failed to fetch ad data: ","629751nkOblu","from","muted","advertisements","body","ELEMENT_NODE","[data-adstage-slot-id]","startSimpleViewabilityTracking","string","handleViewableEvent","text","status","now","API key not configured","_id","default","advertisementEventTracker","INTERSTITIAL","VIEWABLE","14267gEYUVo","destroy"];return(Jt=function(){return t})()}!function(){const t=Gt,e=Jt();for(;;)try{if(435645===-parseInt(t(314))/1*(-parseInt(t(337))/2)+parseInt(t(380))/3*(-parseInt(t(391))/4)+parseInt(t(399))/5+-parseInt(t(414))/6*(parseInt(t(284))/7)+-parseInt(t(375))/8+-parseInt(t(294))/9+parseInt(t(367))/10*(parseInt(t(333))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Xt{constructor(){const t=Gt;this[t(382)]=!1,this[t(346)]=null,this.slots=new Map,this[t(330)]=null,this[t(381)]=null,this[t(388)]=null}[qt(349)](t){const e=qt;this[e(346)]=t,this[e(330)]=new M(G[e(412)](),t[e(419)],t[e(307)]||!1,this[e(417)]),this[e(381)]=new Wt(t[e(307)]||!1,this[e(330)]),this[e(376)](),this[e(382)]=!0,t[e(307)]&&console[e(392)](e(306))}[qt(407)](){return this[qt(382)]}[qt(374)](){return this[qt(346)]}banner(e,n){const s=qt;this[s(305)]();const r={width:n?.[s(311)]||s(383),height:n?.[s(342)]||"auto",autoSlide:n?.autoSlide||!1,slideInterval:n?.[s(351)]||5e3,onClick:n?.[s(408)],adId:n?.[s(301)],language:n?.[s(398)],deviceType:n?.[s(372)],country:n?.[s(401)]};return this[s(396)](e,t[s(290)],r)}[qt(324)](e,n){const s=qt;this[s(305)]();const r={maxLines:n?.[s(292)]||3,style:n?.[s(416)]||s(329),onClick:n?.[s(408)],adId:n?.[s(301)],language:n?.[s(398)],deviceType:n?.[s(372)],country:n?.[s(401)]};return this[s(396)](e,t[s(296)],r)}[qt(304)](e,n){const s=qt;this[s(305)]();const r={width:n?.[s(311)]||640,height:n?.[s(342)]||360,autoplay:void 0===n?.[s(393)]||n[s(393)],muted:void 0===n?.[s(316)]||n[s(316)],loop:void 0===n?.[s(309)]||n[s(309)],playsinline:!1!==n?.[s(345)],controls:void 0!==n?.[s(390)]&&n[s(390)],hideControls:n?.[s(293)]||!1,customControls:n?.[s(287)],autoSlide:!1,maxAds:1,onClick:n?.[s(408)],...n?.adId&&{adId:n[s(301)]}};return this.createAd(e,t.VIDEO,r)}[qt(411)](e,n){const s=qt;return this[s(305)](),this[s(396)](e,t.NATIVE,n||{})}[qt(402)](e,n){const s=qt;return this[s(305)](),this[s(396)](e,t[s(331)],n||{})}[qt(335)](t){const e=qt;this[e(305)]();const n=this[e(417)].get(t);if(!n)throw new Error(e(289)+t);this.refreshAdSlot(n),this._config?.[e(307)]&&console[e(392)](e(395)+t)}[qt(334)](t){const e=qt;this[e(305)]();const n=this[e(417)][e(299)](t);if(!n)throw new Error(e(289)+t);n.viewabilityTracker&&n[e(352)][e(334)]();const s=document[e(354)](n.containerId);s&&(s.innerHTML=""),this[e(417)][e(385)](t),this[e(346)]?.[e(307)]&&console[e(392)](e(355)+t)}[qt(373)](){const t=qt;return this[t(305)](),Array[t(315)](this[t(417)][t(291)]())}getSlotById(t){const e=qt;return this.ensureReady(),this[e(417)][e(299)](t)||null}[qt(396)](t,e,n){const s=qt;if(!this[s(346)]?.[s(419)])throw new Error("API key not configured");const r=s(286)+e+"-"+Date[s(326)]()+"-"+Math.random()[s(403)](36)[s(308)](2,9);return this[s(285)](t,e,n,r,0),r}async[qt(285)](t,e,n,s,r){const i=qt,o=[0,50,100,200,500];let a,c=null;if(typeof t===i(322)){if(a=t,c=document[i(354)](t),!c)return r<4?(this[i(346)]?.[i(307)]&&console[i(409)](i(405)+t+". Retrying in "+o[r+1]+"ms... (attempt "+(r+1)+"/5)"),void setTimeout(()=>{this[i(285)](t,e,n,s,r+1)},o[r+1])):void console.error(i(357)+5+i(368)+t)}else c=t,a=c.id||i(406)+s,!c.id&&(c.id=a);try{this[i(366)](a,e,n,s,c)}catch(t){console[i(371)](i(336),t)}}[qt(366)](e,n,s,r,i){const o=qt;i.setAttribute(o(365),r),this[o(381)]?.createPlaceholder(i,r,n,s,this[o(346)]);const a={id:r,containerId:e,adType:n,width:s[o(311)]||o(383),height:s[o(342)]||(n===t[o(296)]?"auto":250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...s},load:async()=>this[o(400)](n,s)[o(340)](t=>t[0]||null),render:t=>this.adRenderer?.renderAdElement(a,t),refresh:async()=>this[o(379)](a),destroy:()=>this[o(334)](r)};this[o(417)].set(r,a),this[o(310)](a),this.advertisementEventTracker&&this[o(346)]?.[o(307)]&&console.log(o(387)+r)}async[qt(310)](e){const n=qt;try{const s=await this[n(400)](e.adType,e[n(288)]);if(!s||0===s[n(344)])return void this[n(381)]?.[n(413)](e);e[n(415)]===t[n(290)]&&s.length>0&&await(this[n(381)]?.optimizeContainerForBannerAds(e,s)),s[n(344)]>1||e[n(288)]?.[n(300)]?(await(this.adRenderer?.renderAdSlider(e,s)),this[n(346)]?.debug&&console[n(392)]("🎠 Slider will handle VIEWABLE events for "+s[n(344)]+n(370))):(e[n(339)]=s[0],await(this[n(381)]?.renderAdElement(e,s[0])),this[n(321)](e,s[0])),e[n(362)]=!0,this._config?.[n(307)]&&console[n(392)]("✅ Ad loaded for slot: "+e.id+" ("+s.length+n(386))}catch(t){console[n(371)](n(298)+e.id,t),this.adRenderer?.[n(413)](e)}}startSimpleViewabilityTracking(t,e){const n=(s=0)=>{const r=Gt,i=document.getElementById(t.id);if(!i)return void(s<5?(setTimeout(()=>n(s+1),300),this[r(346)]?.debug&&console.log(r(359)+t.id+" (attempt "+(s+1)+")")):console.warn("❌ Failed to find element for viewability tracking: "+t.id));const o=new N(i,async()=>{const n=r;await this[n(323)](e,t)});t[r(352)]=o,this[r(346)]?.[r(307)]&&console[r(392)]("🎯 Simple viewability tracking started for slot: "+t.id+r(338))};n()}async[qt(323)](t,e){const n=qt;try{this[n(330)]&&(await this.advertisementEventTracker.trackAdvertisementEvent(t[n(328)],e.id,o[n(332)]),this[n(346)]?.[n(307)]&&console[n(392)](n(283)+t[n(328)]))}catch(t){console[n(371)](n(358),t)}}async[qt(400)](t,e){const n=qt;if(!this._config?.apiKey)throw new Error(n(327));if(e[n(301)]){const t=""+G[n(317)][n(361)](e[n(301)]),s=await fetch(t,{method:n(295),headers:U[n(356)](this[n(346)][n(419)])});if(!s.ok){if(404===s[n(325)])return console[n(409)](n(353)+e[n(301)]),[];throw new Error(n(313)+s[n(325)])}const r=await s[n(341)]();return this[n(346)]?.debug&&console[n(392)](n(364)+e[n(301)],r),[r]}const s=new URLSearchParams;s.append("adType",t),e[n(398)]&&s[n(378)](n(398),e[n(398)]),e[n(372)]&&s[n(378)](n(372),e[n(372)]),e[n(401)]&&s.append("country",e[n(401)]);const r=G.advertisements[n(410)]()+"?"+s[n(403)](),i=await fetch(r,{method:"GET",headers:U[n(356)](this[n(346)][n(419)])});if(!i.ok)throw new Error(n(313)+i.status);const o=(await i[n(341)]()).advertisements||[];return this._config?.[n(307)]&&console[n(392)](n(348)+o[n(344)]+n(369)+t+n(394),{language:e.language,deviceType:e[n(372)],country:e.country}),o}async[qt(379)](t){const e=qt;try{const n=await this[e(400)](t[e(415)],t[e(288)]||{});n&&n[e(344)]>0&&(t.advertisement=n[0],await(this.adRenderer?.[e(281)](t)),this[e(330)]&&console[e(392)](e(303),t.id))}catch(n){console.error(e(360)+t.id,n)}}[qt(305)](){const t=qt;if(!this[t(382)])throw new Error(t(377))}[qt(376)](){const t=qt;typeof window!==t(397)&&"undefined"!=typeof document&&(this[t(388)]&&this[t(388)][t(312)](),this[t(388)]=new MutationObserver(t=>{t.forEach(t=>{const e=Gt;t[e(302)].forEach(t=>{const n=e;t[n(347)]===Node[n(319)]&&this.handleRemovedElement(t)})})}),this[t(388)].observe(document[t(318)],{childList:!0,subtree:!0}),this[t(346)]?.debug&&console[t(392)]("🔍 Auto-cleanup MutationObserver enabled"))}[qt(389)](t){const e=qt,n=t.getAttribute(e(365));if(n)return void this.autoDestroy(n);t[e(418)](e(320))[e(363)](t=>{const n=e,s=t[n(384)](n(365));s&&this[n(282)](s)})}[qt(282)](t){const e=qt;if(this[e(417)][e(299)](t))try{this.slots[e(385)](t),this[e(346)]?.[e(307)]&&console[e(392)](e(404)+t+" removed")}catch(n){this[e(346)]?.[e(307)]&&console.warn("Auto-cleanup failed for slot "+t+":",n)}}[qt(297)](){const t=qt,e=this[t(346)]?.[t(307)];this[t(388)]&&(this[t(388)][t(312)](),this[t(388)]=null),this.slots[t(343)](),this[t(330)]=null,this[t(381)]=null,this[t(382)]=!1,this._config=null,e&&console[t(392)](t(350))}}var Qt=Yt;function Yt(t,e){var n=Zt();return(Yt=function(t,e){return n[t-=301]})(t,e)}function Zt(){var t=["4064vdkMoT","updateConfig","isDebugMode","events","init","modules","925401JsyrcM","log","create","isReady","config","baseUrl","getOrganizationInfo","3740616dVeDJv","_isReady","getApiHeaders","460UBqtAn","🔄 Config updated","12026736nITEWr","1JFWuTs","20EgkKBH","debug","1965838ODAMae","_organizationInfo","getBaseUrl","7256eYVpIH","Config module not initialized","getEnabledModules","development","397540zdEyzD","API key not available","✅ Config module initialized (sync mode)","includes","ads","apiKey","18CoVIDH","234kTDdtA","_config","setBaseUrl"];return(Zt=function(){return t})()}!function(){for(var t=Yt,e=Zt();;)try{if(486281===parseInt(t(306))/1*(-parseInt(t(316))/2)+-parseInt(t(332))/3+-parseInt(t(312))/4*(-parseInt(t(303))/5)+parseInt(t(322))/6*(-parseInt(t(309))/7)+parseInt(t(326))/8*(-parseInt(t(323))/9)+parseInt(t(307))/10*(parseInt(t(339))/11)+parseInt(t(305))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class $t{constructor(){var t=Yt;this._isReady=!1,this[t(324)]=null,this._organizationInfo=null}[Qt(330)](t){var e=Qt;this[e(324)]={timeout:3e4,debug:!1,modules:[e(320),e(329),e(336)],...t},t.baseUrl&&G[e(325)](t[e(337)]),this[e(301)]=!0,t.debug&&console.log(e(318),{modules:this[e(324)][e(331)],endpoint:G[e(311)](),mode:e(315)})}[Qt(335)](){return this[Qt(301)]}getConfig(){return this[Qt(324)]}[Qt(338)](){return this[Qt(310)]}getApiEndpoint(){return G.getBaseUrl()}[Qt(328)](){var t=Qt;return this[t(324)]?.[t(308)]||!1}[Qt(314)](){return this._config?.modules||[]}isModuleEnabled(t){var e=Qt;return this[e(314)]()[e(319)](t)}[Qt(327)](t){var e=Qt;if(!this[e(324)])throw new Error(e(313));this._config={...this._config,...t},this[e(328)]()&&console[e(333)](e(304),t)}[Qt(302)](){var t=Qt;if(!this._config?.[t(321)])throw new Error(t(317));return U[t(334)](this[t(324)][t(321)])}}const te=ee;function ee(t,e){const n=ne();return(ee=function(t,e){return n[t-=315]})(t,e)}function ne(){const t=["getAutoDetectedDeviceInfo","Mobile Web","language","getViewportInfo","6595695ZAnYkc","other","mapPlatformForEvents","Desktop Web","18IwoDRT","ko-KR","getPlatform","3689103yyaOaZ","getDeviceInfo","0x0","isBrowser","getUserDeviceInfo","web","clearDeviceInfo","SSR","_userProvidedDeviceInfo","Unknown","getDetailedInfo","tablet","mobile","3917456JpzyGj","desktop","Android","isMobile","setDeviceInfo","324898oVnIgC","89807DYfCkL","platform","width","12376269HURblA","height","onLine","14XYeqNH","setDeviceProperty","toLowerCase","2927128ggtBeo","userAgent"];return(ne=function(){return t})()}!function(){const t=ee,e=ne();for(;;)try{if(732522===parseInt(t(317))/1*(parseInt(t(323))/2)+-parseInt(t(339))/3+-parseInt(t(326))/4+parseInt(t(332))/5+-parseInt(t(336))/6*(parseInt(t(316))/7)+-parseInt(t(352))/8+parseInt(t(320))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class se{static[te(340)](){const t=te;return{...se.getAutoDetectedDeviceInfo(),...se[t(347)]}}static[te(328)](){const t=te;if(!v[t(342)]())return{category:t(333),platform:t(346),model:t(346),osVersion:t(346)};const e=navigator[t(327)][t(325)]();let n=t(353);/tablet|ipad/.test(e)?n=t(350):T[t(355)]()&&(n=t(351));const s=T[t(338)]();return{category:n,platform:se.mapPlatformForEvents(s),model:navigator[t(318)],osVersion:navigator.platform}}static[te(315)](t){const e=te;se[e(347)]={...se[e(347)],...t}}static[te(324)](t,e){se[te(347)][t]=e}static[te(345)](){se._userProvidedDeviceInfo={}}static[te(343)](){return{...se._userProvidedDeviceInfo}}static[te(334)](t){const e=te;switch(t){case"ios":return"iOS";case"android":return e(354);case e(344):return e(329);case e(353):return e(335);default:return e(348)}}static[te(349)](){const t=te;if(!v.isBrowser())return{userAgent:t(346),language:t(337),platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(341),viewportSize:t(341)};const e=v[t(331)]();return{userAgent:navigator[t(327)],language:navigator[t(330)]||t(337),platform:navigator[t(318)],cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(322)],screenResolution:screen.width+"x"+screen[t(321)],viewportSize:e[t(319)]+"x"+e.height}}}se[te(347)]={};const re=oe;function ie(){const t=["language","estimateLocation","1359220CpGvZL","ko-KR","8aoLiwE","_userProperties","949095Sefvqa","setUserProperty","2370452eKcwKL","timeZone","6qnsMOA","10404280zAzEYI","getBaseUserInfo","187579HLDnjW","1020uCQydC","1832836PeGstp","isBrowser","extractCountryFromLanguage","278dpfQzU","DateTimeFormat","setUserProperties"];return(ie=function(){return t})()}function oe(t,e){const n=ie();return(oe=function(t,e){return n[t-=497]})(t,e)}!function(){const t=oe,e=ie();for(;;)try{if(269653===-parseInt(t(501))/1+parseInt(t(506))/2*(parseInt(t(502))/3)+-parseInt(t(503))/4+-parseInt(t(511))/5*(-parseInt(t(498))/6)+-parseInt(t(517))/7+-parseInt(t(513))/8*(parseInt(t(515))/9)+parseInt(t(499))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ae{static getUserInfo(){const t=oe;return{...ae[t(500)](),...ae[t(514)]}}static getBaseUserInfo(){const t=oe;if(!v[t(504)]())return{language:t(512),country:"KR"};const e=navigator[t(509)]||t(512);return{language:e,country:ae.extractCountryFromLanguage(e)}}static[re(505)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t.split("-")[0]]||"KR"}static[re(508)](t){const e=re;ae[e(514)]={...ae[e(514)],...t}}static[re(516)](t,e){ae[re(514)][t]=e}static clearUserProperties(){ae._userProperties={}}static getCurrentUserProperties(){return{...ae[re(514)]}}static[re(510)](){const t=re;if(!v[t(504)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(507)]().resolvedOptions()[t(497)];return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}ae[re(514)]={};const ce=de;function de(t,e){const n=le();return(de=function(t,e){return n[t-=352]})(t,e)}function le(){const t=["getSessionId","4xQkxhU","_userId","adstage_user_id","adstage_session_id","99JGwhHn","random","substr","getSessionDuration","refreshSession","now","isNewSession","160490LrXYUQ","toString","2686384pHhrUh","getUserId","1477275Fingrl","5410mseAZr","6JSDnDS","1865339rYSXGL","297GEqxWv","568857JOQGjl","setItem","setUserId","217380pYXdXz","_sessionStartTime","getItem","56PjghOd","adstage_session_start","isBrowser","removeItem","getSessionInfo","session_","clearUserId"];return(le=function(){return t})()}!function(){const t=de,e=le();for(;;)try{if(197601===parseInt(t(382))/1*(-parseInt(t(372))/2)+-parseInt(t(376))/3*(parseInt(t(356))/4)+parseInt(t(371))/5+-parseInt(t(373))/6*(-parseInt(t(374))/7)+-parseInt(t(369))/8+parseInt(t(360))/9*(-parseInt(t(367))/10)+parseInt(t(375))/11*(parseInt(t(379))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ue{static[ce(355)](){const t=ce;if(!v[t(384)]())return"ssr_session_"+Date[t(365)]();const e=sessionStorage[t(381)](t(359));if(e)return e;const n=t(353)+Math[t(361)]()[t(368)](36)[t(362)](2,9)+"_"+Date[t(365)]();return sessionStorage[t(377)](t(359),n),!ue[t(380)]&&(ue[t(380)]=Date.now(),v[t(384)]()&&sessionStorage[t(377)]("adstage_session_start",String(ue[t(380)]))),n}static[ce(378)](t){const e=ce;ue[e(357)]=t,v[e(384)]()&&localStorage.setItem(e(358),t)}static getUserId(){const t=ce;if(ue[t(357)])return ue._userId;if(v.isBrowser()){const e=localStorage[t(381)](t(358));if(e)return ue[t(357)]=e,e}}static[ce(354)](){const t=ce;ue[t(357)]=void 0,v[t(384)]()&&localStorage[t(385)](t(358))}static[ce(352)](){const t=ce,e=ue[t(355)](),n=ue[t(370)](),s=ue[t(366)]();return{sessionId:e,userId:n,sessionDuration:ue.getSessionDuration(),isNewSession:s}}static[ce(366)](){const t=ce;if(!v[t(384)]())return!0;const e=sessionStorage[t(381)]("adstage_session_id"),n=sessionStorage.getItem(t(383));return!e||!n}static[ce(363)](){const t=ce;if(!v[t(384)]())return 0;const e=sessionStorage[t(381)](t(383));return e?Date[t(365)]()-parseInt(e,10):0}static[ce(364)](){const t=ce;return v.isBrowser()&&(sessionStorage[t(385)](t(359)),sessionStorage[t(385)](t(383))),ue._sessionStartTime=void 0,ue[t(355)]()}static isSessionExpired(t=24){return ue[ce(363)]()>60*t*60*1e3}static getSessionStats(){const t=ce,e=ue[t(355)](),n=ue[t(370)](),s=ue[t(363)](),r=ue.isSessionExpired(),i=ue[t(366)]();let o;if(v[t(384)]()){const e=sessionStorage.getItem(t(383));o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:r,isNewSession:i}}}function pe(){const t=["setUserId","application/json","👤 User properties set:","❌ Failed to track event:","4dTuGVU","clearDeviceInfo","_isReady","Event data:","init","setDeviceInfo","Events module not initialized. Call AdStage.init() first.","getDeviceInfo","2484qAgqSL","312BTAetw","📊 Events module initialized","getCurrentUserProperties","154055HdlCIn","getUserInfo","events","setUserProperties","getUserDeviceInfo","10ruoSEW","👤 User ID set:","getConfig","1739580bxXHhF","setDeviceProperty","Event tracking failed: ","_config","📱 Device info set:","getUserId","15329GJmjGy","129213ShwHuD","API key not configured for event tracking.","statusText","log","1759992ZRZNKM","📱 User provided device info cleared","📱 Device property set:","getSessionId","162tLQOuD","apiKey","error","117495eidqeQ","isReady","sendEventToServer","track","stringify","1204893plmsYs","debug","warn","✅ Event tracked:","status"];return(pe=function(){return t})()}const he=fe;function fe(t,e){const n=pe();return(fe=function(t,e){return n[t-=272]})(t,e)}!function(){const t=fe,e=pe();for(;;)try{if(360268===-parseInt(t(308))/1*(parseInt(t(282))/2)+-parseInt(t(302))/3+-parseInt(t(313))/4+parseInt(t(320))/5*(-parseInt(t(317))/6)+-parseInt(t(309))/7*(parseInt(t(291))/8)+-parseInt(t(273))/9*(parseInt(t(299))/10)+parseInt(t(294))/11*(parseInt(t(290))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ge{constructor(){const t=fe;this[t(284)]=!1,this[t(305)]=null}[he(286)](t){const e=he;this._config=t,this._isReady=!0,t[e(274)]&&console[e(312)](e(292))}[he(321)](){return this._isReady}[he(301)](){return this[he(305)]}[he(278)](t){const e=he;ue[e(278)](t),this._config?.[e(274)]&&console[e(312)](e(300),t)}getUserId(){return ue[he(307)]()}[he(297)](t){const e=he;ae.setUserProperties(t),this[e(305)]?.[e(274)]&&console[e(312)](e(280),t)}getUserProperties(){return ae.getCurrentUserProperties()}[he(287)](t){const e=he;se[e(287)](t),this[e(305)]?.[e(274)]&&console.log(e(306),t)}[he(303)](t,e){const n=he;se.setDeviceProperty(t,e),this[n(305)]?.[n(274)]&&console[n(312)](n(315),t,e)}[he(283)](){const t=he;se.clearDeviceInfo(),this[t(305)]?.debug&&console[t(312)](t(314))}[he(298)](){return se[he(298)]()}[he(289)](){return se[he(289)]()}getUserInfo(){return ae.getUserInfo()}[he(293)](){return ae[he(293)]()}async[he(323)](t,e){const n=he;if(this[n(284)])if(this._config?.apiKey)try{const s={eventName:t,userId:ue[n(307)](),sessionId:ue[n(316)](),sdkVersion:x(),device:se.getDeviceInfo(),user:ae[n(295)](),params:e||{}};await this[n(322)](s),this[n(305)][n(274)]&&console.log(n(276),t,e)}catch(s){console.error(n(281),s),this[n(305)][n(274)]&&console[n(319)](n(285),{eventName:t,properties:e})}else console[n(275)](n(310));else console[n(275)](n(288))}async[he(322)](t){const e=he,n=await fetch(G[e(296)].track(),{method:"POST",headers:{...U.create(this[e(305)][e(318)]),"Content-Type":e(279)},body:JSON[e(272)](t)});if(!n.ok)throw new Error(e(304)+n[e(277)]+" "+n[e(311)])}}const me=Ie;function Ie(t,e){const n=ye();return(Ie=function(t,e){return n[t-=185]})(t,e)}!function(){const t=Ie,e=ye();for(;;)try{if(805113===parseInt(t(194))/1*(-parseInt(t(193))/2)+-parseInt(t(204))/3*(parseInt(t(219))/4)+parseInt(t(216))/5+-parseInt(t(200))/6*(parseInt(t(196))/7)+parseInt(t(212))/8+-parseInt(t(192))/9*(-parseInt(t(197))/10)+parseInt(t(208))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{constructor(){const t=Ie;this[t(187)]=!1,this[t(198)]=null,this[t(201)]=new $t,this[t(206)]=new Xt,this[t(213)]=new ge}static[me(221)](t){const e=me;!ve[e(217)]&&(ve[e(217)]=new ve);const n=ve[e(217)];if(!t[e(199)])throw new Error("API key is required for AdStage initialization");n._config={timeout:3e4,debug:!1,modules:[e(206),e(213),e(201)],...t},n[e(198)][e(222)]&&(G.setBaseUrl(n[e(198)][e(222)]),t[e(203)]&&console[e(218)](e(189),n[e(198)][e(222)]));const s=n[e(198)][e(220)]||[e(206),e(213),e(201)];for(const t of s){const s=n[t];s&&typeof s[e(221)]===e(195)&&s.init(n._config)}n._isInitialized=!0,t[e(203)]&&console[e(218)](e(207),{version:e(188),modules:s,apiKey:t[e(199)].substring(0,8)+e(186),mode:e(202)})}static[me(211)](){const t=me;return ve.instance?.[t(187)]||!1}static[me(191)](){return ve.instance?._config||null}static getInstance(){if(!ve[me(217)])throw new Error("AdStage not initialized. Call AdStage.init() first.");return ve.instance}static get[me(206)](){return ve[me(205)]().ads}static get[me(213)](){const t=me;return ve[t(205)]()[t(213)]}static get[me(201)](){const t=me;return ve[t(205)]()[t(201)]}static[me(215)](){const t=me;ve.instance&&(ve[t(217)][t(187)]=!1,ve[t(217)]._config=null)}}function ye(){const t=["clear","...","_isInitialized","2.0.0","🌐 API endpoint configured:","from","getConfig","4690323ipPrIh","1788682aIcNIP","1jXBYSK","function","7BfKMJw","20jaeisx","_config","apiKey","6995040kvrepM","config","development","debug","138EepwcS","getInstance","ads","🚀 AdStage SDK initialized (sync mode)","18859082okQjPM","✅ AdStage Debug: 광고 ","viewableTracker","isReady","12634024GYJCmT","events","📊 AdStage Debug: 현재 viewable 추적 상태","reset","29655XabYyx","instance","log","128404Bvoird","modules","init","baseUrl","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨"];return(ye=function(){return t})()}function be(t,e){var n=we();return(be=function(t,e){return n[t-=176]})(t,e)}function we(){var t=["182946cFNvuW","warn","AdStage not initialized. Call AdStage.init() first.","events","10JkcZFl","10qwUuDr","4RJpxzj","3329088uhSBtP","855057BsrJaB","track","209484NVkhGF","isReady","setUserProperties","setUserId","1593753hEGycj","resolve","16478DevUow","44dZNifD","961642vllQnc","getUserId"];return(we=function(){return t})()}ve[me(203)]={clearAllViewable:()=>{const t=me;dt[t(185)](),console[t(218)](t(223))},clearAdViewable:(t,e)=>{const n=me;dt.clearAdViewable(t,e),console.log(n(209)+t+"("+e+")의 viewable 추적 초기화됨")},getViewableStatus:()=>{const t=me;console[t(218)](t(214),{trackedCount:dt.viewableTracker.size,trackedItems:Array[t(190)](dt[t(210)])})}},function(){for(var t=be,e=we();;)try{if(269118===parseInt(t(177))/1*(parseInt(t(176))/2)+parseInt(t(188))/3*(-parseInt(t(186))/4)+-parseInt(t(185))/5*(parseInt(t(180))/6)+-parseInt(t(194))/7+parseInt(t(187))/8+-parseInt(t(190))/9+parseInt(t(184))/10*(parseInt(t(178))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ee=h.createContext(null);function ke(){const t=h.useContext(Ee);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function xe(t,e){var n=Se();return(xe=function(t,e){return n[t-=366]})(t,e)}function Se(){var t=["22HYXbLH","848794FHHQCb","30dLREHU","36TGKtof","291255VEcVoj","6954451JIZWvf","50395lVhkWP","4276288nmQxjE","4504210fltnHY","6320504EMGMdV"];return(Se=function(){return t})()}!function(){for(var t=xe,e=Se();;)try{if(882198===parseInt(t(373))/1+-parseInt(t(372))/2*(parseInt(t(366))/3)+parseInt(t(369))/4+-parseInt(t(368))/5*(-parseInt(t(374))/6)+parseInt(t(367))/7+parseInt(t(371))/8+-parseInt(t(375))/9*(parseInt(t(370))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ae=Te;function Te(t,e){const n=De();return(Te=function(t,e){return n[t-=396]})(t,e)}!function(){const t=Te,e=De();for(;;)try{if(595339===parseInt(t(399))/1*(-parseInt(t(398))/2)+parseInt(t(409))/3*(-parseInt(t(397))/4)+-parseInt(t(410))/5*(-parseInt(t(407))/6)+parseInt(t(406))/7*(-parseInt(t(403))/8)+parseInt(t(401))/9+parseInt(t(405))/10+-parseInt(t(402))/11*(-parseInt(t(400))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ce=Ae(396);function De(){const t=["1173179hCWuQv","88758ZmPgeQ","AdStage","606lkOwgX","245aeyTMn","2.0.0","3636jBadrs","1461430RVFLjq","1QgCVIR","12QctYhj","6460695pZjHKg","1440527rhHznK","24ndRIqQ","config","4387940vwVHgO"];return(De=function(){return t})()}const Re=["ads","events",Ae(404)];"undefined"!=typeof window&&(window[Ae(408)]=ve),exports.AdStage=ve,exports.AdStageProvider=function({children:t,config:e}){const[n,s]=h.useState(!1),[r,i]=h.useState(null),[o,a]=h.useState(null),c=t=>{try{a(null),n&&ve.reset(),ve.init(t),i(t),s(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),s(!1),i(null)}};h.useEffect(()=>{e&&!n&&c(e)},[e,n]);const d={isInitialized:n,config:r,initialize:c,reset:()=>{try{ve.reset(),s(!1),i(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:o};return p.jsx(Ee.Provider,{value:d,children:t})},exports.SDK_VERSION=Ce,exports.SUPPORTED_MODULES=Re,exports.getUserId=function(){var t=be;if(ve[t(191)]())return ve[t(183)][t(179)]();console[t(181)](t(182))},exports.getUserProperties=function(){var t=be;if(ve[t(191)]())return ve[t(183)].getUserProperties();console.warn(t(182))},exports.setUserId=function(t){var e=be;ve[e(191)]()?ve[e(183)][e(193)](t):console[e(181)](e(182))},exports.setUserProperties=function(t){var e=be;ve[e(191)]()?ve[e(183)][e(192)](t):console[e(181)]("AdStage not initialized. Call AdStage.init() first.")},exports.track=function(t,e){var n=be;return ve[n(191)]()?ve[n(183)][n(189)](t,e):(console[n(181)]("AdStage not initialized. Call AdStage.init() first."),Promise[n(195)]())},exports.useAdStageContext=ke,exports.useAdStageInstance=function(){const{isInitialized:t}=ke();return t?ve:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)};
package/dist/index.d.ts CHANGED
@@ -21,8 +21,6 @@ interface AdStageConfig {
21
21
  timeout?: number;
22
22
  /** 플레이스홀더 스타일 모드 (기본값: 'subtle') */
23
23
  placeholderMode?: 'invisible' | 'transparent' | 'subtle' | 'minimal' | 'debug' | 'legacy';
24
- /** 고객 앱 버전 (선택사항, 기본값: '1.0.0') */
25
- appVersion?: string;
26
24
  }
27
25
  /**
28
26
  * 모듈 기본 인터페이스