@adstage/web-sdk 3.0.15 → 3.0.16
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 +1 -1
- package/dist/index.d.ts +21 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.standalone.js +31 -2
- package/dist/index.umd.js +31 -2
- package/package.json +1 -1
- package/src/core/{adstage.ts → AdStage.ts} +31 -0
- package/src/events/global-events.ts +1 -1
- package/src/index.ts +2 -2
- package/src/modules/tracking/tracking-params.ts +24 -7
- package/src/react/ad-stage-provider.tsx +1 -1
- package/src/types/config.ts +7 -1
- package/src/utils/config-utils.ts +1 -1
- package/src/utils/tracking-link-decorator.ts +135 -0
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as r,useContext as i}from"react";function s(){var t=["1091094pjalQj","975061rTtgTZ","DESKTOP","56EbMQpZ","445053OBQtQn","MOBILE","VIDEO","26764956VgLzIp","6khkKrk","TEXT","5601785ZrlANq","3608124muxnus","9564984LAhysg","POPUP","INTERSTITIAL","CLICK","VIEWABLE","WEB","BANNER"];return(s=function(){return t})()}var o,a,c,d,l,u,p,h,f,g,m,I;function v(t,e){var n=s();return(v=function(t,e){return n[t-=469]})(t,e)}!function(){for(var t=v,e=s();;)try{if(924558===-parseInt(t(473))/1+-parseInt(t(472))/2*(parseInt(t(480))/3)+-parseInt(t(483))/4+-parseInt(t(482))/5+parseInt(t(484))/6+parseInt(t(476))/7*(parseInt(t(475))/8)+parseInt(t(479))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(a=o||(o={}))[(c=v)(471)]="BANNER",a[c(485)]=c(485),a[c(486)]=c(486),a.NATIVE="NATIVE",a[c(478)]=c(478),a[c(481)]=c(481),(l=d||(d={}))[(u=v)(470)]=u(470),l[u(477)]=u(477),(h=p||(p={}))[(f=v)(469)]=f(469),h[f(487)]=f(487),(m=g||(g={}))[(I=v)(474)]="DESKTOP",m[I(477)]=I(477),m.TABLET="TABLET";const y=b;function b(t,e){const n=w();return(b=function(t,e){return n[t-=496]})(t,e)}function w(){const t=['❌ 컨테이너를 찾을 수 없습니다: "',"waitForElements","safeAppendChild","isSSR","ms)","✅ 컨테이너 발견: ","add","getViewportInfo","href","⏳ 컨테이너 대기 시작: ","documentElement","location","remove","isDOMReady","safeQuerySelectorAll","devicePixelRatio","getPageInfo","safeRemoveChild","waitForDOM","safeAddClass","safeSetTextContent","pageXOffset",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"textContent","✅ 컨테이너 즉시 발견: ","2372254jknaLW","log","safeQuerySelector","⏳ 컨테이너 대기 중: ","ms (",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"번째 시도, ","940qDIttH","classList","safeWindowOpen","querySelectorAll","error","DOMContentLoaded","2332698WLhpTy","removeEventListener","entries","getElementById","9231100vTqLoo","removeChild","safeGetComputedStyle","innerWidth","canUseDOM","getWindowProperty","96YhYEEr","waitForElement","13444434gxMbeQ","innerHTML","DOM을 사용할 수 없는 환경입니다.","from","appendChild","readyState","safeRemoveEventListener","all","getScrollInfo","37464OJFajI"," (최대 ","244230uwvNbN","pageYOffset","번 시도)","referrer","safeSetInnerHTML","map","getDocumentProperty","scrollTop","ms 경과)","safeAddEventListener","3PtJHyn","title","loading","5230zdadZz","min","isBrowser","safeCreateElement","undefined","forEach"];return(w=function(){return t})()}!function(){const t=b,e=w();for(;;)try{if(868788===parseInt(t(531))/1+-parseInt(t(497))/2*(-parseInt(t(543))/3)+-parseInt(t(504))/4*(-parseInt(t(546))/5)+parseInt(t(510))/6+-parseInt(t(533))/7*(parseInt(t(520))/8)+-parseInt(t(522))/9+parseInt(t(514))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{static isBrowser(){return"undefined"!=typeof window&&typeof document!==b(550)}static[y(555)](){return!this[y(548)]()}static[y(518)](){const t=y;return this[t(548)]()&&void 0!==document[t(527)]}static safeGetElementById(t){const e=y;return this[e(518)]()?document[e(513)](t):null}static[y(499)](t){return this[y(518)]()?document.querySelector(t):null}static[y(566)](t){const e=y;return this.canUseDOM()?Array[e(525)](document[e(507)](t)):[]}static[y(549)](t){return this[y(518)]()?document.createElement(t):null}static[y(542)](t,e,n,r){this[y(518)]()&&t&&t.addEventListener(e,n,r)}static[y(528)](t,e,n,r){const i=y;this[i(518)]()&&t&&t[i(511)](e,n,r)}static[y(519)](t,e){return this[y(548)]()?window[t]??e:e}static[y(539)](t,e){return this.canUseDOM()?document[t]??e:e}static[y(506)](t,e,n){return this[y(548)]()?window.open(t,e,n):null}static[y(516)](t){return this[y(548)]()&&t?window.getComputedStyle(t):null}static[y(565)](){const t=y;return!!this.canUseDOM()&&document[t(527)]!==t(545)}static[y(570)](){return new Promise(t=>{const e=b;this[e(518)]()?this[e(565)]()?t():this.safeAddEventListener(document,e(509),()=>t()):t()})}static safeApplyStyles(t,e){const n=y;this[n(518)]()&&t&&Object[n(512)](e)[n(551)](([e,n])=>{t.style.setProperty(e,n)})}static[y(571)](t,e){const n=y;this[n(518)]()&&t&&t[n(505)][n(558)](e)}static safeRemoveClass(t,e){const n=y;this[n(518)]()&&t&&t[n(505)][n(564)](e)}static[y(572)](t,e){const n=y;this.canUseDOM()&&t&&(t[n(575)]=e)}static[y(537)](t,e){const n=y;this.canUseDOM()&&t&&(t[n(523)]=e)}static[y(554)](t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(526)](e)}static[y(569)](t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(515)](e)}static[y(568)](){const t=y;return{url:this.getWindowProperty(t(563),{href:""})[t(560)],title:this.getDocumentProperty(t(544),""),referrer:this.getDocumentProperty(t(536),"")}}static[y(559)](){const t=y;return{width:this.getWindowProperty(t(517),0),height:this.getWindowProperty("innerHeight",0),pixelRatio:this[t(519)](t(567),1)}}static[y(530)](){const t=y;return{scrollTop:this[t(518)]()?window[t(534)]||document[t(562)][t(540)]:0,scrollLeft:this[t(519)](t(573),0)}}static async[y(521)](t,e={}){const n=y,{timeout:r=3e3,retryInterval:i=100,debug:s=!1}=e;if(!this[n(518)]())throw new Error(n(524));const o=document[n(513)](t);return o?(s&&console[n(498)](n(496)+t),o):(s&&console.log(n(561)+t+n(532)+r+n(556)),new Promise((e,n)=>{let o=0;const a=Math.ceil(r/i),c=()=>{const d=b;o++;const l=document[d(513)](t);if(l)return s&&console[d(498)](d(557)+t+" ("+o+d(503)+o*i+d(541)),void e(l);if(o>=a){const e=d(552)+t+d(574)+t+d(502)+r+d(501)+o+d(535);return s&&console[d(508)](e),void n(new Error(e))}s&&o%10==0&&console[d(498)](d(500)+t+" ("+o+"/"+a+")");const u=Math[d(547)](i*Math.pow(1.2,o),500);setTimeout(c,u)};setTimeout(c,i)}))}static async[y(553)](t,e={}){const n=y,r=t[n(538)](t=>this[n(521)](t,e));return Promise[n(529)](r)}}const E=A;function A(t,e){const n=T();return(A=function(t,e){return n[t-=302]})(t,e)}!function(){const t=A,e=T();for(;;)try{if(480041===parseInt(t(304))/1+parseInt(t(315))/2*(-parseInt(t(302))/3)+-parseInt(t(316))/4*(parseInt(t(313))/5)+parseInt(t(309))/6*(-parseInt(t(307))/7)+parseInt(t(314))/8*(parseInt(t(305))/9)+parseInt(t(311))/10+-parseInt(t(308))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const x=E(312);function S(){return x}function T(){const t=["4706746vNVIdG","196698qsddvV"," AdStageSDK/","3618750nphpuW","3.0.15","105MZOCPp","8apxoCo","606jPSgwy","128948ZbYoeg","1029UJxsgw","undefined","842328WVPsWx","4656717TkAJLm","userAgent","7KMqsce"];return(T=function(){return t})()}const C=_;function D(){const t=["getPlatform","userAgent","safeGetElementById","toString","collectDeviceInfo","getScrollInfo","2746932PEiQvh","round","3376665MLTKtj","381172QUzLdv","width","UTC","adstage_session_id","setItem","SSR","random","generateDeviceId","now","adstage_device_id","isBrowser","resolvedOptions","DateTimeFormat","effectiveType","7626FvSiZZ",'[data-adstage-slot-id="',"toLowerCase","left","substr","session_","unknown"," .adstage-slider-wrapper","safeQuerySelector","847menKFu","49270eDusXS","1466175GasASI","11IPLXAS","getSlotPosition","1.0.0","72550gowdeR","1441cOTZRe","test","8ClDFeX","android","connection","web","generateSessionId","height","ios","getItem","platform"];return(D=function(){return t})()}function _(t,e){const n=D();return(_=function(t,e){return n[t-=100]})(t,e)}!function(){const t=_,e=D();for(;;)try{if(502098===-parseInt(t(111))/1*(-parseInt(t(114))/2)+parseInt(t(132))/3+-parseInt(t(135))/4+-parseInt(t(110))/5+parseInt(t(149))/6*(-parseInt(t(108))/7)+parseInt(t(117))/8*(parseInt(t(134))/9)+parseInt(t(109))/10*(-parseInt(t(115))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{static[C(142)](){const t=C;if(!k[t(145)]())return"ssr_device_"+Date.now();const e=localStorage[t(124)](t(144));if(e)return e;const n="device_"+Math[t(141)]()[t(129)](36)[t(103)](2,9)+"_"+Date.now();return localStorage[t(139)]("adstage_device_id",n),n}static[C(121)](){const t=C;if(!k[t(145)]())return"ssr_session_"+Date[t(143)]();const e=sessionStorage[t(124)]("adstage_session_id");if(e)return e;const n=t(104)+Math[t(141)]()[t(129)](36).substr(2,9)+"_"+Date[t(143)]();return sessionStorage[t(139)](t(138),n),n}static isMobile(){const t=C;return!!k[t(145)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(116)](navigator[t(127)])}static[C(126)](){const t=C;if(!k[t(145)]())return t(120);const e=navigator[t(127)][t(101)]();return/iphone|ipad|ipod/[t(116)](e)?t(123):/android/[t(116)](e)?t(118):R.isMobile()?t(120):"desktop"}static[C(130)](){const t=C,e=k.getViewportInfo();return{deviceId:R[t(142)](),sessionId:R.generateSessionId(),osVersion:k.isBrowser()?navigator[t(125)]:t(140),deviceModel:k[t(145)]()?navigator.platform:t(140),appVersion:t(113),sdkVersion:S(),language:k.isBrowser()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:k.isBrowser()?navigator[t(127)]:t(140),timezone:k.isBrowser()?Intl[t(147)]()[t(146)]().timeZone:t(137),viewportWidth:e[t(136)],viewportHeight:e[t(122)],screenWidth:k[t(145)]()?screen[t(136)]:0,screenHeight:k[t(145)]()?screen[t(122)]:0,colorDepth:k[t(145)]()?screen.colorDepth:24,pixelRatio:e.pixelRatio,connectionType:k[t(145)]()&&navigator[t(119)]?.[t(148)]||t(105),platform:R.getPlatform()}}static[C(112)](t){const e=C;let n=k[e(128)](t);if(!n){const r=k[e(107)]("#"+t+e(106));r&&(n=r)}if(!n&&(n=k.safeQuerySelector(e(100)+t+'"]')),!n)return e(105);const r=n.getBoundingClientRect(),i=k[e(131)]();return"x:"+Math.round(r[e(102)])+",y:"+Math[e(133)](r.top+i.scrollTop)}}const L=z;function z(t,e){const n=P();return(z=function(t,e){return n[t-=318]})(t,e)}!function(){const t=z,e=P();for(;;)try{if(640486===-parseInt(t(329))/1+parseInt(t(320))/2+parseInt(t(319))/3*(parseInt(t(323))/4)+parseInt(t(321))/5+-parseInt(t(322))/6+-parseInt(t(318))/7*(parseInt(t(326))/8)+parseInt(t(327))/9*(parseInt(t(324))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{static create(t,e){const n=z;if(!t)throw new Error("API key is required");return{"x-api-key":t,"Content-Type":e?.[n(328)]||"application/json"}}static[L(325)](t,e){return U.create(t)}}function P(){const t=["330836EDDGpd","4753450pDXLJd","5146020MkmLjw","4XPbuHZ","60kBsogf","createForEvents","4240nhGtaH","2645127mFkMgG","contentType","1169293tZkFOE","16037qKTCXM","3006459sPTpPa"];return(P=function(){return t})()}const M=O;function B(){const t=["❌ Failed to track advertisement event:","sessionId","🚀 Sending advertisement event: ","adType","createForEvents","...","1522768lcdWrF","statusText","1735915NTouAW","🌐 Full API call details:","16749410fWsMRY","/advertisements/events/","parseNumericValue","number","error","getElementById","url","title","6412584DPDDyi","POST","slots",". Skipping event tracking to prevent incorrect adType.","warn","platform"," event for ad ","apiKey","string","VIEWABLE","152107IaUfFX","height","width","log","baseUrl","text","containerId","NOT_SET","⚠️ DOM element not found for slotId: ","querySelector","status","get","2660868lCLhKM","getPageInfo","📡 API Response Status: "," - "," (containerId: ","1528272eOoVHc","6aUKYIq"," for ad ","debug","API request failed: ","stringify","substring","deviceId","now","🔍 Debug info:","trackAdvertisementEvent","getSlotPosition","4YIduRF","35KBnBFo"];return(B=function(){return t})()}function O(t,e){const n=B();return(O=function(t,e){return n[t-=208]})(t,e)}!function(){const t=O,e=B();for(;;)try{if(668463===parseInt(t(265))/1*(parseInt(t(224))/2)+parseInt(t(223))/3+parseInt(t(235))/4*(-parseInt(t(245))/5)+parseInt(t(255))/6+-parseInt(t(236))/7*(-parseInt(t(243))/8)+-parseInt(t(218))/9+-parseInt(t(247))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{constructor(t,e,n,r){const i=O;this.baseUrl=t,this[i(262)]=e,this[i(226)]=n,this[i(257)]=r}async[M(233)](t,e,n){const r=M;try{this[r(226)]&&console.log("🚀 AdvertisementEventTracker: Processing "+n+r(261)+t+" in slot "+e);const i=this.slots[r(217)](e);if(!i)return void(this[r(226)]&&console[r(259)]("⚠️ Slot not found for slotId: "+e+r(258)));if(!(document[r(252)](i[r(212)])||document[r(215)]('[data-adstage-slot-id="'+e+'"]')))return void(this[r(226)]&&console.warn(r(214)+e+r(222)+i[r(212)]+"). Skipping event tracking."));const s=R.collectDeviceInfo(),o={adType:i[r(240)],platform:s[r(260)],deviceId:s[r(230)],deviceInfo:s,pageUrl:k[r(219)]()[r(253)],pageTitle:k.getPageInfo()[r(254)],referrer:k[r(219)]().referrer,slotId:e,slotPosition:R[r(234)](i.containerId),slotWidth:V.parseNumericValue(i[r(208)]),slotHeight:V.parseNumericValue(i[r(266)]),sessionId:s[r(238)],pageLoadTime:performance[r(231)](),metadata:{eventType:n,sdkVersion:S(),timestamp:Date.now()},...n===p[r(264)]&&{isViewable:!0,iabCompliant:!0}},a=this[r(210)]+r(248)+t+"/"+n,c=U[r(241)](this[r(262)],o);this[r(226)]&&(console[r(209)](r(239)+n+r(225)+t,{url:a,headers:c,eventData:o}),console[r(209)](r(246),{method:r(256),url:a,hasApiKey:!!this[r(262)],bodySize:JSON[r(228)](o).length}));const d=await fetch(a,{method:r(256),headers:c,body:JSON[r(228)](o)});if(this[r(226)]&&console[r(209)](r(220)+d.status+" "+d[r(244)],{url:a,ok:d.ok}),!d.ok){const t=await d[r(211)]();throw new Error(r(227)+d[r(216)]+" "+d.statusText+r(221)+t)}this.debug&&console[r(209)]("✅ Successfully tracked advertisement event: "+n+" for ad "+t)}catch(i){console[r(251)](r(237),i),console.error(r(232),{baseUrl:this[r(210)],apiKey:this[r(262)]?this[r(262)][r(229)](0,8)+r(242):r(213),url:this[r(210)]+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[M(249)](t){const e=M;if(typeof t===e(250))return t;if(typeof t===e(263)){const e=parseFloat(t.replace(/px$/,""));return isNaN(e)?0:e}return 0}}function N(){var t=["visible","disconnect","element","65575VQFWVT","destroy","observe","visibilityState","intersectionRatio","470563RMtcUg","34qBcUAT","isDocumentVisible","IntersectionObserver","18215164qKtaFk","156IMAavl","IntersectionObserver not supported, viewability tracking disabled","observer","81WWyATG","initIntersectionObserver","3813136WpJmqr","7YYbDvc","onViewableCallback","isViewableTriggered","264291mVvVtC","7730574lRodoj","hidden","265610bVfSvN","handleIntersection"];return(N=function(){return t})()}function F(t,e){var n=N();return(F=function(t,e){return n[t-=110]})(t,e)}var H=F;!function(){for(var t=F,e=N();;)try{if(771935===-parseInt(t(110))/1+-parseInt(t(111))/2*(parseInt(t(124))/3)+parseInt(t(115))/4*(parseInt(t(132))/5)+parseInt(t(125))/6+parseInt(t(121))/7*(-parseInt(t(120))/8)+-parseInt(t(118))/9*(parseInt(t(127))/10)+parseInt(t(114))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class j{constructor(t,e){var n=F;this[n(117)]=null,this.isViewableTriggered=!1,this[n(131)]=t,this[n(122)]=e,this[n(119)]()}[H(119)](){var t=H;t(113)in window?(this.observer=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:"0px"}),this[t(117)][t(134)](this.element)):console.warn(t(116))}[H(128)](t){t.forEach(t=>{var e=F;t[e(136)]>=.5&&this[e(112)]()&&!this[e(123)]&&(this[e(123)]=!0,this[e(122)]&&this[e(122)]())})}[H(112)](){var t=H;return!document[t(126)]&&document[t(135)]===t(129)}[H(133)](){var t=H;this.observer&&(this[t(117)][t(130)](),this.observer=null)}}function K(t,e){const n=Y();return(K=function(t,e){return n[t-=326]})(t,e)}const W=K;!function(){const t=K,e=Y();for(;;)try{if(237941===-parseInt(t(344))/1+parseInt(t(352))/2+-parseInt(t(332))/3*(-parseInt(t(336))/4)+parseInt(t(347))/5*(parseInt(t(329))/6)+parseInt(t(326))/7*(parseInt(t(350))/8)+-parseInt(t(345))/9*(parseInt(t(335))/10)+-parseInt(t(328))/11*(parseInt(t(346))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const q={production:W(330),beta:W(351)},G={advertisements:{list:"/advertisements/list",detail:W(342),events:W(334)},events:{track:W(331),registerAttribution:"/events/register/attribution"}};function Y(){const t=["baseUrl","advertisements","/advertisements","events","456341PKdKkw","4437zFQpug","120468dwhTtb","1690xTPuVd","custom","detail","632wqYoWL","https://beta-api.adstage.app","719482rgUNHe","14497riDhup","track","363ZcZqqG","8058yaCCIM","https://api.adstage.app","/events/track","12gXaMmf","setBaseUrl","/advertisements/events","1990CTPGrz","146392nQjcBD","registerAttribution","list","startsWith"];return(Y=function(){return t})()}class Z{constructor(t){const e=W;this[e(341)]={list:()=>""+this.baseUrl+G[e(341)][e(338)],detail:t=>""+this.baseUrl+G.advertisements[e(349)]+"/"+t,events:(t,n)=>""+this[e(340)]+G.advertisements[e(343)]+"/"+t+"/"+n},this[e(343)]={track:()=>""+this[e(340)]+G.events[e(327)],registerAttribution:()=>""+this[e(340)]+G.events[e(337)]},this[e(340)]=t||q.production}[W(333)](t){this[W(340)]=t}getBaseUrl(){return this[W(340)]}[W(348)](t){const e=W;return""+this[e(340)]+(t[e(339)]("/")?t:"/"+t)}}const J=new Z;function X(t,e){var n=tt();return(X=function(t,e){return n[t-=268]})(t,e)}var Q=X;!function(){for(var t=X,e=tt();;)try{if(386161===-parseInt(t(280))/1*(-parseInt(t(284))/2)+-parseInt(t(278))/3+parseInt(t(281))/4*(parseInt(t(287))/5)+-parseInt(t(269))/6*(-parseInt(t(273))/7)+-parseInt(t(268))/8*(parseInt(t(289))/9)+parseInt(t(288))/10*(-parseInt(t(286))/11)+parseInt(t(283))/12*(parseInt(t(272))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[Q(279)](t,e,n,r,i=!1){var s=Q;i&&console[s(277)]("🎯 Triggering VIEWABLE event for slide change: ad "+t._id+s(282)+n+s(270)+e.id),r(t[s(274)],e.id,p.VIEWABLE)}static[Q(285)](t,e,n,r=!1){var i=Q;r&&console[i(277)](i(271)+t._id+i(276)+e.id),n(t._id,e.id,p[i(275)])}}function tt(){var t=["377397swHLCW","120dwOvZd","489966VBNoni",") in slot: ","🎯 Triggering initial VIEWABLE event: ad ","101075mOUuaW","7gwsYCU","_id","VIEWABLE"," (index: 0) in slot: ","log","1012584bdzGft","trackSlideViewable","1369qhopuy","1216308RWkbiI"," (index: ","876LWuayp","870yflIrx","trackInitialSlideViewable","539396dOOmbx","5REDoEg","40eIEWjx"];return(tt=function(){return t})()}function et(t,e){const n=rt();return(et=function(t,e){return n[t-=166]})(t,e)}const nt=et;function rt(){const t=[" -> ","style","134UXcOqz","adType","336060vfDTzZ","addClickEventForRenderer","pointer","toLowerCase","addEventListener","isClickable","cursor","12438360tBybSG","1059988hHfOZb","log","18604091LDQgvu","8yWMUDe","🔗 ","3uOrHnJ","click","1093204DVujTr","35856ZOXkUd","5zvVTDs","CLICK","addClickEvent","4171ptaPqs","_id","_blank","addClickEventForSlider","linkUrl","10zLkRrk","addClickEventsBatch"," ad clicked: ","stopPropagation"];return(rt=function(){return t})()}!function(){const t=et,e=rt();for(;;)try{if(856457===-parseInt(t(180))/1*(parseInt(t(191))/2)+-parseInt(t(173))/3*(-parseInt(t(168))/4)+-parseInt(t(177))/5*(-parseInt(t(193))/6)+-parseInt(t(175))/7*(-parseInt(t(171))/8)+parseInt(t(176))/9*(parseInt(t(185))/10)+parseInt(t(170))/11+-parseInt(t(167))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static addClickEvent(t,e,n,r,i=!1,s){const o=et;e[o(184)]&&(t[o(190)][o(166)]=o(195),t[o(197)](o(174),t=>{const a=o;if(t.preventDefault(),t[a(188)](),r&&r(e[a(181)],n.id,p[a(178)]),window.open(e[a(184)],a(182)),i){const t=s||String(n[a(192)])[a(196)]();console[a(169)](a(172)+t+" ad clicked: "+e[a(181)]+a(189)+e[a(184)])}}))}static[nt(194)](t,e,n,r,i=!1,s){const o=nt;e[o(184)]&&(t[o(190)][o(166)]="pointer",t.addEventListener(o(174),t=>{const a=o;t.preventDefault(),t[a(188)]();if(r()(e[a(181)],n.id,p[a(178)]),window.open(e[a(184)],a(182)),i){const t=s||String(n[a(192)])[a(196)]();console[a(169)](a(172)+t+a(187)+e[a(181)]+a(189)+e[a(184)])}}))}static[nt(183)](t,e,n,r,i=!1,s){this.addClickEvent(t,e,n,r,i,s)}static[nt(198)](t){return Boolean(t[nt(184)])}static[nt(186)](t,e,n,r,i=!1,s){t.forEach((t,o)=>{const a=et,c=e[o];c&&this[a(179)](t,c,n,r,i,s)})}}const st=ot;function ot(t,e){const n=at();return(ot=function(t,e){return n[t-=420]})(t,e)}function at(){const t=["borderColor","8px","1087672UJiChO","removeChild","includes","#f0f0f0","4ooTKKV","204310grNUdv","100px","transform","abs","translateX(-","transform 0.4s ease-out","remove","padding","100%","children","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","textContent","965562SENZVy","3681986kqhvDu","adstage-dots","style","block","addTouchSupport","touchstart","contains","active","Banner Ad","TEXT","body","clientX","auto","VIDEO","overflow","setAttribute","1px dashed #ccc","img","background","70LEpFOZ","preventDefault","videoUrl","0.7","none","hidden","click","whiteSpace","#000","string","display","length","opacity","#666666","querySelectorAll","getBoundingClientRect","inline-block","createMinimalDotIndicator"," Ad","className","autoSlideInterval","86525DrCCFm","normal","div","adType","touchmove","1792810qyQNmW","50px","setProperty","height","adstage-slider-wrapper","changedTouches",".adstage-dot","addEventListener","addClickEventForSlider","adstage-dot","fontSize","entries","createElement","button","45kGDytz","#cccccc","_id","forEach","transition","mouseenter","flex","touchend","video","4119510qmrOnz","toLowerCase","trackSlideViewable","4UWwcLA","src","cssText","appendChild","objectFit","relative","createSimpleAdElement","14px","every","backgroundColor","mouseleave","cover","width","add","createSliderContainer","border","classList"];return(at=function(){return t})()}!function(){const t=ot,e=at();for(;;)try{if(917078===-parseInt(t(420))/1*(parseInt(t(474))/2)+parseInt(t(448))/3+-parseInt(t(451))/4*(parseInt(t(475))/5)+-parseInt(t(487))/6*(parseInt(t(507))/7)+parseInt(t(470))/8+parseInt(t(439))/9*(parseInt(t(425))/10)+parseInt(t(488))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[st(457)](t,e){const n=st,r=document[n(437)](n(422));switch(r.className="adstage-ad adstage-"+String(t.adType)[n(449)](),r[n(503)]("data-adstage-ad-id",e[n(441)]),r[n(503)]("data-adstage-slot-id",t.id),r[n(490)][n(517)]=n(491),r[n(490)][n(463)]=n(483),r[n(490)][n(428)]=n(500),t.adType){case o.BANNER:if(e.imageUrl){const t=document.createElement(n(505));t[n(452)]=e.imageUrl,t[n(490)][n(463)]=n(483),t.style[n(428)]=n(500),t[n(490)][n(455)]=n(462),r[n(454)](t)}else r[n(490)].height=n(476),r[n(490)][n(460)]=n(473),r.style[n(466)]=n(504),r[n(486)]=n(496);break;case o[n(501)]:if(e.videoUrl){const t=document.createElement(n(447));t[n(452)]=e[n(509)],t[n(490)][n(463)]=n(483),t[n(490)][n(428)]=n(500),r[n(454)](t)}else r.style.height="200px",r[n(490)][n(460)]=n(515),r[n(490)][n(466)]="1px solid #666",r[n(486)]="Video Ad",r.style.color="white";break;case o[n(497)]:if(e[n(486)]){const t=document[n(437)]("div");t[n(486)]=e[n(486)]||"",t[n(490)][n(482)]=n(469),t[n(490)][n(435)]=n(458),r.appendChild(t)}else r[n(490)][n(428)]=n(426),r.style[n(482)]=n(469),r[n(486)]="Text Ad";break;default:r[n(490)][n(428)]="100px",r[n(490)].border=n(504),r.style[n(460)]="#f9f9f9",r[n(486)]=t[n(423)]+n(525)}return r}static[st(465)](t,e,n,r,i=!1){const s=st,a=document[s(437)]("div");a.className=s(429);const c={position:s(456),overflow:s(512)};if(t[s(463)]&&0!==t.width){let e;e=typeof t[s(463)]===s(516)?t[s(463)][s(472)]("px")||t[s(463)].includes("%")?t[s(463)]:t[s(463)]+"px":t.width+"px",c[s(463)]=e,c[s(517)]=s(523)}else c[s(517)]=s(523);if(t[s(428)]&&0!==t[s(428)]){const e="string"==typeof t[s(428)]?t[s(428)]:t[s(428)]+"px";c[s(428)]=e}Object[s(436)](c).forEach(([t,e])=>{a[s(490)].setProperty(t,e)});const d=!t[s(463)]||0===t.width,l=!t[s(428)]||0===t[s(428)];if(d||l){const n=document.createElement("div");if(n.style[s(453)]=s(485),!d&&t.width){let e;e="string"==typeof t[s(463)]&&(t[s(463)][s(472)]("px")||t.width.includes("%"))?t.width:t[s(463)]+"px",n[s(490)][s(463)]=e,n[s(490)][s(514)]=s(421)}document[s(498)][s(454)](n);let r=0,i=0;e.forEach(e=>{const o=s,a=this.createSimpleAdElement(t,e);n[o(454)](a);const c=a[o(522)]();c.width>r&&(r=c[o(463)]),c.height>i&&(i=c[o(428)]),n[o(471)](a)}),d&&r>0&&(a[s(490)].width=r+"px",c[s(463)]=r+"px"),l&&i>0&&(a[s(490)][s(428)]=i+"px",c.height=i+"px"),document[s(498)][s(471)](n)}const u=[...e,e[0]],p=document[s(437)](s(422));p[s(526)]="adstage-slide-container";const h={display:s(445),transition:s(480),width:100*u[s(518)]+"%"};t[s(428)]&&0!==t[s(428)]&&(h.height=s(483)),Object[s(436)](h)[s(442)](([t,e])=>{const n=s;p[n(490)][n(427)](t,e)}),u[s(442)]((e,n)=>{const o=s,a=document[o(437)](o(422));a[o(526)]="adstage-slide";const c={width:100/u[o(518)]+"%","flex-shrink":"0",display:"flex","align-items":"center","justify-content":"center"};t.height&&0!==t[o(428)]&&(c[o(428)]="100%"),Object.entries(c)[o(442)](([t,e])=>{const n=o;a[n(490)][n(427)](t,e)});const d=this[o(457)](t,e);it[o(433)](d,e,t,r,i,String(t[o(423)])[o(449)]()),a[o(454)](d),p[o(454)](a)});const f=e[s(459)](t=>t[s(423)]===o[s(497)])?null:this[s(524)](e[s(518)]);let g=0;const m=e[s(518)],I=1e3*(n?.[s(527)]||3),v=(n,o=!1)=>{const a=s;g=n,o?p[a(490)][a(443)]=a(511):p.style[a(443)]=a(480),p[a(490)][a(477)]=a(479)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(521)](a(431)).forEach((t,e)=>{const n=a,r=t;e===c?(r[n(467)][n(464)]("active"),r[n(490)][n(506)]=n(520),r[n(490)].borderColor=n(520),r[n(490)][n(519)]="1"):(r[n(467)][n(481)](n(495)),r[n(490)].background="transparent",r[n(490)][n(468)]=n(440),r.style[n(519)]=n(510))})}$[a(450)](e[c],t,c,r,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(".adstage-dot")[s(442)]((t,e)=>{const n=s;t[n(432)](n(513),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a.addEventListener(s(444),()=>{clearInterval(b)}),a[s(432)]("mouseleave",()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[s(492)](p,v,()=>g,m,y),a[s(454)](p),f&&a.appendChild(f),v(0),(!t.width||0===t[s(463)])&&setTimeout(()=>{const e=s,n=p.children[0];if(n){const r=n[e(484)][0];if(r){const n=r[e(522)]();a.style[e(463)]=n[e(463)]+"px",(!t[e(428)]||0===t[e(428)])&&(a.style.height=n.height+"px"),a[e(490)][e(502)]="hidden"}}},10),a}static[st(524)](t){const e=st,n=document.createElement(e(422));n[e(526)]=e(489),n[e(490)][e(453)]="\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 ";for(let r=0;r<t;r++){const t=document.createElement(e(438));t.className=e(434),t[e(490)][e(453)]="\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ",t.addEventListener(e(444),()=>{const n=e;!t.classList[n(494)]("active")&&(t[n(490)][n(468)]="#999999",t.style[n(519)]="0.9")}),t[e(432)](e(461),()=>{const n=e;!t[n(467)][n(494)]("active")&&(t[n(490)].borderColor=n(440),t[n(490)][n(519)]=n(510))}),n[e(454)](t)}return n}static addTouchSupport(t,e,n,r,i){const s=st;let o=0,a=!1;t[s(432)](s(493),t=>{const e=s;o=t.touches[0][e(499)],a=!0}),t[s(432)](s(424),t=>{a&&t[s(508)]()}),t.addEventListener(s(446),t=>{const c=s;if(!a)return;a=!1;const d=t[c(430)][0][c(499)],l=o-d;if(Math[c(478)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:r-1)}}})}}function dt(t,e){const n=pt();return(dt=function(t,e){return n[t-=133]})(t,e)}const lt=dt;!function(){const t=dt,e=pt();for(;;)try{if(557670===-parseInt(t(148))/1+parseInt(t(137))/2*(-parseInt(t(146))/3)+-parseInt(t(147))/4+-parseInt(t(143))/5+-parseInt(t(152))/6*(parseInt(t(133))/7)+parseInt(t(141))/8*(parseInt(t(139))/9)+parseInt(t(134))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static[lt(149)](t,e,n=!1){const r=lt,i=t+"_"+e;return ut[r(135)][r(144)](i)?(n&&console.log(r(140)+t+r(150)+e),!0):(ut[r(135)][r(138)](i),n&&console[r(142)](r(136)+t+" in slot "+e),!1)}static[lt(145)](){ut.viewableTracker.clear()}static[lt(151)](t,e){const n=t+"_"+e;ut[lt(135)].delete(n)}}function pt(){const t=["9BAmedO","Duplicate viewable blocked for ad ","1631768SnjvCE","log","1797345MYVqDF","has","clear","1705578rJwzMp","2589076DeVAqy","919028VekIIn","isDuplicateViewable"," in slot ","clearAdViewable","558qkAIol","51933Pfvshr","35379580xPYEHz","viewableTracker","✅ New viewable recorded for ad ","2WNXVfm","add"];return(pt=function(){return t})()}ut[lt(135)]=new Set;const ht=ft;function ft(t,e){const n=mt();return(ft=function(t,e){return n[t-=278]})(t,e)}!function(){const t=ft,e=mt();for(;;)try{if(977957===-parseInt(t(314))/1+-parseInt(t(396))/2+-parseInt(t(363))/3*(-parseInt(t(329))/4)+parseInt(t(386))/5+-parseInt(t(360))/6+-parseInt(t(284))/7*(-parseInt(t(353))/8)+parseInt(t(379))/9*(parseInt(t(319))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt{constructor(t,e=!1,n){const r=ft;this.adType=t,this[r(374)]=e,this[r(298)]=n||null}[ht(390)](t,e,n,r){const i=ht,s=document[i(286)]("div");s.id=e,s.className=i(315)+String(this[i(328)])[i(278)](),s[i(350)](i(376),i(287)),s[i(350)](i(369),String(this[i(328)])),s.setAttribute("data-adstage-slot",e);const{width:o,height:a}=this[i(388)](t,n,r)||{width:i(339),height:this.getDefaultHeight()};s[i(359)][i(373)]=o,s[i(359)][i(393)]=a;const c=r?.[i(324)]||n[i(324)]||i(331);this[i(367)](s,c),t.appendChild(s),this[i(374)]&&console[i(391)](i(338)+this[i(328)]+i(354)+e+" ("+o+i(348)+a+i(355)+c)}[ht(367)](t,e){const n=ht;switch(e){case n(331):t.style[n(301)]=n(356),t[n(359)][n(307)]="none",t[n(359)][n(336)]="0",t[n(333)]="";break;case n(356):t[n(359)][n(301)]="transparent",t[n(359)][n(307)]="none",t[n(359)][n(397)]=n(334),t[n(333)]="";break;case n(345):t[n(359)][n(301)]=n(395),t.style[n(307)]=n(344),t[n(359)][n(330)]=n(370),t[n(359)].display=n(362),t[n(359)].alignItems=n(313),t.style[n(279)]=n(313),t[n(333)]=n(351);break;case"minimal":t[n(359)][n(301)]="rgba(248, 249, 250, 0.5)",t[n(359)][n(307)]=n(296),t[n(359)][n(330)]=n(311),t[n(359)].display=n(362),t.style[n(295)]=n(313),t[n(359)][n(279)]=n(313),t[n(333)]='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case"debug":t[n(359)].border="2px dashed #e74c3c",t[n(359)].display=n(362),t[n(359)][n(295)]=n(313),t[n(359)].justifyContent=n(313),t.style[n(301)]=n(300),t[n(359)].color="#e74c3c",t[n(359)][n(308)]=n(283),t[n(359)][n(349)]=n(392),t[n(333)]="<span>Loading "+this[n(328)]+n(304);break;default:t.style[n(307)]=n(318),t[n(359)][n(397)]="flex",t[n(359)][n(295)]=n(313),t.style[n(279)]=n(313),t[n(359)][n(301)]="#f9f9f9",t.style[n(327)]=n(281),t.innerHTML=n(288)+this[n(328)]+n(304)}}[ht(388)](t,e,n){const r=ht,i=e[r(373)],s=e[r(393)];let o,a;if(o=typeof i===r(389)?i+"px":"string"==typeof i?i:r(339),typeof s===r(389))a=s+"px";else if("string"==typeof s&&s!==r(339)&&s!==r(357))a=s;else{const e=this[r(316)](t);e>0?(a="100%",(n?.[r(374)]||this[r(374)])&&console[r(391)](r(385)+e+r(294))):(a=this[r(383)](),(n?.[r(374)]||this.debug)&&console[r(391)](r(394)+a+" for "+this[r(328)]))}return{width:o,height:a}}[ht(316)](t){const e=ht,n=window[e(377)](t),r=parseFloat(n[e(393)]);if(!r||0===r){const r=parseFloat(n[e(321)]);if(r>0)return r;if(t[e(359)][e(393)]&&t[e(359)].height!==e(357)){const n=parseFloat(t.style[e(393)]);if(n>0)return n}const i=t[e(325)](e(393));if(i){const t=parseFloat(i);if(t>0)return t}}return r||0}[ht(365)](){return async(t,e,n)=>{const r=ft;if(n===p[r(323)]){if(ut.isDuplicateViewable(t,e,this[r(374)]))return void(this.debug&&console[r(391)](r(352)+t+r(302)+e));this[r(374)]&&console[r(391)]("✅ New viewable recorded for ad "+t+r(302)+e)}if(this[r(298)])try{this.debug&&console[r(391)]("🔄 Starting advertisement event tracking: "+n+r(306)+t+r(302)+e),await this.advertisementEventTracker.trackAdvertisementEvent(t,e,n),this[r(374)]&&console[r(391)](r(380)+n+" for ad "+t+r(302)+e)}catch(e){this[r(374)]&&console[r(335)](r(366)+n+r(378)+t+":",e)}else this.debug&&console[r(340)](r(375)+n+r(289))}}[ht(326)](t){const e=ht,n=document[e(337)](t.id);if(n){const r=[...[n[e(332)](e(342)),n[e(371)]('[data-adstage-container="true"]'),n].filter(t=>t&&t.hasAttribute(e(376))),...[n[e(371)](e(312)),n.closest(e(347)+String(this[e(328)])[e(278)]()),n[e(371)](e(382)),n[e(371)](e(317)),n[e(371)](e(358)),n[e(371)](e(285)),n[e(371)](e(384)),n[e(322)]].filter(Boolean)][0];if(r){let n="unknown";n=r[e(361)](e(376))?e(343):r[e(310)][e(299)](e(282))?e(346):e(320),r.style[e(290)]+="\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 ",r[e(333)]="",r.setAttribute(e(297),"true"),this[e(374)]&&console[e(340)](e(341)+this.adType+" container collapsed ("+n+e(292)+t.id,r)}else this[e(291)](t)}t[e(381)]=void 0,t[e(303)]=!0}[ht(291)](t){const e=ht,n=document.getElementById(t.containerId);if(n){n.innerHTML="";const r=document[e(286)](e(309));r.id=t.id,r[e(372)]=e(280)+String(this[e(328)])[e(278)](),r.setAttribute(e(376),"true"),r[e(350)](e(297),e(287)),r[e(350)](e(364),t.id),r.style[e(290)]=e(293),n[e(368)](r),this[e(374)]&&console.warn(e(387)+this.adType+e(305)+t.id)}}[ht(391)](t,...e){const n=ht;this[n(374)]&&console.log("["+this[n(328)]+"] "+t,...e)}}function mt(){const t=["VIEWABLE","placeholderMode","getAttribute","renderFallback","color","adType","4XflRKP","borderRadius","invisible","querySelector","innerHTML","block","error","opacity","getElementById","📦 Placeholder created for ","100%","warn","⚠️ ",'[data-adstage-container="true"]',"adstage-official","none","subtle","adstage-class",".adstage-"," x ","fontSize","setAttribute",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"🚫 Duplicate viewable blocked for ad ","64btOQlr"," slot: ",") - Mode: ","transparent","auto",'[class*="container"]',"style","1394946IutsAM","hasAttribute","flex","1825530tdtGRw","data-adstage-slot","createEventTrackingCallback","❌ Failed to track ","applyPlaceholderStyle","appendChild","data-adstage-type","4px","closest","className","width","debug","⚠️ AdvertisementEventTracker not available for ","data-adstage-container","getComputedStyle"," event for ad ","3016539aMAqVf","📊 Advertisement event tracked: ","advertisement",'[class*="ad"]',"getDefaultHeight",'div[style*="min-height"]',"📏 Using 100% height (container: ","5496180QNJuVE","⚠️ Created empty ","calculateAdSize","number","createPlaceholder","log","11px","height","📏 Using default height ","rgba(0, 0, 0, 0.02)","3202020RtyJIi","display","toLowerCase","justifyContent","adstage-slot adstage-empty adstage-","#666","adstage-slot","monospace","1363180kMQlnO",'div[style*="height"]',"createElement","true","<span>Loading "," event","cssText","createEmptyContainer","): ","\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 ","px)","alignItems","1px solid rgba(0, 0, 0, 0.08)","data-adstage-empty","advertisementEventTracker","contains","rgba(231, 76, 60, 0.1)","backgroundColor"," in slot ","isEmpty"," ad...</span>"," container: "," for ad ","border","fontFamily","div","classList","6px",".adstage-slot","center","789379wswHbb","adstage-slot adstage-","getContainerHeight",'[class*="banner"]',"1px dashed #ccc","10aRVjoG","generic","minHeight","parentElement"];return(mt=function(){return t})()}const It=vt;function vt(t,e){const n=bt();return(vt=function(t,e){return n[t-=403]})(t,e)}!function(){const t=vt,e=bt();for(;;)try{if(186673===parseInt(t(424))/1+parseInt(t(419))/2*(parseInt(t(484))/3)+-parseInt(t(410))/4*(-parseInt(t(463))/5)+parseInt(t(468))/6+parseInt(t(412))/7+-parseInt(t(506))/8*(parseInt(t(501))/9)+-parseInt(t(448))/10*(parseInt(t(446))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class yt extends gt{constructor(t=!1,e){super(o[vt(439)],t,e)}[It(438)](){return It(429)}async[It(473)](t,e){const n=It,r=document[n(491)](t[n(436)]);if(!r)return;const i=document[n(476)](n(434));i[n(420)]=n(459);const s=t.optimizedHeight,o=r[n(431)]||r;if(s)i[n(403)][n(499)]=n(413),i[n(403)][n(452)]=String(s);else{const e=t[n(454)],r={width:e?.[n(499)],height:e?.[n(452)]},{width:s,height:a}=this[n(408)](o,r,{debug:this[n(490)]});i[n(403)].width=s,i[n(403)][n(452)]=a}e.imageUrl?await this.renderOptimizedBannerImage(i,e,t):i.innerHTML=n(488)+(e[n(456)]||n(416))+"</div>",it[n(430)](i,e,t,()=>this[n(505)](),this[n(490)],n(495)),r[n(425)]="",r[n(480)](i)}async[It(426)](t,e){const n=It,r=document[n(491)](t[n(436)]);if(!r)throw new Error(n(485)+t[n(436)]);await this[n(404)](t,e);const i=this[n(505)](),s={autoSlideInterval:(t[n(454)]?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t[n(502)],aspectRatio:t[n(472)]},o=ct[n(417)](t,e,s,i,this[n(490)]);o&&(r[n(425)]="",r.appendChild(o),this.debug&&console[n(507)](n(407)+t.id+" with "+e[n(445)]+" ads (optimized: "+(t[n(502)]||n(493))+")"))}async[It(512)](t,e){const n=It;if(!t[n(445)])return{width:"100%",height:this[n(438)](),aspectRatio:16/9};try{const r=(await Promise[n(455)](t[n(481)](t=>t[n(496)])[n(440)](t=>this[n(471)](t[n(496)])))).filter(t=>"fulfilled"===t.status).map(t=>t[n(467)]);if(0===r.length)return{width:"100%",height:this[n(438)](),aspectRatio:16/9};const i=this.selectOptimalSizeStrategy(r),s=this[n(444)](r,e,i);return this[n(490)]&&console[n(507)]("📐 Optimal banner container calculated: "+e+"x"+s+n(500)+i+")"),{width:"100%",height:s+"px",aspectRatio:e/s}}catch(t){return console.warn(n(492),t),{width:n(413),height:this.getDefaultHeight(),aspectRatio:16/9}}}async[It(404)](t,e){const n=It;try{const r=document[n(491)](t[n(436)]),i=document[n(491)](t.id);if(!r||!i)return;const s=r[n(447)]()[n(499)]||300,o=await this[n(512)](e,s);i[n(403)].height=o[n(452)],t.optimizedHeight=o[n(452)],t[n(472)]=o[n(472)],this.debug&&console[n(507)](n(474)+e[n(445)]+n(460)+o.height)}catch(t){console[n(449)](n(510),t)}}[It(511)](t){const e=It,n=t[e(440)](t=>t[e(499)]/t[e(452)]),r=new Map;n[e(458)](t=>{const n=e,i=(Math[n(433)](10*t)/10)[n(497)]();r[n(508)](i,(r.get(i)||0)+1)});const i=Math.max(...r[e(421)]()),s=t[e(445)];if(i/s>=.7)return e(457);const o=[16/9,4/3,1,1.5],a=n.filter(t=>o[e(411)](n=>Math[e(418)](t-n)<.1))[e(445)];return e(a/s>=.5?462:514)}[It(444)](t,e,n){const r=It,i=t[r(440)](t=>t[r(499)]/t[r(452)]);switch(n){case r(457):{const t=new Map;i[r(458)](e=>{const n=r,i=Math.round(10*e)/10,s=i[n(497)](),o=t[n(423)](s);o?o[n(469)]++:t.set(s,{ratio:i,count:1})});const n=Array[r(487)](t[r(421)]())[r(427)]((t,e)=>e.count>t[r(469)]?e:t);return Math[r(433)](e/n.ratio)}case"common":{const t=[{ratio:16/9,name:r(405)},{ratio:4/3,name:"4:3"},{ratio:1,name:r(414)},{ratio:1.5,name:r(504)}],n=i[r(427)]((t,e)=>t+e,0)/i[r(445)],s=t[r(427)]((t,e)=>Math[r(418)](e[r(451)]-n)<Math.abs(t[r(451)]-n)?e:t);return this[r(490)]&&console[r(507)](r(482)+s[r(461)]+r(435)+n[r(486)](2)+")"),Math[r(433)](e/s.ratio)}default:{const t=i[r(427)]((t,e)=>t+e,0)/i[r(445)];return Math[r(433)](e/t)}}}[It(471)](t){return new Promise((e,n)=>{const r=vt,i=new Image;i.onload=()=>{const t=vt;e({width:i[t(415)],height:i[t(478)]})},i[r(483)]=()=>{n(new Error("Failed to load image: "+t))},i[r(470)]=t})}[It(432)](t,e,n){const r=It,i=e/n;Math.abs(i-1)<.1?(t[r(403)].objectFit=r(509),t.style[r(475)]=r(453)):i>1.3?(t[r(403)][r(450)]=r(437),t[r(403)][r(475)]=r(453),t[r(403)][r(443)]=r(428)):i<.7?(t[r(403)][r(450)]=r(509),t[r(403)][r(475)]=r(453)):(t[r(403)][r(450)]=r(509),t.style[r(475)]=r(453)),this[r(490)]&&console[r(507)](r(406)+t[r(403)][r(450)]+r(466)+i[r(486)](2))}async[It(409)](t,e,n){const r=It,i=document[r(476)](r(477));i[r(403)][r(499)]="100%",i[r(403)][r(452)]=r(413),i[r(403)][r(465)]=r(503),i[r(403)].borderRadius=r(441),i[r(498)]=e[r(456)]||r(479),t.innerHTML=r(489);try{if(!e[r(496)])throw new Error(r(494));const s=await this.loadImageDimensions(e.imageUrl),o=t[r(447)](),a=o[r(499)],c=o[r(452)];this.debug&&(console.log(r(442)+s[r(499)]+"x"+s[r(452)]),console[r(507)]("📦 Banner container dimensions: "+a+"x"+c));const d=s[r(499)]/s[r(452)],l=a/c;return this[r(432)](i,d,l),i[r(470)]=e[r(496)],t.innerHTML="",t[r(480)](i),it[r(430)](i,e,n,()=>this.createEventTrackingCallback(),this[r(490)],r(495)),this.debug&&console[r(507)](r(422)+e[r(513)]),i}catch(s){return console[r(464)]("❌ Failed to load optimized banner image:",s),e[r(496)]&&(i[r(470)]=e.imageUrl,i[r(403)][r(450)]=r(509),i[r(403)][r(475)]=r(453),t[r(425)]="",t[r(480)](i),it[r(430)](i,e,n,()=>this.createEventTrackingCallback(),this[r(490)],r(495))),i}}}function bt(){const t=["getBoundingClientRect","70sxcqzD","warn","objectFit","ratio","height","center","config","allSettled","title","dominant","forEach","adstage-ad adstage-banner-ad"," ads: ","name","common","5uCFmUj","error","display",", ratio=","value","1595088nWELgH","count","src","loadImageDimensions","aspectRatio","renderAdElement","🔧 Banner container optimized for ","objectPosition","createElement","img","naturalHeight","Banner Advertisement","appendChild","filter","📊 Using standard ratio: ","onerror","9snpAFD","Container not found: ","toFixed","from","<div>",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"debug","getElementById","Failed to calculate optimal banner size, using defaults:","default","Image URL is not provided","Banner","imageUrl","toString","alt","width"," (strategy: ","9RsfsuV","optimizedHeight","block","3:2","createEventTrackingCallback","461120JaNMmr","log","set","cover","Banner container optimization failed, using default size:","selectOptimalSizeStrategy","calculateOptimalContainerSize","_id","average","style","optimizeContainerForBannerAds","16:9","🎨 Banner image style applied: objectFit=","🎠 Banner carousel created for slot: ","calculateAdSize","renderOptimizedBannerImage","673716JOCmtD","some","874454jKqeZG","100%","1:1","naturalWidth","Banner Ad","createSliderContainer","abs","39646TGYvoR","className","values","✅ Optimized banner image rendered for ad: ","get","215990VvlHXX","innerHTML","renderMultipleAds","reduce","#f0f0f0","250px","addClickEventForRenderer","parentElement","applyOptimizedImageStyle","round","div"," (avg: ","containerId","contain","getDefaultHeight","BANNER","map","8px","📸 Banner image dimensions: ","backgroundColor","calculateOptimalHeight","length","927685SDAarJ"];return(bt=function(){return t})()}function wt(){const t=["\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n ","2wBVKDv","5608080qZXNdQ","84284QMopeL","208035piCkSV","610FUpSOY","32oPsblh","textContent","4524360BECjCB","title","30846kYQQnH","466695djdiKT","setTextAdContent","867461rhjlHt","createTextAdStyles"];return(wt=function(){return t})()}const kt=Et;function Et(t,e){const n=wt();return(Et=function(t,e){return n[t-=395]})(t,e)}!function(){const t=Et,e=wt();for(;;)try{if(395099===parseInt(t(395))/1*(-parseInt(t(400))/2)+-parseInt(t(403))/3+-parseInt(t(402))/4+parseInt(t(404))/5*(parseInt(t(409))/6)+-parseInt(t(397))/7*(-parseInt(t(405))/8)+-parseInt(t(401))/9+parseInt(t(407))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class At{static[kt(398)](t=!1){return kt(399)}static[kt(396)](t,e){const n=kt,r=e[n(406)]||e[n(408)]||"";t.textContent=r}}const xt=Tt;function St(){const t=["touchmove","10736210qIeiOC","mouseleave","adType","auto","hidden","adstage-ad adstage-","adstage-fade-slide-container","\n ","setTextAdContent","52811SjtlQU","opacity","appendChild","left","height: auto; min-height: fit-content;","top","height","height: 100%;","translateY(0)","width","addTouchSupport","createTextAdStyles","26152ksJhFW","16zEGRqY",";\n width: 100%;\n ","zIndex","position","setAttribute","setProperty","touches","includes","toLowerCase","string","forEach","970812pfreMA","cssText","relative","data-adstage-slot-id",";\n left: ","whiteSpace","mouseenter","trackSlideViewable","className","clientY",";\n ","598194WpDIJN","minHeight","createTextTransitionContainer","clientX","2dSWjig","translateY(20px)","10WlLIeC","autoSlideInterval","div","addEventListener","length","_id","transform","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","style","block","getBoundingClientRect","entries","713862fWzkHE","changedTouches","createSimpleAdElement","absolute","touchend","fit-content","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","4502477aykMue",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","removeChild","abs","data-adstage-ad-id","height: auto;","adstage-fade-slide","createElement"];return(St=function(){return t})()}function Tt(t,e){const n=St();return(Tt=function(t,e){return n[t-=189]})(t,e)}!function(){const t=Tt,e=St();for(;;)try{if(325406===parseInt(t(252))/1*(-parseInt(t(213))/2)+-parseInt(t(198))/3+-parseInt(t(264))/4*(-parseInt(t(215))/5)+parseInt(t(209))/6+-parseInt(t(234))/7+parseInt(t(265))/8*(parseInt(t(227))/9)+parseInt(t(243))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ct{static[xt(229)](t,e){const n=xt,r=document[n(241)](n(217));return r.className=n(248)+String(t[n(245)])[n(195)](),r[n(191)](n(238),e[n(220)]),r[n(191)](n(201),t.id),r[n(223)][n(199)]=At[n(263)](!0),At[n(251)](r,e),r}static[xt(211)](t,e,n,r,i=!1){const s=xt,o=t.height&&0!==t[s(258)]&&"auto"!==t.height,a=document.createElement(s(217));a.className="adstage-fade-slider-wrapper";const c={position:s(200),overflow:s(247),display:s(224)};if(!o&&(c[s(258)]="auto",c[s(210)]=s(232)),t.width&&0!==t[s(261)]){let e;e=typeof t[s(261)]===s(196)?t[s(261)][s(194)]("px")||t.width[s(194)]("%")?t[s(261)]:t[s(261)]+"px":t.width+"px",c.width=e}if(t[s(258)]&&0!==t[s(258)]&&"auto"!==t[s(258)]&&o){let e;e=typeof t[s(258)]===s(196)&&(t[s(258)][s(194)]("px")||t.height[s(194)]("%"))?t[s(258)]:t[s(258)]+"px",c[s(258)]=e}Object[s(226)](c)[s(197)](([t,e])=>{const n=s;a[n(223)][n(192)](t,e)});const d=document.createElement("div");d.className=s(249),d[s(223)][s(199)]="\n position: relative;\n width: 100%;\n "+s(o?259:256)+s(250);let l=null;const u=!t[s(261)]||0===t[s(261)],p=!t[s(258)]||0===t[s(258)]||void 0===t[s(258)]||t[s(258)]===s(246);if(u||p&&o){if(l=document[s(241)](s(217)),l[s(223)][s(199)]=s(222),!u&&t[s(261)]){let e;e=typeof t[s(261)]===s(196)?t[s(261)][s(194)]("px")||t[s(261)][s(194)]("%")?t[s(261)]:t[s(261)]+"px":t.width+"px",l.style[s(261)]=e,l[s(223)][s(203)]="normal"}document.body[s(254)](l);let n=0,r=0;e.forEach(e=>{const i=s,o=this.createSimpleAdElement(t,e);l[i(254)](o);const a=o[i(225)]();a[i(261)]>n&&(n=a[i(261)]),a[i(258)]>r&&(r=a[i(258)]),l[i(236)](o)}),u&&n>0&&(a[s(223)][s(261)]=n+"px"),p&&r>0&&o&&(a.style.height=r+"px"),document.body[s(236)](l)}const h=[];e.forEach((e,n)=>{const a=s,c=document.createElement(a(217));c[a(206)]=a(240);const l=o?"absolute":a(0===n?200:230);c[a(223)][a(199)]="\n position: "+l+";\n top: "+("absolute"===l?"0":a(246))+a(202)+(l===a(230)?"0":"auto")+a(266)+a(o?259:239)+a(233)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":"20px")+a(235)+(0===n?"2":"1")+a(208);const u=this[a(229)](t,e);it.addClickEventForSlider(u,e,t,r,i,"Text"),c[a(254)](u),d[a(254)](c),h.push(c)});let f=0;const g=e[s(219)],m=1e3*(n?.[s(216)]||4),I=n=>{const a=s;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c.style[a(190)]===a(200)&&(c.style[a(190)]=a(230),c[a(223)].top="0",c[a(223)][a(255)]="0"),d[a(223)][a(190)]=a(200),d[a(223)][a(257)]=a(246),d.style[a(255)]="auto"),c.style[a(253)]="0",c[a(223)][a(221)]="translateY(-20px)",c.style[a(189)]="1",d[a(223)].opacity="1",d[a(223)][a(221)]=a(260),d.style.zIndex="2",h[a(197)]((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(223)][r(253)]="0",t[r(223)][r(221)]=r(214),t[r(223)][r(189)]="1",!o&&t[r(223)].position===r(200)&&(t[r(223)].position=r(230),t[r(223)][r(257)]="0",t[r(223)][r(255)]="0"))}),f=n,$[a(205)](e[f],t,f,r,i)};let v=setInterval(()=>{I(f+1)},m);return a[s(218)](s(204),()=>{clearInterval(v)}),a[s(218)](s(244),()=>{v=setInterval(()=>{I(f+1)},m)}),Ct.addTouchSupport(a,I,()=>f,g),a.appendChild(d),a}static[xt(262)](t,e,n,r){const i=xt;let s=0,o=0,a=!1;t[i(218)]("touchstart",t=>{const e=i;s=t[e(193)][0][e(212)],o=t[e(193)][0].clientY,a=!0}),t[i(218)](i(242),t=>{a&&t.preventDefault()}),t[i(218)](i(231),t=>{const r=i;if(!a)return;a=!1;const c=t.changedTouches[0].clientX,d=t[r(228)][0][r(207)],l=s-c,u=o-d;if(Math[r(237)](l)>Math.abs(u)&&Math[r(237)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Dt=_t;function _t(t,e){const n=Rt();return(_t=function(t,e){return n[t-=478]})(t,e)}function Rt(){const t=[" ads","createElement","adstage-text-content"," with ","config","2137914rlTHnL","Container not found: ","getDefaultHeight","containerId","2948984lmQPWb","number","117183RDJFwZ","408QyGmRg","log","_id","optimizedHeight","style","4750810NNEmMr","appendChild","adstage-ad adstage-text-ad","innerHTML","✨ Single text ad rendered: ","length","addClickEventForRenderer","width","debug","4zpDxbY","className","height","TEXT","getElementById","5KnEVWc","hidden","Text","105AbjDTw","9wlaGyV","renderMultipleAds","display","createTextTransitionContainer","maxLines","webkitLineClamp","5525310FCQfGI","parentElement","60px","aspectRatio","overflow","100%","193432njkHHC","✨ Text transition created for slot: ","-webkit-box","13183zNhjbX","createEventTrackingCallback","createTextAdStyles"];return(Rt=function(){return t})()}!function(){const t=_t,e=Rt();for(;;)try{if(669321===-parseInt(t(486))/1*(parseInt(t(515))/2)+-parseInt(t(494))/3+-parseInt(t(498))/4*(-parseInt(t(520))/5)+parseInt(t(530))/6+-parseInt(t(523))/7*(parseInt(t(483))/8)+parseInt(t(524))/9*(parseInt(t(506))/10)+-parseInt(t(500))/11*(parseInt(t(501))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt extends gt{constructor(t=!1,e){super(o[_t(518)],t,e)}[Dt(496)](){return Dt(479)}async renderAdElement(t,e){const n=Dt,r=document[n(519)](t[n(497)]);if(!r)return;const i=document.createElement("div");i[n(516)]=n(508);const s=t.optimizedHeight,o=r[n(478)]||r;if(s)i[n(505)].width=n(482),i[n(505)].height=String(s);else{const e=t[n(493)],r={width:e?.[n(513)],height:e?.[n(517)]},{width:s,height:a}=this.calculateAdSize(o,r,{debug:this[n(514)]});i[n(505)][n(513)]=s,i[n(505)].height=a}const a=document[n(490)]("div");a[n(516)]=n(491),a[n(505)].cssText=At[n(488)](!1),At.setTextAdContent(a,e);const c=t[n(493)]?.[n(528)];c&&typeof c===n(499)&&(a[n(505)][n(526)]=n(485),a.style[n(529)]=String(c),a[n(505)].webkitBoxOrient="vertical",a[n(505)][n(481)]=n(521)),i[n(507)](a),it[n(512)](i,e,t,()=>this[n(487)](),this.debug,n(522)),r.innerHTML="",r.appendChild(i),this[n(514)]&&console[n(502)](n(510)+e[n(503)])}async[Dt(525)](t,e){const n=Dt,r=document[n(519)](t[n(497)]);if(!r)throw new Error(n(495)+t[n(497)]);const i=this[n(487)](),s={autoSlideInterval:(t[n(493)]?.slideInterval||5e3)/1e3,...t[n(493)],optimizedHeight:t[n(504)],aspectRatio:t[n(480)]},o=Ct[n(527)](t,e,s,i,this[n(514)]);o&&(r[n(509)]="",r[n(507)](o),this[n(514)]&&console[n(502)](n(484)+t.id+n(492)+e[n(511)]+n(489)))}}const zt=Pt;function Ut(){const t=["loadeddata","2310940bFzbkM","title","setAttribute","head"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","mouseleave","adstage-video-mute-button","hideCurrentTime","playsinline","adstage-video-container","loadedmetadata","containerId","🎬 Video element created for ad: ","addClickEventForRenderer","style","mouseenter","scale(1)","hidePlayButton","none","stopPropagation","transform","\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 ","unmuted","hideFullscreenButton","display","hideRemainingTime","Video thumbnail","22iZsysT","Click to unmute","\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 ","debug","Video","height","1048754okKKmk",'\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 ',"_id"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ",", muted: ","575816OFOSvf","preload","hideVolumeSlider","length","🎬 Video metadata loaded, attempting autoplay...","🎬 Initial autoplay attempt after timeout...","hideControls","365ceTFBE","metadata","19242unjiwF","90gIYpDZ","block"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","1382MsVclM","renderVideoElementDirect","textContent","🔊 Video mute toggled: ","play","appendChild","objectFit","🎬 Final video settings:","videoUrl","imageUrl","Video fallback","100%","createEventTrackingCallback","rgba(0, 0, 0, 0.7)","catch","⚠️ No video advertisements available for slot: ","img","createElement","src"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ",'\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 ',"contain","🎬 Single video ad rendered: ","2234106WLRHpc","🎬 Autoplay completely failed:","\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 ","loop","error","log","button","video","className","muted","253977OnVcHq","hideProgressBar","🎬 Video controls setting:","innerHTML","12UEZDtW","\n pointer-events: none;\n ","VIEWABLE","renderAdElement","Video load failed:","Click to mute"," (autoplay: ","🎬 Single video rendered for VIDEO slot: ","rgba(0, 0, 0, 0.9)","scale(1.1)","width","Container not found: ","adstage-video-default-controls","div","🎬 Video data loaded, attempting autoplay...","autoplay","cssText"," !important;\n }\n ","addEventListener","click","VIDEO","🎬 User explicitly enabled controls, overriding default","controls","alt","renderMultipleAds","getElementById","background","position","canplay","warn","customControls"];return(Ut=function(){return t})()}function Pt(t,e){const n=Ut();return(Pt=function(t,e){return n[t-=133]})(t,e)}!function(){const t=Pt,e=Ut();for(;;)try{if(178433===parseInt(t(143))/1*(parseInt(t(146))/2)+-parseInt(t(179))/3*(parseInt(t(183))/4)+parseInt(t(140))/5*(parseInt(t(142))/6)+-parseInt(t(248))/7+parseInt(t(133))/8+-parseInt(t(169))/9+parseInt(t(215))/10*(parseInt(t(242))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Mt extends gt{constructor(t=!1,e){super(o[Pt(203)],t,e)}getDefaultHeight(){return"360px"}async[zt(186)](t,e){const n=zt,r=document[n(208)](t.containerId);if(!r)return;const i=document.createElement(n(196));i[n(177)]=n(224),i[n(229)][n(199)]=n(236),this[n(147)](i,e,t),r.innerHTML="",r[n(151)](i),this[n(245)]&&console[n(174)](n(168)+e[n(250)])}async[zt(207)](t,e){const n=zt,r=document[n(208)](t[n(226)]);if(!r)throw new Error(n(194)+t[n(226)]);if(e[n(136)]>0){const i=e[0],s=document[n(163)](n(196));s.className="adstage-video-container",s[n(229)][n(199)]="\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.renderVideoElementDirect(s,i,t),r.innerHTML="",r[n(151)](s);const o=this[n(158)]();setTimeout(()=>{const e=n;o(i[e(250)],t.id,p[e(185)])},100),this[n(245)]&&console[n(174)](n(190)+t.id+" ("+i[n(250)]+")")}else this[n(245)]&&console[n(212)](n(161)+t.id)}[zt(147)](t,e,n){const r=zt;t[r(229)][r(210)]="relative";const i=document[r(163)](r(176));i[r(229)][r(193)]=r(157),i[r(229)].height=r(157),i.style.objectFit=r(167),i[r(134)]=r(141);const s=n.config;if(this[r(245)]&&console[r(174)]("🎬 Video config received:",s),i[r(205)]=!1,i[r(198)]=!1!==s?.[r(198)],i[r(178)]=!0,i.loop=!1!==s?.[r(172)],this[r(245)]&&console[r(174)](r(153),{autoplay:i[r(198)],muted:i.muted,loop:i.loop,controls:i[r(205)]}),!1!==s?.[r(223)]&&i[r(217)]("playsinline",""),!0===s?.controls&&(i[r(205)]=!0,this[r(245)]&&console[r(174)](r(204))),s?.[r(139)])i[r(205)]=!1,i[r(229)][r(199)]+=r(184);else if(s?.[r(213)]){if(i[r(205)]){const t=document[r(163)]("style");t[r(148)]="\n video::-webkit-media-controls-play-button {\n display: "+(s[r(213)][r(232)]?r(233):r(144))+r(219)+(s[r(213)][r(180)]?"none":r(144))+r(145)+(s.customControls[r(222)]?r(233):r(144))+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(s[r(213)][r(240)]?r(233):r(144))+r(165)+(s.customControls[r(135)]?"none":"block")+r(251)+(s[r(213)].hideMuteButton?r(233):r(144))+" !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: "+(s[r(213)][r(238)]?"none":"block")+r(200),document[r(218)][r(151)](t)}}else if(i[r(205)]){const t=document[r(163)](r(229));t.id="adstage-video-default-controls",t[r(148)]=r(171),!document[r(208)](r(195))&&document[r(218)][r(151)](t)}this[r(245)]&&console[r(174)](r(181),i.controls?"enabled":"disabled (default)");const o=document[r(163)](r(175));o[r(177)]=r(221),o[r(229)][r(199)]=r(244),s?.[r(139)]&&(o.style[r(239)]=r(233));const a=()=>{const t=r,e=t(166),n=t(249);o[t(182)]=i[t(178)]?e:n,o[t(216)]=i[t(178)]?t(243):t(188)};if(a(),o[r(201)](r(202),t=>{const e=r;t[e(234)](),i[e(178)]=!i.muted,a(),this[e(245)]&&console[e(174)](e(149)+(i[e(178)]?e(178):e(237)))}),o[r(201)](r(230),()=>{const t=r;o[t(229)].background=t(191),o[t(229)][t(235)]=t(192)}),o.addEventListener(r(220),()=>{const t=r;o[t(229)][t(209)]=t(159),o[t(229)][t(235)]=t(231)}),e.videoUrl){i[r(164)]=e[r(154)];const t=()=>{const t=r;i[t(198)]&&i[t(178)]&&i.paused&&i[t(150)]()[t(160)](e=>{const n=t;this[n(245)]&&(console[n(212)]("🎬 Auto-play was prevented:",e),console[n(212)]("🎬 Trying muted autoplay fallback...")),i[n(178)]=!0,i[n(150)]().catch(t=>{const e=n;this[e(245)]&&console.error(e(170),t)})})};i.addEventListener(r(225),()=>{const e=r;this[e(245)]&&console[e(174)](e(137)),t()}),i[r(201)](r(211),()=>{const e=r;this[e(245)]&&console[e(174)]("🎬 Video can play, attempting autoplay..."),t()}),i[r(201)](r(214),()=>{const e=r;this[e(245)]&&console[e(174)](e(197)),t()}),setTimeout(()=>{const e=r;this[e(245)]&&console[e(174)](e(138)),t()},100)}else if(e[r(155)]){const n=document.createElement(r(162));return n.src=e.imageUrl,n[r(229)].width="100%",n[r(229)][r(247)]=r(157),n[r(229)][r(152)]=r(167),n.alt=e.title||r(241),void t[r(151)](n)}it[r(228)](i,e,n,()=>this[r(158)](),this[r(245)],r(246)),i[r(201)](r(173),i=>{const s=r;if(console.error(s(187),i),e[s(155)]){const r=document[s(163)](s(162));r[s(164)]=e[s(155)],r.style[s(193)]=s(157),r[s(229)].height="100%",r[s(229)].objectFit="contain",r[s(206)]=e[s(216)]||s(241),it.addClickEventForRenderer(r,e,n,()=>this[s(158)](),this[s(245)],s(156)),t[s(182)]="",t[s(151)](r)}}),t.appendChild(i),t[r(151)](o),this.debug&&console[r(174)](r(227)+e._id+r(189)+i[r(198)]+r(252)+i[r(178)]+", loop: "+i[r(172)]+")")}}const Bt=Ot;function Ot(t,e){const n=Nt();return(Ot=function(t,e){return n[t-=219]})(t,e)}!function(){const t=Ot,e=Nt();for(;;)try{if(905460===-parseInt(t(244))/1+-parseInt(t(228))/2+-parseInt(t(237))/3+-parseInt(t(225))/4*(parseInt(t(261))/5)+-parseInt(t(232))/6+-parseInt(t(235))/7*(-parseInt(t(246))/8)+-parseInt(t(239))/9*(-parseInt(t(260))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Vt extends gt{constructor(t=!1,e){super(o[Ot(224)],t,e)}[Bt(257)](){return Bt(238)}async[Bt(242)](t,e){const n=Bt,r=document.getElementById(t[n(222)]);if(!r)return;const i=document[n(251)]("div");if(i[n(233)]=n(230),i[n(229)].cssText=n(226),e[n(258)]){const t=document.createElement("h3");t.textContent=e[n(258)],t[n(229)][n(245)]="\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ",i.appendChild(t)}if(e[n(236)]){const t=document[n(251)]("p");t[n(236)]=e.textContent,t[n(229)][n(245)]=n(254),i[n(255)](t)}if(e[n(252)]){const t=document[n(251)]("div");t[n(229)][n(245)]="\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ";const r=document[n(251)](n(250));r[n(243)]=e.imageUrl,r[n(249)]=e[n(258)]||n(248),r.style[n(245)]="\n width: 100%;\n height: 100%;\n object-fit: cover;\n ",t.appendChild(r),i[n(255)](t)}if(e[n(234)]){const t=document.createElement("button");t[n(236)]="Learn More",t[n(229)][n(245)]=n(219),t[n(241)]("click",()=>{const t=n;this[t(220)]&&console[t(247)]("Native click tracked for ad: "+e[t(223)]),window[t(253)](e[t(234)],"_blank")}),t.addEventListener("mouseenter",()=>{t.style.backgroundColor="#2563eb"}),t.addEventListener(n(240),()=>{const e=n;t.style[e(221)]="#3b82f6"}),i[n(255)](t)}r[n(256)]="",r.appendChild(i),this[n(231)]&&console[n(247)]("🏠 Single native ad rendered: "+e[n(223)])}async renderMultipleAds(t,e){const n=Bt;e.length>0?(await this[n(242)](t,e[0]),this[n(231)]&&console[n(247)](n(227)+e.length+"): "+t.id)):this.debug&&console[n(259)]("⚠️ No native advertisements available for slot: "+t.id)}}function Nt(){const t=["4938910QGDRkZ","65bGfnEB","\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 ","advertisementEventTracker","backgroundColor","containerId","_id","NATIVE","153116TVUjXu","\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 ","🏠 Native ad rendered (first of ","708890pPfOYs","style","adstage-ad adstage-native-ad","debug","2758548AyGdgR","className","linkUrl","7098keIFKx","textContent","2472654vJPzVj","200px","36wfeful","mouseleave","addEventListener","renderAdElement","src","699430VvkibE","cssText","13928JsNrZJ","log","Native Advertisement","alt","img","createElement","imageUrl","open","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","appendChild","innerHTML","getDefaultHeight","title","warn"];return(Nt=function(){return t})()}function Ft(t,e){const n=Kt();return(Ft=function(t,e){return n[t-=353]})(t,e)}const Ht=Ft;!function(){const t=Ft,e=Kt();for(;;)try{if(740661===parseInt(t(411))/1*(-parseInt(t(381))/2)+-parseInt(t(397))/3+parseInt(t(409))/4+-parseInt(t(355))/5+-parseInt(t(387))/6+-parseInt(t(408))/7+parseInt(t(359))/8*(parseInt(t(391))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class jt extends gt{constructor(t=!1,e){super(o[Ft(372)],t,e)}[Ht(376)](){return"400px"}async renderAdElement(t,e){const n=Ht;if(!document[n(386)](t[n(393)]))return;const r=document[n(395)]("div");r[n(416)]="adstage-interstitial-overlay",r[n(356)][n(388)]=n(385);const i=document[n(395)](n(405));i[n(416)]=n(379),i[n(356)].cssText=n(413);const s=document[n(395)](n(375));if(s[n(369)]="×",s[n(356)].cssText=n(366),s[n(404)]("click",()=>{this[n(415)](r)}),s.addEventListener("mouseenter",()=>{const t=n;s.style[t(392)]=t(418),s[t(356)][t(363)]=t(364)}),s[n(404)]("mouseleave",()=>{const t=n;s[t(356)][t(392)]="#f3f4f6",s.style[t(363)]="#6b7280"}),e[n(417)]){const t=document[n(395)](n(367));t[n(361)]=e[n(417)],t[n(414)]=e[n(400)]||"Interstitial Advertisement",t[n(356)][n(388)]=n(384),i[n(357)](t)}if(e.title){const t=document[n(395)]("h2");t[n(412)]=e.title,t[n(356)].cssText=n(406),i.appendChild(t)}if(e.textContent){const t=document[n(395)]("p");t[n(412)]=e[n(412)],t[n(356)][n(388)]="\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ",i.appendChild(t)}if(e.linkUrl){const t=document[n(395)](n(375));t[n(412)]=n(396),t.style[n(388)]=n(373),t[n(404)](n(382),()=>{const t=n;this[t(368)]&&console[t(402)]("Interstitial click tracked for ad: "+e[t(362)]),window[t(390)](e[t(419)],t(394)),this[t(415)](r)}),t[n(404)]("mouseenter",()=>{const e=n;t[e(356)][e(392)]=e(374)}),t[n(404)]("mouseleave",()=>{const e=n;t.style.backgroundColor=e(354)}),i[n(357)](t)}const o=t=>{const e=n;t[e(401)]===e(420)&&(this.closeInterstitial(r),document.removeEventListener(e(360),o))};if(document[n(404)]("keydown",o),r.addEventListener("click",t=>{t.target===r&&this.closeInterstitial(r)}),!document.getElementById("adstage-interstitial-styles")){const t=document[n(395)](n(356));t.id=n(389),t[n(412)]=n(371),document[n(383)].appendChild(t)}i[n(357)](s),r[n(357)](i),document[n(399)][n(357)](r),this[n(365)]&&console[n(402)](n(407)+e[n(362)])}async[Ht(380)](t,e){const n=Ht;e.length>0?(await this[n(377)](t,e[0]),this[n(365)]&&console[n(402)](n(410)+e.length+"): "+t.id)):this.debug&&console[n(378)](n(398)+t.id)}[Ht(415)](t){const e=Ht;t[e(356)][e(353)]=e(403),setTimeout(()=>{const n=e;t[n(358)]&&t[n(358)].removeChild(t)},300),this.debug&&console.log(e(370))}}function Kt(){const t=["advertisementEventTracker","innerHTML","🖼️ Interstitial ad closed","\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 ","INTERSTITIAL","\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 ","#2563eb","button","getDefaultHeight","renderAdElement","warn","adstage-interstitial-content","renderMultipleAds","14QOJpne","click","head","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","\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 ","getElementById","2841258aWzKnp","cssText","adstage-interstitial-styles","open","6073263roAtqq","backgroundColor","containerId","_blank","createElement","Get Started","1694796Ccqnex","⚠️ No interstitial advertisements available for slot: ","body","title","key","log","fadeOut 0.3s ease-out forwards","addEventListener","div","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","🖼️ Interstitial ad rendered: ","3253509enaGOs","4332464TFuBHm","🖼️ Interstitial ad rendered (first of ","17373gCYxyd","textContent","\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 ","alt","closeInterstitial","className","imageUrl","#e5e7eb","linkUrl","Escape","animation","#3b82f6","3710015xXbYkQ","style","appendChild","parentNode","24tKrInt","keydown","src","_id","color","#374151","debug","\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 ","img"];return(Kt=function(){return t})()}const Wt=qt;function qt(t,e){const n=Gt();return(qt=function(t,e){return n[t-=229]})(t,e)}function Gt(){const t=["img"," renderers","206622dRGzkD","src","advertisement","No advertisement to render","getRenderer","406903ZLzvHi","100%","🏭 AdRenderer factory initialized with ","getDefaultHeight","style","toLowerCase","TEXT","warn","renderOptimizedBannerImage","8ZTwsHo","imageUrl","setAttribute","advertisementEventTracker","adType","8px","createElement","685572ODVyRU","height","renderAdSlider","naturalHeight","initializeRenderers","videoUrl","_id","div","4182453BAYQAX","border","321810mfHsrR","appendChild","No renderer found for ad type: ","onload","9Thdccy","block","renderOptimizedBannerImage is only supported for BANNER ads","cover","#f9f9f9","291550LRqulq","calculateAdSize","VIDEO","getDefaultHeightForAdType","calculateOptimalContainerSize","renderAd","NATIVE","config","BANNER","adstage-ad adstage-","renderMultipleAds","INTERSTITIAL","data-adstage-ad-id","28MxkAtO","naturalWidth","objectFit","renderFallback","textContent","createPlaceholder","renderers","debug","[AdRenderer] ","379PFGRPo","backgroundColor","padding","createAdElement","log","5VUitfR","set","renderAdElement","optimizeContainerForBannerAds","width","loadImageDimensions"];return(Gt=function(){return t})()}!function(){const t=qt,e=Gt();for(;;)try{if(111613===parseInt(t(249))/1*(parseInt(t(240))/2)+-parseInt(t(262))/3+-parseInt(t(283))/4+parseInt(t(254))/5*(parseInt(t(293))/6)+parseInt(t(267))/7*(-parseInt(t(276))/8)+parseInt(t(297))/9*(-parseInt(t(302))/10)+parseInt(t(291))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Yt{constructor(t=!1,e){const n=qt;this.renderers=new Map,this[n(247)]=t,this[n(279)]=e||null,this[n(287)]()}[Wt(287)](){const t=Wt;this.renderers.set(o.BANNER,new yt(this[t(247)],this[t(279)])),this.renderers[t(255)](o[t(273)],new Lt(this.debug,this[t(279)])),this[t(246)][t(255)](o[t(229)],new Mt(this[t(247)],this[t(279)])),this[t(246)].set(o[t(233)],new Vt(this[t(247)],this[t(279)])),this[t(246)].set(o[t(238)],new jt(this[t(247)],this[t(279)])),this.debug&&console[t(253)](t(269)+this[t(246)].size+t(261))}[Wt(252)](t,e){const n=Wt,r=this[n(266)](t[n(280)]),i=document.createElement(n(290));i.className=n(236)+String(t.adType)[n(272)](),i[n(278)](n(239),e[n(289)]),i[n(278)]("data-adstage-slot-id",t.id);const{width:s,height:a}=r[n(303)](i,t[n(234)]||{},e);switch(i[n(271)][n(258)]=s,i[n(271)][n(284)]=a,i.style.display=n(298),t[n(280)]){case o[n(235)]:if(e[n(277)]){const t=document[n(282)](n(260));t[n(263)]=e.imageUrl,t.style.width=n(268),t[n(271)][n(284)]=n(268),t[n(271)][n(242)]=n(300),i[n(294)](t)}break;case o[n(229)]:if(e[n(288)]){const t=document[n(282)]("video");t.src=e.videoUrl,t.style.width=n(268),t.style.height=n(268),i.appendChild(t)}break;case o[n(273)]:if(e[n(244)]){const t=document[n(282)](n(290));t[n(244)]=e[n(244)]||"",t.style[n(251)]=n(281),i.appendChild(t)}break;default:i[n(271)][n(292)]="1px dashed #ccc",i[n(271)][n(250)]=n(301),i[n(244)]=t[n(280)]+" Ad"}return i}[Wt(266)](t){const e=Wt,n=this[e(246)].get(t);if(!n)throw new Error(e(295)+t);return n}[Wt(245)](t,e,n,r,i){const s=Wt;this[s(266)](n)[s(245)](t,e,r,i)}async[Wt(257)](t,e){const n=Wt;if(t[n(280)]!==o[n(235)])return void(this.debug&&console[n(274)]("⚠️ Container optimization is only supported for BANNER ads, got: "+t[n(280)]));const r=this[n(266)](o.BANNER);await r.optimizeContainerForBannerAds(t,e)}async[Wt(285)](t,e){const n=Wt,r=this[n(266)](t.adType);await r[n(237)](t,e)}async[Wt(232)](t){const e=Wt;if(!t[e(264)])throw new Error(e(265));const n=this[e(266)](t[e(280)]);await n[e(256)](t,t.advertisement),t.isLoaded=!0}async renderAdElement(t,e){const n=this[Wt(266)](t.adType);await n.renderAdElement(t,e)}[Wt(243)](t){const e=Wt;this[e(266)](t.adType)[e(243)](t)}[Wt(230)](t){const e=Wt;return this[e(266)](t)[e(270)]()}[Wt(303)](t,e,n,r){return this.getRenderer(e).calculateAdSize(t,n,r)}[Wt(259)](t){return new Promise((e,n)=>{const r=qt,i=new Image;i[r(296)]=()=>{const t=r;e({width:i[t(241)],height:i[t(286)]})},i.onerror=()=>{n(new Error("Failed to load image: "+t))},i[r(263)]=t})}async[Wt(275)](t,e,n){const r=Wt;if(n[r(280)]!==o[r(235)])throw new Error(r(299));const i=this.getRenderer(o.BANNER);return await i[r(275)](t,e,n)}async[Wt(231)](t,e,n){const r=Wt;if(n!==o[r(235)]){const t=this[r(266)](n);return{width:r(268),height:t[r(270)](),aspectRatio:16/9}}const i=this[r(266)](o[r(235)]);return await i[r(231)](t,e)}log(t,...e){const n=Wt;this[n(247)]&&console[n(253)](n(248)+t,...e)}}const Zt=Xt;function Jt(){const t=["config","adstage-","createAdWithRetry","getSlotById","setupAutoCleanup","❌ Failed to find element for viewability tracking: ","deviceType","advertisements","API key not configured","body","viewabilityTracker","refreshAdSlot","optimizeContainerForBannerAds","playsinline","hideControls","🔄 Retrying viewability tracking for slot: ","delete","values","data-adstage-slot-id","set","광고 생성 중 오류 발생:","Auto-cleanup failed for slot ","TEXT","json","random","handleViewableEvent","disconnect","BANNER","1099133tOuhaH","default","text","renderAdElement","📊 Fetched ","autoplay","adRenderer","getBaseUrl","autoDestroy","fetchAdData","length","mutationObserver","🔍 Auto-cleanup MutationObserver enabled","getConfig","🎯 Ads module initialized (sync mode) with auto-cleanup","customControls","🎠 Slider will handle VIEWABLE events for ","observe","adType"," ads)","🗑️ Ad slot destroyed: ","NATIVE","6HwMrcm","querySelectorAll","100%","append","native","create","createAdInternal"," ads automatically","apiKey","trackAdvertisementEvent","getElementById","debug","toString","📊 Advertisement event tracking enabled for slot: ","status","1719135mlCdPG","warn","destroy","createAd",", filters:","language","Ads module not initialized. Call AdStage.init() first.","renderAd","auto","544254VAeabB","advertisementEventTracker"," (element found)","renderAdSlider","onClick","403284YxXpOv","Ad slot not found: ","slots",". Retrying in "," ads for type: ","loadAdContentInBackground","❌ Failed to track viewable impression:","get","containerId","VIEWABLE","clear","[data-adstage-slot-id]","video","autoSlide","✅ Simple viewable impression tracked for ad ","Container not found after ","6377900LurhNW","🗑️ Ads module destroyed","getAttribute","🚫 Advertisement not found with ID: ","country","ms... (attempt ","list","🧹 Auto-cleanup: slot ","now","2828320XPlUWd","adId","maxLines","style","string","undefined","setAttribute","width","controls","✅ Ad loaded for slot: ","handleRemovedElement","auto-","height","_config","_isReady","error","GET","30sjmZOQ","39SJVifP","4094RHChXc"," attempts: ","renderFallback","refresh","nodeType","ensureReady","removedNodes","log","startSimpleViewabilityTracking","forEach","slideInterval","substr","VIDEO","Failed to fetch ad data: ","Container not found: ","📊 Fetched specific ad with ID: ","advertisement","createPlaceholder"];return(Jt=function(){return t})()}function Xt(t,e){const n=Jt();return(Xt=function(t,e){return n[t-=315]})(t,e)}!function(){const t=Xt,e=Jt();for(;;)try{if(326563===parseInt(t(384))/1*(-parseInt(t(385))/2)+-parseInt(t(453))/3*(parseInt(t(341))/4)+parseInt(t(383))/5*(parseInt(t(336))/6)+parseInt(t(431))/7+parseInt(t(366))/8+parseInt(t(327))/9+-parseInt(t(357))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Qt{constructor(){const t=Xt;this[t(380)]=!1,this[t(379)]=null,this[t(343)]=new Map,this[t(337)]=null,this[t(437)]=null,this.mutationObserver=null}init(t){const e=Xt;this[e(379)]=t,this[e(337)]=new V(J[e(438)](),t[e(320)],t.debug||!1,this.slots),this[e(437)]=new Yt(t[e(323)]||!1,this.advertisementEventTracker),this[e(407)](),this[e(380)]=!0,t[e(323)]&&console.log(e(445))}isReady(){return this[Xt(380)]}[Zt(444)](){return this[Zt(379)]}banner(t,e){const n=Zt;this[n(390)]();const r={width:e?.width||n(455),height:e?.[n(378)]||n(335),autoSlide:e?.autoSlide||!1,slideInterval:e?.[n(395)]||5e3,onClick:e?.onClick,adId:e?.[n(367)],language:e?.language,deviceType:e?.[n(409)],country:e?.[n(361)]};return this.createAd(t,o.BANNER,r)}[Zt(433)](t,e){const n=Zt;this[n(390)]();const r={maxLines:e?.[n(368)]||3,style:e?.[n(369)]||n(432),onClick:e?.onClick,adId:e?.[n(367)],language:e?.language,deviceType:e?.[n(409)],country:e?.[n(361)]};return this.createAd(t,o[n(425)],r)}[Zt(353)](t,e){const n=Zt;this[n(390)]();const r={width:e?.[n(373)]||640,height:e?.height||360,autoplay:void 0===e?.[n(436)]||e[n(436)],muted:void 0===e?.muted||e.muted,loop:void 0===e?.loop||e.loop,playsinline:!1!==e?.[n(416)],controls:void 0!==e?.[n(374)]&&e.controls,hideControls:e?.[n(417)]||!1,customControls:e?.[n(446)],autoSlide:!1,maxAds:1,onClick:e?.[n(340)],...e?.[n(367)]&&{adId:e[n(367)]}};return this[n(330)](t,o[n(397)],r)}[Zt(316)](t,e){const n=Zt;return this[n(390)](),this[n(330)](t,o[n(452)],e||{})}interstitial(t,e){const n=Zt;return this[n(390)](),this[n(330)](t,o.INTERSTITIAL,e||{})}[Zt(388)](t){const e=Zt;this[e(390)]();const n=this[e(343)].get(t);if(!n)throw new Error(e(342)+t);this[e(414)](n),this._config?.debug&&console[e(392)]("🔄 Ad slot refreshed: "+t)}[Zt(329)](t){const e=Zt;this[e(390)]();const n=this[e(343)][e(348)](t);if(!n)return void(this[e(379)]?.[e(323)]&&console[e(392)]("🔍 Ad slot already cleaned up: "+t));n[e(413)]&&n[e(413)].destroy();const r=document.getElementById(n[e(349)]);r&&(r.innerHTML=""),this[e(343)][e(419)](t),this[e(379)]?.[e(323)]&&console[e(392)](e(451)+t)}getAllSlots(){const t=Zt;return this.ensureReady(),Array.from(this[t(343)][t(420)]())}[Zt(406)](t){const e=Zt;return this[e(390)](),this.slots[e(348)](t)||null}[Zt(330)](t,e,n){const r=Zt;if(!this[r(379)]?.[r(320)])throw new Error(r(411));const i=r(404)+e+"-"+Date[r(365)]()+"-"+Math[r(427)]().toString(36)[r(396)](2,9);return this[r(405)](t,e,n,i,0),i}async createAdWithRetry(t,e,n,r,i){const s=Zt,o=[0,50,100,200,500];let a,c=null;if(typeof t===s(370)){if(a=t,c=document[s(322)](t),!c)return i<4?(this._config?.[s(323)]&&console[s(328)](s(399)+t+s(344)+o[i+1]+s(362)+(i+1)+"/5)"),void setTimeout(()=>{this[s(405)](t,e,n,r,i+1)},o[i+1])):void console[s(381)](s(356)+5+s(386)+t)}else c=t,a=c.id||s(377)+r,!c.id&&(c.id=a);try{this[s(318)](a,e,n,r,c)}catch(t){console[s(381)](s(423),t)}}createAdInternal(t,e,n,r,i){const s=Zt;i[s(372)](s(421),r),this.adRenderer?.[s(402)](i,r,e,n,this[s(379)]);const a={id:r,containerId:t,adType:e,width:n.width||s(455),height:n[s(378)]||(e===o[s(425)]?s(335):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this.fetchAdData(e,n).then(t=>t[0]||null),render:t=>this[s(437)]?.[s(434)](a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this[s(329)](r)};this[s(343)][s(422)](r,a),this[s(346)](a),this[s(337)]&&this[s(379)]?.[s(323)]&&console[s(392)](s(325)+r)}async[Zt(346)](t){const e=Zt;try{const n=await this.fetchAdData(t[e(449)],t[e(403)]);if(!n||0===n[e(441)])return void this[e(437)]?.[e(387)](t);t[e(449)]===o[e(430)]&&n.length>0&&await(this[e(437)]?.[e(415)](t,n)),n.length>1||t[e(403)]?.[e(354)]?(await(this[e(437)]?.[e(339)](t,n)),this[e(379)]?.[e(323)]&&console.log(e(447)+n.length+e(319))):(t.advertisement=n[0],await(this[e(437)]?.[e(434)](t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t.isLoaded=!0,this[e(379)]?.debug&&console[e(392)](e(375)+t.id+" ("+n[e(441)]+e(450))}catch(n){console.error("❌ Failed to load ad for slot: "+t.id,n),this[e(437)]?.renderFallback(t)}}[Zt(393)](t,e){const n=(r=0)=>{const i=Xt,s=document[i(322)](t.id);if(!s)return void(r<5?(setTimeout(()=>n(r+1),300),this._config?.[i(323)]&&console[i(392)](i(418)+t.id+" (attempt "+(r+1)+")")):console[i(328)](i(408)+t.id));const o=new j(s,async()=>{const n=i;await this[n(428)](e,t)});t[i(413)]=o,this._config?.[i(323)]&&console.log("🎯 Simple viewability tracking started for slot: "+t.id+i(338))};n()}async[Zt(428)](t,e){const n=Zt;try{this.advertisementEventTracker&&(await this.advertisementEventTracker[n(321)](t._id,e.id,p[n(350)]),this[n(379)]?.[n(323)]&&console[n(392)](n(355)+t._id))}catch(t){console[n(381)](n(347),t)}}async[Zt(440)](t,e){const n=Zt;if(!this[n(379)]?.[n(320)])throw new Error(n(411));if(e[n(367)]){const t=""+J[n(410)].detail(e[n(367)]),r=await fetch(t,{method:n(382),headers:U[n(317)](this._config[n(320)])});if(!r.ok){if(404===r[n(326)])return console.warn(n(360)+e[n(367)]),[];throw new Error(n(398)+r[n(326)])}const i=await r[n(426)]();return this[n(379)]?.debug&&console.log(n(400)+e[n(367)],i),[i]}const r=new URLSearchParams;r[n(315)](n(449),t),e[n(332)]&&r[n(315)](n(332),e[n(332)]),e.deviceType&&r[n(315)](n(409),e[n(409)]),e[n(361)]&&r[n(315)]("country",e[n(361)]);const i=J[n(410)][n(363)]()+"?"+r[n(324)](),s=await fetch(i,{method:"GET",headers:U.create(this[n(379)][n(320)])});if(!s.ok)throw new Error(n(398)+s[n(326)]);const o=(await s[n(426)]())[n(410)]||[];return this._config?.[n(323)]&&console[n(392)](n(435)+o[n(441)]+n(345)+t+n(331),{language:e[n(332)],deviceType:e[n(409)],country:e[n(361)]}),o}async[Zt(414)](t){const e=Zt;try{const n=await this[e(440)](t.adType,t[e(403)]||{});n&&n[e(441)]>0&&(t[e(401)]=n[0],await(this[e(437)]?.[e(334)](t)),this[e(337)]&&console.log("New advertisement viewable tracked for slot:",t.id))}catch(e){console.error("Failed to refresh ad slot: "+t.id,e)}}[Zt(390)](){const t=Zt;if(!this[t(380)])throw new Error(t(333))}[Zt(407)](){const t=Zt;"undefined"!=typeof window&&typeof document!==t(371)&&(this[t(442)]&&this[t(442)][t(429)](),this[t(442)]=new MutationObserver(e=>{const n=t;e[n(394)](t=>{const e=n;t[e(391)][e(394)](t=>{const n=e;t[n(389)]===Node.ELEMENT_NODE&&this[n(376)](t)})})}),this[t(442)][t(448)](document[t(412)],{childList:!0,subtree:!0}),this._config?.debug&&console[t(392)](t(443)))}[Zt(376)](t){const e=Zt,n=t[e(359)](e(421));if(n)return void this[e(439)](n);t[e(454)](e(352))[e(394)](t=>{const n=e,r=t[n(359)](n(421));r&&this[n(439)](r)})}autoDestroy(t){const e=Zt,n=this[e(343)][e(348)](t);if(n)try{n.viewabilityTracker&&n.viewabilityTracker[e(329)](),this[e(343)][e(419)](t),this[e(379)]?.debug&&console[e(392)](e(364)+t+" removed")}catch(n){this._config?.debug&&console[e(328)](e(424)+t+":",n)}}destroyModule(){const t=Zt,e=this[t(379)]?.[t(323)];this[t(442)]&&(this.mutationObserver[t(429)](),this[t(442)]=null),this[t(343)][t(351)](),this.advertisementEventTracker=null,this.adRenderer=null,this[t(380)]=!1,this[t(379)]=null,e&&console.log(t(358))}}var $t=ee;function te(){var t=["7486AeqHzJ","getApiEndpoint","735CxRCgZ","11JSluit","setBaseUrl","baseUrl","apiKey","log","✅ Config module initialized (sync mode)","1KhCYAM","_config","isModuleEnabled","14139vpxzYB","API key not available","424ywUqWU","create","events","Config module not initialized","ads","4GrCTcD","getEnabledModules","getOrganizationInfo","_organizationInfo","isDebugMode","modules","_isReady","config","updateConfig","development","4465920FleqEl","285423kvmDLn","618pLkuKh","457786VwLgDV","1938960JIPkUT","getApiHeaders","isReady"];return(te=function(){return t})()}function ee(t,e){var n=te();return(ee=function(t,e){return n[t-=432]})(t,e)}!function(){for(var t=ee,e=te();;)try{if(113346===parseInt(t(447))/1*(parseInt(t(438))/2)+parseInt(t(432))/3*(parseInt(t(457))/4)+parseInt(t(440))/5*(-parseInt(t(433))/6)+-parseInt(t(434))/7+parseInt(t(452))/8*(-parseInt(t(450))/9)+-parseInt(t(435))/10*(parseInt(t(441))/11)+parseInt(t(467))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=ee;this[t(463)]=!1,this[t(448)]=null,this[t(460)]=null}init(t){var e=ee;this._config={timeout:3e4,debug:!1,modules:[e(456),e(454),e(464)],...t},t[e(443)]&&J[e(442)](t[e(443)]),this[e(463)]=!0,t.debug&&console[e(445)](e(446),{modules:this[e(448)][e(462)],endpoint:J.getBaseUrl(),mode:e(466)})}[$t(437)](){return this[$t(463)]}getConfig(){return this._config}[$t(459)](){return this[$t(460)]}[$t(439)](){return J.getBaseUrl()}isDebugMode(){var t=$t;return this[t(448)]?.debug||!1}getEnabledModules(){var t=$t;return this[t(448)]?.[t(462)]||[]}[$t(449)](t){return this[$t(458)]().includes(t)}[$t(465)](t){var e=$t;if(!this._config)throw new Error(e(455));this[e(448)]={...this._config,...t},this[e(461)]()&&console.log("🔄 Config updated",t)}[$t(436)](){var t=$t;if(!this[t(448)]?.[t(444)])throw new Error(t(451));return U[t(453)](this[t(448)][t(444)])}}const re=ie;function ie(t,e){const n=se();return(ie=function(t,e){return n[t-=323]})(t,e)}function se(){const t=["2872awyOyk","0x0","getAutoDetectedDeviceInfo","6926382kbyNSJ","userAgent","1276840kbPQIm","language","isBrowser","getViewportInfo","platform","getDetailedInfo","test","setDeviceInfo","getDeviceInfo","3aKidJE","getPlatform","onLine","isMobile","59229MVNblN","tablet","mobile","5692645iMcTeC","iOS","getUserDeviceInfo","mapPlatformForEvents","SSR","1248952tGeAUG","2943904lNFdHj","height","Desktop Web","7347347ZDQVhH","Android","desktop","Unknown","width","_userProvidedDeviceInfo"];return(se=function(){return t})()}!function(){const t=ie,e=se();for(;;)try{if(883758===-parseInt(t(341))/1+parseInt(t(342))/2*(parseInt(t(329))/3)+-parseInt(t(356))/4+parseInt(t(336))/5+parseInt(t(354))/6+parseInt(t(345))/7+-parseInt(t(351))/8*(parseInt(t(333))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static[re(328)](){const t=re;return{...oe.getAutoDetectedDeviceInfo(),...oe[t(350)]}}static[re(353)](){const t=re;if(!k[t(358)]())return{category:"other",platform:"SSR",model:t(340),osVersion:t(340)};const e=navigator.userAgent.toLowerCase();let n=t(347);/tablet|ipad/[t(326)](e)?n=t(334):R[t(332)]()&&(n=t(335));const r=R[t(330)]();return{category:n,platform:oe[t(339)](r),model:navigator[t(324)],osVersion:navigator[t(324)],deviceId:R.generateDeviceId()}}static[re(327)](t){const e=re;oe._userProvidedDeviceInfo={...oe[e(350)],...t}}static setDeviceProperty(t,e){oe[re(350)][t]=e}static clearDeviceInfo(){oe[re(350)]={}}static[re(338)](){return{...oe[re(350)]}}static[re(339)](t){const e=re;switch(t){case"ios":return e(337);case"android":return e(346);case"web":return"Mobile Web";case e(347):return e(344);default:return e(348)}}static[re(325)](){const t=re;if(!k[t(358)]())return{userAgent:t(340),language:"ko-KR",platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(352),viewportSize:t(352)};const e=k[t(323)]();return{userAgent:navigator[t(355)],language:navigator[t(357)]||"ko-KR",platform:navigator.platform,cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(331)],screenResolution:screen[t(349)]+"x"+screen[t(343)],viewportSize:e[t(349)]+"x"+e.height}}}oe[re(350)]={};const ae=ce;function ce(t,e){const n=le();return(ce=function(t,e){return n[t-=197]})(t,e)}!function(){const t=ce,e=le();for(;;)try{if(983522===-parseInt(t(210))/1+-parseInt(t(197))/2*(parseInt(t(215))/3)+parseInt(t(201))/4+-parseInt(t(216))/5*(parseInt(t(208))/6)+parseInt(t(213))/7*(parseInt(t(217))/8)+parseInt(t(198))/9+-parseInt(t(209))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class de{static[ae(204)](){const t=ae;return{...de[t(202)](),...de[t(211)]}}static[ae(202)](){const t=ae;if(!k[t(200)]())return{language:t(207),country:"KR"};const e=navigator[t(205)]||t(207);return{language:e,country:de[t(199)](e)}}static[ae(199)](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[ae(212)](t){const e=ae;de[e(211)]={...de[e(211)],...t}}static setUserProperty(t,e){de[ae(211)][t]=e}static clearUserProperties(){de[ae(211)]={}}static[ae(203)](){return{...de._userProperties}}static[ae(206)](){const t=ae;if(!k[t(200)]())return{timezone:t(214),estimatedCountry:"KR"};const e=Intl[t(218)]().resolvedOptions().timeZone;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 le(){const t=["10715dGrIAT","32nMuaAx","DateTimeFormat","59002ZXcxvl","10128276FpnsUC","extractCountryFromLanguage","isBrowser","6520500zdPtBY","getBaseUserInfo","getCurrentUserProperties","getUserInfo","language","estimateLocation","ko-KR","348yglKRR","4135210YOlojF","1285722SkhDrU","_userProperties","setUserProperties","813022PoZrui","UTC","42vhTUcy"];return(le=function(){return t})()}function ue(t,e){const n=he();return(ue=function(t,e){return n[t-=385]})(t,e)}de._userProperties={};const pe=ue;function he(){const t=["warn","keyword","adGroupId","isClickEventSent","utm_medium","campaign","twclid","1352637jiFoAF","kakao","channel","utm_term","ttclid","google.ads","term","UTM_KEYS","93984KUvyUr","campaignId","ALL_KEYS","adstage_referrer","true","linkedin.ads","length","27993ayhImA","store","ad_group","STORAGE_KEY","meta.ads","nclid","getItem","hasClickId","msclkid","keys","k_rank","1YZKsDl","liclid","CAMPAIGN_KEYS","adstage_tracking_params","ad_creative","k_keyword_id","2277036ttLnMi","utm_campaign","setItem","undefined","k_keyword","7423404nUzVjB","clear","get","keywordId","campaign_id","captureFromUrl","creativeId","gclid","ad_group_id","adRank","adCreative","creative_id","search","k_campaign","Failed to parse adstage_referrer:","k_creative","CLICK_ID_KEYS","utm_source","60TOVjEq","shouldSendClickEvent","removeItem","twitter.ads","1969DJaIIR","1747323GYgWVw","1480BByTtd","5hmnwen","fbclid","3074896gRWqTa","utm_content","hasParams","adstage_click_event_sent"];return(he=function(){return t})()}!function(){const t=ue,e=he();for(;;)try{if(683416===parseInt(t(412))/1*(parseInt(t(418))/2)+parseInt(t(446))/3+parseInt(t(450))/4+parseInt(t(448))/5*(parseInt(t(423))/6)+parseInt(t(401))/7*(-parseInt(t(447))/8)+-parseInt(t(386))/9*(parseInt(t(441))/10)+-parseInt(t(445))/11*(parseInt(t(394))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{static[pe(428)](){const t=pe;if(typeof window===t(421))return null;const e=new URLSearchParams(window.location[t(435)]),n={};let r=!1;const i=e[t(425)](t(397));if(i)try{const e=decodeURIComponent(i),s=new URLSearchParams(e);for(const e of fe[t(396)]){const i=s[t(425)](e);i&&(n[e]=i,r=!0)}s[t(425)]("adstage")===t(398)&&(r=!0)}catch(e){console.warn(t(437),e)}for(const i of fe[t(396)]){if(n[i])continue;const s=e[t(425)](i);s&&(n[i]=s,r=!0)}return r?(n[t(388)]||(n[t(430)]?n[t(388)]=t(391):n.fbclid?n[t(388)]=t(405):n[t(390)]?n[t(388)]="tiktok.ads":n[t(406)]?n[t(388)]="naver.searchad":n[t(413)]?n.channel=t(399):n[t(409)]?n[t(388)]="microsoft.ads":n[t(385)]?n[t(388)]=t(444):n[t(440)]===t(387)&&n[t(458)]===t(455)?n[t(388)]="kakao.keyword":(n[t(436)]||n[t(422)])&&(n.channel="kakao.keyword")),fe.store(n),n):null}static[pe(402)](t){const e=pe;if(typeof window!==e(421))try{const n={...fe[e(425)](),...t},r=JSON.stringify(n);try{sessionStorage[e(420)](fe[e(404)],r)}catch(t){}try{localStorage.setItem(fe[e(404)],r)}catch(t){}}catch(t){console[e(454)]("Failed to store tracking params:",t)}}static[pe(425)](){const t=pe;if(typeof window===t(421))return null;try{const e=sessionStorage?.[t(407)](fe[t(404)]);if(e)return JSON.parse(e)}catch(t){}try{const e=localStorage?.[t(407)](fe.STORAGE_KEY);if(e)return JSON.parse(e)}catch(t){}return null}static[pe(424)](){const t=pe;if(typeof window!==t(421)){try{sessionStorage?.[t(443)](fe[t(404)])}catch(t){}try{localStorage?.[t(443)](fe[t(404)])}catch(t){}}}static[pe(452)](){const t=pe,e=fe.get();return null!==e&&Object[t(410)](e)[t(400)]>0}static[pe(408)](){const t=pe,e=fe[t(425)]();return!!e&&fe[t(439)].some(t=>e[t])}static[pe(442)](){const t=pe;if(typeof window===t(421))return!1;const e=fe[t(425)]();if(!e)return!1;const n=fe[t(408)](),r=!!e[t(388)];if(!n&&!r)return!1;const i=n?e[t(430)]||e[t(449)]||e[t(390)]||e[t(406)]||e[t(413)]||e[t(409)]||e[t(385)]:(e[t(388)]||"")+":"+(e[t(392)]||"");if(!i)return!1;return i!==sessionStorage[t(407)]("adstage_last_click_id")&&(sessionStorage[t(420)]("adstage_last_click_id",i),!0)}static markClickEventSent(){const t=pe;typeof window!==t(421)&&sessionStorage[t(420)](t(453),t(398))}static[pe(457)](){const t=pe;return typeof window!==t(421)&&sessionStorage[t(407)](t(453))===t(398)}static toAttributionObject(){const t=pe,e=fe[t(425)]();if(!e)return null;const n={};return e[t(430)]&&(n.gclid=e[t(430)]),e[t(449)]&&(n[t(449)]=e[t(449)]),e[t(390)]&&(n[t(390)]=e[t(390)]),e.nclid&&(n[t(406)]=e[t(406)]),e.channel&&(n[t(388)]=e[t(388)]),e[t(459)]&&(n[t(459)]=e[t(459)]),e.campaign_id&&(n.campaignId=e.campaign_id),e[t(403)]&&(n.adGroup=e[t(403)]),e[t(431)]&&(n[t(456)]=e[t(431)]),e.ad_creative&&(n[t(433)]=e.ad_creative),e[t(434)]&&(n[t(429)]=e.creative_id),e[t(392)]&&(n[t(392)]=e[t(392)]),e[t(436)]&&(n[t(395)]=n[t(395)]||e[t(436)]),e.k_adgroup&&(n.adGroupId=n[t(456)]||e.k_adgroup),e.k_keyword&&(n.keyword=e[t(422)]),e.k_keyword_id&&(n[t(426)]=e[t(417)]),e[t(438)]&&(n[t(429)]=n[t(429)]||e[t(438)]),e.k_rank&&(n[t(432)]=e[t(411)]),e.utm_source&&(n.utm_source=e.utm_source),e.utm_medium&&(n[t(458)]=e[t(458)]),e[t(419)]&&(n[t(419)]=e.utm_campaign),e[t(451)]&&(n[t(451)]=e.utm_content),e[t(389)]&&(n[t(389)]=e[t(389)]),Object[t(410)](n)[t(400)]>0?n:null}}fe.STORAGE_KEY=pe(415),fe[pe(439)]=[pe(430),pe(449),"ttclid",pe(406),pe(413),pe(409),"twclid"],fe[pe(414)]=[pe(388),pe(459),pe(427),pe(403),pe(431),pe(416),"creative_id","term","k_campaign","k_adgroup",pe(422),pe(417),pe(438),"k_rank"],fe.UTM_KEYS=[pe(440),pe(458),"utm_campaign","utm_content",pe(389)],fe[pe(396)]=[...fe[pe(439)],...fe[pe(414)],...fe[pe(393)]];const ge=Ie;function me(){const t=["events","sendEventToServer","json","4751180pYFrwu","isReady","getAttributionId","📊 Events module initialized","API key not configured for attribution registration.","length","getItem","Event tracking failed: ","📱 Device info set:","❌ Failed to track event:","getDeviceInfo","setDeviceProperty","setItem","getCurrentUserProperties","9412731VxgdeU","🔑 Request headers:","adstage_attribution_id","454548QczMDy","toAttributionObject","keys","text","error","setUserProperties","73918THRWMe","📦 Attribution request body:","getUserDeviceInfo","track","_config","log","create","📦 Request body:","3mZOAzR","Events module not initialized. Call AdStage.init() first.","❌ Failed to register attribution:","POST","📡 Request URL:","application/json","getUserInfo","stringify","clearDeviceInfo","init","_isReady","📊 Attribution included:","getConfig","3283032eJLJkt","❌ API Error Response:","setDeviceInfo","apiKey","Event data:","API key not configured for event tracking.","4ITpWBq","Attribution registration failed: ","warn","📡 Attribution request URL:","trackWithAttributionId","21DkOFBc","✅ Event tracked:","🔑 Attribution request headers:","sendAttributionToServer","registerAttribution","get","getUserProperties","statusText","attributionId","undefined","status","16091480ileBzZ","✅ Event tracked with attribution ID:","👤 User properties set:","debug","587280aozxVT"];return(me=function(){return t})()}function Ie(t,e){const n=me();return(Ie=function(t,e){return n[t-=306]})(t,e)}!function(){const t=Ie,e=me();for(;;)try{if(548033===-parseInt(t(332))/1*(parseInt(t(359))/2)+parseInt(t(340))/3*(-parseInt(t(326))/4)+parseInt(t(309))/5+-parseInt(t(379))/6*(parseInt(t(364))/7)+-parseInt(t(353))/8+-parseInt(t(323))/9+parseInt(t(375))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{constructor(){this[Ie(350)]=!1,this._config=null}[ge(349)](t){const e=ge;this[e(336)]=t,this[e(350)]=!0,t[e(378)]&&console[e(337)](e(312))}[ge(310)](){return this._isReady}[ge(352)](){return this[ge(336)]}[ge(331)](t){const e=ge;de.setUserProperties(t),this[e(336)]?.[e(378)]&&console.log(e(377),t)}[ge(370)](){return de[ge(322)]()}[ge(355)](t){const e=ge;oe[e(355)](t),this[e(336)]?.debug&&console[e(337)](e(317),t)}[ge(320)](t,e){const n=ge;oe.setDeviceProperty(t,e),this[n(336)]?.[n(378)]&&console[n(337)]("📱 Device property set:",t,e)}[ge(348)](){const t=ge;oe[t(348)](),this[t(336)]?.[t(378)]&&console[t(337)]("📱 User provided device info cleared")}getUserDeviceInfo(){return oe[ge(334)]()}[ge(319)](){return oe[ge(319)]()}[ge(346)](){return de.getUserInfo()}getCurrentUserProperties(){return de[ge(322)]()}async[ge(335)](t,e){const n=ge;if(this[n(350)])if(this[n(336)]?.[n(356)])try{const r=this[n(311)]();if(r){const i={eventName:t,sdkVersion:S(),device:oe[n(319)](),user:de[n(346)](),attributionId:r,params:e||{}};return await this.sendEventToServer(i),void(this[n(336)][n(378)]&&console[n(337)](n(376),t,r))}const i=fe[n(327)](),s={eventName:t,sdkVersion:S(),device:oe.getDeviceInfo(),user:de[n(346)](),...i&&{attribution:i},params:e||{}};await this.sendEventToServer(s),this._config[n(378)]&&(console[n(337)](n(365),t,e),i&&console[n(337)](n(351),i))}catch(r){console[n(330)](n(318),r),this._config.debug&&console.error(n(357),{eventName:t,properties:e})}else console[n(361)](n(358));else console[n(361)]("Events module not initialized. Call AdStage.init() first.")}async[ge(368)](t){const e=ge;if(!this[e(350)])return console.warn(e(341)),null;if(!this[e(336)]?.[e(356)])return console[e(361)](e(313)),null;try{const n=fe[e(369)]();if(!n||0===Object[e(328)](n)[e(314)])return this[e(336)][e(378)]&&console.log("⏭️ No tracking parameters found, skipping attribution registration"),null;const r=await this[e(367)]({deviceId:t,referrerParams:n});if(this[e(336)][e(378)]&&console[e(337)]("✅ Attribution registered:",r),r[e(372)]){try{localStorage[e(321)]("adstage_attribution_id",r.attributionId)}catch(t){}try{sessionStorage[e(321)](e(325),r.attributionId)}catch(t){}}return r}catch(t){return console[e(330)](e(342),t),null}}[ge(311)](){const t=ge;if(typeof window===t(373))return null;try{const e=sessionStorage[t(315)](t(325));if(e)return e}catch(t){}try{return localStorage[t(315)]("adstage_attribution_id")}catch(t){}return null}async[ge(363)](t,e){return this[ge(335)](t,e)}async[ge(307)](t){const e=ge,n={...U[e(338)](this[e(336)][e(356)]),"Content-Type":e(345)};this[e(336)]?.debug&&(console[e(337)](e(324),n),console[e(337)](e(344),J[e(306)][e(335)]()),console.log(e(339),t));const r=await fetch(J[e(306)][e(335)](),{method:e(343),headers:n,body:JSON[e(347)](t)});if(!r.ok){const t=await r[e(329)]();throw console[e(330)](e(354),t),new Error(e(316)+r[e(374)]+" "+r[e(371)])}}async[ge(367)](t){const e=ge,n={...U.create(this[e(336)][e(356)]),"Content-Type":e(345)};this[e(336)]?.debug&&(console[e(337)](e(366),n),console.log(e(362),J[e(306)][e(368)]()),console[e(337)](e(333),t));const r=await fetch(J[e(306)][e(368)](),{method:e(343),headers:n,body:JSON[e(347)](t)});if(!r.ok){const t=await r[e(329)]();throw console[e(330)](e(354),t),new Error(e(360)+r[e(374)]+" "+r[e(371)])}return r[e(308)]()}}const ye=be;function be(t,e){const n=we();return(be=function(t,e){return n[t-=416]})(t,e)}function we(){const t=["1341Mjrhni","catch","debug","getItem","now","_config","adstage_attribution_id","language","_isInitialized","toString","captureFromUrl","userAgent","size","apiKey","campaign","...","then","function","✅ Attribution registered:","channel","AdStage.config accessed before initialization","🌐 API endpoint configured:","click","🔍 Should send click event:","81660ooHZgU","init","2.0.0","hasClickId","getInstance","from","943999gSeBRy","❌ Error in click event auto-tracking:","31530bgqIhd","hash","attribution_id","length","registerAttribution","location","reset",")의 viewable 추적 초기화됨","⏭️ Skipping click event (duplicate or no click ID)","width","🚀 AdStage SDK initialized (sync mode)","1892632qfrxpn","modules","12XZcnJT","clearAdViewable","expiresAt","get","🎯 Sending click event after attribution registration","setItem","track","height","❌ Failed to auto-track click event:","warn","search","events","54DfNZDx","❌ Failed to register attribution:","toISOString","web-","charCodeAt","hardwareConcurrency","1027378kEFpdg","substring","replace","shouldSendClickEvent","getTimezoneOffset","random","🔗 Using attributionId from URL (attribution_id):","📊 AdStage Debug: 현재 viewable 추적 상태","API key is required for AdStage initialization","✅ Auto-tracked click event with tracking params:","web","generateDeviceId","undefined","baseUrl","viewableTracker","toAttributionObject","ads","markClickEventSent","3801260PENcne","instance","getConfig","join","error","tracking_params","470804oVtHAR","config","clear","development","log","abs","server-","adstage_device_id"];return(we=function(){return t})()}!function(){const t=be,e=we();for(;;)try{if(681826===parseInt(t(451))/1+-parseInt(t(475))/2+parseInt(t(445))/3*(-parseInt(t(507))/4)+parseInt(t(469))/5+-parseInt(t(433))/6*(parseInt(t(418))/7)+parseInt(t(431))/8+-parseInt(t(483))/9*(parseInt(t(420))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ke{constructor(){const t=be;this[t(491)]=!1,this[t(488)]=null,this.config=new ne,this[t(467)]=new Qt,this[t(444)]=new ve}static[ye(508)](t){const e=ye;!ke[e(470)]&&(ke.instance=new ke);const n=ke[e(470)];if(!t[e(496)])throw new Error(e(459));n[e(488)]={timeout:3e4,debug:!1,modules:[e(467),"events",e(476)],...t},n._config[e(464)]&&(J.setBaseUrl(n[e(488)].baseUrl),t[e(485)]&&console[e(479)](e(504),n[e(488)][e(464)]));const r=n._config[e(432)]||[e(467),e(444),"config"];for(const t of r){const r=n[t];r&&typeof r[e(508)]===e(500)&&r[e(508)](n[e(488)])}if(n._isInitialized=!0,"undefined"!=typeof window){const r=fe[e(493)]();r&&t[e(485)]&&console[e(479)]("📊 Tracking parameters captured:",r);const i=(()=>{const t=e;try{const e=new URLSearchParams(window[t(425)][t(443)]),n=new URLSearchParams((window[t(425)][t(421)]||"")[t(453)](/^#/,""));return e.get(t(422))||n.get(t(422))}catch{return null}})();if(i)try{localStorage[e(438)](e(489),i),t[e(485)]&&console[e(479)](e(457),i)}catch(t){}const s=fe[e(454)]();t.debug&&(console[e(479)](e(506),s),!s&&console[e(479)](e(428)));const o=fe[e(510)](),a=!(!r||!r[e(502)]);if(!i&&r&&(o||a)){const r=(async()=>{const r=e;try{const e=n[r(462)](),i=await n[r(444)][r(424)](e);return i&&t[r(485)]&&console[r(479)](r(501),{attributionId:i.attributionId,channel:i[r(502)],campaign:i[r(497)],expiresAt:i[r(435)]}),i}catch(t){return console.error(r(446),t),null}})();s&&r[e(499)](r=>{const i=e;try{const e=fe[i(436)](),s=fe[i(466)]();t[i(485)]&&console[i(479)](i(437),{attributionId:r?.attributionId,hasAttribution:!!r}),n.events[i(439)](i(505),{_autoGenerated:!0,_source:"tracking_params",_timestamp:(new Date)[i(447)](),_platform:i(461)})[i(499)](()=>{const n=i;fe.markClickEventSent(),t[n(485)]&&console[n(479)](n(460),{attribution:s,trackingParams:e})})[i(484)](t=>{const e=i;console[e(473)](e(441),t)})}catch(t){console[i(473)]("❌ Error in click event auto-tracking:",t)}})}else s&&setTimeout(()=>{const r=e;try{const e=fe.get(),i=fe[r(466)]();n[r(444)].track(r(505),{_autoGenerated:!0,_source:r(474),_timestamp:(new Date).toISOString(),_platform:"web"}).then(()=>{const n=r;fe[n(468)](),t[n(485)]&&console[n(479)](n(460),{attribution:i,trackingParams:e})}).catch(t=>{const e=r;console[e(473)](e(441),t)})}catch(t){console.error(r(419),t)}},100)}t[e(485)]&&console[e(479)](e(430),{version:e(509),modules:r,apiKey:t[e(496)][e(452)](0,8)+e(498),mode:e(478)})}static isReady(){const t=ye;return ke[t(470)]?.[t(491)]||!1}static[ye(471)](){const t=ye;return ke[t(470)]?._config||null}static getInstance(){const t=ye;if(!ke[t(470)])throw new Error("AdStage not initialized. Call AdStage.init() first.");return ke[t(470)]}static get ads(){const t=ye;try{return ke[t(416)]()[t(467)]}catch(e){throw console[t(442)]("AdStage.ads accessed before initialization"),e}}static get[ye(444)](){const t=ye;try{return ke[t(416)]()[t(444)]}catch(e){throw console[t(442)]("AdStage.events accessed before initialization"),e}}static get[ye(476)](){const t=ye;try{return ke[t(416)]()[t(476)]}catch(e){throw console[t(442)](t(503)),e}}static[ye(426)](){const t=ye;ke[t(470)]&&(ke[t(470)]._isInitialized=!1,ke[t(470)][t(488)]=null)}[ye(462)](){const t=ye;if(typeof window===t(463))return t(481)+Math[t(456)]()[t(492)](36)[t(452)](2,15);const e=localStorage[t(486)]("adstage_device_id");if(e)return e;const n=[navigator[t(494)],navigator[t(490)],screen[t(429)]+"x"+screen[t(440)],(new Date)[t(455)](),navigator[t(450)]||0][t(472)]("|");let r=0;for(let e=0;e<n[t(423)];e++){r=(r<<5)-r+n[t(449)](e),r&=r}const i=t(448)+Math[t(480)](r)[t(492)](36)+"-"+Date[t(487)]()[t(492)](36);return localStorage.setItem(t(482),i),i}}function Ee(t,e){var n=Ae();return(Ee=function(t,e){return n[t-=309]})(t,e)}function Ae(){var t=["setUserProperties","events","698994PrfFZb","257895fpSrWE","1370425txqrIg","warn","208TPvAPH","isReady","getUserProperties","2463798KTZEJJ","40130yKRiHV","AdStage not initialized. Call AdStage.init() first.","878941GAnbSl","475080vvfZCD","resolve","936RPFWPa"];return(Ae=function(){return t})()}function xe(t,e){var n=Ee;return ke[n(311)]()?ke[n(321)].track(t,e):(console[n(309)]("AdStage not initialized. Call AdStage.init() first."),Promise[n(318)]())}function Se(t){var e=Ee;ke[e(311)]()?ke[e(321)][e(320)](t):console.warn("AdStage not initialized. Call AdStage.init() first.")}function Te(){var t=Ee;if(ke[t(311)]())return ke[t(321)][t(312)]();console[t(309)](t(315))}ke[ye(485)]={clearAllViewable:()=>{ut[ye(477)](),console.log("✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨")},clearAdViewable:(t,e)=>{const n=ye;ut[n(434)](t,e),console[n(479)]("✅ AdStage Debug: 광고 "+t+"("+e+n(427))},getViewableStatus:()=>{const t=ye;console.log(t(458),{trackedCount:ut[t(465)][t(495)],trackedItems:Array[t(417)](ut[t(465)])})}},function(){for(var t=Ee,e=Ae();;)try{if(984958===parseInt(t(324))/1+-parseInt(t(313))/2+parseInt(t(323))/3+parseInt(t(317))/4+-parseInt(t(314))/5*(parseInt(t(319))/6)+-parseInt(t(316))/7+-parseInt(t(310))/8*(-parseInt(t(322))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ce=e(null);function De({children:e,config:i}){const[s,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),s&&ke.reset(),ke.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};r(()=>{i&&!s&&u(i)},[i,s]);const p={isInitialized:s,config:a,initialize:u,reset:()=>{try{ke.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Ce.Provider,{value:p,children:e})}function _e(){const t=i(Ce);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Re(){const{isInitialized:t}=_e();return t?ke:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Le(t,e){var n=ze();return(Le=function(t,e){return n[t-=140]})(t,e)}function ze(){var t=["4817145LXVUKZ","3981UQzdnt","3103216GrAKgG","38108ojiXPd","24729975roUEBg","416IIJGTn","7044834rdnWQb","1654959mRXszS","358dmdvGE"];return(ze=function(){return t})()}!function(){for(var t=Le,e=ze();;)try{if(609631===parseInt(t(146))/1*(parseInt(t(144))/2)+-parseInt(t(143))/3+parseInt(t(147))/4+parseInt(t(145))/5+parseInt(t(142))/6+parseInt(t(148))/7*(parseInt(t(141))/8)+-parseInt(t(140))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ue=Be;!function(){const t=Be,e=Oe();for(;;)try{if(527679===-parseInt(t(248))/1*(-parseInt(t(253))/2)+-parseInt(t(258))/3+-parseInt(t(252))/4*(parseInt(t(260))/5)+parseInt(t(251))/6+-parseInt(t(259))/7*(-parseInt(t(255))/8)+-parseInt(t(247))/9+parseInt(t(257))/10*(parseInt(t(256))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Pe=Ue(254),Me=[Ue(246),"events",Ue(249)];function Be(t,e){const n=Oe();return(Be=function(t,e){return n[t-=246]})(t,e)}function Oe(){const t=["321781lGBEIH","config","AdStage","4446150urCgUz","4OHrAZH","2Lcwiuj","2.0.0","8tGkgcZ","55euuEVk","276730pYXMkz","790194jikkQZ","3352027yYzHQE","964010KeMcXa","ads","6265377qmFsBg"];return(Oe=function(){return t})()}"undefined"!=typeof window&&(window[Ue(250)]=ke);export{ke as AdStage,De as AdStageProvider,Pe as SDK_VERSION,Me as SUPPORTED_MODULES,fe as TrackingParamsModule,Te as getUserProperties,Se as setUserProperties,xe as track,_e as useAdStageContext,Re as useAdStageInstance};
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as r,useContext as i}from"react";function s(){var t=["130745KeIfLl","CLICK","DESKTOP","3211071WGavdf","POPUP","173536tSxIzA","8iHfMgf","INTERSTITIAL","TEXT","NATIVE","MOBILE","22297635izptki","1279212WqGOMb","VIEWABLE","6886677LNwJZX","WEB","96RhftAA","TABLET","VIDEO","731112jlaiuq","BANNER"];return(s=function(){return t})()}function o(t,e){var n=s();return(o=function(t,e){return n[t-=420]})(t,e)}var a,c,d,l,u,p,h,f,g,m,I,v;!function(){for(var t=o,e=s();;)try{if(731575===-parseInt(t(429))/1+-parseInt(t(422))/2+parseInt(t(434))/3+-parseInt(t(436))/4+-parseInt(t(431))/5*(parseInt(t(426))/6)+-parseInt(t(424))/7+-parseInt(t(437))/8*(-parseInt(t(421))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),c=a||(a={}),d=o,c.BANNER=d(430),c.POPUP=d(435),c[d(438)]="INTERSTITIAL",c[d(440)]=d(440),c.VIDEO=d(428),c.TEXT=d(439),(u=l||(l={}))[(p=o)(425)]="WEB",u[p(420)]="MOBILE",(f=h||(h={}))[(g=o)(423)]=g(423),f[g(432)]="CLICK",(I=m||(m={}))[(v=o)(433)]=v(433),I[v(420)]=v(420),I[v(427)]="TABLET";const y=b;function b(t,e){const n=k();return(b=function(t,e){return n[t-=119]})(t,e)}!function(){const t=b,e=k();for(;;)try{if(865368===parseInt(t(124))/1*(parseInt(t(175))/2)+-parseInt(t(144))/3*(-parseInt(t(126))/4)+-parseInt(t(168))/5+parseInt(t(173))/6+-parseInt(t(137))/7*(parseInt(t(148))/8)+parseInt(t(146))/9*(-parseInt(t(182))/10)+-parseInt(t(186))/11*(-parseInt(t(120))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class w{static[y(150)](){const t=y;return typeof window!==t(142)&&typeof document!==t(142)}static[y(125)](){return!this[y(150)]()}static canUseDOM(){return this[y(150)]()&&void 0!==document.readyState}static[y(143)](t){const e=y;return this[e(161)]()?document[e(169)](t):null}static safeQuerySelector(t){const e=y;return this.canUseDOM()?document[e(127)](t):null}static[y(129)](t){const e=y;return this[e(161)]()?Array[e(187)](document[e(159)](t)):[]}static safeCreateElement(t){const e=y;return this[e(161)]()?document[e(184)](t):null}static[y(141)](t,e,n,r){this[y(161)]()&&t&&t.addEventListener(e,n,r)}static safeRemoveEventListener(t,e,n,r){const i=y;this[i(161)]()&&t&&t[i(133)](e,n,r)}static getWindowProperty(t,e){return this[y(150)]()?window[t]??e:e}static[y(180)](t,e){return this[y(161)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const r=y;return this.isBrowser()?window[r(178)](t,e,n):null}static safeGetComputedStyle(t){const e=y;return this[e(150)]()&&t?window[e(181)](t):null}static isDOMReady(){const t=y;return!!this.canUseDOM()&&document[t(140)]!==t(158)}static[y(151)](){return new Promise(t=>{const e=b;this[e(161)]()?this[e(190)]()?t():this[e(141)](document,"DOMContentLoaded",()=>t()):t()})}static[y(153)](t,e){const n=y;this.canUseDOM()&&t&&Object[n(172)](e)[n(167)](([e,r])=>{const i=n;t[i(170)][i(165)](e,r)})}static[y(130)](t,e){const n=y;this[n(161)]()&&t&&t[n(160)][n(121)](e)}static[y(156)](t,e){const n=y;this[n(161)]()&&t&&t[n(160)].remove(e)}static safeSetTextContent(t,e){this[y(161)]()&&t&&(t.textContent=e)}static safeSetInnerHTML(t,e){const n=y;this.canUseDOM()&&t&&(t[n(179)]=e)}static[y(119)](t,e){this[y(161)]()&&t&&e&&t.appendChild(e)}static[y(176)](t,e){this[y(161)]()&&t&&e&&t.removeChild(e)}static[y(145)](){const t=y;return{url:this[t(149)](t(152),{href:""}).href,title:this[t(180)](t(123),""),referrer:this[t(180)](t(131),"")}}static getViewportInfo(){const t=y;return{width:this[t(149)](t(135),0),height:this[t(149)](t(122),0),pixelRatio:this.getWindowProperty("devicePixelRatio",1)}}static[y(174)](){const t=y;return{scrollTop:this[t(161)]()?window[t(188)]||document[t(162)][t(155)]:0,scrollLeft:this[t(149)]("pageXOffset",0)}}static async[y(147)](t,e={}){const n=y,{timeout:r=3e3,retryInterval:i=100,debug:s=!1}=e;if(!this[n(161)]())throw new Error("DOM을 사용할 수 없는 환경입니다.");const o=document[n(169)](t);return o?(s&&console[n(138)]("✅ 컨테이너 즉시 발견: "+t),o):(s&&console[n(138)](n(139)+t+n(183)+r+n(128)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(164)](r/i),l=()=>{const n=a;c++;const u=document[n(169)](t);if(u)return s&&console[n(138)](n(189)+t+" ("+c+"번째 시도, "+c*i+n(157)),void e(u);if(c>=d){const e='❌ 컨테이너를 찾을 수 없습니다: "'+t+n(154)+t+n(171)+r+"ms ("+c+n(177);return s&&console[n(166)](e),void o(new Error(e))}s&&c%10==0&&console[n(138)](n(136)+t+" ("+c+"/"+d+")");const p=Math.min(i*Math[n(134)](1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async[y(163)](t,e={}){const n=y,r=t[n(185)](t=>this[n(147)](t,e));return Promise[n(132)](r)}}function k(){const t=["isDOMReady","safeAppendChild","11199948rJJngF","add","innerHeight","title","47zDjMbx","isSSR","1417136iBOxIi","querySelector","ms)","safeQuerySelectorAll","safeAddClass","referrer","all","removeEventListener","pow","innerWidth","⏳ 컨테이너 대기 중: ","1057fyDTKF","log","⏳ 컨테이너 대기 시작: ","readyState","safeAddEventListener","undefined","safeGetElementById","6iTcrCt","getPageInfo","17586aKkSWH","waitForElement","57384dqOmtv","getWindowProperty","isBrowser","waitForDOM","location","safeApplyStyles",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"scrollTop","safeRemoveClass","ms 경과)","loading","querySelectorAll","classList","canUseDOM","documentElement","waitForElements","ceil","setProperty","error","forEach","2630205Qubjhq","getElementById","style",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"entries","638286wKhEgW","getScrollInfo","10562MFQUNZ","safeRemoveChild","번 시도)","open","innerHTML","getDocumentProperty","getComputedStyle","2330JMNvzs"," (최대 ","createElement","map","22gDyJxX","from","pageYOffset","✅ 컨테이너 발견: "];return(k=function(){return t})()}const E=A;function x(){const t=["undefined","804FDsWcN","3280290NgeczA","1076200NhTfaC","21seVhSp","3582KxgWeE","45Hjkios","56DwRjFB","7534JWmpWO","68618PIfxGs","287916uHMJqI","userAgent","566312kBUyTk","3.0.16","AdStageSDK/","924PsbIfr"];return(x=function(){return t})()}function A(t,e){const n=x();return(A=function(t,e){return n[t-=336]})(t,e)}!function(){const t=A,e=x();for(;;)try{if(253956===-parseInt(t(338))/1*(parseInt(t(337))/2)+parseInt(t(351))/3*(-parseInt(t(345))/4)+-parseInt(t(349))/5+parseInt(t(340))/6*(-parseInt(t(350))/7)+-parseInt(t(342))/8*(-parseInt(t(336))/9)+parseInt(t(348))/10+-parseInt(t(339))/11*(-parseInt(t(347))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const S=E(343);function C(){return S}const T=L;function D(){const t=["connection","userAgent","top","getItem","device_","generateSessionId","getScrollInfo",",y:","2514540iQFqgy","collectDeviceInfo","isMobile","language","2661EczyFP","adstage_session_id","514516LIXirm","left","198TGifmE","generateDeviceId","isBrowser","timeZone","round","safeGetElementById","scrollTop","getBoundingClientRect","3055750yztmAy"," .adstage-slider-wrapper","ssr_session_","1493578wpthIm","platform","width","SSR","now",'[data-adstage-slot-id="',"toString","setItem","getPlatform","DateTimeFormat","random","564nZSfTt","web","adstage_device_id","test","safeQuerySelector","unknown","117020TaJwVB","substr","effectiveType","504llqrdZ","UTC","84752qPfrFw","height"];return(D=function(){return t})()}function L(t,e){const n=D();return(L=function(t,e){return n[t-=345]})(t,e)}!function(){const t=L,e=D();for(;;)try{if(420470===-parseInt(t(374))/1+parseInt(t(387))/2+-parseInt(t(372))/3*(parseInt(t(347))/4)+-parseInt(t(384))/5+parseInt(t(368))/6+-parseInt(t(356))/7*(-parseInt(t(358))/8)+parseInt(t(376))/9*(-parseInt(t(353))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{static[T(377)](){const t=T;if(!w.isBrowser())return"ssr_device_"+Date[t(391)]();const e=localStorage[t(363)](t(349));if(e)return e;const n=t(364)+Math.random().toString(36).substr(2,9)+"_"+Date[t(391)]();return localStorage[t(394)](t(349),n),n}static[T(365)](){const t=T;if(!w[t(378)]())return t(386)+Date[t(391)]();const e=sessionStorage[t(363)](t(373));if(e)return e;const n="session_"+Math[t(346)]()[t(393)](36)[t(354)](2,9)+"_"+Date[t(391)]();return sessionStorage[t(394)]("adstage_session_id",n),n}static[T(370)](){const t=T;return!!w.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator[t(361)])}static[T(395)](){const t=T;if(!w[t(378)]())return t(348);const e=navigator.userAgent.toLowerCase();return/iphone|ipad|ipod/[t(350)](e)?"ios":/android/.test(e)?"android":R[t(370)]()?t(348):"desktop"}static[T(369)](){const t=T,e=w.getViewportInfo();return{deviceId:R[t(377)](),sessionId:R[t(365)](),osVersion:w[t(378)]()?navigator[t(388)]:t(390),deviceModel:w[t(378)]()?navigator[t(388)]:t(390),appVersion:"1.0.0",sdkVersion:C(),language:w.isBrowser()&&navigator[t(371)]||"ko",country:"KR",ipAddress:"",userAgent:w[t(378)]()?navigator[t(361)]:t(390),timezone:w.isBrowser()?Intl[t(345)]().resolvedOptions()[t(379)]:t(357),viewportWidth:e.width,viewportHeight:e[t(359)],screenWidth:w[t(378)]()?screen[t(389)]:0,screenHeight:w[t(378)]()?screen[t(359)]:0,colorDepth:w[t(378)]()?screen.colorDepth:24,pixelRatio:e.pixelRatio,connectionType:w[t(378)]()?navigator[t(360)]?.[t(355)]||"unknown":t(352),platform:R[t(395)]()}}static getSlotPosition(t){const e=T;let n=w[e(381)](t);if(!n){const r=w[e(351)]("#"+t+e(385));r&&(n=r)}if(!n&&(n=w.safeQuerySelector(e(392)+t+'"]')),!n)return e(352);const r=n[e(383)](),i=w[e(366)]();return"x:"+Math[e(380)](r[e(375)])+e(367)+Math[e(380)](r[e(362)]+i[e(382)])}}const z=M;function _(){const t=["150NJKiLb","create","331679oGGUkH","application/json","18sjNQHk","2234260ZusOUD","135748wRZfax","1683AICQYt","2486wzmyec","API key is required","9420sVAeqb","1551186XCHiiS","41136ZelsXK","14656UvTWhk","2EqWnVJ","createForEvents"];return(_=function(){return t})()}function M(t,e){const n=_();return(M=function(t,e){return n[t-=153]})(t,e)}!function(){const t=M,e=_();for(;;)try{if(219159===-parseInt(t(154))/1*(-parseInt(t(166))/2)+-parseInt(t(156))/3*(-parseInt(t(158))/4)+parseInt(t(168))/5*(parseInt(t(164))/6)+parseInt(t(163))/7+parseInt(t(165))/8*(-parseInt(t(159))/9)+-parseInt(t(157))/10+-parseInt(t(160))/11*(parseInt(t(162))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{static[z(153)](t,e){const n=z;if(!t)throw new Error(n(161));return{"x-api-key":t,"Content-Type":e?.contentType||n(155)}}static[z(167)](t,e){return U[z(153)](t)}}const P=B;function B(t,e){const n=O();return(B=function(t,e){return n[t-=192]})(t,e)}!function(){const t=B,e=O();for(;;)try{if(672894===-parseInt(t(226))/1*(-parseInt(t(206))/2)+-parseInt(t(192))/3+-parseInt(t(210))/4*(-parseInt(t(247))/5)+-parseInt(t(243))/6*(-parseInt(t(241))/7)+parseInt(t(212))/8*(-parseInt(t(245))/9)+-parseInt(t(199))/10+parseInt(t(234))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class N{constructor(t,e,n,r){const i=B;this[i(221)]=t,this[i(239)]=e,this[i(197)]=n,this.slots=r}async[P(232)](t,e,n){const r=P;try{this[r(197)]&&console[r(195)](r(237)+n+r(233)+t+r(216)+e);const i=this[r(229)].get(e);if(!i)return void(this.debug&&console[r(208)](r(230)+e+r(225)));if(!(document[r(235)](i[r(209)])||document[r(219)](r(240)+e+'"]')))return void(this.debug&&console[r(208)](r(220)+e+r(194)+i[r(209)]+r(218)));const s=R.collectDeviceInfo(),o={adType:i[r(196)],platform:s.platform,deviceId:s.deviceId,deviceInfo:s,pageUrl:w[r(211)]().url,pageTitle:w[r(211)]()[r(228)],referrer:w[r(211)]()[r(227)],slotId:e,slotPosition:R[r(222)](i[r(209)]),slotWidth:N[r(201)](i[r(242)]),slotHeight:N[r(201)](i.height),sessionId:s[r(244)],pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:C(),timestamp:Date[r(204)]()},...n===h.VIEWABLE&&{isViewable:!0,iabCompliant:!0}},a=this.baseUrl+r(236)+t+"/"+n,c=U[r(203)](this.apiKey,o);this[r(197)]&&(console[r(195)](r(217)+n+r(214)+t,{url:a,headers:c,eventData:o}),console[r(195)](r(213),{method:r(215),url:a,hasApiKey:!!this.apiKey,bodySize:JSON[r(200)](o)[r(224)]}));const d=await fetch(a,{method:r(215),headers:c,body:JSON[r(200)](o)});if(this.debug&&console[r(195)]("📡 API Response Status: "+d[r(246)]+" "+d[r(205)],{url:a,ok:d.ok}),!d.ok){const t=await d.text();throw new Error(r(207)+d[r(246)]+" "+d[r(205)]+r(231)+t)}this[r(197)]&&console[r(195)]("✅ Successfully tracked advertisement event: "+n+r(214)+t)}catch(i){console[r(198)](r(202),i),console.error("🔍 Debug info:",{baseUrl:this.baseUrl,apiKey:this.apiKey?this[r(239)].substring(0,8)+r(238):"NOT_SET",url:this[r(221)]+r(236)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[P(201)](t){const e=P;if("number"==typeof t)return t;if(typeof t===e(193)){const n=parseFloat(t[e(223)](/px$/,""));return isNaN(n)?0:n}return 0}}function O(){const t=["330777hnLCCb","string"," (containerId: ","log","adType","debug","error","11981460TMkrpg","stringify","parseNumericValue","❌ Failed to track advertisement event:","createForEvents","now","statusText","28546OldVRS","API request failed: ","warn","containerId","84MHFFEW","getPageInfo","48yqXKUM","🌐 Full API call details:"," for ad ","POST"," in slot ","🚀 Sending advertisement event: ","). Skipping event tracking.","querySelector","⚠️ DOM element not found for slotId: ","baseUrl","getSlotPosition","replace","length",". Skipping event tracking to prevent incorrect adType.","48nJXKHO","referrer","title","slots","⚠️ Slot not found for slotId: "," - ","trackAdvertisementEvent"," event for ad ","611996HUqZvR","getElementById","/advertisements/events/","🚀 AdvertisementEventTracker: Processing ","...","apiKey",'[data-adstage-slot-id="',"518PnRGjD","width","68316cnUxCQ","sessionId","762579hgMqlp","status","215805KQpZPe"];return(O=function(){return t})()}var F=V;function H(){var t=["initIntersectionObserver","disconnect","intersectionRatio","destroy","observe","1510EDWoAx","isDocumentVisible","334025IWktAf","onViewableCallback","observer","2460MCcEMZ","element","1169856iFvtpo","7HFUrEz","2605qIhtrq","102421ZxDgWT","432YuUjMX","132OjnShJ","visibilityState","586170EWkYHQ","IntersectionObserver","isViewableTriggered","handleIntersection","213741ovzhAP","958hNQXsg","IntersectionObserver not supported, viewability tracking disabled","warn","3320ixNAjG","visible"];return(H=function(){return t})()}function V(t,e){var n=H();return(V=function(t,e){return n[t-=394]})(t,e)}!function(){for(var t=V,e=H();;)try{if(855217===parseInt(t(397))/1*(-parseInt(t(407))/2)+-parseInt(t(422))/3*(-parseInt(t(410))/4)+-parseInt(t(419))/5*(-parseInt(t(400))/6)+-parseInt(t(396))/7*(-parseInt(t(395))/8)+parseInt(t(406))/9+parseInt(t(417))/10*(parseInt(t(398))/11)+-parseInt(t(399))/12*(parseInt(t(402))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class K{constructor(t,e){var n=V;this[n(421)]=null,this.isViewableTriggered=!1,this[n(394)]=t,this[n(420)]=e,this[n(412)]()}[F(412)](){var t=F;t(403)in window?(this[t(421)]=new IntersectionObserver(e=>this[t(405)](e),{threshold:.5,rootMargin:"0px"}),this.observer[t(416)](this[t(394)])):console[t(409)](t(408))}handleIntersection(t){t.forEach(t=>{var e=V;t[e(414)]>=.5&&this.isDocumentVisible()&&!this[e(404)]&&(this.isViewableTriggered=!0,this.onViewableCallback&&this[e(420)]())})}[F(418)](){var t=F;return!document.hidden&&document[t(401)]===t(411)}[F(415)](){var t=F;this[t(421)]&&(this.observer[t(413)](),this.observer=null)}}const j=G;!function(){const t=G,e=J();for(;;)try{if(349188===-parseInt(t(232))/1*(-parseInt(t(233))/2)+-parseInt(t(208))/3*(parseInt(t(218))/4)+parseInt(t(211))/5+-parseInt(t(210))/6*(-parseInt(t(213))/7)+-parseInt(t(229))/8*(-parseInt(t(209))/9)+parseInt(t(216))/10*(parseInt(t(215))/11)+-parseInt(t(230))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const W={production:j(228),beta:j(223)};function G(t,e){const n=J();return(G=function(t,e){return n[t-=208]})(t,e)}j(225);const q={advertisements:{list:j(224),detail:j(226),events:"/advertisements/events"},events:{track:"/events/track",registerAttribution:j(214)}};function J(){const t=["1FOGgdS","362518mxKWaY","4371KwSeuD","1781334JwCOKN","17868ogekFl","2041900KgULLu","track","1379WHEcQl","/events/register/attribution","18227DLDVWC","3430EhGEJE","advertisements","1668xcLqQq","list","custom","detail","baseUrl","https://beta-api.adstage.app","/advertisements/list","production","/advertisements","events","https://api.adstage.app","24BVAfkv","16580124CBvdDa","startsWith"];return(J=function(){return t})()}class X{constructor(t){const e=j;this[e(217)]={list:()=>""+this[e(222)]+q.advertisements[e(219)],detail:t=>""+this[e(222)]+q[e(217)][e(221)]+"/"+t,events:(t,n)=>""+this[e(222)]+q.advertisements[e(227)]+"/"+t+"/"+n},this[e(227)]={track:()=>""+this[e(222)]+q.events[e(212)],registerAttribution:()=>""+this[e(222)]+q[e(227)].registerAttribution},this[e(222)]=t||W.production}setBaseUrl(t){this[j(222)]=t}getBaseUrl(){return this.baseUrl}[j(220)](t){const e=j;return""+this[e(222)]+(t[e(231)]("/")?t:"/"+t)}}const Y=new X;var Q=$;function Z(){var t=["_id","126228lXXdWw","266924NfiJZg","887088HFljqE"," (index: ","45JtHZsI","1949948Hyyzqi","trackSlideViewable","85hwncgN","trackInitialSlideViewable","1414479nBaDfI","log","83706mQeuxC","VIEWABLE","🎯 Triggering VIEWABLE event for slide change: ad ","1813668RGncrt"];return(Z=function(){return t})()}function $(t,e){var n=Z();return($=function(t,e){return n[t-=415]})(t,e)}!function(){for(var t=$,e=Z();;)try{if(273263===parseInt(t(415))/1+parseInt(t(430))/2+-parseInt(t(423))/3+parseInt(t(428))/4+-parseInt(t(421))/5*(-parseInt(t(425))/6)+parseInt(t(419))/7+parseInt(t(416))/8*(-parseInt(t(418))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[Q(420)](t,e,n,r,i=!1){var s=Q;i&&console[s(424)](s(427)+t[s(429)]+s(417)+n+") in slot: "+e.id),r(t._id,e.id,h[s(426)])}static[Q(422)](t,e,n,r=!1){var i=Q;r&&console[i(424)]("🎯 Triggering initial VIEWABLE event: ad "+t[i(429)]+" (index: 0) in slot: "+e.id),n(t[i(429)],e.id,h.VIEWABLE)}}function et(){const t=["addClickEvent","5clKsen","_id","🔗 "," ad clicked: ","click","cursor","CLICK","763pRaSXw","linkUrl","1116856WBsIvo","155307pLEQwt","_blank","log","4040900XrxKeI","open","3359442ePgiBv","49382762BTmTdK","forEach","addEventListener","style","toLowerCase","68528nivHwE","preventDefault","addClickEventsBatch"," -> ","pointer","adType","81sPkGOA","addClickEventForSlider","38eIHdUm","isClickable","553990AkEXal","stopPropagation"];return(et=function(){return t})()}const nt=rt;function rt(t,e){const n=et();return(rt=function(t,e){return n[t-=163]})(t,e)}!function(){const t=rt,e=et();for(;;)try{if(613542===parseInt(t(196))/1+parseInt(t(182))/2*(parseInt(t(163))/3)+parseInt(t(166))/4+parseInt(t(187))/5*(parseInt(t(168))/6)+parseInt(t(194))/7*(parseInt(t(174))/8)+-parseInt(t(180))/9*(-parseInt(t(184))/10)+-parseInt(t(169))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static[nt(186)](t,e,n,r,i=!1,s){const o=nt;e[o(195)]&&(t.style[o(192)]=o(178),t.addEventListener(o(191),t=>{const a=o;if(t[a(175)](),t[a(185)](),r&&r(e[a(188)],n.id,h[a(193)]),window[a(167)](e[a(195)],a(164)),i){const t=s||String(n[a(179)])[a(173)]();console[a(165)](a(189)+t+a(190)+e[a(188)]+a(177)+e[a(195)])}}))}static addClickEventForRenderer(t,e,n,r,i=!1,s){const o=nt;e[o(195)]&&(t[o(172)][o(192)]="pointer",t[o(171)](o(191),t=>{const a=o;t[a(175)](),t.stopPropagation();if(r()(e[a(188)],n.id,h[a(193)]),window[a(167)](e[a(195)],a(164)),i){const t=s||String(n[a(179)])[a(173)]();console[a(165)](a(189)+t+" ad clicked: "+e._id+a(177)+e.linkUrl)}}))}static[nt(181)](t,e,n,r,i=!1,s){this.addClickEvent(t,e,n,r,i,s)}static[nt(183)](t){return Boolean(t.linkUrl)}static[nt(176)](t,e,n,r,i=!1,s){const o=nt;t[o(170)]((t,a)=>{const c=o,d=e[a];d&&this[c(186)](t,d,n,r,i,s)})}}const st=at;function ot(){const t=["removeChild","contains","265092qdeuyp","#999999","adstage-dot","videoUrl","100px","touchmove","color","flex","button","center","trackSlideViewable","addEventListener","div","clientX","classList","background","transform 0.4s ease-out","backgroundColor","opacity","BANNER","1px solid #666","0.9","display","includes","string","Text Ad","data-adstage-ad-id","Video Ad","Banner Ad","addClickEventForSlider","className","1px dashed #ccc","padding","34677VDWLDA","width","adType","VIDEO","fontSize","overflow","createSimpleAdElement","transparent","relative","preventDefault","hidden","changedTouches","1110yTvhoa","normal","_id","adstage-ad adstage-","whiteSpace","962555FDponw","55690HbLvDi","abs","touchstart","img","none","add","mouseleave","8px","borderColor","active","20190tnVJZE","style","TEXT","cssText","src","data-adstage-slot-id","50px","appendChild","imageUrl","toLowerCase","adstage-slider-wrapper","children","212CRseXh","#666666","objectFit","querySelectorAll","addTouchSupport","entries"," Ad","length","every","7CfaYbV","19412745DyTEDn","setAttribute","2763768JgcWQV","transition","border","0.7","createElement","mouseenter","getBoundingClientRect","body","200px","100%","auto","42hfQFMM","transform","\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 ","#000","textContent","#cccccc","inline-block","forEach","click","setProperty","height","adstage-slide-container","adstage-slide"];return(ot=function(){return t})()}function at(t,e){const n=ot();return(at=function(t,e){return n[t-=253]})(t,e)}!function(){const t=at,e=ot();for(;;)try{if(522252===-parseInt(t(319))/1+-parseInt(t(330))/2*(parseInt(t(254))/3)+parseInt(t(342))/4*(parseInt(t(320))/5)+parseInt(t(269))/6+-parseInt(t(351))/7*(parseInt(t(354))/8)+parseInt(t(302))/9*(-parseInt(t(314))/10)+parseInt(t(352))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[st(308)](t,e){const n=st,r=document[n(358)](n(281));switch(r[n(299)]=n(317)+String(t[n(304)]).toLowerCase(),r[n(353)](n(295),e[n(316)]),r[n(353)](n(335),t.id),r[n(331)].display="block",r[n(331)][n(303)]=n(363),r[n(331)][n(264)]=n(253),t[n(304)]){case a[n(288)]:if(e[n(338)]){const t=document[n(358)](n(323));t[n(334)]=e.imageUrl,t.style[n(303)]=n(363),t[n(331)][n(264)]=n(253),t[n(331)][n(344)]="cover",r[n(337)](t)}else r[n(331)][n(264)]=n(273),r[n(331)].backgroundColor="#f0f0f0",r[n(331)].border=n(300),r[n(258)]=n(297);break;case a[n(305)]:if(e.videoUrl){const t=document[n(358)]("video");t[n(334)]=e[n(272)],t[n(331)].width=n(363),t.style[n(264)]=n(253),r.appendChild(t)}else r[n(331)][n(264)]=n(362),r[n(331)].backgroundColor=n(257),r[n(331)].border=n(289),r.textContent=n(296),r[n(331)][n(275)]="white";break;case a.TEXT:if(e[n(258)]){const t=document[n(358)](n(281));t.textContent=e[n(258)]||"",t.style[n(301)]=n(327),t.style[n(306)]="14px",r.appendChild(t)}else r.style[n(264)]=n(336),r[n(331)][n(301)]="8px",r[n(258)]=n(294);break;default:r.style[n(264)]="100px",r[n(331)][n(356)]=n(300),r.style[n(286)]="#f9f9f9",r[n(258)]=t[n(304)]+n(348)}return r}static createSliderContainer(t,e,n,r,i=!1){const s=st,o=document[s(358)](s(281));o.className=s(340);const c={position:s(310),overflow:s(312)};if(t[s(303)]&&0!==t.width){let e;e=typeof t[s(303)]===s(293)?t[s(303)][s(292)]("px")||t[s(303)][s(292)]("%")?t[s(303)]:t.width+"px":t[s(303)]+"px",c[s(303)]=e,c[s(291)]=s(260)}else c[s(291)]=s(260);if(t[s(264)]&&0!==t[s(264)]){const e=typeof t[s(264)]===s(293)?t[s(264)]:t.height+"px";c[s(264)]=e}Object[s(347)](c)[s(261)](([t,e])=>{const n=s;o[n(331)][n(263)](t,e)});const d=!t[s(303)]||0===t.width,l=!t.height||0===t[s(264)];if(d||l){const n=document[s(358)](s(281));if(n[s(331)].cssText="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t[s(303)]){let e;e=typeof t[s(303)]===s(293)?t[s(303)][s(292)]("px")||t[s(303)].includes("%")?t.width:t[s(303)]+"px":t.width+"px",n[s(331)].width=e,n[s(331)][s(318)]=s(315)}document[s(361)][s(337)](n);let r=0,i=0;e[s(261)](e=>{const o=s,a=this[o(308)](t,e);n.appendChild(a);const c=a[o(360)]();c[o(303)]>r&&(r=c[o(303)]),c.height>i&&(i=c[o(264)]),n[o(267)](a)}),d&&r>0&&(o[s(331)][s(303)]=r+"px",c[s(303)]=r+"px"),l&&i>0&&(o.style[s(264)]=i+"px",c[s(264)]=i+"px"),document[s(361)][s(267)](n)}const u=[...e,e[0]],p=document.createElement("div");p.className=s(265);const h={display:"flex",transition:s(285),width:100*u[s(349)]+"%"};t.height&&0!==t[s(264)]&&(h[s(264)]=s(363)),Object[s(347)](h).forEach(([t,e])=>{p[s(331)].setProperty(t,e)}),u[s(261)]((e,n)=>{const o=s,a=document.createElement(o(281));a[o(299)]=o(266);const c={width:100/u[o(349)]+"%","flex-shrink":"0",display:o(276),"align-items":o(278),"justify-content":o(278)};t[o(264)]&&0!==t.height&&(c.height=o(363)),Object[o(347)](c).forEach(([t,e])=>{const n=o;a[n(331)][n(263)](t,e)});const d=this[o(308)](t,e);it[o(298)](d,e,t,r,i,String(t[o(304)])[o(339)]()),a[o(337)](d),p[o(337)](a)});const f=e[s(350)](t=>t.adType===a[s(332)])?null:this.createMinimalDotIndicator(e[s(349)]);let g=0;const m=e[s(349)],I=1e3*(n?.autoSlideInterval||3),v=(n,o=!1)=>{const a=s;g=n,p[a(331)][a(355)]=a(o?324:285),p.style[a(255)]="translateX(-"+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(345)](".adstage-dot")[a(261)]((t,e)=>{const n=a,r=t;e===c?(r[n(283)][n(325)](n(329)),r[n(331)][n(284)]=n(343),r[n(331)][n(328)]="#666666",r.style[n(287)]="1"):(r[n(283)].remove("active"),r[n(331)][n(284)]=n(309),r[n(331)][n(328)]=n(259),r.style[n(287)]=n(357))})}tt[a(279)](e[c],t,c,r,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(".adstage-dot")[s(261)]((t,e)=>{const n=s;t[n(280)](n(262),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return o.addEventListener(s(359),()=>{clearInterval(b)}),o[s(280)]("mouseleave",()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[s(346)](p,v,()=>g,m,y),o[s(337)](p),f&&o[s(337)](f),v(0),(!t[s(303)]||0===t[s(303)])&&setTimeout(()=>{const e=s,n=p[e(341)][0];if(n){const r=n[e(341)][0];if(r){const n=r[e(360)]();o[e(331)][e(303)]=n[e(303)]+"px",(!t[e(264)]||0===t[e(264)])&&(o[e(331)][e(264)]=n[e(264)]+"px"),o[e(331)][e(307)]="hidden"}}},10),o}static createMinimalDotIndicator(t){const e=st,n=document.createElement(e(281));n[e(299)]="adstage-dots",n[e(331)][e(333)]=e(256);for(let r=0;r<t;r++){const t=document[e(358)](e(277));t[e(299)]=e(271),t[e(331)][e(333)]="\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ",t.addEventListener("mouseenter",()=>{const n=e;!t[n(283)].contains(n(329))&&(t[n(331)][n(328)]=n(270),t.style[n(287)]=n(290))}),t[e(280)](e(326),()=>{const n=e;!t[n(283)][n(268)](n(329))&&(t[n(331)].borderColor=n(259),t[n(331)][n(287)]=n(357))}),n[e(337)](t)}return n}static[st(346)](t,e,n,r,i){const s=st;let o=0,a=!1;t[s(280)](s(322),t=>{const e=s;o=t.touches[0][e(282)],a=!0}),t.addEventListener(s(274),t=>{a&&t[s(311)]()}),t[s(280)]("touchend",t=>{const c=s;if(!a)return;a=!1;const d=t[c(313)][0][c(282)],l=o-d;if(Math[c(321)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:r-1)}}})}}const dt=lt;function lt(t,e){const n=ut();return(lt=function(t,e){return n[t-=321]})(t,e)}function ut(){const t=["viewableTracker","✅ New viewable recorded for ad ","24vEUnAC","74GiJttq","10916484sphmdH","3eYLGtS","11UGSaQI","add","delete","20430826itIzJi","31390nafZNf","111zliEMp","1557MTgqsr","1415281QdExJT","4602608JIZcvR","clearAdViewable"," in slot ","Duplicate viewable blocked for ad ","1663580wEzSko","40blwWab","log","clear","isDuplicateViewable"];return(ut=function(){return t})()}!function(){const t=lt,e=ut();for(;;)try{if(707748===-parseInt(t(331))/1*(parseInt(t(323))/2)+parseInt(t(325))/3*(parseInt(t(334))/4)+parseInt(t(338))/5*(-parseInt(t(322))/6)+-parseInt(t(333))/7*(-parseInt(t(339))/8)+-parseInt(t(332))/9*(-parseInt(t(330))/10)+-parseInt(t(326))/11*(-parseInt(t(324))/12)+-parseInt(t(329))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class pt{static[dt(342)](t,e,n=!1){const r=dt,i=t+"_"+e;return pt[r(343)].has(i)?(n&&console.log(r(337)+t+" in slot "+e),!0):(pt[r(343)][r(327)](i),n&&console[r(340)](r(321)+t+r(336)+e),!1)}static[dt(341)](){pt[dt(343)].clear()}static[dt(335)](t,e){const n=dt,r=t+"_"+e;pt.viewableTracker[n(328)](r)}}pt.viewableTracker=new Set;const ht=gt;function ft(){const t=["createPlaceholder","px)","createElement","error","unknown","<span>Loading ","⚠️ ","div",") - Mode: "," ad...</span>","placeholderMode","containerId","rgba(231, 76, 60, 0.1)","24OZvced","justifyContent","minHeight",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"innerHTML","calculateAdSize","parentElement","5756bApryR","3JrCBTZ","100%","fontFamily","hasAttribute","setAttribute","closest",'[class*="ad"]',"⚠️ AdvertisementEventTracker not available for ","contains","❌ Failed to track ","auto","warn","height","\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 ","subtle","log","applyPlaceholderStyle",".adstage-slot"," slot: ","1374569lAVYYL","style","data-adstage-slot","center","borderRadius","invisible","1691664sDvFlE","211835TMcTcN","🔄 Starting advertisement event tracking: ","1490202yWHyKw"," for ","1px dashed #ccc","cssText",'[data-adstage-container="true"]',"className","getDefaultHeight",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"toLowerCase","): ","📊 Advertisement event tracked: ","querySelector","color","isDuplicateViewable","📏 Using default height ","getAttribute","11px","5475090AvRHWz","22eLmmZS"," x ","true"," container: ","isEmpty","classList","number","createEventTrackingCallback","data-adstage-empty"," in slot ","6px","✅ New viewable recorded for ad ","adstage-slot"," container collapsed (",".adstage-","alignItems","getElementById","width","border"," for ad ","\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 ","string","2px dashed #e74c3c","rgba(0, 0, 0, 0.02)","#e74c3c","adstage-official"," event","fontSize","transparent","adType","appendChild","🚫 Duplicate viewable blocked for ad ","1px solid rgba(0, 0, 0, 0.08)","filter","flex","adstage-slot adstage-empty adstage-","none","block","trackAdvertisementEvent","📦 Placeholder created for ","4aaasqq","advertisementEventTracker","105037uONFFt","VIEWABLE","data-adstage-container","backgroundColor","debug","display","createEmptyContainer"];return(ft=function(){return t})()}function gt(t,e){const n=ft();return(gt=function(t,e){return n[t-=388]})(t,e)}!function(){const t=gt,e=ft();for(;;)try{if(140634===parseInt(t(456))/1*(-parseInt(t(454))/2)+-parseInt(t(484))/3*(parseInt(t(483))/4)+parseInt(t(394))/5*(-parseInt(t(476))/6)+-parseInt(t(503))/7+-parseInt(t(393))/8+-parseInt(t(396))/9+parseInt(t(413))/10*(parseInt(t(414))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class mt{constructor(t,e=!1,n){const r=gt;this[r(443)]=t,this[r(460)]=e,this[r(455)]=n||null}[ht(463)](t,e,n,r){const i=ht,s=document.createElement(i(470));s.id=e,s[i(401)]="adstage-slot adstage-"+String(this.adType)[i(404)](),s.setAttribute(i(458),i(416)),s.setAttribute("data-adstage-type",String(this[i(443)])),s.setAttribute("data-adstage-slot",e);const{width:o,height:a}=this[i(481)](t,n,r)||{width:i(485),height:this.getDefaultHeight()};s.style[i(431)]=o,s[i(388)][i(496)]=a;const c=r?.placeholderMode||n[i(473)]||i(392);this[i(500)](s,c),t[i(444)](s),this[i(460)]&&console.log(i(453)+this[i(443)]+i(502)+e+" ("+o+i(415)+a+i(471)+c)}[ht(500)](t,e){const n=ht;switch(e){case n(392):t.style[n(459)]=n(442),t.style[n(432)]=n(450),t[n(388)].opacity="0",t[n(480)]="";break;case n(442):t.style[n(459)]=n(442),t.style[n(432)]=n(450),t[n(388)][n(461)]=n(451),t[n(480)]="";break;case n(498):t[n(388)][n(459)]=n(437),t[n(388)][n(432)]=n(450),t[n(388)].borderRadius="4px",t[n(388)][n(461)]="flex",t[n(388)][n(429)]=n(390),t[n(388)].justifyContent=n(390),t[n(480)]=n(403);break;case"minimal":t[n(388)][n(459)]="rgba(248, 249, 250, 0.5)",t.style[n(432)]=n(446),t[n(388)][n(391)]=n(424),t[n(388)][n(461)]=n(448),t[n(388)].alignItems="center",t[n(388)][n(477)]="center",t[n(480)]=n(479);break;case n(460):t[n(388)][n(432)]=n(436),t.style[n(461)]=n(448),t[n(388)][n(429)]="center",t[n(388)][n(477)]=n(390),t.style[n(459)]=n(475),t[n(388)][n(408)]=n(438),t[n(388)][n(486)]="monospace",t[n(388)][n(441)]=n(412),t[n(480)]="<span>Loading "+this[n(443)]+n(472);break;default:t[n(388)][n(432)]=n(398),t.style[n(461)]="flex",t[n(388)][n(429)]=n(390),t.style[n(477)]=n(390),t[n(388)][n(459)]="#f9f9f9",t[n(388)].color="#666",t[n(480)]=n(468)+this.adType+n(472)}}calculateAdSize(t,e,n){const r=ht,i=e[r(431)],s=e[r(496)];let o,a;if(o="number"==typeof i?i+"px":typeof i===r(435)?i:r(485),typeof s===r(420))a=s+"px";else if(typeof s===r(435)&&s!==r(485)&&"auto"!==s)a=s;else{const e=this.getContainerHeight(t);e>0?(a=r(485),(n?.[r(460)]||this[r(460)])&&console.log("📏 Using 100% height (container: "+e+r(464))):(a=this[r(402)](),(n?.[r(460)]||this[r(460)])&&console[r(499)](r(410)+a+r(397)+this[r(443)]))}return{width:o,height:a}}getContainerHeight(t){const e=ht,n=window.getComputedStyle(t),r=parseFloat(n[e(496)]);if(!r||0===r){const r=parseFloat(n[e(478)]);if(r>0)return r;if(t.style[e(496)]&&t[e(388)].height!==e(494)){const n=parseFloat(t[e(388)].height);if(n>0)return n}const i=t[e(411)](e(496));if(i){const t=parseFloat(i);if(t>0)return t}}return r||0}[ht(421)](){return async(t,e,n)=>{const r=gt;if(n===h[r(457)]){if(pt[r(409)](t,e,this[r(460)]))return void(this.debug&&console[r(499)](r(445)+t+r(423)+e));this[r(460)]&&console[r(499)](r(425)+t+" in slot "+e)}if(this.advertisementEventTracker)try{this[r(460)]&&console[r(499)](r(395)+n+r(433)+t+r(423)+e),await this[r(455)][r(452)](t,e,n),this[r(460)]&&console[r(499)](r(406)+n+r(433)+t+r(423)+e)}catch(e){this.debug&&console[r(466)](r(493)+n+" event for ad "+t+":",e)}else this[r(460)]&&console[r(495)](r(491)+n+r(440))}}renderFallback(t){const e=ht,n=document.getElementById(t.id);if(n){const r=[...[n[e(407)](e(400)),n.closest('[data-adstage-container="true"]'),n][e(447)](t=>t&&t[e(487)](e(458))),...[n[e(489)](e(501)),n.closest(e(428)+String(this.adType).toLowerCase()),n.closest(e(490)),n[e(489)]('[class*="banner"]'),n[e(489)]('[class*="container"]'),n[e(489)]('div[style*="height"]'),n.closest('div[style*="min-height"]'),n[e(482)]][e(447)](Boolean)][0];if(r){let n=e(467);n=r.hasAttribute(e(458))?e(439):r[e(419)][e(492)](e(426))?"adstage-class":"generic",r[e(388)][e(399)]+=e(497),r.innerHTML="",r[e(488)]("data-adstage-empty",e(416)),this[e(460)]&&console[e(495)](e(469)+this[e(443)]+e(427)+n+e(405)+t.id,r)}else this[e(462)](t)}t.advertisement=void 0,t[e(418)]=!0}[ht(462)](t){const e=ht,n=document[e(430)](t[e(474)]);if(n){n.innerHTML="";const r=document[e(465)](e(470));r.id=t.id,r.className=e(449)+String(this[e(443)])[e(404)](),r.setAttribute(e(458),e(416)),r[e(488)](e(422),e(416)),r[e(488)](e(389),t.id),r[e(388)].cssText=e(434),n.appendChild(r),this[e(460)]&&console[e(495)]("⚠️ Created empty "+this[e(443)]+e(417)+t.id)}}log(t,...e){const n=ht;this.debug&&console.log("["+this[n(443)]+"] "+t,...e)}}const It=vt;function vt(t,e){const n=bt();return(vt=function(t,e){return n[t-=281]})(t,e)}!function(){const t=vt,e=bt();for(;;)try{if(181468===-parseInt(t(385))/1*(parseInt(t(302))/2)+parseInt(t(311))/3+-parseInt(t(301))/4*(parseInt(t(348))/5)+-parseInt(t(342))/6+parseInt(t(290))/7+-parseInt(t(287))/8*(parseInt(t(334))/9)+parseInt(t(383))/10*(parseInt(t(296))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class yt extends mt{constructor(t=!1,e){super(a[vt(332)],t,e)}[It(372)](){return"250px"}async[It(339)](t,e){const n=It,r=document.getElementById(t[n(318)]);if(!r)return;const i=document[n(389)](n(294));i[n(295)]="adstage-ad adstage-banner-ad";const s=t[n(321)],o=r[n(316)]||r;if(s)i.style[n(281)]=n(312),i[n(306)].height=String(s);else{const e=t[n(304)],r={width:e?.width,height:e?.[n(366)]},{width:s,height:a}=this[n(317)](o,r,{debug:this[n(382)]});i[n(306)].width=s,i[n(306)][n(366)]=a}e[n(344)]?await this[n(314)](i,e,t):i[n(282)]=n(325)+(e[n(354)]||n(364))+n(365),it[n(293)](i,e,t,()=>this[n(390)](),this.debug,n(305)),r[n(282)]="",r[n(373)](i)}async[It(353)](t,e){const n=It,r=document[n(350)](t[n(318)]);if(!r)throw new Error("Container not found: "+t[n(318)]);await this[n(341)](t,e);const i=this.createEventTrackingCallback(),s={autoSlideInterval:(t[n(304)]?.slideInterval||5e3)/1e3,...t[n(304)],optimizedHeight:t[n(321)],aspectRatio:t[n(369)]},o=ct[n(376)](t,e,s,i,this[n(382)]);o&&(r.innerHTML="",r[n(373)](o),this[n(382)]&&console[n(310)](n(367)+t.id+n(359)+e[n(303)]+n(387)+(t.optimizedHeight||n(309))+")"))}async calculateOptimalContainerSize(t,e){const n=It;if(!t.length)return{width:n(312),height:this[n(372)](),aspectRatio:16/9};try{const r=(await Promise[n(313)](t[n(291)](t=>t[n(344)]).map(t=>this[n(393)](t.imageUrl)))).filter(t=>t.status===n(338))[n(340)](t=>t[n(370)]);if(0===r[n(303)])return{width:n(312),height:this[n(372)](),aspectRatio:16/9};const i=this[n(362)](r),s=this.calculateOptimalHeight(r,e,i);return this[n(382)]&&console[n(310)](n(327)+e+"x"+s+n(351)+i+")"),{width:n(312),height:s+"px",aspectRatio:e/s}}catch(t){return console[n(361)](n(292),t),{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9}}}async[It(341)](t,e){const n=It;try{const r=document[n(350)](t[n(318)]),i=document[n(350)](t.id);if(!r||!i)return;const s=r[n(363)]()[n(281)]||300,o=await this.calculateOptimalContainerSize(e,s);i[n(306)][n(366)]=o[n(366)],t[n(321)]=o.height,t.aspectRatio=o[n(369)],this[n(382)]&&console[n(310)](n(333)+e[n(303)]+n(386)+o[n(366)])}catch(t){console[n(361)]("Banner container optimization failed, using default size:",t)}}[It(362)](t){const e=It,n=t[e(340)](t=>t[e(281)]/t[e(366)]),r=new Map;n[e(356)](t=>{const e=(Math.round(10*t)/10).toString();r.set(e,(r.get(e)||0)+1)});const i=Math[e(329)](...r.values()),s=t[e(303)];if(i/s>=.7)return e(289);const o=[16/9,4/3,1,1.5];return n.filter(t=>o[e(319)](e=>Math.abs(t-e)<.1))[e(303)]/s>=.5?"common":e(323)}[It(374)](t,e,n){const r=It,i=t.map(t=>t[r(281)]/t.height);switch(n){case r(289):{const t=new Map;i.forEach(e=>{const n=r,i=Math[n(330)](10*e)/10,s=i[n(328)](),o=t[n(368)](s);o?o[n(285)]++:t[n(337)](s,{ratio:i,count:1})});const n=Array[r(343)](t.values())[r(315)]((t,e)=>e[r(285)]>t[r(285)]?e:t);return Math[r(330)](e/n[r(308)])}case r(388):{const t=[{ratio:16/9,name:r(375)},{ratio:4/3,name:"4:3"},{ratio:1,name:r(286)},{ratio:1.5,name:r(284)}],n=i[r(315)]((t,e)=>t+e,0)/i.length,s=t[r(315)]((t,e)=>Math[r(347)](e[r(308)]-n)<Math[r(347)](t[r(308)]-n)?e:t);return this[r(382)]&&console[r(310)](r(384)+s[r(299)]+" (avg: "+n[r(322)](2)+")"),Math[r(330)](e/s[r(308)])}case r(323):default:{const t=i[r(315)]((t,e)=>t+e,0)/i[r(303)];return Math[r(330)](e/t)}}}[It(393)](t){return new Promise((e,n)=>{const r=vt,i=new Image;i[r(335)]=()=>{const t=r;e({width:i[t(360)],height:i[t(300)]})},i[r(392)]=()=>{n(new Error(r(349)+t))},i.src=t})}[It(379)](t,e,n){const r=It,i=e/n;Math.abs(i-1)<.1?(t[r(306)].objectFit="cover",t[r(306)][r(345)]=r(391)):i>1.3?(t[r(306)].objectFit=r(346),t[r(306)][r(345)]=r(391),t[r(306)].backgroundColor=r(355)):i<.7?(t[r(306)][r(371)]="cover",t[r(306)][r(345)]=r(391)):(t[r(306)].objectFit=r(336),t.style[r(345)]="center"),this[r(382)]&&console.log(r(307)+t[r(306)][r(371)]+r(378)+i.toFixed(2))}async[It(314)](t,e,n){const r=It,i=document.createElement(r(381));i[r(306)][r(281)]=r(312),i[r(306)][r(366)]="100%",i[r(306)][r(357)]=r(297),i[r(306)][r(380)]=r(358),i[r(320)]=e.title||r(298),t[r(282)]='<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>';try{if(!e[r(344)])throw new Error(r(331));const s=await this[r(393)](e[r(344)]),o=t[r(363)](),a=o[r(281)],c=o[r(366)];this[r(382)]&&(console[r(310)](r(352)+s[r(281)]+"x"+s[r(366)]),console.log(r(283)+a+"x"+c));const d=s.width/s[r(366)],l=a/c;return this.applyOptimizedImageStyle(i,d,l),i.src=e[r(344)],t.innerHTML="",t[r(373)](i),it[r(293)](i,e,n,()=>this[r(390)](),this[r(382)],"Banner"),this[r(382)]&&console[r(310)](r(377)+e[r(288)]),i}catch(s){return console[r(326)](r(324),s),e[r(344)]&&(i.src=e[r(344)],i[r(306)].objectFit=r(336),i[r(306)][r(345)]="center",t[r(282)]="",t[r(373)](i),it[r(293)](i,e,n,()=>this.createEventTrackingCallback(),this[r(382)],"Banner")),i}}}function bt(){const t=["Banner Advertisement","name","naturalHeight","4xiTLmG","232274oASopq","length","config","Banner","style","🎨 Banner image style applied: objectFit=","ratio","default","log","664896pridef","100%","allSettled","renderOptimizedBannerImage","reduce","parentElement","calculateAdSize","containerId","some","alt","optimizedHeight","toFixed","average","❌ Failed to load optimized banner image:","<div>","error","📐 Optimal banner container calculated: ","toString","max","round","Image URL is not provided","BANNER","🔧 Banner container optimized for ","9kqEZOw","onload","cover","set","fulfilled","renderAdElement","map","optimizeContainerForBannerAds","1851432DYdNOU","from","imageUrl","objectPosition","contain","abs","883760UvJYkw","Failed to load image: ","getElementById"," (strategy: ","📸 Banner image dimensions: ","renderMultipleAds","title","#f0f0f0","forEach","display","8px"," with ","naturalWidth","warn","selectOptimalSizeStrategy","getBoundingClientRect","Banner Ad","</div>","height","🎠 Banner carousel created for slot: ","get","aspectRatio","value","objectFit","getDefaultHeight","appendChild","calculateOptimalHeight","16:9","createSliderContainer","✅ Optimized banner image rendered for ad: ",", ratio=","applyOptimizedImageStyle","borderRadius","img","debug","730figeCt","📊 Using standard ratio: ","2XKcaqt"," ads: "," ads (optimized: ","common","createElement","createEventTrackingCallback","center","onerror","loadImageDimensions","width","innerHTML","📦 Banner container dimensions: ","3:2","count","1:1","2356216VxfDHb","_id","dominant","792834GlSArV","filter","Failed to calculate optimal banner size, using defaults:","addClickEventForRenderer","div","className","129393XkcxWH","block"];return(bt=function(){return t})()}function wt(t,e){const n=Et();return(wt=function(t,e){return n[t-=174]})(t,e)}const kt=wt;function Et(){const t=["1518474IKZQkn","3718orjluE","11524760yapGVf","10693496NEbsof","5065RSixnS","5991723fSTLcd","createTextAdStyles","1484UKHuuE","3308IocUwz","10RawWPx","3402tvRBQY","title","107zUFSMT"];return(Et=function(){return t})()}!function(){const t=wt,e=Et();for(;;)try{if(827504===-parseInt(t(181))/1*(parseInt(t(183))/2)+parseInt(t(182))/3+-parseInt(t(177))/4*(-parseInt(t(186))/5)+parseInt(t(179))/6*(-parseInt(t(176))/7)+parseInt(t(184))/8+parseInt(t(174))/9*(-parseInt(t(178))/10)+-parseInt(t(185))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class xt{static[kt(175)](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 setTextAdContent(t,e){const n=kt,r=e.textContent||e[n(180)]||"";t.textContent=r}}const At=St;function St(t,e){const n=Tt();return(St=function(t,e){return n[t-=328]})(t,e)}!function(){const t=St,e=Tt();for(;;)try{if(598805===-parseInt(t(379))/1+parseInt(t(391))/2*(parseInt(t(403))/3)+parseInt(t(351))/4+parseInt(t(360))/5+parseInt(t(387))/6+parseInt(t(406))/7*(parseInt(t(378))/8)+-parseInt(t(341))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ct{static[At(330)](t,e){const n=At,r=document[n(335)]("div");return r[n(399)]="adstage-ad adstage-"+String(t.adType)[n(357)](),r[n(371)](n(364),e._id),r[n(371)](n(361),t.id),r.style[n(380)]=xt.createTextAdStyles(!0),xt[n(353)](r,e),r}static[At(394)](t,e,n,r,i=!1){const s=At,o=t[s(348)]&&0!==t[s(348)]&&t[s(348)]!==s(389),a=document[s(335)](s(396));a[s(399)]=s(334);const c={position:s(333),overflow:s(369),display:"block"};if(!o&&(c.height=s(389),c[s(350)]=s(355)),t[s(402)]&&0!==t[s(402)]){let e;e="string"==typeof t[s(402)]&&(t[s(402)][s(328)]("px")||t[s(402)][s(328)]("%"))?t.width:t[s(402)]+"px",c.width=e}if(t.height&&0!==t[s(348)]&&"auto"!==t[s(348)]&&o){let e;e="string"==typeof t[s(348)]?t[s(348)][s(328)]("px")||t.height.includes("%")?t.height:t.height+"px":t[s(348)]+"px",c[s(348)]=e}Object.entries(c)[s(400)](([t,e])=>{const n=s;a.style[n(352)](t,e)});const d=document[s(335)](s(396));d[s(399)]=s(381),d[s(382)][s(380)]=s(393)+s(o?384:367)+s(363);let l=null;const u=!t.width||0===t[s(402)],p=!t.height||0===t[s(348)]||void 0===t[s(348)]||t[s(348)]===s(389);if(u||p&&o){if(l=document.createElement(s(396)),l.style[s(380)]=s(344),!u&&t[s(402)]){let e;e=typeof t[s(402)]===s(340)&&(t.width[s(328)]("px")||t[s(402)][s(328)]("%"))?t[s(402)]:t[s(402)]+"px",l[s(382)][s(402)]=e,l[s(382)][s(345)]=s(397)}document[s(329)][s(374)](l);let n=0,r=0;e[s(400)](e=>{const i=s,o=this[i(330)](t,e);l[i(374)](o);const a=o.getBoundingClientRect();a[i(402)]>n&&(n=a.width),a[i(348)]>r&&(r=a[i(348)]),l[i(347)](o)}),u&&n>0&&(a[s(382)].width=n+"px"),p&&r>0&&o&&(a[s(382)].height=r+"px"),document[s(329)][s(347)](l)}const h=[];e[s(400)]((e,n)=>{const a=s,c=document[a(335)](a(396));c.className=a(383);const l=o?"absolute":a(0===n?333:370);c[a(382)].cssText="\n position: "+l+a(385)+(l===a(370)?"0":"auto")+a(368)+(l===a(370)?"0":a(389))+a(331)+a(o?384:366)+a(343)+(0===n?"1":"0")+a(349)+(0===n?"0":"20px")+a(359)+(0===n?"2":"1")+a(395);const u=this[a(330)](t,e);it[a(404)](u,e,t,r,i,a(342)),c[a(374)](u),d.appendChild(c),h[a(390)](c)});let f=0;const g=e[s(373)],m=1e3*(n?.[s(354)]||4),I=n=>{const a=s;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(382)].position===a(333)&&(c[a(382)][a(375)]=a(370),c[a(382)][a(388)]="0",c[a(382)].left="0"),d.style[a(375)]=a(333),d[a(382)][a(388)]=a(389),d[a(382)][a(407)]="auto"),c[a(382)].opacity="0",c[a(382)][a(398)]=a(338),c[a(382)][a(401)]="1",d.style[a(372)]="1",d[a(382)][a(398)]=a(376),d[a(382)][a(401)]="2",h.forEach((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(382)].opacity="0",t[r(382)][r(398)]=r(362),t[r(382)][r(401)]="1",!o&&"relative"===t[r(382)][r(375)]&&(t.style[r(375)]="absolute",t[r(382)].top="0",t[r(382)][r(407)]="0"))}),f=n,tt[a(336)](e[f],t,f,r,i)};let v=setInterval(()=>{I(f+1)},m);return a[s(332)](s(365),()=>{clearInterval(v)}),a[s(332)](s(377),()=>{v=setInterval(()=>{I(f+1)},m)}),Ct[s(405)](a,I,()=>f,g),a[s(374)](d),a}static[At(405)](t,e,n,r){const i=At;let s=0,o=0,a=!1;t[i(332)](i(356),t=>{const e=i;s=t[e(358)][0].clientX,o=t[e(358)][0][e(386)],a=!0}),t[i(332)](i(409),t=>{a&&t[i(392)]()}),t[i(332)](i(339),t=>{const r=i;if(!a)return;a=!1;const c=t[r(346)][0][r(408)],d=t.changedTouches[0][r(386)],l=s-c,u=o-d;if(Math[r(337)](l)>Math[r(337)](u)&&Math[r(337)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}function Tt(){const t=["string","10561968vcyBGb","Text","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","whiteSpace","changedTouches","removeChild","height",";\n transform: translateY(","minHeight","10076EsEotk","setProperty","setTextAdContent","autoSlideInterval","fit-content","touchstart","toLowerCase","touches",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","1530955LpmHrY","data-adstage-slot-id","translateY(20px)","\n ","data-adstage-ad-id","mouseenter","height: auto;","height: auto; min-height: fit-content;",";\n left: ","hidden","absolute","setAttribute","opacity","length","appendChild","position","translateY(0)","mouseleave","8sSYbYF","328844GYkNsH","cssText","adstage-fade-slide-container","style","adstage-fade-slide","height: 100%;",";\n top: ","clientY","5449008sWuLbv","top","auto","push","40142htwxID","preventDefault","\n position: relative;\n width: 100%;\n ","createTextTransitionContainer",";\n ","div","normal","transform","className","forEach","zIndex","width","72VzGAkL","addClickEventForSlider","addTouchSupport","2818333KzAJcQ","left","clientX","touchmove","includes","body","createSimpleAdElement",";\n width: 100%;\n ","addEventListener","relative","adstage-fade-slider-wrapper","createElement","trackSlideViewable","abs","translateY(-20px)","touchend"];return(Tt=function(){return t})()}const Dt=Lt;function Lt(t,e){const n=zt();return(Lt=function(t,e){return n[t-=156]})(t,e)}!function(){const t=Lt,e=zt();for(;;)try{if(562419===-parseInt(t(194))/1+parseInt(t(169))/2+parseInt(t(200))/3+parseInt(t(188))/4+parseInt(t(180))/5*(-parseInt(t(171))/6)+-parseInt(t(158))/7+parseInt(t(179))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Rt extends mt{constructor(t=!1,e){super(a[Lt(187)],t,e)}[Dt(192)](){return Dt(178)}async[Dt(173)](t,e){const n=Dt,r=document[n(189)](t[n(176)]);if(!r)return;const i=document[n(168)](n(195));i.className=n(160);const s=t.optimizedHeight,o=r[n(167)]||r;if(s)i[n(177)][n(190)]=n(161),i.style[n(201)]=String(s);else{const e=t[n(198)],r={width:e?.[n(190)],height:e?.[n(201)]},{width:s,height:a}=this[n(174)](o,r,{debug:this[n(183)]});i[n(177)][n(190)]=s,i[n(177)][n(201)]=a}const a=document[n(168)](n(195));a.className=n(185),a[n(177)][n(175)]=xt[n(156)](!1),xt.setTextAdContent(a,e);const c=t.config?.[n(157)];c&&typeof c===n(164)&&(a[n(177)][n(191)]="-webkit-box",a[n(177)][n(162)]=String(c),a[n(177)][n(186)]=n(159),a[n(177)][n(196)]=n(184)),i[n(181)](a),it.addClickEventForRenderer(i,e,t,()=>this[n(165)](),this[n(183)],n(182)),r.innerHTML="",r[n(181)](i),this[n(183)]&&console[n(166)](n(172)+e._id)}async renderMultipleAds(t,e){const n=Dt,r=document.getElementById(t[n(176)]);if(!r)throw new Error(n(193)+t[n(176)]);const i=this[n(165)](),s={autoSlideInterval:(t.config?.[n(197)]||5e3)/1e3,...t[n(198)],optimizedHeight:t.optimizedHeight,aspectRatio:t.aspectRatio},o=Ct.createTextTransitionContainer(t,e,s,i,this[n(183)]);o&&(r[n(163)]="",r[n(181)](o),this[n(183)]&&console[n(166)](n(199)+t.id+" with "+e.length+n(170)))}}function zt(){const t=["createElement","387102PHrKGk"," ads","10698XqNtwI","✨ Single text ad rendered: ","renderAdElement","calculateAdSize","cssText","containerId","style","60px","12655312TAuzSH","1795DbXbko","appendChild","Text","debug","hidden","adstage-text-content","webkitBoxOrient","TEXT","1693180BowvKr","getElementById","width","display","getDefaultHeight","Container not found: ","209502BMjwGy","div","overflow","slideInterval","config","✨ Text transition created for slot: ","620301IhgXAX","height","createTextAdStyles","maxLines","6954563VyDxpl","vertical","adstage-ad adstage-text-ad","100%","webkitLineClamp","innerHTML","number","createEventTrackingCallback","log","parentElement"];return(zt=function(){return t})()}const _t=Mt;function Mt(t,e){const n=Ut();return(Mt=function(t,e){return n[t-=274]})(t,e)}function Ut(){const t=[" (autoplay: ","VIEWABLE","hideProgressBar","1750512dbLABb","enabled","🎬 Trying muted autoplay fallback...","display","alt","createEventTrackingCallback","renderVideoElementDirect","play","14xgrHsw","scale(1.1)","innerHTML","className","27lUnNEE"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","getDefaultHeight","_id","\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 ","🎬 Video metadata loaded, attempting autoplay...","hideVolumeSlider","Video fallback","124207MtoACn","objectFit","block"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","getElementById"," !important;\n }\n ","appendChild","addClickEventForRenderer","containerId","addEventListener",'\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 ',"createElement","Video","config","catch","🎬 Video config received:","src","cssText","height","loadedmetadata","🎬 Autoplay completely failed:","🎬 Single video rendered for VIDEO slot: ","hideRemainingTime","style","🎬 Video controls setting:","position","145974kxAnDd","autoplay","12gVlksN","setAttribute","hideCurrentTime","length","2149FauoHA","unmuted","VIDEO","Click to mute","🎬 Video data loaded, attempting autoplay...","controls","scale(1)","mouseenter","\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 ","warn","🔊 Video mute toggled: ","background","\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 ","mouseleave","contain","hideMuteButton"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","debug","⚠️ No video advertisements available for slot: ","none","preload",", muted: ","1600230CUyiTf","transform","13638sLxDoa","button","🎬 Auto-play was prevented:"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","title","🎬 Single video ad rendered: ","\n pointer-events: none;\n ","muted","click","28idexXx","playsinline","24517130gMbldC"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","🎬 Final video settings:","width","video","customControls","loop","🎬 Video element created for ad: ","relative","Video load failed:","canplay","hidePlayButton","Video thumbnail","log","div","loadeddata","410070QLeAoC","imageUrl",'\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 ',"\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 ","videoUrl","textContent","hideControls","360px","100%","img",", loop: "];return(Ut=function(){return t})()}!function(){const t=Mt,e=Ut();for(;;)try{if(500205===-parseInt(t(286))/1*(parseInt(t(274))/2)+-parseInt(t(312))/3*(parseInt(t(351))/4)+-parseInt(t(369))/5+-parseInt(t(342))/6*(parseInt(t(318))/7)+-parseInt(t(383))/8+-parseInt(t(278))/9*(-parseInt(t(340))/10)+parseInt(t(353))/11*(parseInt(t(314))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Pt extends mt{constructor(t=!1,e){super(a[Mt(320)],t,e)}[_t(280)](){return _t(376)}async renderAdElement(t,e){const n=_t,r=document[n(290)](t[n(294)]);if(!r)return;const i=document.createElement(n(367));i[n(277)]="adstage-video-container",i[n(309)][n(303)]=n(326),this[n(389)](i,e,t),r[n(276)]="",r[n(292)](i),this[n(335)]&&console[n(366)](n(347)+e[n(281)])}async renderMultipleAds(t,e){const n=_t,r=document[n(290)](t.containerId);if(!r)throw new Error("Container not found: "+t[n(294)]);if(e[n(317)]>0){const i=e[0],s=document[n(297)](n(367));s[n(277)]="adstage-video-container",s[n(309)][n(303)]=n(372),this[n(389)](s,i,t),r[n(276)]="",r[n(292)](s);const o=this.createEventTrackingCallback();setTimeout(()=>{const e=n;o(i._id,t.id,h[e(381)])},100),this[n(335)]&&console[n(366)](n(307)+t.id+" ("+i[n(281)]+")")}else this[n(335)]&&console[n(327)](n(336)+t.id)}[_t(389)](t,e,n){const r=_t;t[r(309)][r(311)]=r(361);const i=document[r(297)](r(357));i[r(309)][r(356)]=r(377),i[r(309)][r(304)]=r(377),i[r(309)][r(287)]="contain",i[r(338)]="metadata";const s=n[r(299)];if(this[r(335)]&&console[r(366)](r(301),s),i.controls=!1,i[r(313)]=!1!==s?.[r(313)],i[r(349)]=!0,i[r(359)]=!1!==s?.loop,this[r(335)]&&console.log(r(355),{autoplay:i[r(313)],muted:i[r(349)],loop:i[r(359)],controls:i[r(323)]}),!1!==s?.[r(352)]&&i[r(315)](r(352),""),!0===s?.[r(323)]&&(i[r(323)]=!0,this.debug&&console[r(366)]("🎬 User explicitly enabled controls, overriding default")),s?.[r(375)])i.controls=!1,i[r(309)].cssText+=r(348);else if(s?.[r(358)]){if(i[r(323)]){const t=document[r(297)]("style");t[r(374)]="\n video::-webkit-media-controls-play-button {\n display: "+(s[r(358)][r(364)]?r(337):"block")+r(354)+(s.customControls[r(382)]?r(337):r(288))+r(289)+(s.customControls[r(316)]?r(337):r(288))+r(345)+(s[r(358)][r(308)]?r(337):r(288))+" !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: "+(s[r(358)][r(284)]?"none":r(288))+r(279)+(s[r(358)][r(333)]?r(337):"block")+r(334)+(s.customControls.hideFullscreenButton?r(337):r(288))+r(291),document.head.appendChild(t)}}else if(i.controls){const t=document.createElement(r(309));t.id="adstage-video-default-controls",t[r(374)]=r(330),!document.getElementById("adstage-video-default-controls")&&document.head[r(292)](t)}this[r(335)]&&console.log(r(310),i[r(323)]?r(384):"disabled (default)");const o=document[r(297)](r(343));o[r(277)]="adstage-video-mute-button",o[r(309)][r(303)]=r(282),s?.hideControls&&(o[r(309)][r(386)]="none");const a=()=>{const t=r,e=t(296),n=t(371);o.innerHTML=i[t(349)]?e:n,o[t(346)]=i[t(349)]?"Click to unmute":t(321)};if(a(),o.addEventListener(r(350),t=>{const e=r;t.stopPropagation(),i[e(349)]=!i[e(349)],a(),this[e(335)]&&console[e(366)](e(328)+(i[e(349)]?e(349):e(319)))}),o[r(295)](r(325),()=>{const t=r;o[t(309)][t(329)]="rgba(0, 0, 0, 0.9)",o[t(309)].transform=t(275)}),o[r(295)](r(331),()=>{const t=r;o.style[t(329)]="rgba(0, 0, 0, 0.7)",o[t(309)][t(341)]=t(324)}),e[r(373)]){i[r(302)]=e[r(373)];const t=()=>{const t=r;i[t(313)]&&i[t(349)]&&i.paused&&i.play()[t(300)](e=>{const n=t;this[n(335)]&&(console[n(327)](n(344),e),console[n(327)](n(385))),i.muted=!0,i[n(390)]()[n(300)](t=>{const e=n;this[e(335)]&&console.error(e(306),t)})})};i[r(295)](r(305),()=>{const e=r;this[e(335)]&&console[e(366)](e(283)),t()}),i[r(295)](r(363),()=>{const e=r;this[e(335)]&&console[e(366)]("🎬 Video can play, attempting autoplay..."),t()}),i[r(295)](r(368),()=>{const e=r;this[e(335)]&&console[e(366)](e(322)),t()}),setTimeout(()=>{const e=r;this[e(335)]&&console[e(366)]("🎬 Initial autoplay attempt after timeout..."),t()},100)}else if(e[r(370)]){const n=document[r(297)](r(378));return n[r(302)]=e[r(370)],n[r(309)][r(356)]=r(377),n[r(309)][r(304)]=r(377),n[r(309)][r(287)]=r(332),n[r(387)]=e[r(346)]||"Video thumbnail",void t[r(292)](n)}it[r(293)](i,e,n,()=>this[r(388)](),this[r(335)],r(298)),i[r(295)]("error",i=>{const s=r;if(console.error(s(362),i),e[s(370)]){const r=document[s(297)](s(378));r[s(302)]=e[s(370)],r[s(309)][s(356)]=s(377),r.style[s(304)]=s(377),r[s(309)][s(287)]="contain",r.alt=e.title||s(365),it.addClickEventForRenderer(r,e,n,()=>this.createEventTrackingCallback(),this.debug,s(285)),t[s(276)]="",t[s(292)](r)}}),t.appendChild(i),t[r(292)](o),this[r(335)]&&console.log(r(360)+e[r(281)]+r(380)+i.autoplay+r(339)+i[r(349)]+r(379)+i[r(359)]+")")}}function Bt(){const t=["img","containerId","debug","200px","54261Xvwvvk","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","getDefaultHeight","imageUrl","linkUrl","mouseenter","cssText","72530jtoroN","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","3866376ohoDsn","createElement","appendChild","\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 ","🏠 Native ad rendered (first of ","innerHTML","NATIVE","776772VRcToi","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","warn","🏠 Single native ad rendered: ","open","advertisementEventTracker","style","getElementById","className","addEventListener","click","button","renderAdElement","\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","⚠️ No native advertisements available for slot: ","adstage-ad adstage-native-ad","textContent","_id","): ","div","5QcSIwj","src","160jjwvMJ","Native click tracked for ad: ","log","16bipmlN","Native Advertisement","mouseleave","70450ovbpFF","13437790cCELaz","renderMultipleAds","alt","11loPuRj","4231626lTxdix","length","_blank"];return(Bt=function(){return t})()}function Nt(t,e){const n=Bt();return(Nt=function(t,e){return n[t-=484]})(t,e)}const Ot=Nt;!function(){const t=Nt,e=Bt();for(;;)try{if(322611===parseInt(t(526))/1*(-parseInt(t(496))/2)+parseInt(t(489))/3+parseInt(t(528))/4*(parseInt(t(534))/5)+-parseInt(t(498))/6+-parseInt(t(539))/7+-parseInt(t(531))/8*(parseInt(t(505))/9)+-parseInt(t(535))/10*(-parseInt(t(538))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft extends mt{constructor(t=!1,e){super(a[Nt(504)],t,e)}[Ot(491)](){return Ot(488)}async renderAdElement(t,e){const n=Ot,r=document[n(512)](t[n(486)]);if(!r)return;const i=document.createElement(n(525));if(i[n(513)]=n(521),i[n(511)][n(495)]=n(501),e[n(519)]){const t=document.createElement("h3");t[n(522)]=e[n(519)],t[n(511)][n(495)]="\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ",i[n(500)](t)}if(e[n(522)]){const t=document[n(499)]("p");t.textContent=e[n(522)],t[n(511)][n(495)]=n(506),i[n(500)](t)}if(e[n(492)]){const t=document[n(499)]("div");t[n(511)].cssText=n(490);const r=document.createElement(n(485));r[n(527)]=e[n(492)],r[n(537)]=e.title||n(532),r[n(511)][n(495)]=n(497),t[n(500)](r),i[n(500)](t)}if(e[n(493)]){const t=document.createElement(n(516));t[n(522)]="Learn More",t[n(511)][n(495)]=n(518),t[n(514)](n(515),()=>{const t=n;this[t(510)]&&console[t(530)](t(529)+e[t(523)]),window[t(509)](e[t(493)],t(484))}),t[n(514)](n(494),()=>{t[n(511)].backgroundColor="#2563eb"}),t[n(514)](n(533),()=>{t[n(511)].backgroundColor="#3b82f6"}),i[n(500)](t)}r[n(503)]="",r[n(500)](i),this[n(487)]&&console[n(530)](n(508)+e[n(523)])}async[Ot(536)](t,e){const n=Ot;e.length>0?(await this[n(517)](t,e[0]),this[n(487)]&&console[n(530)](n(502)+e[n(540)]+n(524)+t.id)):this[n(487)]&&console[n(507)](n(520)+t.id)}}const Ht=Vt;function Vt(t,e){const n=Kt();return(Vt=function(t,e){return n[t-=214]})(t,e)}function Kt(){const t=["mouseleave","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","getElementById","44aOOksL","debug","parentNode","#e5e7eb","innerHTML","Interstitial click tracked for ad: ","appendChild","textContent","2594464uLHUoZ","5160VnxNTx","Interstitial Advertisement","adstage-interstitial-styles","button","imageUrl","\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 ","renderAdElement","_id","advertisementEventTracker","400px","keydown","#f3f4f6","1425838kaAyME","linkUrl","warn","className","\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 ","#374151","_blank","click","div","key","🖼️ Interstitial ad rendered (first of ","mouseenter","55095eSDGfs","2605kmfGgE","closeInterstitial","getDefaultHeight","alt","style","backgroundColor","addEventListener","fadeOut 0.3s ease-out forwards","src","adstage-interstitial-overlay","animation","9568818HSFzPs","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 ","Get Started","log","removeChild","INTERSTITIAL","createElement","🖼️ Interstitial ad rendered: ","Escape","#2563eb","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","28747062gxjJib","⚠️ No interstitial advertisements available for slot: ","length","1579990xBNFGE","): ","target","\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 ","img","body","\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(Kt=function(){return t})()}!function(){const t=Vt,e=Kt();for(;;)try{if(791532===parseInt(t(227))/1+parseInt(t(258))/2+parseInt(t(270))/3*(parseInt(t(237))/4)+parseInt(t(271))/5*(parseInt(t(246))/6)+parseInt(t(282))/7+-parseInt(t(245))/8+-parseInt(t(224))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class jt extends mt{constructor(t=!1,e){super(a[Vt(218)],t,e)}[Ht(273)](){return Ht(255)}async renderAdElement(t,e){const n=Ht;if(!document.getElementById(t.containerId))return;const r=document[n(219)](n(266));r[n(261)]=n(280),r.style[n(283)]=n(233);const i=document[n(219)](n(266));i[n(261)]="adstage-interstitial-content",i[n(275)][n(283)]=n(262);const s=document.createElement("button");if(s[n(241)]="×",s[n(275)][n(283)]=n(251),s[n(277)](n(265),()=>{this[n(272)](r)}),s.addEventListener(n(269),()=>{const t=n;s[t(275)][t(276)]=t(240),s[t(275)].color=t(263)}),s[n(277)](n(234),()=>{const t=n;s.style.backgroundColor=t(257),s.style.color="#6b7280"}),e[n(250)]){const t=document[n(219)](n(231));t[n(279)]=e.imageUrl,t[n(274)]=e.title||n(247),t.style[n(283)]=n(223),i[n(243)](t)}if(e.title){const t=document[n(219)]("h2");t[n(244)]=e.title,t[n(275)][n(283)]="\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ",i[n(243)](t)}if(e.textContent){const t=document.createElement("p");t[n(244)]=e[n(244)],t.style[n(283)]=n(235),i[n(243)](t)}if(e.linkUrl){const t=document.createElement(n(249));t[n(244)]=n(215),t[n(275)][n(283)]=n(214),t[n(277)]("click",()=>{const t=n;this[t(254)]&&console[t(216)](t(242)+e[t(253)]),window.open(e[t(259)],t(264)),this[t(272)](r)}),t[n(277)]("mouseenter",()=>{const e=n;t[e(275)][e(276)]=e(222)}),t.addEventListener(n(234),()=>{const e=n;t.style[e(276)]="#3b82f6"}),i.appendChild(t)}const o=t=>{const e=n;t[e(267)]===e(221)&&(this.closeInterstitial(r),document.removeEventListener("keydown",o))};if(document.addEventListener(n(256),o),r[n(277)](n(265),t=>{const e=n;t[e(229)]===r&&this[e(272)](r)}),!document[n(236)]("adstage-interstitial-styles")){const t=document[n(219)](n(275));t.id=n(248),t.textContent=n(230),document.head.appendChild(t)}i[n(243)](s),r.appendChild(i),document[n(232)].appendChild(r),this[n(238)]&&console[n(216)](n(220)+e[n(253)])}async renderMultipleAds(t,e){const n=Ht;e[n(226)]>0?(await this[n(252)](t,e[0]),this[n(238)]&&console.log(n(268)+e[n(226)]+n(228)+t.id)):this.debug&&console[n(260)](n(225)+t.id)}closeInterstitial(t){const e=Ht;t[e(275)][e(281)]=e(278),setTimeout(()=>{const n=e;t[n(239)]&&t.parentNode[n(217)](t)},300),this[e(238)]&&console[e(216)]("🖼️ Interstitial ad closed")}}function Wt(){const t=["109102zmweZK","renderAd","18854lLQgZO","img","log","INTERSTITIAL","Failed to load image: ","data-adstage-slot-id","No advertisement to render","3125304ROjMiH","imageUrl","get","toLowerCase","BANNER","advertisementEventTracker","onerror","createAdElement","getRenderer","isLoaded","createElement","getDefaultHeightForAdType","warn","8px","6730JzpLiG","size","set","initializeRenderers","renderers","textContent","cover","objectFit","calculateOptimalContainerSize","naturalHeight","div","872IUNxxM","renderAdSlider"," Ad","renderAdElement","debug","🏭 AdRenderer factory initialized with ","[AdRenderer] ","onload","⚠️ Container optimization is only supported for BANNER ads, got: ","TEXT","100%","data-adstage-ad-id","renderMultipleAds","height","renderFallback","src","VIDEO","213QJywtL","advertisement","setAttribute","24536bTwZQc","7362dciKTU","display","backgroundColor","22775TJOSsW","adType","style","calculateAdSize","getDefaultHeight","renderOptimizedBannerImage","No renderer found for ad type: ","loadImageDimensions","className","appendChild","1px dashed #ccc","222KJImIp","config","4263931IjEHno","#f9f9f9"," renderers","width"];return(Wt=function(){return t})()}const Gt=qt;function qt(t,e){const n=Wt();return(qt=function(t,e){return n[t-=290]})(t,e)}!function(){const t=qt,e=Wt();for(;;)try{if(784112===-parseInt(t(298))/1+-parseInt(t(307))/2+parseInt(t(349))/3*(parseInt(t(352))/4)+parseInt(t(356))/5*(parseInt(t(292))/6)+parseInt(t(294))/7+parseInt(t(332))/8*(parseInt(t(353))/9)+-parseInt(t(321))/10*(-parseInt(t(300))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Jt{constructor(t=!1,e){const n=qt;this.renderers=new Map,this[n(336)]=t,this[n(312)]=e||null,this[n(324)]()}[Gt(324)](){const t=Gt;this.renderers.set(a[t(311)],new yt(this[t(336)],this[t(312)])),this[t(325)].set(a.TEXT,new Rt(this[t(336)],this[t(312)])),this[t(325)][t(323)](a[t(348)],new Pt(this.debug,this[t(312)])),this[t(325)][t(323)](a.NATIVE,new Ft(this[t(336)],this[t(312)])),this[t(325)][t(323)](a[t(303)],new jt(this[t(336)],this.advertisementEventTracker)),this.debug&&console[t(302)](t(337)+this.renderers[t(322)]+t(296))}[Gt(314)](t,e){const n=Gt,r=this.getRenderer(t[n(357)]),i=document.createElement(n(331));i[n(364)]="adstage-ad adstage-"+String(t[n(357)])[n(310)](),i[n(351)](n(343),e._id),i.setAttribute(n(305),t.id);const{width:s,height:o}=r[n(359)](i,t[n(293)]||{},e);switch(i[n(358)].width=s,i[n(358)][n(345)]=o,i[n(358)][n(354)]="block",t[n(357)]){case a.BANNER:if(e[n(308)]){const t=document[n(317)](n(301));t[n(347)]=e[n(308)],t[n(358)][n(297)]=n(342),t[n(358)][n(345)]="100%",t[n(358)][n(328)]=n(327),i.appendChild(t)}break;case a.VIDEO:if(e.videoUrl){const t=document.createElement("video");t[n(347)]=e.videoUrl,t[n(358)][n(297)]=n(342),t[n(358)].height=n(342),i[n(290)](t)}break;case a[n(341)]:if(e.textContent){const t=document.createElement("div");t[n(326)]=e[n(326)]||"",t.style.padding=n(320),i[n(290)](t)}break;default:i[n(358)].border=n(291),i[n(358)][n(355)]=n(295),i[n(326)]=t[n(357)]+n(334)}return i}[Gt(315)](t){const e=Gt,n=this[e(325)][e(309)](t);if(!n)throw new Error(e(362)+t);return n}createPlaceholder(t,e,n,r,i){this[Gt(315)](n).createPlaceholder(t,e,r,i)}async optimizeContainerForBannerAds(t,e){const n=Gt;if(t[n(357)]!==a.BANNER)return void(this[n(336)]&&console[n(319)](n(340)+t.adType));const r=this[n(315)](a[n(311)]);await r.optimizeContainerForBannerAds(t,e)}async[Gt(333)](t,e){const n=Gt,r=this[n(315)](t[n(357)]);await r[n(344)](t,e)}async[Gt(299)](t){const e=Gt;if(!t[e(350)])throw new Error(e(306));const n=this[e(315)](t[e(357)]);await n[e(335)](t,t[e(350)]),t[e(316)]=!0}async renderAdElement(t,e){const n=Gt,r=this.getRenderer(t.adType);await r[n(335)](t,e)}[Gt(346)](t){const e=Gt;this[e(315)](t[e(357)]).renderFallback(t)}[Gt(318)](t){const e=Gt;return this[e(315)](t)[e(360)]()}calculateAdSize(t,e,n,r){return this[Gt(315)](e).calculateAdSize(t,n,r)}[Gt(363)](t){return new Promise((e,n)=>{const r=qt,i=new Image;i[r(339)]=()=>{const t=r;e({width:i.naturalWidth,height:i[t(330)]})},i[r(313)]=()=>{n(new Error(r(304)+t))},i[r(347)]=t})}async[Gt(361)](t,e,n){const r=Gt;if(n.adType!==a[r(311)])throw new Error("renderOptimizedBannerImage is only supported for BANNER ads");const i=this[r(315)](a[r(311)]);return await i.renderOptimizedBannerImage(t,e,n)}async calculateOptimalContainerSize(t,e,n){const r=Gt;if(n!==a.BANNER){const t=this[r(315)](n);return{width:r(342),height:t[r(360)](),aspectRatio:16/9}}const i=this[r(315)](a.BANNER);return await i[r(329)](t,e)}[Gt(302)](t,...e){const n=Gt;this[n(336)]&&console[n(302)](n(338)+t,...e)}}const Xt=Qt;function Yt(){const t=["175856lIHGKY","❌ Failed to find element for viewability tracking: ","getAttribute","video","then","🎯 Simple viewability tracking started for slot: ","ensureReady","adType","observe","_config","append","customControls","📊 Fetched specific ad with ID: ","🎠 Slider will handle VIEWABLE events for ","adstage-","getBaseUrl","now","loadAdContentInBackground","❌ Failed to track viewable impression:","_isReady","text","✅ Ad loaded for slot: ","🔍 Ad slot already cleaned up: ","setAttribute","error","isReady","banner",". Retrying in ","1IIXdEb","🔄 Ad slot refreshed: ","📊 Advertisement event tracking enabled for slot: ","6vFuwri","renderFallback","adId","145206ZgOZbl","destroyModule","🚫 Advertisement not found with ID: ","forEach","playsinline","3074050JwLzxs","175jugDVP","auto","Ad slot not found: ","log","onClick","destroy","height","advertisement","mutationObserver","setupAutoCleanup","🧹 Auto-cleanup: slot ","advertisements","Failed to fetch ad data: "," attempts: ","getAllSlots","autoSlide","substr","ELEMENT_NODE","querySelectorAll","getElementById","광고 생성 중 오류 발생:"," (attempt ","78230HMjEql","createAdInternal","config","ms... (attempt ","toString","Container not found after "," ads automatically","handleViewableEvent","startSimpleViewabilityTracking","delete","country","controls","auto-","✅ Simple viewable impression tracked for ad ","muted","string","maxLines","interstitial","clear","apiKey","list","1933076CKKMbE","📊 Fetched ","VIEWABLE","data-adstage-slot-id","[data-adstage-slot-id]","🔄 Retrying viewability tracking for slot: ","status","getSlotById","_id","handleRemovedElement","renderAd","New advertisement viewable tracked for slot:","innerHTML","Container not found: ","INTERSTITIAL","slots","deviceType","🎯 Ads module initialized (sync mode) with auto-cleanup","1705idYzEc","refreshAdSlot","659212oyTCmm","slideInterval","debug","init","Ads module not initialized. Call AdStage.init() first.","json","isLoaded","values","width","disconnect","🔍 Auto-cleanup MutationObserver enabled","refresh","NATIVE","createAdWithRetry","BANNER","Failed to refresh ad slot: ","set"," ads)","renderAdElement","GET","fetchAdData","autoDestroy"," removed","create","undefined","100%","viewabilityTracker","language","length","nodeType","loop","advertisementEventTracker","body","from","VIDEO","warn","2580777oQwMCY","adRenderer","get","createAd","TEXT","Auto-cleanup failed for slot ","style"];return(Yt=function(){return t})()}function Qt(t,e){const n=Yt();return(Qt=function(t,e){return n[t-=198]})(t,e)}!function(){const t=Qt,e=Yt();for(;;)try{if(587363===parseInt(t(244))/1*(-parseInt(t(319))/2)+-parseInt(t(209))/3+parseInt(t(299))/4+-parseInt(t(255))/5*(-parseInt(t(247))/6)+-parseInt(t(256))/7*(parseInt(t(216))/8)+parseInt(t(250))/9+-parseInt(t(278))/10*(-parseInt(t(317))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Zt{constructor(){const t=Qt;this[t(235)]=!1,this[t(225)]=null,this[t(314)]=new Map,this.advertisementEventTracker=null,this[t(210)]=null,this[t(264)]=null}[Xt(322)](t){const e=Xt;this[e(225)]=t,this[e(204)]=new N(Y[e(231)](),t.apiKey,t[e(321)]||!1,this[e(314)]),this[e(210)]=new Jt(t[e(321)]||!1,this[e(204)]),this[e(265)](),this[e(235)]=!0,t.debug&&console.log(e(316))}[Xt(241)](){return this[Xt(235)]}getConfig(){return this[Xt(225)]}[Xt(242)](t,e){const n=Xt;this[n(222)]();const r={width:e?.width||n(198),height:e?.height||n(257),autoSlide:e?.[n(271)]||!1,slideInterval:e?.[n(320)]||5e3,onClick:e?.[n(260)],adId:e?.[n(249)],language:e?.[n(200)],deviceType:e?.[n(315)],country:e?.[n(288)]};return this[n(212)](t,a[n(333)],r)}[Xt(236)](t,e){const n=Xt;this[n(222)]();const r={maxLines:e?.[n(294)]||3,style:e?.[n(215)]||"default",onClick:e?.onClick,adId:e?.[n(249)],language:e?.[n(200)],deviceType:e?.[n(315)],country:e?.[n(288)]};return this[n(212)](t,a[n(213)],r)}[Xt(219)](t,e){const n=Xt;this[n(222)]();const r={width:e?.[n(327)]||640,height:e?.[n(262)]||360,autoplay:void 0===e?.autoplay||e.autoplay,muted:void 0===e?.muted||e[n(292)],loop:void 0===e?.[n(203)]||e[n(203)],playsinline:!1!==e?.[n(254)],controls:void 0!==e?.[n(289)]&&e.controls,hideControls:e?.hideControls||!1,customControls:e?.[n(227)],autoSlide:!1,maxAds:1,onClick:e?.onClick,...e?.[n(249)]&&{adId:e[n(249)]}};return this[n(212)](t,a[n(207)],r)}native(t,e){const n=Xt;return this[n(222)](),this[n(212)](t,a[n(331)],e||{})}[Xt(295)](t,e){const n=Xt;return this[n(222)](),this[n(212)](t,a[n(313)],e||{})}[Xt(330)](t){const e=Xt;this[e(222)]();const n=this[e(314)].get(t);if(!n)throw new Error(e(258)+t);this[e(318)](n),this[e(225)]?.debug&&console[e(259)](e(245)+t)}[Xt(261)](t){const e=Xt;this[e(222)]();const n=this[e(314)][e(211)](t);if(!n)return void(this[e(225)]?.[e(321)]&&console[e(259)](e(238)+t));n[e(199)]&&n.viewabilityTracker.destroy();const r=document[e(275)](n.containerId);r&&(r[e(311)]=""),this[e(314)][e(287)](t),this._config?.[e(321)]&&console[e(259)]("🗑️ Ad slot destroyed: "+t)}[Xt(270)](){const t=Xt;return this[t(222)](),Array[t(206)](this[t(314)][t(326)]())}[Xt(306)](t){return this[Xt(222)](),this.slots.get(t)||null}[Xt(212)](t,e,n){const r=Xt;if(!this[r(225)]?.[r(297)])throw new Error("API key not configured");const i=r(230)+e+"-"+Date[r(232)]()+"-"+Math.random().toString(36)[r(272)](2,9);return this[r(332)](t,e,n,i,0),i}async[Xt(332)](t,e,n,r,i){const s=Xt,o=[0,50,100,200,500];let a,c=null;if(typeof t===s(293)){if(a=t,c=document[s(275)](t),!c)return i<4?(this[s(225)]?.[s(321)]&&console[s(208)](s(312)+t+s(243)+o[i+1]+s(281)+(i+1)+"/5)"),void setTimeout(()=>{this[s(332)](t,e,n,r,i+1)},o[i+1])):void console[s(240)](s(283)+5+s(269)+t)}else c=t,a=c.id||s(290)+r,!c.id&&(c.id=a);try{this[s(279)](a,e,n,r,c)}catch(t){console[s(240)](s(276),t)}}[Xt(279)](t,e,n,r,i){const s=Xt;i[s(239)](s(302),r),this.adRenderer?.createPlaceholder(i,r,e,n,this[s(225)]);const o={id:r,containerId:t,adType:e,width:n[s(327)]||s(198),height:n.height||(e===a[s(213)]?s(257):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this.fetchAdData(e,n)[s(220)](t=>t[0]||null),render:t=>this[s(210)]?.[s(337)](o,t),refresh:async()=>this[s(318)](o),destroy:()=>this[s(261)](r)};this.slots[s(335)](r,o),this[s(233)](o),this.advertisementEventTracker&&this._config?.[s(321)]&&console[s(259)](s(246)+r)}async[Xt(233)](t){const e=Xt;try{const n=await this[e(339)](t.adType,t[e(280)]);if(!n||0===n[e(201)])return void this.adRenderer?.[e(248)](t);t[e(223)]===a[e(333)]&&n.length>0&&await(this[e(210)]?.optimizeContainerForBannerAds(t,n)),n[e(201)]>1||t[e(280)]?.[e(271)]?(await(this[e(210)]?.renderAdSlider(t,n)),this[e(225)]?.debug&&console[e(259)](e(229)+n[e(201)]+e(284))):(t[e(263)]=n[0],await(this.adRenderer?.[e(337)](t,n[0])),this[e(286)](t,n[0])),t[e(325)]=!0,this[e(225)]?.[e(321)]&&console[e(259)](e(237)+t.id+" ("+n[e(201)]+e(336))}catch(e){console.error("❌ Failed to load ad for slot: "+t.id,e),this.adRenderer?.renderFallback(t)}}[Xt(286)](t,e){const n=(r=0)=>{const i=Qt,s=document[i(275)](t.id);if(!s)return void(r<5?(setTimeout(()=>n(r+1),300),this[i(225)]?.[i(321)]&&console[i(259)](i(304)+t.id+i(277)+(r+1)+")")):console[i(208)](i(217)+t.id));const o=new K(s,async()=>{const n=i;await this[n(285)](e,t)});t[i(199)]=o,this._config?.[i(321)]&&console[i(259)](i(221)+t.id+" (element found)")};n()}async handleViewableEvent(t,e){const n=Xt;try{this[n(204)]&&(await this[n(204)].trackAdvertisementEvent(t[n(307)],e.id,h[n(301)]),this[n(225)]?.debug&&console[n(259)](n(291)+t[n(307)]))}catch(t){console[n(240)](n(234),t)}}async[Xt(339)](t,e){const n=Xt;if(!this[n(225)]?.apiKey)throw new Error("API key not configured");if(e.adId){const t=""+Y[n(267)].detail(e.adId),r=await fetch(t,{method:n(338),headers:U[n(342)](this._config[n(297)])});if(!r.ok){if(404===r[n(305)])return console[n(208)](n(252)+e.adId),[];throw new Error(n(268)+r[n(305)])}const i=await r.json();return this._config?.[n(321)]&&console[n(259)](n(228)+e[n(249)],i),[i]}const r=new URLSearchParams;r[n(226)]("adType",t),e[n(200)]&&r.append("language",e[n(200)]),e[n(315)]&&r.append(n(315),e[n(315)]),e[n(288)]&&r[n(226)](n(288),e[n(288)]);const i=Y[n(267)][n(298)]()+"?"+r[n(282)](),s=await fetch(i,{method:n(338),headers:U[n(342)](this._config[n(297)])});if(!s.ok)throw new Error("Failed to fetch ad data: "+s.status);const o=(await s[n(324)]())[n(267)]||[];return this[n(225)]?.debug&&console.log(n(300)+o[n(201)]+" ads for type: "+t+", filters:",{language:e[n(200)],deviceType:e[n(315)],country:e[n(288)]}),o}async[Xt(318)](t){const e=Xt;try{const n=await this[e(339)](t[e(223)],t[e(280)]||{});n&&n.length>0&&(t[e(263)]=n[0],await(this.adRenderer?.[e(309)](t)),this[e(204)]&&console[e(259)](e(310),t.id))}catch(n){console[e(240)](e(334)+t.id,n)}}[Xt(222)](){const t=Xt;if(!this[t(235)])throw new Error(t(323))}[Xt(265)](){const t=Xt;typeof window!==t(343)&&typeof document!==t(343)&&(this[t(264)]&&this[t(264)][t(328)](),this[t(264)]=new MutationObserver(e=>{const n=t;e[n(253)](t=>{const e=n;t.removedNodes[e(253)](t=>{const n=e;t[n(202)]===Node[n(273)]&&this.handleRemovedElement(t)})})}),this[t(264)][t(224)](document[t(205)],{childList:!0,subtree:!0}),this[t(225)]?.[t(321)]&&console[t(259)](t(329)))}[Xt(308)](t){const e=Xt,n=t[e(218)](e(302));if(n)return void this.autoDestroy(n);t[e(274)](e(303))[e(253)](t=>{const n=e,r=t[n(218)](n(302));r&&this.autoDestroy(r)})}[Xt(340)](t){const e=Xt,n=this[e(314)][e(211)](t);if(n)try{n[e(199)]&&n[e(199)][e(261)](),this.slots[e(287)](t),this[e(225)]?.debug&&console.log(e(266)+t+e(341))}catch(n){this[e(225)]?.[e(321)]&&console[e(208)](e(214)+t+":",n)}}[Xt(251)](){const t=Xt,e=this[t(225)]?.debug;this[t(264)]&&(this[t(264)][t(328)](),this[t(264)]=null),this[t(314)][t(296)](),this.advertisementEventTracker=null,this[t(210)]=null,this[t(235)]=!1,this[t(225)]=null,e&&console[t(259)]("🗑️ Ads module destroyed")}}function $t(t,e){var n=ee();return($t=function(t,e){return n[t-=473]})(t,e)}var te=$t;function ee(){var t=["isDebugMode","log","433128VjjteO","apiKey","_config","4fmzOMk","create","modules","getOrganizationInfo","12lnguzH","515643gkiuBK","development","🔄 Config updated","getConfig","setBaseUrl","166019wuBfUG","138796tEtUdD","init","1386215EnAoIZ","baseUrl","1120399tKAWEN","18ArZcXS","_organizationInfo","_isReady","getBaseUrl","isReady","debug","includes","isModuleEnabled","config","40RWFoZk","events","Config module not initialized","761200iIXzXx","getApiHeaders"];return(ee=function(){return t})()}!function(){for(var t=$t,e=ee();;)try{if(215511===parseInt(t(476))/1+parseInt(t(501))/2*(-parseInt(t(506))/3)+-parseInt(t(477))/4+-parseInt(t(479))/5+parseInt(t(505))/6*(parseInt(t(481))/7)+parseInt(t(498))/8*(parseInt(t(482))/9)+-parseInt(t(491))/10*(-parseInt(t(494))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=$t;this[t(484)]=!1,this[t(500)]=null,this[t(483)]=null}[te(478)](t){var e=te;this[e(500)]={timeout:3e4,debug:!1,modules:["ads",e(492),e(490)],...t},t[e(480)]&&Y[e(475)](t[e(480)]),this[e(484)]=!0,t[e(487)]&&console[e(497)]("✅ Config module initialized (sync mode)",{modules:this[e(500)][e(503)],endpoint:Y[e(485)](),mode:e(507)})}[te(486)](){return this[te(484)]}[te(474)](){return this[te(500)]}[te(504)](){return this[te(483)]}getApiEndpoint(){return Y[te(485)]()}[te(496)](){var t=te;return this[t(500)]?.debug||!1}getEnabledModules(){var t=te;return this[t(500)]?.[t(503)]||[]}[te(489)](t){var e=te;return this.getEnabledModules()[e(488)](t)}updateConfig(t){var e=te;if(!this[e(500)])throw new Error(e(493));this[e(500)]={...this[e(500)],...t},this[e(496)]()&&console[e(497)](e(473),t)}[te(495)](){var t=te;if(!this[t(500)]?.apiKey)throw new Error("API key not available");return U[t(502)](this._config[t(499)])}}const re=se;!function(){const t=se,e=oe();for(;;)try{if(824638===-parseInt(t(211))/1*(parseInt(t(195))/2)+-parseInt(t(213))/3+parseInt(t(194))/4*(-parseInt(t(192))/5)+-parseInt(t(176))/6+parseInt(t(205))/7+-parseInt(t(214))/8*(parseInt(t(180))/9)+parseInt(t(186))/10*(parseInt(t(185))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ie{static[re(174)](){return{...ie[re(175)](),...ie._userProvidedDeviceInfo}}static getAutoDetectedDeviceInfo(){const t=re;if(!w[t(190)]())return{category:t(215),platform:t(212),model:t(212),osVersion:t(212)};const e=navigator.userAgent[t(198)]();let n="desktop";/tablet|ipad/[t(216)](e)?n=t(210):R[t(217)]()&&(n=t(177));const r=R[t(187)]();return{category:n,platform:ie.mapPlatformForEvents(r),model:navigator[t(184)],osVersion:navigator[t(184)],deviceId:R[t(196)]()}}static[re(208)](t){ie._userProvidedDeviceInfo={...ie._userProvidedDeviceInfo,...t}}static[re(201)](t,e){ie[re(199)][t]=e}static[re(188)](){ie[re(199)]={}}static[re(178)](){return{...ie[re(199)]}}static[re(182)](t){const e=re;switch(t){case"ios":return e(219);case e(218):return e(220);case e(181):return"Mobile Web";case e(197):return e(204);default:return e(200)}}static[re(207)](){const t=re;if(!w[t(190)]())return{userAgent:"SSR",language:t(206),platform:t(212),cookieEnabled:!1,onLine:!0,screenResolution:t(193),viewportSize:t(193)};const e=w[t(203)]();return{userAgent:navigator[t(202)],language:navigator[t(179)]||t(206),platform:navigator.platform,cookieEnabled:navigator[t(209)],onLine:navigator[t(189)],screenResolution:screen[t(191)]+"x"+screen[t(183)],viewportSize:e[t(191)]+"x"+e[t(183)]}}}function se(t,e){const n=oe();return(se=function(t,e){return n[t-=174]})(t,e)}function oe(){const t=["Android","getDeviceInfo","getAutoDetectedDeviceInfo","1739244zukCAK","mobile","getUserDeviceInfo","language","9gAHcaa","web","mapPlatformForEvents","height","platform","12034CspEJm","24980nqiiSn","getPlatform","clearDeviceInfo","onLine","isBrowser","width","5OVMZoQ","0x0","203092eMiFMC","22sONgNE","generateDeviceId","desktop","toLowerCase","_userProvidedDeviceInfo","Unknown","setDeviceProperty","userAgent","getViewportInfo","Desktop Web","2652916oyWEji","ko-KR","getDetailedInfo","setDeviceInfo","cookieEnabled","tablet","101802rEHLXK","SSR","474873PsXdAT","5347216wVeumq","other","test","isMobile","android","iOS"];return(oe=function(){return t})()}ie[re(199)]={};const ae=de;!function(){const t=de,e=le();for(;;)try{if(743429===-parseInt(t(218))/1+parseInt(t(228))/2+parseInt(t(217))/3+-parseInt(t(229))/4*(parseInt(t(220))/5)+parseInt(t(231))/6+parseInt(t(216))/7*(parseInt(t(215))/8)+-parseInt(t(219))/9*(parseInt(t(234))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ce{static getUserInfo(){const t=de;return{...ce[t(225)](),...ce[t(232)]}}static[ae(225)](){const t=ae;if(!w[t(226)]())return{language:t(224),country:"KR"};const e=navigator.language||t(224);return{language:e,country:ce.extractCountryFromLanguage(e)}}static[ae(222)](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[ae(236)]("-")[0]]||"KR"}static[ae(227)](t){ce[ae(232)]={...ce._userProperties,...t}}static[ae(223)](t,e){ce[ae(232)][t]=e}static[ae(230)](){ce[ae(232)]={}}static[ae(233)](){return{...ce[ae(232)]}}static[ae(235)](){const t=ae;if(!w[t(226)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(221)]().resolvedOptions().timeZone;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 de(t,e){const n=le();return(de=function(t,e){return n[t-=215]})(t,e)}function le(){const t=["_userProperties","getCurrentUserProperties","665120YQklWt","estimateLocation","split","56letgnQ","1049909NKKDux","4084389aSBktX","577901WOfJhV","288reojJb","818225EEHtye","DateTimeFormat","extractCountryFromLanguage","setUserProperty","ko-KR","getBaseUserInfo","isBrowser","setUserProperties","860676KtlWyf","20UVfxju","clearUserProperties","8557374WrNaGz"];return(le=function(){return t})()}function ue(){const t=["adstage_referrer","gclid","channel","3501hAzGjw","clear","adstage_last_click_id","msclkid","li_fat_id","captureFromUrl","keywordId","removeItem","search","178GzHaDx","getItem","2488640GCsiUr","11135300wSuywr","ttclid","tiktok.ads","k_keyword_id","STORAGE_KEY","utm_campaign","2837cqMlOv","ALL_KEYS","liclid","pnclid","adstage_click_event_sent","Failed to store tracking params:","CLICK_ID_KEYS","kakaoclk","creativeId","wbraid","utm_term","adGroup","location","length","toAttributionObject","keyword","naverclk","naver.searchad","k_rank","shouldSendClickEvent","kakao.moment","ScCid","sccid","CAMPAIGN_KEYS","fbclid","parse","google.ads","some","4WzbIeF","ad_creative","isClickEventSent","warn","Failed to parse adstage_referrer:","kakao.keyword","yclid","4470305amDgTT","keys","k_campaign","ad_group","adCreative","k_adgroup","term","creative_id","stringify","1201443ygaKTj","adstage","get","k_keyword","campaign","meta.ads","adRank","hasClickId","true","nclid","ad_group_id","adGroupId","setItem","24EyDriz","twclid","store","linkedin.ads","utm_source","29936VxUuqN","utm_medium","UTM_KEYS","17559575VpfXAg","campaignId","twitter.ads","gbraid","undefined","utm_content","campaign_id","k_creative","36zSyRjw","hasParams","microsoft.ads"];return(ue=function(){return t})()}ce[ae(232)]={};const pe=he;function he(t,e){const n=ue();return(he=function(t,e){return n[t-=154]})(t,e)}!function(){const t=he,e=ue();for(;;)try{if(749308===-parseInt(t(175))/1*(-parseInt(t(166))/2)+parseInt(t(219))/3*(parseInt(t(203))/4)+parseInt(t(210))/5+parseInt(t(232))/6*(parseInt(t(168))/7)+parseInt(t(237))/8*(parseInt(t(157))/9)+parseInt(t(169))/10+parseInt(t(240))/11*(-parseInt(t(248))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{static[pe(162)](){const t=pe;if(typeof window===t(244))return null;const e=new URLSearchParams(window[t(187)][t(165)]),n={};let r=!1;const i=e[t(221)](t(154));if(i)try{const e=decodeURIComponent(i),s=new URLSearchParams(e);for(const e of fe.ALL_KEYS){const i=s[t(221)](e);i&&(n[e]=i,r=!0)}"true"===s.get(t(220))&&(r=!0)}catch(e){console[t(206)](t(207),e)}for(const i of fe[t(176)]){if(n[i])continue;const s=e[t(221)](i);s&&(n[i]=s,r=!0)}return r?(n[t(156)]||(n[t(155)]||n[t(243)]||n[t(184)]?n[t(156)]=t(201):n[t(199)]?n[t(156)]=t(224):n.ttclid?n.channel=t(171):n.twclid?n[t(156)]=t(242):n[t(161)]||n[t(177)]?n.channel=t(235):n[t(160)]?n[t(156)]=t(250):n[t(197)]||n[t(196)]?n[t(156)]="snapchat.ads":n[t(209)]?n[t(156)]="yahoo.ads":n[t(178)]?n.channel="pinterest.ads":n[t(191)]||n[t(228)]?n[t(156)]=t(192):n[t(182)]?n.channel=t(195):"kakao"===n[t(236)]&&"keyword"===n[t(238)]?n.channel=t(208):(n.k_campaign||n[t(222)])&&(n[t(156)]=t(208))),fe[t(234)](n),n):null}static[pe(234)](t){const e=pe;if(typeof window!==e(244))try{const n={...fe[e(221)](),...t},r=JSON[e(218)](n);try{sessionStorage[e(231)](fe.STORAGE_KEY,r)}catch(t){}try{localStorage.setItem(fe[e(173)],r)}catch(t){}}catch(t){console[e(206)](e(180),t)}}static[pe(221)](){const t=pe;if("undefined"==typeof window)return null;try{const e=sessionStorage?.[t(167)](fe[t(173)]);if(e)return JSON[t(200)](e)}catch(t){}try{const e=localStorage?.[t(167)](fe[t(173)]);if(e)return JSON[t(200)](e)}catch(t){}return null}static[pe(158)](){const t=pe;if(typeof window!==t(244)){try{sessionStorage?.[t(164)](fe[t(173)])}catch(t){}try{localStorage?.[t(164)](fe.STORAGE_KEY)}catch(t){}}}static[pe(249)](){const t=pe,e=fe.get();return null!==e&&Object[t(211)](e)[t(188)]>0}static[pe(226)](){const t=pe,e=fe.get();return!!e&&fe[t(181)][t(202)](t=>e[t])}static[pe(194)](){const t=pe;if(typeof window===t(244))return!1;const e=fe[t(221)]();if(!e)return!1;const n=fe.hasClickId(),r=!!e.channel;if(!n&&!r)return!1;const i=n?e.gclid||e[t(199)]||e.ttclid||e[t(228)]||e[t(177)]||e[t(160)]||e[t(233)]:(e[t(156)]||"")+":"+(e[t(216)]||"");if(!i)return!1;return i!==sessionStorage[t(167)](t(159))&&(sessionStorage[t(231)](t(159),i),!0)}static markClickEventSent(){const t=pe;typeof window!==t(244)&&sessionStorage[t(231)](t(179),"true")}static[pe(205)](){const t=pe;return typeof window!==t(244)&&sessionStorage.getItem(t(179))===t(227)}static[pe(189)](){const t=pe,e=fe[t(221)]();if(!e)return null;const n={};return e[t(155)]&&(n[t(155)]=e[t(155)]),e.fbclid&&(n[t(199)]=e[t(199)]),e[t(170)]&&(n[t(170)]=e[t(170)]),e.nclid&&(n[t(228)]=e[t(228)]),e.channel&&(n[t(156)]=e[t(156)]),e[t(223)]&&(n[t(223)]=e[t(223)]),e[t(246)]&&(n.campaignId=e[t(246)]),e[t(213)]&&(n[t(186)]=e[t(213)]),e[t(229)]&&(n[t(230)]=e.ad_group_id),e[t(204)]&&(n[t(214)]=e[t(204)]),e[t(217)]&&(n.creativeId=e[t(217)]),e[t(216)]&&(n.term=e[t(216)]),e[t(212)]&&(n[t(241)]=n[t(241)]||e.k_campaign),e.k_adgroup&&(n.adGroupId=n[t(230)]||e[t(215)]),e[t(222)]&&(n[t(190)]=e[t(222)]),e[t(172)]&&(n[t(163)]=e[t(172)]),e[t(247)]&&(n[t(183)]=n[t(183)]||e[t(247)]),e[t(193)]&&(n[t(225)]=e.k_rank),e[t(236)]&&(n[t(236)]=e[t(236)]),e[t(238)]&&(n[t(238)]=e[t(238)]),e[t(174)]&&(n[t(174)]=e[t(174)]),e.utm_content&&(n[t(245)]=e[t(245)]),e[t(185)]&&(n[t(185)]=e[t(185)]),Object[t(211)](n)[t(188)]>0?n:null}}fe[pe(173)]="adstage_tracking_params",fe[pe(181)]=[pe(155),"gbraid","wbraid","fbclid",pe(170),"twclid",pe(161),"liclid",pe(160),pe(197),"ScCid",pe(209),"pnclid","nclid","naverclk",pe(182)],fe.CAMPAIGN_KEYS=[pe(156),"campaign",pe(246),"ad_group","ad_group_id","ad_creative",pe(217),pe(216),pe(212),pe(215),pe(222),pe(172),pe(247),"k_rank"],fe.UTM_KEYS=[pe(236),pe(238),"utm_campaign",pe(245),pe(185)],fe[pe(176)]=[...fe[pe(181)],...fe[pe(198)],...fe[pe(239)]];const ge=me;function me(t,e){const n=Ie();return(me=function(t,e){return n[t-=358]})(t,e)}function Ie(){const t=["👤 User properties set:","error","json","statusText","getCurrentUserProperties","📊 Attribution included:","Attribution registration failed: ","1950410CxHehF","getConfig","create","📱 Device info set:","isReady","_isReady","Events module not initialized. Call AdStage.init() first.","📊 Events module initialized","getUserDeviceInfo","📱 Device property set:","1135330BMgWjx","Event data:","Event tracking failed: ","11772poutet","sendAttributionToServer","track","234500Kosadn","2704DqyHyn","1197WjTMkR","✅ Attribution registered:","46754SiNOGJ","API key not configured for event tracking.","❌ Failed to register attribution:","events","init","registerAttribution","📡 Request URL:","clearDeviceInfo","setDeviceProperty","⏭️ No tracking parameters found, skipping attribution registration","setDeviceInfo","adstage_attribution_id","log","apiKey","18fFMChE","API key not configured for attribution registration.","length","status","📦 Attribution request body:","stringify","❌ API Error Response:","text","✅ Event tracked:","225ymBdBl","✅ Event tracked with attribution ID:","❌ Failed to track event:","keys","setUserProperties","getItem","getDeviceInfo","7608190qiMbgn","toAttributionObject","🔑 Attribution request headers:","application/json","get","sendEventToServer","trackWithAttributionId","getAttributionId","POST","warn","attributionId","debug","_config","getUserInfo"];return(Ie=function(){return t})()}!function(){const t=me,e=Ie();for(;;)try{if(440644===parseInt(t(423))/1+parseInt(t(413))/2+-parseInt(t(366))/3*(-parseInt(t(419))/4)+-parseInt(t(375))/5*(parseInt(t(416))/6)+parseInt(t(403))/7+parseInt(t(420))/8*(parseInt(t(421))/9)+-parseInt(t(382))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{constructor(){const t=me;this[t(408)]=!1,this[t(394)]=null}[ge(427)](t){const e=ge;this._config=t,this[e(408)]=!0,t[e(393)]&&console[e(364)](e(410))}[ge(407)](){return this._isReady}[ge(404)](){return this[ge(394)]}[ge(379)](t){const e=ge;ce.setUserProperties(t),this[e(394)]?.[e(393)]&&console[e(364)](e(396),t)}getUserProperties(){return ce.getCurrentUserProperties()}[ge(362)](t){const e=ge;ie[e(362)](t),this[e(394)]?.[e(393)]&&console.log(e(406),t)}[ge(360)](t,e){const n=ge;ie[n(360)](t,e),this[n(394)]?.[n(393)]&&console[n(364)](n(412),t,e)}[ge(359)](){const t=ge;ie[t(359)](),this[t(394)]?.[t(393)]&&console[t(364)]("📱 User provided device info cleared")}[ge(411)](){return ie[ge(411)]()}[ge(381)](){return ie[ge(381)]()}[ge(395)](){return ce[ge(395)]()}getCurrentUserProperties(){return ce[ge(400)]()}async[ge(418)](t,e){const n=ge;if(this[n(408)])if(this[n(394)]?.apiKey)try{const r=this.getAttributionId();if(r){const i={eventName:t,sdkVersion:C(),device:ie[n(381)](),user:ce[n(395)](),attributionId:r,params:e||{}};return await this[n(387)](i),void(this[n(394)].debug&&console[n(364)](n(376),t,r))}const i=fe[n(383)](),s={eventName:t,sdkVersion:C(),device:ie[n(381)](),user:ce[n(395)](),...i&&{attribution:i},params:e||{}};await this[n(387)](s),this[n(394)].debug&&(console.log(n(374),t,e),i&&console[n(364)](n(401),i))}catch(r){console[n(397)](n(377),r),this._config.debug&&console.error(n(414),{eventName:t,properties:e})}else console.warn(n(424));else console[n(391)]("Events module not initialized. Call AdStage.init() first.")}async registerAttribution(t){const e=ge;if(!this._isReady)return console.warn(e(409)),null;if(!this[e(394)]?.apiKey)return console[e(391)](e(367)),null;try{const n=fe[e(386)]();if(!n||0===Object[e(378)](n)[e(368)])return this[e(394)][e(393)]&&console[e(364)](e(361)),null;const r=await this[e(417)]({deviceId:t,referrerParams:n});if(this._config[e(393)]&&console[e(364)](e(422),r),r[e(392)]){try{localStorage.setItem(e(363),r[e(392)])}catch(t){}try{sessionStorage.setItem(e(363),r[e(392)])}catch(t){}}return r}catch(t){return console[e(397)](e(425),t),null}}[ge(389)](){const t=ge;if("undefined"==typeof window)return null;try{const e=sessionStorage[t(380)](t(363));if(e)return e}catch(t){}try{return localStorage[t(380)](t(363))}catch(t){}return null}async[ge(388)](t,e){return this[ge(418)](t,e)}async[ge(387)](t){const e=ge,n={...U[e(405)](this[e(394)][e(365)]),"Content-Type":e(385)};this[e(394)]?.[e(393)]&&(console.log("🔑 Request headers:",n),console[e(364)](e(358),Y[e(426)][e(418)]()),console[e(364)]("📦 Request body:",t));const r=await fetch(Y.events[e(418)](),{method:e(390),headers:n,body:JSON[e(371)](t)});if(!r.ok){const t=await r[e(373)]();throw console[e(397)](e(372),t),new Error(e(415)+r[e(369)]+" "+r[e(399)])}}async[ge(417)](t){const e=ge,n={...U[e(405)](this[e(394)][e(365)]),"Content-Type":"application/json"};this[e(394)]?.[e(393)]&&(console[e(364)](e(384),n),console[e(364)]("📡 Attribution request URL:",Y[e(426)][e(428)]()),console[e(364)](e(370),t));const r=await fetch(Y.events[e(428)](),{method:e(390),headers:n,body:JSON[e(371)](t)});if(!r.ok){const t=await r.text();throw console[e(397)](e(372),t),new Error(e(402)+r[e(369)]+" "+r[e(399)])}return r[e(398)]()}}const ye=xe;!function(){const t=xe,e=Ae();for(;;)try{if(240740===parseInt(t(364))/1+parseInt(t(386))/2*(parseInt(t(380))/3)+parseInt(t(401))/4*(parseInt(t(383))/5)+parseInt(t(385))/6+parseInt(t(363))/7+parseInt(t(362))/8+-parseInt(t(391))/9*(parseInt(t(405))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const be=[ye(375),ye(381),ye(365),ye(366),ye(408),ye(367),ye(378),"liclid","msclkid",ye(402),ye(396),ye(406),"pnclid",ye(388),"naverclk",ye(399)],we=[ye(397)];function ke(t,e={}){const n=ye;if(!t)return t;const r=e[n(404)]&&e[n(404)][n(395)]?e[n(404)]:we;try{const i=new URL(t,e[n(376)]);if(!function(t,e){const n=ye,r=(t||"").toLowerCase();return e[n(393)](t=>{const e=n,i=(t||"").toLowerCase();return!!i&&(r===i||r[e(398)]("."+i))})}(i[n(390)],r))return t;const s=e[n(377)]||null;if(s)for(const t of be){const e=s[t];e&&!i.searchParams[n(409)](t)&&i[n(369)][n(360)](t,String(e))}return e[n(370)]&&!i[n(369)].has(n(368))&&i[n(369)].set(n(368),e[n(370)]),i[n(400)]()}catch(e){return t}}let Ee=!1;function xe(t,e){const n=Ae();return(xe=function(t,e){return n[t-=360]})(t,e)}function Ae(){const t=["sccid","closest","domains","3370GaHCWn","yclid","setAttribute","ttclid","has","set","click","2833128FbgMCk","2399026OYTewy","256580MLnIMI","wbraid","fbclid","twclid","attribution_id","searchParams","attributionId","href","function","🔗 [AdStage] Decorated tracking link:","auxclick","gclid","baseHref","clickParams","li_fat_id","addEventListener","5877bxSWDs","gbraid","undefined","5dXKesI","location","2253144oegeYS","194gydqfx","log","nclid","getClickParams","hostname","36171WcQQCN","getAttributionId","some","target","length","ScCid","adg.im","endsWith","kakaoclk","toString","304628HUnudq"];return(Ae=function(){return t})()}function Se(){const t=["language","debug","attribution_id","markClickEventSent","adstage_attribution_id","AdStage not initialized. Call AdStage.init() first.","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","❌ Failed to register attribution:","log","7928aKTDON","instance","✅ Auto-tracked click event with tracking params:","AdStage.config accessed before initialization","undefined","web-","hardwareConcurrency","function","now","warn","424805CLJGIE","2.0.0","❌ Error in click event auto-tracking:","adstage_device_id","shouldSendClickEvent","location","hash","catch","API key is required for AdStage initialization","server-","toISOString","437010tjXByO","events","❌ Failed to auto-track click event:","userAgent","web","modules","config","length","then","getTimezoneOffset","✅ Attribution registered:","getItem","getInstance","2158668HNIuhW","replace","tracking_params","search","ads","504954xQxhVz","random","toString","generateDeviceId","✅ AdStage Debug: 광고 ","channel","track","...","445293jDUXTV","campaign","error","isReady","📊 Tracking parameters captured:","🎯 Sending click event after attribution registration","decorateUrl","6FtsXCz","attributionId","get","trackingLinkDomains","4pROHQS","hasClickId","click","apiKey","height","width","size","development","📊 AdStage Debug: 현재 viewable 추적 상태","AdStage.ads accessed before initialization","toAttributionObject","init","_config","AdStage.events accessed before initialization","charCodeAt","12963810RmDvGz","baseUrl","setItem","getConfig","abs","href","clear","🚀 AdStage SDK initialized (sync mode)","3031RLpADl","🔍 Should send click event:","_isInitialized","viewableTracker","getAttributionId"];return(Se=function(){return t})()}function Ce(t,e){const n=Se();return(Ce=function(t,e){return n[t-=449]})(t,e)}const Te=Ce;!function(){const t=Ce,e=Se();for(;;)try{if(320576===-parseInt(t(498))/1+-parseInt(t(513))/2*(parseInt(t(480))/3)+-parseInt(t(517))/4*(-parseInt(t(469))/5)+parseInt(t(493))/6+-parseInt(t(540))/7*(parseInt(t(459))/8)+-parseInt(t(506))/9+parseInt(t(532))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class De{constructor(){const t=Ce;this[t(542)]=!1,this[t(529)]=null,this[t(486)]=new ne,this[t(497)]=new Zt,this[t(481)]=new ve}static init(t){const e=Ce;!De[e(460)]&&(De[e(460)]=new De);const n=De[e(460)];if(!t[e(520)])throw new Error(e(477));n[e(529)]={timeout:3e4,debug:!1,modules:[e(497),"events",e(486)],...t},n._config[e(533)]&&(Y.setBaseUrl(n._config[e(533)]),t[e(451)]&&console[e(458)]("🌐 API endpoint configured:",n[e(529)][e(533)]));const r=n[e(529)][e(485)]||[e(497),e(481),"config"];for(const t of r){const r=n[t];r&&typeof r[e(528)]===e(466)&&r.init(n[e(529)])}if(n[e(542)]=!0,typeof window!==e(463)){const r=fe.captureFromUrl();r&&t[e(451)]&&console[e(458)](e(510),r);const i=(()=>{const t=e;try{const e=new URLSearchParams(window[t(474)][t(496)]),n=new URLSearchParams((window.location[t(475)]||"")[t(494)](/^#/,""));return e[t(515)](t(452))||n[t(515)]("attribution_id")}catch{return null}})();if(i)try{localStorage[e(534)](e(454),i),t[e(451)]&&console.log("🔗 Using attributionId from URL (attribution_id):",i)}catch(t){}!function(t){const e=ye;if(Ee)return;if(typeof document===e(382))return;Ee=!0;const n=t[e(404)]&&t[e(404)][e(395)]?t.domains:we,r=r=>{const i=e;try{const e=r[i(394)];if(!e||typeof e[i(403)]!==i(372))return;const s=e[i(403)]("a[href]");if(!s)return;const o=s.getAttribute(i(371));if(!o)return;const a=ke(o,{clickParams:t[i(389)](),attributionId:t[i(392)](),domains:n,baseHref:typeof window!==i(382)?window[i(384)][i(371)]:void 0});a!==o&&(s[i(407)]("href",a),t.debug&&console[i(387)](i(373),a))}catch(t){}};document.addEventListener(e(361),r,!0),document[e(379)](e(374),r,!0)}({getClickParams:()=>fe.get(),getAttributionId:()=>n.events[e(449)](),domains:n[e(529)]?.[e(516)],debug:t[e(451)]});const s=fe[e(473)]();t.debug&&(console[e(458)](e(541),s),!s&&console.log("⏭️ Skipping click event (duplicate or no click ID)"));const o=fe[e(518)](),a=!(!r||!r[e(503)]);if(!i&&r&&(o||a)){const r=(async()=>{const r=e;try{const e=n[r(501)](),i=await n[r(481)].registerAttribution(e);return i&&t[r(451)]&&console[r(458)](r(490),{attributionId:i[r(514)],channel:i[r(503)],campaign:i[r(507)],expiresAt:i.expiresAt}),i}catch(t){return console.error(r(457),t),null}})();s&&r[e(488)](r=>{const i=e;try{const e=fe[i(515)](),s=fe.toAttributionObject();t[i(451)]&&console[i(458)](i(511),{attributionId:r?.[i(514)],hasAttribution:!!r}),n[i(481)].track("click",{_autoGenerated:!0,_source:i(495),_timestamp:(new Date)[i(479)](),_platform:i(484)})[i(488)](()=>{const n=i;fe[n(453)](),t[n(451)]&&console.log(n(461),{attribution:s,trackingParams:e})}).catch(t=>{console[i(508)]("❌ Failed to auto-track click event:",t)})}catch(t){console[i(508)]("❌ Error in click event auto-tracking:",t)}})}else s&&setTimeout(()=>{const r=e;try{const e=fe[r(515)](),i=fe[r(527)]();n.events[r(504)](r(519),{_autoGenerated:!0,_source:r(495),_timestamp:(new Date)[r(479)](),_platform:r(484)})[r(488)](()=>{const n=r;fe[n(453)](),t.debug&&console[n(458)](n(461),{attribution:i,trackingParams:e})})[r(476)](t=>{const e=r;console[e(508)](e(482),t)})}catch(t){console[r(508)](r(471),t)}},100)}t[e(451)]&&console[e(458)](e(539),{version:e(470),modules:r,apiKey:t[e(520)].substring(0,8)+e(505),mode:e(524)})}static[Te(509)](){const t=Te;return De[t(460)]?.[t(542)]||!1}static[Te(535)](){const t=Te;return De[t(460)]?.[t(529)]||null}static[Te(512)](t){const e=Te;try{const n=De[e(492)]();return ke(t,{clickParams:fe[e(515)](),attributionId:n[e(481)][e(449)](),domains:n[e(529)]?.[e(516)],baseHref:"undefined"!=typeof window?window.location[e(537)]:void 0})}catch(e){return t}}static[Te(492)](){const t=Te;if(!De[t(460)])throw new Error(t(455));return De.instance}static get ads(){const t=Te;try{return De[t(492)]()[t(497)]}catch(e){throw console[t(468)](t(526)),e}}static get[Te(481)](){const t=Te;try{return De[t(492)]()[t(481)]}catch(e){throw console.warn(t(530)),e}}static get[Te(486)](){const t=Te;try{return De[t(492)]()[t(486)]}catch(e){throw console.warn(t(462)),e}}static reset(){const t=Te;De.instance&&(De.instance[t(542)]=!1,De[t(460)][t(529)]=null)}[Te(501)](){const t=Te;if(typeof window===t(463))return t(478)+Math[t(499)]()[t(500)](36).substring(2,15);const e=localStorage[t(491)](t(472));if(e)return e;const n=[navigator[t(483)],navigator[t(450)],screen[t(522)]+"x"+screen[t(521)],(new Date)[t(489)](),navigator[t(465)]||0].join("|");let r=0;for(let e=0;e<n[t(487)];e++){r=(r<<5)-r+n[t(531)](e),r&=r}const i=t(464)+Math[t(536)](r)[t(500)](36)+"-"+Date[t(467)]().toString(36);return localStorage[t(534)](t(472),i),i}}function Le(t,e){var n=ze;return De[n(508)]()?De[n(504)][n(509)](t,e):(console[n(506)](n(513)),Promise[n(514)]())}function Re(t){var e=ze;De[e(508)]()?De.events.setUserProperties(t):console[e(506)](e(513))}function ze(t,e){var n=Me();return(ze=function(t,e){return n[t-=499]})(t,e)}function _e(){var t=ze;if(De[t(508)]())return De.events.getUserProperties();console[t(506)](t(513))}function Me(){var t=["119655msumSw","3090stlLCe","21651mkkeDA","786245ySrqFx","6kTPfeH","events","592677TwdsNZ","warn","184KnfQwc","isReady","track","14898UGoIsW","116wpuEJV","28138GTTiHZ","AdStage not initialized. Call AdStage.init() first.","resolve","484286iDrBWH"];return(Me=function(){return t})()}De.debug={clearAllViewable:()=>{const t=Te;pt[t(538)](),console.log(t(456))},clearAdViewable:(t,e)=>{const n=Te;pt.clearAdViewable(t,e),console[n(458)](n(502)+t+"("+e+")의 viewable 추적 초기화됨")},getViewableStatus:()=>{const t=Te;console[t(458)](t(525),{trackedCount:pt.viewableTracker[t(523)],trackedItems:Array.from(pt[t(543)])})}},function(){for(var t=ze,e=Me();;)try{if(122075===-parseInt(t(499))/1+-parseInt(t(515))/2+-parseInt(t(510))/3*(parseInt(t(511))/4)+parseInt(t(502))/5*(-parseInt(t(503))/6)+parseInt(t(501))/7*(-parseInt(t(507))/8)+parseInt(t(505))/9+parseInt(t(500))/10*(parseInt(t(512))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ue=e(null);function Pe({children:e,config:i}){const[s,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),s&&De.reset(),De.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};r(()=>{i&&!s&&u(i)},[i,s]);const p={isInitialized:s,config:a,initialize:u,reset:()=>{try{De.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Ue.Provider,{value:p,children:e})}function Be(){const t=i(Ue);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Ne(){const{isInitialized:t}=Be();return t?De:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Oe(t,e){var n=Fe();return(Oe=function(t,e){return n[t-=188]})(t,e)}function Fe(){var t=["5yLYwBb","7956UVEGWR","2762832ZqvGzP","536fMyImw","90fOCDpw","3196200UENgtJ","1492477JQuSEj","331006yymYHR","969820ICpVXJ","169517ZZKsrA"];return(Fe=function(){return t})()}!function(){for(var t=Oe,e=Fe();;)try{if(247966===-parseInt(t(196))/1+parseInt(t(194))/2+-parseInt(t(188))/3*(-parseInt(t(190))/4)+-parseInt(t(197))/5*(parseInt(t(189))/6)+-parseInt(t(193))/7+-parseInt(t(192))/8+-parseInt(t(191))/9*(-parseInt(t(195))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const He=Ve;function Ve(t,e){const n=Ke();return(Ve=function(t,e){return n[t-=435]})(t,e)}function Ke(){const t=["2RoazzF","1002gKybtx","206530UvvZnS","5023490HGsHyK","35688510eYHzko","710EtduaR","undefined","events","5279840VeEPtx","9672srbrjZ","30905KklHcQ","9RQPefU","ads","2927421DtEEcI"];return(Ke=function(){return t})()}!function(){const t=Ve,e=Ke();for(;;)try{if(505795===-parseInt(t(442))/1+parseInt(t(440))/2*(-parseInt(t(439))/3)+parseInt(t(435))/4*(parseInt(t(445))/5)+parseInt(t(441))/6*(-parseInt(t(436))/7)+-parseInt(t(448))/8*(parseInt(t(437))/9)+-parseInt(t(443))/10+parseInt(t(444))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const je="2.0.0",We=[He(438),He(447),"config"];typeof window!==He(446)&&(window.AdStage=De);export{De as AdStage,Pe as AdStageProvider,je as SDK_VERSION,We as SUPPORTED_MODULES,fe as TrackingParamsModule,_e as getUserProperties,Re as setUserProperties,Le as track,Be as useAdStageContext,Ne as useAdStageInstance};
|